@peerbots/face 0.2.0 → 0.4.0
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/{VizijFaceView-DEMuLMAb.d.ts → VizijFaceView-BYbSP1sU.d.ts} +3 -0
- package/dist/chunk-5RYQRTO6.js +415 -0
- package/dist/chunk-5RYQRTO6.js.map +1 -0
- package/dist/{chunk-EAYBAWGE.js → chunk-7C57IP5B.js} +253 -11
- package/dist/chunk-7C57IP5B.js.map +1 -0
- package/dist/{chunk-ZEXL2QPJ.js → chunk-ZTKYMU5B.js} +4 -1
- package/dist/chunk-ZTKYMU5B.js.map +1 -0
- package/dist/index.cjs +677 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +123 -6
- package/dist/index.js +91 -45
- package/dist/index.js.map +1 -1
- package/dist/pixi.cjs +455 -59
- package/dist/pixi.cjs.map +1 -1
- package/dist/pixi.js +21 -44
- package/dist/pixi.js.map +1 -1
- package/dist/vizij.cjs +242 -10
- package/dist/vizij.cjs.map +1 -1
- package/dist/vizij.d.ts +1 -1
- package/dist/vizij.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-EAYBAWGE.js.map +0 -1
- package/dist/chunk-QGFC2GUD.js +0 -211
- package/dist/chunk-QGFC2GUD.js.map +0 -1
- package/dist/chunk-ZEXL2QPJ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,25 +2,36 @@ import {
|
|
|
2
2
|
EMOTION_EMOJIS,
|
|
3
3
|
EMOTION_EMOTICONS,
|
|
4
4
|
EMOTION_ICON_FILES,
|
|
5
|
+
FaceFullscreenContext,
|
|
6
|
+
addFullscreenChangeListener,
|
|
5
7
|
emotion_mapping,
|
|
8
|
+
exitNativeFullscreen,
|
|
6
9
|
getEmotionEyeSpritePaths,
|
|
7
10
|
getEmotionIconPath,
|
|
11
|
+
getFullscreenElement,
|
|
12
|
+
isNativeFullscreenSupported,
|
|
13
|
+
requestNativeFullscreen,
|
|
14
|
+
useFaceFullscreenContext,
|
|
15
|
+
useFullscreen,
|
|
8
16
|
useMessageVisualState
|
|
9
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5RYQRTO6.js";
|
|
10
18
|
import {
|
|
11
19
|
DEFAULT_FACE_UI_LABELS,
|
|
12
20
|
resolveFaceUiLabels
|
|
13
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZTKYMU5B.js";
|
|
14
22
|
import {
|
|
15
23
|
AudioAnalyzer,
|
|
24
|
+
AudioManager,
|
|
16
25
|
CONNECTION_FACE_MESSAGE,
|
|
17
26
|
DEFAULT_FACE_MESSAGE,
|
|
18
27
|
FaceStoreContext,
|
|
19
28
|
FaceStoreProvider,
|
|
20
29
|
PEERBOTS_COLORS,
|
|
21
30
|
PEERBOTS_EMOTIONS,
|
|
31
|
+
SILENT_WAV_DATA_URI,
|
|
22
32
|
TtsAudioCache,
|
|
23
33
|
audioAnalyzer,
|
|
34
|
+
audioManager,
|
|
24
35
|
availableFaces,
|
|
25
36
|
blobToArrayBuffer,
|
|
26
37
|
buildTtsCacheKey,
|
|
@@ -52,6 +63,8 @@ import {
|
|
|
52
63
|
hexToRgba,
|
|
53
64
|
includedVizijFaces,
|
|
54
65
|
interpolateColor,
|
|
66
|
+
isIOSDevice,
|
|
67
|
+
isMobileSafari,
|
|
55
68
|
mapVisemeToVizijTarget,
|
|
56
69
|
mergeFaceSettings,
|
|
57
70
|
normalizeAssetBaseUrl,
|
|
@@ -64,7 +77,7 @@ import {
|
|
|
64
77
|
stopNativeSpeechSynthesis,
|
|
65
78
|
useFaceStore,
|
|
66
79
|
useFaceStoreInstance
|
|
67
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-7C57IP5B.js";
|
|
68
81
|
|
|
69
82
|
// #style-inject:#style-inject
|
|
70
83
|
function styleInject(css, { insertAt } = {}) {
|
|
@@ -89,7 +102,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
89
102
|
}
|
|
90
103
|
|
|
91
104
|
// src/styles/index.css
|
|
92
|
-
styleInject('/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --pbf-font-sans:\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n "Noto Sans",\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n --pbf-font-mono:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n --pbf-color-green-400: oklch(79.2% 0.209 151.711);\n --pbf-color-green-500: oklch(72.3% 0.219 149.579);\n --pbf-color-emerald-600: oklch(59.6% 0.145 163.225);\n --pbf-color-teal-700: oklch(51.1% 0.096 186.391);\n --pbf-color-sky-50: oklch(97.7% 0.013 236.62);\n --pbf-color-blue-500: oklch(62.3% 0.214 259.815);\n --pbf-color-blue-600: oklch(54.6% 0.245 262.881);\n --pbf-color-slate-50: oklch(98.4% 0.003 247.858);\n --pbf-color-slate-100: oklch(96.8% 0.007 247.896);\n --pbf-color-slate-300: oklch(86.9% 0.022 252.894);\n --pbf-color-slate-400: oklch(70.4% 0.04 256.788);\n --pbf-color-slate-600: oklch(44.6% 0.043 257.281);\n --pbf-color-slate-700: oklch(37.2% 0.044 257.287);\n --pbf-color-slate-800: oklch(27.9% 0.041 260.031);\n --pbf-color-slate-900: oklch(20.8% 0.042 265.755);\n --pbf-color-gray-50: oklch(98.5% 0.002 247.839);\n --pbf-color-gray-100: oklch(96.7% 0.003 264.542);\n --pbf-color-gray-200: oklch(92.8% 0.006 264.531);\n --pbf-color-gray-500: oklch(55.1% 0.027 264.364);\n --pbf-color-black: #000;\n --pbf-color-white: #fff;\n --pbf-spacing: 0.25rem;\n --pbf-container-lg: 32rem;\n --pbf-container-xl: 36rem;\n --pbf-text-xs: 0.75rem;\n --pbf-text-xs--line-height: calc(1 / 0.75);\n --pbf-text-sm: 0.875rem;\n --pbf-text-sm--line-height: calc(1.25 / 0.875);\n --pbf-text-lg: 1.125rem;\n --pbf-text-lg--line-height: calc(1.75 / 1.125);\n --pbf-text-2xl: 1.5rem;\n --pbf-text-2xl--line-height: calc(2 / 1.5);\n --pbf-text-4xl: 2.25rem;\n --pbf-text-4xl--line-height: calc(2.5 / 2.25);\n --pbf-font-weight-medium: 500;\n --pbf-font-weight-semibold: 600;\n --pbf-font-weight-bold: 700;\n --pbf-tracking-tight: -0.025em;\n --pbf-tracking-wide: 0.025em;\n --pbf-tracking-wider: 0.05em;\n --pbf-leading-tight: 1.25;\n --pbf-radius-md: 0.375rem;\n --pbf-radius-lg: 0.5rem;\n --pbf-ease-out: cubic-bezier(0, 0, 0.2, 1);\n --pbf-animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n --pbf-default-transition-duration: 150ms;\n --pbf-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --pbf-default-font-family: var(--pbf-font-sans);\n --pbf-default-mono-font-family: var(--pbf-font-mono);\n }\n}\n@layer base {\n *,\n ::after,\n ::before,\n ::backdrop,\n ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html,\n :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--pbf-default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");\n font-feature-settings: var(--pbf-default-font-feature-settings, normal);\n font-variation-settings: var(--pbf-default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b,\n strong {\n font-weight: bolder;\n }\n code,\n kbd,\n samp,\n pre {\n font-family: var(--pbf-default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);\n font-feature-settings: var(--pbf-default-mono-font-feature-settings, normal);\n font-variation-settings: var(--pbf-default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring:where(:not(iframe)) {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol,\n ul,\n menu {\n list-style: none;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n button,\n input,\n select,\n optgroup,\n textarea,\n ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit,\n ::-webkit-datetime-edit-year-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-hour-field,\n ::-webkit-datetime-edit-minute-field,\n ::-webkit-datetime-edit-second-field,\n ::-webkit-datetime-edit-millisecond-field,\n ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button,\n input:where([type=button], [type=reset], [type=submit]),\n ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=until-found])) {\n display: none !important;\n }\n}\n@layer utilities {\n .pbf\\:pointer-events-none {\n pointer-events: none;\n }\n .pbf\\:absolute {\n position: absolute;\n }\n .pbf\\:fixed {\n position: fixed;\n }\n .pbf\\:relative {\n position: relative;\n }\n .pbf\\:top-1\\/3 {\n top: calc(1 / 3 * 100%);\n }\n .pbf\\:top-4 {\n top: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:left-1\\/2 {\n left: calc(1 / 2 * 100%);\n }\n .pbf\\:z-50 {\n z-index: 50;\n }\n .pbf\\:m-4 {\n margin: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:my-2 {\n margin-block: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:mt-1 {\n margin-top: var(--pbf-spacing);\n }\n .pbf\\:mt-2 {\n margin-top: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:mt-4 {\n margin-top: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:mt-48 {\n margin-top: calc(var(--pbf-spacing) * 48);\n }\n .pbf\\:mb-0 {\n margin-bottom: 0px;\n }\n .pbf\\:mb-1 {\n margin-bottom: var(--pbf-spacing);\n }\n .pbf\\:mb-1\\.5 {\n margin-bottom: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:mb-2 {\n margin-bottom: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:block {\n display: block;\n }\n .pbf\\:flex {\n display: flex;\n }\n .pbf\\:grid {\n display: grid;\n }\n .pbf\\:inline-flex {\n display: inline-flex;\n }\n .pbf\\:h-2 {\n height: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:h-3 {\n height: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:h-3\\.5 {\n height: calc(var(--pbf-spacing) * 3.5);\n }\n .pbf\\:h-4 {\n height: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:h-5 {\n height: calc(var(--pbf-spacing) * 5);\n }\n .pbf\\:h-6 {\n height: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:h-8 {\n height: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:h-16 {\n height: calc(var(--pbf-spacing) * 16);\n }\n .pbf\\:h-20 {\n height: calc(var(--pbf-spacing) * 20);\n }\n .pbf\\:h-full {\n height: 100%;\n }\n .pbf\\:max-h-32 {\n max-height: calc(var(--pbf-spacing) * 32);\n }\n .pbf\\:\\!w-auto {\n width: auto !important;\n }\n .pbf\\:w-2 {\n width: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:w-3 {\n width: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:w-3\\.5 {\n width: calc(var(--pbf-spacing) * 3.5);\n }\n .pbf\\:w-5 {\n width: calc(var(--pbf-spacing) * 5);\n }\n .pbf\\:w-8 {\n width: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:w-14 {\n width: calc(var(--pbf-spacing) * 14);\n }\n .pbf\\:w-16 {\n width: calc(var(--pbf-spacing) * 16);\n }\n .pbf\\:w-20 {\n width: calc(var(--pbf-spacing) * 20);\n }\n .pbf\\:w-24 {\n width: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:w-\\[80\\%\\] {\n width: 80%;\n }\n .pbf\\:w-full {\n width: 100%;\n }\n .pbf\\:max-w-lg {\n max-width: var(--pbf-container-lg);\n }\n .pbf\\:max-w-xl {\n max-width: var(--pbf-container-xl);\n }\n .pbf\\:min-w-0 {\n min-width: 0px;\n }\n .pbf\\:min-w-\\[260px\\] {\n min-width: 260px;\n }\n .pbf\\:min-w-fit {\n min-width: fit-content;\n }\n .pbf\\:flex-1 {\n flex: 1;\n }\n .pbf\\:shrink-0 {\n flex-shrink: 0;\n }\n .pbf\\:-translate-x-1\\/2 {\n --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .pbf\\:rotate-0 {\n rotate: 0deg;\n }\n .pbf\\:rotate-90 {\n rotate: 90deg;\n }\n .pbf\\:rotate-180 {\n rotate: 180deg;\n }\n .pbf\\:rotate-270 {\n rotate: 270deg;\n }\n .pbf\\:animate-ping {\n animation: var(--pbf-animate-ping);\n }\n .pbf\\:cursor-pointer {\n cursor: pointer;\n }\n .pbf\\:grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n }\n .pbf\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .pbf\\:flex-col {\n flex-direction: column;\n }\n .pbf\\:flex-row {\n flex-direction: row;\n }\n .pbf\\:flex-wrap {\n flex-wrap: wrap;\n }\n .pbf\\:items-center {\n align-items: center;\n }\n .pbf\\:items-start {\n align-items: flex-start;\n }\n .pbf\\:justify-around {\n justify-content: space-around;\n }\n .pbf\\:justify-between {\n justify-content: space-between;\n }\n .pbf\\:justify-center {\n justify-content: center;\n }\n .pbf\\:gap-0\\.5 {\n gap: calc(var(--pbf-spacing) * 0.5);\n }\n .pbf\\:gap-1 {\n gap: var(--pbf-spacing);\n }\n .pbf\\:gap-1\\.5 {\n gap: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:gap-2 {\n gap: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:gap-3 {\n gap: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:gap-4 {\n gap: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:gap-8 {\n gap: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:gap-16 {\n gap: calc(var(--pbf-spacing) * 16);\n }\n :where(.pbf\\:space-y-3 > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--pbf-spacing) * 3) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--pbf-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n }\n :where(.pbf\\:space-y-4 > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--pbf-spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--pbf-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n .pbf\\:gap-x-4 {\n column-gap: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:gap-y-2 {\n row-gap: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:overflow-hidden {\n overflow: hidden;\n }\n .pbf\\:overflow-y-auto {\n overflow-y: auto;\n }\n .pbf\\:rounded {\n border-radius: 0.25rem;\n }\n .pbf\\:rounded-full {\n border-radius: calc(infinity * 1px);\n }\n .pbf\\:rounded-lg {\n border-radius: var(--pbf-radius-lg);\n }\n .pbf\\:rounded-r-md {\n border-top-right-radius: var(--pbf-radius-md);\n border-bottom-right-radius: var(--pbf-radius-md);\n }\n .pbf\\:rounded-b-full {\n border-bottom-right-radius: calc(infinity * 1px);\n border-bottom-left-radius: calc(infinity * 1px);\n }\n .pbf\\:border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .pbf\\:border-t {\n border-top-style: var(--tw-border-style);\n border-top-width: 1px;\n }\n .pbf\\:border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n }\n .pbf\\:border-l-2 {\n border-left-style: var(--tw-border-style);\n border-left-width: 2px;\n }\n .pbf\\:border-gray-100 {\n border-color: var(--pbf-color-gray-100);\n }\n .pbf\\:border-gray-200 {\n border-color: var(--pbf-color-gray-200);\n }\n .pbf\\:border-teal-700\\/30 {\n border-color: var(--pbf-color-teal-700);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--pbf-color-teal-700) 30%, transparent);\n }\n }\n .pbf\\:bg-black {\n background-color: var(--pbf-color-black);\n }\n .pbf\\:bg-blue-500 {\n background-color: var(--pbf-color-blue-500);\n }\n .pbf\\:bg-emerald-600 {\n background-color: var(--pbf-color-emerald-600);\n }\n .pbf\\:bg-gray-50 {\n background-color: var(--pbf-color-gray-50);\n }\n .pbf\\:bg-gray-200 {\n background-color: var(--pbf-color-gray-200);\n }\n .pbf\\:bg-green-400 {\n background-color: var(--pbf-color-green-400);\n }\n .pbf\\:bg-green-500 {\n background-color: var(--pbf-color-green-500);\n }\n .pbf\\:bg-sky-50 {\n background-color: var(--pbf-color-sky-50);\n }\n .pbf\\:bg-slate-50 {\n background-color: var(--pbf-color-slate-50);\n }\n .pbf\\:bg-slate-100 {\n background-color: var(--pbf-color-slate-100);\n }\n .pbf\\:bg-slate-300 {\n background-color: var(--pbf-color-slate-300);\n }\n .pbf\\:bg-slate-400 {\n background-color: var(--pbf-color-slate-400);\n }\n .pbf\\:bg-slate-900 {\n background-color: var(--pbf-color-slate-900);\n }\n .pbf\\:bg-white {\n background-color: var(--pbf-color-white);\n }\n .pbf\\:object-contain {\n object-fit: contain;\n }\n .pbf\\:p-1\\.5 {\n padding: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:p-2 {\n padding: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:p-4 {\n padding: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:p-6 {\n padding: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:p-8 {\n padding: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:px-3 {\n padding-inline: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:px-4 {\n padding-inline: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:px-12 {\n padding-inline: calc(var(--pbf-spacing) * 12);\n }\n .pbf\\:py-0\\.5 {\n padding-block: calc(var(--pbf-spacing) * 0.5);\n }\n .pbf\\:py-1\\.5 {\n padding-block: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:py-2 {\n padding-block: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:pt-1 {\n padding-top: var(--pbf-spacing);\n }\n .pbf\\:pt-2 {\n padding-top: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:text-center {\n text-align: center;\n }\n .pbf\\:font-mono {\n font-family: var(--pbf-font-mono);\n }\n .pbf\\:font-sans {\n font-family: var(--pbf-font-sans);\n }\n .pbf\\:text-2xl {\n font-size: var(--pbf-text-2xl);\n line-height: var(--tw-leading, var(--pbf-text-2xl--line-height));\n }\n .pbf\\:text-4xl {\n font-size: var(--pbf-text-4xl);\n line-height: var(--tw-leading, var(--pbf-text-4xl--line-height));\n }\n .pbf\\:text-lg {\n font-size: var(--pbf-text-lg);\n line-height: var(--tw-leading, var(--pbf-text-lg--line-height));\n }\n .pbf\\:text-sm {\n font-size: var(--pbf-text-sm);\n line-height: var(--tw-leading, var(--pbf-text-sm--line-height));\n }\n .pbf\\:text-xs {\n font-size: var(--pbf-text-xs);\n line-height: var(--tw-leading, var(--pbf-text-xs--line-height));\n }\n .pbf\\:text-\\[9px\\] {\n font-size: 9px;\n }\n .pbf\\:text-\\[11px\\] {\n font-size: 11px;\n }\n .pbf\\:leading-6 {\n --tw-leading: calc(var(--pbf-spacing) * 6);\n line-height: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:leading-tight {\n --tw-leading: var(--pbf-leading-tight);\n line-height: var(--pbf-leading-tight);\n }\n .pbf\\:font-bold {\n --tw-font-weight: var(--pbf-font-weight-bold);\n font-weight: var(--pbf-font-weight-bold);\n }\n .pbf\\:font-medium {\n --tw-font-weight: var(--pbf-font-weight-medium);\n font-weight: var(--pbf-font-weight-medium);\n }\n .pbf\\:font-semibold {\n --tw-font-weight: var(--pbf-font-weight-semibold);\n font-weight: var(--pbf-font-weight-semibold);\n }\n .pbf\\:tracking-\\[0\\.2em\\] {\n --tw-tracking: 0.2em;\n letter-spacing: 0.2em;\n }\n .pbf\\:tracking-tight {\n --tw-tracking: var(--pbf-tracking-tight);\n letter-spacing: var(--pbf-tracking-tight);\n }\n .pbf\\:tracking-wide {\n --tw-tracking: var(--pbf-tracking-wide);\n letter-spacing: var(--pbf-tracking-wide);\n }\n .pbf\\:tracking-wider {\n --tw-tracking: var(--pbf-tracking-wider);\n letter-spacing: var(--pbf-tracking-wider);\n }\n .pbf\\:break-words {\n overflow-wrap: break-word;\n }\n .pbf\\:whitespace-nowrap {\n white-space: nowrap;\n }\n .pbf\\:text-blue-600 {\n color: var(--pbf-color-blue-600);\n }\n .pbf\\:text-gray-500 {\n color: var(--pbf-color-gray-500);\n }\n .pbf\\:text-slate-600 {\n color: var(--pbf-color-slate-600);\n }\n .pbf\\:text-slate-700 {\n color: var(--pbf-color-slate-700);\n }\n .pbf\\:text-slate-800 {\n color: var(--pbf-color-slate-800);\n }\n .pbf\\:text-slate-900 {\n color: var(--pbf-color-slate-900);\n }\n .pbf\\:text-teal-700 {\n color: var(--pbf-color-teal-700);\n }\n .pbf\\:text-white {\n color: var(--pbf-color-white);\n }\n .pbf\\:uppercase {\n text-transform: uppercase;\n }\n .pbf\\:italic {\n font-style: italic;\n }\n .pbf\\:opacity-75 {\n opacity: 75%;\n }\n .pbf\\:opacity-90 {\n opacity: 90%;\n }\n .pbf\\:shadow-lg {\n --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .pbf\\:shadow-xl {\n --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .pbf\\:transition-all {\n transition-property: all;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n outline-color,\n text-decoration-color,\n fill,\n stroke,\n --tw-gradient-from,\n --tw-gradient-via,\n --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:transition-transform {\n transition-property:\n transform,\n translate,\n scale,\n rotate;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:duration-75 {\n --tw-duration: 75ms;\n transition-duration: 75ms;\n }\n .pbf\\:duration-150 {\n --tw-duration: 150ms;\n transition-duration: 150ms;\n }\n .pbf\\:duration-200 {\n --tw-duration: 200ms;\n transition-duration: 200ms;\n }\n .pbf\\:duration-300 {\n --tw-duration: 300ms;\n transition-duration: 300ms;\n }\n .pbf\\:ease-out {\n --tw-ease: var(--pbf-ease-out);\n transition-timing-function: var(--pbf-ease-out);\n }\n .pbf\\:select-none {\n -webkit-user-select: none;\n user-select: none;\n }\n @media (hover: hover) {\n :is(:where(.pbf\\:group):hover .pbf\\:group-hover\\:scale-110) {\n --tw-scale-x: 110%;\n --tw-scale-y: 110%;\n --tw-scale-z: 110%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n }\n }\n .pbf\\:last\\:border-0:last-child {\n border-style: var(--tw-border-style);\n border-width: 0px;\n }\n @media (hover: hover) {\n .pbf\\:hover\\:opacity-100:hover {\n opacity: 100%;\n }\n }\n .pbf\\:focus-visible\\:outline-none:focus-visible {\n --tw-outline-style: none;\n outline-style: none;\n }\n @media (width >= 48rem) {\n .pbf\\:md\\:h-12 {\n height: calc(var(--pbf-spacing) * 12);\n }\n .pbf\\:md\\:h-24 {\n height: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:md\\:h-28 {\n height: calc(var(--pbf-spacing) * 28);\n }\n .pbf\\:md\\:w-24 {\n width: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:md\\:w-28 {\n width: calc(var(--pbf-spacing) * 28);\n }\n .pbf\\:md\\:w-32 {\n width: calc(var(--pbf-spacing) * 32);\n }\n .pbf\\:md\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .pbf\\:md\\:gap-24 {\n gap: calc(var(--pbf-spacing) * 24);\n }\n }\n @media (width >= 64rem) {\n .pbf\\:lg\\:grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .pbf\\:lg\\:gap-6 {\n gap: calc(var(--pbf-spacing) * 6);\n }\n }\n .pbf\\:rtl\\:border-r-2:where(:dir(rtl), [dir=rtl], [dir=rtl] *) {\n border-right-style: var(--tw-border-style);\n border-right-width: 2px;\n }\n .pbf\\:rtl\\:border-l-0:where(:dir(rtl), [dir=rtl], [dir=rtl] *) {\n border-left-style: var(--tw-border-style);\n border-left-width: 0px;\n }\n}\n@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }\n@property --tw-leading { syntax: "*"; inherits: false; }\n@property --tw-font-weight { syntax: "*"; inherits: false; }\n@property --tw-tracking { syntax: "*"; inherits: false; }\n@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-ring-color { syntax: "*"; inherits: false; }\n@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-ring-color { syntax: "*"; inherits: false; }\n@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-ring-inset { syntax: "*"; inherits: false; }\n@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }\n@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }\n@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-duration { syntax: "*"; inherits: false; }\n@property --tw-ease { syntax: "*"; inherits: false; }\n@property --tw-scale-x { syntax: "*"; inherits: false; initial-value: 1; }\n@property --tw-scale-y { syntax: "*"; inherits: false; initial-value: 1; }\n@property --tw-scale-z { syntax: "*"; inherits: false; initial-value: 1; }\n@keyframes ping {\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *,\n ::before,\n ::after,\n ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-leading: initial;\n --tw-font-weight: initial;\n --tw-tracking: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-duration: initial;\n --tw-ease: initial;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-scale-z: 1;\n }\n }\n}\n', { insertAt: "top" });
|
|
105
|
+
styleInject('/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --pbf-font-sans:\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n "Noto Sans",\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n --pbf-font-mono:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n --pbf-color-green-400: oklch(79.2% 0.209 151.711);\n --pbf-color-green-500: oklch(72.3% 0.219 149.579);\n --pbf-color-emerald-600: oklch(59.6% 0.145 163.225);\n --pbf-color-teal-700: oklch(51.1% 0.096 186.391);\n --pbf-color-sky-50: oklch(97.7% 0.013 236.62);\n --pbf-color-blue-500: oklch(62.3% 0.214 259.815);\n --pbf-color-blue-600: oklch(54.6% 0.245 262.881);\n --pbf-color-slate-50: oklch(98.4% 0.003 247.858);\n --pbf-color-slate-100: oklch(96.8% 0.007 247.896);\n --pbf-color-slate-300: oklch(86.9% 0.022 252.894);\n --pbf-color-slate-400: oklch(70.4% 0.04 256.788);\n --pbf-color-slate-600: oklch(44.6% 0.043 257.281);\n --pbf-color-slate-700: oklch(37.2% 0.044 257.287);\n --pbf-color-slate-800: oklch(27.9% 0.041 260.031);\n --pbf-color-slate-900: oklch(20.8% 0.042 265.755);\n --pbf-color-gray-50: oklch(98.5% 0.002 247.839);\n --pbf-color-gray-100: oklch(96.7% 0.003 264.542);\n --pbf-color-gray-200: oklch(92.8% 0.006 264.531);\n --pbf-color-gray-500: oklch(55.1% 0.027 264.364);\n --pbf-color-black: #000;\n --pbf-color-white: #fff;\n --pbf-spacing: 0.25rem;\n --pbf-container-lg: 32rem;\n --pbf-container-xl: 36rem;\n --pbf-text-xs: 0.75rem;\n --pbf-text-xs--line-height: calc(1 / 0.75);\n --pbf-text-sm: 0.875rem;\n --pbf-text-sm--line-height: calc(1.25 / 0.875);\n --pbf-text-lg: 1.125rem;\n --pbf-text-lg--line-height: calc(1.75 / 1.125);\n --pbf-text-2xl: 1.5rem;\n --pbf-text-2xl--line-height: calc(2 / 1.5);\n --pbf-text-4xl: 2.25rem;\n --pbf-text-4xl--line-height: calc(2.5 / 2.25);\n --pbf-font-weight-medium: 500;\n --pbf-font-weight-semibold: 600;\n --pbf-font-weight-bold: 700;\n --pbf-tracking-tight: -0.025em;\n --pbf-tracking-wide: 0.025em;\n --pbf-tracking-wider: 0.05em;\n --pbf-leading-tight: 1.25;\n --pbf-radius-md: 0.375rem;\n --pbf-radius-lg: 0.5rem;\n --pbf-ease-out: cubic-bezier(0, 0, 0.2, 1);\n --pbf-animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;\n --pbf-blur-sm: 8px;\n --pbf-default-transition-duration: 150ms;\n --pbf-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --pbf-default-font-family: var(--pbf-font-sans);\n --pbf-default-mono-font-family: var(--pbf-font-mono);\n }\n}\n@layer base {\n *,\n ::after,\n ::before,\n ::backdrop,\n ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html,\n :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--pbf-default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");\n font-feature-settings: var(--pbf-default-font-feature-settings, normal);\n font-variation-settings: var(--pbf-default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b,\n strong {\n font-weight: bolder;\n }\n code,\n kbd,\n samp,\n pre {\n font-family: var(--pbf-default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);\n font-feature-settings: var(--pbf-default-mono-font-feature-settings, normal);\n font-variation-settings: var(--pbf-default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring:where(:not(iframe)) {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol,\n ul,\n menu {\n list-style: none;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n button,\n input,\n select,\n optgroup,\n textarea,\n ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit,\n ::-webkit-datetime-edit-year-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-hour-field,\n ::-webkit-datetime-edit-minute-field,\n ::-webkit-datetime-edit-second-field,\n ::-webkit-datetime-edit-millisecond-field,\n ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button,\n input:where([type=button], [type=reset], [type=submit]),\n ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=until-found])) {\n display: none !important;\n }\n}\n@layer utilities {\n .pbf\\:pointer-events-none {\n pointer-events: none;\n }\n .pbf\\:absolute {\n position: absolute;\n }\n .pbf\\:fixed {\n position: fixed;\n }\n .pbf\\:relative {\n position: relative;\n }\n .pbf\\:inset-0 {\n inset: 0px;\n }\n .pbf\\:top-1\\/3 {\n top: calc(1 / 3 * 100%);\n }\n .pbf\\:top-4 {\n top: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:left-1\\/2 {\n left: calc(1 / 2 * 100%);\n }\n .pbf\\:z-50 {\n z-index: 50;\n }\n .pbf\\:z-\\[9999\\] {\n z-index: 9999;\n }\n .pbf\\:m-4 {\n margin: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:my-2 {\n margin-block: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:mt-1 {\n margin-top: var(--pbf-spacing);\n }\n .pbf\\:mt-2 {\n margin-top: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:mt-4 {\n margin-top: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:mt-48 {\n margin-top: calc(var(--pbf-spacing) * 48);\n }\n .pbf\\:mb-0 {\n margin-bottom: 0px;\n }\n .pbf\\:mb-1 {\n margin-bottom: var(--pbf-spacing);\n }\n .pbf\\:mb-1\\.5 {\n margin-bottom: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:mb-2 {\n margin-bottom: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:block {\n display: block;\n }\n .pbf\\:flex {\n display: flex;\n }\n .pbf\\:grid {\n display: grid;\n }\n .pbf\\:inline-flex {\n display: inline-flex;\n }\n .pbf\\:h-2 {\n height: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:h-3 {\n height: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:h-3\\.5 {\n height: calc(var(--pbf-spacing) * 3.5);\n }\n .pbf\\:h-4 {\n height: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:h-5 {\n height: calc(var(--pbf-spacing) * 5);\n }\n .pbf\\:h-6 {\n height: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:h-8 {\n height: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:h-16 {\n height: calc(var(--pbf-spacing) * 16);\n }\n .pbf\\:h-20 {\n height: calc(var(--pbf-spacing) * 20);\n }\n .pbf\\:h-\\[100dvh\\] {\n height: 100dvh;\n }\n .pbf\\:h-full {\n height: 100%;\n }\n .pbf\\:max-h-32 {\n max-height: calc(var(--pbf-spacing) * 32);\n }\n .pbf\\:\\!w-auto {\n width: auto !important;\n }\n .pbf\\:w-2 {\n width: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:w-3 {\n width: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:w-3\\.5 {\n width: calc(var(--pbf-spacing) * 3.5);\n }\n .pbf\\:w-5 {\n width: calc(var(--pbf-spacing) * 5);\n }\n .pbf\\:w-8 {\n width: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:w-14 {\n width: calc(var(--pbf-spacing) * 14);\n }\n .pbf\\:w-16 {\n width: calc(var(--pbf-spacing) * 16);\n }\n .pbf\\:w-20 {\n width: calc(var(--pbf-spacing) * 20);\n }\n .pbf\\:w-24 {\n width: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:w-\\[80\\%\\] {\n width: 80%;\n }\n .pbf\\:w-full {\n width: 100%;\n }\n .pbf\\:w-screen {\n width: 100vw;\n }\n .pbf\\:max-w-lg {\n max-width: var(--pbf-container-lg);\n }\n .pbf\\:max-w-xl {\n max-width: var(--pbf-container-xl);\n }\n .pbf\\:min-w-0 {\n min-width: 0px;\n }\n .pbf\\:min-w-\\[260px\\] {\n min-width: 260px;\n }\n .pbf\\:min-w-fit {\n min-width: fit-content;\n }\n .pbf\\:flex-1 {\n flex: 1;\n }\n .pbf\\:shrink-0 {\n flex-shrink: 0;\n }\n .pbf\\:-translate-x-1\\/2 {\n --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .pbf\\:rotate-0 {\n rotate: 0deg;\n }\n .pbf\\:rotate-90 {\n rotate: 90deg;\n }\n .pbf\\:rotate-180 {\n rotate: 180deg;\n }\n .pbf\\:rotate-270 {\n rotate: 270deg;\n }\n .pbf\\:animate-ping {\n animation: var(--pbf-animate-ping);\n }\n .pbf\\:cursor-pointer {\n cursor: pointer;\n }\n .pbf\\:grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n }\n .pbf\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .pbf\\:flex-col {\n flex-direction: column;\n }\n .pbf\\:flex-row {\n flex-direction: row;\n }\n .pbf\\:flex-wrap {\n flex-wrap: wrap;\n }\n .pbf\\:items-center {\n align-items: center;\n }\n .pbf\\:items-start {\n align-items: flex-start;\n }\n .pbf\\:justify-around {\n justify-content: space-around;\n }\n .pbf\\:justify-between {\n justify-content: space-between;\n }\n .pbf\\:justify-center {\n justify-content: center;\n }\n .pbf\\:gap-0\\.5 {\n gap: calc(var(--pbf-spacing) * 0.5);\n }\n .pbf\\:gap-1 {\n gap: var(--pbf-spacing);\n }\n .pbf\\:gap-1\\.5 {\n gap: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:gap-2 {\n gap: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:gap-3 {\n gap: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:gap-4 {\n gap: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:gap-8 {\n gap: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:gap-16 {\n gap: calc(var(--pbf-spacing) * 16);\n }\n :where(.pbf\\:space-y-3 > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--pbf-spacing) * 3) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--pbf-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));\n }\n :where(.pbf\\:space-y-4 > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--pbf-spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--pbf-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n .pbf\\:gap-x-4 {\n column-gap: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:gap-y-2 {\n row-gap: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:overflow-hidden {\n overflow: hidden;\n }\n .pbf\\:overflow-y-auto {\n overflow-y: auto;\n }\n .pbf\\:rounded {\n border-radius: 0.25rem;\n }\n .pbf\\:rounded-full {\n border-radius: calc(infinity * 1px);\n }\n .pbf\\:rounded-lg {\n border-radius: var(--pbf-radius-lg);\n }\n .pbf\\:rounded-r-md {\n border-top-right-radius: var(--pbf-radius-md);\n border-bottom-right-radius: var(--pbf-radius-md);\n }\n .pbf\\:rounded-b-full {\n border-bottom-right-radius: calc(infinity * 1px);\n border-bottom-left-radius: calc(infinity * 1px);\n }\n .pbf\\:border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .pbf\\:border-t {\n border-top-style: var(--tw-border-style);\n border-top-width: 1px;\n }\n .pbf\\:border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n }\n .pbf\\:border-l-2 {\n border-left-style: var(--tw-border-style);\n border-left-width: 2px;\n }\n .pbf\\:border-gray-100 {\n border-color: var(--pbf-color-gray-100);\n }\n .pbf\\:border-gray-200 {\n border-color: var(--pbf-color-gray-200);\n }\n .pbf\\:border-teal-700\\/30 {\n border-color: var(--pbf-color-teal-700);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--pbf-color-teal-700) 30%, transparent);\n }\n }\n .pbf\\:border-white\\/20 {\n border-color: var(--pbf-color-white);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--pbf-color-white) 20%, transparent);\n }\n }\n .pbf\\:bg-black {\n background-color: var(--pbf-color-black);\n }\n .pbf\\:bg-blue-500 {\n background-color: var(--pbf-color-blue-500);\n }\n .pbf\\:bg-emerald-600 {\n background-color: var(--pbf-color-emerald-600);\n }\n .pbf\\:bg-gray-50 {\n background-color: var(--pbf-color-gray-50);\n }\n .pbf\\:bg-gray-200 {\n background-color: var(--pbf-color-gray-200);\n }\n .pbf\\:bg-green-400 {\n background-color: var(--pbf-color-green-400);\n }\n .pbf\\:bg-green-500 {\n background-color: var(--pbf-color-green-500);\n }\n .pbf\\:bg-sky-50 {\n background-color: var(--pbf-color-sky-50);\n }\n .pbf\\:bg-slate-50 {\n background-color: var(--pbf-color-slate-50);\n }\n .pbf\\:bg-slate-100 {\n background-color: var(--pbf-color-slate-100);\n }\n .pbf\\:bg-slate-300 {\n background-color: var(--pbf-color-slate-300);\n }\n .pbf\\:bg-slate-400 {\n background-color: var(--pbf-color-slate-400);\n }\n .pbf\\:bg-slate-900 {\n background-color: var(--pbf-color-slate-900);\n }\n .pbf\\:bg-white {\n background-color: var(--pbf-color-white);\n }\n .pbf\\:object-contain {\n object-fit: contain;\n }\n .pbf\\:p-1\\.5 {\n padding: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:p-2 {\n padding: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:p-4 {\n padding: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:p-6 {\n padding: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:p-8 {\n padding: calc(var(--pbf-spacing) * 8);\n }\n .pbf\\:px-3 {\n padding-inline: calc(var(--pbf-spacing) * 3);\n }\n .pbf\\:px-4 {\n padding-inline: calc(var(--pbf-spacing) * 4);\n }\n .pbf\\:px-12 {\n padding-inline: calc(var(--pbf-spacing) * 12);\n }\n .pbf\\:py-0\\.5 {\n padding-block: calc(var(--pbf-spacing) * 0.5);\n }\n .pbf\\:py-1\\.5 {\n padding-block: calc(var(--pbf-spacing) * 1.5);\n }\n .pbf\\:py-2 {\n padding-block: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:pt-1 {\n padding-top: var(--pbf-spacing);\n }\n .pbf\\:pt-2 {\n padding-top: calc(var(--pbf-spacing) * 2);\n }\n .pbf\\:text-center {\n text-align: center;\n }\n .pbf\\:font-mono {\n font-family: var(--pbf-font-mono);\n }\n .pbf\\:font-sans {\n font-family: var(--pbf-font-sans);\n }\n .pbf\\:text-2xl {\n font-size: var(--pbf-text-2xl);\n line-height: var(--tw-leading, var(--pbf-text-2xl--line-height));\n }\n .pbf\\:text-4xl {\n font-size: var(--pbf-text-4xl);\n line-height: var(--tw-leading, var(--pbf-text-4xl--line-height));\n }\n .pbf\\:text-lg {\n font-size: var(--pbf-text-lg);\n line-height: var(--tw-leading, var(--pbf-text-lg--line-height));\n }\n .pbf\\:text-sm {\n font-size: var(--pbf-text-sm);\n line-height: var(--tw-leading, var(--pbf-text-sm--line-height));\n }\n .pbf\\:text-xs {\n font-size: var(--pbf-text-xs);\n line-height: var(--tw-leading, var(--pbf-text-xs--line-height));\n }\n .pbf\\:text-\\[9px\\] {\n font-size: 9px;\n }\n .pbf\\:text-\\[11px\\] {\n font-size: 11px;\n }\n .pbf\\:leading-6 {\n --tw-leading: calc(var(--pbf-spacing) * 6);\n line-height: calc(var(--pbf-spacing) * 6);\n }\n .pbf\\:leading-tight {\n --tw-leading: var(--pbf-leading-tight);\n line-height: var(--pbf-leading-tight);\n }\n .pbf\\:font-bold {\n --tw-font-weight: var(--pbf-font-weight-bold);\n font-weight: var(--pbf-font-weight-bold);\n }\n .pbf\\:font-medium {\n --tw-font-weight: var(--pbf-font-weight-medium);\n font-weight: var(--pbf-font-weight-medium);\n }\n .pbf\\:font-semibold {\n --tw-font-weight: var(--pbf-font-weight-semibold);\n font-weight: var(--pbf-font-weight-semibold);\n }\n .pbf\\:tracking-\\[0\\.2em\\] {\n --tw-tracking: 0.2em;\n letter-spacing: 0.2em;\n }\n .pbf\\:tracking-tight {\n --tw-tracking: var(--pbf-tracking-tight);\n letter-spacing: var(--pbf-tracking-tight);\n }\n .pbf\\:tracking-wide {\n --tw-tracking: var(--pbf-tracking-wide);\n letter-spacing: var(--pbf-tracking-wide);\n }\n .pbf\\:tracking-wider {\n --tw-tracking: var(--pbf-tracking-wider);\n letter-spacing: var(--pbf-tracking-wider);\n }\n .pbf\\:break-words {\n overflow-wrap: break-word;\n }\n .pbf\\:whitespace-nowrap {\n white-space: nowrap;\n }\n .pbf\\:text-blue-600 {\n color: var(--pbf-color-blue-600);\n }\n .pbf\\:text-gray-500 {\n color: var(--pbf-color-gray-500);\n }\n .pbf\\:text-slate-600 {\n color: var(--pbf-color-slate-600);\n }\n .pbf\\:text-slate-700 {\n color: var(--pbf-color-slate-700);\n }\n .pbf\\:text-slate-800 {\n color: var(--pbf-color-slate-800);\n }\n .pbf\\:text-slate-900 {\n color: var(--pbf-color-slate-900);\n }\n .pbf\\:text-teal-700 {\n color: var(--pbf-color-teal-700);\n }\n .pbf\\:text-white {\n color: var(--pbf-color-white);\n }\n .pbf\\:uppercase {\n text-transform: uppercase;\n }\n .pbf\\:italic {\n font-style: italic;\n }\n .pbf\\:opacity-75 {\n opacity: 75%;\n }\n .pbf\\:opacity-90 {\n opacity: 90%;\n }\n .pbf\\:shadow-lg {\n --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .pbf\\:shadow-xl {\n --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .pbf\\:backdrop-blur-sm {\n --tw-backdrop-blur: blur(var(--pbf-blur-sm));\n -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );\n backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );\n }\n .pbf\\:transition-all {\n transition-property: all;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n outline-color,\n text-decoration-color,\n fill,\n stroke,\n --tw-gradient-from,\n --tw-gradient-via,\n --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:transition-transform {\n transition-property:\n transform,\n translate,\n scale,\n rotate;\n transition-timing-function: var(--tw-ease, var(--pbf-default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--pbf-default-transition-duration));\n }\n .pbf\\:duration-75 {\n --tw-duration: 75ms;\n transition-duration: 75ms;\n }\n .pbf\\:duration-150 {\n --tw-duration: 150ms;\n transition-duration: 150ms;\n }\n .pbf\\:duration-200 {\n --tw-duration: 200ms;\n transition-duration: 200ms;\n }\n .pbf\\:duration-300 {\n --tw-duration: 300ms;\n transition-duration: 300ms;\n }\n .pbf\\:ease-out {\n --tw-ease: var(--pbf-ease-out);\n transition-timing-function: var(--pbf-ease-out);\n }\n .pbf\\:select-none {\n -webkit-user-select: none;\n user-select: none;\n }\n @media (hover: hover) {\n :is(:where(.pbf\\:group):hover .pbf\\:group-hover\\:scale-110) {\n --tw-scale-x: 110%;\n --tw-scale-y: 110%;\n --tw-scale-z: 110%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n }\n }\n .pbf\\:last\\:border-0:last-child {\n border-style: var(--tw-border-style);\n border-width: 0px;\n }\n @media (hover: hover) {\n .pbf\\:hover\\:scale-105:hover {\n --tw-scale-x: 105%;\n --tw-scale-y: 105%;\n --tw-scale-z: 105%;\n scale: var(--tw-scale-x) var(--tw-scale-y);\n }\n .pbf\\:hover\\:opacity-100:hover {\n opacity: 100%;\n }\n }\n .pbf\\:focus-visible\\:outline-none:focus-visible {\n --tw-outline-style: none;\n outline-style: none;\n }\n @media (width >= 48rem) {\n .pbf\\:md\\:h-12 {\n height: calc(var(--pbf-spacing) * 12);\n }\n .pbf\\:md\\:h-24 {\n height: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:md\\:h-28 {\n height: calc(var(--pbf-spacing) * 28);\n }\n .pbf\\:md\\:w-24 {\n width: calc(var(--pbf-spacing) * 24);\n }\n .pbf\\:md\\:w-28 {\n width: calc(var(--pbf-spacing) * 28);\n }\n .pbf\\:md\\:w-32 {\n width: calc(var(--pbf-spacing) * 32);\n }\n .pbf\\:md\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .pbf\\:md\\:gap-24 {\n gap: calc(var(--pbf-spacing) * 24);\n }\n }\n @media (width >= 64rem) {\n .pbf\\:lg\\:grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .pbf\\:lg\\:gap-6 {\n gap: calc(var(--pbf-spacing) * 6);\n }\n }\n .pbf\\:rtl\\:border-r-2:where(:dir(rtl), [dir=rtl], [dir=rtl] *) {\n border-right-style: var(--tw-border-style);\n border-right-width: 2px;\n }\n .pbf\\:rtl\\:border-l-0:where(:dir(rtl), [dir=rtl], [dir=rtl] *) {\n border-left-style: var(--tw-border-style);\n border-left-width: 0px;\n }\n}\n@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }\n@property --tw-leading { syntax: "*"; inherits: false; }\n@property --tw-font-weight { syntax: "*"; inherits: false; }\n@property --tw-tracking { syntax: "*"; inherits: false; }\n@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-ring-color { syntax: "*"; inherits: false; }\n@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-ring-color { syntax: "*"; inherits: false; }\n@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-ring-inset { syntax: "*"; inherits: false; }\n@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }\n@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }\n@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-backdrop-blur { syntax: "*"; inherits: false; }\n@property --tw-backdrop-brightness { syntax: "*"; inherits: false; }\n@property --tw-backdrop-contrast { syntax: "*"; inherits: false; }\n@property --tw-backdrop-grayscale { syntax: "*"; inherits: false; }\n@property --tw-backdrop-hue-rotate { syntax: "*"; inherits: false; }\n@property --tw-backdrop-invert { syntax: "*"; inherits: false; }\n@property --tw-backdrop-opacity { syntax: "*"; inherits: false; }\n@property --tw-backdrop-saturate { syntax: "*"; inherits: false; }\n@property --tw-backdrop-sepia { syntax: "*"; inherits: false; }\n@property --tw-duration { syntax: "*"; inherits: false; }\n@property --tw-ease { syntax: "*"; inherits: false; }\n@property --tw-scale-x { syntax: "*"; inherits: false; initial-value: 1; }\n@property --tw-scale-y { syntax: "*"; inherits: false; initial-value: 1; }\n@property --tw-scale-z { syntax: "*"; inherits: false; initial-value: 1; }\n@keyframes ping {\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *,\n ::before,\n ::after,\n ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-leading: initial;\n --tw-font-weight: initial;\n --tw-tracking: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-backdrop-blur: initial;\n --tw-backdrop-brightness: initial;\n --tw-backdrop-contrast: initial;\n --tw-backdrop-grayscale: initial;\n --tw-backdrop-hue-rotate: initial;\n --tw-backdrop-invert: initial;\n --tw-backdrop-opacity: initial;\n --tw-backdrop-saturate: initial;\n --tw-backdrop-sepia: initial;\n --tw-duration: initial;\n --tw-ease: initial;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-scale-z: 1;\n }\n }\n}\n', { insertAt: "top" });
|
|
93
106
|
|
|
94
107
|
// src/types/renderer.ts
|
|
95
108
|
var FaceRendererRegistry = class {
|
|
@@ -152,7 +165,7 @@ function isHeadlessOrTestEnvironment() {
|
|
|
152
165
|
}
|
|
153
166
|
|
|
154
167
|
// src/components/FaceView.tsx
|
|
155
|
-
import { lazy, Suspense } from "react";
|
|
168
|
+
import { lazy, Suspense, useRef } from "react";
|
|
156
169
|
|
|
157
170
|
// src/helpers/cn.ts
|
|
158
171
|
import { clsx } from "clsx";
|
|
@@ -213,22 +226,30 @@ function FaceCaption() {
|
|
|
213
226
|
const offsetX = settings.captions.offset?.x ?? 0;
|
|
214
227
|
const offsetY = settings.captions.offset?.y ?? 0;
|
|
215
228
|
const fontSize = settings.captions.fontSize ?? 32;
|
|
229
|
+
const captionStyle = settings.captions.style ?? "pill";
|
|
230
|
+
const visualStyle = captionStyle === "outline" ? {
|
|
231
|
+
color: "#ffffff",
|
|
232
|
+
textShadow: "2px 2px 2px #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000"
|
|
233
|
+
} : {
|
|
234
|
+
color: "#ffffff",
|
|
235
|
+
backgroundColor: "rgba(15, 23, 42, 0.75)",
|
|
236
|
+
padding: "0.25rem 0.75rem",
|
|
237
|
+
borderRadius: "0.75rem"
|
|
238
|
+
};
|
|
216
239
|
return /* @__PURE__ */ jsx(
|
|
217
240
|
"div",
|
|
218
241
|
{
|
|
219
242
|
role: "status",
|
|
220
243
|
"aria-live": "polite",
|
|
221
244
|
"data-testid": "face-caption",
|
|
245
|
+
"data-caption-style": captionStyle,
|
|
222
246
|
className: "pbf:absolute pbf:text-center pbf:w-[80%] pbf:pointer-events-none pbf:z-50 pbf:font-sans",
|
|
223
247
|
style: {
|
|
224
248
|
top: `calc(${offsetY}% + 80%)`,
|
|
225
249
|
left: `calc(50% + ${offsetX}px)`,
|
|
226
250
|
transform: "translate(-50%, -50%)",
|
|
227
251
|
fontSize: `${fontSize}px`,
|
|
228
|
-
|
|
229
|
-
backgroundColor: "rgba(15, 23, 42, 0.75)",
|
|
230
|
-
padding: "0.25rem 0.75rem",
|
|
231
|
-
borderRadius: "0.75rem"
|
|
252
|
+
...visualStyle
|
|
232
253
|
},
|
|
233
254
|
children: displayText
|
|
234
255
|
}
|
|
@@ -426,8 +447,11 @@ function FaceView({
|
|
|
426
447
|
showStaticSprites = true,
|
|
427
448
|
registry = defaultFaceRendererRegistry,
|
|
428
449
|
labels,
|
|
429
|
-
className
|
|
450
|
+
className,
|
|
451
|
+
onFullscreenChange
|
|
430
452
|
} = {}) {
|
|
453
|
+
const containerRef = useRef(null);
|
|
454
|
+
const fullscreenState = useFullscreen(containerRef, { onFullscreenChange });
|
|
431
455
|
const uiLabels = resolveFaceUiLabels(labels);
|
|
432
456
|
const selectedFace = useFaceStore((state) => state.selectedFace);
|
|
433
457
|
const strategy = selectedFace ? registry.get(selectedFace.kind) : void 0;
|
|
@@ -448,12 +472,15 @@ function FaceView({
|
|
|
448
472
|
}
|
|
449
473
|
return /* @__PURE__ */ jsx4(Suspense, { fallback: /* @__PURE__ */ jsx4(FaceViewSkeleton, { label: uiLabels.loading }), children: strategy.render({ face: selectedFace, isPreview, frozen }) });
|
|
450
474
|
};
|
|
451
|
-
return /* @__PURE__ */ jsxs3(
|
|
475
|
+
return /* @__PURE__ */ jsx4(FaceFullscreenContext.Provider, { value: fullscreenState, children: /* @__PURE__ */ jsxs3(
|
|
452
476
|
"div",
|
|
453
477
|
{
|
|
478
|
+
ref: containerRef,
|
|
454
479
|
id: "face-view-container",
|
|
480
|
+
"data-pseudo-fullscreen": fullscreenState.isPseudoFullscreen ? "true" : void 0,
|
|
455
481
|
className: faceCn(
|
|
456
482
|
"pbf:relative pbf:w-full pbf:h-full pbf:text-center pbf:overflow-hidden",
|
|
483
|
+
fullscreenState.isPseudoFullscreen && "pbf:fixed pbf:inset-0 pbf:z-[9999] pbf:w-screen pbf:h-[100dvh]",
|
|
457
484
|
className
|
|
458
485
|
),
|
|
459
486
|
children: [
|
|
@@ -461,7 +488,7 @@ function FaceView({
|
|
|
461
488
|
!isPreview && /* @__PURE__ */ jsx4(FaceCaption, {})
|
|
462
489
|
]
|
|
463
490
|
}
|
|
464
|
-
);
|
|
491
|
+
) });
|
|
465
492
|
}
|
|
466
493
|
|
|
467
494
|
// src/components/FaceAudioPrompt.tsx
|
|
@@ -476,21 +503,11 @@ function FaceAudioPrompt({
|
|
|
476
503
|
}) {
|
|
477
504
|
const uiLabels = resolveFaceUiLabels(labels);
|
|
478
505
|
const speechAllowed = useFaceStore((state) => state.speechAllowed);
|
|
479
|
-
const
|
|
480
|
-
const refreshVoices = useFaceStore((state) => state.refreshVoices);
|
|
506
|
+
const unlockAudio = useFaceStore((state) => state.unlockAudio);
|
|
481
507
|
const handleEnableAudio = useCallback(() => {
|
|
482
|
-
|
|
483
|
-
if (typeof window !== "undefined" && "speechSynthesis" in window && typeof SpeechSynthesisUtterance !== "undefined") {
|
|
484
|
-
const utterance = new SpeechSynthesisUtterance(" ");
|
|
485
|
-
window.speechSynthesis.speak(utterance);
|
|
486
|
-
}
|
|
487
|
-
} catch (err) {
|
|
488
|
-
console.warn("Could not prime speechSynthesis:", err);
|
|
489
|
-
}
|
|
490
|
-
setSpeechAllowed(true);
|
|
491
|
-
void refreshVoices();
|
|
508
|
+
void unlockAudio();
|
|
492
509
|
onEnable?.();
|
|
493
|
-
}, [
|
|
510
|
+
}, [unlockAudio, onEnable]);
|
|
494
511
|
if (speechAllowed) {
|
|
495
512
|
return null;
|
|
496
513
|
}
|
|
@@ -503,11 +520,10 @@ function FaceAudioPrompt({
|
|
|
503
520
|
children: /* @__PURE__ */ jsxs4(
|
|
504
521
|
Button,
|
|
505
522
|
{
|
|
506
|
-
variant: "
|
|
507
|
-
color: "darkblue",
|
|
523
|
+
variant: "primary",
|
|
508
524
|
size: "sm",
|
|
509
525
|
onClick: handleEnableAudio,
|
|
510
|
-
className: "pbf:shadow-lg pbf:px-4 pbf:py-2 pbf:flex pbf:items-center pbf:gap-2 pbf:rounded-full pbf:cursor-pointer",
|
|
526
|
+
className: "pbf:shadow-lg pbf:border pbf:border-white/20 pbf:backdrop-blur-sm pbf:px-4 pbf:py-2 pbf:flex pbf:items-center pbf:gap-2 pbf:rounded-full pbf:cursor-pointer pbf:hover:scale-105 pbf:transition-transform",
|
|
511
527
|
"aria-label": uiLabels.tapToEnableSound,
|
|
512
528
|
children: [
|
|
513
529
|
/* @__PURE__ */ jsx5(Icon, { name: "play", size: "sm", className: "pbf:w-3.5 pbf:h-3.5" }),
|
|
@@ -712,7 +728,6 @@ function CharacterSelectionControls({
|
|
|
712
728
|
const faceSettings = useFaceStore((state) => state.faceSettings);
|
|
713
729
|
const availableFaces2 = useFaceStore((state) => state.availableFaces);
|
|
714
730
|
const availableVoices = useFaceStore((state) => state.availableVoices);
|
|
715
|
-
const refreshVoices = useFaceStore((state) => state.refreshVoices);
|
|
716
731
|
const selectedFace = useFaceStore((state) => state.selectedFace);
|
|
717
732
|
const getSelectedVoice = useFaceStore((state) => state.getSelectedVoice);
|
|
718
733
|
const selectedVoiceUri = useFaceStore((state) => state.selectedVoiceUri);
|
|
@@ -721,7 +736,7 @@ function CharacterSelectionControls({
|
|
|
721
736
|
const setFace = useFaceStore((state) => state.setFace);
|
|
722
737
|
const setFaceSettings = useFaceStore((state) => state.setFaceSettings);
|
|
723
738
|
const speechAllowed = useFaceStore((state) => state.speechAllowed);
|
|
724
|
-
const
|
|
739
|
+
const unlockAudio = useFaceStore((state) => state.unlockAudio);
|
|
725
740
|
const currentVoiceUri = selectedVoiceUri || getSelectedVoice()?.voiceURI || "";
|
|
726
741
|
const selectableFaces = enableVizij ? availableFaces2 : availableFaces2.filter((f) => f.kind !== "Vizij");
|
|
727
742
|
const caps = getFaceCapabilities(selectedFace);
|
|
@@ -730,20 +745,10 @@ function CharacterSelectionControls({
|
|
|
730
745
|
/* @__PURE__ */ jsx9("div", { className: "pbf:flex", children: /* @__PURE__ */ jsx9(
|
|
731
746
|
Button2,
|
|
732
747
|
{
|
|
733
|
-
variant: "
|
|
734
|
-
color: "darkblue",
|
|
748
|
+
variant: "primary",
|
|
735
749
|
size: "sm",
|
|
736
750
|
onClick: () => {
|
|
737
|
-
|
|
738
|
-
if (typeof window !== "undefined" && "speechSynthesis" in window && typeof SpeechSynthesisUtterance !== "undefined") {
|
|
739
|
-
const utterance = new SpeechSynthesisUtterance(" ");
|
|
740
|
-
window.speechSynthesis.speak(utterance);
|
|
741
|
-
}
|
|
742
|
-
} catch (err) {
|
|
743
|
-
console.warn("SpeechSynthesis prime warning:", err);
|
|
744
|
-
}
|
|
745
|
-
setSpeechAllowed(true);
|
|
746
|
-
void refreshVoices();
|
|
751
|
+
void unlockAudio();
|
|
747
752
|
},
|
|
748
753
|
children: uiLabels.allowSpeech
|
|
749
754
|
}
|
|
@@ -1166,7 +1171,8 @@ import {
|
|
|
1166
1171
|
SliderWithNumberField as SliderWithNumberField3,
|
|
1167
1172
|
SettingsPanel as SettingsPanel3,
|
|
1168
1173
|
Separator as Separator3,
|
|
1169
|
-
Switch as Switch2
|
|
1174
|
+
Switch as Switch2,
|
|
1175
|
+
TabRadio as TabRadio2
|
|
1170
1176
|
} from "@peerbots/core";
|
|
1171
1177
|
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1172
1178
|
function FaceBehaviorControls({
|
|
@@ -1273,6 +1279,33 @@ function FaceBehaviorControls({
|
|
|
1273
1279
|
}
|
|
1274
1280
|
),
|
|
1275
1281
|
faceSettings.captions?.enabled && /* @__PURE__ */ jsxs10("div", { className: "pbf:flex pbf:flex-col pbf:gap-4 pbf:mt-1", children: [
|
|
1282
|
+
/* @__PURE__ */ jsx11(
|
|
1283
|
+
Field4,
|
|
1284
|
+
{
|
|
1285
|
+
label: uiLabels.captionStyle,
|
|
1286
|
+
labelPlacement: "left",
|
|
1287
|
+
className: "pbf:flex-row pbf:items-center pbf:justify-between",
|
|
1288
|
+
children: /* @__PURE__ */ jsx11(
|
|
1289
|
+
TabRadio2,
|
|
1290
|
+
{
|
|
1291
|
+
"aria-label": uiLabels.captionStyle,
|
|
1292
|
+
options: [
|
|
1293
|
+
{ value: "pill", label: uiLabels.captionStylePill },
|
|
1294
|
+
{ value: "outline", label: uiLabels.captionStyleOutline }
|
|
1295
|
+
],
|
|
1296
|
+
value: faceSettings.captions?.style ?? "pill",
|
|
1297
|
+
onChange: (val) => {
|
|
1298
|
+
setFaceSettings({
|
|
1299
|
+
captions: {
|
|
1300
|
+
...faceSettings.captions,
|
|
1301
|
+
style: val || "pill"
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
)
|
|
1307
|
+
}
|
|
1308
|
+
),
|
|
1276
1309
|
/* @__PURE__ */ jsx11(FieldGroup, { label: uiLabels.fontSize, children: /* @__PURE__ */ jsx11(
|
|
1277
1310
|
SliderWithNumberField3,
|
|
1278
1311
|
{
|
|
@@ -1364,7 +1397,7 @@ function FaceSettingsPanel({
|
|
|
1364
1397
|
var FaceSettingsControl = FaceSettingsPanel;
|
|
1365
1398
|
|
|
1366
1399
|
// src/components/FaceTester.tsx
|
|
1367
|
-
import { useRef } from "react";
|
|
1400
|
+
import { useRef as useRef2 } from "react";
|
|
1368
1401
|
import {
|
|
1369
1402
|
Button as Button4,
|
|
1370
1403
|
EmotionSelector,
|
|
@@ -1374,7 +1407,7 @@ import {
|
|
|
1374
1407
|
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1375
1408
|
function FaceTester({ labels, onSendMessage } = {}) {
|
|
1376
1409
|
const uiLabels = resolveFaceUiLabels(labels);
|
|
1377
|
-
const textToSpeak =
|
|
1410
|
+
const textToSpeak = useRef2(null);
|
|
1378
1411
|
const lastMessage = useFaceStore((state) => state.lastMessage);
|
|
1379
1412
|
const updateLastMessage = useFaceStore((state) => state.updateLastMessage);
|
|
1380
1413
|
const dispatchMessage = (next) => {
|
|
@@ -1571,6 +1604,7 @@ function AmplitudeGraph() {
|
|
|
1571
1604
|
export {
|
|
1572
1605
|
AmplitudeGraph,
|
|
1573
1606
|
AudioAnalyzer,
|
|
1607
|
+
AudioManager,
|
|
1574
1608
|
CONNECTION_FACE_MESSAGE,
|
|
1575
1609
|
CharacterSelectionControls,
|
|
1576
1610
|
CharacterSelectionSection,
|
|
@@ -1583,6 +1617,7 @@ export {
|
|
|
1583
1617
|
FaceAudioPrompt,
|
|
1584
1618
|
FaceBehaviorControls,
|
|
1585
1619
|
FaceCaption,
|
|
1620
|
+
FaceFullscreenContext,
|
|
1586
1621
|
FacePositioningControls,
|
|
1587
1622
|
FacePositioningSection,
|
|
1588
1623
|
FaceRendererRegistry,
|
|
@@ -1598,10 +1633,13 @@ export {
|
|
|
1598
1633
|
PEERBOTS_COLORS,
|
|
1599
1634
|
PEERBOTS_EMOTIONS,
|
|
1600
1635
|
PoweredByVizij,
|
|
1636
|
+
SILENT_WAV_DATA_URI,
|
|
1601
1637
|
StaticFaceFallback,
|
|
1602
1638
|
TtsAudioCache,
|
|
1603
1639
|
VoiceSelector,
|
|
1640
|
+
addFullscreenChangeListener,
|
|
1604
1641
|
audioAnalyzer,
|
|
1642
|
+
audioManager,
|
|
1605
1643
|
availableFaces,
|
|
1606
1644
|
blobToArrayBuffer,
|
|
1607
1645
|
buildTtsCacheKey,
|
|
@@ -1623,6 +1661,7 @@ export {
|
|
|
1623
1661
|
defaultTtsAudioCache,
|
|
1624
1662
|
emotion_mapping,
|
|
1625
1663
|
estimateVisemesFromText,
|
|
1664
|
+
exitNativeFullscreen,
|
|
1626
1665
|
findMatchingVoice,
|
|
1627
1666
|
font_color_mapping,
|
|
1628
1667
|
formatRbga,
|
|
@@ -1631,6 +1670,7 @@ export {
|
|
|
1631
1670
|
getEmotionEyeSpritePaths,
|
|
1632
1671
|
getEmotionIconPath,
|
|
1633
1672
|
getFaceCapabilities,
|
|
1673
|
+
getFullscreenElement,
|
|
1634
1674
|
getGlobalFaceStore,
|
|
1635
1675
|
getLanguageName,
|
|
1636
1676
|
globalFaceStore,
|
|
@@ -1639,6 +1679,9 @@ export {
|
|
|
1639
1679
|
includedVizijFaces,
|
|
1640
1680
|
interpolateColor,
|
|
1641
1681
|
isHeadlessOrTestEnvironment,
|
|
1682
|
+
isIOSDevice,
|
|
1683
|
+
isMobileSafari,
|
|
1684
|
+
isNativeFullscreenSupported,
|
|
1642
1685
|
isWebGLAvailable,
|
|
1643
1686
|
mapVisemeToVizijTarget,
|
|
1644
1687
|
mergeFaceSettings,
|
|
@@ -1647,13 +1690,16 @@ export {
|
|
|
1647
1690
|
pollyVisemeToVizijPath,
|
|
1648
1691
|
possiblePollyVisemes,
|
|
1649
1692
|
rbgToRgba,
|
|
1693
|
+
requestNativeFullscreen,
|
|
1650
1694
|
resolveFaceUiLabels,
|
|
1651
1695
|
rgbToRgba,
|
|
1652
1696
|
rgbaToHex,
|
|
1653
1697
|
setGlobalFaceStore,
|
|
1654
1698
|
stopNativeSpeechSynthesis,
|
|
1699
|
+
useFaceFullscreenContext,
|
|
1655
1700
|
useFaceStore,
|
|
1656
1701
|
useFaceStoreInstance,
|
|
1702
|
+
useFullscreen,
|
|
1657
1703
|
useMessageVisualState,
|
|
1658
1704
|
vizijFaceRendererStrategy
|
|
1659
1705
|
};
|