@tscircuit/runframe 0.0.1321 → 0.0.1322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1545,7 +1545,7 @@ var useErrorTelemetry = ({
1545
1545
  };
1546
1546
 
1547
1547
  // package.json
1548
- var version = "0.0.1320";
1548
+ var version = "0.0.1321";
1549
1549
  var package_default = {
1550
1550
  name: "@tscircuit/runframe",
1551
1551
  main: "dist/preview.js",
@@ -1615,7 +1615,7 @@ var package_default = {
1615
1615
  "chokidar-cli": "^3.0.0",
1616
1616
  "circuit-json": "0.0.303",
1617
1617
  "circuit-json-to-bom-csv": "^0.0.8",
1618
- "circuit-json-to-gerber": "^0.0.41",
1618
+ "circuit-json-to-gerber": "^0.0.42",
1619
1619
  "circuit-json-to-gltf": "^0.0.41",
1620
1620
  "circuit-json-to-kicad": "^0.0.25",
1621
1621
  "circuit-json-to-lbrn": "^0.0.4",
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-OWJSTUQG.js";
11
+ } from "./chunk-HB3C4MGK.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  useRunFrameStore,
34
34
  useRunnerStore,
35
35
  useStyles
36
- } from "./chunk-OWJSTUQG.js";
36
+ } from "./chunk-HB3C4MGK.js";
37
37
 
38
38
  // lib/components/RunFrame/RunFrame.tsx
