tybotflow-widget 0.1.2 → 0.1.3
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/index.es.js +190 -199
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1045,7 +1045,7 @@ function XL() {
|
|
|
1045
1045
|
function ft(r) {
|
|
1046
1046
|
me.current === r && (te(ce), te(me)), Ae.current === r && (te(Ae), Do._currentValue = Y);
|
|
1047
1047
|
}
|
|
1048
|
-
var It = Object.prototype.hasOwnProperty, Et = e.unstable_scheduleCallback, jt = e.unstable_cancelCallback,
|
|
1048
|
+
var It = Object.prototype.hasOwnProperty, Et = e.unstable_scheduleCallback, jt = e.unstable_cancelCallback, ge = e.unstable_shouldYield, Ee = e.unstable_requestPaint, Oe = e.unstable_now, De = e.unstable_getCurrentPriorityLevel, ke = e.unstable_ImmediatePriority, Le = e.unstable_UserBlockingPriority, Ze = e.unstable_NormalPriority, at = e.unstable_LowPriority, qe = e.unstable_IdlePriority, Ie = e.log, Fe = e.unstable_setDisableYieldValue, J = null, ie = null;
|
|
1049
1049
|
function pe(r) {
|
|
1050
1050
|
if (typeof Ie == "function" && Fe(r), ie && typeof ie.setStrictMode == "function")
|
|
1051
1051
|
try {
|
|
@@ -1493,7 +1493,7 @@ function XL() {
|
|
|
1493
1493
|
return "";
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function fe(r) {
|
|
1497
1497
|
try {
|
|
1498
1498
|
var i = "";
|
|
1499
1499
|
do
|
|
@@ -1506,7 +1506,7 @@ Error generating stack: ` + s.message + `
|
|
|
1506
1506
|
` + s.stack;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function he(r) {
|
|
1510
1510
|
switch (typeof r) {
|
|
1511
1511
|
case "bigint":
|
|
1512
1512
|
case "boolean":
|
|
@@ -1582,13 +1582,13 @@ Error generating stack: ` + s.message + `
|
|
|
1582
1582
|
);
|
|
1583
1583
|
}
|
|
1584
1584
|
function Pu(r, i, s, c, g, b, T, k) {
|
|
1585
|
-
r.name = "", T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" ? r.type = T : r.removeAttribute("type"), i != null ? T === "number" ? (i === 0 && r.value === "" || r.value != i) && (r.value = "" +
|
|
1585
|
+
r.name = "", T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" ? r.type = T : r.removeAttribute("type"), i != null ? T === "number" ? (i === 0 && r.value === "" || r.value != i) && (r.value = "" + he(i)) : r.value !== "" + he(i) && (r.value = "" + he(i)) : T !== "submit" && T !== "reset" || r.removeAttribute("value"), i != null ? zu(r, T, he(i)) : s != null ? zu(r, T, he(s)) : c != null && r.removeAttribute("value"), g == null && b != null && (r.defaultChecked = !!b), g != null && (r.checked = g && typeof g != "function" && typeof g != "symbol"), k != null && typeof k != "function" && typeof k != "symbol" && typeof k != "boolean" ? r.name = "" + he(k) : r.removeAttribute("name");
|
|
1586
1586
|
}
|
|
1587
1587
|
function NE(r, i, s, c, g, b, T, k) {
|
|
1588
1588
|
if (b != null && typeof b != "function" && typeof b != "symbol" && typeof b != "boolean" && (r.type = b), i != null || s != null) {
|
|
1589
1589
|
if (!(b !== "submit" && b !== "reset" || i != null))
|
|
1590
1590
|
return;
|
|
1591
|
-
s = s != null ? "" +
|
|
1591
|
+
s = s != null ? "" + he(s) : "", i = i != null ? "" + he(i) : s, k || i === r.value || (r.value = i), r.defaultValue = i;
|
|
1592
1592
|
}
|
|
1593
1593
|
c = c ?? g, c = typeof c != "function" && typeof c != "symbol" && !!c, r.checked = k ? r.checked : !!c, r.defaultChecked = !!c, T != null && typeof T != "function" && typeof T != "symbol" && typeof T != "boolean" && (r.name = T);
|
|
1594
1594
|
}
|
|
@@ -1603,7 +1603,7 @@ Error generating stack: ` + s.message + `
|
|
|
1603
1603
|
for (s = 0; s < r.length; s++)
|
|
1604
1604
|
g = i.hasOwnProperty("$" + r[s].value), r[s].selected !== g && (r[s].selected = g), g && c && (r[s].defaultSelected = !0);
|
|
1605
1605
|
} else {
|
|
1606
|
-
for (s = "" +
|
|
1606
|
+
for (s = "" + he(s), i = null, g = 0; g < r.length; g++) {
|
|
1607
1607
|
if (r[g].value === s) {
|
|
1608
1608
|
r[g].selected = !0, c && (r[g].defaultSelected = !0);
|
|
1609
1609
|
return;
|
|
@@ -1614,11 +1614,11 @@ Error generating stack: ` + s.message + `
|
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
function kE(r, i, s) {
|
|
1617
|
-
if (i != null && (i = "" +
|
|
1617
|
+
if (i != null && (i = "" + he(i), i !== r.value && (r.value = i), s == null)) {
|
|
1618
1618
|
r.defaultValue !== i && (r.defaultValue = i);
|
|
1619
1619
|
return;
|
|
1620
1620
|
}
|
|
1621
|
-
r.defaultValue = s != null ? "" +
|
|
1621
|
+
r.defaultValue = s != null ? "" + he(s) : "";
|
|
1622
1622
|
}
|
|
1623
1623
|
function OE(r, i, s, c) {
|
|
1624
1624
|
if (i == null) {
|
|
@@ -1632,7 +1632,7 @@ Error generating stack: ` + s.message + `
|
|
|
1632
1632
|
}
|
|
1633
1633
|
s == null && (s = ""), i = s;
|
|
1634
1634
|
}
|
|
1635
|
-
s =
|
|
1635
|
+
s = he(i), r.defaultValue = s, c = r.textContent, c === s && c !== "" && c !== null && (r.value = c);
|
|
1636
1636
|
}
|
|
1637
1637
|
function Ya(r, i) {
|
|
1638
1638
|
if (i) {
|
|
@@ -2330,13 +2330,13 @@ Error generating stack: ` + s.message + `
|
|
|
2330
2330
|
return s !== void 0 ? s : (i = {
|
|
2331
2331
|
value: r,
|
|
2332
2332
|
source: i,
|
|
2333
|
-
stack:
|
|
2333
|
+
stack: fe(i)
|
|
2334
2334
|
}, uv.set(r, i), i);
|
|
2335
2335
|
}
|
|
2336
2336
|
return {
|
|
2337
2337
|
value: r,
|
|
2338
2338
|
source: i,
|
|
2339
|
-
stack:
|
|
2339
|
+
stack: fe(i)
|
|
2340
2340
|
};
|
|
2341
2341
|
}
|
|
2342
2342
|
var Nn = [], Ja = 0, ac = 0;
|
|
@@ -7388,7 +7388,7 @@ Error generating stack: ` + s.message + `
|
|
|
7388
7388
|
return pr = va = null, q.H = c, q.A = g, $e = s, Ge !== null ? 0 : (st = null, Ye = 0, Ds(), St);
|
|
7389
7389
|
}
|
|
7390
7390
|
function ZD() {
|
|
7391
|
-
for (; Ge !== null && !
|
|
7391
|
+
for (; Ge !== null && !ge(); )
|
|
7392
7392
|
uA(Ge);
|
|
7393
7393
|
}
|
|
7394
7394
|
function uA(r) {
|
|
@@ -10250,7 +10250,7 @@ function KL() {
|
|
|
10250
10250
|
return e(), Hd.exports = XL(), Hd.exports;
|
|
10251
10251
|
}
|
|
10252
10252
|
var QL = KL();
|
|
10253
|
-
const ZL = /* @__PURE__ */ Fa(QL), JL = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-left-1{left:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.bottom-\\[10px\\]{bottom:10px}.left-0{left:0}.left-1{left:.25rem}.left-16{left:4rem}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-11{right:2.75rem}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-3{top:.75rem}.z-10{z-index:10}.z-50{z-index:50}.z-\\[998\\]{z-index:998}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-9{margin-left:-2.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1{width:.25rem;height:.25rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-7{width:1.75rem;height:1.75rem}.size-8{width:2rem;height:2rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.min-h-10{min-height:2.5rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\\[88\\%\\]{width:88%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.min-w-0{min-width:0px}.min-w-48{min-width:12rem}.min-w-full{min-width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\\[fadeIn_0\\.25s_ease\\]{animation:fadeIn .25s ease}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-dashed{border-style:dashed}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:#ffffff1a}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-80{--tw-bg-opacity: .8}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-900{--tw-gradient-from: #0f172a var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-purple-900{--tw-gradient-to: rgb(88 28 135 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #581c87 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-slate-900{--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-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);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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}:host{all:initial;color:#fff;font-family:Nunito,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased;font-weight:400;line-height:normal;line-height:1.25rem}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-right-3:after{content:var(--tw-content);right:-.75rem}.after\\:top-1\\/2:after{content:var(--tw-content);top:50%}.after\\:h-2:after{content:var(--tw-content);height:.5rem}.after\\:w-2:after{content:var(--tw-content);width:.5rem}.after\\:-translate-y-1\\/2:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{content:var(--tw-content);transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{content:var(--tw-content);transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.after\\:animate-bounce:after{content:var(--tw-content);animation:bounce 1s infinite}.after\\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:bg-red-500:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\\:bg-white\\/20:hover{background-color:#fff3}.hover\\:bg-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity: .5}.hover\\:bg-opacity-70:hover{--tw-bg-opacity: .7}.hover\\:bg-opacity-80:hover{--tw-bg-opacity: .8}.hover\\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 640px){.sm\\:bottom-3{bottom:.75rem}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-2{width:.5rem;height:.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:size-5{width:1.25rem;height:1.25rem}.sm\\:size-7{width:1.75rem;height:1.75rem}.sm\\:size-8{width:2rem;height:2rem}.sm\\:size-9{width:2.25rem;height:2.25rem}.sm\\:min-h-12{min-height:3rem}.sm\\:flex-row{flex-direction:row}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\\:pt-4{padding-top:1rem}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:text-xs{font-size:.75rem;line-height:1rem}}';
|
|
10253
|
+
const ZL = /* @__PURE__ */ Fa(QL), JL = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-left-1{left:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.bottom-\\[10px\\]{bottom:10px}.left-0{left:0}.left-1{left:.25rem}.left-16{left:4rem}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-11{right:2.75rem}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-3{top:.75rem}.z-10{z-index:10}.z-50{z-index:50}.z-\\[998\\]{z-index:998}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-9{margin-left:-2.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1{width:.25rem;height:.25rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-7{width:1.75rem;height:1.75rem}.size-8{width:2rem;height:2rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.min-h-10{min-height:2.5rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\\[88\\%\\]{width:88%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.min-w-0{min-width:0px}.min-w-48{min-width:12rem}.min-w-full{min-width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\\[fadeIn_0\\.25s_ease\\]{animation:fadeIn .25s ease}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-dashed{border-style:dashed}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:#ffffff1a}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-80{--tw-bg-opacity: .8}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-900{--tw-gradient-from: #0f172a var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-purple-900{--tw-gradient-to: rgb(88 28 135 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #581c87 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-slate-900{--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-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);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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}:host{all:initial;color:#fff;font-family:Nunito,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased;font-weight:400;line-height:normal;line-height:1.25rem}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-right-3:after{content:var(--tw-content);right:-.75rem}.after\\:top-1\\/2:after{content:var(--tw-content);top:50%}.after\\:h-2:after{content:var(--tw-content);height:.5rem}.after\\:w-2:after{content:var(--tw-content);width:.5rem}.after\\:-translate-y-1\\/2:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{content:var(--tw-content);transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{content:var(--tw-content);transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.after\\:animate-bounce:after{content:var(--tw-content);animation:bounce 1s infinite}.after\\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:bg-red-500:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.hover\\:bg-white\\/20:hover{background-color:#fff3}.hover\\:bg-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity: .5}.hover\\:bg-opacity-70:hover{--tw-bg-opacity: .7}.hover\\:bg-opacity-80:hover{--tw-bg-opacity: .8}.hover\\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@media (min-width: 640px){.sm\\:bottom-3{bottom:.75rem}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-2{width:.5rem;height:.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:size-5{width:1.25rem;height:1.25rem}.sm\\:size-7{width:1.75rem;height:1.75rem}.sm\\:size-8{width:2rem;height:2rem}.sm\\:size-9{width:2.25rem;height:2.25rem}.sm\\:min-h-12{min-height:3rem}.sm\\:flex-row{flex-direction:row}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.sm\\:pt-4{padding-top:1rem}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:text-xs{font-size:.75rem;line-height:1rem}}';
|
|
10254
10254
|
var ye = lu();
|
|
10255
10255
|
const na = /* @__PURE__ */ Fa(ye);
|
|
10256
10256
|
function q0(e, t) {
|
|
@@ -16005,7 +16005,7 @@ function yU(e) {
|
|
|
16005
16005
|
autolink: l(ke),
|
|
16006
16006
|
autolinkProtocol: z,
|
|
16007
16007
|
autolinkEmail: z,
|
|
16008
|
-
atxHeading: l(
|
|
16008
|
+
atxHeading: l(ge),
|
|
16009
16009
|
blockQuote: l(Je),
|
|
16010
16010
|
characterEscape: z,
|
|
16011
16011
|
characterReference: z,
|
|
@@ -16040,7 +16040,7 @@ function yU(e) {
|
|
|
16040
16040
|
referenceString: u,
|
|
16041
16041
|
resourceDestinationString: u,
|
|
16042
16042
|
resourceTitleString: u,
|
|
16043
|
-
setextHeading: l(
|
|
16043
|
+
setextHeading: l(ge),
|
|
16044
16044
|
strong: l(qe),
|
|
16045
16045
|
thematicBreak: l(Fe)
|
|
16046
16046
|
},
|
|
@@ -16437,7 +16437,7 @@ function yU(e) {
|
|
|
16437
16437
|
children: []
|
|
16438
16438
|
};
|
|
16439
16439
|
}
|
|
16440
|
-
function
|
|
16440
|
+
function ge() {
|
|
16441
16441
|
return {
|
|
16442
16442
|
type: "heading",
|
|
16443
16443
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -23220,17 +23220,17 @@ const GO = (e, t, n, a, o) => {
|
|
|
23220
23220
|
if (w.numberOfInputs === 0 && w.numberOfOutputs === 0)
|
|
23221
23221
|
throw p();
|
|
23222
23222
|
const R = Array.isArray(w.outputChannelCount) ? w.outputChannelCount : Array.from(w.outputChannelCount);
|
|
23223
|
-
if (R.some((
|
|
23223
|
+
if (R.some((ge) => ge < 1))
|
|
23224
23224
|
throw p();
|
|
23225
23225
|
if (R.length !== w.numberOfOutputs)
|
|
23226
23226
|
throw t();
|
|
23227
23227
|
if (w.channelCountMode !== "explicit")
|
|
23228
23228
|
throw p();
|
|
23229
|
-
const C = w.channelCount * w.numberOfInputs, N = R.reduce((
|
|
23229
|
+
const C = w.channelCount * w.numberOfInputs, N = R.reduce((ge, Ee) => ge + Ee, 0), D = A.parameterDescriptors === void 0 ? 0 : A.parameterDescriptors.length;
|
|
23230
23230
|
if (C + D > 6 || N > 6)
|
|
23231
23231
|
throw p();
|
|
23232
23232
|
const O = new MessageChannel(), x = [], L = [];
|
|
23233
|
-
for (let
|
|
23233
|
+
for (let ge = 0; ge < w.numberOfInputs; ge += 1)
|
|
23234
23234
|
x.push(u(E, {
|
|
23235
23235
|
channelCount: w.channelCount,
|
|
23236
23236
|
channelCountMode: w.channelCountMode,
|
|
@@ -23244,16 +23244,16 @@ const GO = (e, t, n, a, o) => {
|
|
|
23244
23244
|
}));
|
|
23245
23245
|
const P = [];
|
|
23246
23246
|
if (A.parameterDescriptors !== void 0)
|
|
23247
|
-
for (const { defaultValue:
|
|
23247
|
+
for (const { defaultValue: ge, maxValue: Ee, minValue: Oe, name: De } of A.parameterDescriptors) {
|
|
23248
23248
|
const ke = l(E, {
|
|
23249
23249
|
channelCount: 1,
|
|
23250
23250
|
channelCountMode: "explicit",
|
|
23251
23251
|
channelInterpretation: "discrete",
|
|
23252
|
-
offset: w.parameterData[De] !== void 0 ? w.parameterData[De] :
|
|
23252
|
+
offset: w.parameterData[De] !== void 0 ? w.parameterData[De] : ge === void 0 ? 0 : ge
|
|
23253
23253
|
});
|
|
23254
23254
|
Object.defineProperties(ke.offset, {
|
|
23255
23255
|
defaultValue: {
|
|
23256
|
-
get: () =>
|
|
23256
|
+
get: () => ge === void 0 ? 0 : ge
|
|
23257
23257
|
},
|
|
23258
23258
|
maxValue: {
|
|
23259
23259
|
get: () => Ee === void 0 ? Ru : Ee
|
|
@@ -23280,21 +23280,21 @@ const GO = (e, t, n, a, o) => {
|
|
|
23280
23280
|
channelInterpretation: "discrete",
|
|
23281
23281
|
numberOfOutputs: Math.max(1, N)
|
|
23282
23282
|
}), $ = [];
|
|
23283
|
-
for (let
|
|
23283
|
+
for (let ge = 0; ge < w.numberOfOutputs; ge += 1)
|
|
23284
23284
|
$.push(a(E, {
|
|
23285
23285
|
channelCount: 1,
|
|
23286
23286
|
channelCountMode: "explicit",
|
|
23287
23287
|
channelInterpretation: "speakers",
|
|
23288
|
-
numberOfInputs: R[
|
|
23288
|
+
numberOfInputs: R[ge]
|
|
23289
23289
|
}));
|
|
23290
|
-
for (let
|
|
23291
|
-
x[
|
|
23290
|
+
for (let ge = 0; ge < w.numberOfInputs; ge += 1) {
|
|
23291
|
+
x[ge].connect(L[ge]);
|
|
23292
23292
|
for (let Ee = 0; Ee < w.channelCount; Ee += 1)
|
|
23293
|
-
L[
|
|
23293
|
+
L[ge].connect(z, Ee, ge * w.channelCount + Ee);
|
|
23294
23294
|
}
|
|
23295
|
-
const ne = new HO(A.parameterDescriptors === void 0 ? [] : A.parameterDescriptors.map(({ name:
|
|
23295
|
+
const ne = new HO(A.parameterDescriptors === void 0 ? [] : A.parameterDescriptors.map(({ name: ge }, Ee) => {
|
|
23296
23296
|
const Oe = P[Ee];
|
|
23297
|
-
return Oe.connect(z, 0, C + Ee), Oe.start(0), [
|
|
23297
|
+
return Oe.connect(z, 0, C + Ee), Oe.start(0), [ge, Oe.offset];
|
|
23298
23298
|
}));
|
|
23299
23299
|
z.connect(H);
|
|
23300
23300
|
let re = w.channelInterpretation, q = null;
|
|
@@ -23305,22 +23305,22 @@ const GO = (e, t, n, a, o) => {
|
|
|
23305
23305
|
get channelCount() {
|
|
23306
23306
|
return w.channelCount;
|
|
23307
23307
|
},
|
|
23308
|
-
set channelCount(
|
|
23308
|
+
set channelCount(ge) {
|
|
23309
23309
|
throw n();
|
|
23310
23310
|
},
|
|
23311
23311
|
get channelCountMode() {
|
|
23312
23312
|
return w.channelCountMode;
|
|
23313
23313
|
},
|
|
23314
|
-
set channelCountMode(
|
|
23314
|
+
set channelCountMode(ge) {
|
|
23315
23315
|
throw n();
|
|
23316
23316
|
},
|
|
23317
23317
|
get channelInterpretation() {
|
|
23318
23318
|
return re;
|
|
23319
23319
|
},
|
|
23320
|
-
set channelInterpretation(
|
|
23320
|
+
set channelInterpretation(ge) {
|
|
23321
23321
|
for (const Ee of x)
|
|
23322
|
-
Ee.channelInterpretation =
|
|
23323
|
-
re =
|
|
23322
|
+
Ee.channelInterpretation = ge;
|
|
23323
|
+
re = ge;
|
|
23324
23324
|
},
|
|
23325
23325
|
get context() {
|
|
23326
23326
|
return H.context;
|
|
@@ -23337,8 +23337,8 @@ const GO = (e, t, n, a, o) => {
|
|
|
23337
23337
|
get onprocessorerror() {
|
|
23338
23338
|
return q;
|
|
23339
23339
|
},
|
|
23340
|
-
set onprocessorerror(
|
|
23341
|
-
typeof q == "function" && Y.removeEventListener("processorerror", q), q = typeof
|
|
23340
|
+
set onprocessorerror(ge) {
|
|
23341
|
+
typeof q == "function" && Y.removeEventListener("processorerror", q), q = typeof ge == "function" ? ge : null, typeof q == "function" && Y.addEventListener("processorerror", q);
|
|
23342
23342
|
},
|
|
23343
23343
|
get parameters() {
|
|
23344
23344
|
return ne;
|
|
@@ -23346,19 +23346,19 @@ const GO = (e, t, n, a, o) => {
|
|
|
23346
23346
|
get port() {
|
|
23347
23347
|
return O.port2;
|
|
23348
23348
|
},
|
|
23349
|
-
addEventListener(...
|
|
23350
|
-
return H.addEventListener(
|
|
23349
|
+
addEventListener(...ge) {
|
|
23350
|
+
return H.addEventListener(ge[0], ge[1], ge[2]);
|
|
23351
23351
|
},
|
|
23352
23352
|
connect: e.bind(null, K),
|
|
23353
23353
|
disconnect: f.bind(null, K),
|
|
23354
|
-
dispatchEvent(...
|
|
23355
|
-
return H.dispatchEvent(
|
|
23354
|
+
dispatchEvent(...ge) {
|
|
23355
|
+
return H.dispatchEvent(ge[0]);
|
|
23356
23356
|
},
|
|
23357
|
-
removeEventListener(...
|
|
23358
|
-
return H.removeEventListener(
|
|
23357
|
+
removeEventListener(...ge) {
|
|
23358
|
+
return H.removeEventListener(ge[0], ge[1], ge[2]);
|
|
23359
23359
|
}
|
|
23360
23360
|
}, oe = /* @__PURE__ */ new Map();
|
|
23361
|
-
O.port1.addEventListener = /* @__PURE__ */ ((
|
|
23361
|
+
O.port1.addEventListener = /* @__PURE__ */ ((ge) => (...Ee) => {
|
|
23362
23362
|
if (Ee[0] === "message") {
|
|
23363
23363
|
const Oe = typeof Ee[1] == "function" ? Ee[1] : typeof Ee[1] == "object" && Ee[1] !== null && typeof Ee[1].handleEvent == "function" ? Ee[1].handleEvent : null;
|
|
23364
23364
|
if (Oe !== null) {
|
|
@@ -23368,43 +23368,43 @@ const GO = (e, t, n, a, o) => {
|
|
|
23368
23368
|
}, oe.set(Oe, Ee[1]));
|
|
23369
23369
|
}
|
|
23370
23370
|
}
|
|
23371
|
-
return
|
|
23372
|
-
})(O.port1.addEventListener), O.port1.removeEventListener = /* @__PURE__ */ ((
|
|
23371
|
+
return ge.call(O.port1, Ee[0], Ee[1], Ee[2]);
|
|
23372
|
+
})(O.port1.addEventListener), O.port1.removeEventListener = /* @__PURE__ */ ((ge) => (...Ee) => {
|
|
23373
23373
|
if (Ee[0] === "message") {
|
|
23374
23374
|
const Oe = oe.get(Ee[1]);
|
|
23375
23375
|
Oe !== void 0 && (oe.delete(Ee[1]), Ee[1] = Oe);
|
|
23376
23376
|
}
|
|
23377
|
-
return
|
|
23377
|
+
return ge.call(O.port1, Ee[0], Ee[1], Ee[2]);
|
|
23378
23378
|
})(O.port1.removeEventListener);
|
|
23379
23379
|
let S = null;
|
|
23380
23380
|
Object.defineProperty(O.port1, "onmessage", {
|
|
23381
23381
|
get: () => S,
|
|
23382
|
-
set: (
|
|
23383
|
-
typeof S == "function" && O.port1.removeEventListener("message", S), S = typeof
|
|
23382
|
+
set: (ge) => {
|
|
23383
|
+
typeof S == "function" && O.port1.removeEventListener("message", S), S = typeof ge == "function" ? ge : null, typeof S == "function" && (O.port1.addEventListener("message", S), O.port1.start());
|
|
23384
23384
|
}
|
|
23385
23385
|
}), A.prototype.port = O.port1;
|
|
23386
23386
|
let G = null;
|
|
23387
|
-
k4(E, Y, A, w).then((
|
|
23388
|
-
const I = su(w.numberOfInputs, w.channelCount), ce = su(w.numberOfOutputs, R), me = A.parameterDescriptors === void 0 ? [] : A.parameterDescriptors.reduce((
|
|
23387
|
+
k4(E, Y, A, w).then((ge) => G = ge);
|
|
23388
|
+
const I = su(w.numberOfInputs, w.channelCount), ce = su(w.numberOfOutputs, R), me = A.parameterDescriptors === void 0 ? [] : A.parameterDescriptors.reduce((ge, { name: Ee }) => ({ ...ge, [Ee]: new Float32Array(128) }), {});
|
|
23389
23389
|
let ue = !0;
|
|
23390
23390
|
const Ae = () => {
|
|
23391
23391
|
w.numberOfOutputs > 0 && H.disconnect(X);
|
|
23392
|
-
for (let
|
|
23393
|
-
const Oe = $[
|
|
23394
|
-
for (let De = 0; De < R[
|
|
23392
|
+
for (let ge = 0, Ee = 0; ge < w.numberOfOutputs; ge += 1) {
|
|
23393
|
+
const Oe = $[ge];
|
|
23394
|
+
for (let De = 0; De < R[ge]; De += 1)
|
|
23395
23395
|
X.disconnect(Oe, Ee + De, De);
|
|
23396
|
-
Ee += R[
|
|
23396
|
+
Ee += R[ge];
|
|
23397
23397
|
}
|
|
23398
23398
|
}, we = /* @__PURE__ */ new Map();
|
|
23399
|
-
H.onaudioprocess = ({ inputBuffer:
|
|
23399
|
+
H.onaudioprocess = ({ inputBuffer: ge, outputBuffer: Ee }) => {
|
|
23400
23400
|
if (G !== null) {
|
|
23401
23401
|
const Oe = m(Y);
|
|
23402
23402
|
for (let De = 0; De < B; De += 128) {
|
|
23403
23403
|
for (let ke = 0; ke < w.numberOfInputs; ke += 1)
|
|
23404
23404
|
for (let Le = 0; Le < w.channelCount; Le += 1)
|
|
23405
|
-
ou(
|
|
23405
|
+
ou(ge, I[ke], Le, Le, De);
|
|
23406
23406
|
A.parameterDescriptors !== void 0 && A.parameterDescriptors.forEach(({ name: ke }, Le) => {
|
|
23407
|
-
ou(
|
|
23407
|
+
ou(ge, me, ke, C + Le, De);
|
|
23408
23408
|
});
|
|
23409
23409
|
for (let ke = 0; ke < w.numberOfInputs; ke += 1)
|
|
23410
23410
|
for (let Le = 0; Le < R[ke]; Le += 1)
|
|
@@ -23460,11 +23460,11 @@ const GO = (e, t, n, a, o) => {
|
|
|
23460
23460
|
}, Et = () => {
|
|
23461
23461
|
if (ue) {
|
|
23462
23462
|
It(), w.numberOfOutputs > 0 && H.connect(X);
|
|
23463
|
-
for (let
|
|
23464
|
-
const Oe = $[
|
|
23465
|
-
for (let De = 0; De < R[
|
|
23463
|
+
for (let ge = 0, Ee = 0; ge < w.numberOfOutputs; ge += 1) {
|
|
23464
|
+
const Oe = $[ge];
|
|
23465
|
+
for (let De = 0; De < R[ge]; De += 1)
|
|
23466
23466
|
X.connect(Oe, Ee + De, De);
|
|
23467
|
-
Ee += R[
|
|
23467
|
+
Ee += R[ge];
|
|
23468
23468
|
}
|
|
23469
23469
|
}
|
|
23470
23470
|
He = !0;
|
|
@@ -24301,7 +24301,7 @@ function hV() {
|
|
|
24301
24301
|
}
|
|
24302
24302
|
};
|
|
24303
24303
|
}, [y, L, v, jt, z, re]);
|
|
24304
|
-
var
|
|
24304
|
+
var ge = function() {
|
|
24305
24305
|
return t(h, void 0, void 0, function() {
|
|
24306
24306
|
var qe;
|
|
24307
24307
|
return n(this, function(Ie) {
|
|
@@ -24352,7 +24352,7 @@ function hV() {
|
|
|
24352
24352
|
return ke(!0);
|
|
24353
24353
|
}, unMuteAudio: function() {
|
|
24354
24354
|
return ke(!1);
|
|
24355
|
-
}, startRecording:
|
|
24355
|
+
}, startRecording: ge, pauseRecording: Le, resumeRecording: Ze, stopRecording: at, mediaBlobUrl: ue, status: S, isAudioMuted: I, previewStream: Y.current ? new MediaStream(Y.current.getVideoTracks()) : null, previewAudioStream: Y.current ? new MediaStream(Y.current.getAudioTracks()) : null, clearBlobUrl: function() {
|
|
24356
24356
|
ue && URL.revokeObjectURL(ue), Ae(void 0), G("idle");
|
|
24357
24357
|
} };
|
|
24358
24358
|
}
|
|
@@ -25810,14 +25810,14 @@ function l5() {
|
|
|
25810
25810
|
return (me.position.indent || me.position.start) && (me.indent = me.position.indent || [], me.position = me.position.start), S(I, me);
|
|
25811
25811
|
}
|
|
25812
25812
|
function S(I, ce) {
|
|
25813
|
-
var me = ce.additional, ue = ce.nonTerminated, Ae = ce.text, we = ce.reference, He = ce.warning, Je = ce.textContext, ft = ce.referenceContext, It = ce.warningContext, Et = ce.position, jt = ce.indent || [],
|
|
25814
|
-
for (typeof me == "string" && (me = me.charCodeAt(0)), xt = hn(), be = He ? mn : p, Ee--,
|
|
25813
|
+
var me = ce.additional, ue = ce.nonTerminated, Ae = ce.text, we = ce.reference, He = ce.warning, Je = ce.textContext, ft = ce.referenceContext, It = ce.warningContext, Et = ce.position, jt = ce.indent || [], ge = I.length, Ee = 0, Oe = -1, De = Et.column || 1, ke = Et.line || 1, Le = "", Ze = [], at, qe, Ie, Fe, J, ie, pe, be, Me, Mt, Bt, ut, ct, dt, gt, xt, Ft, Xe, pt;
|
|
25814
|
+
for (typeof me == "string" && (me = me.charCodeAt(0)), xt = hn(), be = He ? mn : p, Ee--, ge++; ++Ee < ge; )
|
|
25815
25815
|
if (J === m && (De = jt[Oe] || 1), J = I.charCodeAt(Ee), J === v) {
|
|
25816
25816
|
if (pe = I.charCodeAt(Ee + 1), pe === h || pe === m || pe === y || pe === E || pe === v || pe === w || pe !== pe || me && pe === me) {
|
|
25817
25817
|
Le += d(J), De++;
|
|
25818
25818
|
continue;
|
|
25819
25819
|
}
|
|
25820
|
-
for (ct = Ee + 1, ut = ct, pt = ct, pe === C ? (pt = ++ut, pe = I.charCodeAt(pt), pe === N || pe === D ? (dt = L, pt = ++ut) : dt = P) : dt = x, at = "", Bt = "", Fe = "", gt = B[dt], pt--; ++pt <
|
|
25820
|
+
for (ct = Ee + 1, ut = ct, pt = ct, pe === C ? (pt = ++ut, pe = I.charCodeAt(pt), pe === N || pe === D ? (dt = L, pt = ++ut) : dt = P) : dt = x, at = "", Bt = "", Fe = "", gt = B[dt], pt--; ++pt < ge && (pe = I.charCodeAt(pt), !!gt(pe)); )
|
|
25821
25821
|
Fe += d(pe), dt === x && u.call(e, Fe) && (at = Fe, Bt = e[Fe]);
|
|
25822
25822
|
Ie = I.charCodeAt(pt) === A, Ie && (pt++, qe = dt === x ? l(Fe) : !1, qe && (at = Fe, Bt = qe)), Xe = 1 + pt - ct, !Ie && !ue || (Fe ? dt === x ? (Ie && !Bt ? be(re, 1) : (at !== Fe && (pt = ut + at.length, Xe = 1 + pt - ut, Ie = !1), Ie || (Me = at ? H : $, ce.attribute ? (pe = I.charCodeAt(pt), pe === R ? (be(Me, Xe), Bt = null) : o(pe) ? Bt = null : be(Me, Xe)) : be(Me, Xe))), ie = Bt) : (Ie || be(X, Xe), ie = parseInt(Fe, z[dt]), G(ie) ? (be(K, Xe), ie = d(O)) : ie in t ? (be(q, Xe), ie = t[ie]) : (Mt = "", te(ie) && be(q, Xe), ie > 65535 && (ie -= 65536, Mt += d(ie >>> 10 | 55296), ie = 56320 | ie & 1023), ie = Mt + d(ie))) : dt !== x && be(ne, Xe)), ie ? (Rr(), xt = hn(), Ee = pt - 1, De += pt - ct + 1, Ze.push(ie), Ft = hn(), Ft.offset++, we && we.call(
|
|
25823
25823
|
ft,
|
|
@@ -47608,10 +47608,10 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47608
47608
|
const t = ye.useRef(null), n = ye.useRef(null), a = ye.useRef(null), o = ye.useRef(null), l = ye.useRef(null), [u, d] = ye.useState(null), [p, f] = ye.useState(!0);
|
|
47609
47609
|
ye.useEffect(() => {
|
|
47610
47610
|
(async () => {
|
|
47611
|
-
f(!0), await At.get(`${pW}/bot/${e.bot?.botId}`, {}).then((
|
|
47612
|
-
d(
|
|
47613
|
-
}).catch((
|
|
47614
|
-
console.error("Error fetching bot config:",
|
|
47611
|
+
f(!0), await At.get(`${pW}/bot/${e.bot?.botId}`, {}).then((fe) => {
|
|
47612
|
+
d(fe.data);
|
|
47613
|
+
}).catch((fe) => {
|
|
47614
|
+
console.error("Error fetching bot config:", fe);
|
|
47615
47615
|
}).finally(() => {
|
|
47616
47616
|
f(!1);
|
|
47617
47617
|
});
|
|
@@ -47621,34 +47621,34 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47621
47621
|
me.current = !0, ue.current = M.clientX, Ae.current = I, document.body.style.cursor = "ew-resize";
|
|
47622
47622
|
};
|
|
47623
47623
|
ye.useEffect(() => {
|
|
47624
|
-
const M = (
|
|
47624
|
+
const M = (he) => {
|
|
47625
47625
|
if (!me.current) return;
|
|
47626
|
-
const xe = ue.current -
|
|
47626
|
+
const xe = ue.current - he.clientX;
|
|
47627
47627
|
let ht = Ae.current + xe;
|
|
47628
47628
|
ht = Math.max(N, Math.min(D, ht)), ce(ht);
|
|
47629
|
-
},
|
|
47629
|
+
}, fe = () => {
|
|
47630
47630
|
me.current && (me.current = !1, document.body.style.cursor = "");
|
|
47631
47631
|
};
|
|
47632
|
-
return window.addEventListener("mousemove", M), window.addEventListener("mouseup",
|
|
47633
|
-
window.removeEventListener("mousemove", M), window.removeEventListener("mouseup",
|
|
47632
|
+
return window.addEventListener("mousemove", M), window.addEventListener("mouseup", fe), () => {
|
|
47633
|
+
window.removeEventListener("mousemove", M), window.removeEventListener("mouseup", fe);
|
|
47634
47634
|
};
|
|
47635
47635
|
}, [I, N, D]);
|
|
47636
|
-
const [He, Je] = ye.useState(!1), [ft, It] = ye.useState(!1), [Et, jt] = ye.useState(""), [
|
|
47636
|
+
const [He, Je] = ye.useState(!1), [ft, It] = ye.useState(!1), [Et, jt] = ye.useState(""), [ge, Ee] = ye.useState(!1), [Oe, De] = ye.useState([]), [ke, Le] = ye.useState(!1), Ze = ye.useRef(0), [at, qe] = ye.useState(!1), [Ie, Fe] = ye.useState(!1), J = ye.useRef(!1), [ie, pe] = ye.useState("00:00"), be = ye.useRef(null), Me = ye.useRef(0), [Mt, Bt] = ye.useState([]), [ut, ct] = ye.useState([]), { startRecording: dt, stopRecording: gt, pauseRecording: xt, resumeRecording: Ft, status: Xe, error: pt } = bV.useReactMediaRecorder({
|
|
47637
47637
|
video: !1,
|
|
47638
|
-
onStop(M,
|
|
47638
|
+
onStop(M, fe) {
|
|
47639
47639
|
if (J.current) {
|
|
47640
47640
|
J.current = !1, pe("00:00"), Me.current = 0;
|
|
47641
47641
|
return;
|
|
47642
47642
|
}
|
|
47643
|
-
De((
|
|
47644
|
-
...
|
|
47643
|
+
De((he) => [
|
|
47644
|
+
...he,
|
|
47645
47645
|
{
|
|
47646
47646
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
47647
|
-
file:
|
|
47647
|
+
file: fe,
|
|
47648
47648
|
type: "audio",
|
|
47649
47649
|
url: M,
|
|
47650
47650
|
name: `recording-${(/* @__PURE__ */ new Date()).toISOString()}.webm`,
|
|
47651
|
-
size:
|
|
47651
|
+
size: fe.size
|
|
47652
47652
|
}
|
|
47653
47653
|
]), pe("00:00"), Me.current = 0;
|
|
47654
47654
|
}
|
|
@@ -47656,13 +47656,13 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47656
47656
|
if (!u?.botNeedsAuth) {
|
|
47657
47657
|
let M = localStorage.getItem("conversationId");
|
|
47658
47658
|
if (!M) {
|
|
47659
|
-
const
|
|
47660
|
-
window.crypto.getRandomValues(
|
|
47659
|
+
const fe = new Uint8Array(16);
|
|
47660
|
+
window.crypto.getRandomValues(fe), M = Array.from(fe).map((he) => he.toString(16).padStart(2, "0")).join("");
|
|
47661
47661
|
}
|
|
47662
47662
|
return localStorage.setItem("conversationId", M), M;
|
|
47663
47663
|
}
|
|
47664
|
-
}), [an, ir] = ye.useState(() => u?.botNeedsAuth ? !!localStorage.getItem("conversationId") : !0), [_n, Es] = ye.useState(""), [Ha, Yn] = ye.useState(""), [wt, Yt] = ye.useState(""), $t = ye.useRef(!1), ua = ut.reduce((M,
|
|
47665
|
-
ct((M) => M.map((
|
|
47664
|
+
}), [an, ir] = ye.useState(() => u?.botNeedsAuth ? !!localStorage.getItem("conversationId") : !0), [_n, Es] = ye.useState(""), [Ha, Yn] = ye.useState(""), [wt, Yt] = ye.useState(""), $t = ye.useRef(!1), ua = ut.reduce((M, fe) => fe.seen ? M : M + (fe.sender === "agent" ? fe.nMessage || 1 : 0), 0), vs = () => {
|
|
47665
|
+
ct((M) => M.map((fe) => ({ ...fe, seen: !0 })));
|
|
47666
47666
|
};
|
|
47667
47667
|
ye.useEffect(() => {
|
|
47668
47668
|
const M = setTimeout(() => {
|
|
@@ -47674,20 +47674,20 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47674
47674
|
if (e?.bot) {
|
|
47675
47675
|
Ee(!0);
|
|
47676
47676
|
try {
|
|
47677
|
-
const
|
|
47678
|
-
ct((
|
|
47679
|
-
...
|
|
47677
|
+
const fe = await Wn("hi", e?.bot.botId);
|
|
47678
|
+
ct((he) => [
|
|
47679
|
+
...he,
|
|
47680
47680
|
{
|
|
47681
47681
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
47682
47682
|
sender: "agent",
|
|
47683
|
-
content:
|
|
47683
|
+
content: fe,
|
|
47684
47684
|
timestamp: /* @__PURE__ */ new Date(),
|
|
47685
47685
|
seen: $t.current,
|
|
47686
|
-
nMessage: typeof
|
|
47686
|
+
nMessage: typeof fe == "string" ? 1 : fe.length
|
|
47687
47687
|
}
|
|
47688
47688
|
]);
|
|
47689
|
-
} catch (
|
|
47690
|
-
console.error("Error sending message:",
|
|
47689
|
+
} catch (fe) {
|
|
47690
|
+
console.error("Error sending message:", fe);
|
|
47691
47691
|
} finally {
|
|
47692
47692
|
Ee(!1);
|
|
47693
47693
|
}
|
|
@@ -47698,8 +47698,8 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47698
47698
|
}, 2e3), localStorage.setItem("webChatAuth", "true")));
|
|
47699
47699
|
}, [an, e?.bot]), ye.useEffect(() => (Xe === "recording" ? be.current || (be.current = setInterval(() => {
|
|
47700
47700
|
Me.current += 1;
|
|
47701
|
-
const M = Math.floor(Me.current / 60).toString().padStart(2, "0"),
|
|
47702
|
-
pe(`${M}:${
|
|
47701
|
+
const M = Math.floor(Me.current / 60).toString().padStart(2, "0"), fe = (Me.current % 60).toString().padStart(2, "0");
|
|
47702
|
+
pe(`${M}:${fe}`);
|
|
47703
47703
|
}, 1e3)) : be.current && (clearInterval(be.current), be.current = null), () => {
|
|
47704
47704
|
be.current && (clearInterval(be.current), be.current = null);
|
|
47705
47705
|
}), [Xe]), ye.useEffect(() => {
|
|
@@ -47712,17 +47712,17 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47712
47712
|
if (Ga && Ga.current) {
|
|
47713
47713
|
const M = Ga.current;
|
|
47714
47714
|
M.style.height = "auto";
|
|
47715
|
-
const
|
|
47716
|
-
M.scrollHeight >
|
|
47715
|
+
const fe = 120;
|
|
47716
|
+
M.scrollHeight > fe ? (M.style.height = fe + "px", M.style.overflowY = "auto") : (M.style.height = M.scrollHeight + "px", M.style.overflowY = "hidden");
|
|
47717
47717
|
}
|
|
47718
47718
|
}, [Et]), ye.useEffect(() => {
|
|
47719
|
-
(He ||
|
|
47720
|
-
}, [ut,
|
|
47719
|
+
(He || ge) && t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
47720
|
+
}, [ut, ge, He]);
|
|
47721
47721
|
const Ss = (M) => {
|
|
47722
|
-
const
|
|
47723
|
-
return
|
|
47724
|
-
}, xn = ye.useCallback((M,
|
|
47725
|
-
const
|
|
47722
|
+
const fe = M.type.toLowerCase();
|
|
47723
|
+
return fe.startsWith("image/") ? "image" : fe.startsWith("video/") ? "video" : fe.startsWith("audio/") ? "audio" : "document";
|
|
47724
|
+
}, xn = ye.useCallback((M, fe) => {
|
|
47725
|
+
const he = [];
|
|
47726
47726
|
Array.from(M).forEach((xe) => {
|
|
47727
47727
|
if (xe.size > 10 * 1024 * 1024) {
|
|
47728
47728
|
alert(`File ${xe.name} is too large. Maximum size is 10MB.`);
|
|
@@ -47736,13 +47736,13 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47736
47736
|
name: xe.name,
|
|
47737
47737
|
size: xe.size
|
|
47738
47738
|
};
|
|
47739
|
-
|
|
47740
|
-
}), De((xe) => [...xe, ...
|
|
47739
|
+
he.push(ht);
|
|
47740
|
+
}), De((xe) => [...xe, ...he]), fe && fe.current && (fe.current.value = "");
|
|
47741
47741
|
}, []), qi = ye.useCallback(
|
|
47742
47742
|
(M) => {
|
|
47743
47743
|
M.preventDefault(), Ze.current = 0, Le(!1);
|
|
47744
|
-
const
|
|
47745
|
-
|
|
47744
|
+
const fe = M.dataTransfer.files;
|
|
47745
|
+
fe.length > 0 && xn(fe);
|
|
47746
47746
|
},
|
|
47747
47747
|
[xn]
|
|
47748
47748
|
), xr = ye.useCallback((M) => {
|
|
@@ -47752,24 +47752,24 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47752
47752
|
}, []), ca = ye.useCallback((M) => {
|
|
47753
47753
|
M.preventDefault(), Ze.current -= 1, Ze.current <= 0 && Le(!1);
|
|
47754
47754
|
}, []), Nr = (M) => {
|
|
47755
|
-
De((
|
|
47756
|
-
const
|
|
47757
|
-
return
|
|
47755
|
+
De((fe) => {
|
|
47756
|
+
const he = fe.find((xe) => xe.id === M);
|
|
47757
|
+
return he && URL.revokeObjectURL(he.url), fe.filter((xe) => xe.id !== M);
|
|
47758
47758
|
});
|
|
47759
47759
|
}, Ct = (M) => {
|
|
47760
47760
|
if (M === 0) return "0 Bytes";
|
|
47761
|
-
const
|
|
47762
|
-
return Number.parseFloat((M / Math.pow(
|
|
47761
|
+
const fe = 1024, he = ["Bytes", "KB", "MB", "GB"], xe = Math.floor(Math.log(M) / Math.log(fe));
|
|
47762
|
+
return Number.parseFloat((M / Math.pow(fe, xe)).toFixed(2)) + " " + he[xe];
|
|
47763
47763
|
}, or = async (M = Et) => {
|
|
47764
47764
|
if (M.trim() || Oe.length !== 0) {
|
|
47765
|
-
const
|
|
47765
|
+
const he = {
|
|
47766
47766
|
id: Date.now().toString() + Math.random().toString(36).substring(2, 9),
|
|
47767
47767
|
sender: "user",
|
|
47768
47768
|
content: M,
|
|
47769
47769
|
attachments: [...Oe],
|
|
47770
47770
|
timestamp: /* @__PURE__ */ new Date()
|
|
47771
47771
|
};
|
|
47772
|
-
if (ct((xe) => [...xe,
|
|
47772
|
+
if (ct((xe) => [...xe, he]), jt(""), De([]), Ee(!0), e?.bot)
|
|
47773
47773
|
try {
|
|
47774
47774
|
try {
|
|
47775
47775
|
const xe = await Wn(M, e?.bot.botId);
|
|
@@ -47830,17 +47830,17 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47830
47830
|
l.current?.click();
|
|
47831
47831
|
break;
|
|
47832
47832
|
}
|
|
47833
|
-
}, Wn = async (M,
|
|
47834
|
-
const { data:
|
|
47835
|
-
return
|
|
47836
|
-
}, kr = ({ attachment: M, onRemove:
|
|
47833
|
+
}, Wn = async (M, fe) => {
|
|
47834
|
+
const { data: he } = await At.post(e?.API_URL || dW, { messageText: M, botId: fe, conversation_id: Rr, isintern: !!e?.token, host: window.location.origin });
|
|
47835
|
+
return he;
|
|
47836
|
+
}, kr = ({ attachment: M, onRemove: fe }) => /* @__PURE__ */ F.jsxs("div", { className: "relative group w-24 h-24 rounded-xl overflow-hidden bg-gray-900 shadow-md border border-gray-700", children: [
|
|
47837
47837
|
M.type === "image" && M.url ? /* @__PURE__ */ F.jsx("img", { src: M.url, alt: M.name, className: "w-full h-full object-cover" }) : /* @__PURE__ */ F.jsxs("div", { className: "w-full h-full flex flex-col items-center justify-center text-gray-300 px-1 text-center text-xs", children: [
|
|
47838
47838
|
M.type === "video" && /* @__PURE__ */ F.jsx(bT, { className: "w-5 h-5 mb-1 text-red-400" }),
|
|
47839
47839
|
M.type === "audio" && /* @__PURE__ */ F.jsx(Sy, { className: "w-5 h-5 mb-1 text-green-400" }),
|
|
47840
47840
|
M.type === "document" && /* @__PURE__ */ F.jsx(dq, { className: "w-5 h-5 mb-1 text-yellow-400" }),
|
|
47841
47841
|
/* @__PURE__ */ F.jsx("span", { className: "w-full truncate", title: M.name, children: M.name })
|
|
47842
47842
|
] }),
|
|
47843
|
-
/* @__PURE__ */ F.jsx("button", { onClick:
|
|
47843
|
+
/* @__PURE__ */ F.jsx("button", { onClick: fe, className: "absolute top-1 right-1 w-5 h-5 bg-black bg-opacity-50 rounded-full text-white flex items-center justify-center hover:bg-opacity-80", title: "Remove", children: /* @__PURE__ */ F.jsx(Bl, { className: "w-3 h-3" }) })
|
|
47844
47844
|
] }), Fu = /^[\u0600-\u06FF\u0750-\u077F\s\d\p{P}]+$/u, As = /[\u0600-\u06FF\u0750-\u077F]/, Wt = (M) => Fu.test(M), Uu = (M) => As.test(M), Xn = {
|
|
47845
47845
|
h1: ({ children: M }) => /* @__PURE__ */ F.jsx("h1", { className: "sm:text-2xl text-xl font-bold my-2", dir: Wt(M) ? "rtl" : "ltr", children: M }),
|
|
47846
47846
|
h2: ({ children: M }) => /* @__PURE__ */ F.jsx("h2", { className: "sm:text-xl text-lg font-semibold my-2", dir: Wt(M) ? "rtl" : "ltr", children: M }),
|
|
@@ -47851,15 +47851,15 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47851
47851
|
p: ({ children: M }) => /* @__PURE__ */ F.jsx("p", { className: "leading-relaxed text-xs sm:text-sm", dir: Wt(M) ? "rtl" : "ltr", children: M }),
|
|
47852
47852
|
ul: ({ children: M }) => /* @__PURE__ */ F.jsx("ul", { className: "list-disc list-inside ml-4 my-2 text-gray-200", dir: Uu(M) ? "rtl" : "ltr", children: M }),
|
|
47853
47853
|
ol: ({ children: M }) => {
|
|
47854
|
-
let
|
|
47855
|
-
return M.every((
|
|
47854
|
+
let fe = !1;
|
|
47855
|
+
return M.every((he) => he?.props?.node?.children[0].type === "text" && Wt(he?.props?.node?.children[0].value)) ? fe = !0 : fe = !1, /* @__PURE__ */ F.jsx("ol", { className: "list-decimal list-inside text-xs sm:text-sm ml-4 my-2 text-gray-200", dir: fe ? "rtl" : "ltr", children: M });
|
|
47856
47856
|
},
|
|
47857
47857
|
li: ({ children: M }) => /* @__PURE__ */ F.jsx("li", { className: "my-1", dir: Wt(M) ? "rtl" : "ltr", children: M }),
|
|
47858
|
-
a: ({ href: M, children:
|
|
47858
|
+
a: ({ href: M, children: fe }) => /* @__PURE__ */ F.jsx("a", { href: M, className: "text-blue-400 underline hover:text-blue-300", target: "_blank", rel: "noopener noreferrer", children: fe }),
|
|
47859
47859
|
blockquote: ({ children: M }) => /* @__PURE__ */ F.jsx("blockquote", { className: "border-l-4 border-purple-500 pl-4 italic my-2", children: M }),
|
|
47860
|
-
code({ node: M, className:
|
|
47861
|
-
const ht = /language-(\w+)/.exec(
|
|
47862
|
-
return ht ? /* @__PURE__ */ F.jsx(LI, { ...xe, PreTag: "div", children: String(
|
|
47860
|
+
code({ node: M, className: fe, children: he, ...xe }) {
|
|
47861
|
+
const ht = /language-(\w+)/.exec(fe || "");
|
|
47862
|
+
return ht ? /* @__PURE__ */ F.jsx(LI, { ...xe, PreTag: "div", children: String(he).replace(/\n$/, ""), language: ht[1], style: tW }) : /* @__PURE__ */ F.jsx("code", { className: "bg-gray-800 px-1 rounded font-mono inline", ...xe, children: he });
|
|
47863
47863
|
},
|
|
47864
47864
|
table: ({ children: M }) => /* @__PURE__ */ F.jsx("table", { className: "min-w-full my-2 border border-gray-700", children: M }),
|
|
47865
47865
|
thead: ({ children: M }) => /* @__PURE__ */ F.jsx("thead", { className: "bg-gray-800", children: M }),
|
|
@@ -47872,9 +47872,9 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47872
47872
|
hr: () => /* @__PURE__ */ F.jsx("hr", { className: "my-4 border-purple-700" })
|
|
47873
47873
|
};
|
|
47874
47874
|
ye.useEffect(() => {
|
|
47875
|
-
const M = (
|
|
47876
|
-
at &&
|
|
47877
|
-
(
|
|
47875
|
+
const M = (fe) => {
|
|
47876
|
+
at && fe.target instanceof Element && !fe.composedPath().some(
|
|
47877
|
+
(he) => he?.id === "upload-button-toggle" || he?.id === "document-button" || he?.id === "image-button" || he?.id === "video-button" || he?.id === "audio-button"
|
|
47878
47878
|
) && qe(!1);
|
|
47879
47879
|
};
|
|
47880
47880
|
return document.addEventListener("mousedown", M), () => {
|
|
@@ -47890,20 +47890,20 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47890
47890
|
return /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
47891
47891
|
/* @__PURE__ */ F.jsx(Vo, { remarkPlugins: [_o], components: Xn, children: M.text?.replace(/\n/g, `
|
|
47892
47892
|
`) || "" }),
|
|
47893
|
-
/* @__PURE__ */ F.jsx("div", { className: "flex flex-wrap", dir: Wt(M.text || "") ? "rtl" : "ltr", children: M.choices?.map((
|
|
47893
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex flex-wrap", dir: Wt(M.text || "") ? "rtl" : "ltr", children: M.choices?.map((he, xe) => /* @__PURE__ */ F.jsx(
|
|
47894
47894
|
"button",
|
|
47895
47895
|
{
|
|
47896
47896
|
className: "mb-1 mr-1 text-xs px-4 py-1 hover:scale-105 transition-all duration-100",
|
|
47897
47897
|
onClick: () => {
|
|
47898
|
-
or(
|
|
47898
|
+
or(he.title);
|
|
47899
47899
|
},
|
|
47900
47900
|
style: {
|
|
47901
47901
|
background: te,
|
|
47902
47902
|
borderRadius: `${C}px`,
|
|
47903
47903
|
color: G
|
|
47904
47904
|
},
|
|
47905
|
-
dir: Wt(
|
|
47906
|
-
children:
|
|
47905
|
+
dir: Wt(he.title) ? "rtl" : "ltr",
|
|
47906
|
+
children: he.title
|
|
47907
47907
|
},
|
|
47908
47908
|
xe
|
|
47909
47909
|
)) })
|
|
@@ -47923,12 +47923,12 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47923
47923
|
`) || "" }),
|
|
47924
47924
|
/* @__PURE__ */ F.jsxs("div", { className: "flex flex-wrap", dir: Wt(M.message || "") ? "rtl" : "ltr", children: [
|
|
47925
47925
|
/* @__PURE__ */ F.jsx("p", { className: "mr-2", children: "ou" }),
|
|
47926
|
-
M.options?.map((
|
|
47926
|
+
M.options?.map((he, xe) => /* @__PURE__ */ F.jsx(
|
|
47927
47927
|
"button",
|
|
47928
47928
|
{
|
|
47929
47929
|
className: "mb-1 mr-1 px-4 py-1 text-xs hover:scale-105 transition-all duration-100",
|
|
47930
47930
|
onClick: () => {
|
|
47931
|
-
or(
|
|
47931
|
+
or(he.value);
|
|
47932
47932
|
},
|
|
47933
47933
|
style: {
|
|
47934
47934
|
background: te,
|
|
@@ -47936,31 +47936,31 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47936
47936
|
color: G
|
|
47937
47937
|
},
|
|
47938
47938
|
dir: Wt(M.message || "") ? "rtl" : "ltr",
|
|
47939
|
-
children:
|
|
47939
|
+
children: he.label
|
|
47940
47940
|
},
|
|
47941
47941
|
xe
|
|
47942
47942
|
))
|
|
47943
47943
|
] })
|
|
47944
47944
|
] });
|
|
47945
47945
|
case "carousel":
|
|
47946
|
-
const
|
|
47947
|
-
return /* @__PURE__ */ F.jsx("div", { className: "mt-2 w-full", children: /* @__PURE__ */ F.jsx("div", { className: `grid grid-cols-1 sm:grid-cols-${
|
|
47948
|
-
|
|
47949
|
-
/* @__PURE__ */ F.jsx("h3", { className: "text-sm font-bold", title:
|
|
47950
|
-
/* @__PURE__ */ F.jsx("p", { className: "text-xs text-gray-300 mb-2 line-clamp-2", title:
|
|
47951
|
-
|
|
47946
|
+
const fe = (M.items?.length || 0) < 2 ? 1 : 2;
|
|
47947
|
+
return /* @__PURE__ */ F.jsx("div", { className: "mt-2 w-full", children: /* @__PURE__ */ F.jsx("div", { className: `grid grid-cols-1 sm:grid-cols-${fe} gap-3`, children: M.items?.map((he, xe) => /* @__PURE__ */ F.jsxs("div", { className: "flex-shrink-0 border p-3 shadow-md", style: { background: ne, borderRadius: `${C}px` }, children: [
|
|
47948
|
+
he.image && /* @__PURE__ */ F.jsx("img", { src: he.image, alt: he.title, className: "h-32 w-full object-cover rounded-md mb-2" }),
|
|
47949
|
+
/* @__PURE__ */ F.jsx("h3", { className: "text-sm font-bold", title: he.title, children: he.title }),
|
|
47950
|
+
/* @__PURE__ */ F.jsx("p", { className: "text-xs text-gray-300 mb-2 line-clamp-2", title: he.subtitle, children: he.subtitle }),
|
|
47951
|
+
he.actions?.map((ht, Un) => {
|
|
47952
47952
|
let sr;
|
|
47953
47953
|
try {
|
|
47954
47954
|
sr = typeof ht.payload == "string" ? JSON.parse(ht.payload) : ht.payload;
|
|
47955
47955
|
} catch {
|
|
47956
|
-
sr = { productName:
|
|
47956
|
+
sr = { productName: he.title };
|
|
47957
47957
|
}
|
|
47958
47958
|
return /* @__PURE__ */ F.jsx(
|
|
47959
47959
|
"button",
|
|
47960
47960
|
{
|
|
47961
47961
|
className: "mb-1 mr-1 px-4 py-1 hover:scale-105 transition-all duration-100",
|
|
47962
47962
|
onClick: () => {
|
|
47963
|
-
ht.action === "Open URL" ? window.open(ht.url, "_blank") : ht.title === "scan" ? fetch(
|
|
47963
|
+
ht.action === "Open URL" ? window.open(ht.url, "_blank") : ht.title === "scan" ? fetch(he.image).then((en) => en.blob()).then((en) => {
|
|
47964
47964
|
const Ts = URL.createObjectURL(en), Ut = document.createElement("a");
|
|
47965
47965
|
Ut.href = Ts, Ut.download = "qrcode.png", document.body.appendChild(Ut), Ut.click(), document.body.removeChild(Ut), URL.revokeObjectURL(Ts);
|
|
47966
47966
|
}).catch(() => {
|
|
@@ -47982,10 +47982,10 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47982
47982
|
return /* @__PURE__ */ F.jsx("div", { className: "mt-2 w-full", children: /* @__PURE__ */ F.jsx("div", { className: "grid grid-cols-1 gap-3", children: /* @__PURE__ */ F.jsxs("div", { className: "flex-shrink-0 border rounded-lg p-3 shadow-md", style: { background: ne }, children: [
|
|
47983
47983
|
M.image && /* @__PURE__ */ F.jsx("img", { src: M.image, alt: M.title, className: "h-32 w-full object-cover rounded-md mb-2" }),
|
|
47984
47984
|
/* @__PURE__ */ F.jsx("h3", { className: "text-sm font-bold", children: M.title }),
|
|
47985
|
-
M.actions?.map((
|
|
47985
|
+
M.actions?.map((he, xe) => {
|
|
47986
47986
|
let ht;
|
|
47987
47987
|
try {
|
|
47988
|
-
ht = typeof
|
|
47988
|
+
ht = typeof he.payload == "string" ? JSON.parse(he.payload) : he.payload;
|
|
47989
47989
|
} catch {
|
|
47990
47990
|
ht = { productName: M.title };
|
|
47991
47991
|
}
|
|
@@ -47994,7 +47994,7 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
47994
47994
|
{
|
|
47995
47995
|
className: "mb-1 mr-1 px-4 py-1 hover:scale-105 transition-all duration-100",
|
|
47996
47996
|
onClick: () => {
|
|
47997
|
-
|
|
47997
|
+
he.action === "Open URL" ? window.open(he.url, "_blank") : he.title === "scan" ? M.image && fetch(M.image).then((Un) => Un.blob()).then((Un) => {
|
|
47998
47998
|
const sr = URL.createObjectURL(Un), en = document.createElement("a");
|
|
47999
47999
|
en.href = sr, en.download = "qrcode.png", document.body.appendChild(en), en.click(), document.body.removeChild(en), URL.revokeObjectURL(sr);
|
|
48000
48000
|
}).catch(() => {
|
|
@@ -48006,7 +48006,7 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48006
48006
|
borderRadius: `${C}px`,
|
|
48007
48007
|
color: G
|
|
48008
48008
|
},
|
|
48009
|
-
children:
|
|
48009
|
+
children: he.title
|
|
48010
48010
|
},
|
|
48011
48011
|
xe
|
|
48012
48012
|
);
|
|
@@ -48015,7 +48015,7 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48015
48015
|
}
|
|
48016
48016
|
}, Fn = async (M) => {
|
|
48017
48017
|
if (!an) return;
|
|
48018
|
-
const
|
|
48018
|
+
const fe = await fetch(`${P0}/endusers/get-by-username`, {
|
|
48019
48019
|
headers: {
|
|
48020
48020
|
Authorization: `Bearer ${e?.token}`,
|
|
48021
48021
|
"Content-Type": "application/json"
|
|
@@ -48023,40 +48023,40 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48023
48023
|
method: "POST",
|
|
48024
48024
|
body: JSON.stringify({ username: `web_user_${M}` })
|
|
48025
48025
|
});
|
|
48026
|
-
if (!
|
|
48027
|
-
throw new Error(`HTTP error! status: ${
|
|
48028
|
-
return (await
|
|
48026
|
+
if (!fe.ok)
|
|
48027
|
+
throw new Error(`HTTP error! status: ${fe.status}`);
|
|
48028
|
+
return (await fe.json()).id;
|
|
48029
48029
|
}, ji = async (M) => {
|
|
48030
48030
|
if (!an) return;
|
|
48031
|
-
const
|
|
48032
|
-
let
|
|
48033
|
-
_n && (
|
|
48031
|
+
const fe = await Fn(M);
|
|
48032
|
+
let he;
|
|
48033
|
+
_n && (he = {
|
|
48034
48034
|
last_name: _n.split(" ")[1] || _n.split(" ")[0] || `web_user_${M}`,
|
|
48035
48035
|
first_name: _n.split(" ")[0] || `web_user_${M}`
|
|
48036
|
-
}), Ha && (
|
|
48037
|
-
...
|
|
48036
|
+
}), Ha && (he = {
|
|
48037
|
+
...he,
|
|
48038
48038
|
phone: Ha
|
|
48039
|
-
}), wt && (
|
|
48040
|
-
...
|
|
48039
|
+
}), wt && (he = {
|
|
48040
|
+
...he,
|
|
48041
48041
|
email: wt
|
|
48042
48042
|
});
|
|
48043
|
-
const xe = await fetch(`${P0}/endusers/${
|
|
48043
|
+
const xe = await fetch(`${P0}/endusers/${fe}`, {
|
|
48044
48044
|
headers: {
|
|
48045
48045
|
Authorization: `Bearer ${e?.token}`,
|
|
48046
48046
|
"Content-Type": "application/json"
|
|
48047
48047
|
},
|
|
48048
48048
|
method: "PUT",
|
|
48049
|
-
body: JSON.stringify(
|
|
48049
|
+
body: JSON.stringify(he)
|
|
48050
48050
|
});
|
|
48051
48051
|
if (!xe.ok)
|
|
48052
48052
|
throw new Error(`HTTP error! status: ${xe.status}`);
|
|
48053
48053
|
return await xe.json();
|
|
48054
48054
|
}, ws = async (M) => {
|
|
48055
48055
|
M.preventDefault();
|
|
48056
|
-
const
|
|
48057
|
-
window.crypto.getRandomValues(
|
|
48058
|
-
const
|
|
48059
|
-
la(
|
|
48056
|
+
const fe = new Uint8Array(16);
|
|
48057
|
+
window.crypto.getRandomValues(fe);
|
|
48058
|
+
const he = Array.from(fe).map((xe) => xe.toString(16).padStart(2, "0")).join("");
|
|
48059
|
+
la(he), localStorage.setItem("conversationId", he), localStorage.setItem("webChatAuth", "true"), ir(!0);
|
|
48060
48060
|
}, Or = `linear-gradient(to bottom right, ${y}, ${h}, ${y})`, Hi = `linear-gradient(to right, ${h}, ${m})`, Gi = `linear-gradient(to right, ${E}, ${v})`;
|
|
48061
48061
|
return p || !u ? null : /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
48062
48062
|
/* @__PURE__ */ F.jsxs(
|
|
@@ -48184,16 +48184,16 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48184
48184
|
}
|
|
48185
48185
|
),
|
|
48186
48186
|
/* @__PURE__ */ F.jsxs("div", { className: `flex flex-col flex-1 ${M.sender === "user" ? "items-end" : "items-start"}`, children: [
|
|
48187
|
-
M.attachments && M.attachments.length > 0 && /* @__PURE__ */ F.jsx("div", { className: "flex flex-col items-end w-[88%] mb-2 space-y-2", children: M.attachments.map((
|
|
48187
|
+
M.attachments && M.attachments.length > 0 && /* @__PURE__ */ F.jsx("div", { className: "flex flex-col items-end w-[88%] mb-2 space-y-2", children: M.attachments.map((fe) => /* @__PURE__ */ F.jsx(
|
|
48188
48188
|
fW,
|
|
48189
48189
|
{
|
|
48190
|
-
attachment:
|
|
48190
|
+
attachment: fe,
|
|
48191
48191
|
formatFileSize: Ct,
|
|
48192
48192
|
mainColor: h,
|
|
48193
48193
|
secondaryColor: m,
|
|
48194
48194
|
controlsColor: w
|
|
48195
48195
|
},
|
|
48196
|
-
|
|
48196
|
+
fe.id
|
|
48197
48197
|
)) }),
|
|
48198
48198
|
M.content && M.sender === "user" ? /* @__PURE__ */ F.jsx(
|
|
48199
48199
|
"div",
|
|
@@ -48210,7 +48210,7 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48210
48210
|
children: /* @__PURE__ */ F.jsx(Vo, { remarkPlugins: [_o], components: Xn, children: typeof M.content == "string" ? M.content.replace(/\n/g, `
|
|
48211
48211
|
`) : "" })
|
|
48212
48212
|
}
|
|
48213
|
-
) : typeof M.content == "object" ? M.content.map((
|
|
48213
|
+
) : typeof M.content == "object" ? M.content.map((fe, he) => /* @__PURE__ */ F.jsx(
|
|
48214
48214
|
"div",
|
|
48215
48215
|
{
|
|
48216
48216
|
className: "mb-1 px-4 py-2 backdrop-blur-sm break-words w-fit",
|
|
@@ -48222,9 +48222,9 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48222
48222
|
background: ne,
|
|
48223
48223
|
color: $
|
|
48224
48224
|
},
|
|
48225
|
-
children: Va(
|
|
48225
|
+
children: Va(fe)
|
|
48226
48226
|
},
|
|
48227
|
-
|
|
48227
|
+
he
|
|
48228
48228
|
)) : /* @__PURE__ */ F.jsx(
|
|
48229
48229
|
"div",
|
|
48230
48230
|
{
|
|
@@ -48244,7 +48244,7 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48244
48244
|
/* @__PURE__ */ F.jsx("span", { className: "ml-1 text-[10px] sm:text-xs mt-1", style: { color: w }, children: M.timestamp.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) })
|
|
48245
48245
|
] })
|
|
48246
48246
|
] }, M.id)),
|
|
48247
|
-
|
|
48247
|
+
ge && /* @__PURE__ */ F.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
48248
48248
|
/* @__PURE__ */ F.jsx("div", { className: "sm:size-8 size-7 rounded-full bg-gradient-to-r flex items-center justify-center", style: { background: re }, children: /* @__PURE__ */ F.jsx(mT, { className: "sm:size-4 size-3", style: { color: q } }) }),
|
|
48249
48249
|
/* @__PURE__ */ F.jsx("div", { className: "px-4 py-2", style: { background: ne, color: $, borderRadius: `${C}px` }, children: /* @__PURE__ */ F.jsxs("div", { className: "flex space-x-1", children: [
|
|
48250
48250
|
/* @__PURE__ */ F.jsx("div", { className: "size-1 sm:size-2 rounded-full animate-bounce", style: { background: $ } }),
|
|
@@ -48566,39 +48566,30 @@ const P0 = "https://api.tybotflow.com/api/v1", dW = "https://api.tybotflow.com/a
|
|
|
48566
48566
|
)
|
|
48567
48567
|
}
|
|
48568
48568
|
),
|
|
48569
|
-
/* @__PURE__ */ F.
|
|
48570
|
-
/* @__PURE__ */ F.jsx("h3", { className: "text-lg font-semibold truncate", title: mn, style: { color: w }, children: mn }),
|
|
48571
|
-
/* @__PURE__ */ F.jsx("div", { className: "mt-1 flex flex-wrap gap-2", children: e?.bot.is_active !== void 0 && /* @__PURE__ */ F.jsx(
|
|
48572
|
-
"span",
|
|
48573
|
-
{
|
|
48574
|
-
className: "px-2 py-0.5 text-xs rounded-full font-medium",
|
|
48575
|
-
style: { backgroundColor: h, color: w },
|
|
48576
|
-
children: e?.bot.is_active ? "Active" : "Inactive"
|
|
48577
|
-
}
|
|
48578
|
-
) })
|
|
48579
|
-
] })
|
|
48569
|
+
/* @__PURE__ */ F.jsx("div", { className: "min-w-0", children: /* @__PURE__ */ F.jsx("h3", { className: "text-lg font-semibold truncate", title: mn, style: { color: w }, children: mn }) })
|
|
48580
48570
|
] }),
|
|
48581
|
-
|
|
48571
|
+
u?.description && /* @__PURE__ */ F.jsx("div", { className: "max-h-40 overflow-y-auto pr-1 custom-scrollbar", children: /* @__PURE__ */ F.jsx("p", { className: "text-sm leading-relaxed whitespace-pre-line", style: { wordBreak: "break-word", color: w }, children: u.description }) }),
|
|
48582
48572
|
/* @__PURE__ */ F.jsxs("div", { className: "grid grid-cols-2 gap-3 text-xs", style: { color: w }, children: [
|
|
48583
|
-
(
|
|
48584
|
-
/* @__PURE__ */ F.
|
|
48585
|
-
|
|
48586
|
-
"
|
|
48587
|
-
|
|
48588
|
-
|
|
48589
|
-
] }) : e?.bot?.phone_number })
|
|
48590
|
-
] }),
|
|
48591
|
-
e?.bot.personality && /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
48592
|
-
/* @__PURE__ */ F.jsx("span", { className: "uppercase tracking-wide font-bold", style: { color: w }, children: "Personality" }),
|
|
48593
|
-
/* @__PURE__ */ F.jsx("span", { className: "font-medium break-all", children: e?.bot.personality })
|
|
48573
|
+
Array.isArray(u?.phone_numbers) && u.phone_numbers.length > 0 && /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
48574
|
+
/* @__PURE__ */ F.jsxs("span", { className: "uppercase tracking-wide font-bold", style: { color: w }, children: [
|
|
48575
|
+
"Phone number",
|
|
48576
|
+
u.phone_numbers.length > 1 ? "s" : ""
|
|
48577
|
+
] }),
|
|
48578
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-1 flex-wrap", children: u.phone_numbers.map((M, fe) => /* @__PURE__ */ F.jsx("span", { className: "font-medium break-all", style: { color: w }, children: M }, fe)) })
|
|
48594
48579
|
] }),
|
|
48595
|
-
|
|
48596
|
-
/* @__PURE__ */ F.
|
|
48597
|
-
|
|
48580
|
+
Array.isArray(u?.websites) && u.websites.length > 0 && /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
48581
|
+
/* @__PURE__ */ F.jsxs("span", { className: "uppercase tracking-wide font-bold", style: { color: w }, children: [
|
|
48582
|
+
"Website",
|
|
48583
|
+
u.websites.length > 1 ? "s" : ""
|
|
48584
|
+
] }),
|
|
48585
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-1 flex-wrap", children: u.websites.map((M, fe) => /* @__PURE__ */ F.jsx("a", { className: "break-all underline font-semibold", href: M, target: "_blank", rel: "noopener noreferrer", children: M }, fe)) })
|
|
48598
48586
|
] }),
|
|
48599
|
-
|
|
48600
|
-
/* @__PURE__ */ F.
|
|
48601
|
-
|
|
48587
|
+
Array.isArray(u?.emails) && u.emails.length > 0 && /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
48588
|
+
/* @__PURE__ */ F.jsxs("span", { className: "uppercase tracking-wide font-bold", style: { color: w }, children: [
|
|
48589
|
+
"Email",
|
|
48590
|
+
u.emails.length > 1 ? "s" : ""
|
|
48591
|
+
] }),
|
|
48592
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-1", children: u.emails.map((M, fe) => /* @__PURE__ */ F.jsx("span", { className: "font-medium break-all", style: { color: w }, children: M }, fe)) })
|
|
48602
48593
|
] })
|
|
48603
48594
|
] })
|
|
48604
48595
|
] }) : /* @__PURE__ */ F.jsxs("div", { className: "text-center", style: { color: w }, children: [
|