react-semaphor 0.1.604 → 0.1.605
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.
- package/dist/analytics-protocol/index.js +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +1 -1
- package/dist/brand-studio/index.js +3 -8
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{add-to-dashboard-DeHEBEqG.js → add-to-dashboard-CEmZUf9o.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-BREc5WGv.js → analytics-base-schemas-DMFrDqn_.js} +1 -1
- package/dist/chunks/appearance-provider-CfoAVQuG.js +608 -0
- package/dist/chunks/appearance-runtime-provider-Bx8H-moR.js +1 -0
- package/dist/chunks/{assistant-chat-CjYrwVDa.js → assistant-chat-DgUaCE9k.js} +19 -24
- package/dist/chunks/attachment-filter-line-C_zHMhGh.js +1 -0
- package/dist/chunks/{bookmark-impact-C89zBLq3.js → bookmark-impact-BAtemeyK.js} +1 -1
- package/dist/chunks/bookmark-state-DScd31KT.js +1 -0
- package/dist/chunks/brand-C9APUFaP.js +1 -0
- package/dist/chunks/card-filter-builder-ClWrXB7P.js +11 -0
- package/dist/chunks/comparison-window-caption-tguyN24S.js +1 -0
- package/dist/chunks/{context-ALdccLHw.js → context-CntvtZwC.js} +1 -1
- package/dist/chunks/dashboard-ChIcbVTx.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-CwMlhkxV.js +42 -0
- package/dist/chunks/dashboard-controls-UCSAFCGA.js +42 -0
- package/dist/chunks/dashboard-json-B120hYDa.js +1 -0
- package/dist/chunks/dashboard-temporal-snapshot-BFJKbp_6.js +1 -0
- package/dist/chunks/edit-dashboard-visual-DvHp03h_.js +73 -0
- package/dist/chunks/filter-line-WwUV5JzN.js +1 -0
- package/dist/chunks/filter-reach-preview-C5M5_hf_.js +1 -0
- package/dist/chunks/filter-value-text-DqTHe_vu.js +1 -0
- package/dist/chunks/{index-BE1DfxNs.js → index-bkP6SnYu.js} +1 -1
- package/dist/chunks/kpi-trend-rule-B87LNzcz.js +1 -0
- package/dist/chunks/{layout-grid-BWtlgw0T.js → layout-grid-CFzqJ7GC.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-5T-2euHZ.js +1 -0
- package/dist/chunks/matrix-member-presentation-vVAv-aqg.js +1 -0
- package/dist/chunks/matrix-operation-contract-CWvcEsQ0.js +1 -0
- package/dist/chunks/numeric-range-options-C8tr-Bls.js +1 -0
- package/dist/chunks/{palette-BzC-CGOc.js → palette-NvEIuXHN.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-BNWhS8mv.js +1 -0
- package/dist/chunks/pivot-result-identity-B0eWVMXg.js +1 -0
- package/dist/chunks/{raw-temporal-value-DeyEhL0S.js → raw-temporal-value-BHQ-ldpW.js} +1 -1
- package/dist/chunks/report-preferences-dialog-Bseb2Rlg.js +1 -0
- package/dist/chunks/{report-runtime-context-BWzIHCKK.js → report-runtime-context-Cd1b5pku.js} +1 -1
- package/dist/chunks/resolve-dashboard-input-context-BDY7KwRe.js +8 -0
- package/dist/chunks/resolver-CjsW8Rz0.js +1 -0
- package/dist/chunks/saved-dashboard-context-C3lWc4Dx.js +1 -0
- package/dist/chunks/schema-O1Y3WTGF.js +4 -0
- package/dist/chunks/{selection-filter-compiler-CCoCD25M.js → selection-filter-compiler-kYsRugss.js} +1 -1
- package/dist/chunks/semaphor-ready-indicator-BQarSo6S.js +612 -0
- package/dist/chunks/set-6mOnfQeH.js +1 -0
- package/dist/chunks/slider-BPnHdMGq.js +4 -0
- package/dist/chunks/stored-dashboard-DfrxDLhR.js +1 -0
- package/dist/chunks/{table-export-sheet-rC5pKmXg.js → table-export-sheet-xaczzWZF.js} +1 -1
- package/dist/chunks/{token-types-Bj9iMy0w.js → token-types-1vzMWjI-.js} +1 -1
- package/dist/chunks/{validators-CqV3Yka1.js → validators-Dg2kyF4_.js} +1 -1
- package/dist/chunks/{variable-draft-DJrfUyhv.js → variable-draft-B4_xqr4Y.js} +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/format-utils/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/brand-studio/brand-studio-draft.d.ts +45 -13
- package/dist/types/brand-studio/brand-studio-editor.d.ts +13 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +17 -6
- package/dist/types/components/visual/data-table/types/data-table.d.ts +52 -42
- package/dist/types/index.js +1 -1
- package/dist/types/lib/appearance/aliases.d.ts +3 -0
- package/dist/types/lib/appearance/index.d.ts +1 -0
- package/dist/types/lib/appearance/table-density.d.ts +18 -0
- package/dist/types/lib/appearance/types.d.ts +39 -1
- package/dist/types/lib/dashboard-viewer/column-header-actions.d.ts +100 -0
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +0 -27
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +26 -2
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +2 -0
- package/dist/types/lib/hooks/use-add-new-frame.d.ts +7 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +4 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +8 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +14 -2
- package/dist/types/lib/stores/explorer-actions.d.ts +0 -4
- package/dist/types/lib/types/common-types.d.ts +1 -2
- package/dist/types/lib/utils/card-config-utils.d.ts +13 -0
- package/dist/types/lib/utils/field-placement.d.ts +17 -0
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +21 -1
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +7 -4
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +48 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +2 -8
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-display-values.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-display.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/card-settings/table-viewer-switches.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +132 -3
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +10 -1
- package/dist/types/shared/dashboard-authoring/field-aggregations.d.ts +9 -2
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +6 -2
- package/dist/types/shared/dashboard-authoring/sheet-kinds.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +140 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +15 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +8 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +1 -1
- package/dist/usage-events/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/appearance-context-BqBZrijL.js +0 -1
- package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +0 -1
- package/dist/chunks/bookmark-state-69YYnRql.js +0 -1
- package/dist/chunks/brand-DCaZyRt6.js +0 -1
- package/dist/chunks/card-filter-builder-CTp6RAz1.js +0 -17
- package/dist/chunks/comparison-window-caption-C312mn3s.js +0 -1
- package/dist/chunks/dashboard-BX28ld6s.js +0 -1
- package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +0 -37
- package/dist/chunks/dashboard-controls-DhRjB7MA.js +0 -42
- package/dist/chunks/dashboard-json-9cHzhSjC.js +0 -1
- package/dist/chunks/dates-D-KP8G-z.js +0 -1
- package/dist/chunks/edit-DEAK0UZo.js +0 -1
- package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +0 -93
- package/dist/chunks/filter-line-CwQrqORc.js +0 -1
- package/dist/chunks/filter-reach-preview-gixPFlZj.js +0 -1
- package/dist/chunks/filter-value-text-B3tXakhd.js +0 -1
- package/dist/chunks/index-B-VF1ogs.js +0 -1
- package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +0 -1
- package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +0 -1
- package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +0 -1
- package/dist/chunks/metric-comparison-DEZYXROZ.js +0 -1
- package/dist/chunks/paintbrush-BjS3SbrH.js +0 -6
- package/dist/chunks/pickers-DuBrUht0.js +0 -1
- package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +0 -1
- package/dist/chunks/pivot-result-identity-DTNCB--h.js +0 -1
- package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +0 -1
- package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +0 -8
- package/dist/chunks/resolver-AN9ChBfZ.js +0 -1
- package/dist/chunks/save-DdFUZcbi.js +0 -6
- package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +0 -1
- package/dist/chunks/schema-MC0cQSAb.js +0 -4
- package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +0 -999
- package/dist/chunks/set-DuJfGkbY.js +0 -1
- package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +0 -6
- package/dist/chunks/stored-dashboard-Ctcpkllg.js +0 -1
- package/dist/chunks/style-sheet-parts-BRGt9O05.js +0 -178
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import{jsx as v,jsxs as re,Fragment as xt}from"react/jsx-runtime";import*as l from"react";import ke,{forwardRef as jn,createElement as In,useLayoutEffect as cs,useState as ro,useRef as vn,useMemo as us,useId as ds,useImperativeHandle as fs}from"react";import{b as ps,c as J,d as ve,g as hs}from"./pickers-DuBrUht0.js";import"./validators-CqV3Yka1.js";import"./matrix-operation-contract-D1RC1bfi.js";import"./analytics-base-schemas-BREc5WGv.js";import"../value-format-preferences/index.js";import*as Gt from"react-dom";import gs from"react-dom";import{u as ms,b as vs}from"./appearance-context-BqBZrijL.js";function Sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function it(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Sr(o,t);return!n&&typeof a=="function"&&(n=!0),a;});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Sr(e[o],null);}};};}function G(...e){return l.useCallback(it(...e),e);}var ys=Symbol.for("react.lazy"),Bt=l[" use ".trim().toString()];function bs(e){return typeof e=="object"&&e!==null&&"then"in e;}function oo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ys&&"_payload"in e&&bs(e._payload);}// @__NO_SIDE_EFFECTS__
|
|
2
|
-
function Kn(e){const t=/* @__PURE__ */ws(e),n=l.forwardRef((r,o)=>{let{children:a,...s}=r;oo(a)&&typeof Bt=="function"&&(a=Bt(a._payload));const i=l.Children.toArray(a),c=i.find(Ss);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return/* @__PURE__ */v(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null});}return/* @__PURE__ */v(t,{...s,ref:o,children:a});});return n.displayName=`${e}.Slot`,n;}var ao=/* @__PURE__ */Kn("Slot");// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function ws(e){const t=l.forwardRef((n,r)=>{let{children:o,...a}=n;if(oo(o)&&typeof Bt=="function"&&(o=Bt(o._payload)),l.isValidElement(o)){const s=Cs(o),i=Es(a,o.props);return o.type!==l.Fragment&&(i.ref=r?it(r,s):s),l.cloneElement(o,i);}return l.Children.count(o)>1?l.Children.only(null):null;});return t.displayName=`${e}.SlotClone`,t;}var xs=Symbol("radix.slottable");function Ss(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xs;}function Es(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c;}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "));}return{...e,...n};}function Cs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}const Er=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cr=ps,We=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Cr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=a==null?void 0:a[u];if(d===null)return null;const g=Er(d)||Er(f);return o[u][g];}),i=n&&Object.entries(n).reduce((u,d)=>{let[f,g]=d;return g===void 0||(u[f]=g),u;},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:g,...y}=d;return Object.entries(y).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b;})?[...u,f,g]:u;},[]);return Cr(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className);},Rs=We("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-control text-sm font-medium transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground focus-visible:border-ring",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 focus-visible:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline focus-visible:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10",xs:"h-7 px-2.5 text-[12px]"}},defaultVariants:{variant:"default",size:"default"}}),io=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>/* @__PURE__ */v(r?ao:"button",{className:J(Rs({variant:t,size:n,className:e})),ref:a,...o}));io.displayName="Button";/**
|
|
4
|
-
* @license lucide-react v0.453.0 - ISC
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the ISC license.
|
|
7
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/const As=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),so=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
9
|
-
* @license lucide-react v0.453.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var Ts={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
14
|
-
* @license lucide-react v0.453.0 - ISC
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the ISC license.
|
|
17
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/const Ps=jn(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},c)=>In("svg",{ref:c,...Ts,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:so("lucide",o),...i},[...s.map(([u,d])=>In(u,d)),...(Array.isArray(a)?a:[a])]));/**
|
|
19
|
-
* @license lucide-react v0.453.0 - ISC
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the ISC license.
|
|
22
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/const ge=(e,t)=>{const n=jn(({className:r,...o},a)=>In(Ps,{ref:a,iconNode:t,className:so(`lucide-${As(e)}`,r),...o}));return n.displayName=`${e}`,n;};/**
|
|
24
|
-
* @license lucide-react v0.453.0 - ISC
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the ISC license.
|
|
27
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/const Np=ge("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
|
|
29
|
-
* @license lucide-react v0.453.0 - ISC
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the ISC license.
|
|
32
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/const Ip=ge("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
34
|
-
* @license lucide-react v0.453.0 - ISC
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the ISC license.
|
|
37
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/const Ns=ge("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
39
|
-
* @license lucide-react v0.453.0 - ISC
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the ISC license.
|
|
42
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/const lo=ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
44
|
-
* @license lucide-react v0.453.0 - ISC
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the ISC license.
|
|
47
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/const Is=ge("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
49
|
-
* @license lucide-react v0.453.0 - ISC
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the ISC license.
|
|
52
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/const Op=ge("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
54
|
-
* @license lucide-react v0.453.0 - ISC
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the ISC license.
|
|
57
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/const _p=ge("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
59
|
-
* @license lucide-react v0.453.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const Os=ge("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
64
|
-
* @license lucide-react v0.453.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const Fp=ge("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
69
|
-
* @license lucide-react v0.453.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const Lp=ge("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);/**
|
|
74
|
-
* @license lucide-react v0.453.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const kp=ge("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
79
|
-
* @license lucide-react v0.453.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const Dp=ge("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
84
|
-
* @license lucide-react v0.453.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const Mp=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function k(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o);};}function $p(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return/* @__PURE__ */v(n.Provider,{value:c,children:s});};r.displayName=e+"Provider";function o(a){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``);}return[r,o];}function Se(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=f=>{var E;const{scope:g,children:y,...x}=f,m=((E=g==null?void 0:g[e])==null?void 0:E[c])||i,b=l.useMemo(()=>x,Object.values(x));return/* @__PURE__ */v(m.Provider,{value:b,children:y});};u.displayName=a+"Provider";function d(f,g){var m;const y=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,x=l.useContext(y);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``);}return[u,d];}const o=()=>{const a=n.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c]);};};return o.scopeName=e,[r,_s(o,...t)];}function _s(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...i,...f};},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s]);};};return n.scopeName=t.scopeName,n;}var le=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Fs=l[" useInsertionEffect ".trim().toString()]||le;function $e({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Ls({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i;},[i,r]);}const u=l.useCallback(d=>{var f;if(i){const g=ks(d)?d(e):d;g!==e&&((f=s.current)==null||f.call(s,g));}else a(d);},[i,e,a,s]);return[c,u];}function Ls({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),a=l.useRef(t);return Fs(()=>{a.current=t;},[t]),l.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n);},[n,o]),[n,r,a];}function ks(e){return typeof e=="function";}// @__NO_SIDE_EFFECTS__
|
|
89
|
-
function Ds(e){const t=/* @__PURE__ */Ms(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(Bs);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return/* @__PURE__ */v(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null});}return/* @__PURE__ */v(t,{...s,ref:o,children:a});});return n.displayName=`${e}.Slot`,n;}// @__NO_SIDE_EFFECTS__
|
|
90
|
-
function Ms(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=Ws(o),i=Us(a,o.props);return o.type!==l.Fragment&&(i.ref=r?it(r,s):s),l.cloneElement(o,i);}return l.Children.count(o)>1?l.Children.only(null):null;});return t.displayName=`${e}.SlotClone`,t;}var $s=Symbol("radix.slottable");function Bs(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$s;}function Us(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c;}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "));}return{...e,...n};}function Ws(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}var Hs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=Hs.reduce((e,t)=>{const n=/* @__PURE__ */Ds(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),/* @__PURE__ */v(c,{...i,ref:a});});return r.displayName=`Primitive.${t}`,{...e,[t]:r};},{});function Vs(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t));}// @__NO_SIDE_EFFECTS__
|
|
91
|
-
function Rr(e){const t=/* @__PURE__ */zs(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(Ks);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return/* @__PURE__ */v(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null});}return/* @__PURE__ */v(t,{...s,ref:o,children:a});});return n.displayName=`${e}.Slot`,n;}// @__NO_SIDE_EFFECTS__
|
|
92
|
-
function zs(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=Ys(o),i=Gs(a,o.props);return o.type!==l.Fragment&&(i.ref=r?it(r,s):s),l.cloneElement(o,i);}return l.Children.count(o)>1?l.Children.only(null):null;});return t.displayName=`${e}.SlotClone`,t;}var js=Symbol("radix.slottable");function Ks(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===js;}function Gs(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c;}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "));}return{...e,...n};}function Ys(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}function co(e){const t=e+"CollectionProvider",[n,r]=Se(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:/* @__PURE__ */new Map()}),s=m=>{const{scope:b,children:E}=m,p=ke.useRef(null),h=ke.useRef(/* @__PURE__ */new Map()).current;return/* @__PURE__ */v(o,{scope:b,itemMap:h,collectionRef:p,children:E});};s.displayName=t;const i=e+"CollectionSlot",c=/* @__PURE__ */Rr(i),u=ke.forwardRef((m,b)=>{const{scope:E,children:p}=m,h=a(i,E),w=G(b,h.collectionRef);return/* @__PURE__ */v(c,{ref:w,children:p});});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",g=/* @__PURE__ */Rr(d),y=ke.forwardRef((m,b)=>{const{scope:E,children:p,...h}=m,w=ke.useRef(null),S=G(b,w),C=a(d,E);return ke.useEffect(()=>(C.itemMap.set(w,{ref:w,...h}),()=>void C.itemMap.delete(w))),/* @__PURE__ */v(g,{[f]:"",ref:S,children:p});});y.displayName=d;function x(m){const b=a(e+"CollectionConsumer",m);return ke.useCallback(()=>{const p=b.collectionRef.current;if(!p)return[];const h=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,R)=>h.indexOf(C.ref.current)-h.indexOf(R.ref.current));},[b.collectionRef,b.itemMap]);}return[{Provider:s,Slot:u,ItemSlot:y},x,r];}var Xs=l.createContext(void 0);function St(e){const t=l.useContext(Xs);return e||t||"ltr";}function ue(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e;}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n);},[]);}function qs(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o);};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0});},[n,t]);}var Zs="DismissableLayer",On="dismissableLayer.update",Qs="dismissableLayer.pointerDownOutside",Js="dismissableLayer.focusOutside",Ar,uo=l.createContext({layers:/* @__PURE__ */new Set(),layersWithOutsidePointerEventsDisabled:/* @__PURE__ */new Set(),branches:/* @__PURE__ */new Set()}),Yt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(uo),[d,f]=l.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=l.useState({}),x=G(t,R=>f(R)),m=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=m.indexOf(b),p=d?m.indexOf(d):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,w=p>=E,S=nl(R=>{const T=R.target,A=[...u.branches].some(I=>I.contains(T));!w||A||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i());},g),C=rl(R=>{const T=R.target;[...u.branches].some(I=>I.contains(T))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i());},g);return qs(R=>{p===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()));},g),l.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ar=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Tr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ar);};},[d,g,n,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Tr());},[d,u]),l.useEffect(()=>{const R=()=>y({});return document.addEventListener(On,R),()=>document.removeEventListener(On,R);},[]),/* @__PURE__ */v(W.div,{...c,ref:x,style:{pointerEvents:h?w?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,C.onFocusCapture),onBlurCapture:k(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,S.onPointerDownCapture)});});Yt.displayName=Zs;var el="DismissableLayerBranch",tl=l.forwardRef((e,t)=>{const n=l.useContext(uo),r=l.useRef(null),o=G(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a);};},[n.branches]),/* @__PURE__ */v(W.div,{...e,ref:o});});tl.displayName=el;function nl(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){fo(Qs,n,u,{discrete:!0});};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c();}else t.removeEventListener("click",o.current);r.current=!1;},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a);},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current);};},[t,n]),{onPointerDownCapture:()=>r.current=!0};}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&fo(Js,n,{originalEvent:a},{discrete:!1});};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o);},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1};}function Tr(){const e=new CustomEvent(On);document.dispatchEvent(e);}function fo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Vs(o,a):o.dispatchEvent(a);}var yn=0;function po(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pr()),document.body.insertAdjacentElement("beforeend",e[1]??Pr()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--;};},[]);}function Pr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e;}var bn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",Nr={bubbles:!1,cancelable:!0},ol="FocusScope",Gn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=ue(o),d=ue(a),f=l.useRef(null),g=G(t,m=>c(m)),y=l.useRef({paused:!1,pause(){this.paused=!0;},resume(){this.paused=!1;}}).current;l.useEffect(()=>{if(r){let m=function(h){if(y.paused||!i)return;const w=h.target;i.contains(w)?f.current=w:De(f.current,{select:!0});},b=function(h){if(y.paused||!i)return;const w=h.relatedTarget;w!==null&&(i.contains(w)||De(f.current,{select:!0}));},E=function(h){if(document.activeElement===document.body)for(const S of h)S.removedNodes.length>0&&De(i);};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const p=new MutationObserver(E);return i&&p.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),p.disconnect();};}},[r,i,y.paused]),l.useEffect(()=>{if(i){Or.add(y);const m=document.activeElement;if(!i.contains(m)){const E=new CustomEvent(bn,Nr);i.addEventListener(bn,u),i.dispatchEvent(E),E.defaultPrevented||(al(ul(ho(i)),{select:!0}),document.activeElement===m&&De(i));}return()=>{i.removeEventListener(bn,u),setTimeout(()=>{const E=new CustomEvent(wn,Nr);i.addEventListener(wn,d),i.dispatchEvent(E),E.defaultPrevented||De(m??document.body,{select:!0}),i.removeEventListener(wn,d),Or.remove(y);},0);};}},[i,u,d,y]);const x=l.useCallback(m=>{if(!n&&!r||y.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,E=document.activeElement;if(b&&E){const p=m.currentTarget,[h,w]=il(p);h&&w?!m.shiftKey&&E===w?(m.preventDefault(),n&&De(h,{select:!0})):m.shiftKey&&E===h&&(m.preventDefault(),n&&De(w,{select:!0})):E===p&&m.preventDefault();}},[n,r,y.paused]);return/* @__PURE__ */v(W.div,{tabIndex:-1,...s,ref:g,onKeyDown:x});});Gn.displayName=ol;function al(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(De(r,{select:t}),document.activeElement!==n)return;}function il(e){const t=ho(e),n=Ir(t,e),r=Ir(t.reverse(),e);return[n,r];}function ho(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;}});for(;n.nextNode();)t.push(n.currentNode);return t;}function Ir(e,t){for(const n of e)if(!sl(n,{upTo:t}))return n;}function sl(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement;}return!1;}function ll(e){return e instanceof HTMLInputElement&&"select"in e;}function De(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ll(e)&&t&&e.select();}}var Or=cl();function cl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_r(e,t),e.unshift(t);},remove(t){var n;e=_r(e,t),(n=e[0])==null||n.resume();}};}function _r(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n;}function ul(e){return e.filter(t=>t.tagName!=="A");}var dl=l[" useId ".trim().toString()]||(()=>{}),fl=0;function Xe(e){const[t,n]=l.useState(dl());return le(()=>{n(r=>r??String(fl++));},[e]),t?`radix-${t}`:"";}const pl=["top","right","bottom","left"],Be=Math.min,pe=Math.max,Ut=Math.round,Pt=Math.floor,Te=e=>({x:e,y:e}),hl={left:"right",right:"left",bottom:"top",top:"bottom"};function _n(e,t,n){return pe(e,Be(t,n));}function Oe(e,t){return typeof e=="function"?e(t):e;}function _e(e){return e.split("-")[0];}function st(e){return e.split("-")[1];}function Yn(e){return e==="x"?"y":"x";}function Xn(e){return e==="y"?"height":"width";}function Ae(e){const t=e[0];return t==="t"||t==="b"?"y":"x";}function qn(e){return Yn(Ae(e));}function gl(e,t,n){n===void 0&&(n=!1);const r=st(e),o=qn(e),a=Xn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Wt(s)),[s,Wt(s)];}function ml(e){const t=Wt(e);return[Fn(e),t,Fn(t)];}function Fn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start");}const Fr=["left","right"],Lr=["right","left"],vl=["top","bottom"],yl=["bottom","top"];function bl(e,t,n){switch(e){case"top":case"bottom":return n?t?Lr:Fr:t?Fr:Lr;case"left":case"right":return t?vl:yl;default:return[];}}function wl(e,t,n,r){const o=st(e);let a=bl(_e(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Fn)))),a;}function Wt(e){const t=_e(e);return hl[t]+e.slice(t.length);}function xl(e){return{top:0,right:0,bottom:0,left:0,...e};}function go(e){return typeof e!="number"?xl(e):{top:e,right:e,bottom:e,left:e};}function Ht(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n};}function kr(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),s=qn(t),i=Xn(s),c=_e(t),u=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let y;switch(c){case"top":y={x:d,y:r.y-o.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y};}switch(st(t)){case"start":y[s]-=g*(n&&u?-1:1);break;case"end":y[s]+=g*(n&&u?-1:1);break;}return y;}async function Sl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:y=0}=Oe(t,e),x=go(y),b=i[g?f==="floating"?"reference":"floating":f],E=Ht(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||(await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating))),boundary:u,rootBoundary:d,strategy:c})),p=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,h=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=(await(a.isElement==null?void 0:a.isElement(h)))?(await(a.getScale==null?void 0:a.getScale(h)))||{x:1,y:1}:{x:1,y:1},S=Ht(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:p,offsetParent:h,strategy:c}):p);return{top:(E.top-S.top+x.top)/w.y,bottom:(S.bottom-E.bottom+x.bottom)/w.y,left:(E.left-S.left+x.left)/w.x,right:(S.right-E.right+x.right)/w.x};}const El=50,Cl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:Sl},c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=kr(u,r,c),g=r,y=0;const x={};for(let m=0;m<a.length;m++){const b=a[m];if(!b)continue;const{name:E,fn:p}=b,{x:h,y:w,data:S,reset:C}=await p({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:x,rects:u,platform:i,elements:{reference:e,floating:t}});d=h??d,f=w??f,x[E]={...x[E],...S},C&&y<El&&(y++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:f}=kr(u,g,c)),m=-1);}return{x:d,y:f,placement:g,strategy:o,middlewareData:x};},Rl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=Oe(e,t)||{};if(u==null)return{};const f=go(d),g={x:n,y:r},y=qn(o),x=Xn(y),m=await s.getDimensions(u),b=y==="y",E=b?"top":"left",p=b?"bottom":"right",h=b?"clientHeight":"clientWidth",w=a.reference[x]+a.reference[y]-g[y]-a.floating[x],S=g[y]-a.reference[y],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=C?C[h]:0;(!R||!(await(s.isElement==null?void 0:s.isElement(C))))&&(R=i.floating[h]||a.floating[x]);const T=w/2-S/2,A=R/2-m[x]/2-1,I=Be(f[E],A),_=Be(f[p],A),$=I,z=R-m[x]-_,H=R/2-m[x]/2+T,Y=_n($,H,z),M=!c.arrow&&st(o)!=null&&H!==Y&&a.reference[x]/2-(H<$?I:_)-m[x]/2<0,F=M?H<$?H-$:H-z:0;return{[y]:g[y]+F,data:{[y]:Y,centerOffset:H-Y-F,...(M&&{alignmentOffset:F})},reset:M};}}),Al=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...b}=Oe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=_e(o),p=Ae(i),h=_e(i)===i,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=g||(h||!m?[Wt(i)]:ml(i)),C=x!=="none";!g&&C&&S.push(...wl(i,m,x,w));const R=[i,...S],T=await c.detectOverflow(t,b),A=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&A.push(T[E]),f){const H=gl(o,s,w);A.push(T[H[0]],T[H[1]]);}if(I=[...I,{placement:o,overflows:A}],!A.every(H=>H<=0)){var _,$;const H=(((_=a.flip)==null?void 0:_.index)||0)+1,Y=R[H];if(Y&&(!(f==="alignment"?p!==Ae(Y):!1)||I.every(N=>Ae(N.placement)===p?N.overflows[0]>0:!0)))return{data:{index:H,overflows:I},reset:{placement:Y}};let M=($=I.filter(F=>F.overflows[0]<=0).sort((F,N)=>F.overflows[1]-N.overflows[1])[0])==null?void 0:$.placement;if(!M)switch(y){case"bestFit":{var z;const F=(z=I.filter(N=>{if(C){const O=Ae(N.placement);return O===p||O==="y";}return!0;}).map(N=>[N.placement,N.overflows.filter(O=>O>0).reduce((O,D)=>O+D,0)]).sort((N,O)=>N[1]-O[1])[0])==null?void 0:z[0];F&&(M=F);break;}case"initialPlacement":M=i;break;}if(o!==M)return{reset:{placement:M}};}return{};}};};function Dr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width};}function Mr(e){return pl.some(t=>e[t]>=0);}const Tl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=Oe(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...a,elementContext:"reference"}),i=Dr(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Mr(i)}};}case"escaped":{const s=await r.detectOverflow(t,{...a,altBoundary:!0}),i=Dr(s,n.floating);return{data:{escapedOffsets:i,escaped:Mr(i)}};}default:return{};}}};},mo=/* @__PURE__ */new Set(["left","top"]);async function Pl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=_e(n),i=st(n),c=Ae(n)==="y",u=mo.has(s)?-1:1,d=a&&c?-1:1,f=Oe(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof x=="number"&&(y=i==="end"?x*-1:x),c?{x:y*d,y:g*u}:{x:g*u,y:y*d};}const Nl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Pl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}};}};},Il=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:E=>{let{x:p,y:h}=E;return{x:p,y:h};}},...u}=Oe(e,t),d={x:n,y:r},f=await a.detectOverflow(t,u),g=Ae(_e(o)),y=Yn(g);let x=d[y],m=d[g];if(s){const E=y==="y"?"top":"left",p=y==="y"?"bottom":"right",h=x+f[E],w=x-f[p];x=_n(h,x,w);}if(i){const E=g==="y"?"top":"left",p=g==="y"?"bottom":"right",h=m+f[E],w=m-f[p];m=_n(h,m,w);}const b=c.fn({...t,[y]:x,[g]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:s,[g]:i}}};}};},Ol=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Oe(e,t),d={x:n,y:r},f=Ae(o),g=Yn(f);let y=d[g],x=d[f];const m=Oe(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const h=g==="y"?"height":"width",w=a.reference[g]-a.floating[h]+b.mainAxis,S=a.reference[g]+a.reference[h]-b.mainAxis;y<w?y=w:y>S&&(y=S);}if(u){var E,p;const h=g==="y"?"width":"height",w=mo.has(_e(o)),S=a.reference[f]-a.floating[h]+(w&&((E=s.offset)==null?void 0:E[f])||0)+(w?0:b.crossAxis),C=a.reference[f]+a.reference[h]+(w?0:((p=s.offset)==null?void 0:p[f])||0)-(w?b.crossAxis:0);x<S?x=S:x>C&&(x=C);}return{[g]:y,[f]:x};}};},_l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...u}=Oe(e,t),d=await s.detectOverflow(t,u),f=_e(o),g=st(o),y=Ae(o)==="y",{width:x,height:m}=a.floating;let b,E;f==="top"||f==="bottom"?(b=f,E=g===((await(s.isRTL==null?void 0:s.isRTL(i.floating)))?"start":"end")?"left":"right"):(E=f,b=g==="end"?"top":"bottom");const p=m-d.top-d.bottom,h=x-d.left-d.right,w=Be(m-d[b],p),S=Be(x-d[E],h),C=!t.middlewareData.shift;let R=w,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=p),C&&!g){const I=pe(d.left,0),_=pe(d.right,0),$=pe(d.top,0),z=pe(d.bottom,0);y?T=x-2*(I!==0||_!==0?I+_:pe(d.left,d.right)):R=m-2*($!==0||z!==0?$+z:pe(d.top,d.bottom));}await c({...t,availableWidth:T,availableHeight:R});const A=await s.getDimensions(i.floating);return x!==A.width||m!==A.height?{reset:{rects:!0}}:{};}};};function Xt(){return typeof window<"u";}function lt(e){return vo(e)?(e.nodeName||"").toLowerCase():"#document";}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window;}function Pe(e){var t;return(t=(vo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement;}function vo(e){return Xt()?e instanceof Node||e instanceof he(e).Node:!1;}function we(e){return Xt()?e instanceof Element||e instanceof he(e).Element:!1;}function Fe(e){return Xt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1;}function $r(e){return!Xt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot;}function Et(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xe(e);return /auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents";}function Fl(e){return /^(table|td|th)$/.test(lt(e));}function qt(e){try{if(e.matches(":popover-open"))return!0;}catch{}try{return e.matches(":modal");}catch{return!1;}}const Ll=/transform|translate|scale|rotate|perspective|filter/,kl=/paint|layout|strict|content/,je=e=>!!e&&e!=="none";let xn;function Zn(e){const t=we(e)?xe(e):e;return je(t.transform)||je(t.translate)||je(t.scale)||je(t.rotate)||je(t.perspective)||!Qn()&&(je(t.backdropFilter)||je(t.filter))||Ll.test(t.willChange||"")||kl.test(t.contain||"");}function Dl(e){let t=Ue(e);for(;Fe(t)&&!nt(t);){if(Zn(t))return t;if(qt(t))return null;t=Ue(t);}return null;}function Qn(){return xn==null&&(xn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xn;}function nt(e){return /^(html|body|#document)$/.test(lt(e));}function xe(e){return he(e).getComputedStyle(e);}function Zt(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY};}function Ue(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$r(e)&&e.host||Pe(e);return $r(t)?t.host:t;}function yo(e){const t=Ue(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&Et(t)?t:yo(t);}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=he(o);if(a){const i=Ln(s);return t.concat(s,s.visualViewport||[],Et(o)?o:[],i&&n?yt(i):[]);}else return t.concat(o,yt(o,[],n));}function Ln(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null;}function bo(e){const t=xe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fe(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Ut(n)!==a||Ut(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i};}function Jn(e){return we(e)?e:e.contextElement;}function et(e){const t=Jn(e);if(!Fe(t))return Te(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=bo(t);let s=(a?Ut(n.width):n.width)/r,i=(a?Ut(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i};}const Ml=/* @__PURE__ */Te(0);function wo(e){const t=he(e);return!Qn()||!t.visualViewport?Ml:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop};}function $l(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t;}function Ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Jn(e);let s=Te(1);t&&(r?we(r)&&(s=et(r)):s=et(e));const i=$l(a,n,r)?wo(a):Te(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const g=he(a),y=r&&we(r)?he(r):r;let x=g,m=Ln(x);for(;m&&r&&y!==x;){const b=et(m),E=m.getBoundingClientRect(),p=xe(m),h=E.left+(m.clientLeft+parseFloat(p.paddingLeft))*b.x,w=E.top+(m.clientTop+parseFloat(p.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=h,u+=w,x=he(m),m=Ln(x);}}return Ht({width:d,height:f,x:c,y:u});}function Qt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:Ke(Pe(e)).left+n;}function xo(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Qt(e,n),o=n.top+t.scrollTop;return{x:r,y:o};}function Bl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Pe(r),i=t?qt(t.floating):!1;if(r===s||i&&a)return n;let c={scrollLeft:0,scrollTop:0},u=Te(1);const d=Te(0),f=Fe(r);if((f||!f&&!a)&&((lt(r)!=="body"||Et(s))&&(c=Zt(r)),f)){const y=Ke(r);u=et(r),d.x=y.x+r.clientLeft,d.y=y.y+r.clientTop;}const g=s&&!f&&!a?xo(s,c):Te(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y};}function Ul(e){return Array.from(e.getClientRects());}function Wl(e){const t=Pe(e),n=Zt(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Qt(e);const i=-n.scrollTop;return xe(r).direction==="rtl"&&(s+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i};}const Br=25;function Hl(e,t){const n=he(e),r=Pe(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const d=Qn();(!d||d&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop);}const u=Qt(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),y=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(r.clientWidth-f.clientWidth-y);x<=Br&&(a-=x);}else u<=Br&&(a+=u);return{width:a,height:s,x:i,y:c};}function Vl(e,t){const n=Ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Fe(e)?et(e):Te(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:s,height:i,x:c,y:u};}function Ur(e,t,n){let r;if(t==="viewport")r=Hl(e,n);else if(t==="document")r=Wl(Pe(e));else if(we(t))r=Vl(t,n);else{const o=wo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height};}return Ht(r);}function So(e,t){const n=Ue(e);return n===t||!we(n)||nt(n)?!1:xe(n).position==="fixed"||So(n,t);}function zl(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(i=>we(i)&<(i)!=="body"),o=null;const a=xe(e).position==="fixed";let s=a?Ue(e):e;for(;we(s)&&!nt(s);){const i=xe(s),c=Zn(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Et(s)&&!c&&So(e,s))?r=r.filter(d=>d!==s):o=i,s=Ue(s);}return t.set(e,r),r;}function jl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...(n==="clippingAncestors"?qt(t)?[]:zl(t,this._c):[].concat(n)),r],i=Ur(t,s[0],o);let c=i.top,u=i.right,d=i.bottom,f=i.left;for(let g=1;g<s.length;g++){const y=Ur(t,s[g],o);c=pe(y.top,c),u=Be(y.right,u),d=Be(y.bottom,d),f=pe(y.left,f);}return{width:u-f,height:d-c,x:f,y:c};}function Kl(e){const{width:t,height:n}=bo(e);return{width:t,height:n};}function Gl(e,t,n){const r=Fe(t),o=Pe(t),a=n==="fixed",s=Ke(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=Te(0);function u(){c.x=Qt(o);}if(r||!r&&!a)if((lt(t)!=="body"||Et(o))&&(i=Zt(t)),r){const y=Ke(t,!0,a,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop;}else o&&u();a&&!r&&o&&u();const d=o&&!r&&!a?xo(o,i):Te(0),f=s.left+i.scrollLeft-c.x-d.x,g=s.top+i.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height};}function Sn(e){return xe(e).position==="static";}function Wr(e,t){if(!Fe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pe(e)===n&&(n=n.ownerDocument.body),n;}function Eo(e,t){const n=he(e);if(qt(e))return n;if(!Fe(e)){let o=Ue(e);for(;o&&!nt(o);){if(we(o)&&!Sn(o))return o;o=Ue(o);}return n;}let r=Wr(e,t);for(;r&&Fl(r)&&Sn(r);)r=Wr(r,t);return r&&nt(r)&&Sn(r)&&!Zn(r)?n:r||Dl(e)||n;}const Yl=async function(e){const t=this.getOffsetParent||Eo,n=this.getDimensions,r=await n(e.floating);return{reference:Gl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}};};function Xl(e){return xe(e).direction==="rtl";}const ql={convertOffsetParentRelativeRectToViewportRelativeRect:Bl,getDocumentElement:Pe,getClippingRect:jl,getOffsetParent:Eo,getElementRects:Yl,getClientRects:Ul,getDimensions:Kl,getScale:et,isElement:we,isRTL:Xl};function Co(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height;}function Zl(e,t){let n=null,r;const o=Pe(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null;}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:g,height:y}=u;if(i||t(),!g||!y)return;const x=Pt(f),m=Pt(o.clientWidth-(d+g)),b=Pt(o.clientHeight-(f+y)),E=Pt(d),h={rootMargin:-x+"px "+-m+"px "+-b+"px "+-E+"px",threshold:pe(0,Be(1,c))||1};let w=!0;function S(C){const R=C[0].intersectionRatio;if(R!==c){if(!w)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7);},1e3);}R===1&&!Co(u,e.getBoundingClientRect())&&s(),w=!1;}try{n=new IntersectionObserver(S,{...h,root:o.ownerDocument});}catch{n=new IntersectionObserver(S,h);}n.observe(e);}return s(!0),a;}function Ql(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Jn(e),d=o||a?[...(u?yt(u):[]),...(t?yt(t):[])]:[];d.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n);});const f=u&&i?Zl(u,n):null;let g=-1,y=null;s&&(y=new ResizeObserver(E=>{let[p]=E;p&&p.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var h;(h=y)==null||h.observe(t);})),n();}),u&&!c&&y.observe(u),t&&y.observe(t));let x,m=c?Ke(e):null;c&&b();function b(){const E=Ke(e);m&&!Co(m,E)&&n(),m=E,x=requestAnimationFrame(b);}return n(),()=>{var E;d.forEach(p=>{o&&p.removeEventListener("scroll",n),a&&p.removeEventListener("resize",n);}),f==null||f(),(E=y)==null||E.disconnect(),y=null,c&&cancelAnimationFrame(x);};}const Jl=Nl,ec=Il,tc=Al,nc=_l,rc=Tl,Hr=Rl,oc=Ol,ac=(e,t,n)=>{const r=/* @__PURE__ */new Map(),o={platform:ql,...n},a={...o.platform,_c:r};return Cl(e,t,{...o,platform:a});};var ic=typeof document<"u",sc=function(){},kt=ic?cs:sc;function Vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Vt(e[r],t[r]))return!1;return!0;}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Vt(e[a],t[a]))return!1;}return!0;}return e!==e&&t!==t;}function Ro(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1;}function Vr(e,t){const n=Ro(e);return Math.round(t*n)/n;}function En(e){const t=l.useRef(e);return kt(()=>{t.current=e;}),t;}function lc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=l.useState(r);Vt(g,r)||y(r);const[x,m]=l.useState(null),[b,E]=l.useState(null),p=l.useCallback(N=>{N!==C.current&&(C.current=N,m(N));},[]),h=l.useCallback(N=>{N!==R.current&&(R.current=N,E(N));},[]),w=a||x,S=s||b,C=l.useRef(null),R=l.useRef(null),T=l.useRef(d),A=c!=null,I=En(c),_=En(o),$=En(u),z=l.useCallback(()=>{if(!C.current||!R.current)return;const N={placement:t,strategy:n,middleware:g};_.current&&(N.platform=_.current),ac(C.current,R.current,N).then(O=>{const D={...O,isPositioned:$.current!==!1};H.current&&!Vt(T.current,D)&&(T.current=D,Gt.flushSync(()=>{f(D);}));});},[g,t,n,_,$]);kt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})));},[u]);const H=l.useRef(!1);kt(()=>(H.current=!0,()=>{H.current=!1;}),[]),kt(()=>{if(w&&(C.current=w),S&&(R.current=S),w&&S){if(I.current)return I.current(w,S,z);z();}},[w,S,z,I,A]);const Y=l.useMemo(()=>({reference:C,floating:R,setReference:p,setFloating:h}),[p,h]),M=l.useMemo(()=>({reference:w,floating:S}),[w,S]),F=l.useMemo(()=>{const N={position:n,left:0,top:0};if(!M.floating)return N;const O=Vr(M.floating,d.x),D=Vr(M.floating,d.y);return i?{...N,transform:"translate("+O+"px, "+D+"px)",...(Ro(M.floating)>=1.5&&{willChange:"transform"})}:{position:n,left:O,top:D};},[n,i,M.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:z,refs:Y,elements:M,floatingStyles:F}),[d,z,Y,M,F]);}const cc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current");}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hr({element:r.current,padding:o}).fn(n):{}:r?Hr({element:r,padding:o}).fn(n):{};}};},uc=(e,t)=>{const n=Jl(e);return{name:n.name,fn:n.fn,options:[e,t]};},dc=(e,t)=>{const n=ec(e);return{name:n.name,fn:n.fn,options:[e,t]};},fc=(e,t)=>({fn:oc(e).fn,options:[e,t]}),pc=(e,t)=>{const n=tc(e);return{name:n.name,fn:n.fn,options:[e,t]};},hc=(e,t)=>{const n=nc(e);return{name:n.name,fn:n.fn,options:[e,t]};},gc=(e,t)=>{const n=rc(e);return{name:n.name,fn:n.fn,options:[e,t]};},mc=(e,t)=>{const n=cc(e);return{name:n.name,fn:n.fn,options:[e,t]};};var vc="Arrow",Ao=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return/* @__PURE__ */v(W.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:/* @__PURE__ */v("polygon",{points:"0,0 30,0 15,10"})});});Ao.displayName=vc;var yc=Ao;function er(e){const[t,n]=l.useState(void 0);return le(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.blockSize;}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i});});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e);}else n(void 0);},[e]),t;}var tr="Popper",[To,ct]=Se(tr),[bc,Po]=To(tr),No=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return/* @__PURE__ */v(bc,{scope:t,anchor:r,onAnchorChange:o,children:n});};No.displayName=tr;var Io="PopperAnchor",Oo=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Po(Io,n),s=l.useRef(null),i=G(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||s.current,u!==c.current&&a.onAnchorChange(c.current);}),r?null:/* @__PURE__ */v(W.div,{...o,ref:i});});Oo.displayName=Io;var nr="PopperContent",[wc,xc]=To(nr),_o=l.forwardRef((e,t)=>{var L,j,ne,X,K,q;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:x,...m}=e,b=Po(nr,n),[E,p]=l.useState(null),h=G(t,P=>p(P)),[w,S]=l.useState(null),C=er(w),R=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,A=r+(a!=="center"?"-"+a:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},_=Array.isArray(u)?u:[u],$=_.length>0,z={padding:I,boundary:_.filter(Ec),altBoundary:$},{refs:H,floatingStyles:Y,placement:M,isPositioned:F,middlewareData:N}=lc({strategy:"fixed",placement:A,whileElementsMounted:(...P)=>Ql(...P,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[uc({mainAxis:o+T,alignmentAxis:s}),c&&dc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?fc():void 0,...z}),c&&pc({...z}),hc({...z,apply:({elements:P,rects:V,availableWidth:B,availableHeight:U})=>{const{width:te,height:se}=V.reference,de=P.floating.style;de.setProperty("--radix-popper-available-width",`${B}px`),de.setProperty("--radix-popper-available-height",`${U}px`),de.setProperty("--radix-popper-anchor-width",`${te}px`),de.setProperty("--radix-popper-anchor-height",`${se}px`);}}),w&&mc({element:w,padding:i}),Cc({arrowWidth:R,arrowHeight:T}),g&&gc({strategy:"referenceHidden",...z})]}),[O,D]=ko(M),Z=ue(x);le(()=>{F&&(Z==null||Z());},[F,Z]);const Q=(L=N.arrow)==null?void 0:L.x,oe=(j=N.arrow)==null?void 0:j.y,ee=((ne=N.arrow)==null?void 0:ne.centerOffset)!==0,[ie,ce]=l.useState();return le(()=>{E&&ce(window.getComputedStyle(E).zIndex);},[E]),/* @__PURE__ */v("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:F?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(X=N.transformOrigin)==null?void 0:X.x,(K=N.transformOrigin)==null?void 0:K.y].join(" "),...(((q=N.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"})},dir:e.dir,children:/* @__PURE__ */v(wc,{scope:n,placedSide:O,onArrowChange:S,arrowX:Q,arrowY:oe,shouldHideArrow:ee,children:/* @__PURE__ */v(W.div,{"data-side":O,"data-align":D,...m,ref:h,style:{...m.style,animation:F?void 0:"none"}})})});});_o.displayName=nr;var Fo="PopperArrow",Sc={top:"bottom",right:"left",bottom:"top",left:"right"},Lo=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=xc(Fo,r),s=Sc[a.placedSide];return(/* @__PURE__ */v("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:/* @__PURE__ */v(yc,{...o,ref:n,style:{...o.style,display:"block"}})}));});Lo.displayName=Fo;function Ec(e){return e!==null;}var Cc=e=>({name:"transformOrigin",options:e,fn(t){var b,E,p;const{placement:n,rects:r,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=ko(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((E=o.arrow)==null?void 0:E.x)??0)+i/2,y=(((p=o.arrow)==null?void 0:p.y)??0)+c/2;let x="",m="";return u==="bottom"?(x=s?f:`${g}px`,m=`${-c}px`):u==="top"?(x=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,m=s?f:`${y}px`):u==="left"&&(x=`${r.floating.width+c}px`,m=s?f:`${y}px`),{data:{x,y:m}};}});function ko(e){const[t,n="center"]=e.split("-");return[t,n];}var rr=No,Jt=Oo,or=_o,ar=Lo,Rc="Portal",en=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);le(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?gs.createPortal(/* @__PURE__ */v(W.div,{...r,ref:t}),s):null;});en.displayName=Rc;function Ac(e,t){return l.useReducer((n,r)=>t[n][r]??n,e);}var Ee=e=>{const{present:t,children:n}=e,r=Tc(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=G(r.ref,Pc(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null;};Ee.displayName="Presence";function Tc(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Ac(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Nt(r.current);a.current=i==="mounted"?u:"none";},[i]),le(()=>{const u=r.current,d=o.current;if(d!==e){const g=a.current,y=Nt(u);e?c("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&g!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e;}},[e,c]),le(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=y=>{const m=Nt(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b);});}},g=y=>{y.target===t&&(a.current=Nt(r.current));};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f);};}else c("ANIMATION_END");},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u);},[])};}function Nt(e){return(e==null?void 0:e.animationName)||"none";}function Pc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}var Cn="rovingFocusGroup.onEntryFocus",Nc={bubbles:!1,cancelable:!0},Ct="RovingFocusGroup",[kn,Do,Ic]=co(Ct),[Oc,tn]=Se(Ct,[Ic]),[_c,Fc]=Oc(Ct),Mo=l.forwardRef((e,t)=>/* @__PURE__ */v(kn.Provider,{scope:e.__scopeRovingFocusGroup,children:/* @__PURE__ */v(kn.Slot,{scope:e.__scopeRovingFocusGroup,children:/* @__PURE__ */v(Lc,{...e,ref:t})})}));Mo.displayName=Ct;var Lc=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,g=l.useRef(null),y=G(t,g),x=St(a),[m,b]=$e({prop:s,defaultProp:i??null,onChange:c,caller:Ct}),[E,p]=l.useState(!1),h=ue(u),w=Do(n),S=l.useRef(!1),[C,R]=l.useState(0);return l.useEffect(()=>{const T=g.current;if(T)return T.addEventListener(Cn,h),()=>T.removeEventListener(Cn,h);},[h]),/* @__PURE__ */v(_c,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(T=>b(T),[b]),onItemShiftTab:l.useCallback(()=>p(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(T=>T+1),[]),onFocusableItemRemove:l.useCallback(()=>R(T=>T-1),[]),children:/* @__PURE__ */v(W.div,{tabIndex:E||C===0?-1:0,"data-orientation":r,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{S.current=!0;}),onFocus:k(e.onFocus,T=>{const A=!S.current;if(T.target===T.currentTarget&&A&&!E){const I=new CustomEvent(Cn,Nc);if(T.currentTarget.dispatchEvent(I),!I.defaultPrevented){const _=w().filter(M=>M.focusable),$=_.find(M=>M.active),z=_.find(M=>M.id===m),Y=[$,z,..._].filter(Boolean).map(M=>M.ref.current);Uo(Y,d);}}S.current=!1;}),onBlur:k(e.onBlur,()=>p(!1))})});}),$o="RovingFocusGroupItem",Bo=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=Xe(),u=a||c,d=Fc($o,n),f=d.currentTabStopId===u,g=Do(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:m}=d;return l.useEffect(()=>{if(r)return y(),()=>x();},[r,y,x]),/* @__PURE__ */v(kn.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:/* @__PURE__ */v(W.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:k(e.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault();}),onFocus:k(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:k(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return;}if(b.target!==b.currentTarget)return;const E=Mc(b,d.orientation,d.dir);if(E!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let h=g().filter(w=>w.focusable).map(w=>w.ref.current);if(E==="last")h.reverse();else if(E==="prev"||E==="next"){E==="prev"&&h.reverse();const w=h.indexOf(b.currentTarget);h=d.loop?$c(h,w+1):h.slice(w+1);}setTimeout(()=>Uo(h));}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:m!=null}):s})});});Bo.displayName=$o;var kc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e;}function Mc(e,t,n){const r=Dc(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kc[r];}function Uo(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return;}function $c(e,t){return e.map((n,r)=>e[(t+r)%e.length]);}var Wo=Mo,Ho=Bo,Bc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body;},Ze=/* @__PURE__ */new WeakMap(),It=/* @__PURE__ */new WeakMap(),Ot={},Rn=0,Vo=function(e){return e&&(e.host||Vo(e.parentNode));},Uc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Vo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null);}).filter(function(n){return!!n;});},Wc=function(e,t,n,r){var o=Uc(t,Array.isArray(e)?e:[e]);Ot[n]||(Ot[n]=/* @__PURE__ */new WeakMap());var a=Ot[n],s=[],i=/* @__PURE__ */new Set(),c=new Set(o),u=function(f){!f||i.has(f)||(i.add(f),u(f.parentNode));};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(i.has(g))d(g);else try{var y=g.getAttribute(r),x=y!==null&&y!=="false",m=(Ze.get(g)||0)+1,b=(a.get(g)||0)+1;Ze.set(g,m),a.set(g,b),s.push(g),m===1&&x&&It.set(g,!0),b===1&&g.setAttribute(n,"true"),x||g.setAttribute(r,"true");}catch(E){console.error("aria-hidden: cannot operate on ",g,E);}});};return d(t),i.clear(),Rn++,function(){s.forEach(function(f){var g=Ze.get(f)-1,y=a.get(f)-1;Ze.set(f,g),a.set(f,y),g||(It.has(f)||f.removeAttribute(r),It.delete(f)),y||f.removeAttribute(n);}),Rn--,Rn||(Ze=/* @__PURE__ */new WeakMap(),Ze=/* @__PURE__ */new WeakMap(),It=/* @__PURE__ */new WeakMap(),Ot={});};},zo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wc(r,o,n,"aria-hidden")):function(){return null;};},Re=function(){return Re=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t;},Re.apply(this,arguments);};function jo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n;}function Hc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t));}var Dt="right-scroll-bar-position",Mt="width-before-scroll-bar",Vc="with-scroll-bars-hidden",zc="--removed-body-scroll-bar-size";function An(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e;}function jc(e,t){var n=ro(function(){return{value:e,callback:t,facade:{get current(){return n.value;},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o));}}};})[0];return n.callback=t,n.facade;}var Kc=typeof window<"u"?l.useLayoutEffect:l.useEffect,zr=/* @__PURE__ */new WeakMap();function Gc(e,t){var n=jc(null,function(r){return e.forEach(function(o){return An(o,r);});});return Kc(function(){var r=zr.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||An(i,null);}),a.forEach(function(i){o.has(i)||An(i,s);});}zr.set(n,e);},[e]),n;}function Yc(e){return e;}function Xc(e,t){t===void 0&&(t=Yc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e;},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s;});};},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a);}n={push:function(i){return a(i);},filter:function(){return n;}};},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n;}var c=function(){var d=s;s=[],d.forEach(a);},u=function(){return Promise.resolve().then(c);};u(),n={push:function(d){s.push(d),u();},filter:function(d){return s=s.filter(d),n;}};}};return o;}function qc(e){e===void 0&&(e={});var t=Xc(null);return t.options=Re({async:!0,ssr:!1},e),t;}var Ko=function(e){var t=e.sideCar,n=jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Re({},n));};Ko.isSideCarExport=!0;function Zc(e,t){return e.useMedium(t),Ko;}var Go=qc(),Tn=function(){},nn=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Tn,onWheelCapture:Tn,onTouchMoveCapture:Tn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,g=e.sideCar,y=e.noRelative,x=e.noIsolation,m=e.inert,b=e.allowPinchZoom,E=e.as,p=E===void 0?"div":E,h=e.gapMode,w=jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,C=Gc([n,t]),R=Re(Re({},w),o);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Go,removeScrollBar:u,shards:f,noRelative:y,noIsolation:x,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:h}),s?l.cloneElement(l.Children.only(i),Re(Re({},R),{ref:C})):l.createElement(p,Re({},R,{className:c,ref:C}),i));});nn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nn.classNames={fullWidth:Mt,zeroRight:Dt};var Qc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__;};function Jc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qc();return t&&e.setAttribute("nonce",t),e;}function eu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t));}function tu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e);}var nu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jc())&&(eu(t,n),tu(t)),e++;},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);}};},ru=function(){var e=nu();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove();};},[t&&n]);};},Yo=function(){var e=ru(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null;};return t;},ou={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0;},au=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)];},iu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ou;var t=au(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])};},su=Yo(),tt="data-scroll-locked",lu=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
93
|
-
.`.concat(Vc,` {
|
|
94
|
-
overflow: hidden `).concat(r,`;
|
|
95
|
-
padding-right: `).concat(i,"px ").concat(r,`;
|
|
96
|
-
}
|
|
97
|
-
body[`).concat(tt,`] {
|
|
98
|
-
overflow: hidden `).concat(r,`;
|
|
99
|
-
overscroll-behavior: contain;
|
|
100
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
101
|
-
padding-left: `.concat(o,`px;
|
|
102
|
-
padding-top: `).concat(a,`px;
|
|
103
|
-
padding-right: `).concat(s,`px;
|
|
104
|
-
margin-left:0;
|
|
105
|
-
margin-top:0;
|
|
106
|
-
margin-right: `).concat(i,"px ").concat(r,`;
|
|
107
|
-
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.`).concat(Dt,` {
|
|
111
|
-
right: `).concat(i,"px ").concat(r,`;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.`).concat(Mt,` {
|
|
115
|
-
margin-right: `).concat(i,"px ").concat(r,`;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.`).concat(Dt," .").concat(Dt,` {
|
|
119
|
-
right: 0 `).concat(r,`;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.`).concat(Mt," .").concat(Mt,` {
|
|
123
|
-
margin-right: 0 `).concat(r,`;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
body[`).concat(tt,`] {
|
|
127
|
-
`).concat(zc,": ").concat(i,`px;
|
|
128
|
-
}
|
|
129
|
-
`);},jr=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0;},cu=function(){l.useEffect(function(){return document.body.setAttribute(tt,(jr()+1).toString()),function(){var e=jr()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString());};},[]);},uu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;cu();var a=l.useMemo(function(){return iu(o);},[o]);return l.createElement(su,{styles:lu(a,!t,o,n?"":"!important")});},Dn=!1;if(typeof window<"u")try{var _t=Object.defineProperty({},"passive",{get:function(){return Dn=!0,!0;}});window.addEventListener("test",_t,_t),window.removeEventListener("test",_t,_t);}catch{Dn=!1;}var Qe=Dn?{passive:!1}:!1,du=function(e){return e.tagName==="TEXTAREA";},Xo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return(n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!du(e)&&n[t]==="visible"));},fu=function(e){return Xo(e,"overflowY");},pu=function(e){return Xo(e,"overflowX");},Kr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=qo(e,r);if(o){var a=Zo(e,r),s=a[1],i=a[2];if(s>i)return!0;}r=r.parentNode;}while(r&&r!==n.body);return!1;},hu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r];},gu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r];},qo=function(e,t){return e==="v"?fu(t):pu(t);},Zo=function(e,t){return e==="v"?hu(t):gu(t);},mu=function(e,t){return e==="h"&&t==="rtl"?-1:1;},vu=function(e,t,n,r,o){var a=mu(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,c=t.contains(i),u=!1,d=s>0,f=0,g=0;do{if(!i)break;var y=Zo(e,i),x=y[0],m=y[1],b=y[2],E=m-b-a*x;(x||E)&&qo(e,i)&&(f+=E,g+=x);var p=i.parentNode;i=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p;}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(g)<1)&&(u=!0),u;},Ft=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0];},Gr=function(e){return[e.deltaX,e.deltaY];},Yr=function(e){return e&&"current"in e?e.current:e;},yu=function(e,t){return e[0]===t[0]&&e[1]===t[1];},bu=function(e){return`
|
|
130
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
131
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
132
|
-
`);},wu=0,Je=[];function xu(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(wu++)[0],a=l.useState(Yo)[0],s=l.useRef(e);l.useEffect(function(){s.current=e;},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Hc([e.lockRef.current],(e.shards||[]).map(Yr),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o));}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o));});};}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var E=Ft(m),p=n.current,h="deltaX"in m?m.deltaX:p[0]-E[0],w="deltaY"in m?m.deltaY:p[1]-E[1],S,C=m.target,R=Math.abs(h)>Math.abs(w)?"h":"v";if("touches"in m&&R==="h"&&C.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,I=A?A===C||A.contains(C):!1;if(I)return!1;var _=Kr(R,C);if(!_)return!0;if(_?S=R:(S=R==="v"?"h":"v",_=Kr(R,C)),!_)return!1;if(!r.current&&"changedTouches"in m&&(h||w)&&(r.current=S),!S)return!0;var $=r.current||S;return vu($,b,m,$==="h"?h:w);},[]),c=l.useCallback(function(m){var b=m;if(!(!Je.length||Je[Je.length-1]!==a)){var E="deltaY"in b?Gr(b):Ft(b),p=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&yu(S.delta,E);})[0];if(p&&p.should){b.cancelable&&b.preventDefault();return;}if(!p){var h=(s.current.shards||[]).map(Yr).filter(Boolean).filter(function(S){return S.contains(b.target);}),w=h.length>0?i(b,h[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault();}}},[]),u=l.useCallback(function(m,b,E,p){var h={name:m,delta:b,target:E,should:p,shadowParent:Su(E)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(w){return w!==h;});},1);},[]),d=l.useCallback(function(m){n.current=Ft(m),r.current=void 0;},[]),f=l.useCallback(function(m){u(m.type,Gr(m),m.target,i(m,e.lockRef.current));},[]),g=l.useCallback(function(m){u(m.type,Ft(m),m.target,i(m,e.lockRef.current));},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Qe),document.addEventListener("touchmove",c,Qe),document.addEventListener("touchstart",d,Qe),function(){Je=Je.filter(function(m){return m!==a;}),document.removeEventListener("wheel",c,Qe),document.removeEventListener("touchmove",c,Qe),document.removeEventListener("touchstart",d,Qe);};},[]);var y=e.removeScrollBar,x=e.inert;return l.createElement(l.Fragment,null,x?l.createElement(a,{styles:bu(o)}):null,y?l.createElement(uu,{noRelative:e.noRelative,gapMode:e.gapMode}):null);}function Su(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t;}const Eu=Zc(Go,xu);var ir=l.forwardRef(function(e,t){return l.createElement(nn,Re({},e,{ref:t,sideCar:Eu}));});ir.classNames=nn.classNames;const rn=l.forwardRef(({children:e},t)=>{const{scopeProps:n}=ms();return/* @__PURE__ */v("div",{className:`semaphor-scope ${n.className}`,"data-semaphor-theme":n["data-semaphor-theme"],"data-semaphor-appearance-instance":n["data-semaphor-appearance-instance"],style:n.style,children:/* @__PURE__ */v(ao,{ref:t,children:e})});});rn.displayName="PortalScope";// @__NO_SIDE_EFFECTS__
|
|
133
|
-
function Cu(e){const t=/* @__PURE__ */Ru(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(Tu);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return/* @__PURE__ */v(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null});}return/* @__PURE__ */v(t,{...s,ref:o,children:a});});return n.displayName=`${e}.Slot`,n;}// @__NO_SIDE_EFFECTS__
|
|
134
|
-
function Ru(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=Nu(o),i=Pu(a,o.props);return o.type!==l.Fragment&&(i.ref=r?it(r,s):s),l.cloneElement(o,i);}return l.Children.count(o)>1?l.Children.only(null):null;});return t.displayName=`${e}.SlotClone`,t;}var Au=Symbol("radix.slottable");function Tu(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Au;}function Pu(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c;}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "));}return{...e,...n};}function Nu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}var on="Popover",[Qo]=Se(on,[ct]),Rt=ct(),[Iu,He]=Qo(on),Jo=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Rt(t),c=l.useRef(null),[u,d]=l.useState(!1),[f,g]=$e({prop:r,defaultProp:o??!1,onChange:a,caller:on});return/* @__PURE__ */v(rr,{...i,children:/* @__PURE__ */v(Iu,{scope:t,contentId:Xe(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(y=>!y),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:n})});};Jo.displayName=on;var ea="PopoverAnchor",ta=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=He(ea,n),a=Rt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),/* @__PURE__ */v(Jt,{...a,...r,ref:t});});ta.displayName=ea;var na="PopoverTrigger",ra=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=He(na,n),a=Rt(n),s=G(t,o.triggerRef),i=/* @__PURE__ */v(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":la(o.open),...r,ref:s,onClick:k(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:/* @__PURE__ */v(Jt,{asChild:!0,...a,children:i});});ra.displayName=na;var sr="PopoverPortal",[Ou,_u]=Qo(sr,{forceMount:void 0}),oa=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=He(sr,t);return/* @__PURE__ */v(Ou,{scope:t,forceMount:n,children:/* @__PURE__ */v(Ee,{present:n||a.open,children:/* @__PURE__ */v(en,{asChild:!0,container:o,children:r})})});};oa.displayName=sr;var rt="PopoverContent",aa=l.forwardRef((e,t)=>{const n=_u(rt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=He(rt,e.__scopePopover);return/* @__PURE__ */v(Ee,{present:r||a.open,children:a.modal?/* @__PURE__ */v(Lu,{...o,ref:t}):/* @__PURE__ */v(ku,{...o,ref:t})});});aa.displayName=rt;var Fu=/* @__PURE__ */Cu("PopoverContent.RemoveScroll"),Lu=l.forwardRef((e,t)=>{const n=He(rt,e.__scopePopover),r=l.useRef(null),o=G(t,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return zo(s);},[]),/* @__PURE__ */v(ir,{as:Fu,allowPinchZoom:!0,children:/* @__PURE__ */v(ia,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus();}),onPointerDownOutside:k(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u;},{checkForDefaultPrevented:!1}),onFocusOutside:k(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})});}),ku=l.forwardRef((e,t)=>{const n=He(rt,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return/* @__PURE__ */v(ia,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1;},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault();}});}),ia=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,g=He(rt,n),y=Rt(n);return po(),/* @__PURE__ */v(Gn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:/* @__PURE__ */v(Yt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:/* @__PURE__ */v(or,{"data-state":la(g.open),role:"dialog",id:g.contentId,...y,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})});}),sa="PopoverClose",Du=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=He(sa,n);return/* @__PURE__ */v(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))});});Du.displayName=sa;var Mu="PopoverArrow",$u=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Rt(n);return/* @__PURE__ */v(ar,{...o,...r,ref:t});});$u.displayName=Mu;function la(e){return e?"open":"closed";}var Bu=Jo,Uu=ta,Wu=ra,Hu=oa,ca=aa;const Bp=Bu,Up=Uu,Wp=Wu,Vu=l.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>/* @__PURE__ */v(Hu,{children:/* @__PURE__ */v(rn,{children:/* @__PURE__ */v(ca,{ref:o,align:t,sideOffset:n,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})}));Vu.displayName=ca.displayName;var zu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ju=zu.reduce((e,t)=>{const n=/* @__PURE__ */Kn(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),/* @__PURE__ */v(c,{...i,ref:a});});return r.displayName=`Primitive.${t}`,{...e,[t]:r};},{}),Ku="Label",ua=l.forwardRef((e,t)=>/* @__PURE__ */v(ju.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault());}}));ua.displayName=Ku;var da=ua;const Gu=We("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Yu=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(da,{ref:n,className:J(Gu(),e),...t}));Yu.displayName=da.displayName;const Xu=We("flex w-full rounded-control border border-input bg-background file:border-0 file:bg-transparent file:font-medium placeholder:text-[hsl(var(--semaphor-placeholder-foreground))] focus-visible:border-ring focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{default:"h-10 px-3 py-2 text-sm file:text-sm",sm:"h-8 px-2.5 py-1.5 text-[13px] file:text-[13px]",xs:"h-7 px-2 py-1 text-[12px] file:text-[12px]"}},defaultVariants:{size:"default"}}),fa=l.forwardRef(({className:e,type:t,size:n,...r},o)=>/* @__PURE__ */v("input",{type:t,className:J(Xu({size:n,className:e})),ref:o,...r}));fa.displayName="Input";var an="Tabs",[qu]=Se(an,[tn]),pa=tn(),[Zu,lr]=qu(an),ha=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:c="automatic",...u}=e,d=St(i),[f,g]=$e({prop:r,onChange:o,defaultProp:a??"",caller:an});return/* @__PURE__ */v(Zu,{scope:n,baseId:Xe(),value:f,onValueChange:g,orientation:s,dir:d,activationMode:c,children:/* @__PURE__ */v(W.div,{dir:d,"data-orientation":s,...u,ref:t})});});ha.displayName=an;var ga="TabsList",ma=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=lr(ga,n),s=pa(n);return/* @__PURE__ */v(Wo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:/* @__PURE__ */v(W.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})});});ma.displayName=ga;var va="TabsTrigger",ya=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=lr(va,n),i=pa(n),c=xa(s.baseId,r),u=Sa(s.baseId,r),d=r===s.value;return/* @__PURE__ */v(Ho,{asChild:!0,...i,focusable:!o,active:d,children:/* @__PURE__ */v(W.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:k(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?s.onValueChange(r):f.preventDefault();}),onKeyDown:k(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(r);}),onFocus:k(e.onFocus,()=>{const f=s.activationMode!=="manual";!d&&!o&&f&&s.onValueChange(r);})})});});ya.displayName=va;var ba="TabsContent",wa=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=lr(ba,n),c=xa(i.baseId,r),u=Sa(i.baseId,r),d=r===i.value,f=l.useRef(d);return l.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g);},[]),/* @__PURE__ */v(Ee,{present:o||d,children:({present:g})=>/* @__PURE__ */v(W.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:g&&a})});});wa.displayName=ba;function xa(e,t){return`${e}-trigger-${t}`;}function Sa(e,t){return`${e}-content-${t}`;}var Qu=ha,Ea=ma,Ca=ya,Ra=wa;const Hp=Qu,Ju=We("text-muted-foreground",{variants:{variant:{segmented:"inline-flex items-center justify-center rounded-control bg-muted",underline:"flex h-auto items-center gap-6 border-b border-border/60 bg-transparent p-0"},size:{default:"",sm:"",xs:""}},compoundVariants:[{variant:"segmented",size:"default",className:"h-10 p-1"},{variant:"segmented",size:"sm",className:"h-8 p-0.5"},{variant:"segmented",size:"xs",className:"h-7 p-0.5"}],defaultVariants:{variant:"segmented",size:"default"}}),ed=We("inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{segmented:"rounded-control focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",underline:"-mb-px border-b-2 border-transparent px-0.5 pb-2.5 text-[13px] font-normal hover:text-foreground focus-visible:text-foreground data-[state=active]:border-foreground data-[state=active]:font-medium data-[state=active]:text-foreground"},size:{default:"",sm:"",xs:""}},compoundVariants:[{variant:"segmented",size:"default",className:"px-3 py-1.5 text-sm"},{variant:"segmented",size:"sm",className:"px-2.5 py-1 text-[13px]"},{variant:"segmented",size:"xs",className:"px-2 py-0.5 text-[12px]"}],defaultVariants:{variant:"segmented",size:"default"}}),Aa=l.createContext({variant:"segmented",size:"default"}),td=l.forwardRef(({className:e,variant:t,size:n,...r},o)=>{const a=t??"segmented",s=n??"default";return/* @__PURE__ */v(Aa.Provider,{value:{variant:a,size:s},children:/* @__PURE__ */v(Ea,{ref:o,className:J(Ju({variant:a,size:s}),e),...r})});});td.displayName=Ea.displayName;const nd=l.forwardRef(({className:e,variant:t,size:n,...r},o)=>{const a=l.useContext(Aa);return/* @__PURE__ */v(Ca,{ref:o,className:J(ed({variant:t??a.variant,size:n??a.size}),e),...r});});nd.displayName=Ca.displayName;const rd=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(Ra,{ref:n,className:J("mt-2 focus:outline-none focus-visible:outline-none",e),...t}));rd.displayName=Ra.displayName;function cr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e]);}function Mn(e,[t,n]){return Math.min(n,Math.max(t,e));}// @__NO_SIDE_EFFECTS__
|
|
135
|
-
function od(e){const t=/* @__PURE__ */ad(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(sd);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return/* @__PURE__ */v(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null});}return/* @__PURE__ */v(t,{...s,ref:o,children:a});});return n.displayName=`${e}.Slot`,n;}// @__NO_SIDE_EFFECTS__
|
|
136
|
-
function ad(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=cd(o),i=ld(a,o.props);return o.type!==l.Fragment&&(i.ref=r?it(r,s):s),l.cloneElement(o,i);}return l.Children.count(o)>1?l.Children.only(null):null;});return t.displayName=`${e}.SlotClone`,t;}var id=Symbol("radix.slottable");function sd(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===id;}function ld(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c;}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "));}return{...e,...n};}function cd(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref);}var Ta=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ud="VisuallyHidden",Pa=l.forwardRef((e,t)=>/* @__PURE__ */v(W.span,{...e,ref:t,style:{...Ta,...e.style}}));Pa.displayName=ud;var dd=Pa,fd=[" ","Enter","ArrowUp","ArrowDown"],pd=[" ","Enter"],Ge="Select",[sn,ln,hd]=co(Ge),[ut]=Se(Ge,[hd,ct]),cn=ct(),[gd,Ve]=ut(Ge),[md,vd]=ut(Ge),Na=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:g,required:y,form:x}=e,m=cn(t),[b,E]=l.useState(null),[p,h]=l.useState(null),[w,S]=l.useState(!1),C=St(u),[R,T]=$e({prop:r,defaultProp:o??!1,onChange:a,caller:Ge}),[A,I]=$e({prop:s,defaultProp:i,onChange:c,caller:Ge}),_=l.useRef(null),$=b?x||!!b.closest("form"):!0,[z,H]=l.useState(/* @__PURE__ */new Set()),Y=Array.from(z).map(M=>M.props.value).join(";");return/* @__PURE__ */v(rr,{...m,children:/* @__PURE__ */re(gd,{required:y,scope:t,trigger:b,onTriggerChange:E,valueNode:p,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:Xe(),value:A,onValueChange:I,open:R,onOpenChange:T,dir:C,triggerPointerDownPosRef:_,disabled:g,children:[/* @__PURE__ */v(sn.Provider,{scope:t,children:/* @__PURE__ */v(md,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(M=>{H(F=>new Set(F).add(M));},[]),onNativeOptionRemove:l.useCallback(M=>{H(F=>{const N=new Set(F);return N.delete(M),N;});},[]),children:n})}),$?/* @__PURE__ */re(ei,{"aria-hidden":!0,required:y,tabIndex:-1,name:d,autoComplete:f,value:A,onChange:M=>I(M.target.value),disabled:g,form:x,children:[A===void 0?/* @__PURE__ */v("option",{value:""}):null,Array.from(z)]},Y):null]})});};Na.displayName=Ge;var Ia="SelectTrigger",Oa=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=cn(n),s=Ve(Ia,n),i=s.disabled||r,c=G(t,s.onTriggerChange),u=ln(n),d=l.useRef("touch"),[f,g,y]=ni(m=>{const b=u().filter(h=>!h.disabled),E=b.find(h=>h.value===s.value),p=ri(b,m,E);p!==void 0&&s.onValueChange(p.value);}),x=m=>{i||(s.onOpenChange(!0),y()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)});};return/* @__PURE__ */v(Jt,{asChild:!0,...a,children:/* @__PURE__ */v(W.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ti(s.value)?"":void 0,...o,ref:c,onClick:k(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&x(m);}),onPointerDown:k(o.onPointerDown,m=>{d.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault());}),onKeyDown:k(o.onKeyDown,m=>{const b=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&fd.includes(m.key)&&(x(),m.preventDefault());})})});});Oa.displayName=Ia;var _a="SelectValue",Fa=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,c=Ve(_a,n),{onValueNodeHasChildrenChange:u}=c,d=a!==void 0,f=G(t,c.onValueNodeChange);return le(()=>{u(d);},[u,d]),/* @__PURE__ */v(W.span,{...i,ref:f,style:{pointerEvents:"none"},children:ti(c.value)?/* @__PURE__ */v(xt,{children:s}):a});});Fa.displayName=_a;var yd="SelectIcon",La=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return/* @__PURE__ */v(W.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"});});La.displayName=yd;var bd="SelectPortal",ka=e=>/* @__PURE__ */v(en,{asChild:!0,...e});ka.displayName=bd;var Ye="SelectContent",Da=l.forwardRef((e,t)=>{const n=Ve(Ye,e.__scopeSelect),[r,o]=l.useState();if(le(()=>{o(new DocumentFragment());},[]),!n.open){const a=r;return a?Gt.createPortal(/* @__PURE__ */v(Ma,{scope:e.__scopeSelect,children:/* @__PURE__ */v(sn.Slot,{scope:e.__scopeSelect,children:/* @__PURE__ */v("div",{children:e.children})})}),a):null;}return/* @__PURE__ */v($a,{...e,ref:t});});Da.displayName=Ye;var be=10,[Ma,ze]=ut(Ye),wd="SelectContentImpl",xd=/* @__PURE__ */od("SelectContent.RemoveScroll"),$a=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:m,avoidCollisions:b,...E}=e,p=Ve(Ye,n),[h,w]=l.useState(null),[S,C]=l.useState(null),R=G(t,L=>w(L)),[T,A]=l.useState(null),[I,_]=l.useState(null),$=ln(n),[z,H]=l.useState(!1),Y=l.useRef(!1);l.useEffect(()=>{if(h)return zo(h);},[h]),po();const M=l.useCallback(L=>{const[j,...ne]=$().map(q=>q.ref.current),[X]=ne.slice(-1),K=document.activeElement;for(const q of L)if(q===K||(q==null||q.scrollIntoView({block:"nearest"}),q===j&&S&&(S.scrollTop=0),q===X&&S&&(S.scrollTop=S.scrollHeight),q==null||q.focus(),document.activeElement!==K))return;},[$,S]),F=l.useCallback(()=>M([T,h]),[M,T,h]);l.useEffect(()=>{z&&F();},[z,F]);const{onOpenChange:N,triggerPointerDownPosRef:O}=p;l.useEffect(()=>{if(h){let L={x:0,y:0};const j=X=>{var K,q;L={x:Math.abs(Math.round(X.pageX)-(((K=O.current)==null?void 0:K.x)??0)),y:Math.abs(Math.round(X.pageY)-(((q=O.current)==null?void 0:q.y)??0))};},ne=X=>{L.x<=10&&L.y<=10?X.preventDefault():h.contains(X.target)||N(!1),document.removeEventListener("pointermove",j),O.current=null;};return O.current!==null&&(document.addEventListener("pointermove",j),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",ne,{capture:!0});};}},[h,N,O]),l.useEffect(()=>{const L=()=>N(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L);};},[N]);const[D,Z]=ni(L=>{const j=$().filter(K=>!K.disabled),ne=j.find(K=>K.ref.current===document.activeElement),X=ri(j,L,ne);X&&setTimeout(()=>X.ref.current.focus());}),Q=l.useCallback((L,j,ne)=>{const X=!Y.current&&!ne;(p.value!==void 0&&p.value===j||X)&&(A(L),X&&(Y.current=!0));},[p.value]),oe=l.useCallback(()=>h==null?void 0:h.focus(),[h]),ee=l.useCallback((L,j,ne)=>{const X=!Y.current&&!ne;(p.value!==void 0&&p.value===j||X)&&_(L);},[p.value]),ie=r==="popper"?$n:Ba,ce=ie===$n?{side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:m,avoidCollisions:b}:{};return/* @__PURE__ */v(Ma,{scope:n,content:h,viewport:S,onViewportChange:C,itemRefCallback:Q,selectedItem:T,onItemLeave:oe,itemTextRefCallback:ee,focusSelectedItem:F,selectedItemText:I,position:r,isPositioned:z,searchRef:D,children:/* @__PURE__ */v(ir,{as:xd,allowPinchZoom:!0,children:/* @__PURE__ */v(Gn,{asChild:!0,trapped:p.open,onMountAutoFocus:L=>{L.preventDefault();},onUnmountAutoFocus:k(o,L=>{var j;(j=p.trigger)==null||j.focus({preventScroll:!0}),L.preventDefault();}),children:/* @__PURE__ */v(Yt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:/* @__PURE__ */v(ie,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:L=>L.preventDefault(),...E,...ce,onPlaced:()=>H(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:k(E.onKeyDown,L=>{const j=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!j&&L.key.length===1&&Z(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let X=$().filter(K=>!K.disabled).map(K=>K.ref.current);if(["ArrowUp","End"].includes(L.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const K=L.target,q=X.indexOf(K);X=X.slice(q+1);}setTimeout(()=>M(X)),L.preventDefault();}})})})})})});});$a.displayName=wd;var Sd="SelectItemAlignedPosition",Ba=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Ve(Ye,n),s=ze(Ye,n),[i,c]=l.useState(null),[u,d]=l.useState(null),f=G(t,R=>d(R)),g=ln(n),y=l.useRef(!1),x=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:E,focusSelectedItem:p}=s,h=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&b&&E){const R=a.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),A=a.valueNode.getBoundingClientRect(),I=E.getBoundingClientRect();if(a.dir!=="rtl"){const K=I.left-T.left,q=A.left-K,P=R.left-q,V=R.width+P,B=Math.max(V,T.width),U=window.innerWidth-be,te=Mn(q,[be,Math.max(be,U-B)]);i.style.minWidth=V+"px",i.style.left=te+"px";}else{const K=T.right-I.right,q=window.innerWidth-A.right-K,P=window.innerWidth-R.right-q,V=R.width+P,B=Math.max(V,T.width),U=window.innerWidth-be,te=Mn(q,[be,Math.max(be,U-B)]);i.style.minWidth=V+"px",i.style.right=te+"px";}const _=g(),$=window.innerHeight-be*2,z=m.scrollHeight,H=window.getComputedStyle(u),Y=parseInt(H.borderTopWidth,10),M=parseInt(H.paddingTop,10),F=parseInt(H.borderBottomWidth,10),N=parseInt(H.paddingBottom,10),O=Y+M+z+N+F,D=Math.min(b.offsetHeight*5,O),Z=window.getComputedStyle(m),Q=parseInt(Z.paddingTop,10),oe=parseInt(Z.paddingBottom,10),ee=R.top+R.height/2-be,ie=$-ee,ce=b.offsetHeight/2,L=b.offsetTop+ce,j=Y+M+L,ne=O-j;if(j<=ee){const K=_.length>0&&b===_[_.length-1].ref.current;i.style.bottom="0px";const q=u.clientHeight-m.offsetTop-m.offsetHeight,P=Math.max(ie,ce+(K?oe:0)+q+F),V=j+P;i.style.height=V+"px";}else{const K=_.length>0&&b===_[0].ref.current;i.style.top="0px";const P=Math.max(ee,Y+m.offsetTop+(K?Q:0)+ce)+ne;i.style.height=P+"px",m.scrollTop=j-ee+m.offsetTop;}i.style.margin=`${be}px 0`,i.style.minHeight=D+"px",i.style.maxHeight=$+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0);}},[g,a.trigger,a.valueNode,i,u,m,b,E,a.dir,r]);le(()=>h(),[h]);const[w,S]=l.useState();le(()=>{u&&S(window.getComputedStyle(u).zIndex);},[u]);const C=l.useCallback(R=>{R&&x.current===!0&&(h(),p==null||p(),x.current=!1);},[h,p]);return/* @__PURE__ */v(Cd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:y,onScrollButtonChange:C,children:/* @__PURE__ */v("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:/* @__PURE__ */v(W.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})});});Ba.displayName=Sd;var Ed="SelectPopperPosition",$n=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...a}=e,s=cn(n);return/* @__PURE__ */v(or,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}});});$n.displayName=Ed;var[Cd,ur]=ut(Ye,{}),Bn="SelectViewport",Ua=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=ze(Bn,n),s=ur(Bn,n),i=G(t,a.onViewportChange),c=l.useRef(0);return/* @__PURE__ */re(xt,{children:[/* @__PURE__ */v("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),/* @__PURE__ */v(sn.Slot,{scope:n,children:/* @__PURE__ */v(W.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:k(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&f){const y=Math.abs(c.current-d.scrollTop);if(y>0){const x=window.innerHeight-be*2,m=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),E=Math.max(m,b);if(E<x){const p=E+y,h=Math.min(x,p),w=p-h;f.style.height=h+"px",f.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,f.style.justifyContent="flex-end");}}}c.current=d.scrollTop;})})})]});});Ua.displayName=Bn;var Wa="SelectGroup",[Rd,Ad]=ut(Wa),Ha=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Xe();return/* @__PURE__ */v(Rd,{scope:n,id:o,children:/* @__PURE__ */v(W.div,{role:"group","aria-labelledby":o,...r,ref:t})});});Ha.displayName=Wa;var Va="SelectLabel",za=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ad(Va,n);return/* @__PURE__ */v(W.div,{id:o.id,...r,ref:t});});za.displayName=Va;var zt="SelectItem",[Td,ja]=ut(zt),Ka=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=Ve(zt,n),c=ze(zt,n),u=i.value===r,[d,f]=l.useState(a??""),[g,y]=l.useState(!1),x=G(t,p=>{var h;return(h=c.itemRefCallback)==null?void 0:h.call(c,p,r,o);}),m=Xe(),b=l.useRef("touch"),E=()=>{o||(i.onValueChange(r),i.onOpenChange(!1));};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return/* @__PURE__ */v(Td,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(p=>{f(h=>h||((p==null?void 0:p.textContent)??"").trim());},[]),children:/* @__PURE__ */v(sn.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:/* @__PURE__ */v(W.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:k(s.onFocus,()=>y(!0)),onBlur:k(s.onBlur,()=>y(!1)),onClick:k(s.onClick,()=>{b.current!=="mouse"&&E();}),onPointerUp:k(s.onPointerUp,()=>{b.current==="mouse"&&E();}),onPointerDown:k(s.onPointerDown,p=>{b.current=p.pointerType;}),onPointerMove:k(s.onPointerMove,p=>{var h;b.current=p.pointerType,o?(h=c.onItemLeave)==null||h.call(c):b.current==="mouse"&&p.currentTarget.focus({preventScroll:!0});}),onPointerLeave:k(s.onPointerLeave,p=>{var h;p.currentTarget===document.activeElement&&((h=c.onItemLeave)==null||h.call(c));}),onKeyDown:k(s.onKeyDown,p=>{var w;((w=c.searchRef)==null?void 0:w.current)!==""&&p.key===" "||(pd.includes(p.key)&&E(),p.key===" "&&p.preventDefault());})})})});});Ka.displayName=zt;var vt="SelectItemText",Ga=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Ve(vt,n),i=ze(vt,n),c=ja(vt,n),u=vd(vt,n),[d,f]=l.useState(null),g=G(t,E=>f(E),c.onItemTextChange,E=>{var p;return(p=i.itemTextRefCallback)==null?void 0:p.call(i,E,c.value,c.disabled);}),y=d==null?void 0:d.textContent,x=l.useMemo(()=>/* @__PURE__ */v("option",{value:c.value,disabled:c.disabled,children:y},c.value),[c.disabled,c.value,y]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=u;return le(()=>(m(x),()=>b(x)),[m,b,x]),/* @__PURE__ */re(xt,{children:[/* @__PURE__ */v(W.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Gt.createPortal(a.children,s.valueNode):null]});});Ga.displayName=vt;var Ya="SelectItemIndicator",Xa=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ja(Ya,n).isSelected?/* @__PURE__ */v(W.span,{"aria-hidden":!0,...r,ref:t}):null;});Xa.displayName=Ya;var Un="SelectScrollUpButton",qa=l.forwardRef((e,t)=>{const n=ze(Un,e.__scopeSelect),r=ur(Un,e.__scopeSelect),[o,a]=l.useState(!1),s=G(t,r.onScrollButtonChange);return le(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;a(u);};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i);}},[n.viewport,n.isPositioned]),o?/* @__PURE__ */v(Qa,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight);}}):null;});qa.displayName=Un;var Wn="SelectScrollDownButton",Za=l.forwardRef((e,t)=>{const n=ze(Wn,e.__scopeSelect),r=ur(Wn,e.__scopeSelect),[o,a]=l.useState(!1),s=G(t,r.onScrollButtonChange);return le(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;a(d);};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i);}},[n.viewport,n.isPositioned]),o?/* @__PURE__ */v(Qa,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight);}}):null;});Za.displayName=Wn;var Qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=ze("SelectScrollButton",n),s=l.useRef(null),i=ln(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null);},[]);return l.useEffect(()=>()=>c(),[c]),le(()=>{var d;const u=i().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"});},[i]),/* @__PURE__ */v(W.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:k(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50));}),onPointerMove:k(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50));}),onPointerLeave:k(o.onPointerLeave,()=>{c();})});}),Pd="SelectSeparator",Ja=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return/* @__PURE__ */v(W.div,{"aria-hidden":!0,...r,ref:t});});Ja.displayName=Pd;var Hn="SelectArrow",Nd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn(n),a=Ve(Hn,n),s=ze(Hn,n);return a.open&&s.position==="popper"?/* @__PURE__ */v(ar,{...o,...r,ref:t}):null;});Nd.displayName=Hn;var Id="SelectBubbleInput",ei=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),a=G(r,o),s=cr(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const f=new Event("change",{bubbles:!0});d.call(i,t),i.dispatchEvent(f);}},[s,t]),/* @__PURE__ */v(W.select,{...n,style:{...Ta,...n.style},ref:a,defaultValue:t});});ei.displayName=Id;function ti(e){return e===""||e===void 0;}function ni(e){const t=ue(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=n.current+s;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3));}(i);},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current);},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a];}function ri(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Od(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0;}function Od(e,t){return e.map((n,r)=>e[(t+r)%e.length]);}var _d=Na,oi=Oa,Fd=Fa,Ld=La,kd=ka,ai=Da,Dd=Ua,Md=Ha,ii=za,si=Ka,$d=Ga,Bd=Xa,li=qa,ci=Za,ui=Ja;const Vp=_d,zp=Md,jp=Fd,Ud=We("flex w-full items-center justify-between rounded-control border border-input bg-background placeholder:text-[hsl(var(--semaphor-placeholder-foreground))] focus-visible:border-ring focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left",{variants:{size:{default:"h-10 px-3 py-2 text-sm",sm:"h-8 px-2.5 py-1.5 text-[13px]",xs:"h-7 px-2 py-1 text-[12px]"}},defaultVariants:{size:"default"}}),Wd=l.forwardRef(({className:e,children:t,size:n,...r},o)=>/* @__PURE__ */re(oi,{ref:o,className:J(Ud({size:n,className:e})),...r,children:[t,/* @__PURE__ */v(Ld,{asChild:!0,children:/* @__PURE__ */v(lo,{className:J("opacity-50",n==="xs"||n==="sm"?"h-3.5 w-3.5":"h-4 w-4")})})]}));Wd.displayName=oi.displayName;const di=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(li,{ref:n,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:/* @__PURE__ */v(Is,{className:"h-3.5 w-3.5"})}));di.displayName=li.displayName;const fi=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(ci,{ref:n,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:/* @__PURE__ */v(lo,{className:"h-3.5 w-3.5"})}));fi.displayName=ci.displayName;const Hd=l.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>/* @__PURE__ */v(kd,{children:/* @__PURE__ */v(rn,{children:/* @__PURE__ */re(ai,{ref:o,className:J("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-card border bg-popover text-popover-foreground shadow-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[/* @__PURE__ */v(di,{}),/* @__PURE__ */v(Dd,{className:J("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),/* @__PURE__ */v(fi,{})]})})}));Hd.displayName=ai.displayName;const Vd=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(ii,{ref:n,className:J("px-2 py-1.5 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground",e),...t}));Vd.displayName=ii.displayName;const zd=l.forwardRef(({className:e,children:t,...n},r)=>/* @__PURE__ */re(si,{ref:r,className:J("relative flex h-7 w-full cursor-default select-none items-center rounded-control pl-7 pr-2 text-[13px] outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[/* @__PURE__ */v("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:/* @__PURE__ */v(Bd,{children:/* @__PURE__ */v(Ns,{className:"h-3.5 w-3.5"})})}),/* @__PURE__ */v($d,{children:t})]}));zd.displayName=si.displayName;const jd=l.forwardRef(({className:e,...t},n)=>/* @__PURE__ */v(ui,{ref:n,className:J("-mx-1 my-1 h-px bg-border",e),...t}));jd.displayName=ui.displayName;var dr="Radio",[Kd,pi]=Se(dr),[Gd,Yd]=Kd(dr),hi=l.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:u,...d}=e,[f,g]=l.useState(null),y=G(t,b=>g(b)),x=l.useRef(!1),m=f?u||!!f.closest("form"):!0;return/* @__PURE__ */re(Gd,{scope:n,checked:o,disabled:s,children:[/* @__PURE__ */v(W.button,{type:"button",role:"radio","aria-checked":o,"data-state":yi(o),"data-disabled":s?"":void 0,disabled:s,value:i,...d,ref:y,onClick:k(e.onClick,b=>{o||c==null||c(),m&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation());})}),m&&/* @__PURE__ */v(vi,{control:f,bubbles:!x.current,name:r,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]});});hi.displayName=dr;var gi="RadioIndicator",mi=l.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Yd(gi,n);return/* @__PURE__ */v(Ee,{present:r||a.checked,children:/* @__PURE__ */v(W.span,{"data-state":yi(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})});});mi.displayName=gi;var Xd="RadioBubbleInput",vi=l.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=G(s,a),c=cr(n),u=er(t);return l.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&y){const x=new Event("click",{bubbles:r});y.call(d,n),d.dispatchEvent(x);}},[c,n,r]),/* @__PURE__ */v(W.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}});});vi.displayName=Xd;function yi(e){return e?"checked":"unchecked";}var qd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],un="RadioGroup",[Zd]=Se(un,[tn,pi]),bi=tn(),wi=pi(),[Qd,Jd]=Zd(un),xi=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...g}=e,y=bi(n),x=St(u),[m,b]=$e({prop:a,defaultProp:o??null,onChange:f,caller:un});return/* @__PURE__ */v(Qd,{scope:n,name:r,required:s,disabled:i,value:m,onValueChange:b,children:/* @__PURE__ */v(Wo,{asChild:!0,...y,orientation:c,dir:x,loop:d,children:/* @__PURE__ */v(W.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:x,...g,ref:t})})});});xi.displayName=un;var Si="RadioGroupItem",Ei=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Jd(Si,n),s=a.disabled||r,i=bi(n),c=wi(n),u=l.useRef(null),d=G(t,u),f=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const y=m=>{qd.includes(m.key)&&(g.current=!0);},x=()=>g.current=!1;return document.addEventListener("keydown",y),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",y),document.removeEventListener("keyup",x);};},[]),/* @__PURE__ */v(Ho,{asChild:!0,...i,focusable:!s,active:f,children:/* @__PURE__ */v(hi,{disabled:s,required:a.required,checked:f,...c,...o,name:a.name,ref:d,onCheck:()=>a.onValueChange(o.value),onKeyDown:k(y=>{y.key==="Enter"&&y.preventDefault();}),onFocus:k(o.onFocus,()=>{var y;g.current&&((y=u.current)==null||y.click());})})});});Ei.displayName=Si;var ef="RadioGroupIndicator",Ci=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=wi(n);return/* @__PURE__ */v(mi,{...o,...r,ref:t});});Ci.displayName=ef;var Ri=xi,Ai=Ei,Kp=Ci,tf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nf=tf.reduce((e,t)=>{const n=/* @__PURE__ */Kn(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),/* @__PURE__ */v(c,{...i,ref:a});});return r.displayName=`Primitive.${t}`,{...e,[t]:r};},{}),rf="Separator",Xr="horizontal",of=["horizontal","vertical"],Ti=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Xr,...o}=e,a=af(r)?r:Xr,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return/* @__PURE__ */v(nf.div,{"data-orientation":a,...i,...o,ref:t});});Ti.displayName=rf;function af(e){return of.includes(e);}var Pi=Ti;const sf=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>/* @__PURE__ */v(Pi,{ref:o,decorative:n,orientation:t,className:J("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));sf.displayName=Pi.displayName;function lf(e,t){return l.useReducer((n,r)=>t[n][r]??n,e);}var fr="ScrollArea",[Ni]=Se(fr),[cf,ye]=Ni(fr),Ii=l.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,c]=l.useState(null),[u,d]=l.useState(null),[f,g]=l.useState(null),[y,x]=l.useState(null),[m,b]=l.useState(null),[E,p]=l.useState(0),[h,w]=l.useState(0),[S,C]=l.useState(!1),[R,T]=l.useState(!1),A=G(t,_=>c(_)),I=St(o);return/* @__PURE__ */v(cf,{scope:n,type:r,dir:I,scrollHideDelay:a,scrollArea:i,viewport:u,onViewportChange:d,content:f,onContentChange:g,scrollbarX:y,onScrollbarXChange:x,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:m,onScrollbarYChange:b,scrollbarYEnabled:R,onScrollbarYEnabledChange:T,onCornerWidthChange:p,onCornerHeightChange:w,children:/* @__PURE__ */v(W.div,{dir:I,...s,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":h+"px",...e.style}})});});Ii.displayName=fr;var Oi="ScrollAreaViewport",_i=l.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,s=ye(Oi,n),i=l.useRef(null),c=G(t,i,s.onViewportChange);return/* @__PURE__ */re(xt,{children:[/* @__PURE__ */v("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),/* @__PURE__ */v(W.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:/* @__PURE__ */v("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]});});_i.displayName=Oi;var Ne="ScrollAreaScrollbar",pr=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ye(Ne,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return l.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1);}),[i,a,s]),o.type==="hover"?/* @__PURE__ */v(uf,{...r,ref:t,forceMount:n}):o.type==="scroll"?/* @__PURE__ */v(df,{...r,ref:t,forceMount:n}):o.type==="auto"?/* @__PURE__ */v(Fi,{...r,ref:t,forceMount:n}):o.type==="always"?/* @__PURE__ */v(hr,{...r,ref:t}):null;});pr.displayName=Ne;var uf=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ye(Ne,e.__scopeScrollArea),[a,s]=l.useState(!1);return l.useEffect(()=>{const i=o.scrollArea;let c=0;if(i){const u=()=>{window.clearTimeout(c),s(!0);},d=()=>{c=window.setTimeout(()=>s(!1),o.scrollHideDelay);};return i.addEventListener("pointerenter",u),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),i.removeEventListener("pointerenter",u),i.removeEventListener("pointerleave",d);};}},[o.scrollArea,o.scrollHideDelay]),/* @__PURE__ */v(Ee,{present:n||a,children:/* @__PURE__ */v(Fi,{"data-state":a?"visible":"hidden",...r,ref:t})});}),df=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ye(Ne,e.__scopeScrollArea),a=e.orientation==="horizontal",s=fn(()=>c("SCROLL_END"),100),[i,c]=lf("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(i==="idle"){const u=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u);}},[i,o.scrollHideDelay,c]),l.useEffect(()=>{const u=o.viewport,d=a?"scrollLeft":"scrollTop";if(u){let f=u[d];const g=()=>{const y=u[d];f!==y&&(c("SCROLL"),s()),f=y;};return u.addEventListener("scroll",g),()=>u.removeEventListener("scroll",g);}},[o.viewport,a,c,s]),/* @__PURE__ */v(Ee,{present:n||i!=="hidden",children:/* @__PURE__ */v(hr,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:k(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:k(e.onPointerLeave,()=>c("POINTER_LEAVE"))})});}),Fi=l.forwardRef((e,t)=>{const n=ye(Ne,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=l.useState(!1),i=e.orientation==="horizontal",c=fn(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;s(i?u:d);}},10);return ot(n.viewport,c),ot(n.content,c),/* @__PURE__ */v(Ee,{present:r||a,children:/* @__PURE__ */v(hr,{"data-state":a?"visible":"hidden",...o,ref:t})});}),hr=l.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=ye(Ne,e.__scopeScrollArea),a=l.useRef(null),s=l.useRef(0),[i,c]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=$i(i.viewport,i.content),d={...r,sizes:i,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:g=>a.current=g,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:g=>s.current=g};function f(g,y){return vf(g,s.current,i,y);}return n==="horizontal"?/* @__PURE__ */v(ff,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollLeft,y=qr(g,i,o.dir);a.current.style.transform=`translate3d(${y}px, 0, 0)`;}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollLeft=g);},onDragScroll:g=>{o.viewport&&(o.viewport.scrollLeft=f(g,o.dir));}}):n==="vertical"?/* @__PURE__ */v(pf,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollTop,y=qr(g,i);a.current.style.transform=`translate3d(0, ${y}px, 0)`;}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollTop=g);},onDragScroll:g=>{o.viewport&&(o.viewport.scrollTop=f(g));}}):null;}),ff=l.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ye(Ne,e.__scopeScrollArea),[s,i]=l.useState(),c=l.useRef(null),u=G(t,c,a.onScrollbarXChange);return l.useEffect(()=>{c.current&&i(getComputedStyle(c.current));},[c]),/* @__PURE__ */v(ki,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":dn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const g=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(g),Ui(g,f)&&d.preventDefault();}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Kt(s.paddingLeft),paddingEnd:Kt(s.paddingRight)}});}});}),pf=l.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=ye(Ne,e.__scopeScrollArea),[s,i]=l.useState(),c=l.useRef(null),u=G(t,c,a.onScrollbarYChange);return l.useEffect(()=>{c.current&&i(getComputedStyle(c.current));},[c]),/* @__PURE__ */v(ki,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":dn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const g=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(g),Ui(g,f)&&d.preventDefault();}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Kt(s.paddingTop),paddingEnd:Kt(s.paddingBottom)}});}});}),[hf,Li]=Ni(Ne),ki=l.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:f,...g}=e,y=ye(Ne,n),[x,m]=l.useState(null),b=G(t,A=>m(A)),E=l.useRef(null),p=l.useRef(""),h=y.viewport,w=r.content-r.viewport,S=ue(d),C=ue(c),R=fn(f,10);function T(A){if(E.current){const I=A.clientX-E.current.left,_=A.clientY-E.current.top;u({x:I,y:_});}}return l.useEffect(()=>{const A=I=>{const _=I.target;(x==null?void 0:x.contains(_))&&S(I,w);};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1});},[h,x,w,S]),l.useEffect(C,[r,C]),ot(x,R),ot(y.content,R),/* @__PURE__ */v(hf,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:ue(a),onThumbPointerUp:ue(s),onThumbPositionChange:C,onThumbPointerDown:ue(i),children:/* @__PURE__ */v(W.div,{...g,ref:b,style:{position:"absolute",...g.style},onPointerDown:k(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),E.current=x.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),T(A));}),onPointerMove:k(e.onPointerMove,T),onPointerUp:k(e.onPointerUp,A=>{const I=A.target;I.hasPointerCapture(A.pointerId)&&I.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=p.current,y.viewport&&(y.viewport.style.scrollBehavior=""),E.current=null;})})});}),jt="ScrollAreaThumb",Di=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Li(jt,e.__scopeScrollArea);return/* @__PURE__ */v(Ee,{present:n||o.hasThumb,children:/* @__PURE__ */v(gf,{ref:t,...r})});}),gf=l.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=ye(jt,n),s=Li(jt,n),{onThumbPositionChange:i}=s,c=G(t,f=>s.onThumbChange(f)),u=l.useRef(void 0),d=fn(()=>{u.current&&(u.current(),u.current=void 0);},100);return l.useEffect(()=>{const f=a.viewport;if(f){const g=()=>{if(d(),!u.current){const y=yf(f,i);u.current=y,i();}};return i(),f.addEventListener("scroll",g),()=>f.removeEventListener("scroll",g);}},[a.viewport,d,i]),/* @__PURE__ */v(W.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:k(e.onPointerDownCapture,f=>{const y=f.target.getBoundingClientRect(),x=f.clientX-y.left,m=f.clientY-y.top;s.onThumbPointerDown({x,y:m});}),onPointerUp:k(e.onPointerUp,s.onThumbPointerUp)});});Di.displayName=jt;var gr="ScrollAreaCorner",Mi=l.forwardRef((e,t)=>{const n=ye(gr,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?/* @__PURE__ */v(mf,{...e,ref:t}):null;});Mi.displayName=gr;var mf=l.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=ye(gr,n),[a,s]=l.useState(0),[i,c]=l.useState(0),u=!!(a&&i);return ot(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),c(d);}),ot(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),s(d);}),u?/* @__PURE__ */v(W.div,{...r,ref:t,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null;});function Kt(e){return e?parseInt(e,10):0;}function $i(e,t){const n=e/t;return isNaN(n)?0:n;}function dn(e){const t=$i(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18);}function vf(e,t,n,r="ltr"){const o=dn(n),a=o/2,s=t||a,i=o-s,c=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-i,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return Bi([c,u],f)(e);}function qr(e,t,n="ltr"){const r=dn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,i=a-r,c=n==="ltr"?[0,s]:[s*-1,0],u=Mn(e,c);return Bi([0,s],[0,i])(u);}function Bi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0]);};}function Ui(e,t){return e>0&&e<t;}var yf=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,i=n.top!==a.top;(s||i)&&t(),n=a,r=window.requestAnimationFrame(o);}(),()=>window.cancelAnimationFrame(r);};function fn(e,t){const n=ue(e),r=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),l.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t);},[n,t]);}function ot(e,t){const n=ue(t);le(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n);});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e);};}},[e,n]);}var Wi=Ii,bf=_i,wf=Mi;const xf=l.forwardRef(({className:e,children:t,...n},r)=>/* @__PURE__ */re(Wi,{ref:r,className:J("relative overflow-hidden",e),...n,children:[/* @__PURE__ */v(bf,{className:"h-full w-full rounded-[inherit]",children:t}),/* @__PURE__ */v(Hi,{}),/* @__PURE__ */v(wf,{})]}));xf.displayName=Wi.displayName;const Hi=l.forwardRef(({className:e,orientation:t="vertical",...n},r)=>/* @__PURE__ */v(pr,{ref:r,orientation:t,className:J("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:/* @__PURE__ */v(Di,{className:"relative flex-1 rounded-full bg-border"})}));Hi.displayName=pr.displayName;var Sf=Symbol("radix.slottable");// @__NO_SIDE_EFFECTS__
|
|
137
|
-
function Ef(e){const t=({children:n})=>/* @__PURE__ */v(xt,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sf,t;}var[pn]=Se("Tooltip",[ct]),hn=ct(),Vi="TooltipProvider",Cf=700,Vn="tooltip.open",[Rf,mr]=pn(Vi),zi=e=>{const{__scopeTooltip:t,delayDuration:n=Cf,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u);},[]),/* @__PURE__ */v(Rf,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1;},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r);},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u;},[]),disableHoverableContent:o,children:a});};zi.displayName=Vi;var bt="Tooltip",[Af,At]=pn(bt),ji=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=mr(bt,e.__scopeTooltip),u=hn(t),[d,f]=l.useState(null),g=Xe(),y=l.useRef(0),x=s??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[E,p]=$e({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Vn))):c.onClose(),a==null||a(R);},caller:bt}),h=l.useMemo(()=>E?b.current?"delayed-open":"instant-open":"closed",[E]),w=l.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,p(!0);},[p]),S=l.useCallback(()=>{window.clearTimeout(y.current),y.current=0,p(!1);},[p]),C=l.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,p(!0),y.current=0;},m);},[m,p]);return l.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0);},[]),/* @__PURE__ */v(rr,{...u,children:/* @__PURE__ */v(Af,{scope:t,contentId:g,open:E,stateAttribute:h,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?C():w();},[c.isOpenDelayedRef,C,w]),onTriggerLeave:l.useCallback(()=>{x?S():(window.clearTimeout(y.current),y.current=0);},[S,x]),onOpen:w,onClose:S,disableHoverableContent:x,children:n})});};ji.displayName=bt;var zn="TooltipTrigger",Ki=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=At(zn,n),a=mr(zn,n),s=hn(n),i=l.useRef(null),c=G(t,i,o.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),/* @__PURE__ */v(Jt,{asChild:!0,...s,children:/* @__PURE__ */v(W.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:k(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0);}),onPointerLeave:k(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1;}),onPointerDown:k(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0});}),onFocus:k(e.onFocus,()=>{u.current||o.onOpen();}),onBlur:k(e.onBlur,o.onClose),onClick:k(e.onClick,o.onClose)})});});Ki.displayName=zn;var vr="TooltipPortal",[Tf,Pf]=pn(vr,{forceMount:void 0}),Gi=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=At(vr,t);return/* @__PURE__ */v(Tf,{scope:t,forceMount:n,children:/* @__PURE__ */v(Ee,{present:n||a.open,children:/* @__PURE__ */v(en,{asChild:!0,container:o,children:r})})});};Gi.displayName=vr;var at="TooltipContent",Yi=l.forwardRef((e,t)=>{const n=Pf(at,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=At(at,e.__scopeTooltip);return/* @__PURE__ */v(Ee,{present:r||s.open,children:s.disableHoverableContent?/* @__PURE__ */v(Xi,{side:o,...a,ref:t}):/* @__PURE__ */v(Nf,{side:o,...a,ref:t})});}),Nf=l.forwardRef((e,t)=>{const n=At(at,e.__scopeTooltip),r=mr(at,e.__scopeTooltip),o=l.useRef(null),a=G(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1);},[f]),y=l.useCallback((x,m)=>{const b=x.currentTarget,E={x:x.clientX,y:x.clientY},p=Ff(E,b.getBoundingClientRect()),h=Lf(E,p),w=kf(m.getBoundingClientRect()),S=Mf([...h,...w]);i(S),f(!0);},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&d){const x=b=>y(b,d),m=b=>y(b,c);return c.addEventListener("pointerleave",x),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",m);};}},[c,d,y,g]),l.useEffect(()=>{if(s){const x=m=>{const b=m.target,E={x:m.clientX,y:m.clientY},p=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),h=!Df(E,s);p?g():h&&(g(),u());};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x);}},[c,d,s,u,g]),/* @__PURE__ */v(Xi,{...e,ref:a});}),[If,Of]=pn(bt,{isInside:!1}),_f=/* @__PURE__ */Ef("TooltipContent"),Xi=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=At(at,n),u=hn(n),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(Vn,d),()=>document.removeEventListener(Vn,d)),[d]),l.useEffect(()=>{if(c.trigger){const f=g=>{const y=g.target;y!=null&&y.contains(c.trigger)&&d();};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0});}},[c.trigger,d]),/* @__PURE__ */v(Yt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:/* @__PURE__ */re(or,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[/* @__PURE__ */v(_f,{children:r}),/* @__PURE__ */v(If,{scope:n,isInside:!0,children:/* @__PURE__ */v(dd,{id:c.contentId,role:"tooltip",children:o||r})})]})});});Yi.displayName=at;var qi="TooltipArrow",Zi=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hn(n);return Of(qi,n).isInside?null:/* @__PURE__ */v(ar,{...o,...r,ref:t});});Zi.displayName=qi;function Ff(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable");}}function Lf(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break;}return r;}function kf(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}];}function Df(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],u=i.x,d=i.y,f=c.x,g=c.y;d>r!=g>r&&n<(f-u)*(r-d)/(g-d)+u&&(o=!o);}return o;}function Mf(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),$f(t);}function $f(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break;}t.push(o);}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break;}n.push(o);}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n);}var Bf=zi,Uf=ji,Wf=Ki,Hf=Gi,Qi=Yi,Vf=Zi;const Gp=Bf,Yp=Uf,Xp=Wf,zf=l.forwardRef(({className:e,sideOffset:t=4,forceMount:n,...r},o)=>/* @__PURE__ */v(Hf,{forceMount:n,children:/* @__PURE__ */v(rn,{children:/* @__PURE__ */v(Qi,{ref:o,sideOffset:t,forceMount:n,className:J("z-50 overflow-hidden rounded-control bg-foreground px-2 py-1 text-[12px] text-background shadow-sm animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})}));zf.displayName=Qi.displayName;const qp=Vf;function Zp({value:e,label:t,options:n,onChange:r,style:o,fill:a=!1}){return/* @__PURE__ */v(Ri,{"aria-label":t,value:e??"",onValueChange:s=>r(s),orientation:"horizontal",style:o,className:J("inline-flex h-[30px] items-center gap-0.5 overflow-hidden rounded-control border border-border/60 bg-muted/60 p-0.5",a&&"flex w-full"),children:n.map(s=>/* @__PURE__ */v(Ai,{value:s.value,title:s.title,disabled:s.disabled,className:J("h-6 min-w-0 rounded-control px-2.5 text-[12px] font-medium leading-none text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=checked]:bg-background data-[state=checked]:text-foreground data-[state=checked]:shadow-sm data-[state=checked]:ring-1 data-[state=checked]:ring-border",a&&"flex-1 whitespace-nowrap px-1"),children:s.label},s.value))});}var gn="Switch",[jf]=Se(gn),[Kf,Gf]=jf(gn),Ji=l.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:u,form:d,...f}=e,[g,y]=l.useState(null),x=G(t,h=>y(h)),m=l.useRef(!1),b=g?d||!!g.closest("form"):!0,[E,p]=$e({prop:o,defaultProp:a??!1,onChange:u,caller:gn});return/* @__PURE__ */re(Kf,{scope:n,checked:E,disabled:i,children:[/* @__PURE__ */v(W.button,{type:"button",role:"switch","aria-checked":E,"aria-required":s,"data-state":rs(E),"data-disabled":i?"":void 0,disabled:i,value:c,...f,ref:x,onClick:k(e.onClick,h=>{p(w=>!w),b&&(m.current=h.isPropagationStopped(),m.current||h.stopPropagation());})}),b&&/* @__PURE__ */v(ns,{control:g,bubbles:!m.current,name:r,value:c,checked:E,required:s,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]});});Ji.displayName=gn;var es="SwitchThumb",ts=l.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Gf(es,n);return/* @__PURE__ */v(W.span,{"data-state":rs(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t});});ts.displayName=es;var Yf="SwitchBubbleInput",ns=l.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=G(s,a),c=cr(n),u=er(t);return l.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&y){const x=new Event("click",{bubbles:r});y.call(d,n),d.dispatchEvent(x);}},[c,n,r]),/* @__PURE__ */v("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}});});ns.displayName=Yf;function rs(e){return e?"checked":"unchecked";}var os=Ji,Xf=ts;const qf=We("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",{variants:{size:{default:"h-6 w-11",sm:"h-[22px] w-[36px]",xs:"h-4 w-7"}},defaultVariants:{size:"default"}}),Zf=We("pointer-events-none block rounded-full bg-background shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{default:"h-5 w-5 data-[state=checked]:translate-x-5",sm:"size-4 data-[state=checked]:translate-x-4",xs:"h-3 w-3 data-[state=checked]:translate-x-3"}},defaultVariants:{size:"default"}}),Qf=l.forwardRef(({className:e,size:t,...n},r)=>/* @__PURE__ */v(os,{className:J(qf({size:t,className:e})),...n,ref:r,children:/* @__PURE__ */v(Xf,{className:J(Zf({size:t}))})}));Qf.displayName=os.displayName;var as={},ae=ve&&ve.__assign||function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e;},ae.apply(this,arguments);},Jf=ve&&ve.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n];}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];}),ep=ve&&ve.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),tp=ve&&ve.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Jf(t,e,n);return ep(t,e),t;},np=ve&&ve.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n;};Object.defineProperty(as,"__esModule",{value:!0});var me=tp(ke),rp=89,Lt=90,op=77,Zr=57,Qr=219,Jr=222,eo=192,to=100,ap=3e3,ip=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),Nn=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),$t="npm__react-simple-code-editor__textarea",sp=`
|
|
138
|
-
/**
|
|
139
|
-
* Reset the text fill color so that placeholder is visible
|
|
140
|
-
*/
|
|
141
|
-
.`.concat($t,`:empty {
|
|
142
|
-
-webkit-text-fill-color: inherit !important;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Hack to apply on some CSS on IE10 and IE11
|
|
147
|
-
*/
|
|
148
|
-
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
149
|
-
/**
|
|
150
|
-
* IE doesn't support '-webkit-text-fill-color'
|
|
151
|
-
* So we use 'color: transparent' to make the text transparent on IE
|
|
152
|
-
* Unlike other browsers, it doesn't affect caret color in IE
|
|
153
|
-
*/
|
|
154
|
-
.`).concat($t,` {
|
|
155
|
-
color: transparent !important;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.`).concat($t,`::selection {
|
|
159
|
-
background-color: #accef7 !important;
|
|
160
|
-
color: transparent !important;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
`),lp=me.forwardRef(function(t,n){var r=t.autoFocus,o=t.disabled,a=t.form,s=t.highlight,i=t.ignoreTabKey,c=i===void 0?!1:i,u=t.insertSpaces,d=u===void 0?!0:u,f=t.maxLength,g=t.minLength,y=t.name,x=t.onBlur,m=t.onClick,b=t.onFocus,E=t.onKeyDown,p=t.onKeyUp,h=t.onValueChange,w=t.padding,S=w===void 0?0:w,C=t.placeholder,R=t.preClassName,T=t.readOnly,A=t.required,I=t.style,_=t.tabSize,$=_===void 0?2:_,z=t.textareaClassName,H=t.textareaId,Y=t.value,M=np(t,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),F=me.useRef({stack:[],offset:-1}),N=me.useRef(null),O=me.useState(!0),D=O[0],Z=O[1],Q={paddingTop:typeof S=="object"?S.top:S,paddingRight:typeof S=="object"?S.right:S,paddingBottom:typeof S=="object"?S.bottom:S,paddingLeft:typeof S=="object"?S.left:S},oe=s(Y),ee=function(P,V){return P.substring(0,V).split(`
|
|
164
|
-
`);},ie=me.useCallback(function(P,V){var B,U,te;V===void 0&&(V=!1);var se=F.current,de=se.stack,dt=se.offset;if(de.length&&dt>-1){F.current.stack=de.slice(0,dt+1);var ft=F.current.stack.length;if(ft>to){var qe=ft-to;F.current.stack=de.slice(qe,ft),F.current.offset=Math.max(F.current.offset-qe,0);}}var Ce=Date.now();if(V){var Le=F.current.stack[F.current.offset];if(Le&&Ce-Le.timestamp<ap){var pt=/[^a-z0-9]([a-z0-9]+)$/i,fe=(B=ee(Le.value,Le.selectionStart).pop())===null||B===void 0?void 0:B.match(pt),ht=(U=ee(P.value,P.selectionStart).pop())===null||U===void 0?void 0:U.match(pt);if(fe!=null&&fe[1]&&!((te=ht==null?void 0:ht[1])===null||te===void 0)&&te.startsWith(fe[1])){F.current.stack[F.current.offset]=ae(ae({},P),{timestamp:Ce});return;}}}F.current.stack.push(ae(ae({},P),{timestamp:Ce})),F.current.offset++;},[]),ce=me.useCallback(function(){var P=N.current;if(P){var V=P.value,B=P.selectionStart,U=P.selectionEnd;ie({value:V,selectionStart:B,selectionEnd:U});}},[ie]),L=function(P){var V=N.current;V&&(V.value=P.value,V.selectionStart=P.selectionStart,V.selectionEnd=P.selectionEnd,h==null||h(P.value));},j=function(P){var V=N.current,B=F.current.stack[F.current.offset];B&&V&&(F.current.stack[F.current.offset]=ae(ae({},B),{selectionStart:V.selectionStart,selectionEnd:V.selectionEnd})),ie(P),L(P);},ne=function(){var P=F.current,V=P.stack,B=P.offset,U=V[B-1];U&&(L(U),F.current.offset=Math.max(B-1,0));},X=function(){var P=F.current,V=P.stack,B=P.offset,U=V[B+1];U&&(L(U),F.current.offset=Math.min(B+1,V.length-1));},K=function(P){if(!(E&&(E(P),P.defaultPrevented))){P.key==="Escape"&&P.currentTarget.blur();var V=P.currentTarget,B=V.value,U=V.selectionStart,te=V.selectionEnd,se=(d?" ":" ").repeat($);if(P.key==="Tab"&&!c&&D){if(P.preventDefault(),P.shiftKey){var de=ee(B,U),dt=de.length-1,ft=ee(B,te).length-1,qe=B.split(`
|
|
165
|
-
`).map(function(gt,br){return br>=dt&&br<=ft&>.startsWith(se)?gt.substring(se.length):gt;}).join(`
|
|
166
|
-
`);if(B!==qe){var Ce=de[dt];j({value:qe,selectionStart:Ce!=null&&Ce.startsWith(se)?U-se.length:U,selectionEnd:te-(B.length-qe.length)});}}else if(U!==te){var de=ee(B,U),Le=de.length-1,pt=ee(B,te).length-1,Ce=de[Le];j({value:B.split(`
|
|
167
|
-
`).map(function(wr,xr){return xr>=Le&&xr<=pt?se+wr:wr;}).join(`
|
|
168
|
-
`),selectionStart:Ce&&/\S/.test(Ce)?U+se.length:U,selectionEnd:te+se.length*(pt-Le+1)});}else{var fe=U+se.length;j({value:B.substring(0,U)+se+B.substring(te),selectionStart:fe,selectionEnd:fe});}}else if(P.key==="Backspace"){var ht=U!==te,ls=B.substring(0,U);if(ls.endsWith(se)&&!ht){P.preventDefault();var fe=U-se.length;j({value:B.substring(0,U-se.length)+B.substring(te),selectionStart:fe,selectionEnd:fe});}}else if(P.key==="Enter"){if(U===te){var mn=ee(B,U).pop(),Tt=mn==null?void 0:mn.match(/^\s+/);if(Tt!=null&&Tt[0]){P.preventDefault();var yr=`
|
|
169
|
-
`+Tt[0],fe=U+yr.length;j({value:B.substring(0,U)+yr+B.substring(te),selectionStart:fe,selectionEnd:fe});}}}else if(P.keyCode===Zr||P.keyCode===Qr||P.keyCode===Jr||P.keyCode===eo){var Ie=void 0;P.keyCode===Zr&&P.shiftKey?Ie=["(",")"]:P.keyCode===Qr?P.shiftKey?Ie=["{","}"]:Ie=["[","]"]:P.keyCode===Jr?P.shiftKey?Ie=['"','"']:Ie=["'","'"]:P.keyCode===eo&&!P.shiftKey&&(Ie=["`","`"]),U!==te&&Ie&&(P.preventDefault(),j({value:B.substring(0,U)+Ie[0]+B.substring(U,te)+Ie[1]+B.substring(te),selectionStart:U,selectionEnd:te+2}));}else(Nn?P.metaKey&&P.keyCode===Lt:P.ctrlKey&&P.keyCode===Lt)&&!P.shiftKey&&!P.altKey?(P.preventDefault(),ne()):(Nn?P.metaKey&&P.keyCode===Lt&&P.shiftKey:ip?P.ctrlKey&&P.keyCode===rp:P.ctrlKey&&P.keyCode===Lt&&P.shiftKey)&&!P.altKey?(P.preventDefault(),X()):P.keyCode===op&&P.ctrlKey&&(!Nn||P.shiftKey)&&(P.preventDefault(),Z(function(gt){return!gt;}));}},q=function(P){var V=P.currentTarget,B=V.value,U=V.selectionStart,te=V.selectionEnd;ie({value:B,selectionStart:U,selectionEnd:te},!0),h(B);};return me.useEffect(function(){ce();},[ce]),me.useImperativeHandle(n,function(){return{get session(){return{history:F.current};},set session(P){F.current=P.history;}};},[]),me.createElement("div",ae({},M,{style:ae(ae({},mt.container),I)}),me.createElement("pre",ae({className:R,"aria-hidden":"true",style:ae(ae(ae({},mt.editor),mt.highlight),Q)},typeof oe=="string"?{dangerouslySetInnerHTML:{__html:oe+"<br />"}}:{children:oe})),me.createElement("textarea",{ref:function(P){return N.current=P;},style:ae(ae(ae({},mt.editor),mt.textarea),Q),className:$t+(z?" ".concat(z):""),id:H,value:Y,onChange:q,onKeyDown:K,onClick:m,onKeyUp:p,onFocus:b,onBlur:x,disabled:o,form:a,maxLength:f,minLength:g,name:y,placeholder:C,readOnly:T,required:A,autoFocus:r,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),me.createElement("style",{dangerouslySetInnerHTML:{__html:sp}}));}),mt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}},cp=as.default=lp,is={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
170
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
171
|
-
*
|
|
172
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
173
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
174
|
-
* @namespace
|
|
175
|
-
* @public
|
|
176
|
-
*/var n=function(r){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,s={},i={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(h){return h instanceof c?new c(h.type,p(h.content),h.alias):Array.isArray(h)?h.map(p):h.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ");},type:function(p){return Object.prototype.toString.call(p).slice(8,-1);},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++a}),p.__id;},clone:function p(h,w){w=w||{};var S,C;switch(i.util.type(h)){case"Object":if(C=i.util.objId(h),w[C])return w[C];S={},w[C]=S;for(var R in h)h.hasOwnProperty(R)&&(S[R]=p(h[R],w));return S;case"Array":return C=i.util.objId(h),w[C]?w[C]:(S=[],w[C]=S,h.forEach(function(T,A){S[A]=p(T,w);}),S);default:return h;}},getLanguage:function(p){for(;p;){var h=o.exec(p.className);if(h)return h[1].toLowerCase();p=p.parentElement;}return"none";},setLanguage:function(p,h){p.className=p.className.replace(RegExp(o,"gi"),""),p.classList.add("language-"+h);},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error();}catch(S){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(p){var h=document.getElementsByTagName("script");for(var w in h)if(h[w].src==p)return h[w];}return null;}},isActive:function(p,h,w){for(var S="no-"+h;p;){var C=p.classList;if(C.contains(h))return!0;if(C.contains(S))return!1;p=p.parentElement;}return!!w;}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(p,h){var w=i.util.clone(i.languages[p]);for(var S in h)w[S]=h[S];return w;},insertBefore:function(p,h,w,S){S=S||i.languages;var C=S[p],R={};for(var T in C)if(C.hasOwnProperty(T)){if(T==h)for(var A in w)w.hasOwnProperty(A)&&(R[A]=w[A]);w.hasOwnProperty(T)||(R[T]=C[T]);}var I=S[p];return S[p]=R,i.languages.DFS(i.languages,function(_,$){$===I&&_!=p&&(this[_]=R);}),R;},DFS:function p(h,w,S,C){C=C||{};var R=i.util.objId;for(var T in h)if(h.hasOwnProperty(T)){w.call(h,T,h[T],S||T);var A=h[T],I=i.util.type(A);I==="Object"&&!C[R(A)]?(C[R(A)]=!0,p(A,w,null,C)):I==="Array"&&!C[R(A)]&&(C[R(A)]=!0,p(A,w,T,C));}}},plugins:{},highlightAll:function(p,h){i.highlightAllUnder(document,p,h);},highlightAllUnder:function(p,h,w){var S={callback:w,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),i.hooks.run("before-all-elements-highlight",S);for(var C=0,R;R=S.elements[C++];)i.highlightElement(R,h===!0,S.callback);},highlightElement:function(p,h,w){var S=i.util.getLanguage(p),C=i.languages[S];i.util.setLanguage(p,S);var R=p.parentElement;R&&R.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(R,S);var T=p.textContent,A={element:p,language:S,grammar:C,code:T};function I($){A.highlightedCode=$,i.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,i.hooks.run("after-highlight",A),i.hooks.run("complete",A),w&&w.call(A.element);}if(i.hooks.run("before-sanity-check",A),R=A.element.parentElement,R&&R.nodeName.toLowerCase()==="pre"&&!R.hasAttribute("tabindex")&&R.setAttribute("tabindex","0"),!A.code){i.hooks.run("complete",A),w&&w.call(A.element);return;}if(i.hooks.run("before-highlight",A),!A.grammar){I(i.util.encode(A.code));return;}if(h&&r.Worker){var _=new Worker(i.filename);_.onmessage=function($){I($.data);},_.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}));}else I(i.highlight(A.code,A.grammar,A.language));},highlight:function(p,h,w){var S={code:p,grammar:h,language:w};if(i.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=i.tokenize(S.code,S.grammar),i.hooks.run("after-tokenize",S),c.stringify(i.util.encode(S.tokens),S.language);},tokenize:function(p,h){var w=h.rest;if(w){for(var S in w)h[S]=w[S];delete h.rest;}var C=new f();return g(C,C.head,p),d(p,C,h,C.head,0),x(C);},hooks:{all:{},add:function(p,h){var w=i.hooks.all;w[p]=w[p]||[],w[p].push(h);},run:function(p,h){var w=i.hooks.all[p];if(!(!w||!w.length))for(var S=0,C;C=w[S++];)C(h);}},Token:c};r.Prism=i;function c(p,h,w,S){this.type=p,this.content=h,this.alias=w,this.length=(S||"").length|0;}c.stringify=function p(h,w){if(typeof h=="string")return h;if(Array.isArray(h)){var S="";return h.forEach(function(I){S+=p(I,w);}),S;}var C={type:h.type,content:p(h.content,w),tag:"span",classes:["token",h.type],attributes:{},language:w},R=h.alias;R&&(Array.isArray(R)?Array.prototype.push.apply(C.classes,R):C.classes.push(R)),i.hooks.run("wrap",C);var T="";for(var A in C.attributes)T+=" "+A+'="'+(C.attributes[A]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+T+">"+C.content+"</"+C.tag+">";};function u(p,h,w,S){p.lastIndex=h;var C=p.exec(w);if(C&&S&&C[1]){var R=C[1].length;C.index+=R,C[0]=C[0].slice(R);}return C;}function d(p,h,w,S,C,R){for(var T in w)if(!(!w.hasOwnProperty(T)||!w[T])){var A=w[T];A=Array.isArray(A)?A:[A];for(var I=0;I<A.length;++I){if(R&&R.cause==T+","+I)return;var _=A[I],$=_.inside,z=!!_.lookbehind,H=!!_.greedy,Y=_.alias;if(H&&!_.pattern.global){var M=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,M+"g");}for(var F=_.pattern||_,N=S.next,O=C;N!==h.tail&&!(R&&O>=R.reach);O+=N.value.length,N=N.next){var D=N.value;if(h.length>p.length)return;if(!(D instanceof c)){var Z=1,Q;if(H){if(Q=u(F,O,p,z),!Q||Q.index>=p.length)break;var ce=Q.index,oe=Q.index+Q[0].length,ee=O;for(ee+=N.value.length;ce>=ee;)N=N.next,ee+=N.value.length;if(ee-=N.value.length,O=ee,N.value instanceof c)continue;for(var ie=N;ie!==h.tail&&(ee<oe||typeof ie.value=="string");ie=ie.next)Z++,ee+=ie.value.length;Z--,D=p.slice(O,ee),Q.index-=O;}else if(Q=u(F,0,D,z),!Q)continue;var ce=Q.index,L=Q[0],j=D.slice(0,ce),ne=D.slice(ce+L.length),X=O+D.length;R&&X>R.reach&&(R.reach=X);var K=N.prev;j&&(K=g(h,K,j),O+=j.length),y(h,K,Z);var q=new c(T,$?i.tokenize(L,$):L,Y,L);if(N=g(h,K,q),ne&&g(h,N,ne),Z>1){var P={cause:T+","+I,reach:X};d(p,h,w,N.prev,O,P),R&&P.reach>R.reach&&(R.reach=P.reach);}}}}}}function f(){var p={value:null,prev:null,next:null},h={value:null,prev:p,next:null};p.next=h,this.head=p,this.tail=h,this.length=0;}function g(p,h,w){var S=h.next,C={value:w,prev:h,next:S};return h.next=C,S.prev=C,p.length++,C;}function y(p,h,w){for(var S=h.next,C=0;C<w&&S!==p.tail;C++)S=S.next;h.next=S,S.prev=h,p.length-=C;}function x(p){for(var h=[],w=p.head.next;w!==p.tail;)h.push(w.value),w=w.next;return h;}if(!r.document)return r.addEventListener&&(i.disableWorkerMessageHandler||r.addEventListener("message",function(p){var h=JSON.parse(p.data),w=h.language,S=h.code,C=h.immediateClose;r.postMessage(i.highlight(S,i.languages[w],w)),C&&r.close();},!1)),i;var m=i.util.currentScript();m&&(i.filename=m.src,m.hasAttribute("data-manual")&&(i.manual=!0));function b(){i.manual||i.highlightAll();}if(!i.manual){var E=document.readyState;E==="loading"||E==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16);}return i;}(t);e.exports&&(e.exports=n),typeof ve<"u"&&(ve.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"));}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(o,a){var s={};s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};i["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var c={};c[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o;}),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",c);}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}});}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"));}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",o=function(m,b){return"✖ Error "+m+" while fetching file: "+b;},a="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",c="loading",u="loaded",d="failed",f="pre[data-src]:not(["+i+'="'+u+'"]):not(['+i+'="'+c+'"])';function g(m,b,E){var p=new XMLHttpRequest();p.open("GET",m,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?b(p.responseText):p.status>=400?E(o(p.status,p.statusText)):E(a));},p.send(null);}function y(m){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(b){var E=Number(b[1]),p=b[2],h=b[3];return p?h?[E,Number(h)]:[E,void 0]:[E,E];}}n.hooks.add("before-highlightall",function(m){m.selector+=", "+f;}),n.hooks.add("before-sanity-check",function(m){var b=m.element;if(b.matches(f)){m.code="",b.setAttribute(i,c);var E=b.appendChild(document.createElement("CODE"));E.textContent=r;var p=b.getAttribute("data-src"),h=m.language;if(h==="none"){var w=(/\.(\w+)$/.exec(p)||[,"none"])[1];h=s[w]||w;}n.util.setLanguage(E,h),n.util.setLanguage(b,h);var S=n.plugins.autoloader;S&&S.loadLanguages(h),g(p,function(C){b.setAttribute(i,u);var R=y(b.getAttribute("data-range"));if(R){var T=C.split(/\r\n?|\n/g),A=R[0],I=R[1]==null?T.length:R[1];A<0&&(A+=T.length),A=Math.max(0,Math.min(A-1,T.length)),I<0&&(I+=T.length),I=Math.max(0,Math.min(I,T.length)),C=T.slice(A,I).join(`
|
|
177
|
-
`),b.hasAttribute("data-start")||b.setAttribute("data-start",String(A+1));}E.textContent=C,n.highlightElement(E);},function(C){b.setAttribute(i,d),E.textContent=C;});}}),n.plugins.fileHighlight={highlight:function(b){for(var E=(b||document).querySelectorAll(f),p=0,h;h=E[p++];)n.highlightElement(h);}};var x=!1;n.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),n.plugins.fileHighlight.highlight.apply(this,arguments);};}();})(is);var wt=is.exports;const Me=/* @__PURE__ */hs(wt);(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(i,c){c=(c||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r;}).replace(/<<value>>/g,function(){return i;});return RegExp(u,c);}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r;})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r;}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+a+")";})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml;})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript;})(Prism);(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(c,u){return c=c.replace(/<S>/g,function(){return n;}).replace(/<BRACES>/g,function(){return r;}).replace(/<SPREAD>/g,function(){return o;}),RegExp(c,u);}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):"";},i=function(c){for(var u=[],d=0;d<c.length;d++){var f=c[d],g=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?u.length>0&&u[u.length-1].tagName===s(f.content[0].content[1])&&u.pop():f.content[f.content.length-1].content==="/>"||u.push({tagName:s(f.content[0].content[1]),openedBraces:0}):u.length>0&&f.type==="punctuation"&&f.content==="{"?u[u.length-1].openedBraces++:u.length>0&&u[u.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?u[u.length-1].openedBraces--:g=!0),(g||typeof f=="string")&&u.length>0&&u[u.length-1].openedBraces===0){var y=s(f);d<c.length-1&&(typeof c[d+1]=="string"||c[d+1].type==="plain-text")&&(y+=s(c[d+1]),c.splice(d+1,1)),d>0&&(typeof c[d-1]=="string"||c[d-1].type==="plain-text")&&(y=s(c[d-1])+y,c.splice(d-1,1),d--),c[d]=new e.Token("plain-text",y,null,y);}f.content&&typeof f.content!="string"&&i(f.content);}};e.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||i(c.tokens);});})(Prism);(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0;})(Prism);const no={"tag-delimiter":/^\{%-?|-?%\}$/,"expression-delimiter":/^\{\{-?|-?\}\}$/,"jinja-keyword":/\b(?:for|endfor|if|elif|else|endif|in|set|block|endblock|extends|include|import|from|with|without|context|raw|endraw|do|macro|endmacro|call|endcall|and|or|not|is)\b/,"semaphor-call":{pattern:/\b(?:param|filter)(?=\s*\()/,alias:"function"},"semaphor-identifier":{pattern:/\bfilters\b/,alias:"function"},"semaphor-accessor":{pattern:/\.(?:sql|list_sql|list|start|end|values|value|present)\b/,alias:"property"},string:/(["'])(?:\\.|(?!\1)[^\\])*\1/,"jinja-filter":{pattern:new RegExp("(?<=\\|\\s*)[A-Za-z_][\\w]*"),alias:"function"},function:/\b[A-Za-z_][\w]*(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:true|false|True|False|None|null)\b/,operator:/==|!=|<=|>=|&&|\|\||[+\-*/=<>!|]/},up={"jinja-comment":{pattern:/\{#[\s\S]*?#\}/,greedy:!0},"jinja-tag":{pattern:/\{%-?\s*[\s\S]*?-?%\}/,greedy:!0,inside:no},"jinja-expression":{pattern:/\{\{-?\s*[\s\S]*?-?\}\}/,greedy:!0,inside:no}},dp={"tag-delimiter":/^\[\[|\]\]$/,"semaphor-call":{pattern:/\b(?:param|filter|filters)\b/,alias:"function"},"semaphor-accessor":{pattern:/\.[A-Za-z_][\w]*/,alias:"property"}},fp={"bracket-param":{pattern:/\[\[\s*[\s\S]*?\s*\]\]/,greedy:!0,inside:dp}};Me.languages.sql&&(Me.languages.sql.function=/\b[A-Za-z_][\w]*(?=\s*\()/,Me.languages.insertBefore("sql","comment",{...fp,...up}),Me.languages["sql-jinja"]=Me.languages.sql);Me.languages.yaml&&Me.languages.insertBefore("yaml","punctuation",{"plain-scalar":{pattern:new RegExp("(?<=:[ \\t]|-[ \\t])(?!\\s)[^\\r\\n#]+"),alias:"string"}});const pp={js:"javascript",ts:"typescript",py:"python",postgres:"sql",postgresql:"sql",mysql:"sql",snowflake:"sql"};function hp(e){if(!e)return null;const t=e.trim().toLowerCase(),n=pp[t]??t;return Me.languages[n]?n:null;}function Qp(e,t){const n=hp(t);return n?wt.highlight(e,wt.languages[n],n):null;}function gp(e,t,n,r){const o=t.map((i,c)=>({chip:i,index:c})).sort((i,c)=>i.chip.start-c.chip.start),a=[];let s=0;for(const{chip:i,index:c}of o)i.start<s||i.end>e.length||(i.start>s&&a.push(e.slice(s,i.start)),a.push(/* @__PURE__ */v("span",{"data-chip-index":c,"data-tone":i.tone,"data-state":c===n?"active":c===r?"hover":void 0,className:"code-editor-chip",children:e.slice(i.start,i.end)},c)),s=i.end);return s<e.length&&a.push(e.slice(s)),a;}function mp({value:e,onValueChange:t,language:n,readOnly:r=!1,embedded:o=!1,hideLineNumbers:a=!1,flushGutter:s=!1,dense:i=!1,wrapLines:c=!1,placeholder:u,ariaLabel:d,onKeyDown:f,className:g,textareaId:y,chips:x,activeChipIndex:m,onChipClick:b},E){const p=vn(null),h=vn(null),w=vn(null),[S,C]=ro(null),R=!!(x&&x.length>0),T=R&&!r&&!!b,A=i?{top:6,right:8,bottom:6,left:8}:{top:16,right:24,bottom:16,left:s?8:16},I=us(()=>e.split(`
|
|
178
|
-
`).length,[e]),_=Math.max(2,String(I).length),$=ds(),z=y??$,H=d??u;fs(E,()=>({captureSession(){const N=h.current,O=p.current,D=O==null?void 0:O.querySelector("textarea");return!N||!O||!D?null:{session:N.session,selectionStart:D.selectionStart,selectionEnd:D.selectionEnd,scrollTop:O.scrollTop,scrollLeft:O.scrollLeft,wasFocused:document.activeElement===D};},restoreSession(N){const O=h.current,D=p.current,Z=D==null?void 0:D.querySelector("textarea");if(!O||!D||!Z)return;O.session=N.session;const Q=Z.value.length,oe=Math.min(N.selectionStart,Q),ee=Math.min(N.selectionEnd,Q);Z.setSelectionRange(oe,ee),D.scrollTop=N.scrollTop,D.scrollLeft=N.scrollLeft,N.wasFocused&&Z.focus();},focus(){var N,O;(O=(N=p.current)==null?void 0:N.querySelector("textarea"))==null||O.focus();},getChipRect(N){var Z;const O=(Z=w.current)==null?void 0:Z.querySelector(`[data-chip-index="${N}"]`),D=O==null?void 0:O.getClientRects();return D&&D.length>0?D[D.length-1]:null;}}),[]);const Y=(N,O)=>{var Z;const D=(Z=w.current)==null?void 0:Z.querySelectorAll('[data-tone="pending"]');if(!D)return null;for(const Q of Array.from(D))for(const oe of Array.from(Q.getClientRects()))if(N>=oe.left-1&&N<=oe.right+1&&O>=oe.top&&O<=oe.bottom)return Number(Q.dataset.chipIndex);return null;},M=N=>{const O=Y(N.clientX,N.clientY);O!==S&&C(O);},F=N=>{var Q;if(N.button!==0||!x)return;const O=Y(N.clientX,N.clientY);if(O===null)return;const D=(Q=p.current)==null?void 0:Q.querySelector("textarea"),Z=x[O];!D||!Z||D.selectionStart!==D.selectionEnd&&(D.selectionStart<Z.start||D.selectionEnd>Z.end)||b==null||b(O);};return/* @__PURE__ */re("div",{ref:p,className:`code-editor relative h-full min-h-0 overflow-auto font-mono text-[12px] leading-[1.55] ${o?"":"rounded-control border border-border"}${c?" code-editor--wrap":""}${g?` ${g}`:""}`,children:[H?/* @__PURE__ */v("label",{htmlFor:z,className:"sr-only",children:H}):null,/* @__PURE__ */re("div",{className:c?"flex min-h-full w-full":"flex min-h-full min-w-max",children:[a?null:/* @__PURE__ */v("div",{"aria-hidden":!0,className:`shrink-0 select-none border-r border-border/60 py-4 text-center text-muted-foreground/60 [font-variant-numeric:tabular-nums] ${s?"px-2":"px-3"}${c?"":" sticky left-0 z-[1] bg-inherit"}`,style:{minWidth:`calc(${_}ch + ${s?"1rem":"1.5rem"})`},children:Array.from({length:I},(N,O)=>/* @__PURE__ */v("div",{children:O+1},O))}),/* @__PURE__ */re("div",{className:`${c?"relative min-w-0 flex-1":"relative flex-1"}${T&&S!==null?" code-editor--chip-hover":""}`,onMouseMove:T?M:void 0,onMouseLeave:T?()=>C(null):void 0,onMouseUp:T?F:void 0,children:[R&&x?/* @__PURE__ */v("div",{ref:w,"aria-hidden":!0,className:"code-editor-pre code-editor-chip-layer pointer-events-none absolute inset-0",style:{paddingTop:A.top,paddingRight:A.right,paddingBottom:A.bottom,paddingLeft:A.left,wordBreak:"keep-all"},children:gp(e,x,m,T?S:null)}):null,u&&e.length===0?/* @__PURE__ */v("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 whitespace-pre-wrap font-mono text-[12px] leading-[1.55] text-muted-foreground/70",style:{paddingTop:A.top,paddingRight:A.right,paddingBottom:A.bottom,paddingLeft:A.left},children:u}):null,/* @__PURE__ */v(cp,{ref:h,value:e,onValueChange:t??(()=>{}),highlight:N=>wt.highlight(N,wt.languages[n],n),padding:A,placeholder:u,textareaClassName:r?"code-editor-textarea code-editor-textarea-readonly":"code-editor-textarea",preClassName:"code-editor-pre",className:"h-full w-full",style:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit"},readOnly:r,onKeyDown:f,textareaId:z})]})]})]});}const Jp=jn(mp);function vp(e){return e==="muted"?"hsl(var(--semaphor-muted))":e==="background"?"hsl(var(--semaphor-background))":e;}const yp="text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";function eh({children:e,right:t}){return/* @__PURE__ */re("div",{className:"flex items-center justify-between border-y border-border/60 bg-muted/40 px-4 py-1 first:border-t-0",children:[/* @__PURE__ */v("p",{className:yp,children:e}),t]});}function th({label:e,state:t,children:n}){return/* @__PURE__ */re("div",{className:J("grid grid-cols-[104px_minmax(0,1fr)_28px] items-center gap-x-2 gap-y-1 px-4",e?"py-2":"-mt-1 pb-2"),children:[/* @__PURE__ */v("span",{className:J("text-[12px]",t!=null&&t.changed?"font-medium text-foreground":"text-muted-foreground"),children:e}),/* @__PURE__ */v("div",{className:"flex min-w-0 items-center gap-1.5",children:n}),t!=null&&t.changed?/* @__PURE__ */v(ss,{title:`Back to your brand's value: ${t.inherited}`,label:e||"this setting",onClick:t.onReset}):t!=null&&t.hostShows?/* @__PURE__ */v("span",{className:"text-right text-[10px] text-muted-foreground/70",title:"Set by the app this dashboard is shown in",children:"App"}):/* @__PURE__ */v("span",{}),t!=null&&t.hostShows?/* @__PURE__ */v("p",{className:"col-span-2 col-start-2 text-[11px] leading-snug text-muted-foreground",children:t.changed?`This app shows ${t.hostShows} here. Yours is saved and shows everywhere else.`:`This app shows ${t.hostShows} here.`}):null]});}function ss({title:e,label:t,onClick:n}){return/* @__PURE__ */v(io,{size:"xs",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:e,"aria-label":`Reset ${t}`,onClick:n,children:/* @__PURE__ */v(Os,{className:"h-3.5 w-3.5","aria-hidden":!0})});}function nh({value:e,min:t,max:n,label:r,onChange:o}){return/* @__PURE__ */re("span",{className:"relative inline-flex",children:[/* @__PURE__ */v(fa,{type:"number",min:t,max:n,step:1,value:e,"aria-label":r,onChange:a=>{const s=Math.round(Number(a.target.value));Number.isFinite(s)&&o(Math.min(n,Math.max(t,s)));},className:"h-7 w-[68px] pr-6 text-[12px] tabular-nums"}),/* @__PURE__ */v("span",{className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-[11px] text-muted-foreground",children:"px"})]});}function rh({color:e,label:t,onChange:n}){return/* @__PURE__ */v("label",{className:"relative inline-flex h-6 w-6 shrink-0 cursor-pointer rounded-[4px] border border-border",style:{background:e},title:e,children:/* @__PURE__ */v("input",{type:"color",value:e.startsWith("#")&&e.length===7?e:"#ffffff",onChange:r=>n(r.target.value),className:"sr-only","aria-label":t})});}function bp({look:e}){const n=e.spacing===0,r=n&&e.canvasPadding===0?0:e.cardCorners*0.4,o=a=>({borderRadius:a,background:"hsl(var(--semaphor-card))",border:e.cardBorder==="on"?"1px solid hsl(var(--semaphor-border))":void 0,boxShadow:n||e.cardShadow==="custom"?void 0:vs[e.cardShadow],marginTop:n?-1:void 0,marginLeft:n?-1:void 0});return/* @__PURE__ */v("span",{className:"grid h-11 grid-cols-2 overflow-hidden rounded-[4px]",style:{background:vp(e.canvas),padding:Math.max(e.canvasPadding*0.4,n?1:0),gap:e.spacing*0.4},children:[`${r}px 0 0 0`,`0 ${r}px 0 0`,`0 0 ${r}px ${r}px`].map((a,s)=>/* @__PURE__ */v("span",{className:J("p-1",s===2&&"col-span-2"),style:o(n?a:`${r}px`),children:/* @__PURE__ */v("span",{className:"block h-[3px] w-1/2 rounded-full bg-muted-foreground/30"})},a))});}function oh({label:e,options:t,lit:n,note:r,changed:o,resetTitle:a,onPick:s,onReset:i,children:c}){return/* @__PURE__ */re("div",{className:"px-4 pb-3 pt-2.5",children:[/* @__PURE__ */re("div",{className:"flex h-6 items-center justify-between",children:[/* @__PURE__ */v("span",{className:J("text-[12px]",o?"font-medium text-foreground":"text-muted-foreground"),children:e}),o?/* @__PURE__ */v(ss,{title:a,label:e,onClick:i}):null]}),/* @__PURE__ */v(Ri,{"aria-label":e,value:n??"",onValueChange:u=>s(u),orientation:"horizontal",className:"mt-1 grid grid-cols-4 gap-2",children:t.map(u=>/* @__PURE__ */re(Ai,{value:u.value,title:u.title,onClick:()=>n===u.value&&s(u.value),className:J("rounded-[6px] border p-1 text-left transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",n===u.value?"border-foreground ring-1 ring-foreground":"border-border hover:border-foreground/40"),children:[/* @__PURE__ */v(bp,{look:u.preview}),/* @__PURE__ */v("span",{className:"mt-1 block px-0.5 text-[11px] font-medium",children:u.label})]},u.value))}),/* @__PURE__ */v("p",{className:"mt-1.5 text-[11px] text-muted-foreground",children:r}),c]});}export{Up as $,jp as A,io as B,Jp as C,Hd as D,zd as E,lo as F,lc as G,uc as H,Op as I,dc as J,hc as K,_p as L,gc as M,nh as N,Ql as O,oh as P,Kn as Q,Os as R,Zp as S,Hp as T,Dp as U,ue as V,le as W,Mp as X,Vf as Y,Hf as Z,Qi as _,rh as a,qp as a0,co as a1,$e as a2,Se as a3,Xe as a4,W as a5,G as a6,St as a7,k as a8,Hi as a9,rn as aA,$p as aB,Uu as aC,Hu as aD,ca as aE,Is as aF,Ri as aG,Ai as aH,Kp as aI,Wi as aJ,bf as aK,wf as aL,eh as aM,th as aN,Pa as aO,We as aa,Mn as ab,er as ac,cr as ad,jd as ae,Rs as af,Qp as ag,zp as ah,Vd as ai,it as aj,Ee as ak,en as al,ct as am,tn as an,Jt as ao,Ho as ap,po as aq,ir as ar,Gn as as,Yt as at,Wo as au,or as av,zo as aw,Vs as ax,rr as ay,ar as az,vp as b,ge as c,Qf as d,Bp as e,Wp as f,Np as g,Vu as h,Fp as i,Ns as j,td as k,nd as l,xf as m,rd as n,kp as o,Ip as p,Lp as q,sf as r,Yu as s,Gp as t,Yp as u,Xp as v,zf as w,fa as x,Vp as y,Wd as z};
|