39
39
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";
@@ -5815,7 +5815,7 @@ $1`).replace(/>(\s*)(?=<!--\s*\/)/g,"> ")}}});function wQt(e,A,t){if(!A||!t)retu
5815
5815
  * Copyright (c) 2013-2015, 2017, Jon Schlinkert.
5816
5816
  * Released under the MIT License.
5817
5817
  *)
5818
- */const rze=({containerClassName:e,...A})=>{const t=lA.useRef(null),[i,n]=lA.useState(620);return lA.useLayoutEffect(()=>{const o=()=>{if(t.current){const r=t.current.clientHeight,a=window.innerHeight;n(Math.min(Math.max(r,620),a))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),aA.jsx("div",{ref:t,className:e||"rf-w-full rf-h-full",children:aA.jsx(sze,{...A,height:i})})},aze='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.\\!rf-z-\\[200\\]{z-index:200!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-z-\\[101\\]{z-index:101}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-6{margin-left:1.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mr-4{margin-right:1rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-20{height:5rem}.rf-h-24{height:6rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[calc\\(100vh-60px\\)\\]{height:calc(100vh - 60px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-20{max-height:5rem}.rf-max-h-24{max-height:6rem}.rf-max-h-28{max-height:7rem}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[70vh\\]{max-height:70vh}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[100px\\]{min-height:100px}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.\\!rf-w-\\[95vw\\]{width:95vw!important}.rf-w-1{width:.25rem}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-24{width:6rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-80{width:20rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-32{min-width:8rem}.rf-min-w-80{min-width:20rem}.rf-min-w-96{min-width:24rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[600px\\]{min-width:600px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[95vw\\]{max-width:95vw!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-64{max-width:16rem}.rf-max-w-96{max-width:24rem}.rf-max-w-\\[1000px\\]{max-width:1000px}.rf-max-w-\\[150px\\]{max-width:150px}.rf-max-w-\\[200px\\]{max-width:200px}.rf-max-w-\\[40\\%\\]{max-width:40%}.rf-max-w-\\[600px\\]{max-width:600px}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-rotate-90{--tw-rotate:90deg}.rf-rotate-90,.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-baseline{align-items:baseline}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.\\!rf-overflow-hidden{overflow:hidden!important}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rf-whitespace-normal{white-space:normal}.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-break-all{word-break:break-all}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-l-2{border-left-width:2px}.rf-border-l-4{border-left-width:4px}.rf-border-t{border-top-width:1px}.rf-border-none{border-style:none}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-300{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-100{--tw-border-opacity:1;border-color:rgb(255 237 213/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-border-t-blue-600{--tw-border-opacity:1;border-top-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.rf-bg-amber-50\\/30{background-color:rgba(255,251,235,.3)}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-50\\/30{background-color:rgba(239,246,255,.3)}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-orange-50\\/50{background-color:rgba(255,247,237,.5)}.rf-bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-50\\/50{background-color:hsla(0,86%,97%,.5)}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-amber-500{fill:#f59e0b}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-1{padding-bottom:.25rem}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pb-px{padding-bottom:1px}.rf-pl-10{padding-left:2.5rem}.rf-pl-11{padding-left:2.75rem}.rf-pl-12{padding-left:3rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-1{padding-top:.25rem}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-\\[0\\.95rem\\]{line-height:.95rem}.rf-leading-\\[1rem\\]{line-height:1rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-400{--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-700{--tw-text-opacity:1;color:rgb(194 65 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.rf-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.rf-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.rf-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-70{opacity:.7}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-150{transition-duration:.15s}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-150{animation-duration:.15s}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-orange-100:hover{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-800:hover{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group:hover .group-hover\\:rf-opacity-100,.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.rf-peer:disabled~.peer-disabled\\:rf-cursor-not-allowed{cursor:not-allowed}.rf-peer:disabled~.peer-disabled\\:rf-opacity-70{opacity:.7}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-gray-700:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:rf-bg-gray-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-gray-500:is(.rf-dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-mt-4{margin-top:1rem}.sm\\:rf-block{display:block}.sm\\:rf-inline{display:inline}.sm\\:rf-grid{display:grid}.sm\\:rf-hidden{display:none}.sm\\:rf-h-5{height:1.25rem}.sm\\:rf-w-1\\/2{width:50%}.sm\\:rf-w-5{width:1.25rem}.sm\\:rf-w-\\[90vw\\]{width:90vw}.sm\\:rf-w-auto{width:auto}.sm\\:rf-max-w-\\[500px\\]{max-width:500px}.sm\\:rf-max-w-md{max-width:28rem}.sm\\:rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:rf-grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-gap-4{gap:1rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-justify-self-end{justify-self:end}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-p-3{padding:.75rem}.sm\\:rf-p-6{padding:1.5rem}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-right{text-align:right}.sm\\:rf-text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:rf-text-base{font-size:1rem;line-height:1.5rem}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-w-auto{width:auto}.md\\:rf-max-w-\\[660px\\]{max-width:660px}.md\\:rf-max-w-lg{max-width:32rem}.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:rf-p-8{padding:2rem}.md\\:rf-py-8{padding-bottom:2rem;padding-top:2rem}.md\\:rf-text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width:1024px){.lg\\:rf-max-w-\\[720px\\]{max-width:720px}.lg\\:rf-max-w-xl{max-width:36rem}}@media (min-width:1280px){.xl\\:rf-max-w-\\[800px\\]{max-width:800px}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',TQt=()=>{lA.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const A=document.createElement("style");A.setAttribute("data-styles","tscircuit-runframe"),A.textContent=aze,document.head.appendChild(A)},[])},gze=e=>{lA.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])};function KQt(e,A){const[t,i]=lA.useState(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):A}catch(n){return console.error("Error reading from localStorage:",n),A}});return lA.useEffect(()=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error writing to localStorage:",n)}},[e,t]),[t,i]}const qQt=e=>`hsl(${UD.indexOf(e)*137.5%360}, 70%, 50%)`,cze=({phaseTimings:e})=>{if(!e)return null;const A=Object.values(e).reduce((t,i)=>t+i,0);return aA.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[aA.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:UD.map(t=>{const i=e[t]||0,n=i/A*100;return aA.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${n}%`,backgroundColor:qQt(t)},children:aA.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),aA.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",A.toFixed(2),"ms"]})]})},Ize=e=>{if(e instanceof Blob)return e;if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},lze=({renderLog:e,onRerunWithDebug:A})=>{const[t,i]=lA.useState("chronological"),[n,o]=lA.useState(""),s=[{value:"",label:"None"},{value:"DEBUG=Group_doInitialSchematicTraceRender",label:"DEBUG=Group_doInitialSchematicTraceRender"},{value:"DEBUG=Group_doInitialSchematicLayoutMatchpack",label:"DEBUG=Group_doInitialSchematicLayoutMatchpack"},{value:"DEBUG=Group_doInitialPcbLayoutPack",label:"DEBUG=Group_doInitialPcbLayoutPack"}];if(!e)return aA.jsxs("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:[aA.jsx("div",{className:"rf-mb-4",children:"No render log, make sure this tab is open when you render"}),A&&aA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[aA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>aA.jsx("option",{value:g.value,children:g.label},g.value))}),aA.jsx(XQ,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]})]});const r=Object.entries(e?.phaseTimings??{});t==="chronological"?r.sort((g,c)=>UD.indexOf(g[0])-UD.indexOf(c[0])):r.sort((g,c)=>c[1]-g[1]);const a=r.reduce((g,[c,I])=>g+I,0);return aA.jsxs("div",{className:"rf-bg-white",children:[aA.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center rf-mb-4",children:[aA.jsx("div",{children:"Render Logs"}),aA.jsxs("div",{className:"rf-flex rf-gap-4 rf-items-center",children:[A&&aA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[aA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>aA.jsx("option",{value:g.value,children:g.label},g.value))}),aA.jsx(XQ,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]}),aA.jsx("div",{className:"rf-flex rf-gap-2 rf-items-center",children:aA.jsxs("select",{onChange:g=>{if(g.target.value){const c=e?.debugOutputs?.find(I=>I.name===g.target.value);if(c){const I=Ize(c.content),l=I instanceof Blob?I:new Blob([I],{type:"text/plain"}),B=URL.createObjectURL(l),C=document.createElement("a");C.href=B,C.download=`debug-${c.name}.txt`,document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(B)}g.target.value=""}},disabled:!e?.debugOutputs||e.debugOutputs.length===0,className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white disabled:rf-opacity-50 disabled:rf-cursor-not-allowed",children:[aA.jsx("option",{value:"",children:"Download Debug Output"}),e?.debugOutputs?.map(g=>aA.jsx("option",{value:g.name,children:g.name},g.name))]})}),aA.jsxs("div",{className:"rf-flex rf-text-xs rf-items-center",children:[aA.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),aA.jsxs("select",{value:t,onChange:g=>i(g.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[aA.jsx("option",{value:"chronological",children:"Phase Order"}),aA.jsx("option",{value:"longest",children:"Duration"})]})]})]})]}),aA.jsx(cze,{phaseTimings:e.phaseTimings}),aA.jsxs("table",{className:"rf-w-full rf-text-xs",children:[aA.jsx("thead",{children:aA.jsxs("tr",{children:[aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),aA.jsx("tbody",{children:r.map(([g,c])=>aA.jsxs("tr",{children:[aA.jsx("td",{className:"rf-p-2",children:UD.indexOf(g)}),aA.jsx("td",{className:"rf-p-2",children:g}),aA.jsx("td",{className:"rf-p-2",children:aA.jsx("div",{className:"rf-w-8",children:aA.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:qQt(g),width:`${c/a*100}%`}})})}),aA.jsx("td",{className:"rf-p-2",children:aA.jsxs("div",{className:"rf-flex w-full",children:[aA.jsxs("span",{className:"rf-flex-grow",children:[c,"ms"]}),aA.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(c/a*100).toFixed(1),"%"]})]})})]},g))})]})]})},PQt=({errorMessage:e,errorStack:A,circuitJsonErrors:t})=>{lA.useEffect(()=>{if(e){const i=new Error(e);A&&(i.stack=A);try{Jq.captureException(i)}catch{}}},[e,A]),lA.useEffect(()=>{if(t&&t.length>0)for(const i of t){const n=new Error(i.message||"Circuit JSON Error");i.stack&&(n.stack=i.stack);try{Jq.captureException(n,{error_type:i.type})}catch{}}},[t])},OQt="0.0.1320",Bze={version:OQt},CwA={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},hwA=new Map,Pj=e=>{const A=hwA.get(e);return A?Object.fromEntries(Object.entries(A.stores).map(([t,i])=>[t,i.getState()])):{}},Cze=(e,A,t)=>{if(e===void 0)return{type:"untracked",connection:A.connect(t)};const i=hwA.get(t.name);if(i)return{type:"tracked",store:e,...i};const n={connection:A.connect(t),stores:{}};return hwA.set(t.name,n),{type:"tracked",store:e,...n}},WQt=(e,A={})=>(t,i,n)=>{const{enabled:o,anonymousActionType:s,store:r,...a}=A;let g;try{g=(o??(CwA?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!g)return(CwA?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(t,i,n);const{connection:c,...I}=Cze(r,g,a);let l=!0;n.setState=(Q,u,E)=>{const p=t(Q,u);if(!l)return p;const f=E===void 0?{type:s||"anonymous"}:typeof E=="string"?{type:E}:E;return r===void 0?(c?.send(f,i()),p):(c?.send({...f,type:`${r}/${f.type}`},{...Pj(a.name),[r]:n.getState()}),p)};const B=(...Q)=>{const u=l;l=!1,t(...Q),l=u},C=e(n.setState,i,n);if(I.type==="untracked"?c?.init(C):(I.stores[I.store]=n,c?.init(Object.fromEntries(Object.entries(I.stores).map(([Q,u])=>[Q,Q===I.store?C:u.getState()])))),n.dispatchFromDevtools&&typeof n.dispatch=="function"){let Q=!1;const u=n.dispatch;n.dispatch=(...E)=>{(CwA?"production":void 0)!=="production"&&E[0].type==="__setState"&&!Q&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),Q=!0),u(...E)}}return c.subscribe(Q=>{var u;switch(Q.type){case"ACTION":if(typeof Q.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return QwA(Q.payload,E=>{if(E.type==="__setState"){if(r===void 0){B(E.state);return}Object.keys(E.state).length!==1&&console.error(`
5818
+ */const rze=({containerClassName:e,...A})=>{const t=lA.useRef(null),[i,n]=lA.useState(620);return lA.useLayoutEffect(()=>{const o=()=>{if(t.current){const r=t.current.clientHeight,a=window.innerHeight;n(Math.min(Math.max(r,620),a))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),aA.jsx("div",{ref:t,className:e||"rf-w-full rf-h-full",children:aA.jsx(sze,{...A,height:i})})},aze='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.\\!rf-z-\\[200\\]{z-index:200!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-z-\\[101\\]{z-index:101}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-6{margin-left:1.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mr-4{margin-right:1rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-20{height:5rem}.rf-h-24{height:6rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[calc\\(100vh-60px\\)\\]{height:calc(100vh - 60px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-20{max-height:5rem}.rf-max-h-24{max-height:6rem}.rf-max-h-28{max-height:7rem}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[70vh\\]{max-height:70vh}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[100px\\]{min-height:100px}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.\\!rf-w-\\[95vw\\]{width:95vw!important}.rf-w-1{width:.25rem}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-24{width:6rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-80{width:20rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-32{min-width:8rem}.rf-min-w-80{min-width:20rem}.rf-min-w-96{min-width:24rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[600px\\]{min-width:600px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[95vw\\]{max-width:95vw!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-64{max-width:16rem}.rf-max-w-96{max-width:24rem}.rf-max-w-\\[1000px\\]{max-width:1000px}.rf-max-w-\\[150px\\]{max-width:150px}.rf-max-w-\\[200px\\]{max-width:200px}.rf-max-w-\\[40\\%\\]{max-width:40%}.rf-max-w-\\[600px\\]{max-width:600px}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-rotate-90{--tw-rotate:90deg}.rf-rotate-90,.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-baseline{align-items:baseline}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.\\!rf-overflow-hidden{overflow:hidden!important}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rf-whitespace-normal{white-space:normal}.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-break-all{word-break:break-all}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-l-2{border-left-width:2px}.rf-border-l-4{border-left-width:4px}.rf-border-t{border-top-width:1px}.rf-border-none{border-style:none}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-300{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-100{--tw-border-opacity:1;border-color:rgb(255 237 213/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-border-t-blue-600{--tw-border-opacity:1;border-top-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.rf-bg-amber-50\\/30{background-color:rgba(255,251,235,.3)}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-50\\/30{background-color:rgba(239,246,255,.3)}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-orange-50\\/50{background-color:rgba(255,247,237,.5)}.rf-bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-50\\/50{background-color:hsla(0,86%,97%,.5)}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-amber-500{fill:#f59e0b}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-1{padding-bottom:.25rem}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pb-px{padding-bottom:1px}.rf-pl-10{padding-left:2.5rem}.rf-pl-11{padding-left:2.75rem}.rf-pl-12{padding-left:3rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-1{padding-top:.25rem}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-\\[0\\.95rem\\]{line-height:.95rem}.rf-leading-\\[1rem\\]{line-height:1rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-400{--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-700{--tw-text-opacity:1;color:rgb(194 65 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.rf-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.rf-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.rf-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-70{opacity:.7}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-150{transition-duration:.15s}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-150{animation-duration:.15s}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-orange-100:hover{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-800:hover{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group:hover .group-hover\\:rf-opacity-100,.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.rf-peer:disabled~.peer-disabled\\:rf-cursor-not-allowed{cursor:not-allowed}.rf-peer:disabled~.peer-disabled\\:rf-opacity-70{opacity:.7}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-gray-700:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:rf-bg-gray-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-gray-500:is(.rf-dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-mt-4{margin-top:1rem}.sm\\:rf-block{display:block}.sm\\:rf-inline{display:inline}.sm\\:rf-grid{display:grid}.sm\\:rf-hidden{display:none}.sm\\:rf-h-5{height:1.25rem}.sm\\:rf-w-1\\/2{width:50%}.sm\\:rf-w-5{width:1.25rem}.sm\\:rf-w-\\[90vw\\]{width:90vw}.sm\\:rf-w-auto{width:auto}.sm\\:rf-max-w-\\[500px\\]{max-width:500px}.sm\\:rf-max-w-md{max-width:28rem}.sm\\:rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:rf-grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-gap-4{gap:1rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-justify-self-end{justify-self:end}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-p-3{padding:.75rem}.sm\\:rf-p-6{padding:1.5rem}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-right{text-align:right}.sm\\:rf-text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:rf-text-base{font-size:1rem;line-height:1.5rem}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-w-auto{width:auto}.md\\:rf-max-w-\\[660px\\]{max-width:660px}.md\\:rf-max-w-lg{max-width:32rem}.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:rf-p-8{padding:2rem}.md\\:rf-py-8{padding-bottom:2rem;padding-top:2rem}.md\\:rf-text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width:1024px){.lg\\:rf-max-w-\\[720px\\]{max-width:720px}.lg\\:rf-max-w-xl{max-width:36rem}}@media (min-width:1280px){.xl\\:rf-max-w-\\[800px\\]{max-width:800px}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',TQt=()=>{lA.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const A=document.createElement("style");A.setAttribute("data-styles","tscircuit-runframe"),A.textContent=aze,document.head.appendChild(A)},[])},gze=e=>{lA.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])};function KQt(e,A){const[t,i]=lA.useState(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):A}catch(n){return console.error("Error reading from localStorage:",n),A}});return lA.useEffect(()=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error writing to localStorage:",n)}},[e,t]),[t,i]}const qQt=e=>`hsl(${UD.indexOf(e)*137.5%360}, 70%, 50%)`,cze=({phaseTimings:e})=>{if(!e)return null;const A=Object.values(e).reduce((t,i)=>t+i,0);return aA.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[aA.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:UD.map(t=>{const i=e[t]||0,n=i/A*100;return aA.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${n}%`,backgroundColor:qQt(t)},children:aA.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),aA.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",A.toFixed(2),"ms"]})]})},Ize=e=>{if(e instanceof Blob)return e;if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},lze=({renderLog:e,onRerunWithDebug:A})=>{const[t,i]=lA.useState("chronological"),[n,o]=lA.useState(""),s=[{value:"",label:"None"},{value:"DEBUG=Group_doInitialSchematicTraceRender",label:"DEBUG=Group_doInitialSchematicTraceRender"},{value:"DEBUG=Group_doInitialSchematicLayoutMatchpack",label:"DEBUG=Group_doInitialSchematicLayoutMatchpack"},{value:"DEBUG=Group_doInitialPcbLayoutPack",label:"DEBUG=Group_doInitialPcbLayoutPack"}];if(!e)return aA.jsxs("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:[aA.jsx("div",{className:"rf-mb-4",children:"No render log, make sure this tab is open when you render"}),A&&aA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[aA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>aA.jsx("option",{value:g.value,children:g.label},g.value))}),aA.jsx(XQ,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]})]});const r=Object.entries(e?.phaseTimings??{});t==="chronological"?r.sort((g,c)=>UD.indexOf(g[0])-UD.indexOf(c[0])):r.sort((g,c)=>c[1]-g[1]);const a=r.reduce((g,[c,I])=>g+I,0);return aA.jsxs("div",{className:"rf-bg-white",children:[aA.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center rf-mb-4",children:[aA.jsx("div",{children:"Render Logs"}),aA.jsxs("div",{className:"rf-flex rf-gap-4 rf-items-center",children:[A&&aA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[aA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>aA.jsx("option",{value:g.value,children:g.label},g.value))}),aA.jsx(XQ,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]}),aA.jsx("div",{className:"rf-flex rf-gap-2 rf-items-center",children:aA.jsxs("select",{onChange:g=>{if(g.target.value){const c=e?.debugOutputs?.find(I=>I.name===g.target.value);if(c){const I=Ize(c.content),l=I instanceof Blob?I:new Blob([I],{type:"text/plain"}),B=URL.createObjectURL(l),C=document.createElement("a");C.href=B,C.download=`debug-${c.name}.txt`,document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(B)}g.target.value=""}},disabled:!e?.debugOutputs||e.debugOutputs.length===0,className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white disabled:rf-opacity-50 disabled:rf-cursor-not-allowed",children:[aA.jsx("option",{value:"",children:"Download Debug Output"}),e?.debugOutputs?.map(g=>aA.jsx("option",{value:g.name,children:g.name},g.name))]})}),aA.jsxs("div",{className:"rf-flex rf-text-xs rf-items-center",children:[aA.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),aA.jsxs("select",{value:t,onChange:g=>i(g.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[aA.jsx("option",{value:"chronological",children:"Phase Order"}),aA.jsx("option",{value:"longest",children:"Duration"})]})]})]})]}),aA.jsx(cze,{phaseTimings:e.phaseTimings}),aA.jsxs("table",{className:"rf-w-full rf-text-xs",children:[aA.jsx("thead",{children:aA.jsxs("tr",{children:[aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),aA.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),aA.jsx("tbody",{children:r.map(([g,c])=>aA.jsxs("tr",{children:[aA.jsx("td",{className:"rf-p-2",children:UD.indexOf(g)}),aA.jsx("td",{className:"rf-p-2",children:g}),aA.jsx("td",{className:"rf-p-2",children:aA.jsx("div",{className:"rf-w-8",children:aA.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:qQt(g),width:`${c/a*100}%`}})})}),aA.jsx("td",{className:"rf-p-2",children:aA.jsxs("div",{className:"rf-flex w-full",children:[aA.jsxs("span",{className:"rf-flex-grow",children:[c,"ms"]}),aA.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(c/a*100).toFixed(1),"%"]})]})})]},g))})]})]})},PQt=({errorMessage:e,errorStack:A,circuitJsonErrors:t})=>{lA.useEffect(()=>{if(e){const i=new Error(e);A&&(i.stack=A);try{Jq.captureException(i)}catch{}}},[e,A]),lA.useEffect(()=>{if(t&&t.length>0)for(const i of t){const n=new Error(i.message||"Circuit JSON Error");i.stack&&(n.stack=i.stack);try{Jq.captureException(n,{error_type:i.type})}catch{}}},[t])},OQt="0.0.1321",Bze={version:OQt},CwA={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},hwA=new Map,Pj=e=>{const A=hwA.get(e);return A?Object.fromEntries(Object.entries(A.stores).map(([t,i])=>[t,i.getState()])):{}},Cze=(e,A,t)=>{if(e===void 0)return{type:"untracked",connection:A.connect(t)};const i=hwA.get(t.name);if(i)return{type:"tracked",store:e,...i};const n={connection:A.connect(t),stores:{}};return hwA.set(t.name,n),{type:"tracked",store:e,...n}},WQt=(e,A={})=>(t,i,n)=>{const{enabled:o,anonymousActionType:s,store:r,...a}=A;let g;try{g=(o??(CwA?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!g)return(CwA?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(t,i,n);const{connection:c,...I}=Cze(r,g,a);let l=!0;n.setState=(Q,u,E)=>{const p=t(Q,u);if(!l)return p;const f=E===void 0?{type:s||"anonymous"}:typeof E=="string"?{type:E}:E;return r===void 0?(c?.send(f,i()),p):(c?.send({...f,type:`${r}/${f.type}`},{...Pj(a.name),[r]:n.getState()}),p)};const B=(...Q)=>{const u=l;l=!1,t(...Q),l=u},C=e(n.setState,i,n);if(I.type==="untracked"?c?.init(C):(I.stores[I.store]=n,c?.init(Object.fromEntries(Object.entries(I.stores).map(([Q,u])=>[Q,Q===I.store?C:u.getState()])))),n.dispatchFromDevtools&&typeof n.dispatch=="function"){let Q=!1;const u=n.dispatch;n.dispatch=(...E)=>{(CwA?"production":void 0)!=="production"&&E[0].type==="__setState"&&!Q&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),Q=!0),u(...E)}}return c.subscribe(Q=>{var u;switch(Q.type){case"ACTION":if(typeof Q.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return QwA(Q.payload,E=>{if(E.type==="__setState"){if(r===void 0){B(E.state);return}Object.keys(E.state).length!==1&&console.error(`
5819
5819
  [zustand devtools middleware] Unsupported __setState action format.
5820
5820
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
5821
5821
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
@@ -6663,7 +6663,7 @@ ${A}%`}}),DDi=Ru({command_code:"TD",schema:_A({command_code:BA("TD").default("TD
6663
6663
  20,1,$1+$1,$4,$5,$6,$7,0*
6664
6664
  20,1,$1+$1,$6,$7,$8,$9,0*
6665
6665
  20,1,$1+$1,$8,$9,$2,$3,0*
6666
- `.trim()}).add("comment",{comment:"APERTURE MACROS END"}).build())};function e_i(e){const A=e.filter(i=>i.type==="pcb_trace"),t={};for(const i of A)for(const n of i.route)n.route_type==="wire"&&(t[n.layer]=t[n.layer]||new Set,t[n.layer].add(n.width));return{top:Array.from(t.top||[]),bottom:Array.from(t.bottom||[])}}function i_i({glayer:e,soup:A,glayer_name:t}){const i=()=>{const s=e.reduce((r,a)=>a.command_code==="ADD"?Math.max(r,a.aperture_number):r,0);return s===0?10:s+1};e.push(...BE().add("comment",{comment:"aperture START LIST"}).build());const n=e_i(A);for(const s of n[t.startsWith("F_")?"top":"bottom"])e.push(...BE().add("define_aperture_template",{aperture_number:i(),standard_template_code:"C",diameter:s}).build());const o=n_i(A,t.startsWith("F_")?"top":"bottom");for(const s of o)e.push(...BE().add("define_aperture_template",{aperture_number:i(),...s}).build());e.push(...BE().add("delete_attribute",{}).add("comment",{comment:"aperture END LIST"}).build())}var Lxt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};throw e.shape==="polygon"?new Error("Polygon SMT pads are drawn as regions, not apertures"):new Error(`Unsupported shape ${e.shape}`)},Uxt=e=>{if("stroke_width"in e)return{standard_template_code:"C",diameter:e.stroke_width};throw new Error(`Provide stroke_width for: ${e}`)},Hxt=e=>{if("font_size"in e)return{standard_template_code:"C",diameter:e.font_size/8};throw new Error(`Provide font_size for: ${e}`)},Yxt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="pill"){if(!("width"in e&&"height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.width>=e.height?{macro_name:"HORZPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.width/2}:{macro_name:"VERTPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.height/2}}throw new Error(`Unsupported shape ${e.shape}`)},Jxt=e=>{if(e.shape==="circle"){if(!("outer_diameter"in e&&"hole_diameter"in e))throw new Error("Invalid circle shape in getApertureConfigFromPcbPlatedHole: missing diameters");return{standard_template_code:"C",diameter:e.outer_diameter}}if(e.shape==="pill"){if(!("outer_width"in e&&"outer_height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.outer_width>e.outer_height?{macro_name:"HORZPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_width/2}:{macro_name:"VERTPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_height/2}}const A=e.shape;if(A==="circular_hole_with_rect_pad"||A==="pill_hole_with_rect_pad"||A==="rotated_pill_hole_with_rect_pad"){if(!("rect_pad_width"in e&&"rect_pad_height"in e))throw new Error(`Invalid ${A} shape in getApertureConfigFromPcbPlatedHole: missing dimensions`);return{standard_template_code:"R",x_size:e.rect_pad_width,y_size:e.rect_pad_height}}throw new Error(`Unsupported shape in getApertureConfigFromPcbPlatedHole: ${e.shape}`)},Txt=e=>{if(!("hole_diameter"in e))throw new Error(`Invalid shape called in getApertureConfigFromCirclePcbHole: ${e.hole_shape}`);return{standard_template_code:"C",diameter:e.hole_diameter}},Kxt=e=>{if(!("outer_diameter"in e))throw new Error("outer_diameter not specified in getApertureConfigFromPcbVia");return{standard_template_code:"C",diameter:e.outer_diameter}};function n_i(e,A){const t=[],i=new Set,n=o=>{const s=Pwi(o);i.has(s)||(t.push(o),i.add(s))};for(const o of e)o.type==="pcb_smtpad"?o.layer===A&&o.shape!=="polygon"&&n(Lxt(o)):o.type==="pcb_solder_paste"?o.layer===A&&n(Yxt(o)):o.type==="pcb_plated_hole"?o.layers.includes(A)&&n(Jxt(o)):o.type==="pcb_hole"?o.hole_shape==="circle"?n(Txt(o)):console.warn("NOT IMPLEMENTED: drawing gerber for non circle holes"):o.type==="pcb_via"?n(Kxt(o)):o.type==="pcb_silkscreen_path"?n(Uxt(o)):o.type==="pcb_silkscreen_text"&&n(Hxt(o));return t}var hv=(e,A)=>{let t;if("trace_width"in A){const i=A.trace_width;t=e.find(n=>"standard_template_code"in n&&n.command_code==="ADD"&&n.standard_template_code==="C"&&n.diameter===i)}else("standard_template_code"in A||"macro_name"in A)&&(t=e.find(i=>i.command_code==="ADD"&&Object.keys(A).every(n=>i[n]===A[n])));if(!t)throw new Error(`Aperture not found for search params ${JSON.stringify(A)}`);return t.aperture_number},o_i={version:"0.0.40"},s_i={"top-copper":"Copper,L1,Top","bottom-copper":"Copper,L2,Bot","top-soldermask":"Soldermask,Top","bottom-soldermask":"Soldermask,Bot","top-silkscreen":"Legend,Top","bottom-silkscreen":"Legend,Bot","top-paste":"Paste,Top","bottom-paste":"Paste,Bot",edgecut:"Profile,NP"},Qv=e=>{const A=s_i[e.layer_type?`${e.layer}-${e.layer_type}`:e.layer];return BE().add("add_attribute_on_file",{attribute_name:"GenerationSoftware",attribute_value:`tscircuit,circuit-json-to-gerber,${o_i.version}`}).add("add_attribute_on_file",{attribute_name:"CreationDate",attribute_value:new Date().toISOString()}).add("add_attribute_on_file",{attribute_name:"SameCoordinates",attribute_value:"Original"}).add("add_attribute_on_file",{attribute_name:"FileFunction",attribute_value:A}).$if(e.layer!=="edgecut",t=>t.add("add_attribute_on_file",{attribute_name:"FilePolarity",attribute_value:e.layer_type==="soldermask"?"Negative":"Positive"})).add("format_specification",{}).add("set_unit",{unit:"MM"}).add("comment",{comment:"Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)"}).add("comment",{comment:`Created by tscircuit (builder) date ${new Date().toISOString()}`}).add("set_movement_mode_to_linear",{}).add("set_layer_polarity",{polarity:"D"}).add("create_arc",{}).build()},r_i={top:"F_",bottom:"B_"},a_i={copper:"Cu",silkscreen:"SilkScreen",soldermask:"Mask",mask:"Mask",paste:"Paste"},gw=(e,A)=>e==="edgecut"?"Edge_Cuts":`${r_i[e]}${a_i[A]}`,g_i=(e,A={})=>{A.flip_y_axis??=!1;const t={F_Cu:Qv({layer:"top",layer_type:"copper"}),F_SilkScreen:Qv({layer:"top",layer_type:"silkscreen"}),F_Mask:Qv({layer:"top",layer_type:"soldermask"}),F_Paste:Qv({layer:"top",layer_type:"paste"}),B_Cu:Qv({layer:"bottom",layer_type:"copper"}),B_SilkScreen:Qv({layer:"bottom",layer_type:"silkscreen"}),B_Mask:Qv({layer:"bottom",layer_type:"soldermask"}),B_Paste:Qv({layer:"bottom",layer_type:"paste"}),Edge_Cuts:Qv({layer:"edgecut"})};for(const o of["F_Cu","B_Cu","F_Mask","B_Mask","F_Paste","B_Paste","F_SilkScreen","B_SilkScreen"]){const s=t[o];t_i(s),i_i({soup:e,glayer:s,glayer_name:o})}t.Edge_Cuts.push(...BE().add("define_aperture_template",{aperture_number:10,standard_template_code:"C",diameter:.05}).build());const i=o=>A.flip_y_axis?-o:o,n=new Map;for(const o of e)if(o.type==="pcb_plated_hole"&&"x"in o&&typeof o.x=="number"&&"y"in o&&typeof o.y=="number"){const s="ccw_rotation"in o&&typeof o.ccw_rotation=="number"?o.ccw_rotation:0;n.set(`${o.x}:${o.y}`,s)}for(const o of["top","bottom","edgecut"])for(const s of e)if(s.type==="pcb_trace"){const{route:r}=s;for(const[a,g]of A_i(r))if(a.route_type==="wire"&&a.layer===o){const c=t[gw(o,"copper")];c.push(...BE().add("select_aperture",{aperture_number:hv(c,{trace_width:a.width})}).add("move_operation",{x:a.x,y:i(a.y)}).add("plot_operation",{x:g.x,y:i(g.y)}).build())}}else if(s.type==="pcb_silkscreen_path"){if(s.layer===o){const r=t[gw(o,"silkscreen")],a=Uxt(s),g=BE().add("select_aperture",{aperture_number:hv(r,a)});s.route.length>0&&g.add("move_operation",{x:s.route[0].x,y:i(s.route[0].y)});for(let c=1;c<s.route.length;c++)g.add("plot_operation",{x:s.route[c].x,y:i(s.route[c].y)});r.push(...g.build())}}else if(s.type==="pcb_silkscreen_text"){if(s.layer===o){const a=t[gw(o,"silkscreen")],g=Hxt(s),c=BE().add("select_aperture",{aperture_number:hv(a,g)});let I=s.anchor_position.x,l=s.anchor_position.y;const B=s.font_size*.7,C=B*.4,Q=B*.5,u=s.text.split("").reduce((k,b)=>b===" "?k+Q+C:k+B+C,0)-C,E=B;switch(s.anchor_alignment||(()=>{const k=s.anchor_side;if(k)switch(k){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right"}})()||"center"){case"top_left":break;case"top_center":I-=u/2;break;case"top_right":I-=u;break;case"center_right":l-=E/2;break;case"center_left":I-=u,l-=E/2;break;case"bottom_left":l-=E;break;case"bottom_center":I-=u/2,l-=E;break;case"bottom_right":I-=u,l-=E;break;default:I-=u/2,l-=E/2;break}let f=I;const m=l;let S=s.ccw_rotation||0;const x=f+u/2,v=m+E/2,D=[];if(s.layer==="bottom"&&(D.push(XL(x,v),{a:-1,b:0,c:0,d:1,e:0,f:0},XL(-x,-v)),S=-S),S){const k=S*Math.PI/180;D.push(XL(x,v),u1A(k),XL(-x,-v))}for(const k of s.text.toUpperCase()){if(k===" "){f+=Q+C;continue}const b=h1A[k]||[];for(const L of b){const G=f+L.x1*B,T=m+L.y1*B,q=f+L.x2*B,P=m+L.y2*B;let V={x:G,y:T},z={x:q,y:P};if(D.length>0){const nA=Q1A(...D);V=Yk(nA,V),z=Yk(nA,z)}c.add("move_operation",{x:V.x,y:i(V.y)}),c.add("plot_operation",{x:z.x,y:i(z.y)})}f+=B+C}a.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape!=="polygon"){if(s.layer===o)for(const r of[t[gw(o,"copper")],t[gw(o,"soldermask")]]){const a=Lxt(s),g=hv(r,a),c=BE().add("select_aperture",{aperture_number:g});s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:s.ccw_rotation}),c.add("flash_operation",{x:s.x,y:i(s.y)}),s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape==="polygon"){if(s.layer===o){const r=[t[gw(o,"copper")]];(!("is_covered_with_solder_mask"in s)||s.is_covered_with_solder_mask!==!1)&&r.push(t[gw(o,"soldermask")]);for(const a of r){const g=BE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{}),{points:c}=s;if(c&&c.length>0){g.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)g.add("plot_operation",{x:c[I].x,y:i(c[I].y)});g.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}g.add("end_region_statement",{}),a.push(...g.build())}}}else if(s.type==="pcb_solder_paste"){if(s.layer===o){const r=t[gw(o,"paste")],a=hv(r,Yxt(s)),g="ccw_rotation"in s&&typeof s.ccw_rotation=="number"?s.ccw_rotation:n.get(`${s.x}:${s.y}`)??0,c=BE().add("select_aperture",{aperture_number:a});g&&c.add("load_rotation",{rotation_degrees:g}),c.add("flash_operation",{x:s.x,y:i(s.y)}),g&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_plated_hole"){if(s.layers.includes(o))for(const r of[t[gw(o,"copper")],t[gw(o,"soldermask")]]){const a="hole_width"in s&&typeof s.hole_width=="number"?s.hole_width:0,g="hole_height"in s&&typeof s.hole_height=="number"?s.hole_height:0,c=[a];"outer_width"in s&&typeof s.outer_width=="number"&&c.push(s.outer_width),"rect_pad_width"in s&&typeof s.rect_pad_width=="number"&&c.push(s.rect_pad_width);const I=Math.max(...c),l=[g];"outer_height"in s&&typeof s.outer_height=="number"&&l.push(s.outer_height),"rect_pad_height"in s&&typeof s.rect_pad_height=="number"&&l.push(s.rect_pad_height);const B=Math.max(...l);if(s.shape==="pill"){const C={standard_template_code:"C",diameter:Math.min(I,B)};let Q;try{Q=hv(r,C)}catch{Q=Math.max(...r.filter(v=>"aperture_number"in v).map(v=>v.aperture_number),9)+1,r.push(...BE().add("define_aperture_template",{aperture_number:Q,...C}).build())}const u=BE().add("select_aperture",{aperture_number:Q}),E=(s.ccw_rotation??0)*Math.PI/180,p=Math.cos(E),f=Math.sin(E),m=(v,D)=>{const k=v*p-D*f,b=v*f+D*p;return{x:s.x+k,y:s.y+b}},S=I>=B,x=S?(I-B)/2:(B-I)/2;if(x<=0){const v=m(0,0);u.add("flash_operation",{x:v.x,y:i(v.y)})}else{const v=S?{x:-x,y:0}:{x:0,y:-x},D=S?{x,y:0}:{x:0,y:x},k=m(v.x,v.y),b=m(D.x,D.y);u.add("flash_operation",{x:k.x,y:i(k.y)}).add("move_operation",{x:k.x,y:i(k.y)}).add("plot_operation",{x:b.x,y:i(b.y)}).add("flash_operation",{x:b.x,y:i(b.y)})}r.push(...u.build())}else{const C=Jxt({...s,...s.shape!=="circle"?{outer_width:I,outer_height:B}:{}}),Q="rect_ccw_rotation"in s&&typeof s.rect_ccw_rotation=="number"?s.rect_ccw_rotation:void 0,u=BE().add("select_aperture",{aperture_number:hv(r,C)});Q&&u.add("load_rotation",{rotation_degrees:Q}),u.add("flash_operation",{x:s.x,y:i(s.y)}),Q&&u.add("load_rotation",{rotation_degrees:0}),r.push(...u.build())}}}else if(s.type==="pcb_hole"){if(o!=="edgecut")for(const r of[t[gw(o,"soldermask")]]){if(s.hole_shape!=="circle"){console.warn("NOT IMPLEMENTED: drawing gerber for non-round holes");continue}r.push(...BE().add("select_aperture",{aperture_number:hv(r,Txt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}}else if(s.type==="pcb_via"){if(s.layers.includes(o))for(const r of[t[gw(o,"copper")]])r.push(...BE().add("select_aperture",{aperture_number:hv(r,Kxt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}else if(s.type==="pcb_board"&&o==="edgecut"){if(s.pcb_panel_id)continue;const a=t.Edge_Cuts,{width:g,height:c,center:I,outline:l}=s,B=BE().add("select_aperture",{aperture_number:10});if(l&&l.length>2){const C=l.map(E=>({x:E.x,y:i(E.y)})),Q=C[0];B.add("move_operation",Q);for(let E=1;E<C.length;E++)B.add("plot_operation",C[E]);const u=C[C.length-1];(u.x!==Q.x||u.y!==Q.y)&&B.add("plot_operation",Q)}else B.add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});a.push(...B.build())}else if(s.type==="pcb_panel"&&o==="edgecut"){const r=t.Edge_Cuts,a=s,{width:g,height:c,center:I}=a,l=BE().add("select_aperture",{aperture_number:10}).add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});r.push(...l.build())}else if(s.type==="pcb_cutout"){if(o==="edgecut"){const r=t.Edge_Cuts,a=BE().add("select_aperture",{aperture_number:10}),g=s;if(g.shape==="rect"){const{center:c,width:I,height:l,rotation:B,corner_radius:C}=g,Q=I/2,u=l/2,E=Math.max(0,Math.min(C??0,Math.abs(Q),Math.abs(u))),f=(()=>{let m=Rxt();if(B){const S=B*Math.PI/180;m=u1A(S)}return Q1A(XL(c.x,c.y),m)})();if(E>0){const m={x:-Q+E,y:u};let S=Yk(f,m);a.add("move_operation",{x:S.x,y:i(S.y)});const x=D=>{const k=Yk(f,D);a.add("plot_operation",{x:k.x,y:i(k.y)}),S=k},v=D=>{const k=Yk(f,D.point),b=Yk(f,D.center);a.add("set_movement_mode_to_clockwise_circular",{}).add("plot_operation",{x:k.x,y:i(k.y),i:b.x-S.x,j:i(b.y)-i(S.y)}).add("set_movement_mode_to_linear",{}),S=k};x({x:Q-E,y:u}),v({point:{x:Q,y:u-E},center:{x:Q-E,y:u-E}}),x({x:Q,y:-u+E}),v({point:{x:Q-E,y:-u},center:{x:Q-E,y:-u+E}}),x({x:-Q+E,y:-u}),v({point:{x:-Q,y:-u+E},center:{x:-Q+E,y:-u+E}}),x({x:-Q,y:u-E}),v({point:{x:-Q+E,y:u},center:{x:-Q+E,y:u-E}})}else{const S=[{x:-Q,y:u},{x:Q,y:u},{x:Q,y:-u},{x:-Q,y:-u}].map(x=>Yk(f,x));a.add("move_operation",{x:S[0].x,y:i(S[0].y)});for(let x=1;x<S.length;x++)a.add("plot_operation",{x:S[x].x,y:i(S[x].y)});a.add("plot_operation",{x:S[0].x,y:i(S[0].y)})}}else if(g.shape==="circle"){const{center:c,radius:I}=g,l={x:c.x+I,y:c.y},B={x:c.x-I,y:c.y};a.add("move_operation",{x:l.x,y:i(l.y)}).add("set_movement_mode_to_counterclockwise_circular",{}).add("plot_operation",{x:B.x,y:i(B.y),i:-I,j:0}).add("plot_operation",{x:l.x,y:i(l.y),i:I,j:0}).add("set_movement_mode_to_linear",{})}else if(g.shape==="polygon"){const{points:c}=g;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}r.push(...a.build())}}else if(s.type==="pcb_copper_pour"&&o===s.layer){const r=t[gw(o,"copper")],a=BE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{});if(s.shape==="brep"){const{brep_shape:c}=s;if(!c)continue;const{outer_ring:I,inner_rings:l}=c,B=Q=>{if(!Q||Q.vertices.length===0)return;a.add("move_operation",{x:Q.vertices[0].x,y:i(Q.vertices[0].y)});const u=[...Q.vertices,Q.vertices[0]];for(let E=0;E<u.length-1;E++){const p=u[E],f=u[E+1];if(p.bulge&&Math.abs(p.bulge)>1e-9){const m=(A.flip_y_axis?-1:1)*p.bulge;m>0?a.add("set_movement_mode_to_counterclockwise_circular",{}):a.add("set_movement_mode_to_clockwise_circular",{});const S={x:p.x,y:p.y},x={x:f.x,y:f.y},v=x.x-S.x,D=x.y-S.y,k=Math.sqrt(v*v+D*D);if(k<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const b=Math.abs(m),L=4*Math.atan(b);if(Math.abs(Math.sin(L/2))<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const G=k/(2*Math.sin(L/2)),T=(Math.PI-L)/2,q=Math.atan2(D,v),P=m>0?T:-T,V=q+P,z=S.x+G*Math.cos(V),nA=S.y+G*Math.sin(V),rA=z-S.x,QA=nA-S.y;a.add("plot_operation",{x:f.x,y:i(f.y),i:rA,j:A.flip_y_axis?-QA:QA})}else a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)})}},C=Q=>{const{vertices:u}=Q;if(!u||u.length===0)return{vertices:[]};const E=u.length;return{vertices:[...u].reverse().map((m,S)=>{const x=(E-2-S+E)%E,v=u[x].bulge;return{...m,bulge:v?-v:void 0}})}};if(B(C(I)),l)for(const Q of l)B(C(Q))}else if(s.shape==="rect"){const{center:c,width:I,height:l,rotation:B}=s,C=I/2,Q=l/2,u=[{x:-C,y:Q},{x:C,y:Q},{x:C,y:-Q},{x:-C,y:-Q}];let E=Rxt();if(B){const f=B*Math.PI/180;E=u1A(f)}E=Q1A(XL(c.x,c.y),E);const p=u.map(f=>Yk(E,f));a.add("move_operation",{x:p[0].x,y:i(p[0].y)});for(let f=1;f<p.length;f++)a.add("plot_operation",{x:p[f].x,y:i(p[f].y)});a.add("plot_operation",{x:p[0].x,y:i(p[0].y)})}else if(s.shape==="polygon"){const{points:c}=s;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}a.add("end_region_statement",{});const g=a.build();r.push(...g),s.covered_with_solder_mask===!1&&t[gw(o,"soldermask")].push(...g)}for(const o of Object.keys(t))t[o].push(...BE().add("end_of_file",{}).build());return t},s3={},E1A={},qxt;function c_i(){return qxt||(qxt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var A=(function(){function o(s,r){var a=[],g=!0,c=!1,I=void 0;try{for(var l=s[Symbol.iterator](),B;!(g=(B=l.next()).done)&&(a.push(B.value),!(r&&a.length===r));g=!0);}catch(C){c=!0,I=C}finally{try{!g&&l.return&&l.return()}finally{if(c)throw I}}return a}return function(s,r){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return o(s,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();e.default=i,e.parseUnitObj=n;var t=/-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/;function i(o){var s=parseFloat(o),r=o.match(t)||[],a=r.length>0?o.substr(r[0].length).trim():"";return[s,a]}function n(o){var s=i(o),r=A(s,2),a=r[0],g=r[1];return{val:a,unit:g}}})(E1A)),E1A}var Pxt;function I_i(){if(Pxt)return s3;Pxt=1,Object.defineProperty(s3,"__esModule",{value:!0});var e=(function(){function a(g,c){var I=[],l=!0,B=!1,C=void 0;try{for(var Q=g[Symbol.iterator](),u;!(l=(u=Q.next()).done)&&(I.push(u.value),!(c&&I.length===c));l=!0);}catch(E){B=!0,C=E}finally{try{!l&&Q.return&&Q.return()}finally{if(B)throw C}}return I}return function(g,c){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return a(g,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();s3.formatSI=o,s3.unformatSI=r;function A(a){return a&&a.__esModule?a:{default:a}}var t=c_i(),i=A(t),n={24:"Y",21:"Z",18:"E",15:"P",12:"T",9:"G",6:"M",3:"k",0:"","-3":"m","-6":"µ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"};function o(a){if(a===0)return"0";for(var g=Math.abs(a),c=0;g>=1e3&&c<24;)g/=1e3,c+=3;for(;g<1&&c>-24;)g*=1e3,c-=3;var I=a<0?"-":"";return g>1e3?I+g.toFixed(0)+n[c]:I+parseFloat(g.toPrecision(3))+n[c]}var s={Y:1e24,Z:1e21,E:1e18,P:1e15,T:1e12,G:1e9,M:1e6,k:1e3,"":1,m:.001,µ:1e-6,u:1e-6,n:1e-9,p:1e-12,f:1e-15,a:1e-18,z:1e-21,y:1e-24};function r(a){if(a==null||a==="")return NaN;var g=(0,i.default)(a),c=e(g,2),I=c[0],l=c[1],B=s[l];return I*B}return s3}var l_i=I_i(),Q$={exports:{}};/* @license
6666
+ `.trim()}).add("comment",{comment:"APERTURE MACROS END"}).build())};function e_i(e){const A=e.filter(i=>i.type==="pcb_trace"),t={};for(const i of A)for(const n of i.route)n.route_type==="wire"&&(t[n.layer]=t[n.layer]||new Set,t[n.layer].add(n.width));return{top:Array.from(t.top||[]),bottom:Array.from(t.bottom||[])}}function i_i({glayer:e,soup:A,glayer_name:t}){const i=()=>{const s=e.reduce((r,a)=>a.command_code==="ADD"?Math.max(r,a.aperture_number):r,0);return s===0?10:s+1};e.push(...BE().add("comment",{comment:"aperture START LIST"}).build());const n=e_i(A);for(const s of n[t.startsWith("F_")?"top":"bottom"])e.push(...BE().add("define_aperture_template",{aperture_number:i(),standard_template_code:"C",diameter:s}).build());const o=n_i(A,t.startsWith("F_")?"top":"bottom");for(const s of o)e.push(...BE().add("define_aperture_template",{aperture_number:i(),...s}).build());e.push(...BE().add("delete_attribute",{}).add("comment",{comment:"aperture END LIST"}).build())}var Lxt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};throw e.shape==="polygon"?new Error("Polygon SMT pads are drawn as regions, not apertures"):new Error(`Unsupported shape ${e.shape}`)},Uxt=e=>{if("stroke_width"in e)return{standard_template_code:"C",diameter:e.stroke_width};throw new Error(`Provide stroke_width for: ${e}`)},Hxt=e=>{if("font_size"in e)return{standard_template_code:"C",diameter:e.font_size/8};throw new Error(`Provide font_size for: ${e}`)},Yxt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="pill"){if(!("width"in e&&"height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.width>=e.height?{macro_name:"HORZPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.width/2}:{macro_name:"VERTPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.height/2}}throw new Error(`Unsupported shape ${e.shape}`)},Jxt=e=>{if(e.shape==="circle"){if(!("outer_diameter"in e&&"hole_diameter"in e))throw new Error("Invalid circle shape in getApertureConfigFromPcbPlatedHole: missing diameters");return{standard_template_code:"C",diameter:e.outer_diameter}}if(e.shape==="pill"){if(!("outer_width"in e&&"outer_height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.outer_width>e.outer_height?{macro_name:"HORZPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_width/2}:{macro_name:"VERTPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_height/2}}const A=e.shape;if(A==="circular_hole_with_rect_pad"||A==="pill_hole_with_rect_pad"||A==="rotated_pill_hole_with_rect_pad"){if(!("rect_pad_width"in e&&"rect_pad_height"in e))throw new Error(`Invalid ${A} shape in getApertureConfigFromPcbPlatedHole: missing dimensions`);return{standard_template_code:"R",x_size:e.rect_pad_width,y_size:e.rect_pad_height}}throw new Error(`Unsupported shape in getApertureConfigFromPcbPlatedHole: ${e.shape}`)},Txt=e=>{if(!("hole_diameter"in e))throw new Error(`Invalid shape called in getApertureConfigFromCirclePcbHole: ${e.hole_shape}`);return{standard_template_code:"C",diameter:e.hole_diameter}},Kxt=e=>{if(!("outer_diameter"in e))throw new Error("outer_diameter not specified in getApertureConfigFromPcbVia");return{standard_template_code:"C",diameter:e.outer_diameter}};function n_i(e,A){const t=[],i=new Set,n=o=>{const s=Pwi(o);i.has(s)||(t.push(o),i.add(s))};for(const o of e)o.type==="pcb_smtpad"?o.layer===A&&o.shape!=="polygon"&&n(Lxt(o)):o.type==="pcb_solder_paste"?o.layer===A&&n(Yxt(o)):o.type==="pcb_plated_hole"?o.layers.includes(A)&&n(Jxt(o)):o.type==="pcb_hole"?o.hole_shape==="circle"?n(Txt(o)):console.warn("NOT IMPLEMENTED: drawing gerber for non circle holes"):o.type==="pcb_via"?n(Kxt(o)):o.type==="pcb_silkscreen_path"?n(Uxt(o)):o.type==="pcb_silkscreen_text"&&n(Hxt(o));return t}var hv=(e,A)=>{let t;if("trace_width"in A){const i=A.trace_width;t=e.find(n=>"standard_template_code"in n&&n.command_code==="ADD"&&n.standard_template_code==="C"&&n.diameter===i)}else("standard_template_code"in A||"macro_name"in A)&&(t=e.find(i=>i.command_code==="ADD"&&Object.keys(A).every(n=>i[n]===A[n])));if(!t)throw new Error(`Aperture not found for search params ${JSON.stringify(A)}`);return t.aperture_number},o_i={version:"0.0.41"},s_i={"top-copper":"Copper,L1,Top","bottom-copper":"Copper,L2,Bot","top-soldermask":"Soldermask,Top","bottom-soldermask":"Soldermask,Bot","top-silkscreen":"Legend,Top","bottom-silkscreen":"Legend,Bot","top-paste":"Paste,Top","bottom-paste":"Paste,Bot",edgecut:"Profile,NP"},Qv=e=>{const A=s_i[e.layer_type?`${e.layer}-${e.layer_type}`:e.layer];return BE().add("add_attribute_on_file",{attribute_name:"GenerationSoftware",attribute_value:`tscircuit,circuit-json-to-gerber,${o_i.version}`}).add("add_attribute_on_file",{attribute_name:"CreationDate",attribute_value:new Date().toISOString()}).add("add_attribute_on_file",{attribute_name:"SameCoordinates",attribute_value:"Original"}).add("add_attribute_on_file",{attribute_name:"FileFunction",attribute_value:A}).$if(e.layer!=="edgecut",t=>t.add("add_attribute_on_file",{attribute_name:"FilePolarity",attribute_value:e.layer_type==="soldermask"?"Negative":"Positive"})).add("format_specification",{}).add("set_unit",{unit:"MM"}).add("comment",{comment:"Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)"}).add("comment",{comment:`Created by tscircuit (builder) date ${new Date().toISOString()}`}).add("set_movement_mode_to_linear",{}).add("set_layer_polarity",{polarity:"D"}).add("create_arc",{}).build()},r_i={top:"F_",bottom:"B_"},a_i={copper:"Cu",silkscreen:"SilkScreen",soldermask:"Mask",mask:"Mask",paste:"Paste"},gw=(e,A)=>e==="edgecut"?"Edge_Cuts":`${r_i[e]}${a_i[A]}`,g_i=(e,A={})=>{A.flip_y_axis??=!1;const t={F_Cu:Qv({layer:"top",layer_type:"copper"}),F_SilkScreen:Qv({layer:"top",layer_type:"silkscreen"}),F_Mask:Qv({layer:"top",layer_type:"soldermask"}),F_Paste:Qv({layer:"top",layer_type:"paste"}),B_Cu:Qv({layer:"bottom",layer_type:"copper"}),B_SilkScreen:Qv({layer:"bottom",layer_type:"silkscreen"}),B_Mask:Qv({layer:"bottom",layer_type:"soldermask"}),B_Paste:Qv({layer:"bottom",layer_type:"paste"}),Edge_Cuts:Qv({layer:"edgecut"})};for(const o of["F_Cu","B_Cu","F_Mask","B_Mask","F_Paste","B_Paste","F_SilkScreen","B_SilkScreen"]){const s=t[o];t_i(s),i_i({soup:e,glayer:s,glayer_name:o})}t.Edge_Cuts.push(...BE().add("define_aperture_template",{aperture_number:10,standard_template_code:"C",diameter:.05}).build());const i=o=>A.flip_y_axis?-o:o,n=new Map;for(const o of e)if(o.type==="pcb_plated_hole"&&"x"in o&&typeof o.x=="number"&&"y"in o&&typeof o.y=="number"){const s="ccw_rotation"in o&&typeof o.ccw_rotation=="number"?o.ccw_rotation:0;n.set(`${o.x}:${o.y}`,s)}for(const o of["top","bottom","edgecut"])for(const s of e)if(s.type==="pcb_trace"){const{route:r}=s;for(const[a,g]of A_i(r))if(a.route_type==="wire"&&a.layer===o){const c=t[gw(o,"copper")];c.push(...BE().add("select_aperture",{aperture_number:hv(c,{trace_width:a.width})}).add("move_operation",{x:a.x,y:i(a.y)}).add("plot_operation",{x:g.x,y:i(g.y)}).build())}}else if(s.type==="pcb_silkscreen_path"){if(s.layer===o){const r=t[gw(o,"silkscreen")],a=Uxt(s),g=BE().add("select_aperture",{aperture_number:hv(r,a)});s.route.length>0&&g.add("move_operation",{x:s.route[0].x,y:i(s.route[0].y)});for(let c=1;c<s.route.length;c++)g.add("plot_operation",{x:s.route[c].x,y:i(s.route[c].y)});r.push(...g.build())}}else if(s.type==="pcb_silkscreen_text"){if(s.layer===o){const a=t[gw(o,"silkscreen")],g=Hxt(s),c=BE().add("select_aperture",{aperture_number:hv(a,g)});let I=s.anchor_position.x,l=s.anchor_position.y;const B=s.font_size*.7,C=B*.4,Q=B*.5,u=s.text.split("").reduce((k,b)=>b===" "?k+Q+C:k+B+C,0)-C,E=B;switch(s.anchor_alignment||(()=>{const k=s.anchor_side;if(k)switch(k){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right"}})()||"center"){case"top_left":break;case"top_center":I-=u/2;break;case"top_right":I-=u;break;case"center_right":l-=E/2;break;case"center_left":I-=u,l-=E/2;break;case"bottom_left":l-=E;break;case"bottom_center":I-=u/2,l-=E;break;case"bottom_right":I-=u,l-=E;break;default:I-=u/2,l-=E/2;break}let f=I;const m=l;let S=s.ccw_rotation||0;const x=f+u/2,v=m+E/2,D=[];if(s.layer==="bottom"&&(D.push(XL(x,v),{a:-1,b:0,c:0,d:1,e:0,f:0},XL(-x,-v)),S=-S),S){const k=S*Math.PI/180;D.push(XL(x,v),u1A(k),XL(-x,-v))}for(const k of s.text.toUpperCase()){if(k===" "){f+=Q+C;continue}const b=h1A[k]||[];for(const L of b){const G=f+L.x1*B,T=m+L.y1*B,q=f+L.x2*B,P=m+L.y2*B;let V={x:G,y:T},z={x:q,y:P};if(D.length>0){const nA=Q1A(...D);V=Yk(nA,V),z=Yk(nA,z)}c.add("move_operation",{x:V.x,y:i(V.y)}),c.add("plot_operation",{x:z.x,y:i(z.y)})}f+=B+C}a.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape!=="polygon"){if(s.layer===o)for(const r of[t[gw(o,"copper")],t[gw(o,"soldermask")]]){const a=Lxt(s),g=hv(r,a),c=BE().add("select_aperture",{aperture_number:g});s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:s.ccw_rotation}),c.add("flash_operation",{x:s.x,y:i(s.y)}),s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape==="polygon"){if(s.layer===o){const r=[t[gw(o,"copper")]];(!("is_covered_with_solder_mask"in s)||s.is_covered_with_solder_mask!==!1)&&r.push(t[gw(o,"soldermask")]);for(const a of r){const g=BE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{}),{points:c}=s;if(c&&c.length>0){g.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)g.add("plot_operation",{x:c[I].x,y:i(c[I].y)});g.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}g.add("end_region_statement",{}),a.push(...g.build())}}}else if(s.type==="pcb_solder_paste"){if(s.layer===o){const r=t[gw(o,"paste")],a=hv(r,Yxt(s)),g="ccw_rotation"in s&&typeof s.ccw_rotation=="number"?s.ccw_rotation:n.get(`${s.x}:${s.y}`)??0,c=BE().add("select_aperture",{aperture_number:a});g&&c.add("load_rotation",{rotation_degrees:g}),c.add("flash_operation",{x:s.x,y:i(s.y)}),g&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_plated_hole"){if(s.layers.includes(o))for(const r of[t[gw(o,"copper")],t[gw(o,"soldermask")]]){const a="hole_width"in s&&typeof s.hole_width=="number"?s.hole_width:0,g="hole_height"in s&&typeof s.hole_height=="number"?s.hole_height:0,c=[a];"outer_width"in s&&typeof s.outer_width=="number"&&c.push(s.outer_width),"rect_pad_width"in s&&typeof s.rect_pad_width=="number"&&c.push(s.rect_pad_width);const I=Math.max(...c),l=[g];"outer_height"in s&&typeof s.outer_height=="number"&&l.push(s.outer_height),"rect_pad_height"in s&&typeof s.rect_pad_height=="number"&&l.push(s.rect_pad_height);const B=Math.max(...l);if(s.shape==="pill"){const C={standard_template_code:"C",diameter:Math.min(I,B)};let Q;try{Q=hv(r,C)}catch{Q=Math.max(...r.filter(v=>"aperture_number"in v).map(v=>v.aperture_number),9)+1,r.push(...BE().add("define_aperture_template",{aperture_number:Q,...C}).build())}const u=BE().add("select_aperture",{aperture_number:Q}),E=(s.ccw_rotation??0)*Math.PI/180,p=Math.cos(E),f=Math.sin(E),m=(v,D)=>{const k=v*p-D*f,b=v*f+D*p;return{x:s.x+k,y:s.y+b}},S=I>=B,x=S?(I-B)/2:(B-I)/2;if(x<=0){const v=m(0,0);u.add("flash_operation",{x:v.x,y:i(v.y)})}else{const v=S?{x:-x,y:0}:{x:0,y:-x},D=S?{x,y:0}:{x:0,y:x},k=m(v.x,v.y),b=m(D.x,D.y);u.add("flash_operation",{x:k.x,y:i(k.y)}).add("move_operation",{x:k.x,y:i(k.y)}).add("plot_operation",{x:b.x,y:i(b.y)}).add("flash_operation",{x:b.x,y:i(b.y)})}r.push(...u.build())}else{const C=Jxt({...s,...s.shape!=="circle"?{outer_width:I,outer_height:B}:{}}),Q="rect_ccw_rotation"in s&&typeof s.rect_ccw_rotation=="number"?s.rect_ccw_rotation:void 0,u=BE().add("select_aperture",{aperture_number:hv(r,C)});Q&&u.add("load_rotation",{rotation_degrees:Q}),u.add("flash_operation",{x:s.x,y:i(s.y)}),Q&&u.add("load_rotation",{rotation_degrees:0}),r.push(...u.build())}}}else if(s.type==="pcb_hole"){if(o!=="edgecut")for(const r of[t[gw(o,"soldermask")]]){if(s.hole_shape!=="circle"){console.warn("NOT IMPLEMENTED: drawing gerber for non-round holes");continue}r.push(...BE().add("select_aperture",{aperture_number:hv(r,Txt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}}else if(s.type==="pcb_via"){if(s.layers.includes(o))for(const r of[t[gw(o,"copper")]])r.push(...BE().add("select_aperture",{aperture_number:hv(r,Kxt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}else if(s.type==="pcb_board"&&o==="edgecut"){if(s.pcb_panel_id)continue;const a=t.Edge_Cuts,{width:g,height:c,center:I,outline:l}=s,B=BE().add("select_aperture",{aperture_number:10});if(l&&l.length>2){const C=l.map(E=>({x:E.x,y:i(E.y)})),Q=C[0];B.add("move_operation",Q);for(let E=1;E<C.length;E++)B.add("plot_operation",C[E]);const u=C[C.length-1];(u.x!==Q.x||u.y!==Q.y)&&B.add("plot_operation",Q)}else B.add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});a.push(...B.build())}else if(s.type==="pcb_panel"&&o==="edgecut"){const r=t.Edge_Cuts,a=s,{width:g,height:c,center:I}=a,l=BE().add("select_aperture",{aperture_number:10}).add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});r.push(...l.build())}else if(s.type==="pcb_cutout"){if(o==="edgecut"){const r=t.Edge_Cuts,a=BE().add("select_aperture",{aperture_number:10}),g=s;if(g.shape==="rect"){const{center:c,width:I,height:l,rotation:B,corner_radius:C}=g,Q=I/2,u=l/2,E=Math.max(0,Math.min(C??0,Math.abs(Q),Math.abs(u))),f=(()=>{let m=Rxt();if(B){const S=B*Math.PI/180;m=u1A(S)}return Q1A(XL(c.x,c.y),m)})();if(E>0){const m={x:-Q+E,y:u};let S=Yk(f,m);a.add("move_operation",{x:S.x,y:i(S.y)});const x=D=>{const k=Yk(f,D);a.add("plot_operation",{x:k.x,y:i(k.y)}),S=k},v=D=>{const k=Yk(f,D.point),b=Yk(f,D.center);a.add("set_movement_mode_to_clockwise_circular",{}).add("plot_operation",{x:k.x,y:i(k.y),i:b.x-S.x,j:i(b.y)-i(S.y)}).add("set_movement_mode_to_linear",{}),S=k};x({x:Q-E,y:u}),v({point:{x:Q,y:u-E},center:{x:Q-E,y:u-E}}),x({x:Q,y:-u+E}),v({point:{x:Q-E,y:-u},center:{x:Q-E,y:-u+E}}),x({x:-Q+E,y:-u}),v({point:{x:-Q,y:-u+E},center:{x:-Q+E,y:-u+E}}),x({x:-Q,y:u-E}),v({point:{x:-Q+E,y:u},center:{x:-Q+E,y:u-E}})}else{const S=[{x:-Q,y:u},{x:Q,y:u},{x:Q,y:-u},{x:-Q,y:-u}].map(x=>Yk(f,x));a.add("move_operation",{x:S[0].x,y:i(S[0].y)});for(let x=1;x<S.length;x++)a.add("plot_operation",{x:S[x].x,y:i(S[x].y)});a.add("plot_operation",{x:S[0].x,y:i(S[0].y)})}}else if(g.shape==="circle"){const{center:c,radius:I}=g,l={x:c.x+I,y:c.y},B={x:c.x-I,y:c.y};a.add("move_operation",{x:l.x,y:i(l.y)}).add("set_movement_mode_to_counterclockwise_circular",{}).add("plot_operation",{x:B.x,y:i(B.y),i:-I,j:0}).add("plot_operation",{x:l.x,y:i(l.y),i:I,j:0}).add("set_movement_mode_to_linear",{})}else if(g.shape==="polygon"){const{points:c}=g;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}r.push(...a.build())}}else if(s.type==="pcb_copper_pour"&&o===s.layer){const r=t[gw(o,"copper")],a=BE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{});if(s.shape==="brep"){const{brep_shape:c}=s;if(!c)continue;const{outer_ring:I,inner_rings:l}=c,B=Q=>{if(!Q||Q.vertices.length===0)return;a.add("move_operation",{x:Q.vertices[0].x,y:i(Q.vertices[0].y)});const u=[...Q.vertices,Q.vertices[0]];for(let E=0;E<u.length-1;E++){const p=u[E],f=u[E+1];if(p.bulge&&Math.abs(p.bulge)>1e-9){const m=(A.flip_y_axis?-1:1)*p.bulge;m>0?a.add("set_movement_mode_to_counterclockwise_circular",{}):a.add("set_movement_mode_to_clockwise_circular",{});const S={x:p.x,y:p.y},x={x:f.x,y:f.y},v=x.x-S.x,D=x.y-S.y,k=Math.sqrt(v*v+D*D);if(k<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const b=Math.abs(m),L=4*Math.atan(b);if(Math.abs(Math.sin(L/2))<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const G=k/(2*Math.sin(L/2)),T=(Math.PI-L)/2,q=Math.atan2(D,v),P=m>0?T:-T,V=q+P,z=S.x+G*Math.cos(V),nA=S.y+G*Math.sin(V),rA=z-S.x,QA=nA-S.y;a.add("plot_operation",{x:f.x,y:i(f.y),i:rA,j:A.flip_y_axis?-QA:QA})}else a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)})}},C=Q=>{const{vertices:u}=Q;if(!u||u.length===0)return{vertices:[]};const E=u.length;return{vertices:[...u].reverse().map((m,S)=>{const x=(E-2-S+E)%E,v=u[x].bulge;return{...m,bulge:v?-v:void 0}})}};if(B(C(I)),l)for(const Q of l)B(C(Q))}else if(s.shape==="rect"){const{center:c,width:I,height:l,rotation:B}=s,C=I/2,Q=l/2,u=[{x:-C,y:Q},{x:C,y:Q},{x:C,y:-Q},{x:-C,y:-Q}];let E=Rxt();if(B){const f=B*Math.PI/180;E=u1A(f)}E=Q1A(XL(c.x,c.y),E);const p=u.map(f=>Yk(E,f));a.add("move_operation",{x:p[0].x,y:i(p[0].y)});for(let f=1;f<p.length;f++)a.add("plot_operation",{x:p[f].x,y:i(p[f].y)});a.add("plot_operation",{x:p[0].x,y:i(p[0].y)})}else if(s.shape==="polygon"){const{points:c}=s;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}a.add("end_region_statement",{});const g=a.build();r.push(...g),s.covered_with_solder_mask===!1&&t[gw(o,"soldermask")].push(...g)}for(const o of Object.keys(t))t[o].push(...BE().add("end_of_file",{}).build());return t},s3={},E1A={},qxt;function c_i(){return qxt||(qxt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var A=(function(){function o(s,r){var a=[],g=!0,c=!1,I=void 0;try{for(var l=s[Symbol.iterator](),B;!(g=(B=l.next()).done)&&(a.push(B.value),!(r&&a.length===r));g=!0);}catch(C){c=!0,I=C}finally{try{!g&&l.return&&l.return()}finally{if(c)throw I}}return a}return function(s,r){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return o(s,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();e.default=i,e.parseUnitObj=n;var t=/-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/;function i(o){var s=parseFloat(o),r=o.match(t)||[],a=r.length>0?o.substr(r[0].length).trim():"";return[s,a]}function n(o){var s=i(o),r=A(s,2),a=r[0],g=r[1];return{val:a,unit:g}}})(E1A)),E1A}var Pxt;function I_i(){if(Pxt)return s3;Pxt=1,Object.defineProperty(s3,"__esModule",{value:!0});var e=(function(){function a(g,c){var I=[],l=!0,B=!1,C=void 0;try{for(var Q=g[Symbol.iterator](),u;!(l=(u=Q.next()).done)&&(I.push(u.value),!(c&&I.length===c));l=!0);}catch(E){B=!0,C=E}finally{try{!l&&Q.return&&Q.return()}finally{if(B)throw C}}return I}return function(g,c){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return a(g,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();s3.formatSI=o,s3.unformatSI=r;function A(a){return a&&a.__esModule?a:{default:a}}var t=c_i(),i=A(t),n={24:"Y",21:"Z",18:"E",15:"P",12:"T",9:"G",6:"M",3:"k",0:"","-3":"m","-6":"µ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"};function o(a){if(a===0)return"0";for(var g=Math.abs(a),c=0;g>=1e3&&c<24;)g/=1e3,c+=3;for(;g<1&&c>-24;)g*=1e3,c-=3;var I=a<0?"-":"";return g>1e3?I+g.toFixed(0)+n[c]:I+parseFloat(g.toPrecision(3))+n[c]}var s={Y:1e24,Z:1e21,E:1e18,P:1e15,T:1e12,G:1e9,M:1e6,k:1e3,"":1,m:.001,µ:1e-6,u:1e-6,n:1e-9,p:1e-12,f:1e-15,a:1e-18,z:1e-21,y:1e-24};function r(a){if(a==null||a==="")return NaN;var g=(0,i.default)(a),c=e(g,2),I=c[0],l=c[1],B=s[l];return I*B}return s3}var l_i=I_i(),Q$={exports:{}};/* @license
6667
6667
  Papa Parse
6668
6668
  v5.5.3
6669
6669
  https://github.com/mholt/PapaParse
@@ -5874,7 +5874,7 @@ $1`).replace(/>(\s*)(?=<!--\s*\/)/g,"> ")}}});function Lut(e,A,t){if(!A||!t)retu
5874
5874
  * Copyright (c) 2013-2015, 2017, Jon Schlinkert.
5875
5875
  * Released under the MIT License.
5876
5876
  *)
5877
- */const YXe=({containerClassName:e,...A})=>{const t=cA.useRef(null),[i,n]=cA.useState(620);return cA.useLayoutEffect(()=>{const o=()=>{if(t.current){const r=t.current.clientHeight,a=window.innerHeight;n(Math.min(Math.max(r,620),a))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),iA.jsx("div",{ref:t,className:e||"rf-w-full rf-h-full",children:iA.jsx(HXe,{...A,height:i})})},JXe='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.\\!rf-z-\\[200\\]{z-index:200!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-z-\\[101\\]{z-index:101}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-6{margin-left:1.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mr-4{margin-right:1rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-20{height:5rem}.rf-h-24{height:6rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[calc\\(100vh-60px\\)\\]{height:calc(100vh - 60px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-20{max-height:5rem}.rf-max-h-24{max-height:6rem}.rf-max-h-28{max-height:7rem}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[70vh\\]{max-height:70vh}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[100px\\]{min-height:100px}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.\\!rf-w-\\[95vw\\]{width:95vw!important}.rf-w-1{width:.25rem}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-24{width:6rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-80{width:20rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-32{min-width:8rem}.rf-min-w-80{min-width:20rem}.rf-min-w-96{min-width:24rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[600px\\]{min-width:600px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[95vw\\]{max-width:95vw!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-64{max-width:16rem}.rf-max-w-96{max-width:24rem}.rf-max-w-\\[1000px\\]{max-width:1000px}.rf-max-w-\\[150px\\]{max-width:150px}.rf-max-w-\\[200px\\]{max-width:200px}.rf-max-w-\\[40\\%\\]{max-width:40%}.rf-max-w-\\[600px\\]{max-width:600px}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-rotate-90{--tw-rotate:90deg}.rf-rotate-90,.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-baseline{align-items:baseline}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.\\!rf-overflow-hidden{overflow:hidden!important}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rf-whitespace-normal{white-space:normal}.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-break-all{word-break:break-all}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-l-2{border-left-width:2px}.rf-border-l-4{border-left-width:4px}.rf-border-t{border-top-width:1px}.rf-border-none{border-style:none}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-300{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-100{--tw-border-opacity:1;border-color:rgb(255 237 213/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-border-t-blue-600{--tw-border-opacity:1;border-top-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.rf-bg-amber-50\\/30{background-color:rgba(255,251,235,.3)}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-50\\/30{background-color:rgba(239,246,255,.3)}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-orange-50\\/50{background-color:rgba(255,247,237,.5)}.rf-bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-50\\/50{background-color:hsla(0,86%,97%,.5)}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-amber-500{fill:#f59e0b}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-1{padding-bottom:.25rem}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pb-px{padding-bottom:1px}.rf-pl-10{padding-left:2.5rem}.rf-pl-11{padding-left:2.75rem}.rf-pl-12{padding-left:3rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-1{padding-top:.25rem}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-\\[0\\.95rem\\]{line-height:.95rem}.rf-leading-\\[1rem\\]{line-height:1rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-400{--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-700{--tw-text-opacity:1;color:rgb(194 65 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.rf-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.rf-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.rf-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-70{opacity:.7}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-150{transition-duration:.15s}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-150{animation-duration:.15s}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-orange-100:hover{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-800:hover{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group:hover .group-hover\\:rf-opacity-100,.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.rf-peer:disabled~.peer-disabled\\:rf-cursor-not-allowed{cursor:not-allowed}.rf-peer:disabled~.peer-disabled\\:rf-opacity-70{opacity:.7}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-gray-700:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:rf-bg-gray-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-gray-500:is(.rf-dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-mt-4{margin-top:1rem}.sm\\:rf-block{display:block}.sm\\:rf-inline{display:inline}.sm\\:rf-grid{display:grid}.sm\\:rf-hidden{display:none}.sm\\:rf-h-5{height:1.25rem}.sm\\:rf-w-1\\/2{width:50%}.sm\\:rf-w-5{width:1.25rem}.sm\\:rf-w-\\[90vw\\]{width:90vw}.sm\\:rf-w-auto{width:auto}.sm\\:rf-max-w-\\[500px\\]{max-width:500px}.sm\\:rf-max-w-md{max-width:28rem}.sm\\:rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:rf-grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-gap-4{gap:1rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-justify-self-end{justify-self:end}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-p-3{padding:.75rem}.sm\\:rf-p-6{padding:1.5rem}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-right{text-align:right}.sm\\:rf-text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:rf-text-base{font-size:1rem;line-height:1.5rem}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-w-auto{width:auto}.md\\:rf-max-w-\\[660px\\]{max-width:660px}.md\\:rf-max-w-lg{max-width:32rem}.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:rf-p-8{padding:2rem}.md\\:rf-py-8{padding-bottom:2rem;padding-top:2rem}.md\\:rf-text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width:1024px){.lg\\:rf-max-w-\\[720px\\]{max-width:720px}.lg\\:rf-max-w-xl{max-width:36rem}}@media (min-width:1280px){.xl\\:rf-max-w-\\[800px\\]{max-width:800px}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',_z=()=>{cA.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const A=document.createElement("style");A.setAttribute("data-styles","tscircuit-runframe"),A.textContent=JXe,document.head.appendChild(A)},[])},TXe=e=>{cA.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])};function DL(e,A){const[t,i]=cA.useState(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):A}catch(n){return console.error("Error reading from localStorage:",n),A}});return cA.useEffect(()=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error writing to localStorage:",n)}},[e,t]),[t,i]}const tEt=e=>`hsl(${Om.indexOf(e)*137.5%360}, 70%, 50%)`,KXe=({phaseTimings:e})=>{if(!e)return null;const A=Object.values(e).reduce((t,i)=>t+i,0);return iA.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[iA.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:Om.map(t=>{const i=e[t]||0,n=i/A*100;return iA.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${n}%`,backgroundColor:tEt(t)},children:iA.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),iA.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",A.toFixed(2),"ms"]})]})},qXe=e=>{if(e instanceof Blob)return e;if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},PXe=({renderLog:e,onRerunWithDebug:A})=>{const[t,i]=cA.useState("chronological"),[n,o]=cA.useState(""),s=[{value:"",label:"None"},{value:"DEBUG=Group_doInitialSchematicTraceRender",label:"DEBUG=Group_doInitialSchematicTraceRender"},{value:"DEBUG=Group_doInitialSchematicLayoutMatchpack",label:"DEBUG=Group_doInitialSchematicLayoutMatchpack"},{value:"DEBUG=Group_doInitialPcbLayoutPack",label:"DEBUG=Group_doInitialPcbLayoutPack"}];if(!e)return iA.jsxs("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:[iA.jsx("div",{className:"rf-mb-4",children:"No render log, make sure this tab is open when you render"}),A&&iA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[iA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>iA.jsx("option",{value:g.value,children:g.label},g.value))}),iA.jsx(uC,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]})]});const r=Object.entries(e?.phaseTimings??{});t==="chronological"?r.sort((g,c)=>Om.indexOf(g[0])-Om.indexOf(c[0])):r.sort((g,c)=>c[1]-g[1]);const a=r.reduce((g,[c,I])=>g+I,0);return iA.jsxs("div",{className:"rf-bg-white",children:[iA.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center rf-mb-4",children:[iA.jsx("div",{children:"Render Logs"}),iA.jsxs("div",{className:"rf-flex rf-gap-4 rf-items-center",children:[A&&iA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[iA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>iA.jsx("option",{value:g.value,children:g.label},g.value))}),iA.jsx(uC,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]}),iA.jsx("div",{className:"rf-flex rf-gap-2 rf-items-center",children:iA.jsxs("select",{onChange:g=>{if(g.target.value){const c=e?.debugOutputs?.find(I=>I.name===g.target.value);if(c){const I=qXe(c.content),l=I instanceof Blob?I:new Blob([I],{type:"text/plain"}),B=URL.createObjectURL(l),C=document.createElement("a");C.href=B,C.download=`debug-${c.name}.txt`,document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(B)}g.target.value=""}},disabled:!e?.debugOutputs||e.debugOutputs.length===0,className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white disabled:rf-opacity-50 disabled:rf-cursor-not-allowed",children:[iA.jsx("option",{value:"",children:"Download Debug Output"}),e?.debugOutputs?.map(g=>iA.jsx("option",{value:g.name,children:g.name},g.name))]})}),iA.jsxs("div",{className:"rf-flex rf-text-xs rf-items-center",children:[iA.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),iA.jsxs("select",{value:t,onChange:g=>i(g.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[iA.jsx("option",{value:"chronological",children:"Phase Order"}),iA.jsx("option",{value:"longest",children:"Duration"})]})]})]})]}),iA.jsx(KXe,{phaseTimings:e.phaseTimings}),iA.jsxs("table",{className:"rf-w-full rf-text-xs",children:[iA.jsx("thead",{children:iA.jsxs("tr",{children:[iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),iA.jsx("tbody",{children:r.map(([g,c])=>iA.jsxs("tr",{children:[iA.jsx("td",{className:"rf-p-2",children:Om.indexOf(g)}),iA.jsx("td",{className:"rf-p-2",children:g}),iA.jsx("td",{className:"rf-p-2",children:iA.jsx("div",{className:"rf-w-8",children:iA.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:tEt(g),width:`${c/a*100}%`}})})}),iA.jsx("td",{className:"rf-p-2",children:iA.jsxs("div",{className:"rf-flex w-full",children:[iA.jsxs("span",{className:"rf-flex-grow",children:[c,"ms"]}),iA.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(c/a*100).toFixed(1),"%"]})]})})]},g))})]})]})},eEt=({errorMessage:e,errorStack:A,circuitJsonErrors:t})=>{cA.useEffect(()=>{if(e){const i=new Error(e);A&&(i.stack=A);try{z9.captureException(i)}catch{}}},[e,A]),cA.useEffect(()=>{if(t&&t.length>0)for(const i of t){const n=new Error(i.message||"Circuit JSON Error");i.stack&&(n.stack=i.stack);try{z9.captureException(n,{error_type:i.type})}catch{}}},[t])},iEt="0.0.1320",OXe={version:iEt},xz=X5A()($5A(e=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:A=>{e({lastRunEvalVersion:A})}}),{name:"runframe-runner-store"})),WXe=e=>{const[A,t]=cA.useState([]),[i,n]=cA.useState(null),[o,s]=cA.useState(""),[r,a]=DL("eval-version-selection",null),g=xz(B=>B.setLastRunEvalVersion),c=xz(B=>B.lastRunEvalVersion);return cA.useEffect(()=>{e&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(B=>B.json()).then(B=>{if(Array.isArray(B?.versions)){let C=[...B.versions];B.tags?.latest&&(n(B.tags.latest),C=C.filter(h=>h!==B.tags.latest)),t(C)}}).catch(()=>{})},[e]),cA.useEffect(()=>{e&&(r?(window.TSCIRCUIT_LATEST_EVAL_VERSION=r,g(r)):i&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=i,g(i)))},[e,r,i]),{versions:cA.useMemo(()=>A.filter(B=>B.includes(o)).slice(0,50),[A,o]),latestVersion:i,lastRunEvalVersion:c,search:o,setSearch:s,selectVersion:B=>{a(B),s("")}}},ZXe=({snippetNames:e,onSelect:A,onCancel:t,isOpen:i})=>{const[n,o]=cA.useState(""),[s,r]=cA.useState("");if(!i)return null;const a=e.filter(I=>I.toLowerCase().includes(s.toLowerCase())),g=s&&!e.includes(s),c=I=>{I.key==="Enter"&&(a.length===1?o(a[0]):g&&o(s))};return iA.jsx("div",{className:"rf-fixed rf-inset-0 rf-bg-black rf-bg-opacity-50 rf-flex rf-items-center rf-justify-center rf-z-[100]",children:iA.jsxs("div",{className:"rf-bg-white rf-rounded-lg rf-p-6 rf-w-96",children:[iA.jsx("h2",{className:"rf-text-lg rf-font-semibold rf-mb-4",children:"Select Snippet"}),iA.jsx("input",{type:"text",className:"rf-w-full rf-px-4 rf-py-2 rf-border rf-rounded rf-mb-4",placeholder:"Search snippets or new snippet name...",value:s,onChange:I=>r(I.target.value),onKeyDown:c}),iA.jsxs("div",{className:"rf-h-60 rf-overflow-y-auto",children:[a.map(I=>iA.jsx("button",{type:"button",className:`w-full text-left px-4 py-2 rounded hover:bg-gray-100 ${n===I?"bg-blue-50":""}`,onClick:()=>o(I),children:I},I)),g&&iA.jsxs("button",{type:"button",className:`w-full text-left px-4 py-2 rounded hover:bg-gray-100 text-blue-500 ${n===s?"bg-blue-50":""}`,onClick:()=>o(s),children:['Create new "',s,'"']})]}),iA.jsxs("div",{className:"rf-mt-4 rf-flex rf-justify-end rf-gap-2",children:[iA.jsx("button",{type:"button",className:"rf-px-4 rf-py-2 rf-text-gray-600 rf-hover:text-gray-800",onClick:t,children:"Cancel"}),iA.jsx("button",{type:"button",className:"rf-px-4 rf-py-2 rf-bg-blue-500 rf-text-white rf-rounded rf-hover:bg-blue-600 rf-disabled:opacity-50",onClick:()=>n&&A(n),disabled:!n,children:n===s?`Create "${n}"`:`Save to ${n}`})]})]})})},VXe=e=>{const A=cA.useRef(null),t=Vf(i=>i.recentEvents);cA.useEffect(()=>{if(t.length===0)return;const i=t[0];i.event_id!==A.current&&(e(i),A.current=i.event_id)},[t,e])};var bz="Dialog",[nEt,oEt]=Zx(bz),[jXe,ox]=nEt(bz),sEt=e=>{const{__scopeDialog:A,children:t,open:i,defaultOpen:n,onOpenChange:o,modal:s=!0}=e,r=cA.useRef(null),a=cA.useRef(null),[g,c]=VR({prop:i,defaultProp:n??!1,onChange:o,caller:bz});return iA.jsx(jXe,{scope:A,triggerRef:r,contentRef:a,contentId:wy(),titleId:wy(),descriptionId:wy(),open:g,onOpenChange:c,onOpenToggle:cA.useCallback(()=>c(I=>!I),[c]),modal:s,children:t})};sEt.displayName=bz;var rEt="DialogTrigger",aEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(rEt,t),o=IE(A,n.triggerRef);return iA.jsx(Dc.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":CDA(n.open),...i,ref:o,onClick:Qr(e.onClick,n.onOpenToggle)})});aEt.displayName=rEt;var lDA="DialogPortal",[zXe,gEt]=nEt(lDA,{forceMount:void 0}),cEt=e=>{const{__scopeDialog:A,forceMount:t,children:i,container:n}=e,o=ox(lDA,A);return iA.jsx(zXe,{scope:A,forceMount:t,children:cA.Children.map(i,s=>iA.jsx(UD,{present:t||o.open,children:iA.jsx(zV,{asChild:!0,container:n,children:s})}))})};cEt.displayName=lDA;var Sz="DialogOverlay",IEt=cA.forwardRef((e,A)=>{const t=gEt(Sz,e.__scopeDialog),{forceMount:i=t.forceMount,...n}=e,o=ox(Sz,e.__scopeDialog);return o.modal?iA.jsx(UD,{present:i||o.open,children:iA.jsx($Xe,{...n,ref:A})}):null});IEt.displayName=Sz;var XXe=ZR("DialogOverlay.RemoveScroll"),$Xe=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(Sz,t);return iA.jsx(oj,{as:XXe,allowPinchZoom:!0,shards:[n.contentRef],children:iA.jsx(Dc.div,{"data-state":CDA(n.open),...i,ref:A,style:{pointerEvents:"auto",...i.style}})})}),iN="DialogContent",lEt=cA.forwardRef((e,A)=>{const t=gEt(iN,e.__scopeDialog),{forceMount:i=t.forceMount,...n}=e,o=ox(iN,e.__scopeDialog);return iA.jsx(UD,{present:i||o.open,children:o.modal?iA.jsx(A7e,{...n,ref:A}):iA.jsx(t7e,{...n,ref:A})})});lEt.displayName=iN;var A7e=cA.forwardRef((e,A)=>{const t=ox(iN,e.__scopeDialog),i=cA.useRef(null),n=IE(A,t.contentRef,i);return cA.useEffect(()=>{const o=i.current;if(o)return nmA(o)},[]),iA.jsx(BEt,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qr(e.onCloseAutoFocus,o=>{o.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:Qr(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,r=s.button===0&&s.ctrlKey===!0;(s.button===2||r)&&o.preventDefault()}),onFocusOutside:Qr(e.onFocusOutside,o=>o.preventDefault())})}),t7e=cA.forwardRef((e,A)=>{const t=ox(iN,e.__scopeDialog),i=cA.useRef(!1),n=cA.useRef(!1);return iA.jsx(BEt,{...e,ref:A,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(i.current||t.triggerRef.current?.focus(),o.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(i.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const s=o.target;t.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),BEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,trapFocus:i,onOpenAutoFocus:n,onCloseAutoFocus:o,...s}=e,r=ox(iN,t),a=cA.useRef(null),g=IE(A,a);return HyA(),iA.jsxs(iA.Fragment,{children:[iA.jsx(HV,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:n,onUnmountAutoFocus:o,children:iA.jsx(UV,{role:"dialog",id:r.contentId,"aria-describedby":r.descriptionId,"aria-labelledby":r.titleId,"data-state":CDA(r.open),...s,ref:g,onDismiss:()=>r.onOpenChange(!1)})}),iA.jsxs(iA.Fragment,{children:[iA.jsx(i7e,{titleId:r.titleId}),iA.jsx(o7e,{contentRef:a,descriptionId:r.descriptionId})]})]})}),BDA="DialogTitle",CEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(BDA,t);return iA.jsx(Dc.h2,{id:n.titleId,...i,ref:A})});CEt.displayName=BDA;var hEt="DialogDescription",QEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(hEt,t);return iA.jsx(Dc.p,{id:n.descriptionId,...i,ref:A})});QEt.displayName=hEt;var uEt="DialogClose",EEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(uEt,t);return iA.jsx(Dc.button,{type:"button",...i,ref:A,onClick:Qr(e.onClick,()=>n.onOpenChange(!1))})});EEt.displayName=uEt;function CDA(e){return e?"open":"closed"}var dEt="DialogTitleWarning",[e7e,pEt]=uae(dEt,{contentName:iN,titleName:BDA,docsSlug:"dialog"}),i7e=({titleId:e})=>{const A=pEt(dEt),t=`\`${A.contentName}\` requires a \`${A.titleName}\` for the component to be accessible for screen reader users.
5877
+ */const YXe=({containerClassName:e,...A})=>{const t=cA.useRef(null),[i,n]=cA.useState(620);return cA.useLayoutEffect(()=>{const o=()=>{if(t.current){const r=t.current.clientHeight,a=window.innerHeight;n(Math.min(Math.max(r,620),a))}};o();const s=new ResizeObserver(o);return t.current&&s.observe(t.current),window.addEventListener("resize",o),()=>{s.disconnect(),window.removeEventListener("resize",o)}},[]),iA.jsx("div",{ref:t,className:e||"rf-w-full rf-h-full",children:iA.jsx(HXe,{...A,height:i})})},JXe='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--radius:0.5rem}.rf-pointer-events-none{pointer-events:none}.rf-invisible{visibility:hidden}.rf-fixed{position:fixed}.rf-absolute{position:absolute}.rf-relative{position:relative}.rf-inset-0{inset:0}.-rf-left-2{left:-.5rem}.-rf-right-10{right:-2.5rem}.-rf-right-2{right:-.5rem}.-rf-right-4{right:-1rem}.-rf-right-6{right:-1.5rem}.-rf-right-7{right:-1.75rem}.-rf-right-8{right:-2rem}.-rf-right-9{right:-2.25rem}.rf-bottom-full{bottom:100%}.rf-left-0{left:0}.rf-left-1{left:.25rem}.rf-left-1\\/2{left:50%}.rf-left-2{left:.5rem}.rf-left-\\[50\\%\\]{left:50%}.rf-right-0{right:0}.rf-right-1{right:.25rem}.rf-right-4{right:1rem}.rf-right-\\[4px\\]{right:4px}.rf-top-0{top:0}.rf-top-1{top:.25rem}.rf-top-2{top:.5rem}.rf-top-2\\.5{top:.625rem}.rf-top-\\[50\\%\\]{top:50%}.rf-top-\\[6px\\]{top:6px}.\\!rf-z-\\[101\\]{z-index:101!important}.\\!rf-z-\\[200\\]{z-index:200!important}.rf-z-10{z-index:10}.rf-z-50{z-index:50}.rf-z-\\[100\\]{z-index:100}.rf-z-\\[101\\]{z-index:101}.rf-order-1{order:1}.rf-order-2{order:2}.rf-order-3{order:3}.rf-m-1{margin:.25rem}.rf-m-6{margin:1.5rem}.-rf-mx-1,.rf--mx-1{margin-left:-.25rem;margin-right:-.25rem}.rf-mx-1{margin-left:.25rem;margin-right:.25rem}.rf-mx-2{margin-left:.5rem;margin-right:.5rem}.rf-mx-4{margin-left:1rem;margin-right:1rem}.rf-mx-auto{margin-left:auto;margin-right:auto}.rf-my-1{margin-bottom:.25rem;margin-top:.25rem}.rf-my-12{margin-bottom:3rem;margin-top:3rem}.rf-my-4{margin-bottom:1rem;margin-top:1rem}.rf-my-auto{margin-bottom:auto;margin-top:auto}.rf-mb-1{margin-bottom:.25rem}.rf-mb-12{margin-bottom:3rem}.rf-mb-2{margin-bottom:.5rem}.rf-mb-3{margin-bottom:.75rem}.rf-mb-4{margin-bottom:1rem}.rf-mb-6{margin-bottom:1.5rem}.rf-mb-8{margin-bottom:2rem}.rf-ml-1{margin-left:.25rem}.rf-ml-2{margin-left:.5rem}.rf-ml-6{margin-left:1.5rem}.rf-ml-auto{margin-left:auto}.rf-mr-1{margin-right:.25rem}.rf-mr-2{margin-right:.5rem}.rf-mr-4{margin-right:1rem}.rf-mt-0{margin-top:0}.rf-mt-0\\.5{margin-top:.125rem}.rf-mt-1{margin-top:.25rem}.rf-mt-2{margin-top:.5rem}.rf-mt-3{margin-top:.75rem}.rf-mt-4{margin-top:1rem}.rf-mt-5{margin-top:1.25rem}.rf-mt-auto{margin-top:auto}.rf-block{display:block}.rf-inline-block{display:inline-block}.rf-inline{display:inline}.rf-flex{display:flex}.rf-inline-flex{display:inline-flex}.rf-grid{display:grid}.rf-hidden{display:none}.rf-aspect-square{aspect-ratio:1/1}.rf-aspect-video{aspect-ratio:16/9}.rf-size-14{height:3.5rem;width:3.5rem}.rf-size-4{height:1rem;width:1rem}.\\!rf-h-2{height:.5rem!important}.\\!rf-h-2\\.5{height:.625rem!important}.\\!rf-h-3{height:.75rem!important}.\\!rf-h-full{height:100%!important}.rf-h-1{height:.25rem}.rf-h-10{height:2.5rem}.rf-h-12{height:3rem}.rf-h-2{height:.5rem}.rf-h-2\\.5{height:.625rem}.rf-h-20{height:5rem}.rf-h-24{height:6rem}.rf-h-3{height:.75rem}.rf-h-3\\.5{height:.875rem}.rf-h-4{height:1rem}.rf-h-5{height:1.25rem}.rf-h-6{height:1.5rem}.rf-h-60{height:15rem}.rf-h-64{height:16rem}.rf-h-7{height:1.75rem}.rf-h-8{height:2rem}.rf-h-9{height:2.25rem}.rf-h-\\[400px\\]{height:400px}.rf-h-\\[calc\\(100vh-52px\\)\\]{height:calc(100vh - 52px)}.rf-h-\\[calc\\(100vh-60px\\)\\]{height:calc(100vh - 60px)}.rf-h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.rf-h-auto{height:auto}.rf-h-fit{height:-moz-fit-content;height:fit-content}.rf-h-full{height:100%}.rf-h-px{height:1px}.rf-h-screen{height:100vh}.\\!rf-max-h-\\[40vh\\]{max-height:40vh!important}.rf-max-h-20{max-height:5rem}.rf-max-h-24{max-height:6rem}.rf-max-h-28{max-height:7rem}.rf-max-h-32{max-height:8rem}.rf-max-h-96{max-height:24rem}.rf-max-h-\\[200px\\]{max-height:200px}.rf-max-h-\\[300px\\]{max-height:300px}.rf-max-h-\\[70vh\\]{max-height:70vh}.rf-max-h-\\[90vh\\]{max-height:90vh}.rf-max-h-full{max-height:100%}.rf-min-h-0{min-height:0}.rf-min-h-\\[100px\\]{min-height:100px}.rf-min-h-\\[200px\\]{min-height:200px}.rf-min-h-\\[300px\\]{min-height:300px}.rf-min-h-\\[620px\\]{min-height:620px}.rf-min-h-\\[calc\\(100vh-240px\\)\\]{min-height:calc(100vh - 240px)}.\\!rf-w-2{width:.5rem!important}.\\!rf-w-2\\.5{width:.625rem!important}.\\!rf-w-\\[95vw\\]{width:95vw!important}.rf-w-1{width:.25rem}.rf-w-11{width:2.75rem}.rf-w-11\\/12{width:91.666667%}.rf-w-12{width:3rem}.rf-w-16{width:4rem}.rf-w-2{width:.5rem}.rf-w-2\\.5{width:.625rem}.rf-w-20{width:5rem}.rf-w-24{width:6rem}.rf-w-28{width:7rem}.rf-w-3{width:.75rem}.rf-w-3\\.5{width:.875rem}.rf-w-32{width:8rem}.rf-w-4{width:1rem}.rf-w-40{width:10rem}.rf-w-48{width:12rem}.rf-w-5{width:1.25rem}.rf-w-6{width:1.5rem}.rf-w-64{width:16rem}.rf-w-72{width:18rem}.rf-w-8{width:2rem}.rf-w-80{width:20rem}.rf-w-9{width:2.25rem}.rf-w-96{width:24rem}.rf-w-fit{width:-moz-fit-content;width:fit-content}.rf-w-full{width:100%}.rf-w-screen{width:100vw}.rf-min-w-0{min-width:0}.rf-min-w-10{min-width:2.5rem}.rf-min-w-16{min-width:4rem}.rf-min-w-32{min-width:8rem}.rf-min-w-80{min-width:20rem}.rf-min-w-96{min-width:24rem}.rf-min-w-\\[148px\\]{min-width:148px}.rf-min-w-\\[600px\\]{min-width:600px}.rf-min-w-\\[8rem\\]{min-width:8rem}.rf-min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.\\!rf-max-w-\\[95vw\\]{max-width:95vw!important}.rf-max-w-2xl{max-width:42rem}.rf-max-w-3xl{max-width:48rem}.rf-max-w-4xl{max-width:56rem}.rf-max-w-5xl{max-width:64rem}.rf-max-w-64{max-width:16rem}.rf-max-w-96{max-width:24rem}.rf-max-w-\\[1000px\\]{max-width:1000px}.rf-max-w-\\[150px\\]{max-width:150px}.rf-max-w-\\[200px\\]{max-width:200px}.rf-max-w-\\[40\\%\\]{max-width:40%}.rf-max-w-\\[600px\\]{max-width:600px}.rf-max-w-full{max-width:100%}.rf-max-w-lg{max-width:32rem}.rf-max-w-md{max-width:28rem}.rf-max-w-none{max-width:none}.rf-max-w-xl{max-width:36rem}.rf-max-w-xs{max-width:20rem}.rf-flex-1{flex:1 1 0%}.rf-flex-shrink-0,.rf-shrink-0{flex-shrink:0}.rf-flex-grow{flex-grow:1}.rf-table-auto{table-layout:auto}.rf-origin-\\[--radix-popover-content-transform-origin\\]{transform-origin:var(--radix-popover-content-transform-origin)}.-rf-translate-x-1{--tw-translate-x:-0.25rem}.-rf-translate-x-1,.-rf-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rf-translate-x-1\\/2{--tw-translate-x:-50%}.-rf-translate-y-1{--tw-translate-y:-0.25rem}.-rf-translate-y-1,.rf--translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-x-1{--tw-translate-x:-0.25rem}.rf--translate-x-1\\/2{--tw-translate-x:-50%}.rf--translate-x-1\\/2,.rf--translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf--translate-y-1{--tw-translate-y:-0.25rem}.rf-translate-x-\\[-50\\%\\]{--tw-translate-x:-50%}.rf-translate-x-\\[-50\\%\\],.rf-translate-y-\\[-50\\%\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rf-translate-y-\\[-50\\%\\]{--tw-translate-y:-50%}.rf-rotate-90{--tw-rotate:90deg}.rf-rotate-90,.rf-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes rf-pulse{50%{opacity:.5}}.rf-animate-pulse{animation:rf-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rf-spin{to{transform:rotate(1turn)}}.rf-animate-spin{animation:rf-spin 1s linear infinite}.rf-cursor-default{cursor:default}.rf-cursor-not-allowed{cursor:not-allowed}.rf-cursor-pointer{cursor:pointer}.rf-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.rf-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rf-flex-row{flex-direction:row}.rf-flex-col{flex-direction:column}.rf-flex-col-reverse{flex-direction:column-reverse}.rf-flex-wrap{flex-wrap:wrap}.rf-place-items-center{place-items:center}.rf-items-start{align-items:flex-start}.rf-items-end{align-items:flex-end}.rf-items-center{align-items:center}.rf-items-baseline{align-items:baseline}.rf-items-stretch{align-items:stretch}.rf-justify-end{justify-content:flex-end}.rf-justify-center{justify-content:center}.rf-justify-between{justify-content:space-between}.rf-gap-0{gap:0}.rf-gap-1{gap:.25rem}.rf-gap-2{gap:.5rem}.rf-gap-3{gap:.75rem}.rf-gap-4{gap:1rem}.rf-gap-5{gap:1.25rem}.rf-gap-6{gap:1.5rem}.rf-gap-8{gap:2rem}.rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.rf-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rf-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.rf-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.rf-overflow-auto{overflow:auto}.\\!rf-overflow-hidden{overflow:hidden!important}.rf-overflow-hidden{overflow:hidden}.rf-overflow-visible{overflow:visible}.rf-overflow-x-auto{overflow-x:auto}.\\!rf-overflow-y-auto{overflow-y:auto!important}.rf-overflow-y-auto{overflow-y:auto}.rf-overflow-x-hidden{overflow-x:hidden}.rf-overflow-x-clip{overflow-x:clip}.rf-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rf-whitespace-normal{white-space:normal}.rf-whitespace-nowrap{white-space:nowrap}.rf-whitespace-pre-wrap{white-space:pre-wrap}.rf-break-words{overflow-wrap:break-word}.rf-break-all{word-break:break-all}.rf-rounded{border-radius:.25rem}.rf-rounded-2xl{border-radius:1rem}.rf-rounded-full{border-radius:9999px}.rf-rounded-lg{border-radius:var(--radius)}.rf-rounded-md{border-radius:calc(var(--radius) - 2px)}.rf-rounded-sm{border-radius:calc(var(--radius) - 4px)}.rf-rounded-xl{border-radius:.75rem}.rf-border{border-width:1px}.rf-border-2{border-width:2px}.rf-border-b{border-bottom-width:1px}.rf-border-l-2{border-left-width:2px}.rf-border-l-4{border-left-width:4px}.rf-border-t{border-top-width:1px}.rf-border-none{border-style:none}.rf-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.rf-border-blue-300{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.rf-border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.rf-border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.rf-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.rf-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.rf-border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.rf-border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.rf-border-input{border-color:hsl(var(--input))}.rf-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.rf-border-orange-100{--tw-border-opacity:1;border-color:rgb(255 237 213/var(--tw-border-opacity,1))}.rf-border-orange-200{--tw-border-opacity:1;border-color:rgb(254 215 170/var(--tw-border-opacity,1))}.rf-border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity,1))}.rf-border-primary{border-color:hsl(var(--primary))}.rf-border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.rf-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.rf-border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.rf-border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.rf-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity,1))}.rf-border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.rf-border-zinc-900{--tw-border-opacity:1;border-color:rgb(24 24 27/var(--tw-border-opacity,1))}.rf-border-t-blue-600{--tw-border-opacity:1;border-top-color:rgb(37 99 235/var(--tw-border-opacity,1))}.rf-bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.rf-bg-amber-50\\/30{background-color:rgba(255,251,235,.3)}.rf-bg-background{background-color:hsl(var(--background))}.rf-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.rf-bg-black\\/80{background-color:rgba(0,0,0,.8)}.rf-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.rf-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.rf-bg-blue-50\\/30{background-color:rgba(239,246,255,.3)}.rf-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.rf-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.rf-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.rf-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.rf-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.rf-bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.rf-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.rf-bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.rf-bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.rf-bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.rf-bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.rf-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.rf-bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.rf-bg-muted{background-color:hsl(var(--muted))}.rf-bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.rf-bg-neutral-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.rf-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.rf-bg-orange-400{--tw-bg-opacity:1;background-color:rgb(251 146 60/var(--tw-bg-opacity,1))}.rf-bg-orange-50{--tw-bg-opacity:1;background-color:rgb(255 247 237/var(--tw-bg-opacity,1))}.rf-bg-orange-50\\/50{background-color:rgba(255,247,237,.5)}.rf-bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity,1))}.rf-bg-popover{background-color:hsl(var(--popover))}.rf-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.rf-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.rf-bg-red-50\\/50{background-color:hsla(0,86%,97%,.5)}.rf-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.rf-bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.rf-bg-red-900{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.rf-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.rf-bg-transparent{background-color:transparent}.rf-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rf-bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.rf-bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.rf-bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.rf-bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.rf-bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.rf-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.rf-bg-opacity-50{--tw-bg-opacity:0.5}.rf-fill-amber-500{fill:#f59e0b}.rf-fill-current{fill:currentColor}.rf-object-contain{-o-object-fit:contain;object-fit:contain}.rf-object-cover{-o-object-fit:cover;object-fit:cover}.\\!rf-p-0{padding:0!important}.rf-p-0{padding:0}.rf-p-1{padding:.25rem}.rf-p-2{padding:.5rem}.rf-p-3{padding:.75rem}.rf-p-4{padding:1rem}.rf-p-5{padding:1.25rem}.rf-p-6{padding:1.5rem}.rf-p-8{padding:2rem}.rf-px-1{padding-left:.25rem;padding-right:.25rem}.rf-px-2{padding-left:.5rem;padding-right:.5rem}.rf-px-3{padding-left:.75rem;padding-right:.75rem}.rf-px-4{padding-left:1rem;padding-right:1rem}.rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.rf-px-8{padding-left:2rem;padding-right:2rem}.rf-py-0{padding-bottom:0;padding-top:0}.rf-py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.rf-py-1{padding-bottom:.25rem;padding-top:.25rem}.rf-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.rf-py-10{padding-bottom:2.5rem;padding-top:2.5rem}.rf-py-12{padding-bottom:3rem;padding-top:3rem}.rf-py-2{padding-bottom:.5rem;padding-top:.5rem}.rf-py-3{padding-bottom:.75rem;padding-top:.75rem}.rf-py-4{padding-bottom:1rem;padding-top:1rem}.rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.rf-py-8{padding-bottom:2rem;padding-top:2rem}.rf-pb-0{padding-bottom:0}.rf-pb-1{padding-bottom:.25rem}.rf-pb-2{padding-bottom:.5rem}.rf-pb-3{padding-bottom:.75rem}.rf-pb-4{padding-bottom:1rem}.rf-pb-px{padding-bottom:1px}.rf-pl-10{padding-left:2.5rem}.rf-pl-11{padding-left:2.75rem}.rf-pl-12{padding-left:3rem}.rf-pl-2{padding-left:.5rem}.rf-pl-4{padding-left:1rem}.rf-pl-8{padding-left:2rem}.rf-pr-2{padding-right:.5rem}.rf-pt-0{padding-top:0}.rf-pt-1{padding-top:.25rem}.rf-pt-2{padding-top:.5rem}.rf-pt-4{padding-top:1rem}.rf-text-left{text-align:left}.rf-text-center{text-align:center}.rf-text-right{text-align:right}.rf-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.rf-text-2xl{font-size:1.5rem;line-height:2rem}.rf-text-3xl{font-size:1.875rem;line-height:2.25rem}.rf-text-\\[8px\\]{font-size:8px}.rf-text-base{font-size:1rem;line-height:1.5rem}.rf-text-lg{font-size:1.125rem;line-height:1.75rem}.rf-text-sm{font-size:.875rem;line-height:1.25rem}.rf-text-xl{font-size:1.25rem;line-height:1.75rem}.rf-text-xs{font-size:.75rem;line-height:1rem}.\\!rf-font-normal{font-weight:400!important}.rf-font-bold{font-weight:700}.rf-font-medium{font-weight:500}.rf-font-semibold{font-weight:600}.rf-uppercase{text-transform:uppercase}.rf-capitalize{text-transform:capitalize}.rf-tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.rf-leading-5{line-height:1.25rem}.rf-leading-\\[0\\.95rem\\]{line-height:.95rem}.rf-leading-\\[1rem\\]{line-height:1rem}.rf-leading-none{line-height:1}.rf-leading-relaxed{line-height:1.625}.rf-leading-tight{line-height:1.25}.rf-tracking-wide{letter-spacing:.025em}.rf-tracking-widest{letter-spacing:.1em}.rf-text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.rf-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.rf-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.rf-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.rf-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.rf-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.rf-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}.rf-text-current{color:currentColor}.rf-text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.rf-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.rf-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.rf-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.rf-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.rf-text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.rf-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.rf-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.rf-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.rf-text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.rf-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.rf-text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.rf-text-muted-foreground{color:hsl(var(--muted-foreground))}.rf-text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.rf-text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.rf-text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.rf-text-orange-400{--tw-text-opacity:1;color:rgb(251 146 60/var(--tw-text-opacity,1))}.rf-text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity,1))}.rf-text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity,1))}.rf-text-orange-700{--tw-text-opacity:1;color:rgb(194 65 12/var(--tw-text-opacity,1))}.rf-text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity,1))}.rf-text-popover-foreground{color:hsl(var(--popover-foreground))}.rf-text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity,1))}.rf-text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.rf-text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.rf-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.rf-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.rf-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.rf-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.rf-text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity,1))}.rf-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.rf-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.rf-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.rf-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.rf-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.rf-text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.rf-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.rf-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.rf-text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.rf-text-zinc-200{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.rf-text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.rf-text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.rf-text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.rf-text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.rf-text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.rf-text-zinc-950{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.rf-underline{text-decoration-line:underline}.rf-line-through{text-decoration-line:line-through}.rf-underline-offset-4{text-underline-offset:4px}.rf-opacity-0{opacity:0}.rf-opacity-100{opacity:1}.rf-opacity-25{opacity:.25}.rf-opacity-30{opacity:.3}.rf-opacity-50{opacity:.5}.rf-opacity-60{opacity:.6}.rf-opacity-70{opacity:.7}.rf-opacity-75{opacity:.75}.rf-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.rf-shadow,.rf-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.rf-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.rf-shadow-md,.rf-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.rf-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.rf-outline-none{outline:2px solid transparent;outline-offset:2px}.rf-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.rf-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.rf-ring-primary{--tw-ring-color:hsl(var(--primary))}.rf-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.rf-ring-offset-white{--tw-ring-offset-color:#fff}.rf-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.rf-duration-150{transition-duration:.15s}.rf-duration-200{transition-duration:.2s}.rf-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.rf-slide-in-from-left-1{--tw-enter-translate-x:-0.25rem}.rf-slide-out-to-left-1{--tw-exit-translate-x:-0.25rem}.rf-duration-150{animation-duration:.15s}.rf-duration-200{animation-duration:.2s}.rf-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.file\\:rf-border-0::file-selector-button{border-width:0}.file\\:rf-bg-transparent::file-selector-button{background-color:transparent}.file\\:rf-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:rf-font-medium::file-selector-button{font-weight:500}.placeholder\\:rf-text-zinc-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.placeholder\\:rf-text-zinc-500::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.hover\\:rf-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.hover\\:\\!rf-bg-transparent:hover{background-color:transparent!important}.hover\\:rf-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\\:rf-bg-orange-100:hover{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.hover\\:rf-bg-red-500\\/90:hover{background-color:rgba(239,68,68,.9)}.hover\\:rf-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\\:rf-bg-zinc-100\\/80:hover{background-color:hsla(240,5%,96%,.8)}.hover\\:rf-bg-zinc-900\\/90:hover{background-color:rgba(24,24,27,.9)}.hover\\:rf-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\\:rf-text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-800:hover{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.hover\\:rf-text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.hover\\:rf-text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\\:rf-underline:hover{text-decoration-line:underline}.focus\\:rf-bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:rf-bg-zinc-100:focus{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.focus\\:rf-text-gray-900:focus{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.focus\\:rf-text-zinc-900:focus{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.focus\\:rf-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:rf-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:rf-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:rf-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\\:rf-ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:rf-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:rf-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:rf-ring-zinc-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(9 9 11/var(--tw-ring-opacity,1))}.focus-visible\\:rf-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:rf-pointer-events-none:disabled{pointer-events:none}.disabled\\:rf-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:rf-opacity-50:disabled{opacity:.5}.rf-group:hover .group-hover\\:rf-opacity-100,.rf-group\\/bar:hover .group-hover\\/bar\\:rf-opacity-100{opacity:1}.rf-peer:disabled~.peer-disabled\\:rf-cursor-not-allowed{cursor:not-allowed}.rf-peer:disabled~.peer-disabled\\:rf-opacity-70{opacity:.7}.data-\\[disabled\\=true\\]\\:rf-pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:rf-pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\\[side\\=bottom\\]\\:rf-translate-y-1[data-side=bottom],.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-rf-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\\[side\\=right\\]\\:rf-translate-x-1[data-side=right],.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-rf-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\\[selected\\=true\\]\\:rf-bg-zinc-100[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[state\\=active\\]\\:rf-bg-white[data-state=active]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.data-\\[state\\=checked\\]\\:rf-bg-zinc-900[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.data-\\[state\\=open\\]\\:rf-bg-zinc-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.data-\\[selected\\=true\\]\\:rf-text-zinc-900[data-selected=true]{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.data-\\[state\\=active\\]\\:rf-text-zinc-950[data-state=active]{--tw-text-opacity:1;color:rgb(9 9 11/var(--tw-text-opacity,1))}.data-\\[state\\=checked\\]\\:rf-text-zinc-50[data-state=checked]{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.data-\\[disabled\\=true\\]\\:rf-opacity-50[data-disabled=true],.data-\\[disabled\\]\\:rf-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:rf-shadow[data-state=active]{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\\[state\\=open\\]\\:rf-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\\[state\\=closed\\]\\:rf-fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=open\\]\\:rf-fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=closed\\]\\:rf-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:rf-zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[side\\=bottom\\]\\:rf-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\\[side\\=left\\]\\:rf-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\\[side\\=right\\]\\:rf-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\\[side\\=top\\]\\:rf-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\\[state\\=closed\\]\\:rf-slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\\[state\\=closed\\]\\:rf-slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\\[state\\=open\\]\\:rf-slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\\[state\\=open\\]\\:rf-slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y:-48%}.dark\\:rf-border-zinc-50:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(250 250 250/var(--tw-border-opacity,1))}.dark\\:rf-border-zinc-800:is(.rf-dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\\:rf-bg-gray-700:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:rf-bg-gray-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:rf-bg-red-900:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-50:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-800:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:rf-bg-zinc-950:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:rf-text-gray-500:is(.rf-dark *){--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-400:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-50:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:rf-text-zinc-900:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-placeholder-zinc-400:is(.rf-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(161 161 170/var(--tw-placeholder-opacity,1))}.dark\\:rf-ring-offset-zinc-950:is(.rf-dark *){--tw-ring-offset-color:#09090b}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:placeholder\\:rf-text-zinc-400:is(.rf-dark *)::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\\:hover\\:rf-bg-red-900\\/90:hover:is(.rf-dark *){background-color:rgba(127,29,29,.9)}.dark\\:hover\\:rf-bg-zinc-50\\/90:hover:is(.rf-dark *){background-color:hsla(0,0%,98%,.9)}.dark\\:hover\\:rf-bg-zinc-800:hover:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:hover\\:rf-bg-zinc-800\\/80:hover:is(.rf-dark *){background-color:rgba(39,39,42,.8)}.dark\\:hover\\:rf-text-zinc-50:hover:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus\\:rf-bg-zinc-800:focus:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:focus\\:rf-text-zinc-50:focus:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:focus-visible\\:rf-ring-zinc-300:focus-visible:is(.rf-dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 216/var(--tw-ring-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-bg-zinc-800[data-selected=true]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-bg-zinc-950[data-state=active]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-bg-zinc-50[data-state=checked]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\\:data-\\[state\\=open\\]\\:rf-bg-zinc-800[data-state=open]:is(.rf-dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\\:data-\\[selected\\=true\\]\\:rf-text-zinc-50[data-selected=true]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=active\\]\\:rf-text-zinc-50[data-state=active]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:data-\\[state\\=checked\\]\\:rf-text-zinc-900[data-state=checked]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:rf-order-1{order:1}.sm\\:rf-order-2{order:2}.sm\\:rf-mt-0{margin-top:0}.sm\\:rf-mt-4{margin-top:1rem}.sm\\:rf-block{display:block}.sm\\:rf-inline{display:inline}.sm\\:rf-grid{display:grid}.sm\\:rf-hidden{display:none}.sm\\:rf-h-5{height:1.25rem}.sm\\:rf-w-1\\/2{width:50%}.sm\\:rf-w-5{width:1.25rem}.sm\\:rf-w-\\[90vw\\]{width:90vw}.sm\\:rf-w-auto{width:auto}.sm\\:rf-max-w-\\[500px\\]{max-width:500px}.sm\\:rf-max-w-md{max-width:28rem}.sm\\:rf-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:rf-grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.sm\\:rf-flex-row{flex-direction:row}.sm\\:rf-items-center{align-items:center}.sm\\:rf-justify-end{justify-content:flex-end}.sm\\:rf-gap-3{gap:.75rem}.sm\\:rf-gap-4{gap:1rem}.sm\\:rf-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\\:rf-justify-self-end{justify-self:end}.sm\\:rf-rounded-lg{border-radius:var(--radius)}.sm\\:rf-p-3{padding:.75rem}.sm\\:rf-p-6{padding:1.5rem}.sm\\:rf-px-4{padding-left:1rem;padding-right:1rem}.sm\\:rf-px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:rf-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.sm\\:rf-text-left{text-align:left}.sm\\:rf-text-right{text-align:right}.sm\\:rf-text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:rf-text-base{font-size:1rem;line-height:1.5rem}.sm\\:rf-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:rf-text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:rf-w-auto{width:auto}.md\\:rf-max-w-\\[660px\\]{max-width:660px}.md\\:rf-max-w-lg{max-width:32rem}.md\\:rf-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:rf-p-8{padding:2rem}.md\\:rf-py-8{padding-bottom:2rem;padding-top:2rem}.md\\:rf-text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width:1024px){.lg\\:rf-max-w-\\[720px\\]{max-width:720px}.lg\\:rf-max-w-xl{max-width:36rem}}@media (min-width:1280px){.xl\\:rf-max-w-\\[800px\\]{max-width:800px}}.\\[\\&\\>span\\]\\:rf-line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\]\\:rf-size-4>svg{height:1rem;width:1rem}.\\[\\&\\>svg\\]\\:rf-shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:rf-text-red-300>svg{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.\\[\\&\\>svg\\]\\:hover\\:rf-text-red-400:hover>svg{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-py-1\\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\\:\\[\\&_\\[cmdk-group-heading\\]\\]\\:rf-text-zinc-400 [cmdk-group-heading]:is(.rf-dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:rf-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:rf-px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:rf-w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:rf-h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:rf-py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:rf-w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:rf-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:rf-size-4 svg{height:1rem;width:1rem}.\\[\\&_svg\\]\\:rf-shrink-0 svg{flex-shrink:0}',_z=()=>{cA.useEffect(()=>{if(document.querySelector('style[data-styles="tscircuit-runframe"]'))return;const A=document.createElement("style");A.setAttribute("data-styles","tscircuit-runframe"),A.textContent=JXe,document.head.appendChild(A)},[])},TXe=e=>{cA.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])};function DL(e,A){const[t,i]=cA.useState(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):A}catch(n){return console.error("Error reading from localStorage:",n),A}});return cA.useEffect(()=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error writing to localStorage:",n)}},[e,t]),[t,i]}const tEt=e=>`hsl(${Om.indexOf(e)*137.5%360}, 70%, 50%)`,KXe=({phaseTimings:e})=>{if(!e)return null;const A=Object.values(e).reduce((t,i)=>t+i,0);return iA.jsxs("div",{className:"rf-space-y-2 rf-w-full rf-px-4",children:[iA.jsx("div",{className:"rf-relative rf-h-8 rf-flex rf-rounded-sm",children:Om.map(t=>{const i=e[t]||0,n=i/A*100;return iA.jsx("div",{className:"rf-group/bar rf-relative rf-overflow-visible",style:{width:`${n}%`,backgroundColor:tEt(t)},children:iA.jsxs("div",{className:"rf-opacity-0 group-hover/bar:rf-opacity-100 rf-transition-opacity rf-absolute rf-bottom-full rf-left-1/2 rf-transform -rf-translate-x-1/2 rf-mb-2 rf-px-2 rf-py-1 rf-text-xs rf-whitespace-nowrap rf-rounded rf-bg-gray-900 rf-text-white rf-pointer-events-none",children:[t,": ",i.toFixed(1),"ms"]})},t)})}),iA.jsxs("div",{className:"rf-text-xs rf-text-gray-500",children:["Total: ",A.toFixed(2),"ms"]})]})},qXe=e=>{if(e instanceof Blob)return e;if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}return String(e)},PXe=({renderLog:e,onRerunWithDebug:A})=>{const[t,i]=cA.useState("chronological"),[n,o]=cA.useState(""),s=[{value:"",label:"None"},{value:"DEBUG=Group_doInitialSchematicTraceRender",label:"DEBUG=Group_doInitialSchematicTraceRender"},{value:"DEBUG=Group_doInitialSchematicLayoutMatchpack",label:"DEBUG=Group_doInitialSchematicLayoutMatchpack"},{value:"DEBUG=Group_doInitialPcbLayoutPack",label:"DEBUG=Group_doInitialPcbLayoutPack"}];if(!e)return iA.jsxs("div",{className:"rf-p-4 rf-bg-gray-100 rf-rounded-md",children:[iA.jsx("div",{className:"rf-mb-4",children:"No render log, make sure this tab is open when you render"}),A&&iA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[iA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>iA.jsx("option",{value:g.value,children:g.label},g.value))}),iA.jsx(uC,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]})]});const r=Object.entries(e?.phaseTimings??{});t==="chronological"?r.sort((g,c)=>Om.indexOf(g[0])-Om.indexOf(c[0])):r.sort((g,c)=>c[1]-g[1]);const a=r.reduce((g,[c,I])=>g+I,0);return iA.jsxs("div",{className:"rf-bg-white",children:[iA.jsxs("div",{className:"rf-flex rf-justify-between rf-items-center rf-mb-4",children:[iA.jsx("div",{children:"Render Logs"}),iA.jsxs("div",{className:"rf-flex rf-gap-4 rf-items-center",children:[A&&iA.jsxs("div",{className:"rf-flex rf-gap-2 rf-items-center",children:[iA.jsx("select",{value:n,onChange:g=>o(g.target.value),className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white",children:s.map(g=>iA.jsx("option",{value:g.value,children:g.label},g.value))}),iA.jsx(uC,{onClick:()=>A(n),size:"sm",className:"rf-text-xs",children:"Rerun Render with Debug"})]}),iA.jsx("div",{className:"rf-flex rf-gap-2 rf-items-center",children:iA.jsxs("select",{onChange:g=>{if(g.target.value){const c=e?.debugOutputs?.find(I=>I.name===g.target.value);if(c){const I=qXe(c.content),l=I instanceof Blob?I:new Blob([I],{type:"text/plain"}),B=URL.createObjectURL(l),C=document.createElement("a");C.href=B,C.download=`debug-${c.name}.txt`,document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(B)}g.target.value=""}},disabled:!e?.debugOutputs||e.debugOutputs.length===0,className:"rf-px-3 rf-py-1 rf-border rf-rounded rf-text-xs rf-bg-white disabled:rf-opacity-50 disabled:rf-cursor-not-allowed",children:[iA.jsx("option",{value:"",children:"Download Debug Output"}),e?.debugOutputs?.map(g=>iA.jsx("option",{value:g.name,children:g.name},g.name))]})}),iA.jsxs("div",{className:"rf-flex rf-text-xs rf-items-center",children:[iA.jsx("div",{className:"rf-mr-2",children:"Sort by:"}),iA.jsxs("select",{value:t,onChange:g=>i(g.target.value),className:"rf-px-2 rf-py-1 rf-border rf-rounded rf-text-xs",children:[iA.jsx("option",{value:"chronological",children:"Phase Order"}),iA.jsx("option",{value:"longest",children:"Duration"})]})]})]})]}),iA.jsx(KXe,{phaseTimings:e.phaseTimings}),iA.jsxs("table",{className:"rf-w-full rf-text-xs",children:[iA.jsx("thead",{children:iA.jsxs("tr",{children:[iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase Order"}),iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Phase"}),iA.jsx("th",{className:"rf-text-left rf-p-2",children:"Duration (ms)"})]})}),iA.jsx("tbody",{children:r.map(([g,c])=>iA.jsxs("tr",{children:[iA.jsx("td",{className:"rf-p-2",children:Om.indexOf(g)}),iA.jsx("td",{className:"rf-p-2",children:g}),iA.jsx("td",{className:"rf-p-2",children:iA.jsx("div",{className:"rf-w-8",children:iA.jsx("div",{className:"rf-h-2 rf-rounded-sm",style:{backgroundColor:tEt(g),width:`${c/a*100}%`}})})}),iA.jsx("td",{className:"rf-p-2",children:iA.jsxs("div",{className:"rf-flex w-full",children:[iA.jsxs("span",{className:"rf-flex-grow",children:[c,"ms"]}),iA.jsxs("span",{className:"rf-text-gray-500 rf-pr-2",children:[(c/a*100).toFixed(1),"%"]})]})})]},g))})]})]})},eEt=({errorMessage:e,errorStack:A,circuitJsonErrors:t})=>{cA.useEffect(()=>{if(e){const i=new Error(e);A&&(i.stack=A);try{z9.captureException(i)}catch{}}},[e,A]),cA.useEffect(()=>{if(t&&t.length>0)for(const i of t){const n=new Error(i.message||"Circuit JSON Error");i.stack&&(n.stack=i.stack);try{z9.captureException(n,{error_type:i.type})}catch{}}},[t])},iEt="0.0.1321",OXe={version:iEt},xz=X5A()($5A(e=>({lastRunEvalVersion:void 0,setLastRunEvalVersion:A=>{e({lastRunEvalVersion:A})}}),{name:"runframe-runner-store"})),WXe=e=>{const[A,t]=cA.useState([]),[i,n]=cA.useState(null),[o,s]=cA.useState(""),[r,a]=DL("eval-version-selection",null),g=xz(B=>B.setLastRunEvalVersion),c=xz(B=>B.lastRunEvalVersion);return cA.useEffect(()=>{e&&fetch("https://data.jsdelivr.com/v1/package/npm/@tscircuit/eval").then(B=>B.json()).then(B=>{if(Array.isArray(B?.versions)){let C=[...B.versions];B.tags?.latest&&(n(B.tags.latest),C=C.filter(h=>h!==B.tags.latest)),t(C)}}).catch(()=>{})},[e]),cA.useEffect(()=>{e&&(r?(window.TSCIRCUIT_LATEST_EVAL_VERSION=r,g(r)):i&&(window.TSCIRCUIT_LATEST_EVAL_VERSION=i,g(i)))},[e,r,i]),{versions:cA.useMemo(()=>A.filter(B=>B.includes(o)).slice(0,50),[A,o]),latestVersion:i,lastRunEvalVersion:c,search:o,setSearch:s,selectVersion:B=>{a(B),s("")}}},ZXe=({snippetNames:e,onSelect:A,onCancel:t,isOpen:i})=>{const[n,o]=cA.useState(""),[s,r]=cA.useState("");if(!i)return null;const a=e.filter(I=>I.toLowerCase().includes(s.toLowerCase())),g=s&&!e.includes(s),c=I=>{I.key==="Enter"&&(a.length===1?o(a[0]):g&&o(s))};return iA.jsx("div",{className:"rf-fixed rf-inset-0 rf-bg-black rf-bg-opacity-50 rf-flex rf-items-center rf-justify-center rf-z-[100]",children:iA.jsxs("div",{className:"rf-bg-white rf-rounded-lg rf-p-6 rf-w-96",children:[iA.jsx("h2",{className:"rf-text-lg rf-font-semibold rf-mb-4",children:"Select Snippet"}),iA.jsx("input",{type:"text",className:"rf-w-full rf-px-4 rf-py-2 rf-border rf-rounded rf-mb-4",placeholder:"Search snippets or new snippet name...",value:s,onChange:I=>r(I.target.value),onKeyDown:c}),iA.jsxs("div",{className:"rf-h-60 rf-overflow-y-auto",children:[a.map(I=>iA.jsx("button",{type:"button",className:`w-full text-left px-4 py-2 rounded hover:bg-gray-100 ${n===I?"bg-blue-50":""}`,onClick:()=>o(I),children:I},I)),g&&iA.jsxs("button",{type:"button",className:`w-full text-left px-4 py-2 rounded hover:bg-gray-100 text-blue-500 ${n===s?"bg-blue-50":""}`,onClick:()=>o(s),children:['Create new "',s,'"']})]}),iA.jsxs("div",{className:"rf-mt-4 rf-flex rf-justify-end rf-gap-2",children:[iA.jsx("button",{type:"button",className:"rf-px-4 rf-py-2 rf-text-gray-600 rf-hover:text-gray-800",onClick:t,children:"Cancel"}),iA.jsx("button",{type:"button",className:"rf-px-4 rf-py-2 rf-bg-blue-500 rf-text-white rf-rounded rf-hover:bg-blue-600 rf-disabled:opacity-50",onClick:()=>n&&A(n),disabled:!n,children:n===s?`Create "${n}"`:`Save to ${n}`})]})]})})},VXe=e=>{const A=cA.useRef(null),t=Vf(i=>i.recentEvents);cA.useEffect(()=>{if(t.length===0)return;const i=t[0];i.event_id!==A.current&&(e(i),A.current=i.event_id)},[t,e])};var bz="Dialog",[nEt,oEt]=Zx(bz),[jXe,ox]=nEt(bz),sEt=e=>{const{__scopeDialog:A,children:t,open:i,defaultOpen:n,onOpenChange:o,modal:s=!0}=e,r=cA.useRef(null),a=cA.useRef(null),[g,c]=VR({prop:i,defaultProp:n??!1,onChange:o,caller:bz});return iA.jsx(jXe,{scope:A,triggerRef:r,contentRef:a,contentId:wy(),titleId:wy(),descriptionId:wy(),open:g,onOpenChange:c,onOpenToggle:cA.useCallback(()=>c(I=>!I),[c]),modal:s,children:t})};sEt.displayName=bz;var rEt="DialogTrigger",aEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(rEt,t),o=IE(A,n.triggerRef);return iA.jsx(Dc.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":CDA(n.open),...i,ref:o,onClick:Qr(e.onClick,n.onOpenToggle)})});aEt.displayName=rEt;var lDA="DialogPortal",[zXe,gEt]=nEt(lDA,{forceMount:void 0}),cEt=e=>{const{__scopeDialog:A,forceMount:t,children:i,container:n}=e,o=ox(lDA,A);return iA.jsx(zXe,{scope:A,forceMount:t,children:cA.Children.map(i,s=>iA.jsx(UD,{present:t||o.open,children:iA.jsx(zV,{asChild:!0,container:n,children:s})}))})};cEt.displayName=lDA;var Sz="DialogOverlay",IEt=cA.forwardRef((e,A)=>{const t=gEt(Sz,e.__scopeDialog),{forceMount:i=t.forceMount,...n}=e,o=ox(Sz,e.__scopeDialog);return o.modal?iA.jsx(UD,{present:i||o.open,children:iA.jsx($Xe,{...n,ref:A})}):null});IEt.displayName=Sz;var XXe=ZR("DialogOverlay.RemoveScroll"),$Xe=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(Sz,t);return iA.jsx(oj,{as:XXe,allowPinchZoom:!0,shards:[n.contentRef],children:iA.jsx(Dc.div,{"data-state":CDA(n.open),...i,ref:A,style:{pointerEvents:"auto",...i.style}})})}),iN="DialogContent",lEt=cA.forwardRef((e,A)=>{const t=gEt(iN,e.__scopeDialog),{forceMount:i=t.forceMount,...n}=e,o=ox(iN,e.__scopeDialog);return iA.jsx(UD,{present:i||o.open,children:o.modal?iA.jsx(A7e,{...n,ref:A}):iA.jsx(t7e,{...n,ref:A})})});lEt.displayName=iN;var A7e=cA.forwardRef((e,A)=>{const t=ox(iN,e.__scopeDialog),i=cA.useRef(null),n=IE(A,t.contentRef,i);return cA.useEffect(()=>{const o=i.current;if(o)return nmA(o)},[]),iA.jsx(BEt,{...e,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qr(e.onCloseAutoFocus,o=>{o.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:Qr(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,r=s.button===0&&s.ctrlKey===!0;(s.button===2||r)&&o.preventDefault()}),onFocusOutside:Qr(e.onFocusOutside,o=>o.preventDefault())})}),t7e=cA.forwardRef((e,A)=>{const t=ox(iN,e.__scopeDialog),i=cA.useRef(!1),n=cA.useRef(!1);return iA.jsx(BEt,{...e,ref:A,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(i.current||t.triggerRef.current?.focus(),o.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(i.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const s=o.target;t.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),BEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,trapFocus:i,onOpenAutoFocus:n,onCloseAutoFocus:o,...s}=e,r=ox(iN,t),a=cA.useRef(null),g=IE(A,a);return HyA(),iA.jsxs(iA.Fragment,{children:[iA.jsx(HV,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:n,onUnmountAutoFocus:o,children:iA.jsx(UV,{role:"dialog",id:r.contentId,"aria-describedby":r.descriptionId,"aria-labelledby":r.titleId,"data-state":CDA(r.open),...s,ref:g,onDismiss:()=>r.onOpenChange(!1)})}),iA.jsxs(iA.Fragment,{children:[iA.jsx(i7e,{titleId:r.titleId}),iA.jsx(o7e,{contentRef:a,descriptionId:r.descriptionId})]})]})}),BDA="DialogTitle",CEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(BDA,t);return iA.jsx(Dc.h2,{id:n.titleId,...i,ref:A})});CEt.displayName=BDA;var hEt="DialogDescription",QEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(hEt,t);return iA.jsx(Dc.p,{id:n.descriptionId,...i,ref:A})});QEt.displayName=hEt;var uEt="DialogClose",EEt=cA.forwardRef((e,A)=>{const{__scopeDialog:t,...i}=e,n=ox(uEt,t);return iA.jsx(Dc.button,{type:"button",...i,ref:A,onClick:Qr(e.onClick,()=>n.onOpenChange(!1))})});EEt.displayName=uEt;function CDA(e){return e?"open":"closed"}var dEt="DialogTitleWarning",[e7e,pEt]=uae(dEt,{contentName:iN,titleName:BDA,docsSlug:"dialog"}),i7e=({titleId:e})=>{const A=pEt(dEt),t=`\`${A.contentName}\` requires a \`${A.titleName}\` for the component to be accessible for screen reader users.
5878
5878
 
5879
5879
  If you want to hide the \`${A.titleName}\`, you can wrap it with our VisuallyHidden component.
5880
5880
 
@@ -6718,7 +6718,7 @@ ${A}%`}}),$xi=Fu({command_code:"TD",schema:xA({command_code:CA("TD").default("TD
6718
6718
  20,1,$1+$1,$4,$5,$6,$7,0*
6719
6719
  20,1,$1+$1,$6,$7,$8,$9,0*
6720
6720
  20,1,$1+$1,$8,$9,$2,$3,0*
6721
- `.trim()}).add("comment",{comment:"APERTURE MACROS END"}).build())};function vbi(e){const A=e.filter(i=>i.type==="pcb_trace"),t={};for(const i of A)for(const n of i.route)n.route_type==="wire"&&(t[n.layer]=t[n.layer]||new Set,t[n.layer].add(n.width));return{top:Array.from(t.top||[]),bottom:Array.from(t.bottom||[])}}function kbi({glayer:e,soup:A,glayer_name:t}){const i=()=>{const s=e.reduce((r,a)=>a.command_code==="ADD"?Math.max(r,a.aperture_number):r,0);return s===0?10:s+1};e.push(...hE().add("comment",{comment:"aperture START LIST"}).build());const n=vbi(A);for(const s of n[t.startsWith("F_")?"top":"bottom"])e.push(...hE().add("define_aperture_template",{aperture_number:i(),standard_template_code:"C",diameter:s}).build());const o=Rbi(A,t.startsWith("F_")?"top":"bottom");for(const s of o)e.push(...hE().add("define_aperture_template",{aperture_number:i(),...s}).build());e.push(...hE().add("delete_attribute",{}).add("comment",{comment:"aperture END LIST"}).build())}var qbt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};throw e.shape==="polygon"?new Error("Polygon SMT pads are drawn as regions, not apertures"):new Error(`Unsupported shape ${e.shape}`)},Pbt=e=>{if("stroke_width"in e)return{standard_template_code:"C",diameter:e.stroke_width};throw new Error(`Provide stroke_width for: ${e}`)},Obt=e=>{if("font_size"in e)return{standard_template_code:"C",diameter:e.font_size/8};throw new Error(`Provide font_size for: ${e}`)},Wbt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="pill"){if(!("width"in e&&"height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.width>=e.height?{macro_name:"HORZPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.width/2}:{macro_name:"VERTPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.height/2}}throw new Error(`Unsupported shape ${e.shape}`)},Zbt=e=>{if(e.shape==="circle"){if(!("outer_diameter"in e&&"hole_diameter"in e))throw new Error("Invalid circle shape in getApertureConfigFromPcbPlatedHole: missing diameters");return{standard_template_code:"C",diameter:e.outer_diameter}}if(e.shape==="pill"){if(!("outer_width"in e&&"outer_height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.outer_width>e.outer_height?{macro_name:"HORZPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_width/2}:{macro_name:"VERTPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_height/2}}const A=e.shape;if(A==="circular_hole_with_rect_pad"||A==="pill_hole_with_rect_pad"||A==="rotated_pill_hole_with_rect_pad"){if(!("rect_pad_width"in e&&"rect_pad_height"in e))throw new Error(`Invalid ${A} shape in getApertureConfigFromPcbPlatedHole: missing dimensions`);return{standard_template_code:"R",x_size:e.rect_pad_width,y_size:e.rect_pad_height}}throw new Error(`Unsupported shape in getApertureConfigFromPcbPlatedHole: ${e.shape}`)},Vbt=e=>{if(!("hole_diameter"in e))throw new Error(`Invalid shape called in getApertureConfigFromCirclePcbHole: ${e.hole_shape}`);return{standard_template_code:"C",diameter:e.hole_diameter}},jbt=e=>{if(!("outer_diameter"in e))throw new Error("outer_diameter not specified in getApertureConfigFromPcbVia");return{standard_template_code:"C",diameter:e.outer_diameter}};function Rbi(e,A){const t=[],i=new Set,n=o=>{const s=dxi(o);i.has(s)||(t.push(o),i.add(s))};for(const o of e)o.type==="pcb_smtpad"?o.layer===A&&o.shape!=="polygon"&&n(qbt(o)):o.type==="pcb_solder_paste"?o.layer===A&&n(Wbt(o)):o.type==="pcb_plated_hole"?o.layers.includes(A)&&n(Zbt(o)):o.type==="pcb_hole"?o.hole_shape==="circle"?n(Vbt(o)):console.warn("NOT IMPLEMENTED: drawing gerber for non circle holes"):o.type==="pcb_via"?n(jbt(o)):o.type==="pcb_silkscreen_path"?n(Pbt(o)):o.type==="pcb_silkscreen_text"&&n(Obt(o));return t}var mv=(e,A)=>{let t;if("trace_width"in A){const i=A.trace_width;t=e.find(n=>"standard_template_code"in n&&n.command_code==="ADD"&&n.standard_template_code==="C"&&n.diameter===i)}else("standard_template_code"in A||"macro_name"in A)&&(t=e.find(i=>i.command_code==="ADD"&&Object.keys(A).every(n=>i[n]===A[n])));if(!t)throw new Error(`Aperture not found for search params ${JSON.stringify(A)}`);return t.aperture_number},Fbi={version:"0.0.40"},Nbi={"top-copper":"Copper,L1,Top","bottom-copper":"Copper,L2,Bot","top-soldermask":"Soldermask,Top","bottom-soldermask":"Soldermask,Bot","top-silkscreen":"Legend,Top","bottom-silkscreen":"Legend,Bot","top-paste":"Paste,Top","bottom-paste":"Paste,Bot",edgecut:"Profile,NP"},wv=e=>{const A=Nbi[e.layer_type?`${e.layer}-${e.layer_type}`:e.layer];return hE().add("add_attribute_on_file",{attribute_name:"GenerationSoftware",attribute_value:`tscircuit,circuit-json-to-gerber,${Fbi.version}`}).add("add_attribute_on_file",{attribute_name:"CreationDate",attribute_value:new Date().toISOString()}).add("add_attribute_on_file",{attribute_name:"SameCoordinates",attribute_value:"Original"}).add("add_attribute_on_file",{attribute_name:"FileFunction",attribute_value:A}).$if(e.layer!=="edgecut",t=>t.add("add_attribute_on_file",{attribute_name:"FilePolarity",attribute_value:e.layer_type==="soldermask"?"Negative":"Positive"})).add("format_specification",{}).add("set_unit",{unit:"MM"}).add("comment",{comment:"Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)"}).add("comment",{comment:`Created by tscircuit (builder) date ${new Date().toISOString()}`}).add("set_movement_mode_to_linear",{}).add("set_layer_polarity",{polarity:"D"}).add("create_arc",{}).build()},Gbi={top:"F_",bottom:"B_"},Mbi={copper:"Cu",silkscreen:"SilkScreen",soldermask:"Mask",mask:"Mask",paste:"Paste"},hw=(e,A)=>e==="edgecut"?"Edge_Cuts":`${Gbi[e]}${Mbi[A]}`,Lbi=(e,A={})=>{A.flip_y_axis??=!1;const t={F_Cu:wv({layer:"top",layer_type:"copper"}),F_SilkScreen:wv({layer:"top",layer_type:"silkscreen"}),F_Mask:wv({layer:"top",layer_type:"soldermask"}),F_Paste:wv({layer:"top",layer_type:"paste"}),B_Cu:wv({layer:"bottom",layer_type:"copper"}),B_SilkScreen:wv({layer:"bottom",layer_type:"silkscreen"}),B_Mask:wv({layer:"bottom",layer_type:"soldermask"}),B_Paste:wv({layer:"bottom",layer_type:"paste"}),Edge_Cuts:wv({layer:"edgecut"})};for(const o of["F_Cu","B_Cu","F_Mask","B_Mask","F_Paste","B_Paste","F_SilkScreen","B_SilkScreen"]){const s=t[o];Sbi(s),kbi({soup:e,glayer:s,glayer_name:o})}t.Edge_Cuts.push(...hE().add("define_aperture_template",{aperture_number:10,standard_template_code:"C",diameter:.05}).build());const i=o=>A.flip_y_axis?-o:o,n=new Map;for(const o of e)if(o.type==="pcb_plated_hole"&&"x"in o&&typeof o.x=="number"&&"y"in o&&typeof o.y=="number"){const s="ccw_rotation"in o&&typeof o.ccw_rotation=="number"?o.ccw_rotation:0;n.set(`${o.x}:${o.y}`,s)}for(const o of["top","bottom","edgecut"])for(const s of e)if(s.type==="pcb_trace"){const{route:r}=s;for(const[a,g]of bbi(r))if(a.route_type==="wire"&&a.layer===o){const c=t[hw(o,"copper")];c.push(...hE().add("select_aperture",{aperture_number:mv(c,{trace_width:a.width})}).add("move_operation",{x:a.x,y:i(a.y)}).add("plot_operation",{x:g.x,y:i(g.y)}).build())}}else if(s.type==="pcb_silkscreen_path"){if(s.layer===o){const r=t[hw(o,"silkscreen")],a=Pbt(s),g=hE().add("select_aperture",{aperture_number:mv(r,a)});s.route.length>0&&g.add("move_operation",{x:s.route[0].x,y:i(s.route[0].y)});for(let c=1;c<s.route.length;c++)g.add("plot_operation",{x:s.route[c].x,y:i(s.route[c].y)});r.push(...g.build())}}else if(s.type==="pcb_silkscreen_text"){if(s.layer===o){const a=t[hw(o,"silkscreen")],g=Obt(s),c=hE().add("select_aperture",{aperture_number:mv(a,g)});let I=s.anchor_position.x,l=s.anchor_position.y;const B=s.font_size*.7,C=B*.4,h=B*.5,u=s.text.split("").reduce((k,x)=>x===" "?k+h+C:k+B+C,0)-C,E=B;switch(s.anchor_alignment||(()=>{const k=s.anchor_side;if(k)switch(k){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right"}})()||"center"){case"top_left":break;case"top_center":I-=u/2;break;case"top_right":I-=u;break;case"center_right":l-=E/2;break;case"center_left":I-=u,l-=E/2;break;case"bottom_left":l-=E;break;case"bottom_center":I-=u/2,l-=E;break;case"bottom_right":I-=u,l-=E;break;default:I-=u/2,l-=E/2;break}let f=I;const m=l;let S=s.ccw_rotation||0;const _=f+u/2,v=m+E/2,D=[];if(s.layer==="bottom"&&(D.push(QU(_,v),{a:-1,b:0,c:0,d:1,e:0,f:0},QU(-_,-v)),S=-S),S){const k=S*Math.PI/180;D.push(QU(_,v),gkA(k),QU(-_,-v))}for(const k of s.text.toUpperCase()){if(k===" "){f+=h+C;continue}const x=rkA[k]||[];for(const M of x){const N=f+M.x1*B,T=m+M.y1*B,q=f+M.x2*B,P=m+M.y2*B;let V={x:N,y:T},z={x:q,y:P};if(D.length>0){const nA=akA(...D);V=Vk(nA,V),z=Vk(nA,z)}c.add("move_operation",{x:V.x,y:i(V.y)}),c.add("plot_operation",{x:z.x,y:i(z.y)})}f+=B+C}a.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape!=="polygon"){if(s.layer===o)for(const r of[t[hw(o,"copper")],t[hw(o,"soldermask")]]){const a=qbt(s),g=mv(r,a),c=hE().add("select_aperture",{aperture_number:g});s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:s.ccw_rotation}),c.add("flash_operation",{x:s.x,y:i(s.y)}),s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape==="polygon"){if(s.layer===o){const r=[t[hw(o,"copper")]];(!("is_covered_with_solder_mask"in s)||s.is_covered_with_solder_mask!==!1)&&r.push(t[hw(o,"soldermask")]);for(const a of r){const g=hE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{}),{points:c}=s;if(c&&c.length>0){g.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)g.add("plot_operation",{x:c[I].x,y:i(c[I].y)});g.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}g.add("end_region_statement",{}),a.push(...g.build())}}}else if(s.type==="pcb_solder_paste"){if(s.layer===o){const r=t[hw(o,"paste")],a=mv(r,Wbt(s)),g="ccw_rotation"in s&&typeof s.ccw_rotation=="number"?s.ccw_rotation:n.get(`${s.x}:${s.y}`)??0,c=hE().add("select_aperture",{aperture_number:a});g&&c.add("load_rotation",{rotation_degrees:g}),c.add("flash_operation",{x:s.x,y:i(s.y)}),g&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_plated_hole"){if(s.layers.includes(o))for(const r of[t[hw(o,"copper")],t[hw(o,"soldermask")]]){const a="hole_width"in s&&typeof s.hole_width=="number"?s.hole_width:0,g="hole_height"in s&&typeof s.hole_height=="number"?s.hole_height:0,c=[a];"outer_width"in s&&typeof s.outer_width=="number"&&c.push(s.outer_width),"rect_pad_width"in s&&typeof s.rect_pad_width=="number"&&c.push(s.rect_pad_width);const I=Math.max(...c),l=[g];"outer_height"in s&&typeof s.outer_height=="number"&&l.push(s.outer_height),"rect_pad_height"in s&&typeof s.rect_pad_height=="number"&&l.push(s.rect_pad_height);const B=Math.max(...l);if(s.shape==="pill"){const C={standard_template_code:"C",diameter:Math.min(I,B)};let h;try{h=mv(r,C)}catch{h=Math.max(...r.filter(v=>"aperture_number"in v).map(v=>v.aperture_number),9)+1,r.push(...hE().add("define_aperture_template",{aperture_number:h,...C}).build())}const u=hE().add("select_aperture",{aperture_number:h}),E=(s.ccw_rotation??0)*Math.PI/180,p=Math.cos(E),f=Math.sin(E),m=(v,D)=>{const k=v*p-D*f,x=v*f+D*p;return{x:s.x+k,y:s.y+x}},S=I>=B,_=S?(I-B)/2:(B-I)/2;if(_<=0){const v=m(0,0);u.add("flash_operation",{x:v.x,y:i(v.y)})}else{const v=S?{x:-_,y:0}:{x:0,y:-_},D=S?{x:_,y:0}:{x:0,y:_},k=m(v.x,v.y),x=m(D.x,D.y);u.add("flash_operation",{x:k.x,y:i(k.y)}).add("move_operation",{x:k.x,y:i(k.y)}).add("plot_operation",{x:x.x,y:i(x.y)}).add("flash_operation",{x:x.x,y:i(x.y)})}r.push(...u.build())}else{const C=Zbt({...s,...s.shape!=="circle"?{outer_width:I,outer_height:B}:{}}),h="rect_ccw_rotation"in s&&typeof s.rect_ccw_rotation=="number"?s.rect_ccw_rotation:void 0,u=hE().add("select_aperture",{aperture_number:mv(r,C)});h&&u.add("load_rotation",{rotation_degrees:h}),u.add("flash_operation",{x:s.x,y:i(s.y)}),h&&u.add("load_rotation",{rotation_degrees:0}),r.push(...u.build())}}}else if(s.type==="pcb_hole"){if(o!=="edgecut")for(const r of[t[hw(o,"soldermask")]]){if(s.hole_shape!=="circle"){console.warn("NOT IMPLEMENTED: drawing gerber for non-round holes");continue}r.push(...hE().add("select_aperture",{aperture_number:mv(r,Vbt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}}else if(s.type==="pcb_via"){if(s.layers.includes(o))for(const r of[t[hw(o,"copper")]])r.push(...hE().add("select_aperture",{aperture_number:mv(r,jbt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}else if(s.type==="pcb_board"&&o==="edgecut"){if(s.pcb_panel_id)continue;const a=t.Edge_Cuts,{width:g,height:c,center:I,outline:l}=s,B=hE().add("select_aperture",{aperture_number:10});if(l&&l.length>2){const C=l.map(E=>({x:E.x,y:i(E.y)})),h=C[0];B.add("move_operation",h);for(let E=1;E<C.length;E++)B.add("plot_operation",C[E]);const u=C[C.length-1];(u.x!==h.x||u.y!==h.y)&&B.add("plot_operation",h)}else B.add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});a.push(...B.build())}else if(s.type==="pcb_panel"&&o==="edgecut"){const r=t.Edge_Cuts,a=s,{width:g,height:c,center:I}=a,l=hE().add("select_aperture",{aperture_number:10}).add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});r.push(...l.build())}else if(s.type==="pcb_cutout"){if(o==="edgecut"){const r=t.Edge_Cuts,a=hE().add("select_aperture",{aperture_number:10}),g=s;if(g.shape==="rect"){const{center:c,width:I,height:l,rotation:B,corner_radius:C}=g,h=I/2,u=l/2,E=Math.max(0,Math.min(C??0,Math.abs(h),Math.abs(u))),f=(()=>{let m=Hbt();if(B){const S=B*Math.PI/180;m=gkA(S)}return akA(QU(c.x,c.y),m)})();if(E>0){const m={x:-h+E,y:u};let S=Vk(f,m);a.add("move_operation",{x:S.x,y:i(S.y)});const _=D=>{const k=Vk(f,D);a.add("plot_operation",{x:k.x,y:i(k.y)}),S=k},v=D=>{const k=Vk(f,D.point),x=Vk(f,D.center);a.add("set_movement_mode_to_clockwise_circular",{}).add("plot_operation",{x:k.x,y:i(k.y),i:x.x-S.x,j:i(x.y)-i(S.y)}).add("set_movement_mode_to_linear",{}),S=k};_({x:h-E,y:u}),v({point:{x:h,y:u-E},center:{x:h-E,y:u-E}}),_({x:h,y:-u+E}),v({point:{x:h-E,y:-u},center:{x:h-E,y:-u+E}}),_({x:-h+E,y:-u}),v({point:{x:-h,y:-u+E},center:{x:-h+E,y:-u+E}}),_({x:-h,y:u-E}),v({point:{x:-h+E,y:u},center:{x:-h+E,y:u-E}})}else{const S=[{x:-h,y:u},{x:h,y:u},{x:h,y:-u},{x:-h,y:-u}].map(_=>Vk(f,_));a.add("move_operation",{x:S[0].x,y:i(S[0].y)});for(let _=1;_<S.length;_++)a.add("plot_operation",{x:S[_].x,y:i(S[_].y)});a.add("plot_operation",{x:S[0].x,y:i(S[0].y)})}}else if(g.shape==="circle"){const{center:c,radius:I}=g,l={x:c.x+I,y:c.y},B={x:c.x-I,y:c.y};a.add("move_operation",{x:l.x,y:i(l.y)}).add("set_movement_mode_to_counterclockwise_circular",{}).add("plot_operation",{x:B.x,y:i(B.y),i:-I,j:0}).add("plot_operation",{x:l.x,y:i(l.y),i:I,j:0}).add("set_movement_mode_to_linear",{})}else if(g.shape==="polygon"){const{points:c}=g;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}r.push(...a.build())}}else if(s.type==="pcb_copper_pour"&&o===s.layer){const r=t[hw(o,"copper")],a=hE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{});if(s.shape==="brep"){const{brep_shape:c}=s;if(!c)continue;const{outer_ring:I,inner_rings:l}=c,B=h=>{if(!h||h.vertices.length===0)return;a.add("move_operation",{x:h.vertices[0].x,y:i(h.vertices[0].y)});const u=[...h.vertices,h.vertices[0]];for(let E=0;E<u.length-1;E++){const p=u[E],f=u[E+1];if(p.bulge&&Math.abs(p.bulge)>1e-9){const m=(A.flip_y_axis?-1:1)*p.bulge;m>0?a.add("set_movement_mode_to_counterclockwise_circular",{}):a.add("set_movement_mode_to_clockwise_circular",{});const S={x:p.x,y:p.y},_={x:f.x,y:f.y},v=_.x-S.x,D=_.y-S.y,k=Math.sqrt(v*v+D*D);if(k<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const x=Math.abs(m),M=4*Math.atan(x);if(Math.abs(Math.sin(M/2))<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const N=k/(2*Math.sin(M/2)),T=(Math.PI-M)/2,q=Math.atan2(D,v),P=m>0?T:-T,V=q+P,z=S.x+N*Math.cos(V),nA=S.y+N*Math.sin(V),gA=z-S.x,QA=nA-S.y;a.add("plot_operation",{x:f.x,y:i(f.y),i:gA,j:A.flip_y_axis?-QA:QA})}else a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)})}},C=h=>{const{vertices:u}=h;if(!u||u.length===0)return{vertices:[]};const E=u.length;return{vertices:[...u].reverse().map((m,S)=>{const _=(E-2-S+E)%E,v=u[_].bulge;return{...m,bulge:v?-v:void 0}})}};if(B(C(I)),l)for(const h of l)B(C(h))}else if(s.shape==="rect"){const{center:c,width:I,height:l,rotation:B}=s,C=I/2,h=l/2,u=[{x:-C,y:h},{x:C,y:h},{x:C,y:-h},{x:-C,y:-h}];let E=Hbt();if(B){const f=B*Math.PI/180;E=gkA(f)}E=akA(QU(c.x,c.y),E);const p=u.map(f=>Vk(E,f));a.add("move_operation",{x:p[0].x,y:i(p[0].y)});for(let f=1;f<p.length;f++)a.add("plot_operation",{x:p[f].x,y:i(p[f].y)});a.add("plot_operation",{x:p[0].x,y:i(p[0].y)})}else if(s.shape==="polygon"){const{points:c}=s;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}a.add("end_region_statement",{});const g=a.build();r.push(...g),s.covered_with_solder_mask===!1&&t[hw(o,"soldermask")].push(...g)}for(const o of Object.keys(t))t[o].push(...hE().add("end_of_file",{}).build());return t},_3={},ckA={},zbt;function Ubi(){return zbt||(zbt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var A=(function(){function o(s,r){var a=[],g=!0,c=!1,I=void 0;try{for(var l=s[Symbol.iterator](),B;!(g=(B=l.next()).done)&&(a.push(B.value),!(r&&a.length===r));g=!0);}catch(C){c=!0,I=C}finally{try{!g&&l.return&&l.return()}finally{if(c)throw I}}return a}return function(s,r){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return o(s,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();e.default=i,e.parseUnitObj=n;var t=/-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/;function i(o){var s=parseFloat(o),r=o.match(t)||[],a=r.length>0?o.substr(r[0].length).trim():"";return[s,a]}function n(o){var s=i(o),r=A(s,2),a=r[0],g=r[1];return{val:a,unit:g}}})(ckA)),ckA}var Xbt;function Hbi(){if(Xbt)return _3;Xbt=1,Object.defineProperty(_3,"__esModule",{value:!0});var e=(function(){function a(g,c){var I=[],l=!0,B=!1,C=void 0;try{for(var h=g[Symbol.iterator](),u;!(l=(u=h.next()).done)&&(I.push(u.value),!(c&&I.length===c));l=!0);}catch(E){B=!0,C=E}finally{try{!l&&h.return&&h.return()}finally{if(B)throw C}}return I}return function(g,c){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return a(g,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();_3.formatSI=o,_3.unformatSI=r;function A(a){return a&&a.__esModule?a:{default:a}}var t=Ubi(),i=A(t),n={24:"Y",21:"Z",18:"E",15:"P",12:"T",9:"G",6:"M",3:"k",0:"","-3":"m","-6":"µ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"};function o(a){if(a===0)return"0";for(var g=Math.abs(a),c=0;g>=1e3&&c<24;)g/=1e3,c+=3;for(;g<1&&c>-24;)g*=1e3,c-=3;var I=a<0?"-":"";return g>1e3?I+g.toFixed(0)+n[c]:I+parseFloat(g.toPrecision(3))+n[c]}var s={Y:1e24,Z:1e21,E:1e18,P:1e15,T:1e12,G:1e9,M:1e6,k:1e3,"":1,m:.001,µ:1e-6,u:1e-6,n:1e-9,p:1e-12,f:1e-15,a:1e-18,z:1e-21,y:1e-24};function r(a){if(a==null||a==="")return NaN;var g=(0,i.default)(a),c=e(g,2),I=c[0],l=c[1],B=s[l];return I*B}return _3}var Ybi=Hbi(),AAA={exports:{}};/* @license
6721
+ `.trim()}).add("comment",{comment:"APERTURE MACROS END"}).build())};function vbi(e){const A=e.filter(i=>i.type==="pcb_trace"),t={};for(const i of A)for(const n of i.route)n.route_type==="wire"&&(t[n.layer]=t[n.layer]||new Set,t[n.layer].add(n.width));return{top:Array.from(t.top||[]),bottom:Array.from(t.bottom||[])}}function kbi({glayer:e,soup:A,glayer_name:t}){const i=()=>{const s=e.reduce((r,a)=>a.command_code==="ADD"?Math.max(r,a.aperture_number):r,0);return s===0?10:s+1};e.push(...hE().add("comment",{comment:"aperture START LIST"}).build());const n=vbi(A);for(const s of n[t.startsWith("F_")?"top":"bottom"])e.push(...hE().add("define_aperture_template",{aperture_number:i(),standard_template_code:"C",diameter:s}).build());const o=Rbi(A,t.startsWith("F_")?"top":"bottom");for(const s of o)e.push(...hE().add("define_aperture_template",{aperture_number:i(),...s}).build());e.push(...hE().add("delete_attribute",{}).add("comment",{comment:"aperture END LIST"}).build())}var qbt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};throw e.shape==="polygon"?new Error("Polygon SMT pads are drawn as regions, not apertures"):new Error(`Unsupported shape ${e.shape}`)},Pbt=e=>{if("stroke_width"in e)return{standard_template_code:"C",diameter:e.stroke_width};throw new Error(`Provide stroke_width for: ${e}`)},Obt=e=>{if("font_size"in e)return{standard_template_code:"C",diameter:e.font_size/8};throw new Error(`Provide font_size for: ${e}`)},Wbt=e=>{if(e.shape==="rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="rotated_rect")return{standard_template_code:"R",x_size:e.width,y_size:e.height};if(e.shape==="circle")return{standard_template_code:"C",diameter:e.radius*2};if(e.shape==="pill"){if(!("width"in e&&"height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.width>=e.height?{macro_name:"HORZPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.width/2}:{macro_name:"VERTPILL",x_size:e.width,y_size:e.height,circle_diameter:Math.min(e.width,e.height),circle_center_offset:e.height/2}}throw new Error(`Unsupported shape ${e.shape}`)},Zbt=e=>{if(e.shape==="circle"){if(!("outer_diameter"in e&&"hole_diameter"in e))throw new Error("Invalid circle shape in getApertureConfigFromPcbPlatedHole: missing diameters");return{standard_template_code:"C",diameter:e.outer_diameter}}if(e.shape==="pill"){if(!("outer_width"in e&&"outer_height"in e))throw new Error("Invalid pill shape in getApertureConfigFromPcbPlatedHole: missing dimensions");return e.outer_width>e.outer_height?{macro_name:"HORZPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_width/2}:{macro_name:"VERTPILL",x_size:e.outer_width,y_size:e.outer_height,circle_diameter:Math.min(e.outer_width,e.outer_height),circle_center_offset:e.outer_height/2}}const A=e.shape;if(A==="circular_hole_with_rect_pad"||A==="pill_hole_with_rect_pad"||A==="rotated_pill_hole_with_rect_pad"){if(!("rect_pad_width"in e&&"rect_pad_height"in e))throw new Error(`Invalid ${A} shape in getApertureConfigFromPcbPlatedHole: missing dimensions`);return{standard_template_code:"R",x_size:e.rect_pad_width,y_size:e.rect_pad_height}}throw new Error(`Unsupported shape in getApertureConfigFromPcbPlatedHole: ${e.shape}`)},Vbt=e=>{if(!("hole_diameter"in e))throw new Error(`Invalid shape called in getApertureConfigFromCirclePcbHole: ${e.hole_shape}`);return{standard_template_code:"C",diameter:e.hole_diameter}},jbt=e=>{if(!("outer_diameter"in e))throw new Error("outer_diameter not specified in getApertureConfigFromPcbVia");return{standard_template_code:"C",diameter:e.outer_diameter}};function Rbi(e,A){const t=[],i=new Set,n=o=>{const s=dxi(o);i.has(s)||(t.push(o),i.add(s))};for(const o of e)o.type==="pcb_smtpad"?o.layer===A&&o.shape!=="polygon"&&n(qbt(o)):o.type==="pcb_solder_paste"?o.layer===A&&n(Wbt(o)):o.type==="pcb_plated_hole"?o.layers.includes(A)&&n(Zbt(o)):o.type==="pcb_hole"?o.hole_shape==="circle"?n(Vbt(o)):console.warn("NOT IMPLEMENTED: drawing gerber for non circle holes"):o.type==="pcb_via"?n(jbt(o)):o.type==="pcb_silkscreen_path"?n(Pbt(o)):o.type==="pcb_silkscreen_text"&&n(Obt(o));return t}var mv=(e,A)=>{let t;if("trace_width"in A){const i=A.trace_width;t=e.find(n=>"standard_template_code"in n&&n.command_code==="ADD"&&n.standard_template_code==="C"&&n.diameter===i)}else("standard_template_code"in A||"macro_name"in A)&&(t=e.find(i=>i.command_code==="ADD"&&Object.keys(A).every(n=>i[n]===A[n])));if(!t)throw new Error(`Aperture not found for search params ${JSON.stringify(A)}`);return t.aperture_number},Fbi={version:"0.0.41"},Nbi={"top-copper":"Copper,L1,Top","bottom-copper":"Copper,L2,Bot","top-soldermask":"Soldermask,Top","bottom-soldermask":"Soldermask,Bot","top-silkscreen":"Legend,Top","bottom-silkscreen":"Legend,Bot","top-paste":"Paste,Top","bottom-paste":"Paste,Bot",edgecut:"Profile,NP"},wv=e=>{const A=Nbi[e.layer_type?`${e.layer}-${e.layer_type}`:e.layer];return hE().add("add_attribute_on_file",{attribute_name:"GenerationSoftware",attribute_value:`tscircuit,circuit-json-to-gerber,${Fbi.version}`}).add("add_attribute_on_file",{attribute_name:"CreationDate",attribute_value:new Date().toISOString()}).add("add_attribute_on_file",{attribute_name:"SameCoordinates",attribute_value:"Original"}).add("add_attribute_on_file",{attribute_name:"FileFunction",attribute_value:A}).$if(e.layer!=="edgecut",t=>t.add("add_attribute_on_file",{attribute_name:"FilePolarity",attribute_value:e.layer_type==="soldermask"?"Negative":"Positive"})).add("format_specification",{}).add("set_unit",{unit:"MM"}).add("comment",{comment:"Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)"}).add("comment",{comment:`Created by tscircuit (builder) date ${new Date().toISOString()}`}).add("set_movement_mode_to_linear",{}).add("set_layer_polarity",{polarity:"D"}).add("create_arc",{}).build()},Gbi={top:"F_",bottom:"B_"},Mbi={copper:"Cu",silkscreen:"SilkScreen",soldermask:"Mask",mask:"Mask",paste:"Paste"},hw=(e,A)=>e==="edgecut"?"Edge_Cuts":`${Gbi[e]}${Mbi[A]}`,Lbi=(e,A={})=>{A.flip_y_axis??=!1;const t={F_Cu:wv({layer:"top",layer_type:"copper"}),F_SilkScreen:wv({layer:"top",layer_type:"silkscreen"}),F_Mask:wv({layer:"top",layer_type:"soldermask"}),F_Paste:wv({layer:"top",layer_type:"paste"}),B_Cu:wv({layer:"bottom",layer_type:"copper"}),B_SilkScreen:wv({layer:"bottom",layer_type:"silkscreen"}),B_Mask:wv({layer:"bottom",layer_type:"soldermask"}),B_Paste:wv({layer:"bottom",layer_type:"paste"}),Edge_Cuts:wv({layer:"edgecut"})};for(const o of["F_Cu","B_Cu","F_Mask","B_Mask","F_Paste","B_Paste","F_SilkScreen","B_SilkScreen"]){const s=t[o];Sbi(s),kbi({soup:e,glayer:s,glayer_name:o})}t.Edge_Cuts.push(...hE().add("define_aperture_template",{aperture_number:10,standard_template_code:"C",diameter:.05}).build());const i=o=>A.flip_y_axis?-o:o,n=new Map;for(const o of e)if(o.type==="pcb_plated_hole"&&"x"in o&&typeof o.x=="number"&&"y"in o&&typeof o.y=="number"){const s="ccw_rotation"in o&&typeof o.ccw_rotation=="number"?o.ccw_rotation:0;n.set(`${o.x}:${o.y}`,s)}for(const o of["top","bottom","edgecut"])for(const s of e)if(s.type==="pcb_trace"){const{route:r}=s;for(const[a,g]of bbi(r))if(a.route_type==="wire"&&a.layer===o){const c=t[hw(o,"copper")];c.push(...hE().add("select_aperture",{aperture_number:mv(c,{trace_width:a.width})}).add("move_operation",{x:a.x,y:i(a.y)}).add("plot_operation",{x:g.x,y:i(g.y)}).build())}}else if(s.type==="pcb_silkscreen_path"){if(s.layer===o){const r=t[hw(o,"silkscreen")],a=Pbt(s),g=hE().add("select_aperture",{aperture_number:mv(r,a)});s.route.length>0&&g.add("move_operation",{x:s.route[0].x,y:i(s.route[0].y)});for(let c=1;c<s.route.length;c++)g.add("plot_operation",{x:s.route[c].x,y:i(s.route[c].y)});r.push(...g.build())}}else if(s.type==="pcb_silkscreen_text"){if(s.layer===o){const a=t[hw(o,"silkscreen")],g=Obt(s),c=hE().add("select_aperture",{aperture_number:mv(a,g)});let I=s.anchor_position.x,l=s.anchor_position.y;const B=s.font_size*.7,C=B*.4,h=B*.5,u=s.text.split("").reduce((k,x)=>x===" "?k+h+C:k+B+C,0)-C,E=B;switch(s.anchor_alignment||(()=>{const k=s.anchor_side;if(k)switch(k){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right"}})()||"center"){case"top_left":break;case"top_center":I-=u/2;break;case"top_right":I-=u;break;case"center_right":l-=E/2;break;case"center_left":I-=u,l-=E/2;break;case"bottom_left":l-=E;break;case"bottom_center":I-=u/2,l-=E;break;case"bottom_right":I-=u,l-=E;break;default:I-=u/2,l-=E/2;break}let f=I;const m=l;let S=s.ccw_rotation||0;const _=f+u/2,v=m+E/2,D=[];if(s.layer==="bottom"&&(D.push(QU(_,v),{a:-1,b:0,c:0,d:1,e:0,f:0},QU(-_,-v)),S=-S),S){const k=S*Math.PI/180;D.push(QU(_,v),gkA(k),QU(-_,-v))}for(const k of s.text.toUpperCase()){if(k===" "){f+=h+C;continue}const x=rkA[k]||[];for(const M of x){const N=f+M.x1*B,T=m+M.y1*B,q=f+M.x2*B,P=m+M.y2*B;let V={x:N,y:T},z={x:q,y:P};if(D.length>0){const nA=akA(...D);V=Vk(nA,V),z=Vk(nA,z)}c.add("move_operation",{x:V.x,y:i(V.y)}),c.add("plot_operation",{x:z.x,y:i(z.y)})}f+=B+C}a.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape!=="polygon"){if(s.layer===o)for(const r of[t[hw(o,"copper")],t[hw(o,"soldermask")]]){const a=qbt(s),g=mv(r,a),c=hE().add("select_aperture",{aperture_number:g});s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:s.ccw_rotation}),c.add("flash_operation",{x:s.x,y:i(s.y)}),s.shape==="rotated_rect"&&s.ccw_rotation&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_smtpad"&&s.shape==="polygon"){if(s.layer===o){const r=[t[hw(o,"copper")]];(!("is_covered_with_solder_mask"in s)||s.is_covered_with_solder_mask!==!1)&&r.push(t[hw(o,"soldermask")]);for(const a of r){const g=hE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{}),{points:c}=s;if(c&&c.length>0){g.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)g.add("plot_operation",{x:c[I].x,y:i(c[I].y)});g.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}g.add("end_region_statement",{}),a.push(...g.build())}}}else if(s.type==="pcb_solder_paste"){if(s.layer===o){const r=t[hw(o,"paste")],a=mv(r,Wbt(s)),g="ccw_rotation"in s&&typeof s.ccw_rotation=="number"?s.ccw_rotation:n.get(`${s.x}:${s.y}`)??0,c=hE().add("select_aperture",{aperture_number:a});g&&c.add("load_rotation",{rotation_degrees:g}),c.add("flash_operation",{x:s.x,y:i(s.y)}),g&&c.add("load_rotation",{rotation_degrees:0}),r.push(...c.build())}}else if(s.type==="pcb_plated_hole"){if(s.layers.includes(o))for(const r of[t[hw(o,"copper")],t[hw(o,"soldermask")]]){const a="hole_width"in s&&typeof s.hole_width=="number"?s.hole_width:0,g="hole_height"in s&&typeof s.hole_height=="number"?s.hole_height:0,c=[a];"outer_width"in s&&typeof s.outer_width=="number"&&c.push(s.outer_width),"rect_pad_width"in s&&typeof s.rect_pad_width=="number"&&c.push(s.rect_pad_width);const I=Math.max(...c),l=[g];"outer_height"in s&&typeof s.outer_height=="number"&&l.push(s.outer_height),"rect_pad_height"in s&&typeof s.rect_pad_height=="number"&&l.push(s.rect_pad_height);const B=Math.max(...l);if(s.shape==="pill"){const C={standard_template_code:"C",diameter:Math.min(I,B)};let h;try{h=mv(r,C)}catch{h=Math.max(...r.filter(v=>"aperture_number"in v).map(v=>v.aperture_number),9)+1,r.push(...hE().add("define_aperture_template",{aperture_number:h,...C}).build())}const u=hE().add("select_aperture",{aperture_number:h}),E=(s.ccw_rotation??0)*Math.PI/180,p=Math.cos(E),f=Math.sin(E),m=(v,D)=>{const k=v*p-D*f,x=v*f+D*p;return{x:s.x+k,y:s.y+x}},S=I>=B,_=S?(I-B)/2:(B-I)/2;if(_<=0){const v=m(0,0);u.add("flash_operation",{x:v.x,y:i(v.y)})}else{const v=S?{x:-_,y:0}:{x:0,y:-_},D=S?{x:_,y:0}:{x:0,y:_},k=m(v.x,v.y),x=m(D.x,D.y);u.add("flash_operation",{x:k.x,y:i(k.y)}).add("move_operation",{x:k.x,y:i(k.y)}).add("plot_operation",{x:x.x,y:i(x.y)}).add("flash_operation",{x:x.x,y:i(x.y)})}r.push(...u.build())}else{const C=Zbt({...s,...s.shape!=="circle"?{outer_width:I,outer_height:B}:{}}),h="rect_ccw_rotation"in s&&typeof s.rect_ccw_rotation=="number"?s.rect_ccw_rotation:void 0,u=hE().add("select_aperture",{aperture_number:mv(r,C)});h&&u.add("load_rotation",{rotation_degrees:h}),u.add("flash_operation",{x:s.x,y:i(s.y)}),h&&u.add("load_rotation",{rotation_degrees:0}),r.push(...u.build())}}}else if(s.type==="pcb_hole"){if(o!=="edgecut")for(const r of[t[hw(o,"soldermask")]]){if(s.hole_shape!=="circle"){console.warn("NOT IMPLEMENTED: drawing gerber for non-round holes");continue}r.push(...hE().add("select_aperture",{aperture_number:mv(r,Vbt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}}else if(s.type==="pcb_via"){if(s.layers.includes(o))for(const r of[t[hw(o,"copper")]])r.push(...hE().add("select_aperture",{aperture_number:mv(r,jbt(s))}).add("flash_operation",{x:s.x,y:i(s.y)}).build())}else if(s.type==="pcb_board"&&o==="edgecut"){if(s.pcb_panel_id)continue;const a=t.Edge_Cuts,{width:g,height:c,center:I,outline:l}=s,B=hE().add("select_aperture",{aperture_number:10});if(l&&l.length>2){const C=l.map(E=>({x:E.x,y:i(E.y)})),h=C[0];B.add("move_operation",h);for(let E=1;E<C.length;E++)B.add("plot_operation",C[E]);const u=C[C.length-1];(u.x!==h.x||u.y!==h.y)&&B.add("plot_operation",h)}else B.add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});a.push(...B.build())}else if(s.type==="pcb_panel"&&o==="edgecut"){const r=t.Edge_Cuts,a=s,{width:g,height:c,center:I}=a,l=hE().add("select_aperture",{aperture_number:10}).add("move_operation",{x:I.x-g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y-c/2)}).add("plot_operation",{x:I.x+g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y+c/2)}).add("plot_operation",{x:I.x-g/2,y:i(I.y-c/2)});r.push(...l.build())}else if(s.type==="pcb_cutout"){if(o==="edgecut"){const r=t.Edge_Cuts,a=hE().add("select_aperture",{aperture_number:10}),g=s;if(g.shape==="rect"){const{center:c,width:I,height:l,rotation:B,corner_radius:C}=g,h=I/2,u=l/2,E=Math.max(0,Math.min(C??0,Math.abs(h),Math.abs(u))),f=(()=>{let m=Hbt();if(B){const S=B*Math.PI/180;m=gkA(S)}return akA(QU(c.x,c.y),m)})();if(E>0){const m={x:-h+E,y:u};let S=Vk(f,m);a.add("move_operation",{x:S.x,y:i(S.y)});const _=D=>{const k=Vk(f,D);a.add("plot_operation",{x:k.x,y:i(k.y)}),S=k},v=D=>{const k=Vk(f,D.point),x=Vk(f,D.center);a.add("set_movement_mode_to_clockwise_circular",{}).add("plot_operation",{x:k.x,y:i(k.y),i:x.x-S.x,j:i(x.y)-i(S.y)}).add("set_movement_mode_to_linear",{}),S=k};_({x:h-E,y:u}),v({point:{x:h,y:u-E},center:{x:h-E,y:u-E}}),_({x:h,y:-u+E}),v({point:{x:h-E,y:-u},center:{x:h-E,y:-u+E}}),_({x:-h+E,y:-u}),v({point:{x:-h,y:-u+E},center:{x:-h+E,y:-u+E}}),_({x:-h,y:u-E}),v({point:{x:-h+E,y:u},center:{x:-h+E,y:u-E}})}else{const S=[{x:-h,y:u},{x:h,y:u},{x:h,y:-u},{x:-h,y:-u}].map(_=>Vk(f,_));a.add("move_operation",{x:S[0].x,y:i(S[0].y)});for(let _=1;_<S.length;_++)a.add("plot_operation",{x:S[_].x,y:i(S[_].y)});a.add("plot_operation",{x:S[0].x,y:i(S[0].y)})}}else if(g.shape==="circle"){const{center:c,radius:I}=g,l={x:c.x+I,y:c.y},B={x:c.x-I,y:c.y};a.add("move_operation",{x:l.x,y:i(l.y)}).add("set_movement_mode_to_counterclockwise_circular",{}).add("plot_operation",{x:B.x,y:i(B.y),i:-I,j:0}).add("plot_operation",{x:l.x,y:i(l.y),i:I,j:0}).add("set_movement_mode_to_linear",{})}else if(g.shape==="polygon"){const{points:c}=g;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}r.push(...a.build())}}else if(s.type==="pcb_copper_pour"&&o===s.layer){const r=t[hw(o,"copper")],a=hE().add("select_aperture",{aperture_number:10}).add("start_region_statement",{});if(s.shape==="brep"){const{brep_shape:c}=s;if(!c)continue;const{outer_ring:I,inner_rings:l}=c,B=h=>{if(!h||h.vertices.length===0)return;a.add("move_operation",{x:h.vertices[0].x,y:i(h.vertices[0].y)});const u=[...h.vertices,h.vertices[0]];for(let E=0;E<u.length-1;E++){const p=u[E],f=u[E+1];if(p.bulge&&Math.abs(p.bulge)>1e-9){const m=(A.flip_y_axis?-1:1)*p.bulge;m>0?a.add("set_movement_mode_to_counterclockwise_circular",{}):a.add("set_movement_mode_to_clockwise_circular",{});const S={x:p.x,y:p.y},_={x:f.x,y:f.y},v=_.x-S.x,D=_.y-S.y,k=Math.sqrt(v*v+D*D);if(k<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const x=Math.abs(m),M=4*Math.atan(x);if(Math.abs(Math.sin(M/2))<1e-9){a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)});continue}const N=k/(2*Math.sin(M/2)),T=(Math.PI-M)/2,q=Math.atan2(D,v),P=m>0?T:-T,V=q+P,z=S.x+N*Math.cos(V),nA=S.y+N*Math.sin(V),gA=z-S.x,QA=nA-S.y;a.add("plot_operation",{x:f.x,y:i(f.y),i:gA,j:A.flip_y_axis?-QA:QA})}else a.add("set_movement_mode_to_linear",{}),a.add("plot_operation",{x:f.x,y:i(f.y)})}},C=h=>{const{vertices:u}=h;if(!u||u.length===0)return{vertices:[]};const E=u.length;return{vertices:[...u].reverse().map((m,S)=>{const _=(E-2-S+E)%E,v=u[_].bulge;return{...m,bulge:v?-v:void 0}})}};if(B(C(I)),l)for(const h of l)B(C(h))}else if(s.shape==="rect"){const{center:c,width:I,height:l,rotation:B}=s,C=I/2,h=l/2,u=[{x:-C,y:h},{x:C,y:h},{x:C,y:-h},{x:-C,y:-h}];let E=Hbt();if(B){const f=B*Math.PI/180;E=gkA(f)}E=akA(QU(c.x,c.y),E);const p=u.map(f=>Vk(E,f));a.add("move_operation",{x:p[0].x,y:i(p[0].y)});for(let f=1;f<p.length;f++)a.add("plot_operation",{x:p[f].x,y:i(p[f].y)});a.add("plot_operation",{x:p[0].x,y:i(p[0].y)})}else if(s.shape==="polygon"){const{points:c}=s;if(c.length>0){a.add("move_operation",{x:c[0].x,y:i(c[0].y)});for(let I=1;I<c.length;I++)a.add("plot_operation",{x:c[I].x,y:i(c[I].y)});a.add("plot_operation",{x:c[0].x,y:i(c[0].y)})}}a.add("end_region_statement",{});const g=a.build();r.push(...g),s.covered_with_solder_mask===!1&&t[hw(o,"soldermask")].push(...g)}for(const o of Object.keys(t))t[o].push(...hE().add("end_of_file",{}).build());return t},_3={},ckA={},zbt;function Ubi(){return zbt||(zbt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var A=(function(){function o(s,r){var a=[],g=!0,c=!1,I=void 0;try{for(var l=s[Symbol.iterator](),B;!(g=(B=l.next()).done)&&(a.push(B.value),!(r&&a.length===r));g=!0);}catch(C){c=!0,I=C}finally{try{!g&&l.return&&l.return()}finally{if(c)throw I}}return a}return function(s,r){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return o(s,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();e.default=i,e.parseUnitObj=n;var t=/-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/;function i(o){var s=parseFloat(o),r=o.match(t)||[],a=r.length>0?o.substr(r[0].length).trim():"";return[s,a]}function n(o){var s=i(o),r=A(s,2),a=r[0],g=r[1];return{val:a,unit:g}}})(ckA)),ckA}var Xbt;function Hbi(){if(Xbt)return _3;Xbt=1,Object.defineProperty(_3,"__esModule",{value:!0});var e=(function(){function a(g,c){var I=[],l=!0,B=!1,C=void 0;try{for(var h=g[Symbol.iterator](),u;!(l=(u=h.next()).done)&&(I.push(u.value),!(c&&I.length===c));l=!0);}catch(E){B=!0,C=E}finally{try{!l&&h.return&&h.return()}finally{if(B)throw C}}return I}return function(g,c){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return a(g,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();_3.formatSI=o,_3.unformatSI=r;function A(a){return a&&a.__esModule?a:{default:a}}var t=Ubi(),i=A(t),n={24:"Y",21:"Z",18:"E",15:"P",12:"T",9:"G",6:"M",3:"k",0:"","-3":"m","-6":"µ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"};function o(a){if(a===0)return"0";for(var g=Math.abs(a),c=0;g>=1e3&&c<24;)g/=1e3,c+=3;for(;g<1&&c>-24;)g*=1e3,c-=3;var I=a<0?"-":"";return g>1e3?I+g.toFixed(0)+n[c]:I+parseFloat(g.toPrecision(3))+n[c]}var s={Y:1e24,Z:1e21,E:1e18,P:1e15,T:1e12,G:1e9,M:1e6,k:1e3,"":1,m:.001,µ:1e-6,u:1e-6,n:1e-9,p:1e-12,f:1e-15,a:1e-18,z:1e-21,y:1e-24};function r(a){if(a==null||a==="")return NaN;var g=(0,i.default)(a),c=e(g,2),I=c[0],l=c[1],B=s[l];return I*B}return _3}var Ybi=Hbi(),AAA={exports:{}};/* @license
6722
6722
  Papa Parse
6723
6723
  v5.5.3
6724
6724
  https://github.com/mholt/PapaParse
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tscircuit/runframe",
3
3
  "main": "dist/preview.js",
4
4
  "type": "module",
5
- "version": "0.0.1321",
5
+ "version": "0.0.1322",
6
6
  "exports": {
7
7
  ".": "./dist/preview.js",
8
8
  "./preview": "./dist/preview.js",
@@ -67,7 +67,7 @@
67
67
  "chokidar-cli": "^3.0.0",
68
68
  "circuit-json": "0.0.303",
69
69
  "circuit-json-to-bom-csv": "^0.0.8",
70
- "circuit-json-to-gerber": "^0.0.41",
70
+ "circuit-json-to-gerber": "^0.0.42",
71
71
  "circuit-json-to-gltf": "^0.0.41",
72
72
  "circuit-json-to-kicad": "^0.0.25",
73
73
  "circuit-json-to-lbrn": "^0.0.4",