@visma-swno/gaia-chat-ui 2.0.1 → 2.0.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-Dftc0ILX.js → index-CdLh5lbh.js} +368 -360
- package/dist/index-CdLh5lbh.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +111 -111
- package/dist/index.umd.js.map +1 -1
- package/dist/{nb-BeLfjOx5.js → nb-CpHjB6yw.js} +3 -2
- package/dist/nb-CpHjB6yw.js.map +1 -0
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/composer.d.ts +1 -1
- package/dist/src/components/composer.d.ts.map +1 -1
- package/dist/src/core/effects/stream-event-router.d.ts.map +1 -1
- package/dist/src/core/errors/app-error.d.ts.map +1 -1
- package/dist/src/core/events/transport/sse.d.ts +2 -0
- package/dist/src/core/events/transport/sse.d.ts.map +1 -1
- package/dist/src/generated/locales/nb.d.ts +1 -0
- package/dist/src/generated/locales/nb.d.ts.map +1 -1
- package/dist/src/infra/sse/stream-error.d.ts +2 -1
- package/dist/src/infra/sse/stream-error.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-Dftc0ILX.js.map +0 -1
- package/dist/nb-BeLfjOx5.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LitElement as io, adoptStyles as ao, unsafeCSS as lo, nothing as V, html as b } from "lit";
|
|
2
|
-
import { property as
|
|
2
|
+
import { property as E, state as xe, query as en, customElement as te } from "lit/decorators.js";
|
|
3
3
|
import { live as co } from "lit/directives/live.js";
|
|
4
4
|
import { unsafeSVG as M } from "lit/directives/unsafe-svg.js";
|
|
5
|
-
import { unsafeHTML as
|
|
6
|
-
import { repeat as
|
|
7
|
-
import { map as
|
|
5
|
+
import { unsafeHTML as tn } from "lit/directives/unsafe-html.js";
|
|
6
|
+
import { repeat as sn } from "lit/directives/repeat.js";
|
|
7
|
+
import { map as rn } from "lit/directives/map.js";
|
|
8
8
|
import { createRef as ho, ref as po } from "lit/directives/ref.js";
|
|
9
|
-
import { guard as
|
|
9
|
+
import { guard as vr } from "lit/directives/guard.js";
|
|
10
10
|
function uo(s) {
|
|
11
11
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
12
12
|
}
|
|
@@ -16,9 +16,9 @@ var ss = { exports: {} };
|
|
|
16
16
|
Licensed under the MIT License (MIT), see
|
|
17
17
|
http://jedwatson.github.io/classnames
|
|
18
18
|
*/
|
|
19
|
-
var
|
|
19
|
+
var yr;
|
|
20
20
|
function go() {
|
|
21
|
-
return
|
|
21
|
+
return yr || (yr = 1, (function(s) {
|
|
22
22
|
(function() {
|
|
23
23
|
var e = {}.hasOwnProperty;
|
|
24
24
|
function t() {
|
|
@@ -75,7 +75,7 @@ class mo {
|
|
|
75
75
|
return this.strategy;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
class
|
|
78
|
+
class $e extends Error {
|
|
79
79
|
constructor(e, t, n, r, o, i) {
|
|
80
80
|
super(e), this.status = t, this.url = n, this.innerError = r, this.bodyText = o, this.problem = i, this.name = "ApiError";
|
|
81
81
|
}
|
|
@@ -109,21 +109,21 @@ async function wo(s) {
|
|
|
109
109
|
t = void 0;
|
|
110
110
|
}
|
|
111
111
|
const n = t?.detail || t?.title || e && e.slice(0, 200) || `HTTP ${s.status} ${s.statusText}`;
|
|
112
|
-
return new
|
|
112
|
+
return new $e(n, s.status, s.url, void 0, e, t);
|
|
113
113
|
}
|
|
114
|
-
async function
|
|
114
|
+
async function nn(s) {
|
|
115
115
|
if (!s.ok) throw await wo(s);
|
|
116
116
|
}
|
|
117
117
|
function rs(s) {
|
|
118
118
|
if (!s.body)
|
|
119
|
-
throw new
|
|
119
|
+
throw new $e("No response body", s.status, s.url);
|
|
120
120
|
return s.body;
|
|
121
121
|
}
|
|
122
122
|
async function Cs(s) {
|
|
123
123
|
try {
|
|
124
124
|
return await s.json();
|
|
125
125
|
} catch (e) {
|
|
126
|
-
throw new
|
|
126
|
+
throw new $e("Failed to parse response body as JSON", s.status, s.url, e);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
class bo {
|
|
@@ -170,7 +170,7 @@ function yo(s) {
|
|
|
170
170
|
return atob(e);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function _r(s, e) {
|
|
174
174
|
if (typeof s != "string")
|
|
175
175
|
throw new nt("Invalid token specified: must be a string");
|
|
176
176
|
e || (e = {});
|
|
@@ -189,7 +189,7 @@ function yr(s, e) {
|
|
|
189
189
|
throw new nt(`Invalid token specified: invalid json for part #${t + 1} (${o.message})`);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
class
|
|
192
|
+
class on {
|
|
193
193
|
constructor(e = 12e4) {
|
|
194
194
|
this.expiringBufferMs = e, this._token = null, this.expiringTimer = null, this.expiredTimer = null, this.hasEmittedExpiring = !1, this.hasEmittedExpired = !1, this.listeners = {};
|
|
195
195
|
}
|
|
@@ -205,7 +205,7 @@ class nn {
|
|
|
205
205
|
async getIdentifier() {
|
|
206
206
|
const e = await this.getAccessToken(!0);
|
|
207
207
|
if (!e) throw new Error("Token not set");
|
|
208
|
-
return
|
|
208
|
+
return _r(e).sub;
|
|
209
209
|
}
|
|
210
210
|
set token(e) {
|
|
211
211
|
typeof e == "string" ? this._token = this.getDecodedAccessToken(e) : this._token = e, this.hasEmittedExpiring = !1, this.hasEmittedExpired = !1, this.listeners.onUpdated?.(this._token?.exp ?? null, e), this.armTimers();
|
|
@@ -247,14 +247,14 @@ class nn {
|
|
|
247
247
|
this.hasEmittedExpired || !this._token?.exp || (this.hasEmittedExpired = !0, this.listeners.onExpired?.(this._token.exp));
|
|
248
248
|
}
|
|
249
249
|
getDecodedAccessToken(e) {
|
|
250
|
-
const t =
|
|
250
|
+
const t = _r(e);
|
|
251
251
|
return {
|
|
252
252
|
value: e,
|
|
253
253
|
exp: t.exp ? t.exp * 1e3 : void 0
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
class _o extends
|
|
257
|
+
class _o extends on {
|
|
258
258
|
constructor(e, t = new bo(), n = fetch) {
|
|
259
259
|
super(), this.baseUrl = e, this.storage = t, this.fetchImpl = n;
|
|
260
260
|
}
|
|
@@ -282,13 +282,13 @@ class _o extends nn {
|
|
|
282
282
|
"Content-Type": "application/json"
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
|
-
return
|
|
285
|
+
return nn(e), (await Cs(e)).accessToken;
|
|
286
286
|
}
|
|
287
287
|
async refreshVisitorToken() {
|
|
288
288
|
return await this.requestVisitorToken();
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
class ko extends
|
|
291
|
+
class ko extends on {
|
|
292
292
|
constructor(e = null) {
|
|
293
293
|
super(), this.initialToken = e;
|
|
294
294
|
}
|
|
@@ -307,7 +307,7 @@ class ko extends nn {
|
|
|
307
307
|
async onClear() {
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function kr(s, e) {
|
|
311
311
|
return e ? { kind: "visma", strategy: new ko(e) } : { kind: "visitor", strategy: new _o(s) };
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
@@ -325,7 +325,7 @@ const xo = (s, ...e) => ({
|
|
|
325
325
|
strTag: !0,
|
|
326
326
|
strings: s,
|
|
327
327
|
values: e
|
|
328
|
-
}), So = xo,
|
|
328
|
+
}), So = xo, To = (s) => typeof s != "string" && "strTag" in s, an = (s, e, t) => {
|
|
329
329
|
let n = s[0];
|
|
330
330
|
for (let r = 1; r < s.length; r++)
|
|
331
331
|
n += e[t ? t[r - 1] : r - 1], n += s[r];
|
|
@@ -336,12 +336,12 @@ const xo = (s, ...e) => ({
|
|
|
336
336
|
* Copyright 2021 Google LLC
|
|
337
337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
338
|
*/
|
|
339
|
-
const
|
|
340
|
-
let k =
|
|
341
|
-
function
|
|
342
|
-
if (
|
|
339
|
+
const ln = ((s) => To(s) ? an(s.strings, s.values) : s);
|
|
340
|
+
let k = ln, xr = !1;
|
|
341
|
+
function Eo(s) {
|
|
342
|
+
if (xr)
|
|
343
343
|
throw new Error("lit-localize can only be configured once");
|
|
344
|
-
k = s,
|
|
344
|
+
k = s, xr = !0;
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
* @license
|
|
@@ -367,13 +367,13 @@ const Io = (s) => s.addController(new Co(s)), Ao = Io;
|
|
|
367
367
|
* Copyright 2021 Google LLC
|
|
368
368
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
369
369
|
*/
|
|
370
|
-
const
|
|
370
|
+
const $o = () => (s, e) => (s.addInitializer(Ao), s);
|
|
371
371
|
/**
|
|
372
372
|
* @license
|
|
373
373
|
* Copyright 2020 Google LLC
|
|
374
374
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
375
375
|
*/
|
|
376
|
-
class
|
|
376
|
+
class cn {
|
|
377
377
|
constructor() {
|
|
378
378
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
379
379
|
this._resolve = e, this._reject = t;
|
|
@@ -394,7 +394,7 @@ class ln {
|
|
|
394
394
|
const ge = [];
|
|
395
395
|
for (let s = 0; s < 256; s++)
|
|
396
396
|
ge[s] = (s >> 4 & 15).toString(16) + (s & 15).toString(16);
|
|
397
|
-
function
|
|
397
|
+
function Ro(s) {
|
|
398
398
|
let e = 0, t = 8997, n = 0, r = 33826, o = 0, i = 40164, a = 0, c = 52210;
|
|
399
399
|
for (let d = 0; d < s.length; d++)
|
|
400
400
|
t ^= s.charCodeAt(d), e = t * 435, n = r * 435, o = i * 435, a = c * 435, o += t << 8, a += r << 8, n += e >>> 16, t = e & 65535, o += n >>> 16, r = n & 65535, c = a + (o >>> 16) & 65535, i = o & 65535;
|
|
@@ -407,14 +407,14 @@ function $o(s) {
|
|
|
407
407
|
*/
|
|
408
408
|
const Po = "", Mo = "h", Do = "s";
|
|
409
409
|
function Oo(s, e) {
|
|
410
|
-
return (e ? Mo : Do) +
|
|
410
|
+
return (e ? Mo : Do) + Ro(typeof s == "string" ? s : s.join(Po));
|
|
411
411
|
}
|
|
412
412
|
/**
|
|
413
413
|
* @license
|
|
414
414
|
* Copyright 2021 Google LLC
|
|
415
415
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
416
416
|
*/
|
|
417
|
-
const
|
|
417
|
+
const Sr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new Map();
|
|
418
418
|
function Lo(s, e, t) {
|
|
419
419
|
if (s) {
|
|
420
420
|
const n = t?.id ?? No(e), r = s[n];
|
|
@@ -422,7 +422,7 @@ function Lo(s, e, t) {
|
|
|
422
422
|
if (typeof r == "string")
|
|
423
423
|
return r;
|
|
424
424
|
if ("strTag" in r)
|
|
425
|
-
return
|
|
425
|
+
return an(
|
|
426
426
|
r.strings,
|
|
427
427
|
// Cast `template` because its type wasn't automatically narrowed (but
|
|
428
428
|
// we know it must be the same type as `localized`).
|
|
@@ -430,20 +430,20 @@ function Lo(s, e, t) {
|
|
|
430
430
|
r.values
|
|
431
431
|
);
|
|
432
432
|
{
|
|
433
|
-
let o =
|
|
434
|
-
return o === void 0 && (o = r.values,
|
|
433
|
+
let o = Sr.get(r);
|
|
434
|
+
return o === void 0 && (o = r.values, Sr.set(r, o)), {
|
|
435
435
|
...r,
|
|
436
436
|
values: o.map((i) => e.values[i])
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return ln(e);
|
|
442
442
|
}
|
|
443
443
|
function No(s) {
|
|
444
444
|
const e = typeof s == "string" ? s : s.strings;
|
|
445
|
-
let t =
|
|
446
|
-
return t === void 0 && (t = Oo(e, typeof s != "string" && !("strTag" in s)),
|
|
445
|
+
let t = Tr.get(e);
|
|
446
|
+
return t === void 0 && (t = Oo(e, typeof s != "string" && !("strTag" in s)), Tr.set(e, t)), t;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @license
|
|
@@ -453,25 +453,25 @@ function No(s) {
|
|
|
453
453
|
function ns(s) {
|
|
454
454
|
window.dispatchEvent(new CustomEvent(gs, { detail: s }));
|
|
455
455
|
}
|
|
456
|
-
let At = "", os,
|
|
456
|
+
let At = "", os, hn, $t, fs, dn, Ie = new cn();
|
|
457
457
|
Ie.resolve();
|
|
458
458
|
let kt = 0;
|
|
459
|
-
const zo = (s) => (
|
|
459
|
+
const zo = (s) => (Eo(((e, t) => Lo(dn, e, t))), At = hn = s.sourceLocale, $t = new Set(s.targetLocales), $t.add(s.sourceLocale), fs = s.loadLocale, { getLocale: Fo, setLocale: Uo }), Fo = () => At, Uo = (s) => {
|
|
460
460
|
if (s === (os ?? At))
|
|
461
461
|
return Ie.promise;
|
|
462
|
-
if (
|
|
462
|
+
if (!$t || !fs)
|
|
463
463
|
throw new Error("Internal error");
|
|
464
|
-
if (
|
|
464
|
+
if (!$t.has(s))
|
|
465
465
|
throw new Error("Invalid locale code");
|
|
466
466
|
kt++;
|
|
467
467
|
const e = kt;
|
|
468
|
-
return os = s, Ie.settled && (Ie = new
|
|
468
|
+
return os = s, Ie.settled && (Ie = new cn()), ns({ status: "loading", loadingLocale: s }), (s === hn ? (
|
|
469
469
|
// We could switch to the source locale synchronously, but we prefer to
|
|
470
470
|
// queue it on a microtask so that switching locales is consistently
|
|
471
471
|
// asynchronous.
|
|
472
472
|
Promise.resolve({ templates: void 0 })
|
|
473
473
|
) : fs(s)).then((n) => {
|
|
474
|
-
kt === e && (At = s, os = void 0,
|
|
474
|
+
kt === e && (At = s, os = void 0, dn = n.templates, ns({ status: "ready", readyLocale: s }), Ie.resolve());
|
|
475
475
|
}, (n) => {
|
|
476
476
|
kt === e && (ns({
|
|
477
477
|
status: "error",
|
|
@@ -479,7 +479,7 @@ const zo = (s) => (To(((e, t) => Lo(hn, e, t))), At = cn = s.sourceLocale, Rt =
|
|
|
479
479
|
errorMessage: n.toString()
|
|
480
480
|
}), Ie.reject(n));
|
|
481
481
|
}), Ie.promise;
|
|
482
|
-
}, Bo = `/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:#fcf1ee;--color-red-600:#cc453e;--color-green-100:#eef5ee;--color-green-600:#448548;--color-blue-100:#edf4fe;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-100:#f2f3f5;--color-neutral-200:#e2e4e9;--color-neutral-300:#cccfd7;--color-neutral-600:#6f7687;--color-neutral-700:oklch(37.1% 0 0);--spacing:.25rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:"Inter",sans-serif;--default-mono-font-family:var(--font-mono);--color-primary-600:#377ea0;--color-primary-800:#1f4e66;--color-primary-900:#133445;--color-secondary-100:#fcf0e7;--color-secondary-200:#fae0ce;--color-utility-gray:#b9b9b9;--scrollbar-color-default:var(--color-neutral-300);--scrollbar-color-hover:var(--color-neutral-600);--tw-inset-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[role=button]:not(:disabled),button:not(:disabled){cursor:pointer}}@layer components{.btn{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;cursor:pointer;outline-offset:4px;border-radius:.25rem;outline-width:2px;justify-content:center;align-items:center;transition:all .2s ease-in-out;display:flex;position:relative}.btn:disabled{pointer-events:none}.btn-primary{background-color:var(--color-primary-800);color:var(--color-secondary-100);outline-color:var(--color-primary-800)}@media (hover:hover){.btn-primary:hover{background-color:var(--color-primary-900)}}.btn-primary:disabled{background-color:var(--color-gray-200);color:var(--color-gray-500)}.btn-primary svg{color:var(--color-secondary-200)}.btn-primary:disabled{border-color:var(--color-neutral-200);background-color:var(--color-neutral-200);color:var(--color-neutral-600)}.btn-primary:disabled svg{color:var(--color-neutral-600)}.btn-secondary{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--color-primary-800);color:var(--color-primary-800);outline-color:var(--color-primary-800)}@media (hover:hover){.btn-secondary:hover{background-color:var(--color-secondary-200);color:var(--color-primary-900)}}.btn-secondary svg{color:var(--color-primary-800)}@media (hover:hover){.btn-secondary:hover svg{color:var(--color-primary-600)}}.btn-secondary:disabled{border-color:var(--color-neutral-300);background-color:var(--color-neutral-100);color:var(--color-utility-gray)}.btn-secondary:disabled svg{color:var(--color-neutral-600)}.btn-ghost{border-style:var(--tw-border-style);--tw-border-style:solid;outline-color:var(--color-primary-800);background-color:#0000;border:1px solid #0000}@media (hover:hover){.btn-ghost:hover{border-color:var(--color-primary-600);color:var(--color-primary-900);background-color:#0000}}.btn-ghost svg{color:var(--color-primary-800)}@media (hover:hover){.btn-ghost:hover svg{color:var(--color-primary-600)}}.btn-ghost:disabled{color:var(--color-utility-gray)}.btn-ghost:disabled svg{color:var(--color-neutral-300)}.prose>:last-child,.prose>:last-child table,.prose>:last-child pre{margin-bottom:0!important}.text-shimmer-primary{--shimmer-color:var(--color-primary-900);--shimmer-contrast:oklch(60% 0 0)}.text-shimmer{color:#0000;-webkit-text-fill-color:transparent;background:var(--shimmer-color)linear-gradient(to right,var(--shimmer-color)0,var(--shimmer-contrast)40%,var(--shimmer-contrast)60%,var(--shimmer-color)100%);background:var(--shimmer-color)-webkit-gradient(linear,100% 0,0 0,from(var(--shimmer-color)),color-stop(.4,var(--shimmer-contrast)),color-stop(.6,var(--shimmer-contrast)),to(var(--shimmer-color)));background-repeat:no-repeat;background-size:50% 200%;-webkit-background-clip:text;background-clip:text;animation-name:loading-shimmer;animation-duration:3s;animation-iteration-count:infinite;animation-delay:.1s;display:inline-block}.animate-grow{opacity:.3;animation-name:grow;animation-duration:1.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-delay:0s}.skeleton{animation:var(--animate-pulse);border-radius:var(--radius-sm);background-color:var(--color-neutral-200)}}@layer utilities{.\\@container\\/main{container:main/inline-size}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-50{z-index:50}.m-0{margin:calc(var(--spacing)*0)}.m-4{margin:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-auto{margin-block:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px rgb(var(--tw-prose-kbd-shadows)/10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:NaN NaN NaN;--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-square{aspect-ratio:1}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-14{height:calc(var(--spacing)*14)}.h-24{height:calc(var(--spacing)*24)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-auto{height:auto}.h-full{height:100%}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-9{min-height:calc(var(--spacing)*9)}.min-h-full{min-height:100%}.w-2{width:calc(var(--spacing)*2)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[90\\%\\]{max-width:90%}.max-w-\\[calc\\(100\\%-80px\\)\\]{max-width:calc(100% - 80px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-grow-1{flex-grow:1}.basis-auto{flex-basis:auto}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.resize-none{resize:none}.grid-cols-\\[auto_1fr_auto\\]{grid-template-columns:auto 1fr auto}.\\[grid-template-rows\\:auto_1fr_auto\\]{grid-template-rows:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-x-2{column-gap:calc(var(--spacing)*2)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing)*1)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-8{row-gap:calc(var(--spacing)*8)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-green-600{border-color:var(--color-green-600)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-600{border-color:var(--color-neutral-600)}.border-red-600{border-color:var(--color-red-600)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary-200{background-color:var(--color-secondary-200)}.object-cover{object-fit:cover}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-pre-wrap{white-space:pre-wrap}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-primary-800{color:var(--color-primary-800)}.text-primary-900{color:var(--color-primary-900)}.text-red-600{color:var(--color-red-600)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-primary-800{outline-color:var(--color-primary-800)}.transition-\\[transform\\,opacity\\,height\\,visibility\\]{transition-property:transform,opacity,height,visibility;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[-webkit-mask\\:radial-gradient\\(farthest-side\\,transparent_calc\\(100\\%-3px\\)\\,\\#000_0\\)\\]{-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0)}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[animation-delay\\:0\\.6s\\]{animation-delay:.6s}.\\[background\\:conic-gradient\\(theme\\(colors\\.primary-600\\)_0_30\\%\\,transparent_30\\%_100\\%\\)\\]{background:conic-gradient(#377ea0 0 30%,transparent 30% 100%)}.\\[grid-area\\:content\\]{grid-area:content}.\\[grid-area\\:footer\\]{grid-area:footer}.\\[grid-area\\:header\\]{grid-area:header}.\\[grid-area\\:leading\\]{grid-area:leading}.\\[grid-area\\:primary\\]{grid-area:primary}.\\[grid-area\\:trailing\\]{grid-area:trailing}.\\[grid-template-areas\\:\\'header\\'\\'content\\'\\'footer\\'\\]{grid-template-areas:"header""content""footer"}.\\[grid-template-areas\\:\\'header_header_header\\'_\\'leading_primary_trailing\\'_\\'\\._footer_\\.\\'\\]{grid-template-areas:"header header header""leading primary trailing"".footer."}.\\[grid-template-areas\\:\\'leading_primary\\'\\]{grid-template-areas:"leading primary"}.\\[grid-template-areas\\:\\'leading_primary_trailing\\'\\]{grid-template-areas:"leading primary trailing"}.\\[mask\\:radial-gradient\\(farthest-side\\,transparent_calc\\(100\\%-3px\\)\\,\\#000_0\\)\\]{-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0);mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0)}.not-group-aria-expanded\\:-rotate-90:not(:is(:where(.group)[aria-expanded=true] *)){rotate:-90deg}.group-focus-within\\/composer\\:outline-solid:is(:where(.group\\/composer):focus-within *){--tw-outline-style:solid;outline-style:solid}.group-data-expanded\\/composer\\:\\[grid-template-areas\\:\\'header_header_header\\'_\\'primary_primary_primary\\'_\\'leading_footer_trailing\\'\\]:is(:where(.group\\/composer)[data-expanded] *){grid-template-areas:"header header header""primary primary primary""leading footer trailing"}.group-data-\\[error\\=true\\]\\/composer\\:border-red-600:is(:where(.group\\/composer)[data-error=true] *){border-color:var(--color-red-600)}.group-data-\\[error\\=true\\]\\/composer\\:bg-red-100:is(:where(.group\\/composer)[data-error=true] *){background-color:var(--color-red-100)}.group-data-\\[error\\=true\\]\\/composer\\:outline-red-600:is(:where(.group\\/composer)[data-error=true] *){outline-color:var(--color-red-600)}.placeholder\\:text-utility-gray::placeholder{color:var(--color-utility-gray)}.empty\\:hidden:empty{display:none}@media (hover:hover){.hover\\:text-primary-900:hover{color:var(--color-primary-900)}.hover\\:underline:hover{text-decoration-line:underline}}.active\\:outline-2:active{outline-style:var(--tw-outline-style);outline-width:2px}.data-\\[loading\\=true\\]\\:bg-transparent[data-loading=true]{background-color:#0000}.data-\\[selected\\=true\\]\\:bg-secondary-200[data-selected=true]{background-color:var(--color-secondary-200)}.data-\\[selected\\=true\\]\\:text-primary-900[data-selected=true]{color:var(--color-primary-900)}@container (min-width:20rem){.\\@xs\\:flex{display:flex}}@container (min-width:28rem){.\\@md\\:w-1\\/2{width:50%}.\\@md\\:w-36{width:calc(var(--spacing)*36)}.\\@md\\:w-\\[90\\%\\]{width:90%}.\\@md\\:flex-row{flex-direction:row}}@container main (min-width:32rem){.\\@lg\\/main\\:px-4{padding-inline:calc(var(--spacing)*4)}}@container (min-width:36rem){.\\@xl\\:grid{display:grid}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.prose-table\\:min-w-max :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){min-width:max-content}.\\[\\&_svg\\]\\:text-green-600 svg{color:var(--color-green-600)}.\\[\\&_svg\\]\\:text-red-600 svg{color:var(--color-red-600)}.text-message{font-size:.875rem;line-height:1.71429}}@layer scroll{.overflow-auto:hover,.overflow-scroll:hover,.overflow-x-auto:hover,.overflow-y-auto:hover,textarea:hover{scrollbar-color:var(--scrollbar-color-hover)transparent}.overflow-auto,.overflow-scroll,.overflow-x-auto,.overflow-y-auto,textarea{scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:var(--scrollbar-color-default)transparent;padding-inline:.5rem}:host-context([data-platform="windows"]) .overflow-scroll{padding-inline:0}:host-context([data-platform="windows"]) .overflow-x-auto{padding-inline:0}:host-context([data-platform="windows"]) .overflow-y-auto{padding-inline:0}:host-context([data-platform="windows"]) textarea{padding-inline:0}}@keyframes loading-shimmer{0%{background-position:-100% 0}to{background-position:250% 0}}@keyframes grow{0%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}80%{opacity:.3;transform:scale(.8)}to{opacity:.3;transform:scale(.8)}}:host{box-sizing:border-box}.prose-gaia{--tw-prose-body:var(--color-primary-900);--tw-prose-headings:var(--color-primary-900);--tw-prose-lead:var(--color-primary-900);--tw-prose-links:var(--color-primary-800);--tw-prose-bold:var(--color-primary-900);--tw-prose-counters:var(--color-primary-900);--tw-prose-bullets:var(--color-primary-900);--tw-prose-hr:var(--color-neutral-300);--tw-prose-quotes:var(--color-primary-800);--tw-prose-quote-borders:var(--color-neutral-300);--tw-prose-captions:var(--color-primary-900);--tw-prose-kbd:var(--color-primary-900);--tw-prose-kbd-shadows:0 0 0;--tw-prose-code:var(--color-primary-900);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:var(--color-neutral-300);--tw-prose-td-borders:var(--color-neutral-200);max-width:unset;overflow-wrap:break-word;width:100%;font-size:.875rem;line-height:1.71429}svg{width:inherit;height:inherit}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;
|
|
482
|
+
}, Bo = `/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:#fcf1ee;--color-red-600:#cc453e;--color-green-100:#eef5ee;--color-green-600:#448548;--color-blue-100:#edf4fe;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-100:#f2f3f5;--color-neutral-200:#e2e4e9;--color-neutral-300:#cccfd7;--color-neutral-600:#6f7687;--color-neutral-700:oklch(37.1% 0 0);--spacing: 4px ;--container-2xl:(42*16px);--text-xs: 12px ;--text-xs--line-height:calc(1/.75);--text-sm: 14px ;--text-sm--line-height:calc(1.25/.875);--text-lg: 18px ;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm: 4px ;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:"Inter",sans-serif;--default-mono-font-family:var(--font-mono);--color-primary-600:#377ea0;--color-primary-800:#1f4e66;--color-primary-900:#133445;--color-secondary-100:#fcf0e7;--color-secondary-200:#fae0ce;--color-utility-gray:#b9b9b9;--scrollbar-color-default:var(--color-neutral-300);--scrollbar-color-hover:var(--color-neutral-600);--tw-inset-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-outline-style:solid}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root,:host,html{font-size:16px}[role=button]:not(:disabled),button:not(:disabled){cursor:pointer}}@layer components{.btn{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;cursor:pointer;outline-offset:4px;border-radius:4px;outline-width:2px;justify-content:center;align-items:center;transition:all .2s ease-in-out;display:flex;position:relative}.btn:disabled{pointer-events:none}.btn-primary{background-color:var(--color-primary-800);color:var(--color-secondary-100);outline-color:var(--color-primary-800)}@media (hover:hover){.btn-primary:hover{background-color:var(--color-primary-900)}}.btn-primary:disabled{background-color:var(--color-gray-200);color:var(--color-gray-500)}.btn-primary svg{color:var(--color-secondary-200)}.btn-primary:disabled{border-color:var(--color-neutral-200);background-color:var(--color-neutral-200);color:var(--color-neutral-600)}.btn-primary:disabled svg{color:var(--color-neutral-600)}.btn-secondary{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--color-primary-800);color:var(--color-primary-800);outline-color:var(--color-primary-800)}@media (hover:hover){.btn-secondary:hover{background-color:var(--color-secondary-200);color:var(--color-primary-900)}}.btn-secondary svg{color:var(--color-primary-800)}@media (hover:hover){.btn-secondary:hover svg{color:var(--color-primary-600)}}.btn-secondary:disabled{border-color:var(--color-neutral-300);background-color:var(--color-neutral-100);color:var(--color-utility-gray)}.btn-secondary:disabled svg{color:var(--color-neutral-600)}.btn-ghost{border-style:var(--tw-border-style);--tw-border-style:solid;outline-color:var(--color-primary-800);background-color:#0000;border:1px solid #0000}@media (hover:hover){.btn-ghost:hover{border-color:var(--color-primary-600);color:var(--color-primary-900);background-color:#0000}}.btn-ghost svg{color:var(--color-primary-800)}@media (hover:hover){.btn-ghost:hover svg{color:var(--color-primary-600)}}.btn-ghost:disabled{color:var(--color-utility-gray)}.btn-ghost:disabled svg{color:var(--color-neutral-300)}.prose>:last-child,.prose>:last-child table,.prose>:last-child pre{margin-bottom:0!important}.text-shimmer-primary{--shimmer-color:var(--color-primary-900);--shimmer-contrast:oklch(60% 0 0)}.text-shimmer{color:#0000;-webkit-text-fill-color:transparent;background:var(--shimmer-color)linear-gradient(to right,var(--shimmer-color)0,var(--shimmer-contrast)40%,var(--shimmer-contrast)60%,var(--shimmer-color)100%);background:var(--shimmer-color)-webkit-gradient(linear,100% 0,0 0,from(var(--shimmer-color)),color-stop(.4,var(--shimmer-contrast)),color-stop(.6,var(--shimmer-contrast)),to(var(--shimmer-color)));background-repeat:no-repeat;background-size:50% 200%;-webkit-background-clip:text;background-clip:text;animation-name:loading-shimmer;animation-duration:3s;animation-iteration-count:infinite;animation-delay:.1s;display:inline-block}.animate-grow{opacity:.3;animation-name:grow;animation-duration:1.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-delay:0s}.skeleton{animation:var(--animate-pulse);border-radius:var(--radius-sm);background-color:var(--color-neutral-200)}}@layer utilities{.\\@container\\/main{container:main/inline-size}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-50{z-index:50}.m-0{margin:calc(var(--spacing)*0)}.m-4{margin:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-auto{margin-block:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px rgb(var(--tw-prose-kbd-shadows)/10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:NaN NaN NaN;--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-square{aspect-ratio:1}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-14{height:calc(var(--spacing)*14)}.h-24{height:calc(var(--spacing)*24)}.h-\\[18\\.4px\\]{height:18.4px}.h-auto{height:auto}.h-full{height:100%}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-9{min-height:calc(var(--spacing)*9)}.min-h-full{min-height:100%}.w-2{width:calc(var(--spacing)*2)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[90\\%\\]{max-width:90%}.max-w-\\[calc\\(100\\%-80px\\)\\]{max-width:calc(100% - 80px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-grow-1{flex-grow:1}.basis-auto{flex-basis:auto}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.resize-none{resize:none}.grid-cols-\\[auto_1fr_auto\\]{grid-template-columns:auto 1fr auto}.\\[grid-template-rows\\:auto_1fr_auto\\]{grid-template-rows:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-x-2{column-gap:calc(var(--spacing)*2)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing)*1)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-8{row-gap:calc(var(--spacing)*8)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-green-600{border-color:var(--color-green-600)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-600{border-color:var(--color-neutral-600)}.border-red-600{border-color:var(--color-red-600)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary-200{background-color:var(--color-secondary-200)}.object-cover{object-fit:cover}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-pre-wrap{white-space:pre-wrap}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-primary-800{color:var(--color-primary-800)}.text-primary-900{color:var(--color-primary-900)}.text-red-600{color:var(--color-red-600)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-primary-800{outline-color:var(--color-primary-800)}.transition-\\[transform\\,opacity\\,height\\,visibility\\]{transition-property:transform,opacity,height,visibility;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[-webkit-mask\\:radial-gradient\\(farthest-side\\,transparent_calc\\(100\\%-3px\\)\\,\\#000_0\\)\\]{-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0)}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[animation-delay\\:0\\.6s\\]{animation-delay:.6s}.\\[background\\:conic-gradient\\(theme\\(colors\\.primary-600\\)_0_30\\%\\,transparent_30\\%_100\\%\\)\\]{background:conic-gradient(#377ea0 0 30%,transparent 30% 100%)}.\\[grid-area\\:content\\]{grid-area:content}.\\[grid-area\\:footer\\]{grid-area:footer}.\\[grid-area\\:header\\]{grid-area:header}.\\[grid-area\\:leading\\]{grid-area:leading}.\\[grid-area\\:primary\\]{grid-area:primary}.\\[grid-area\\:trailing\\]{grid-area:trailing}.\\[grid-template-areas\\:\\'header\\'\\'content\\'\\'footer\\'\\]{grid-template-areas:"header""content""footer"}.\\[grid-template-areas\\:\\'header_header_header\\'_\\'leading_primary_trailing\\'_\\'\\._footer_\\.\\'\\]{grid-template-areas:"header header header""leading primary trailing"".footer."}.\\[grid-template-areas\\:\\'leading_primary\\'\\]{grid-template-areas:"leading primary"}.\\[grid-template-areas\\:\\'leading_primary_trailing\\'\\]{grid-template-areas:"leading primary trailing"}.\\[mask\\:radial-gradient\\(farthest-side\\,transparent_calc\\(100\\%-3px\\)\\,\\#000_0\\)\\]{-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0);mask:radial-gradient(farthest-side,#0000 calc(100% - 3px),#000 0)}.not-group-aria-expanded\\:-rotate-90:not(:is(:where(.group)[aria-expanded=true] *)){rotate:-90deg}.group-focus-within\\/composer\\:outline-solid:is(:where(.group\\/composer):focus-within *){--tw-outline-style:solid;outline-style:solid}.group-data-expanded\\/composer\\:\\[grid-template-areas\\:\\'header_header_header\\'_\\'primary_primary_primary\\'_\\'leading_footer_trailing\\'\\]:is(:where(.group\\/composer)[data-expanded] *){grid-template-areas:"header header header""primary primary primary""leading footer trailing"}.group-data-\\[error\\=true\\]\\/composer\\:border-red-600:is(:where(.group\\/composer)[data-error=true] *){border-color:var(--color-red-600)}.group-data-\\[error\\=true\\]\\/composer\\:bg-red-100:is(:where(.group\\/composer)[data-error=true] *){background-color:var(--color-red-100)}.group-data-\\[error\\=true\\]\\/composer\\:outline-red-600:is(:where(.group\\/composer)[data-error=true] *){outline-color:var(--color-red-600)}.placeholder\\:text-utility-gray::placeholder{color:var(--color-utility-gray)}.empty\\:hidden:empty{display:none}@media (hover:hover){.hover\\:text-primary-900:hover{color:var(--color-primary-900)}.hover\\:underline:hover{text-decoration-line:underline}}.active\\:outline-2:active{outline-style:var(--tw-outline-style);outline-width:2px}.data-\\[loading\\=true\\]\\:bg-transparent[data-loading=true]{background-color:#0000}.data-\\[selected\\=true\\]\\:bg-secondary-200[data-selected=true]{background-color:var(--color-secondary-200)}.data-\\[selected\\=true\\]\\:text-primary-900[data-selected=true]{color:var(--color-primary-900)}@container (min-width:20rem){.\\@xs\\:flex{display:flex}}@container (min-width:28rem){.\\@md\\:w-1\\/2{width:50%}.\\@md\\:w-36{width:calc(var(--spacing)*36)}.\\@md\\:w-\\[90\\%\\]{width:90%}.\\@md\\:flex-row{flex-direction:row}}@container main (min-width:32rem){.\\@lg\\/main\\:px-4{padding-inline:calc(var(--spacing)*4)}}@container (min-width:36rem){.\\@xl\\:grid{display:grid}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.prose-table\\:min-w-max :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){min-width:max-content}.\\[\\&_svg\\]\\:text-green-600 svg{color:var(--color-green-600)}.\\[\\&_svg\\]\\:text-red-600 svg{color:var(--color-red-600)}.text-message{font-size:14px;line-height:1.71429}}@layer scroll{.overflow-auto:hover,.overflow-scroll:hover,.overflow-x-auto:hover,.overflow-y-auto:hover,textarea:hover{scrollbar-color:var(--scrollbar-color-hover)transparent}.overflow-auto,.overflow-scroll,.overflow-x-auto,.overflow-y-auto,textarea{scrollbar-width:thin;scrollbar-gutter:stable both-edges;scrollbar-color:var(--scrollbar-color-default)transparent;padding-inline:4px}:host-context([data-platform="windows"]) .overflow-scroll{padding-inline:0}:host-context([data-platform="windows"]) .overflow-x-auto{padding-inline:0}:host-context([data-platform="windows"]) .overflow-y-auto{padding-inline:0}:host-context([data-platform="windows"]) textarea{padding-inline:0}}@keyframes loading-shimmer{0%{background-position:-100% 0}to{background-position:250% 0}}@keyframes grow{0%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}80%{opacity:.3;transform:scale(.8)}to{opacity:.3;transform:scale(.8)}}:host{box-sizing:border-box}.prose-gaia{--tw-prose-body:var(--color-primary-900);--tw-prose-headings:var(--color-primary-900);--tw-prose-lead:var(--color-primary-900);--tw-prose-links:var(--color-primary-800);--tw-prose-bold:var(--color-primary-900);--tw-prose-counters:var(--color-primary-900);--tw-prose-bullets:var(--color-primary-900);--tw-prose-hr:var(--color-neutral-300);--tw-prose-quotes:var(--color-primary-800);--tw-prose-quote-borders:var(--color-neutral-300);--tw-prose-captions:var(--color-primary-900);--tw-prose-kbd:var(--color-primary-900);--tw-prose-kbd-shadows:0 0 0;--tw-prose-code:var(--color-primary-900);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:var(--color-neutral-300);--tw-prose-td-borders:var(--color-neutral-200);max-width:unset;overflow-wrap:break-word;width:100%;font-size:14px;line-height:1.71429}svg{width:inherit;height:inherit}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;
|
|
483
483
|
var Ho = Object.getOwnPropertyDescriptor, jo = (s, e, t, n) => {
|
|
484
484
|
for (var r = n > 1 ? void 0 : n ? Ho(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
485
485
|
(i = s[o]) && (r = i(r) || r);
|
|
@@ -491,7 +491,7 @@ let oe = class extends io {
|
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
oe = jo([
|
|
494
|
-
|
|
494
|
+
$o()
|
|
495
495
|
], oe);
|
|
496
496
|
const Wo = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-icon lucide-arrow-up"><path d="m5 12 7-7 7 7"/><path d="M12 19V5"/></svg>', Is = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert-icon lucide-circle-alert"><circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg>';
|
|
497
497
|
class qo extends CustomEvent {
|
|
@@ -528,7 +528,7 @@ class As extends CustomEvent {
|
|
|
528
528
|
super("toggle-feedback-form", { detail: { target: e }, composed: !0 });
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
class
|
|
531
|
+
class $s extends CustomEvent {
|
|
532
532
|
constructor() {
|
|
533
533
|
super("clear-conversation", { composed: !0 });
|
|
534
534
|
}
|
|
@@ -555,7 +555,7 @@ var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, Le = (s, e
|
|
|
555
555
|
};
|
|
556
556
|
let ke = class extends oe {
|
|
557
557
|
constructor() {
|
|
558
|
-
super(...arguments), this.
|
|
558
|
+
super(...arguments), this.maxHeightPx = 192, this.typingThrottleMs = 2e3, this.lastTypingSent = 0, this.maxInputLength = 100, this.disabled = !1, this.loading = !1, this.text = "", this.error = "";
|
|
559
559
|
}
|
|
560
560
|
get canSubmit() {
|
|
561
561
|
return this.text.trim() !== "" && !this.loading && !this.hasError && !this.disabled;
|
|
@@ -573,9 +573,7 @@ let ke = class extends oe {
|
|
|
573
573
|
s.key === "Enter" && !s.shiftKey && (s.preventDefault(), this.sendMessage());
|
|
574
574
|
}
|
|
575
575
|
onInput() {
|
|
576
|
-
this.text = this.textarea.value, this.maybeEmitTyping(), this.textarea.style.height = "auto";
|
|
577
|
-
const s = parseFloat(getComputedStyle(document.documentElement).fontSize || "16"), e = this.maxHeightRem * s;
|
|
578
|
-
this.textarea.style.height = Math.min(this.textarea.scrollHeight, e) + "px", this.textarea.style.overflowY = this.textarea.scrollHeight > e ? "auto" : "hidden", this.validateInput();
|
|
576
|
+
this.text = this.textarea.value, this.maybeEmitTyping(), this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, this.maxHeightPx) + "px", this.textarea.style.overflowY = this.textarea.scrollHeight > this.maxHeightPx ? "auto" : "hidden", this.validateInput();
|
|
579
577
|
}
|
|
580
578
|
maybeEmitTyping() {
|
|
581
579
|
if (this.disabled) return;
|
|
@@ -585,15 +583,15 @@ let ke = class extends oe {
|
|
|
585
583
|
render() {
|
|
586
584
|
return b` <div class="group/composer w-full p-4 max-w-2xl mx-auto" data-error=${this.hasError}>
|
|
587
585
|
<div
|
|
588
|
-
class="outline-primary-800 rounded-sm border border-solid border-neutral-600 px-2 outline-2 group-focus-within/composer:outline-solid group-data-[error=true]/composer:border-red-600 group-data-[error=true]/composer:bg-red-100 group-data-[error=true]/composer:outline-red-600"
|
|
586
|
+
class="outline-primary-800 rounded-sm outline-none border border-solid border-neutral-600 px-2 outline-2 group-focus-within/composer:outline-solid group-data-[error=true]/composer:border-red-600 group-data-[error=true]/composer:bg-red-100 group-data-[error=true]/composer:outline-red-600"
|
|
589
587
|
>
|
|
590
588
|
<div
|
|
591
589
|
class="grid grid-cols-[auto_1fr_auto] [grid-template-areas:'header_header_header'_'leading_primary_trailing'_'._footer_.'] group-data-expanded/composer:[grid-template-areas:'header_header_header'_'primary_primary_primary'_'leading_footer_trailing']"
|
|
592
590
|
>
|
|
593
591
|
<div class="flex items-center overflow-x-hidden px-1.5 py-2 [grid-area:primary]">
|
|
594
|
-
<textarea style=${`max-height: ${this.
|
|
592
|
+
<textarea style=${`max-height: ${this.maxHeightPx}px`}
|
|
595
593
|
name="composer-textarea"
|
|
596
|
-
class="text-primary-900 placeholder:text-utility-gray h-[
|
|
594
|
+
class="text-primary-900 placeholder:text-utility-gray h-[18.4px] w-full resize-none overflow-hidden text-sm outline-none"
|
|
597
595
|
spellcheck="false"
|
|
598
596
|
@keydown=${this.onKeyDown}
|
|
599
597
|
@input=${this.onInput}
|
|
@@ -653,13 +651,13 @@ let ke = class extends oe {
|
|
|
653
651
|
}
|
|
654
652
|
};
|
|
655
653
|
Le([
|
|
656
|
-
|
|
654
|
+
E({ type: Number, attribute: "max-input-length" })
|
|
657
655
|
], ke.prototype, "maxInputLength", 2);
|
|
658
656
|
Le([
|
|
659
|
-
|
|
657
|
+
E({ attribute: !1 })
|
|
660
658
|
], ke.prototype, "disabled", 2);
|
|
661
659
|
Le([
|
|
662
|
-
|
|
660
|
+
E({ attribute: !1 })
|
|
663
661
|
], ke.prototype, "loading", 2);
|
|
664
662
|
Le([
|
|
665
663
|
xe()
|
|
@@ -668,12 +666,12 @@ Le([
|
|
|
668
666
|
xe()
|
|
669
667
|
], ke.prototype, "error", 2);
|
|
670
668
|
Le([
|
|
671
|
-
|
|
669
|
+
en('textarea[name="composer-textarea"]')
|
|
672
670
|
], ke.prototype, "textarea", 2);
|
|
673
671
|
ke = Le([
|
|
674
672
|
te("gaia-chat-composer")
|
|
675
673
|
], ke);
|
|
676
|
-
const
|
|
674
|
+
const pn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-megaphone-icon lucide-megaphone"><path d="M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"/><path d="M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"/><path d="M8 6v8"/></svg>', ei = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-minimize2-icon lucide-minimize-2"><path d="m14 10 7-7"/><path d="M20 10h-6V4"/><path d="m3 21 7-7"/><path d="M4 14h6v6"/></svg>', un = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-pen-icon lucide-square-pen"><path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"/></svg>';
|
|
677
675
|
var ti = Object.defineProperty, si = Object.getOwnPropertyDescriptor, zt = (s, e, t, n) => {
|
|
678
676
|
for (var r = n > 1 ? void 0 : n ? si(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
679
677
|
(i = s[o]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
|
@@ -684,7 +682,7 @@ let at = class extends oe {
|
|
|
684
682
|
super(...arguments), this.hasEmptyMessages = !0, this.disabled = !1, this.closeable = !0;
|
|
685
683
|
}
|
|
686
684
|
clearConversation() {
|
|
687
|
-
this.dispatchEvent(new
|
|
685
|
+
this.dispatchEvent(new $s());
|
|
688
686
|
}
|
|
689
687
|
openFeedbackForm() {
|
|
690
688
|
this.dispatchEvent(new As("assistant"));
|
|
@@ -704,14 +702,14 @@ let at = class extends oe {
|
|
|
704
702
|
@click=${this.openFeedbackForm}
|
|
705
703
|
?disabled=${this.hasEmptyMessages || this.disabled}
|
|
706
704
|
>
|
|
707
|
-
<div class="flex size-4 items-center justify-center">${
|
|
705
|
+
<div class="flex size-4 items-center justify-center">${tn(pn)}</div>
|
|
708
706
|
</button>
|
|
709
707
|
<button
|
|
710
708
|
class="btn btn-ghost p-1"
|
|
711
709
|
@click=${this.clearConversation}
|
|
712
710
|
?disabled=${this.hasEmptyMessages || this.disabled}
|
|
713
711
|
>
|
|
714
|
-
<div class="flex size-4 items-center justify-center">${M(
|
|
712
|
+
<div class="flex size-4 items-center justify-center">${M(un)}</div>
|
|
715
713
|
</button>
|
|
716
714
|
${this.closeable ? b`
|
|
717
715
|
<button class="btn btn-ghost p-1" @click=${this.closeChat}>
|
|
@@ -726,19 +724,19 @@ let at = class extends oe {
|
|
|
726
724
|
}
|
|
727
725
|
};
|
|
728
726
|
zt([
|
|
729
|
-
|
|
727
|
+
E({ attribute: !1 })
|
|
730
728
|
], at.prototype, "hasEmptyMessages", 2);
|
|
731
729
|
zt([
|
|
732
|
-
|
|
730
|
+
E({ attribute: !1 })
|
|
733
731
|
], at.prototype, "disabled", 2);
|
|
734
732
|
zt([
|
|
735
|
-
|
|
733
|
+
E({ attribute: !1 })
|
|
736
734
|
], at.prototype, "closeable", 2);
|
|
737
735
|
at = zt([
|
|
738
736
|
te("gaia-chat-menu")
|
|
739
737
|
], at);
|
|
740
738
|
const ri = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>';
|
|
741
|
-
var ni = Object.defineProperty, oi = Object.getOwnPropertyDescriptor,
|
|
739
|
+
var ni = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, gn = (s, e, t, n) => {
|
|
742
740
|
for (var r = n > 1 ? void 0 : n ? oi(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
743
741
|
(i = s[o]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
|
744
742
|
return n && r && ni(e, t, r), r;
|
|
@@ -752,7 +750,7 @@ let ms = class extends oe {
|
|
|
752
750
|
role="alert"
|
|
753
751
|
aria-live="assertive"
|
|
754
752
|
class="absolute bottom-0 left-1/2 z-50 flex w-full items-center justify-center"
|
|
755
|
-
style="transform: translateX(-50%) translateY(
|
|
753
|
+
style="transform: translateX(-50%) translateY(16px)"
|
|
756
754
|
>
|
|
757
755
|
<div
|
|
758
756
|
class="m-4 grid grid-cols-[auto_1fr_auto] gap-2 rounded-sm border border-solid border-red-600 bg-red-100 p-4 [grid-template-areas:'leading_primary_trailing']"
|
|
@@ -776,23 +774,23 @@ let ms = class extends oe {
|
|
|
776
774
|
</div>` : V;
|
|
777
775
|
}
|
|
778
776
|
};
|
|
779
|
-
|
|
780
|
-
|
|
777
|
+
gn([
|
|
778
|
+
E({ attribute: !1 })
|
|
781
779
|
], ms.prototype, "error", 2);
|
|
782
|
-
ms =
|
|
780
|
+
ms = gn([
|
|
783
781
|
te("gaia-chat-error")
|
|
784
782
|
], ms);
|
|
785
783
|
const ii = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send-icon lucide-send"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/></svg>';
|
|
786
|
-
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor,
|
|
784
|
+
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, Rs = (s, e, t, n) => {
|
|
787
785
|
for (var r = n > 1 ? void 0 : n ? li(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
788
786
|
(i = s[o]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
|
789
787
|
return n && r && ai(e, t, r), r;
|
|
790
788
|
};
|
|
791
|
-
let
|
|
789
|
+
let Rt = class extends oe {
|
|
792
790
|
constructor() {
|
|
793
791
|
super(...arguments), this.ratings = [1, 2, 3, 4, 5], this.target = "assistant", this.textareaRef = ho(), this.selectedRating = 0, this.onSubmit = () => {
|
|
794
792
|
const s = this.textareaRef.value?.value ?? null;
|
|
795
|
-
this.isValid && (this.dispatchEvent(new Xo(this.target, this.selectedRating, s)), this.target === "support" && this.dispatchEvent(new
|
|
793
|
+
this.isValid && (this.dispatchEvent(new Xo(this.target, this.selectedRating, s)), this.target === "support" && this.dispatchEvent(new $s()));
|
|
796
794
|
}, this.onCancel = () => {
|
|
797
795
|
this.dispatchEvent(new As(null));
|
|
798
796
|
};
|
|
@@ -825,7 +823,7 @@ let $t = class extends oe {
|
|
|
825
823
|
})}
|
|
826
824
|
</h4>
|
|
827
825
|
<div class="flex items-center gap-x-2">
|
|
828
|
-
${
|
|
826
|
+
${rn(
|
|
829
827
|
this.ratings,
|
|
830
828
|
(s) => b`
|
|
831
829
|
<button
|
|
@@ -874,19 +872,19 @@ let $t = class extends oe {
|
|
|
874
872
|
</div>`;
|
|
875
873
|
}
|
|
876
874
|
};
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
],
|
|
880
|
-
|
|
875
|
+
Rs([
|
|
876
|
+
E({ type: String, attribute: "target" })
|
|
877
|
+
], Rt.prototype, "target", 2);
|
|
878
|
+
Rs([
|
|
881
879
|
xe()
|
|
882
|
-
],
|
|
883
|
-
|
|
880
|
+
], Rt.prototype, "selectedRating", 2);
|
|
881
|
+
Rt = Rs([
|
|
884
882
|
te("gaia-chat-feedback-form")
|
|
885
|
-
],
|
|
883
|
+
], Rt);
|
|
886
884
|
const ci = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>', hi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>', di = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-x-icon lucide-circle-x"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>', pi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-icon lucide-file"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg>', lt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles-icon lucide-sparkles"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/></svg>';
|
|
887
885
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
888
886
|
const {
|
|
889
|
-
entries:
|
|
887
|
+
entries: fn,
|
|
890
888
|
setPrototypeOf: Er,
|
|
891
889
|
isFrozen: ui,
|
|
892
890
|
getPrototypeOf: gi,
|
|
@@ -895,7 +893,7 @@ const {
|
|
|
895
893
|
let {
|
|
896
894
|
freeze: X,
|
|
897
895
|
seal: Q,
|
|
898
|
-
create:
|
|
896
|
+
create: mn
|
|
899
897
|
} = Object, {
|
|
900
898
|
apply: ws,
|
|
901
899
|
construct: bs
|
|
@@ -912,7 +910,7 @@ ws || (ws = function(e, t, n) {
|
|
|
912
910
|
bs || (bs = function(e, t) {
|
|
913
911
|
return new e(...t);
|
|
914
912
|
});
|
|
915
|
-
const xt = Y(Array.prototype.forEach), mi = Y(Array.prototype.lastIndexOf),
|
|
913
|
+
const xt = Y(Array.prototype.forEach), mi = Y(Array.prototype.lastIndexOf), Cr = Y(Array.prototype.pop), Ke = Y(Array.prototype.push), wi = Y(Array.prototype.splice), Ct = Y(String.prototype.toLowerCase), is = Y(String.prototype.toString), Ir = Y(String.prototype.match), Je = Y(String.prototype.replace), bi = Y(String.prototype.indexOf), vi = Y(String.prototype.trim), re = Y(Object.prototype.hasOwnProperty), q = Y(RegExp.prototype.test), Qe = yi(TypeError);
|
|
916
914
|
function Y(s) {
|
|
917
915
|
return function(e) {
|
|
918
916
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -948,8 +946,8 @@ function _i(s) {
|
|
|
948
946
|
return s;
|
|
949
947
|
}
|
|
950
948
|
function fe(s) {
|
|
951
|
-
const e =
|
|
952
|
-
for (const [t, n] of
|
|
949
|
+
const e = mn(null);
|
|
950
|
+
for (const [t, n] of fn(s))
|
|
953
951
|
re(s, t) && (Array.isArray(n) ? e[t] = _i(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = fe(n) : e[t] = n);
|
|
954
952
|
return e;
|
|
955
953
|
}
|
|
@@ -969,25 +967,25 @@ function et(s, e) {
|
|
|
969
967
|
}
|
|
970
968
|
return t;
|
|
971
969
|
}
|
|
972
|
-
const
|
|
970
|
+
const Ar = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), as = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ls = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ki = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), cs = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), xi = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $r = X(["#text"]), Rr = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), hs = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Pr = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Si = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ti = Q(/<%[\w\W]*|[\w\W]*%>/gm), Ei = Q(/\$\{[\w\W]*/gm), Ci = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ii = Q(/^aria-[\-\w]+$/), wn = Q(
|
|
973
971
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
974
972
|
// eslint-disable-line no-useless-escape
|
|
975
|
-
), Ai = Q(/^(?:\w+script|data):/i),
|
|
973
|
+
), Ai = Q(/^(?:\w+script|data):/i), $i = Q(
|
|
976
974
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
977
975
|
// eslint-disable-line no-control-regex
|
|
978
|
-
),
|
|
979
|
-
var
|
|
976
|
+
), bn = Q(/^html$/i), Ri = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
977
|
+
var Mr = /* @__PURE__ */ Object.freeze({
|
|
980
978
|
__proto__: null,
|
|
981
979
|
ARIA_ATTR: Ii,
|
|
982
|
-
ATTR_WHITESPACE:
|
|
983
|
-
CUSTOM_ELEMENT:
|
|
980
|
+
ATTR_WHITESPACE: $i,
|
|
981
|
+
CUSTOM_ELEMENT: Ri,
|
|
984
982
|
DATA_ATTR: Ci,
|
|
985
|
-
DOCTYPE_NAME:
|
|
986
|
-
ERB_EXPR:
|
|
987
|
-
IS_ALLOWED_URI:
|
|
983
|
+
DOCTYPE_NAME: bn,
|
|
984
|
+
ERB_EXPR: Ti,
|
|
985
|
+
IS_ALLOWED_URI: wn,
|
|
988
986
|
IS_SCRIPT_OR_DATA: Ai,
|
|
989
987
|
MUSTACHE_EXPR: Si,
|
|
990
|
-
TMPLIT_EXPR:
|
|
988
|
+
TMPLIT_EXPR: Ei
|
|
991
989
|
});
|
|
992
990
|
const tt = {
|
|
993
991
|
element: 1,
|
|
@@ -1017,7 +1015,7 @@ const tt = {
|
|
|
1017
1015
|
} catch {
|
|
1018
1016
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
1019
1017
|
}
|
|
1020
|
-
},
|
|
1018
|
+
}, Dr = function() {
|
|
1021
1019
|
return {
|
|
1022
1020
|
afterSanitizeAttributes: [],
|
|
1023
1021
|
afterSanitizeElements: [],
|
|
@@ -1030,9 +1028,9 @@ const tt = {
|
|
|
1030
1028
|
uponSanitizeShadowNode: []
|
|
1031
1029
|
};
|
|
1032
1030
|
};
|
|
1033
|
-
function
|
|
1031
|
+
function vn() {
|
|
1034
1032
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pi();
|
|
1035
|
-
const e = (f) =>
|
|
1033
|
+
const e = (f) => vn(f);
|
|
1036
1034
|
if (e.version = "3.2.6", e.removed = [], !s || !s.document || s.document.nodeType !== tt.document || !s.Element)
|
|
1037
1035
|
return e.isSupported = !1, e;
|
|
1038
1036
|
let {
|
|
@@ -1047,23 +1045,23 @@ function bn() {
|
|
|
1047
1045
|
NamedNodeMap: u = s.NamedNodeMap || s.MozNamedAttrMap,
|
|
1048
1046
|
HTMLFormElement: w,
|
|
1049
1047
|
DOMParser: _,
|
|
1050
|
-
trustedTypes:
|
|
1051
|
-
} = s,
|
|
1048
|
+
trustedTypes: $
|
|
1049
|
+
} = s, T = c.prototype, v = et(T, "cloneNode"), R = et(T, "remove"), J = et(T, "nextSibling"), ye = et(T, "childNodes"), se = et(T, "parentNode");
|
|
1052
1050
|
if (typeof i == "function") {
|
|
1053
1051
|
const f = t.createElement("template");
|
|
1054
1052
|
f.content && f.content.ownerDocument && (t = f.content.ownerDocument);
|
|
1055
1053
|
}
|
|
1056
1054
|
let N, Se = "";
|
|
1057
1055
|
const {
|
|
1058
|
-
implementation:
|
|
1059
|
-
createNodeIterator:
|
|
1056
|
+
implementation: Te,
|
|
1057
|
+
createNodeIterator: Ee,
|
|
1060
1058
|
createDocumentFragment: qn,
|
|
1061
1059
|
getElementsByTagName: Vn
|
|
1062
1060
|
} = t, {
|
|
1063
1061
|
importNode: Gn
|
|
1064
1062
|
} = n;
|
|
1065
|
-
let W =
|
|
1066
|
-
e.isSupported = typeof
|
|
1063
|
+
let W = Dr();
|
|
1064
|
+
e.isSupported = typeof fn == "function" && typeof se == "function" && Te && Te.createHTMLDocument !== void 0;
|
|
1067
1065
|
const {
|
|
1068
1066
|
MUSTACHE_EXPR: Ht,
|
|
1069
1067
|
ERB_EXPR: jt,
|
|
@@ -1071,16 +1069,16 @@ function bn() {
|
|
|
1071
1069
|
DATA_ATTR: Xn,
|
|
1072
1070
|
ARIA_ATTR: Yn,
|
|
1073
1071
|
IS_SCRIPT_OR_DATA: Zn,
|
|
1074
|
-
ATTR_WHITESPACE:
|
|
1072
|
+
ATTR_WHITESPACE: Xs,
|
|
1075
1073
|
CUSTOM_ELEMENT: Kn
|
|
1076
|
-
} =
|
|
1074
|
+
} = Mr;
|
|
1077
1075
|
let {
|
|
1078
|
-
IS_ALLOWED_URI:
|
|
1079
|
-
} =
|
|
1080
|
-
const
|
|
1076
|
+
IS_ALLOWED_URI: Ys
|
|
1077
|
+
} = Mr, z = null;
|
|
1078
|
+
const Zs = y({}, [...Ar, ...as, ...ls, ...cs, ...$r]);
|
|
1081
1079
|
let U = null;
|
|
1082
|
-
const
|
|
1083
|
-
let P = Object.seal(
|
|
1080
|
+
const Ks = y({}, [...Rr, ...hs, ...Pr, ...St]);
|
|
1081
|
+
let P = Object.seal(mn(null, {
|
|
1084
1082
|
tagNameCheck: {
|
|
1085
1083
|
writable: !0,
|
|
1086
1084
|
configurable: !1,
|
|
@@ -1099,14 +1097,14 @@ function bn() {
|
|
|
1099
1097
|
enumerable: !0,
|
|
1100
1098
|
value: !1
|
|
1101
1099
|
}
|
|
1102
|
-
})), Ge = null, qt = null,
|
|
1100
|
+
})), Ge = null, qt = null, Js = !0, Vt = !0, Qs = !1, er = !0, ze = !1, ft = !0, Ce = !1, Gt = !1, Xt = !1, Fe = !1, mt = !1, wt = !1, tr = !0, sr = !1;
|
|
1103
1101
|
const Jn = "user-content-";
|
|
1104
1102
|
let Yt = !0, Xe = !1, Ue = {}, Be = null;
|
|
1105
|
-
const
|
|
1106
|
-
let
|
|
1107
|
-
const
|
|
1103
|
+
const rr = y({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1104
|
+
let nr = null;
|
|
1105
|
+
const or = y({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1108
1106
|
let Zt = null;
|
|
1109
|
-
const
|
|
1107
|
+
const ir = y({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), bt = "http://www.w3.org/1998/Math/MathML", vt = "http://www.w3.org/2000/svg", de = "http://www.w3.org/1999/xhtml";
|
|
1110
1108
|
let He = de, Kt = !1, Jt = null;
|
|
1111
1109
|
const Qn = y({}, [bt, vt, de], is);
|
|
1112
1110
|
let yt = y({}, ["mi", "mo", "mn", "ms", "mtext"]), _t = y({}, ["annotation-xml"]);
|
|
@@ -1114,30 +1112,30 @@ function bn() {
|
|
|
1114
1112
|
let Ye = null;
|
|
1115
1113
|
const to = ["application/xhtml+xml", "text/html"], so = "text/html";
|
|
1116
1114
|
let F = null, je = null;
|
|
1117
|
-
const ro = t.createElement("form"),
|
|
1115
|
+
const ro = t.createElement("form"), ar = function(l) {
|
|
1118
1116
|
return l instanceof RegExp || l instanceof Function;
|
|
1119
1117
|
}, Qt = function() {
|
|
1120
1118
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1121
1119
|
if (!(je && je === l)) {
|
|
1122
1120
|
if ((!l || typeof l != "object") && (l = {}), l = fe(l), Ye = // eslint-disable-next-line unicorn/prefer-includes
|
|
1123
|
-
to.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? so : l.PARSER_MEDIA_TYPE, F = Ye === "application/xhtml+xml" ? is : Ct, z = re(l, "ALLOWED_TAGS") ? y({}, l.ALLOWED_TAGS, F) :
|
|
1121
|
+
to.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? so : l.PARSER_MEDIA_TYPE, F = Ye === "application/xhtml+xml" ? is : Ct, z = re(l, "ALLOWED_TAGS") ? y({}, l.ALLOWED_TAGS, F) : Zs, U = re(l, "ALLOWED_ATTR") ? y({}, l.ALLOWED_ATTR, F) : Ks, Jt = re(l, "ALLOWED_NAMESPACES") ? y({}, l.ALLOWED_NAMESPACES, is) : Qn, Zt = re(l, "ADD_URI_SAFE_ATTR") ? y(fe(ir), l.ADD_URI_SAFE_ATTR, F) : ir, nr = re(l, "ADD_DATA_URI_TAGS") ? y(fe(or), l.ADD_DATA_URI_TAGS, F) : or, Be = re(l, "FORBID_CONTENTS") ? y({}, l.FORBID_CONTENTS, F) : rr, Ge = re(l, "FORBID_TAGS") ? y({}, l.FORBID_TAGS, F) : fe({}), qt = re(l, "FORBID_ATTR") ? y({}, l.FORBID_ATTR, F) : fe({}), Ue = re(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Js = l.ALLOW_ARIA_ATTR !== !1, Vt = l.ALLOW_DATA_ATTR !== !1, Qs = l.ALLOW_UNKNOWN_PROTOCOLS || !1, er = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ze = l.SAFE_FOR_TEMPLATES || !1, ft = l.SAFE_FOR_XML !== !1, Ce = l.WHOLE_DOCUMENT || !1, Fe = l.RETURN_DOM || !1, mt = l.RETURN_DOM_FRAGMENT || !1, wt = l.RETURN_TRUSTED_TYPE || !1, Xt = l.FORCE_BODY || !1, tr = l.SANITIZE_DOM !== !1, sr = l.SANITIZE_NAMED_PROPS || !1, Yt = l.KEEP_CONTENT !== !1, Xe = l.IN_PLACE || !1, Ys = l.ALLOWED_URI_REGEXP || wn, He = l.NAMESPACE || de, yt = l.MATHML_TEXT_INTEGRATION_POINTS || yt, _t = l.HTML_INTEGRATION_POINTS || _t, P = l.CUSTOM_ELEMENT_HANDLING || {}, l.CUSTOM_ELEMENT_HANDLING && ar(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && ar(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ze && (Vt = !1), mt && (Fe = !0), Ue && (z = y({}, $r), U = [], Ue.html === !0 && (y(z, Ar), y(U, Rr)), Ue.svg === !0 && (y(z, as), y(U, hs), y(U, St)), Ue.svgFilters === !0 && (y(z, ls), y(U, hs), y(U, St)), Ue.mathMl === !0 && (y(z, cs), y(U, Pr), y(U, St))), l.ADD_TAGS && (z === Zs && (z = fe(z)), y(z, l.ADD_TAGS, F)), l.ADD_ATTR && (U === Ks && (U = fe(U)), y(U, l.ADD_ATTR, F)), l.ADD_URI_SAFE_ATTR && y(Zt, l.ADD_URI_SAFE_ATTR, F), l.FORBID_CONTENTS && (Be === rr && (Be = fe(Be)), y(Be, l.FORBID_CONTENTS, F)), Yt && (z["#text"] = !0), Ce && y(z, ["html", "head", "body"]), z.table && (y(z, ["tbody"]), delete Ge.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
1124
1122
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1125
1123
|
throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1126
1124
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1127
1125
|
throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1128
1126
|
N = l.TRUSTED_TYPES_POLICY, Se = N.createHTML("");
|
|
1129
1127
|
} else
|
|
1130
|
-
N === void 0 && (N = Mi(
|
|
1128
|
+
N === void 0 && (N = Mi($, r)), N !== null && typeof Se == "string" && (Se = N.createHTML(""));
|
|
1131
1129
|
X && X(l), je = l;
|
|
1132
1130
|
}
|
|
1133
|
-
},
|
|
1131
|
+
}, lr = y({}, [...as, ...ls, ...ki]), cr = y({}, [...cs, ...xi]), no = function(l) {
|
|
1134
1132
|
let p = se(l);
|
|
1135
1133
|
(!p || !p.tagName) && (p = {
|
|
1136
1134
|
namespaceURI: He,
|
|
1137
1135
|
tagName: "template"
|
|
1138
1136
|
});
|
|
1139
1137
|
const g = Ct(l.tagName), C = Ct(p.tagName);
|
|
1140
|
-
return Jt[l.namespaceURI] ? l.namespaceURI === vt ? p.namespaceURI === de ? g === "svg" : p.namespaceURI === bt ? g === "svg" && (C === "annotation-xml" || yt[C]) : !!
|
|
1138
|
+
return Jt[l.namespaceURI] ? l.namespaceURI === vt ? p.namespaceURI === de ? g === "svg" : p.namespaceURI === bt ? g === "svg" && (C === "annotation-xml" || yt[C]) : !!lr[g] : l.namespaceURI === bt ? p.namespaceURI === de ? g === "math" : p.namespaceURI === vt ? g === "math" && _t[C] : !!cr[g] : l.namespaceURI === de ? p.namespaceURI === vt && !_t[C] || p.namespaceURI === bt && !yt[C] ? !1 : !cr[g] && (eo[g] || !lr[g]) : !!(Ye === "application/xhtml+xml" && Jt[l.namespaceURI]) : !1;
|
|
1141
1139
|
}, le = function(l) {
|
|
1142
1140
|
Ke(e.removed, {
|
|
1143
1141
|
element: l
|
|
@@ -1145,7 +1143,7 @@ function bn() {
|
|
|
1145
1143
|
try {
|
|
1146
1144
|
se(l).removeChild(l);
|
|
1147
1145
|
} catch {
|
|
1148
|
-
|
|
1146
|
+
R(l);
|
|
1149
1147
|
}
|
|
1150
1148
|
}, We = function(l, p) {
|
|
1151
1149
|
try {
|
|
@@ -1170,12 +1168,12 @@ function bn() {
|
|
|
1170
1168
|
p.setAttribute(l, "");
|
|
1171
1169
|
} catch {
|
|
1172
1170
|
}
|
|
1173
|
-
},
|
|
1171
|
+
}, hr = function(l) {
|
|
1174
1172
|
let p = null, g = null;
|
|
1175
1173
|
if (Xt)
|
|
1176
1174
|
l = "<remove></remove>" + l;
|
|
1177
1175
|
else {
|
|
1178
|
-
const O =
|
|
1176
|
+
const O = Ir(l, /^[\r\n\t ]+/);
|
|
1179
1177
|
g = O && O[0];
|
|
1180
1178
|
}
|
|
1181
1179
|
Ye === "application/xhtml+xml" && He === de && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
@@ -1186,7 +1184,7 @@ function bn() {
|
|
|
1186
1184
|
} catch {
|
|
1187
1185
|
}
|
|
1188
1186
|
if (!p || !p.documentElement) {
|
|
1189
|
-
p =
|
|
1187
|
+
p = Te.createDocument(He, "template", null);
|
|
1190
1188
|
try {
|
|
1191
1189
|
p.documentElement.innerHTML = Kt ? Se : C;
|
|
1192
1190
|
} catch {
|
|
@@ -1194,8 +1192,8 @@ function bn() {
|
|
|
1194
1192
|
}
|
|
1195
1193
|
const B = p.body || p.documentElement;
|
|
1196
1194
|
return l && g && B.insertBefore(t.createTextNode(g), B.childNodes[0] || null), He === de ? Vn.call(p, Ce ? "html" : "body")[0] : Ce ? p.documentElement : B;
|
|
1197
|
-
},
|
|
1198
|
-
return
|
|
1195
|
+
}, dr = function(l) {
|
|
1196
|
+
return Ee.call(
|
|
1199
1197
|
l.ownerDocument || l,
|
|
1200
1198
|
l,
|
|
1201
1199
|
// eslint-disable-next-line no-bitwise
|
|
@@ -1204,7 +1202,7 @@ function bn() {
|
|
|
1204
1202
|
);
|
|
1205
1203
|
}, es = function(l) {
|
|
1206
1204
|
return l instanceof w && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof u) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
1207
|
-
},
|
|
1205
|
+
}, pr = function(l) {
|
|
1208
1206
|
return typeof a == "function" && l instanceof a;
|
|
1209
1207
|
};
|
|
1210
1208
|
function pe(f, l, p) {
|
|
@@ -1212,7 +1210,7 @@ function bn() {
|
|
|
1212
1210
|
g.call(e, l, p, je);
|
|
1213
1211
|
});
|
|
1214
1212
|
}
|
|
1215
|
-
const
|
|
1213
|
+
const ur = function(l) {
|
|
1216
1214
|
let p = null;
|
|
1217
1215
|
if (pe(W.beforeSanitizeElements, l, null), es(l))
|
|
1218
1216
|
return le(l), !0;
|
|
@@ -1220,10 +1218,10 @@ function bn() {
|
|
|
1220
1218
|
if (pe(W.uponSanitizeElement, l, {
|
|
1221
1219
|
tagName: g,
|
|
1222
1220
|
allowedTags: z
|
|
1223
|
-
}), ft && l.hasChildNodes() && !
|
|
1221
|
+
}), ft && l.hasChildNodes() && !pr(l.firstElementChild) && q(/<[/\w!]/g, l.innerHTML) && q(/<[/\w!]/g, l.textContent) || l.nodeType === tt.progressingInstruction || ft && l.nodeType === tt.comment && q(/<[/\w]/g, l.data))
|
|
1224
1222
|
return le(l), !0;
|
|
1225
1223
|
if (!z[g] || Ge[g]) {
|
|
1226
|
-
if (!Ge[g] &&
|
|
1224
|
+
if (!Ge[g] && fr(g) && (P.tagNameCheck instanceof RegExp && q(P.tagNameCheck, g) || P.tagNameCheck instanceof Function && P.tagNameCheck(g)))
|
|
1227
1225
|
return !1;
|
|
1228
1226
|
if (Yt && !Be[g]) {
|
|
1229
1227
|
const C = se(l) || l.parentNode, B = ye(l) || l.childNodes;
|
|
@@ -1242,24 +1240,24 @@ function bn() {
|
|
|
1242
1240
|
}), l.textContent !== p && (Ke(e.removed, {
|
|
1243
1241
|
element: l.cloneNode()
|
|
1244
1242
|
}), l.textContent = p)), pe(W.afterSanitizeElements, l, null), !1);
|
|
1245
|
-
},
|
|
1246
|
-
if (
|
|
1243
|
+
}, gr = function(l, p, g) {
|
|
1244
|
+
if (tr && (p === "id" || p === "name") && (g in t || g in ro))
|
|
1247
1245
|
return !1;
|
|
1248
1246
|
if (!(Vt && !qt[p] && q(Xn, p))) {
|
|
1249
|
-
if (!(
|
|
1247
|
+
if (!(Js && q(Yn, p))) {
|
|
1250
1248
|
if (!U[p] || qt[p]) {
|
|
1251
1249
|
if (
|
|
1252
1250
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1253
1251
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1254
1252
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1255
|
-
!(
|
|
1253
|
+
!(fr(l) && (P.tagNameCheck instanceof RegExp && q(P.tagNameCheck, l) || P.tagNameCheck instanceof Function && P.tagNameCheck(l)) && (P.attributeNameCheck instanceof RegExp && q(P.attributeNameCheck, p) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1256
1254
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1257
1255
|
p === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && q(P.tagNameCheck, g) || P.tagNameCheck instanceof Function && P.tagNameCheck(g)))
|
|
1258
1256
|
) return !1;
|
|
1259
1257
|
} else if (!Zt[p]) {
|
|
1260
|
-
if (!q(
|
|
1261
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && l !== "script" && bi(g, "data:") === 0 &&
|
|
1262
|
-
if (!(
|
|
1258
|
+
if (!q(Ys, Je(g, Xs, ""))) {
|
|
1259
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && l !== "script" && bi(g, "data:") === 0 && nr[l])) {
|
|
1260
|
+
if (!(Qs && !q(Zn, Je(g, Xs, "")))) {
|
|
1263
1261
|
if (g)
|
|
1264
1262
|
return !1;
|
|
1265
1263
|
}
|
|
@@ -1269,9 +1267,9 @@ function bn() {
|
|
|
1269
1267
|
}
|
|
1270
1268
|
}
|
|
1271
1269
|
return !0;
|
|
1272
|
-
}, gr = function(l) {
|
|
1273
|
-
return l !== "annotation-xml" && Cr(l, Kn);
|
|
1274
1270
|
}, fr = function(l) {
|
|
1271
|
+
return l !== "annotation-xml" && Ir(l, Kn);
|
|
1272
|
+
}, mr = function(l) {
|
|
1275
1273
|
pe(W.beforeSanitizeAttributes, l, null);
|
|
1276
1274
|
const {
|
|
1277
1275
|
attributes: p
|
|
@@ -1293,7 +1291,7 @@ function bn() {
|
|
|
1293
1291
|
value: ue
|
|
1294
1292
|
} = B, Ze = F(O), ts = ue;
|
|
1295
1293
|
let H = O === "value" ? ts : vi(ts);
|
|
1296
|
-
if (g.attrName = Ze, g.attrValue = H, g.keepAttr = !0, g.forceKeepAttr = void 0, pe(W.uponSanitizeAttribute, l, g), H = g.attrValue,
|
|
1294
|
+
if (g.attrName = Ze, g.attrValue = H, g.keepAttr = !0, g.forceKeepAttr = void 0, pe(W.uponSanitizeAttribute, l, g), H = g.attrValue, sr && (Ze === "id" || Ze === "name") && (We(O, l), H = Jn + H), ft && q(/((--!?|])>)|<\/(style|title)/i, H)) {
|
|
1297
1295
|
We(O, l);
|
|
1298
1296
|
continue;
|
|
1299
1297
|
}
|
|
@@ -1303,20 +1301,20 @@ function bn() {
|
|
|
1303
1301
|
We(O, l);
|
|
1304
1302
|
continue;
|
|
1305
1303
|
}
|
|
1306
|
-
if (!
|
|
1304
|
+
if (!er && q(/\/>/i, H)) {
|
|
1307
1305
|
We(O, l);
|
|
1308
1306
|
continue;
|
|
1309
1307
|
}
|
|
1310
|
-
ze && xt([Ht, jt, Wt], (
|
|
1311
|
-
H = Je(H,
|
|
1308
|
+
ze && xt([Ht, jt, Wt], (br) => {
|
|
1309
|
+
H = Je(H, br, " ");
|
|
1312
1310
|
});
|
|
1313
|
-
const
|
|
1314
|
-
if (!
|
|
1311
|
+
const wr = F(l.nodeName);
|
|
1312
|
+
if (!gr(wr, Ze, H)) {
|
|
1315
1313
|
We(O, l);
|
|
1316
1314
|
continue;
|
|
1317
1315
|
}
|
|
1318
|
-
if (N && typeof
|
|
1319
|
-
switch (
|
|
1316
|
+
if (N && typeof $ == "object" && typeof $.getAttributeType == "function" && !Z)
|
|
1317
|
+
switch ($.getAttributeType(wr, Ze)) {
|
|
1320
1318
|
case "TrustedHTML": {
|
|
1321
1319
|
H = N.createHTML(H);
|
|
1322
1320
|
break;
|
|
@@ -1328,7 +1326,7 @@ function bn() {
|
|
|
1328
1326
|
}
|
|
1329
1327
|
if (H !== ts)
|
|
1330
1328
|
try {
|
|
1331
|
-
Z ? l.setAttributeNS(Z, O, H) : l.setAttribute(O, H), es(l) ? le(l) :
|
|
1329
|
+
Z ? l.setAttributeNS(Z, O, H) : l.setAttribute(O, H), es(l) ? le(l) : Cr(e.removed);
|
|
1332
1330
|
} catch {
|
|
1333
1331
|
We(O, l);
|
|
1334
1332
|
}
|
|
@@ -1336,14 +1334,14 @@ function bn() {
|
|
|
1336
1334
|
pe(W.afterSanitizeAttributes, l, null);
|
|
1337
1335
|
}, oo = function f(l) {
|
|
1338
1336
|
let p = null;
|
|
1339
|
-
const g =
|
|
1337
|
+
const g = dr(l);
|
|
1340
1338
|
for (pe(W.beforeSanitizeShadowDOM, l, null); p = g.nextNode(); )
|
|
1341
|
-
pe(W.uponSanitizeShadowNode, p, null),
|
|
1339
|
+
pe(W.uponSanitizeShadowNode, p, null), ur(p), mr(p), p.content instanceof o && f(p.content);
|
|
1342
1340
|
pe(W.afterSanitizeShadowDOM, l, null);
|
|
1343
1341
|
};
|
|
1344
1342
|
return e.sanitize = function(f) {
|
|
1345
1343
|
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, g = null, C = null, B = null;
|
|
1346
|
-
if (Kt = !f, Kt && (f = "<!-->"), typeof f != "string" && !
|
|
1344
|
+
if (Kt = !f, Kt && (f = "<!-->"), typeof f != "string" && !pr(f))
|
|
1347
1345
|
if (typeof f.toString == "function") {
|
|
1348
1346
|
if (f = f.toString(), typeof f != "string")
|
|
1349
1347
|
throw Qe("dirty is not a string, aborting");
|
|
@@ -1358,18 +1356,18 @@ function bn() {
|
|
|
1358
1356
|
throw Qe("root node is forbidden and cannot be sanitized in-place");
|
|
1359
1357
|
}
|
|
1360
1358
|
} else if (f instanceof a)
|
|
1361
|
-
p =
|
|
1359
|
+
p = hr("<!---->"), g = p.ownerDocument.importNode(f, !0), g.nodeType === tt.element && g.nodeName === "BODY" || g.nodeName === "HTML" ? p = g : p.appendChild(g);
|
|
1362
1360
|
else {
|
|
1363
1361
|
if (!Fe && !ze && !Ce && // eslint-disable-next-line unicorn/prefer-includes
|
|
1364
1362
|
f.indexOf("<") === -1)
|
|
1365
1363
|
return N && wt ? N.createHTML(f) : f;
|
|
1366
|
-
if (p =
|
|
1364
|
+
if (p = hr(f), !p)
|
|
1367
1365
|
return Fe ? null : wt ? Se : "";
|
|
1368
1366
|
}
|
|
1369
1367
|
p && Xt && le(p.firstChild);
|
|
1370
|
-
const O =
|
|
1368
|
+
const O = dr(Xe ? f : p);
|
|
1371
1369
|
for (; C = O.nextNode(); )
|
|
1372
|
-
|
|
1370
|
+
ur(C), mr(C), C.content instanceof o && oo(C.content);
|
|
1373
1371
|
if (Xe)
|
|
1374
1372
|
return f;
|
|
1375
1373
|
if (Fe) {
|
|
@@ -1381,7 +1379,7 @@ function bn() {
|
|
|
1381
1379
|
return (U.shadowroot || U.shadowrootmode) && (B = Gn.call(n, B, !0)), B;
|
|
1382
1380
|
}
|
|
1383
1381
|
let Z = Ce ? p.outerHTML : p.innerHTML;
|
|
1384
|
-
return Ce && z["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && q(
|
|
1382
|
+
return Ce && z["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && q(bn, p.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
1385
1383
|
` + Z), ze && xt([Ht, jt, Wt], (ue) => {
|
|
1386
1384
|
Z = Je(Z, ue, " ");
|
|
1387
1385
|
}), N && wt ? N.createHTML(Z) : Z;
|
|
@@ -1393,7 +1391,7 @@ function bn() {
|
|
|
1393
1391
|
}, e.isValidAttribute = function(f, l, p) {
|
|
1394
1392
|
je || Qt({});
|
|
1395
1393
|
const g = F(f), C = F(l);
|
|
1396
|
-
return
|
|
1394
|
+
return gr(g, C, p);
|
|
1397
1395
|
}, e.addHook = function(f, l) {
|
|
1398
1396
|
typeof l == "function" && Ke(W[f], l);
|
|
1399
1397
|
}, e.removeHook = function(f, l) {
|
|
@@ -1401,19 +1399,19 @@ function bn() {
|
|
|
1401
1399
|
const p = mi(W[f], l);
|
|
1402
1400
|
return p === -1 ? void 0 : wi(W[f], p, 1)[0];
|
|
1403
1401
|
}
|
|
1404
|
-
return
|
|
1402
|
+
return Cr(W[f]);
|
|
1405
1403
|
}, e.removeHooks = function(f) {
|
|
1406
1404
|
W[f] = [];
|
|
1407
1405
|
}, e.removeAllHooks = function() {
|
|
1408
|
-
W =
|
|
1406
|
+
W = Dr();
|
|
1409
1407
|
}, e;
|
|
1410
1408
|
}
|
|
1411
|
-
var
|
|
1409
|
+
var yn = vn();
|
|
1412
1410
|
function Ps() {
|
|
1413
1411
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
1414
1412
|
}
|
|
1415
1413
|
var Ne = Ps();
|
|
1416
|
-
function
|
|
1414
|
+
function _n(s) {
|
|
1417
1415
|
Ne = s;
|
|
1418
1416
|
}
|
|
1419
1417
|
var ot = { exec: () => null };
|
|
@@ -1424,15 +1422,15 @@ function S(s, e = "") {
|
|
|
1424
1422
|
}, getRegex: () => new RegExp(t, e) };
|
|
1425
1423
|
return n;
|
|
1426
1424
|
}
|
|
1427
|
-
var G = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (s) => new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}#`), htmlBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}<(?:[a-z].*>|!--)`, "i") }, Di = /^(?:[ \t]*(?:\n|$))+/, Oi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Li = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, pt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ni = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ms = /(?:[*+-]|\d{1,9}[.)])/,
|
|
1428
|
-
]`).replace("lheading",
|
|
1425
|
+
var G = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (s) => new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}#`), htmlBeginRegex: (s) => new RegExp(`^ {0,${Math.min(3, s - 1)}}<(?:[a-z].*>|!--)`, "i") }, Di = /^(?:[ \t]*(?:\n|$))+/, Oi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Li = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, pt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ni = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ms = /(?:[*+-]|\d{1,9}[.)])/, kn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, xn = S(kn).replace(/bull/g, Ms).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), zi = S(kn).replace(/bull/g, Ms).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ds = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Fi = /^[^\n]+/, Os = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ui = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Os).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Bi = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ms).getRegex(), Ft = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ls = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Hi = S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ls).replace("tag", Ft).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Sn = S(Ds).replace("hr", pt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ft).getRegex(), ji = S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Sn).getRegex(), Ns = { blockquote: ji, code: Oi, def: Ui, fences: Li, heading: Ni, hr: pt, html: Hi, lheading: xn, list: Bi, newline: Di, paragraph: Sn, table: ot, text: Fi }, Or = S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", pt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ft).getRegex(), Wi = { ...Ns, lheading: zi, table: Or, paragraph: S(Ds).replace("hr", pt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Or).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ft).getRegex() }, qi = { ...Ns, html: S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ls).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: ot, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: S(Ds).replace("hr", pt).replace("heading", ` *#{1,6} *[^
|
|
1426
|
+
]`).replace("lheading", xn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Vi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Tn = /^( {2,}|\\)\n(?!\s*$)/, Xi = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ut = /[\p{P}\p{S}]/u, zs = /[\s\p{P}\p{S}]/u, En = /[^\s\p{P}\p{S}]/u, Yi = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, zs).getRegex(), Cn = /(?!~)[\p{P}\p{S}]/u, Zi = /(?!~)[\s\p{P}\p{S}]/u, Ki = /(?:[^\s\p{P}\p{S}]|~)/u, Ji = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, In = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Qi = S(In, "u").replace(/punct/g, Ut).getRegex(), ea = S(In, "u").replace(/punct/g, Cn).getRegex(), An = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ta = S(An, "gu").replace(/notPunctSpace/g, En).replace(/punctSpace/g, zs).replace(/punct/g, Ut).getRegex(), sa = S(An, "gu").replace(/notPunctSpace/g, Ki).replace(/punctSpace/g, Zi).replace(/punct/g, Cn).getRegex(), ra = S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, En).replace(/punctSpace/g, zs).replace(/punct/g, Ut).getRegex(), na = S(/\\(punct)/, "gu").replace(/punct/g, Ut).getRegex(), oa = S(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ia = S(Ls).replace("(?:-->|$)", "-->").getRegex(), aa = S("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ia).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Pt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, la = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Pt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), $n = S(/^!?\[(label)\]\[(ref)\]/).replace("label", Pt).replace("ref", Os).getRegex(), Rn = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", Os).getRegex(), ca = S("reflink|nolink(?!\\()", "g").replace("reflink", $n).replace("nolink", Rn).getRegex(), Fs = { _backpedal: ot, anyPunctuation: na, autolink: oa, blockSkip: Ji, br: Tn, code: Gi, del: ot, emStrongLDelim: Qi, emStrongRDelimAst: ta, emStrongRDelimUnd: ra, escape: Vi, link: la, nolink: Rn, punctuation: Yi, reflink: $n, reflinkSearch: ca, tag: aa, text: Xi, url: ot }, ha = { ...Fs, link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", Pt).getRegex(), reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Pt).getRegex() }, vs = { ...Fs, emStrongRDelimAst: sa, emStrongLDelim: ea, url: S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, da = { ...vs, br: S(Tn).replace("{2,}", "*").getRegex(), text: S(vs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Tt = { normal: Ns, gfm: Wi, pedantic: qi }, st = { normal: Fs, gfm: vs, breaks: da, pedantic: ha }, pa = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Lr = (s) => pa[s];
|
|
1429
1427
|
function ce(s, e) {
|
|
1430
1428
|
if (e) {
|
|
1431
|
-
if (G.escapeTest.test(s)) return s.replace(G.escapeReplace,
|
|
1432
|
-
} else if (G.escapeTestNoEncode.test(s)) return s.replace(G.escapeReplaceNoEncode,
|
|
1429
|
+
if (G.escapeTest.test(s)) return s.replace(G.escapeReplace, Lr);
|
|
1430
|
+
} else if (G.escapeTestNoEncode.test(s)) return s.replace(G.escapeReplaceNoEncode, Lr);
|
|
1433
1431
|
return s;
|
|
1434
1432
|
}
|
|
1435
|
-
function
|
|
1433
|
+
function Nr(s) {
|
|
1436
1434
|
try {
|
|
1437
1435
|
s = encodeURI(s).replace(G.percentDecode, "%");
|
|
1438
1436
|
} catch {
|
|
@@ -1440,7 +1438,7 @@ function Lr(s) {
|
|
|
1440
1438
|
}
|
|
1441
1439
|
return s;
|
|
1442
1440
|
}
|
|
1443
|
-
function
|
|
1441
|
+
function zr(s, e) {
|
|
1444
1442
|
let t = s.replace(G.findPipe, (o, i, a) => {
|
|
1445
1443
|
let c = !1, d = i;
|
|
1446
1444
|
for (; --d >= 0 && a[d] === "\\"; ) c = !c;
|
|
@@ -1467,7 +1465,7 @@ function ua(s, e) {
|
|
|
1467
1465
|
else if (s[n] === e[1] && (t--, t < 0)) return n;
|
|
1468
1466
|
return t > 0 ? -2 : -1;
|
|
1469
1467
|
}
|
|
1470
|
-
function
|
|
1468
|
+
function Fr(s, e, t, n, r) {
|
|
1471
1469
|
let o = e.href, i = e.title || null, a = s[1].replace(r.other.outputLinkReplace, "$1");
|
|
1472
1470
|
n.state.inLink = !0;
|
|
1473
1471
|
let c = { type: s[0].charAt(0) === "!" ? "image" : "link", raw: t, href: o, title: i, text: a, tokens: n.inlineTokens(a) };
|
|
@@ -1551,16 +1549,16 @@ ${u}` : u;
|
|
|
1551
1549
|
let _ = o.at(-1);
|
|
1552
1550
|
if (_?.type === "code") break;
|
|
1553
1551
|
if (_?.type === "blockquote") {
|
|
1554
|
-
let
|
|
1552
|
+
let $ = _, T = $.raw + `
|
|
1555
1553
|
` + t.join(`
|
|
1556
|
-
`), v = this.blockquote(
|
|
1557
|
-
o[o.length - 1] = v, n = n.substring(0, n.length -
|
|
1554
|
+
`), v = this.blockquote(T);
|
|
1555
|
+
o[o.length - 1] = v, n = n.substring(0, n.length - $.raw.length) + v.raw, r = r.substring(0, r.length - $.text.length) + v.text;
|
|
1558
1556
|
break;
|
|
1559
1557
|
} else if (_?.type === "list") {
|
|
1560
|
-
let
|
|
1558
|
+
let $ = _, T = $.raw + `
|
|
1561
1559
|
` + t.join(`
|
|
1562
|
-
`), v = this.list(
|
|
1563
|
-
o[o.length - 1] = v, n = n.substring(0, n.length - _.raw.length) + v.raw, r = r.substring(0, r.length -
|
|
1560
|
+
`), v = this.list(T);
|
|
1561
|
+
o[o.length - 1] = v, n = n.substring(0, n.length - _.raw.length) + v.raw, r = r.substring(0, r.length - $.raw.length) + v.raw, t = T.substring(o.at(-1).raw.length).split(`
|
|
1564
1562
|
`);
|
|
1565
1563
|
continue;
|
|
1566
1564
|
}
|
|
@@ -1580,28 +1578,28 @@ ${u}` : u;
|
|
|
1580
1578
|
d = e[0], s = s.substring(d.length);
|
|
1581
1579
|
let w = e[2].split(`
|
|
1582
1580
|
`, 1)[0].replace(this.rules.other.listReplaceTabs, (J) => " ".repeat(3 * J.length)), _ = s.split(`
|
|
1583
|
-
`, 1)[0],
|
|
1584
|
-
if (this.options.pedantic ? (
|
|
1581
|
+
`, 1)[0], $ = !w.trim(), T = 0;
|
|
1582
|
+
if (this.options.pedantic ? (T = 2, u = w.trimStart()) : $ ? T = e[1].length + 1 : (T = e[2].search(this.rules.other.nonSpaceChar), T = T > 4 ? 1 : T, u = w.slice(T), T += e[1].length), $ && this.rules.other.blankLine.test(_) && (d += _ + `
|
|
1585
1583
|
`, s = s.substring(_.length + 1), c = !0), !c) {
|
|
1586
|
-
let J = this.rules.other.nextBulletRegex(
|
|
1584
|
+
let J = this.rules.other.nextBulletRegex(T), ye = this.rules.other.hrRegex(T), se = this.rules.other.fencesBeginRegex(T), N = this.rules.other.headingBeginRegex(T), Se = this.rules.other.htmlBeginRegex(T);
|
|
1587
1585
|
for (; s; ) {
|
|
1588
|
-
let
|
|
1589
|
-
`, 1)[0],
|
|
1590
|
-
if (_ =
|
|
1591
|
-
if (
|
|
1592
|
-
` +
|
|
1586
|
+
let Te = s.split(`
|
|
1587
|
+
`, 1)[0], Ee;
|
|
1588
|
+
if (_ = Te, this.options.pedantic ? (_ = _.replace(this.rules.other.listReplaceNesting, " "), Ee = _) : Ee = _.replace(this.rules.other.tabCharGlobal, " "), se.test(_) || N.test(_) || Se.test(_) || J.test(_) || ye.test(_)) break;
|
|
1589
|
+
if (Ee.search(this.rules.other.nonSpaceChar) >= T || !_.trim()) u += `
|
|
1590
|
+
` + Ee.slice(T);
|
|
1593
1591
|
else {
|
|
1594
|
-
if (
|
|
1592
|
+
if ($ || w.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || se.test(w) || N.test(w) || ye.test(w)) break;
|
|
1595
1593
|
u += `
|
|
1596
1594
|
` + _;
|
|
1597
1595
|
}
|
|
1598
|
-
|
|
1599
|
-
`, s = s.substring(
|
|
1596
|
+
!$ && !_.trim() && ($ = !0), d += Te + `
|
|
1597
|
+
`, s = s.substring(Te.length + 1), w = Ee.slice(T);
|
|
1600
1598
|
}
|
|
1601
1599
|
}
|
|
1602
1600
|
r.loose || (i ? r.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (i = !0));
|
|
1603
|
-
let v = null,
|
|
1604
|
-
this.options.gfm && (v = this.rules.other.listIsTask.exec(u), v && (
|
|
1601
|
+
let v = null, R;
|
|
1602
|
+
this.options.gfm && (v = this.rules.other.listIsTask.exec(u), v && (R = v[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), r.items.push({ type: "list_item", raw: d, task: !!v, checked: R, loose: !1, text: u, tokens: [] }), r.raw += d;
|
|
1605
1603
|
}
|
|
1606
1604
|
let a = r.items.at(-1);
|
|
1607
1605
|
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
@@ -1629,12 +1627,12 @@ ${u}` : u;
|
|
|
1629
1627
|
table(s) {
|
|
1630
1628
|
let e = this.rules.block.table.exec(s);
|
|
1631
1629
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
1632
|
-
let t =
|
|
1630
|
+
let t = zr(e[1]), n = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
1633
1631
|
`) : [], o = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
1634
1632
|
if (t.length === n.length) {
|
|
1635
1633
|
for (let i of n) this.rules.other.tableAlignRight.test(i) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(i) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(i) ? o.align.push("left") : o.align.push(null);
|
|
1636
1634
|
for (let i = 0; i < t.length; i++) o.header.push({ text: t[i], tokens: this.lexer.inline(t[i]), header: !0, align: o.align[i] });
|
|
1637
|
-
for (let i of r) o.rows.push(
|
|
1635
|
+
for (let i of r) o.rows.push(zr(i, o.header.length).map((a, c) => ({ text: a, tokens: this.lexer.inline(a), header: !1, align: o.align[c] })));
|
|
1638
1636
|
return o;
|
|
1639
1637
|
}
|
|
1640
1638
|
}
|
|
@@ -1683,7 +1681,7 @@ ${u}` : u;
|
|
|
1683
1681
|
let o = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1684
1682
|
o && (n = o[1], r = o[3]);
|
|
1685
1683
|
} else r = e[3] ? e[3].slice(1, -1) : "";
|
|
1686
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? n = n.slice(1) : n = n.slice(1, -1)),
|
|
1684
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? n = n.slice(1) : n = n.slice(1, -1)), Fr(e, { href: n && n.replace(this.rules.inline.anyPunctuation, "$1"), title: r && r.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
1687
1685
|
}
|
|
1688
1686
|
}
|
|
1689
1687
|
reflink(s, e) {
|
|
@@ -1694,7 +1692,7 @@ ${u}` : u;
|
|
|
1694
1692
|
let o = t[0].charAt(0);
|
|
1695
1693
|
return { type: "text", raw: o, text: o };
|
|
1696
1694
|
}
|
|
1697
|
-
return
|
|
1695
|
+
return Fr(t, r, t[0], this.lexer, this.rules);
|
|
1698
1696
|
}
|
|
1699
1697
|
}
|
|
1700
1698
|
emStrong(s, e, t = "") {
|
|
@@ -1714,8 +1712,8 @@ ${u}` : u;
|
|
|
1714
1712
|
i = Math.min(i, i + a + c);
|
|
1715
1713
|
let u = [...n[0]][0].length, w = s.slice(0, r + n.index + u + i);
|
|
1716
1714
|
if (Math.min(r, i) % 2) {
|
|
1717
|
-
let
|
|
1718
|
-
return { type: "em", raw: w, text:
|
|
1715
|
+
let $ = w.slice(1, -1);
|
|
1716
|
+
return { type: "em", raw: w, text: $, tokens: this.lexer.inlineTokens($) };
|
|
1719
1717
|
}
|
|
1720
1718
|
let _ = w.slice(2, -2);
|
|
1721
1719
|
return { type: "strong", raw: w, text: _, tokens: this.lexer.inlineTokens(_) };
|
|
@@ -1774,11 +1772,11 @@ ${u}` : u;
|
|
|
1774
1772
|
inlineQueue;
|
|
1775
1773
|
constructor(e) {
|
|
1776
1774
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ne, this.options.tokenizer = this.options.tokenizer || new Mt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
1777
|
-
let t = { other: G, block:
|
|
1778
|
-
this.options.pedantic ? (t.block =
|
|
1775
|
+
let t = { other: G, block: Tt.normal, inline: st.normal };
|
|
1776
|
+
this.options.pedantic ? (t.block = Tt.pedantic, t.inline = st.pedantic) : this.options.gfm && (t.block = Tt.gfm, this.options.breaks ? t.inline = st.breaks : t.inline = st.gfm), this.tokenizer.rules = t;
|
|
1779
1777
|
}
|
|
1780
1778
|
static get rules() {
|
|
1781
|
-
return { block:
|
|
1779
|
+
return { block: Tt, inline: st };
|
|
1782
1780
|
}
|
|
1783
1781
|
static lex(e, t) {
|
|
1784
1782
|
return new ys(t).lex(e);
|
|
@@ -2076,7 +2074,7 @@ ${s}</tr>
|
|
|
2076
2074
|
return `<del>${this.parser.parseInline(s)}</del>`;
|
|
2077
2075
|
}
|
|
2078
2076
|
link({ href: s, title: e, tokens: t }) {
|
|
2079
|
-
let n = this.parser.parseInline(t), r =
|
|
2077
|
+
let n = this.parser.parseInline(t), r = Nr(s);
|
|
2080
2078
|
if (r === null) return n;
|
|
2081
2079
|
s = r;
|
|
2082
2080
|
let o = '<a href="' + s + '"';
|
|
@@ -2084,7 +2082,7 @@ ${s}</tr>
|
|
|
2084
2082
|
}
|
|
2085
2083
|
image({ href: s, title: e, text: t, tokens: n }) {
|
|
2086
2084
|
n && (t = this.parser.parseInline(n, this.parser.textRenderer));
|
|
2087
|
-
let r =
|
|
2085
|
+
let r = Nr(s);
|
|
2088
2086
|
if (r === null) return ce(t);
|
|
2089
2087
|
s = r;
|
|
2090
2088
|
let o = `<img src="${s}" alt="${t}"`;
|
|
@@ -2442,12 +2440,12 @@ function x(s, e) {
|
|
|
2442
2440
|
return Me.parse(s, e);
|
|
2443
2441
|
}
|
|
2444
2442
|
x.options = x.setOptions = function(s) {
|
|
2445
|
-
return Me.setOptions(s), x.defaults = Me.defaults,
|
|
2443
|
+
return Me.setOptions(s), x.defaults = Me.defaults, _n(x.defaults), x;
|
|
2446
2444
|
};
|
|
2447
2445
|
x.getDefaults = Ps;
|
|
2448
2446
|
x.defaults = Ne;
|
|
2449
2447
|
x.use = function(...s) {
|
|
2450
|
-
return Me.use(...s), x.defaults = Me.defaults,
|
|
2448
|
+
return Me.use(...s), x.defaults = Me.defaults, _n(x.defaults), x;
|
|
2451
2449
|
};
|
|
2452
2450
|
x.walkTokens = function(s, e) {
|
|
2453
2451
|
return Me.walkTokens(s, e);
|
|
@@ -2469,18 +2467,18 @@ x.walkTokens;
|
|
|
2469
2467
|
x.parseInline;
|
|
2470
2468
|
be.parse;
|
|
2471
2469
|
we.lex;
|
|
2472
|
-
const qe = new x.Renderer(),
|
|
2473
|
-
qe.code = (s) =>
|
|
2474
|
-
qe.table = (s) =>
|
|
2470
|
+
const qe = new x.Renderer(), Pn = (s) => `<div class="overflow-x-auto"><div class="flex w-fit flex-col-reverse mr-4">${s}</div></div>`;
|
|
2471
|
+
qe.code = (s) => Pn(x.Renderer.prototype.code.call(qe, s));
|
|
2472
|
+
qe.table = (s) => Pn(x.Renderer.prototype.table.call(qe, s));
|
|
2475
2473
|
qe.link = (s) => `<a href="${s.href}" target="_blank" rel="noopener noreferrer">${s.text}</a>`;
|
|
2476
2474
|
x.setOptions({ gfm: !0, breaks: !1, renderer: qe });
|
|
2477
|
-
let
|
|
2478
|
-
|
|
2475
|
+
let Ur = !1;
|
|
2476
|
+
Ur || (yn.addHook("afterSanitizeAttributes", (s) => {
|
|
2479
2477
|
s.tagName === "A" && (s.setAttribute("target", "_blank"), s.setAttribute("rel", "noopener noreferrer"));
|
|
2480
|
-
}),
|
|
2478
|
+
}), Ur = !0);
|
|
2481
2479
|
function ma(s) {
|
|
2482
2480
|
const e = x.parse(s, { async: !1 });
|
|
2483
|
-
return
|
|
2481
|
+
return yn.sanitize(e, { USE_PROFILES: { html: !0 } });
|
|
2484
2482
|
}
|
|
2485
2483
|
var wa = Object.defineProperty, ba = (s, e, t, n) => {
|
|
2486
2484
|
for (var r = void 0, o = s.length - 1, i; o >= 0; o--)
|
|
@@ -2547,9 +2545,9 @@ class ut extends oe {
|
|
|
2547
2545
|
}
|
|
2548
2546
|
}
|
|
2549
2547
|
ba([
|
|
2550
|
-
|
|
2548
|
+
E({ attribute: !1 })
|
|
2551
2549
|
], ut.prototype, "message");
|
|
2552
|
-
var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor,
|
|
2550
|
+
var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, Mn = (s, e, t, n) => {
|
|
2553
2551
|
for (var r = n > 1 ? void 0 : n ? ya(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2554
2552
|
(i = s[o]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
|
2555
2553
|
return n && r && va(e, t, r), r;
|
|
@@ -2575,7 +2573,7 @@ let ks = class extends ut {
|
|
|
2575
2573
|
<div class="flex size-4 items-center justify-center">${M(lt)}</div>
|
|
2576
2574
|
<span class="text-sm font-medium">GAiA</span>
|
|
2577
2575
|
</div>
|
|
2578
|
-
${
|
|
2576
|
+
${vr(
|
|
2579
2577
|
[this.message.citations.length, this.citationsExpanded],
|
|
2580
2578
|
() => this.message.citations.length ? b`<div class="text-primary-800 hover:text-primary-900 text-xs font-semibold">
|
|
2581
2579
|
<a
|
|
@@ -2603,7 +2601,7 @@ let ks = class extends ut {
|
|
|
2603
2601
|
}
|
|
2604
2602
|
)}
|
|
2605
2603
|
>
|
|
2606
|
-
${
|
|
2604
|
+
${sn(
|
|
2607
2605
|
this.message.citations,
|
|
2608
2606
|
(s) => s.url,
|
|
2609
2607
|
(s) => b`<div class="flex min-w-0 items-center gap-2 overflow-x-clip">
|
|
@@ -2626,8 +2624,8 @@ let ks = class extends ut {
|
|
|
2626
2624
|
)}`;
|
|
2627
2625
|
}
|
|
2628
2626
|
renderBody() {
|
|
2629
|
-
return
|
|
2630
|
-
${
|
|
2627
|
+
return vr(this.message.content.length, () => b` <div class="prose prose-gaia prose-table:min-w-max">
|
|
2628
|
+
${tn(ma(this.message.content))}
|
|
2631
2629
|
</div>`);
|
|
2632
2630
|
}
|
|
2633
2631
|
renderFooter() {
|
|
@@ -2665,19 +2663,19 @@ let ks = class extends ut {
|
|
|
2665
2663
|
` : V;
|
|
2666
2664
|
}
|
|
2667
2665
|
};
|
|
2668
|
-
|
|
2666
|
+
Mn([
|
|
2669
2667
|
xe()
|
|
2670
2668
|
], ks.prototype, "citationsExpanded", 2);
|
|
2671
|
-
ks =
|
|
2669
|
+
ks = Mn([
|
|
2672
2670
|
te("gaia-chat-assistant-message")
|
|
2673
2671
|
], ks);
|
|
2674
|
-
const
|
|
2672
|
+
const Dn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-headset-icon lucide-headset"><path d="M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z"/><path d="M21 16v2a4 4 0 0 1-4 4h-5"/></svg>';
|
|
2675
2673
|
var _a = Object.getOwnPropertyDescriptor, ka = (s, e, t, n) => {
|
|
2676
2674
|
for (var r = n > 1 ? void 0 : n ? _a(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2677
2675
|
(i = s[o]) && (r = i(r) || r);
|
|
2678
2676
|
return r;
|
|
2679
2677
|
};
|
|
2680
|
-
let
|
|
2678
|
+
let Br = class extends ut {
|
|
2681
2679
|
renderHeader() {
|
|
2682
2680
|
return b`<div class="flex items-center gap-1 pb-1">
|
|
2683
2681
|
<div class="relative size-6 p-0.5">
|
|
@@ -2687,7 +2685,7 @@ let Ur = class extends ut {
|
|
|
2687
2685
|
alt=${this.message.operator.name}
|
|
2688
2686
|
class="object-cover"
|
|
2689
2687
|
/>` : b`<div class="text-primary-900 flex h-full w-full items-center justify-center">
|
|
2690
|
-
<div class="size-4">${M(
|
|
2688
|
+
<div class="size-4">${M(Dn)}</div>
|
|
2691
2689
|
</div>`}
|
|
2692
2690
|
</div>
|
|
2693
2691
|
</div>
|
|
@@ -2710,15 +2708,15 @@ let Ur = class extends ut {
|
|
|
2710
2708
|
</div>`;
|
|
2711
2709
|
}
|
|
2712
2710
|
};
|
|
2713
|
-
|
|
2711
|
+
Br = ka([
|
|
2714
2712
|
te("gaia-chat-operator-message")
|
|
2715
|
-
],
|
|
2713
|
+
], Br);
|
|
2716
2714
|
var xa = Object.getOwnPropertyDescriptor, Sa = (s, e, t, n) => {
|
|
2717
2715
|
for (var r = n > 1 ? void 0 : n ? xa(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2718
2716
|
(i = s[o]) && (r = i(r) || r);
|
|
2719
2717
|
return r;
|
|
2720
2718
|
};
|
|
2721
|
-
let
|
|
2719
|
+
let Hr = class extends ut {
|
|
2722
2720
|
constructor() {
|
|
2723
2721
|
super(...arguments), this.position = "center";
|
|
2724
2722
|
}
|
|
@@ -2726,7 +2724,7 @@ let Br = class extends ut {
|
|
|
2726
2724
|
return this.message.isVisuallyHidden;
|
|
2727
2725
|
}
|
|
2728
2726
|
clearConversation() {
|
|
2729
|
-
this.dispatchEvent(new
|
|
2727
|
+
this.dispatchEvent(new $s());
|
|
2730
2728
|
}
|
|
2731
2729
|
openFeedbackForm() {
|
|
2732
2730
|
this.dispatchEvent(new As("support"));
|
|
@@ -2744,7 +2742,7 @@ let Br = class extends ut {
|
|
|
2744
2742
|
</div>
|
|
2745
2743
|
<div class="flex [grid-area:leading]">
|
|
2746
2744
|
<div class="text-primary-900 flex size-5 items-center justify-center">
|
|
2747
|
-
${M(
|
|
2745
|
+
${M(Dn)}
|
|
2748
2746
|
</div>
|
|
2749
2747
|
</div>
|
|
2750
2748
|
</div>` : this.message.isSupportCompletedMarker ? b`<div
|
|
@@ -2767,7 +2765,7 @@ let Br = class extends ut {
|
|
|
2767
2765
|
<button class="btn btn-primary px-4 py-2" @click=${this.clearConversation}>
|
|
2768
2766
|
<div class="flex items-center justify-center gap-x-2">
|
|
2769
2767
|
<div class="flex size-4 items-center justify-center">
|
|
2770
|
-
${M(
|
|
2768
|
+
${M(un)}
|
|
2771
2769
|
</div>
|
|
2772
2770
|
${k("Start New Conversation", {
|
|
2773
2771
|
id: "system-message-start-new-conversation"
|
|
@@ -2777,7 +2775,7 @@ let Br = class extends ut {
|
|
|
2777
2775
|
<button class="btn btn-secondary px-4 py-2" @click=${this.openFeedbackForm}>
|
|
2778
2776
|
<div class="flex items-center justify-center gap-x-2">
|
|
2779
2777
|
<div class="flex size-4 items-center justify-center">
|
|
2780
|
-
${M(
|
|
2778
|
+
${M(pn)}
|
|
2781
2779
|
</div>
|
|
2782
2780
|
${k("Provide Feedback", {
|
|
2783
2781
|
id: "system-message-provide-feedback"
|
|
@@ -2794,15 +2792,15 @@ let Br = class extends ut {
|
|
|
2794
2792
|
</div>` : V;
|
|
2795
2793
|
}
|
|
2796
2794
|
};
|
|
2797
|
-
|
|
2795
|
+
Hr = Sa([
|
|
2798
2796
|
te("gaia-chat-system-message")
|
|
2799
|
-
],
|
|
2800
|
-
var
|
|
2801
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
2797
|
+
], Hr);
|
|
2798
|
+
var Ta = Object.getOwnPropertyDescriptor, Ea = (s, e, t, n) => {
|
|
2799
|
+
for (var r = n > 1 ? void 0 : n ? Ta(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2802
2800
|
(i = s[o]) && (r = i(r) || r);
|
|
2803
2801
|
return r;
|
|
2804
2802
|
};
|
|
2805
|
-
let
|
|
2803
|
+
let jr = class extends ut {
|
|
2806
2804
|
constructor() {
|
|
2807
2805
|
super(...arguments), this.position = "right";
|
|
2808
2806
|
}
|
|
@@ -2812,15 +2810,15 @@ let Hr = class extends ut {
|
|
|
2812
2810
|
</div>`;
|
|
2813
2811
|
}
|
|
2814
2812
|
};
|
|
2815
|
-
|
|
2813
|
+
jr = Ea([
|
|
2816
2814
|
te("gaia-chat-user-message")
|
|
2817
|
-
],
|
|
2815
|
+
], jr);
|
|
2818
2816
|
var Ca = Object.getOwnPropertyDescriptor, Ia = (s, e, t, n) => {
|
|
2819
2817
|
for (var r = n > 1 ? void 0 : n ? Ca(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2820
2818
|
(i = s[o]) && (r = i(r) || r);
|
|
2821
2819
|
return r;
|
|
2822
2820
|
};
|
|
2823
|
-
let
|
|
2821
|
+
let Wr = class extends oe {
|
|
2824
2822
|
render() {
|
|
2825
2823
|
return b`
|
|
2826
2824
|
<div class="relative w-full py-3">
|
|
@@ -2836,19 +2834,19 @@ let jr = class extends oe {
|
|
|
2836
2834
|
`;
|
|
2837
2835
|
}
|
|
2838
2836
|
};
|
|
2839
|
-
|
|
2837
|
+
Wr = Ia([
|
|
2840
2838
|
te("gaia-chat-thinking-indicator")
|
|
2841
|
-
],
|
|
2842
|
-
const Aa = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb-icon lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>',
|
|
2843
|
-
var
|
|
2839
|
+
], Wr);
|
|
2840
|
+
const Aa = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lightbulb-icon lucide-lightbulb"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>', $a = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-circle-icon lucide-message-circle"><path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"/></svg>';
|
|
2841
|
+
var Ra = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Bs = (s, e, t, n) => {
|
|
2844
2842
|
for (var r = n > 1 ? void 0 : n ? Pa(e, t) : e, o = s.length - 1, i; o >= 0; o--)
|
|
2845
2843
|
(i = s[o]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
|
2846
|
-
return n && r &&
|
|
2844
|
+
return n && r && Ra(e, t, r), r;
|
|
2847
2845
|
};
|
|
2848
2846
|
const Ma = {
|
|
2849
2847
|
SparklesIcon: lt,
|
|
2850
2848
|
LightBulbIcon: Aa,
|
|
2851
|
-
MessageCircleIcon:
|
|
2849
|
+
MessageCircleIcon: $a
|
|
2852
2850
|
};
|
|
2853
2851
|
let Ot = class extends oe {
|
|
2854
2852
|
constructor() {
|
|
@@ -2884,7 +2882,7 @@ let Ot = class extends oe {
|
|
|
2884
2882
|
<p>${s.body}</p>
|
|
2885
2883
|
</div>
|
|
2886
2884
|
<div class="hidden flex-col gap-2 @xs:flex @xl:grid @xl:grid-cols-2">
|
|
2887
|
-
${
|
|
2885
|
+
${rn(s.blocks, (e) => this.renderMessageBlock(e))}
|
|
2888
2886
|
</div>
|
|
2889
2887
|
|
|
2890
2888
|
<p class="font-semibold">${s.callToAction}</p>
|
|
@@ -2932,10 +2930,10 @@ let Ot = class extends oe {
|
|
|
2932
2930
|
}
|
|
2933
2931
|
};
|
|
2934
2932
|
Bs([
|
|
2935
|
-
|
|
2933
|
+
E({ attribute: !1 })
|
|
2936
2934
|
], Ot.prototype, "isInitialized", 2);
|
|
2937
2935
|
Bs([
|
|
2938
|
-
|
|
2936
|
+
E({ attribute: !1 })
|
|
2939
2937
|
], Ot.prototype, "welcomeMessages", 2);
|
|
2940
2938
|
Ot = Bs([
|
|
2941
2939
|
te("gaia-chat-welcome-message")
|
|
@@ -3004,7 +3002,7 @@ let ie = class extends oe {
|
|
|
3004
3002
|
.isInitialized=${this.isInitialized}
|
|
3005
3003
|
.welcomeMessages=${this.welcomeMessages}
|
|
3006
3004
|
></gaia-chat-welcome-message>` : V}
|
|
3007
|
-
${
|
|
3005
|
+
${sn(
|
|
3008
3006
|
this.messages,
|
|
3009
3007
|
(s) => s.messageId,
|
|
3010
3008
|
(s) => {
|
|
@@ -3042,43 +3040,43 @@ let ie = class extends oe {
|
|
|
3042
3040
|
}
|
|
3043
3041
|
};
|
|
3044
3042
|
he([
|
|
3045
|
-
|
|
3043
|
+
en("#scroll-view")
|
|
3046
3044
|
], ie.prototype, "$scrollView", 2);
|
|
3047
3045
|
he([
|
|
3048
|
-
|
|
3046
|
+
E({ attribute: !1 })
|
|
3049
3047
|
], ie.prototype, "isInitialized", 2);
|
|
3050
3048
|
he([
|
|
3051
|
-
|
|
3049
|
+
E({ attribute: !1 })
|
|
3052
3050
|
], ie.prototype, "welcomeMessages", 2);
|
|
3053
3051
|
he([
|
|
3054
|
-
|
|
3052
|
+
E({ attribute: !1 })
|
|
3055
3053
|
], ie.prototype, "isThinking", 2);
|
|
3056
3054
|
he([
|
|
3057
|
-
|
|
3055
|
+
E({ attribute: !1 })
|
|
3058
3056
|
], ie.prototype, "feedbackFormOpen", 2);
|
|
3059
3057
|
he([
|
|
3060
|
-
|
|
3058
|
+
E({ attribute: !1 })
|
|
3061
3059
|
], ie.prototype, "feedbackFormTarget", 2);
|
|
3062
3060
|
he([
|
|
3063
|
-
|
|
3061
|
+
E({ attribute: !1 })
|
|
3064
3062
|
], ie.prototype, "error", 2);
|
|
3065
3063
|
he([
|
|
3066
|
-
|
|
3064
|
+
E({ attribute: !1 })
|
|
3067
3065
|
], ie.prototype, "isConnectedToSupport", 2);
|
|
3068
3066
|
he([
|
|
3069
|
-
|
|
3067
|
+
E({ attribute: !1 })
|
|
3070
3068
|
], ie.prototype, "messages", 2);
|
|
3071
3069
|
ie = he([
|
|
3072
3070
|
te("gaia-chat-message-list")
|
|
3073
3071
|
], ie);
|
|
3074
|
-
class
|
|
3072
|
+
class On extends Error {
|
|
3075
3073
|
constructor(e, t) {
|
|
3076
3074
|
super(e), this.innerError = t, this.name = "SignalRError";
|
|
3077
3075
|
}
|
|
3078
3076
|
}
|
|
3079
|
-
class
|
|
3080
|
-
constructor(e, t) {
|
|
3081
|
-
super(t), this.innerError = e;
|
|
3077
|
+
class Hs extends Error {
|
|
3078
|
+
constructor(e, t, n) {
|
|
3079
|
+
super(t), this.innerError = e, this.errorType = n;
|
|
3082
3080
|
}
|
|
3083
3081
|
}
|
|
3084
3082
|
function gt(s) {
|
|
@@ -3088,7 +3086,7 @@ function gt(s) {
|
|
|
3088
3086
|
retryable: !1,
|
|
3089
3087
|
source: "ui",
|
|
3090
3088
|
cause: s
|
|
3091
|
-
} : s instanceof
|
|
3089
|
+
} : s instanceof $e ? s.isNetworkError ? {
|
|
3092
3090
|
code: "NETWORK",
|
|
3093
3091
|
message: k("Network error. Check your connection.", { id: "error-network-error" }),
|
|
3094
3092
|
retryable: !0,
|
|
@@ -3139,13 +3137,19 @@ function gt(s) {
|
|
|
3139
3137
|
source: "http",
|
|
3140
3138
|
http: { status: s.status, url: s.url },
|
|
3141
3139
|
cause: s
|
|
3142
|
-
} : s instanceof
|
|
3140
|
+
} : s instanceof Hs ? s.errorType && s.errorType === "ProfileNotFoundException" ? {
|
|
3141
|
+
code: "NOT_FOUND",
|
|
3142
|
+
message: k("Failed to load the current profile. Are you using the correct profile?", {
|
|
3143
|
+
id: "error-profile-not-found"
|
|
3144
|
+
}),
|
|
3145
|
+
retryable: !1
|
|
3146
|
+
} : {
|
|
3143
3147
|
code: "SSE",
|
|
3144
3148
|
message: k("Live response stream interrupted. Try again.", { id: "error-sse-error" }),
|
|
3145
3149
|
retryable: !0,
|
|
3146
3150
|
source: "sse",
|
|
3147
3151
|
cause: s
|
|
3148
|
-
} : s instanceof
|
|
3152
|
+
} : s instanceof On ? {
|
|
3149
3153
|
code: "WS",
|
|
3150
3154
|
message: k("Live chat connection error. Reconnecting might help.", {
|
|
3151
3155
|
id: "error-ws-error"
|
|
@@ -3272,13 +3276,13 @@ const zn = {
|
|
|
3272
3276
|
}), it = (s) => ({
|
|
3273
3277
|
type: "session/set-cursor-id",
|
|
3274
3278
|
payload: s
|
|
3275
|
-
}),
|
|
3279
|
+
}), js = (s) => ({
|
|
3276
3280
|
type: "session/set-channel",
|
|
3277
3281
|
payload: s
|
|
3278
3282
|
}), xs = (s) => ({
|
|
3279
3283
|
type: "session/set-thinking",
|
|
3280
3284
|
payload: s
|
|
3281
|
-
}),
|
|
3285
|
+
}), qr = (s) => ({
|
|
3282
3286
|
type: "session/set-busy",
|
|
3283
3287
|
payload: s
|
|
3284
3288
|
});
|
|
@@ -3365,7 +3369,7 @@ function Ga(s = Fn, e) {
|
|
|
3365
3369
|
return s;
|
|
3366
3370
|
}
|
|
3367
3371
|
}
|
|
3368
|
-
const
|
|
3372
|
+
const Ts = {
|
|
3369
3373
|
config: Ln,
|
|
3370
3374
|
messages: Nn,
|
|
3371
3375
|
session: zn,
|
|
@@ -3373,8 +3377,8 @@ const Es = {
|
|
|
3373
3377
|
}, Un = "app/reset", Xa = () => ({ type: Un });
|
|
3374
3378
|
function Ya(s, e) {
|
|
3375
3379
|
if (e.type === Un)
|
|
3376
|
-
return { ...
|
|
3377
|
-
const t = s ??
|
|
3380
|
+
return { ...Ts, config: s.config };
|
|
3381
|
+
const t = s ?? Ts;
|
|
3378
3382
|
return {
|
|
3379
3383
|
config: Fa(t.config, e),
|
|
3380
3384
|
messages: ja(t.messages, e),
|
|
@@ -3383,7 +3387,7 @@ function Ya(s, e) {
|
|
|
3383
3387
|
};
|
|
3384
3388
|
}
|
|
3385
3389
|
class Za {
|
|
3386
|
-
constructor(e = Ya, t =
|
|
3390
|
+
constructor(e = Ya, t = Ts) {
|
|
3387
3391
|
this.listeners = /* @__PURE__ */ new Set(), this.pending = !1, this.state = t, this.reducer = e;
|
|
3388
3392
|
}
|
|
3389
3393
|
get snapshot() {
|
|
@@ -3421,7 +3425,7 @@ class Ja {
|
|
|
3421
3425
|
this.svc.clearBootstrapConfig(), this.store.dispatch(za());
|
|
3422
3426
|
}
|
|
3423
3427
|
}
|
|
3424
|
-
class
|
|
3428
|
+
class Es {
|
|
3425
3429
|
constructor() {
|
|
3426
3430
|
this.key = "gaia-chat:conversation-id";
|
|
3427
3431
|
}
|
|
@@ -3438,7 +3442,7 @@ class Ts {
|
|
|
3438
3442
|
}
|
|
3439
3443
|
class Qa {
|
|
3440
3444
|
constructor(e, t) {
|
|
3441
|
-
this.store = e, this.svc = t, this.storage = new
|
|
3445
|
+
this.store = e, this.svc = t, this.storage = new Es();
|
|
3442
3446
|
}
|
|
3443
3447
|
async getHistory() {
|
|
3444
3448
|
const e = this.storage.load();
|
|
@@ -3446,7 +3450,7 @@ class Qa {
|
|
|
3446
3450
|
this.store.dispatch(Lt(e));
|
|
3447
3451
|
try {
|
|
3448
3452
|
const t = await this.svc.getConversationHistory(e);
|
|
3449
|
-
this.store.dispatch(Ua(t.messages)), this.store.dispatch(
|
|
3453
|
+
this.store.dispatch(Ua(t.messages)), this.store.dispatch(js(t.channel));
|
|
3450
3454
|
} catch {
|
|
3451
3455
|
this.store.dispatch(Lt(null)), this.storage.clear();
|
|
3452
3456
|
}
|
|
@@ -3477,9 +3481,9 @@ class el {
|
|
|
3477
3481
|
}
|
|
3478
3482
|
}
|
|
3479
3483
|
}
|
|
3480
|
-
const ct = () => crypto.randomUUID(),
|
|
3484
|
+
const ct = () => crypto.randomUUID(), Ws = () => (/* @__PURE__ */ new Date()).toISOString();
|
|
3481
3485
|
function Bn(s, e) {
|
|
3482
|
-
const t = e?.now?.() ??
|
|
3486
|
+
const t = e?.now?.() ?? Ws();
|
|
3483
3487
|
return {
|
|
3484
3488
|
messageId: e?.idGen?.() ?? ct(),
|
|
3485
3489
|
turnId: ct(),
|
|
@@ -3491,7 +3495,7 @@ function Bn(s, e) {
|
|
|
3491
3495
|
};
|
|
3492
3496
|
}
|
|
3493
3497
|
function tl(s) {
|
|
3494
|
-
const e =
|
|
3498
|
+
const e = Ws();
|
|
3495
3499
|
return {
|
|
3496
3500
|
messageId: ct(),
|
|
3497
3501
|
turnId: ct(),
|
|
@@ -3505,8 +3509,8 @@ function tl(s) {
|
|
|
3505
3509
|
isVisuallyHidden: !1
|
|
3506
3510
|
};
|
|
3507
3511
|
}
|
|
3508
|
-
function
|
|
3509
|
-
const n = t?.now?.() ??
|
|
3512
|
+
function Vr(s, e, t) {
|
|
3513
|
+
const n = t?.now?.() ?? Ws();
|
|
3510
3514
|
return {
|
|
3511
3515
|
messageId: t?.idGen?.() ?? ct(),
|
|
3512
3516
|
role: "operator",
|
|
@@ -3558,10 +3562,14 @@ const sl = (s) => ({
|
|
|
3558
3562
|
s.dispatch(me(e.data.messageId, { approvalStatus: "declined" }));
|
|
3559
3563
|
},
|
|
3560
3564
|
"support.handoff.start": (e) => {
|
|
3561
|
-
s.dispatch(_e(e.data.message)), s.dispatch(it(e.data.message.messageId)), s.dispatch(
|
|
3565
|
+
s.dispatch(_e(e.data.message)), s.dispatch(it(e.data.message.messageId)), s.dispatch(js("support"));
|
|
3562
3566
|
},
|
|
3563
3567
|
error: (e) => {
|
|
3564
|
-
s.dispatch(
|
|
3568
|
+
s.dispatch(
|
|
3569
|
+
De(
|
|
3570
|
+
gt(new Hs(null, e.data.message ?? "Stream error", e.data.errorType))
|
|
3571
|
+
)
|
|
3572
|
+
);
|
|
3565
3573
|
}
|
|
3566
3574
|
});
|
|
3567
3575
|
class rl {
|
|
@@ -3576,7 +3584,7 @@ class rl {
|
|
|
3576
3584
|
}
|
|
3577
3585
|
class nl {
|
|
3578
3586
|
constructor(e, t) {
|
|
3579
|
-
this.store = e, this.svc = t, this.tasks = new rl(), this.storage = new
|
|
3587
|
+
this.store = e, this.svc = t, this.tasks = new rl(), this.storage = new Es(), this.handlers = sl(this.store), this.storage = new Es();
|
|
3580
3588
|
}
|
|
3581
3589
|
async sendMessage(e, t, n) {
|
|
3582
3590
|
const r = crypto.randomUUID();
|
|
@@ -3636,14 +3644,14 @@ class nl {
|
|
|
3636
3644
|
this.tasks.cancel();
|
|
3637
3645
|
}
|
|
3638
3646
|
async consume(e) {
|
|
3639
|
-
this.store.dispatch(
|
|
3647
|
+
this.store.dispatch(qr(!0)), this.store.dispatch(xs(!0));
|
|
3640
3648
|
try {
|
|
3641
3649
|
for await (const t of e)
|
|
3642
3650
|
this.handlers[t.event]?.(t);
|
|
3643
3651
|
} catch (t) {
|
|
3644
3652
|
console.error("[SSE] stream error", t), this.store.dispatch(Va(gt(t)));
|
|
3645
3653
|
} finally {
|
|
3646
|
-
this.store.dispatch(xs(!1)), this.store.dispatch(
|
|
3654
|
+
this.store.dispatch(xs(!1)), this.store.dispatch(qr(!1));
|
|
3647
3655
|
}
|
|
3648
3656
|
}
|
|
3649
3657
|
requireConversation() {
|
|
@@ -3652,7 +3660,7 @@ class nl {
|
|
|
3652
3660
|
return e;
|
|
3653
3661
|
}
|
|
3654
3662
|
}
|
|
3655
|
-
class
|
|
3663
|
+
class Re extends Error {
|
|
3656
3664
|
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
|
|
3657
3665
|
*
|
|
3658
3666
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -3663,7 +3671,7 @@ class $e extends Error {
|
|
|
3663
3671
|
super(`${e}: Status code '${t}'`), this.statusCode = t, this.__proto__ = n;
|
|
3664
3672
|
}
|
|
3665
3673
|
}
|
|
3666
|
-
class
|
|
3674
|
+
class qs extends Error {
|
|
3667
3675
|
/** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
|
|
3668
3676
|
*
|
|
3669
3677
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -3716,7 +3724,7 @@ class al extends Error {
|
|
|
3716
3724
|
super(e), this.transport = t, this.errorType = "FailedToStartTransportError", this.__proto__ = n;
|
|
3717
3725
|
}
|
|
3718
3726
|
}
|
|
3719
|
-
class
|
|
3727
|
+
class Gr extends Error {
|
|
3720
3728
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.
|
|
3721
3729
|
*
|
|
3722
3730
|
* @param {string} message A descriptive error message.
|
|
@@ -3962,7 +3970,7 @@ class bl extends Bt {
|
|
|
3962
3970
|
if (e.timeout) {
|
|
3963
3971
|
const c = e.timeout;
|
|
3964
3972
|
r = setTimeout(() => {
|
|
3965
|
-
t.abort(), this._logger.log(h.Warning, "Timeout from HTTP request."), n = new
|
|
3973
|
+
t.abort(), this._logger.log(h.Warning, "Timeout from HTTP request."), n = new qs();
|
|
3966
3974
|
}, c);
|
|
3967
3975
|
}
|
|
3968
3976
|
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Oe(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
@@ -3987,10 +3995,10 @@ class bl extends Bt {
|
|
|
3987
3995
|
r && clearTimeout(r), e.abortSignal && (e.abortSignal.onabort = null);
|
|
3988
3996
|
}
|
|
3989
3997
|
if (!o.ok) {
|
|
3990
|
-
const c = await
|
|
3991
|
-
throw new
|
|
3998
|
+
const c = await Xr(o, "text");
|
|
3999
|
+
throw new Re(c || o.statusText, o.status);
|
|
3992
4000
|
}
|
|
3993
|
-
const a = await
|
|
4001
|
+
const a = await Xr(o, e.responseType);
|
|
3994
4002
|
return new Hn(o.status, o.statusText, a);
|
|
3995
4003
|
}
|
|
3996
4004
|
getCookieString(e) {
|
|
@@ -3998,7 +4006,7 @@ class bl extends Bt {
|
|
|
3998
4006
|
return A.isNode && this._jar && this._jar.getCookies(e, (n, r) => t = r.join("; ")), t;
|
|
3999
4007
|
}
|
|
4000
4008
|
}
|
|
4001
|
-
function
|
|
4009
|
+
function Xr(s, e) {
|
|
4002
4010
|
let t;
|
|
4003
4011
|
switch (e) {
|
|
4004
4012
|
case "arraybuffer":
|
|
@@ -4032,11 +4040,11 @@ class vl extends Bt {
|
|
|
4032
4040
|
}), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
4033
4041
|
r.abort(), n(new ne());
|
|
4034
4042
|
}), e.timeout && (r.timeout = e.timeout), r.onload = () => {
|
|
4035
|
-
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Hn(r.status, r.statusText, r.response || r.responseText)) : n(new
|
|
4043
|
+
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Hn(r.status, r.statusText, r.response || r.responseText)) : n(new Re(r.response || r.responseText || r.statusText, r.status));
|
|
4036
4044
|
}, r.onerror = () => {
|
|
4037
|
-
this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), n(new
|
|
4045
|
+
this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), n(new Re(r.statusText, r.status));
|
|
4038
4046
|
}, r.ontimeout = () => {
|
|
4039
|
-
this._logger.log(h.Warning, "Timeout from HTTP request."), n(new
|
|
4047
|
+
this._logger.log(h.Warning, "Timeout from HTTP request."), n(new qs());
|
|
4040
4048
|
}, r.send(e.content);
|
|
4041
4049
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4042
4050
|
}
|
|
@@ -4219,24 +4227,24 @@ class Sl {
|
|
|
4219
4227
|
this._message = e, this._id = t, this._resolver = n, this._rejector = r;
|
|
4220
4228
|
}
|
|
4221
4229
|
}
|
|
4222
|
-
const
|
|
4230
|
+
const Tl = 30 * 1e3, El = 15 * 1e3, Cl = 1e5;
|
|
4223
4231
|
var I;
|
|
4224
4232
|
(function(s) {
|
|
4225
4233
|
s.Disconnected = "Disconnected", s.Connecting = "Connecting", s.Connected = "Connected", s.Disconnecting = "Disconnecting", s.Reconnecting = "Reconnecting";
|
|
4226
4234
|
})(I || (I = {}));
|
|
4227
|
-
class
|
|
4235
|
+
class Vs {
|
|
4228
4236
|
/** @internal */
|
|
4229
4237
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
4230
4238
|
// create method that can be used by HubConnectionBuilder. An "internal" constructor would just
|
|
4231
4239
|
// be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
|
|
4232
4240
|
// public parameter-less constructor.
|
|
4233
4241
|
static create(e, t, n, r, o, i, a) {
|
|
4234
|
-
return new
|
|
4242
|
+
return new Vs(e, t, n, r, o, i, a);
|
|
4235
4243
|
}
|
|
4236
4244
|
constructor(e, t, n, r, o, i, a) {
|
|
4237
4245
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4238
4246
|
this._logger.log(h.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
4239
|
-
}, D.isRequired(e, "connection"), D.isRequired(t, "logger"), D.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ??
|
|
4247
|
+
}, D.isRequired(e, "connection"), D.isRequired(t, "logger"), D.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = o ?? Tl, this.keepAliveIntervalInMilliseconds = i ?? El, this._statefulReconnectBufferSize = a ?? Cl, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new _l(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = I.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: m.Ping });
|
|
4240
4248
|
}
|
|
4241
4249
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4242
4250
|
get state() {
|
|
@@ -4727,7 +4735,7 @@ class qs {
|
|
|
4727
4735
|
}
|
|
4728
4736
|
}
|
|
4729
4737
|
const Il = [0, 2e3, 1e4, 3e4, null];
|
|
4730
|
-
class
|
|
4738
|
+
class Yr {
|
|
4731
4739
|
constructor(e) {
|
|
4732
4740
|
this._retryDelays = e !== void 0 ? [...e, null] : Il;
|
|
4733
4741
|
}
|
|
@@ -4764,7 +4772,7 @@ var j;
|
|
|
4764
4772
|
(function(s) {
|
|
4765
4773
|
s[s.Text = 1] = "Text", s[s.Binary = 2] = "Binary";
|
|
4766
4774
|
})(j || (j = {}));
|
|
4767
|
-
let
|
|
4775
|
+
let $l = class {
|
|
4768
4776
|
constructor() {
|
|
4769
4777
|
this._isAborted = !1, this.onabort = null;
|
|
4770
4778
|
}
|
|
@@ -4778,13 +4786,13 @@ let Rl = class {
|
|
|
4778
4786
|
return this._isAborted;
|
|
4779
4787
|
}
|
|
4780
4788
|
};
|
|
4781
|
-
class
|
|
4789
|
+
class Zr {
|
|
4782
4790
|
// This is an internal type, not exported from 'index' so this is really just internal.
|
|
4783
4791
|
get pollAborted() {
|
|
4784
4792
|
return this._pollAbort.aborted;
|
|
4785
4793
|
}
|
|
4786
4794
|
constructor(e, t, n) {
|
|
4787
|
-
this._httpClient = e, this._logger = t, this._pollAbort = new
|
|
4795
|
+
this._httpClient = e, this._logger = t, this._pollAbort = new $l(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
4788
4796
|
}
|
|
4789
4797
|
async connect(e, t) {
|
|
4790
4798
|
if (D.isRequired(e, "url"), D.isRequired(t, "transferFormat"), D.isIn(t, j, "transferFormat"), this._url = e, this._logger.log(h.Trace, "(LongPolling transport) Connecting."), t === j.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
@@ -4799,7 +4807,7 @@ class Yr {
|
|
|
4799
4807
|
const a = `${e}&_=${Date.now()}`;
|
|
4800
4808
|
this._logger.log(h.Trace, `(LongPolling transport) polling: ${a}.`);
|
|
4801
4809
|
const c = await this._httpClient.get(a, i);
|
|
4802
|
-
c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new
|
|
4810
|
+
c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new Re(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, i);
|
|
4803
4811
|
}
|
|
4804
4812
|
async _poll(e, t) {
|
|
4805
4813
|
try {
|
|
@@ -4808,9 +4816,9 @@ class Yr {
|
|
|
4808
4816
|
const n = `${e}&_=${Date.now()}`;
|
|
4809
4817
|
this._logger.log(h.Trace, `(LongPolling transport) polling: ${n}.`);
|
|
4810
4818
|
const r = await this._httpClient.get(n, t);
|
|
4811
|
-
r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new
|
|
4819
|
+
r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Re(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(h.Trace, `(LongPolling transport) data received. ${dt(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
4812
4820
|
} catch (n) {
|
|
4813
|
-
this._running ? n instanceof
|
|
4821
|
+
this._running ? n instanceof qs ? this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(h.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
|
|
4814
4822
|
}
|
|
4815
4823
|
} finally {
|
|
4816
4824
|
this._logger.log(h.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
|
|
@@ -4836,7 +4844,7 @@ class Yr {
|
|
|
4836
4844
|
} catch (i) {
|
|
4837
4845
|
o = i;
|
|
4838
4846
|
}
|
|
4839
|
-
o ? o instanceof
|
|
4847
|
+
o ? o instanceof Re && (o.statusCode === 404 ? this._logger.log(h.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(h.Trace, `(LongPolling transport) Error sending a DELETE request: ${o}`)) : this._logger.log(h.Trace, "(LongPolling transport) DELETE request accepted.");
|
|
4840
4848
|
} finally {
|
|
4841
4849
|
this._logger.log(h.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
|
|
4842
4850
|
}
|
|
@@ -4848,7 +4856,7 @@ class Yr {
|
|
|
4848
4856
|
}
|
|
4849
4857
|
}
|
|
4850
4858
|
}
|
|
4851
|
-
class
|
|
4859
|
+
class Rl {
|
|
4852
4860
|
constructor(e, t, n, r) {
|
|
4853
4861
|
this._httpClient = e, this._accessToken = t, this._logger = n, this._options = r, this.onreceive = null, this.onclose = null;
|
|
4854
4862
|
}
|
|
@@ -4956,7 +4964,7 @@ class Pl {
|
|
|
4956
4964
|
return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
|
|
4957
4965
|
}
|
|
4958
4966
|
}
|
|
4959
|
-
const
|
|
4967
|
+
const Kr = 100;
|
|
4960
4968
|
class Ml {
|
|
4961
4969
|
constructor(e, t = {}) {
|
|
4962
4970
|
if (this._stopPromiseResolver = () => {
|
|
@@ -4985,7 +4993,7 @@ class Ml {
|
|
|
4985
4993
|
this._connectionStarted = !0;
|
|
4986
4994
|
}
|
|
4987
4995
|
send(e) {
|
|
4988
|
-
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new
|
|
4996
|
+
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new Gs(this.transport)), this._sendQueue.send(e));
|
|
4989
4997
|
}
|
|
4990
4998
|
async stop(e) {
|
|
4991
4999
|
if (this._connectionState === "Disconnected")
|
|
@@ -5035,12 +5043,12 @@ class Ml {
|
|
|
5035
5043
|
this._accessTokenFactory = () => o, this._httpClient._accessToken = o, this._httpClient._accessTokenFactory = void 0;
|
|
5036
5044
|
}
|
|
5037
5045
|
r++;
|
|
5038
|
-
} while (n.url && r <
|
|
5039
|
-
if (r ===
|
|
5046
|
+
} while (n.url && r < Kr);
|
|
5047
|
+
if (r === Kr && n.url)
|
|
5040
5048
|
throw new Error("Negotiate redirection limit exceeded.");
|
|
5041
5049
|
await this._createTransport(t, this._options.transport, n, e);
|
|
5042
5050
|
}
|
|
5043
|
-
this.transport instanceof
|
|
5051
|
+
this.transport instanceof Zr && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(h.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
|
|
5044
5052
|
} catch (n) {
|
|
5045
5053
|
return this._logger.log(h.Error, "Failed to start the connection: " + n), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(n);
|
|
5046
5054
|
}
|
|
@@ -5060,10 +5068,10 @@ class Ml {
|
|
|
5060
5068
|
if (i.statusCode !== 200)
|
|
5061
5069
|
return Promise.reject(new Error(`Unexpected status code returned from negotiate '${i.statusCode}'`));
|
|
5062
5070
|
const a = JSON.parse(i.content);
|
|
5063
|
-
return (!a.negotiateVersion || a.negotiateVersion < 1) && (a.connectionToken = a.connectionId), a.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new
|
|
5071
|
+
return (!a.negotiateVersion || a.negotiateVersion < 1) && (a.connectionToken = a.connectionId), a.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new Gr("Client didn't negotiate Stateful Reconnect but the server did.")) : a;
|
|
5064
5072
|
} catch (i) {
|
|
5065
5073
|
let a = "Failed to complete negotiation with the server: " + i;
|
|
5066
|
-
return i instanceof
|
|
5074
|
+
return i instanceof Re && i.statusCode === 404 && (a = a + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(h.Error, a), Promise.reject(new Gr(a));
|
|
5067
5075
|
}
|
|
5068
5076
|
}
|
|
5069
5077
|
_createConnectUrl(e, t) {
|
|
@@ -5112,9 +5120,9 @@ class Ml {
|
|
|
5112
5120
|
case L.ServerSentEvents:
|
|
5113
5121
|
if (!this._options.EventSource)
|
|
5114
5122
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5115
|
-
return new
|
|
5123
|
+
return new Rl(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5116
5124
|
case L.LongPolling:
|
|
5117
|
-
return new
|
|
5125
|
+
return new Zr(this._httpClient, this._logger, this._options);
|
|
5118
5126
|
default:
|
|
5119
5127
|
throw new Error(`Unknown transport: ${e}.`);
|
|
5120
5128
|
}
|
|
@@ -5193,12 +5201,12 @@ class Ml {
|
|
|
5193
5201
|
function Dl(s, e) {
|
|
5194
5202
|
return !s || (e & s) !== 0;
|
|
5195
5203
|
}
|
|
5196
|
-
class
|
|
5204
|
+
class Gs {
|
|
5197
5205
|
constructor(e) {
|
|
5198
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
5206
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Et(), this._transportResult = new Et(), this._sendLoopPromise = this._sendLoop();
|
|
5199
5207
|
}
|
|
5200
5208
|
send(e) {
|
|
5201
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
5209
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new Et()), this._transportResult.promise;
|
|
5202
5210
|
}
|
|
5203
5211
|
stop() {
|
|
5204
5212
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -5214,10 +5222,10 @@ class Vs {
|
|
|
5214
5222
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
5215
5223
|
break;
|
|
5216
5224
|
}
|
|
5217
|
-
this._sendBufferedData = new
|
|
5225
|
+
this._sendBufferedData = new Et();
|
|
5218
5226
|
const e = this._transportResult;
|
|
5219
5227
|
this._transportResult = void 0;
|
|
5220
|
-
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") :
|
|
5228
|
+
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : Gs._concatBuffers(this._buffer);
|
|
5221
5229
|
this._buffer.length = 0;
|
|
5222
5230
|
try {
|
|
5223
5231
|
await this._transport.send(t), e.resolve();
|
|
@@ -5234,7 +5242,7 @@ class Vs {
|
|
|
5234
5242
|
return n.buffer;
|
|
5235
5243
|
}
|
|
5236
5244
|
}
|
|
5237
|
-
class
|
|
5245
|
+
class Et {
|
|
5238
5246
|
constructor() {
|
|
5239
5247
|
this.promise = new Promise((e, t) => [this._resolver, this._rejecter] = [e, t]);
|
|
5240
5248
|
}
|
|
@@ -5371,7 +5379,7 @@ class Fl {
|
|
|
5371
5379
|
withAutomaticReconnect(e) {
|
|
5372
5380
|
if (this.reconnectPolicy)
|
|
5373
5381
|
throw new Error("A reconnectPolicy has already been set.");
|
|
5374
|
-
return e ? Array.isArray(e) ? this.reconnectPolicy = new
|
|
5382
|
+
return e ? Array.isArray(e) ? this.reconnectPolicy = new Yr(e) : this.reconnectPolicy = e : this.reconnectPolicy = new Yr(), this;
|
|
5375
5383
|
}
|
|
5376
5384
|
/** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
|
|
5377
5385
|
*
|
|
@@ -5403,7 +5411,7 @@ class Fl {
|
|
|
5403
5411
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
5404
5412
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
5405
5413
|
const t = new Ml(this.url, e);
|
|
5406
|
-
return
|
|
5414
|
+
return Vs.create(t, this.logger || ht.instance, this.protocol || new Ll(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
5407
5415
|
}
|
|
5408
5416
|
}
|
|
5409
5417
|
function Ul(s) {
|
|
@@ -5467,7 +5475,7 @@ class Bl {
|
|
|
5467
5475
|
}
|
|
5468
5476
|
}
|
|
5469
5477
|
onError(e) {
|
|
5470
|
-
this.store.dispatch(De(gt(new
|
|
5478
|
+
this.store.dispatch(De(gt(new On("Support connection error", e))));
|
|
5471
5479
|
}
|
|
5472
5480
|
clearTyping(e) {
|
|
5473
5481
|
const t = this.typingTimeoutByOp.get(e);
|
|
@@ -5492,7 +5500,7 @@ class Bl {
|
|
|
5492
5500
|
const n = crypto.randomUUID();
|
|
5493
5501
|
this.operatorMsgIdByOp.set(t.id, n), this.store.dispatch(
|
|
5494
5502
|
_e(
|
|
5495
|
-
|
|
5503
|
+
Vr(t, "...", { idGen: () => n, isTyping: !0 })
|
|
5496
5504
|
)
|
|
5497
5505
|
);
|
|
5498
5506
|
}
|
|
@@ -5511,7 +5519,7 @@ class Bl {
|
|
|
5511
5519
|
status: "completed"
|
|
5512
5520
|
})
|
|
5513
5521
|
), this.operatorMsgIdByOp.delete(t.id)) : this.store.dispatch(
|
|
5514
|
-
_e(
|
|
5522
|
+
_e(Vr(t, e.content, { status: "completed" }))
|
|
5515
5523
|
);
|
|
5516
5524
|
}
|
|
5517
5525
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5520,7 +5528,7 @@ class Bl {
|
|
|
5520
5528
|
}
|
|
5521
5529
|
onSupportEnded() {
|
|
5522
5530
|
const e = tl();
|
|
5523
|
-
this.store.dispatch(_e(e)), this.store.dispatch(it(e.messageId)), this.store.dispatch(
|
|
5531
|
+
this.store.dispatch(_e(e)), this.store.dispatch(it(e.messageId)), this.store.dispatch(js("assistant"));
|
|
5524
5532
|
}
|
|
5525
5533
|
}
|
|
5526
5534
|
class ve extends CustomEvent {
|
|
@@ -5533,7 +5541,7 @@ class Hl extends ve {
|
|
|
5533
5541
|
super("conversation-cleared");
|
|
5534
5542
|
}
|
|
5535
5543
|
}
|
|
5536
|
-
class
|
|
5544
|
+
class Jr extends ve {
|
|
5537
5545
|
constructor(e, t) {
|
|
5538
5546
|
super("message-sent", { detail: { message: e, channel: t } });
|
|
5539
5547
|
}
|
|
@@ -5573,7 +5581,7 @@ class Yl extends ve {
|
|
|
5573
5581
|
super("close-requested");
|
|
5574
5582
|
}
|
|
5575
5583
|
}
|
|
5576
|
-
const Zl = "2.0.
|
|
5584
|
+
const Zl = "2.0.3", Kl = {
|
|
5577
5585
|
version: Zl
|
|
5578
5586
|
};
|
|
5579
5587
|
class Jl {
|
|
@@ -5589,19 +5597,19 @@ class Jl {
|
|
|
5589
5597
|
try {
|
|
5590
5598
|
r = await n();
|
|
5591
5599
|
} catch (o) {
|
|
5592
|
-
throw new
|
|
5600
|
+
throw new $e("Network error", 0, this.formatUrl(e), o);
|
|
5593
5601
|
}
|
|
5594
5602
|
if (r.status === 401) {
|
|
5595
5603
|
await this.authProvider.clear();
|
|
5596
5604
|
try {
|
|
5597
5605
|
r = await n();
|
|
5598
5606
|
} catch (o) {
|
|
5599
|
-
throw new
|
|
5607
|
+
throw new $e("Network error", 0, this.formatUrl(e), o);
|
|
5600
5608
|
}
|
|
5601
5609
|
if (r.status === 401)
|
|
5602
|
-
throw new
|
|
5610
|
+
throw new $e("Unauthorized", r.status, r.url);
|
|
5603
5611
|
}
|
|
5604
|
-
return await
|
|
5612
|
+
return await nn(r), r;
|
|
5605
5613
|
}
|
|
5606
5614
|
formatUrl(e) {
|
|
5607
5615
|
const t = String(e);
|
|
@@ -5652,7 +5660,7 @@ class ec {
|
|
|
5652
5660
|
this.storage.clear();
|
|
5653
5661
|
}
|
|
5654
5662
|
}
|
|
5655
|
-
class
|
|
5663
|
+
class Qr extends Error {
|
|
5656
5664
|
constructor(e, t) {
|
|
5657
5665
|
super(e), this.name = "ParseError", this.type = t.type, this.field = t.field, this.value = t.value, this.line = t.line;
|
|
5658
5666
|
}
|
|
@@ -5667,60 +5675,60 @@ function tc(s) {
|
|
|
5667
5675
|
const { onEvent: e = ps, onError: t = ps, onRetry: n = ps, onComment: r } = s;
|
|
5668
5676
|
let o = "", i = !0, a, c = "", d = "";
|
|
5669
5677
|
function u(v) {
|
|
5670
|
-
const
|
|
5678
|
+
const R = i ? v.replace(/^\xEF\xBB\xBF/, "") : v, [J, ye] = sc(`${o}${R}`);
|
|
5671
5679
|
for (const se of J)
|
|
5672
5680
|
w(se);
|
|
5673
5681
|
o = ye, i = !1;
|
|
5674
5682
|
}
|
|
5675
5683
|
function w(v) {
|
|
5676
5684
|
if (v === "") {
|
|
5677
|
-
|
|
5685
|
+
$();
|
|
5678
5686
|
return;
|
|
5679
5687
|
}
|
|
5680
5688
|
if (v.startsWith(":")) {
|
|
5681
5689
|
r && r(v.slice(v.startsWith(": ") ? 2 : 1));
|
|
5682
5690
|
return;
|
|
5683
5691
|
}
|
|
5684
|
-
const
|
|
5685
|
-
if (
|
|
5686
|
-
const J = v.slice(0,
|
|
5692
|
+
const R = v.indexOf(":");
|
|
5693
|
+
if (R !== -1) {
|
|
5694
|
+
const J = v.slice(0, R), ye = v[R + 1] === " " ? 2 : 1, se = v.slice(R + ye);
|
|
5687
5695
|
_(J, se, v);
|
|
5688
5696
|
return;
|
|
5689
5697
|
}
|
|
5690
5698
|
_(v, "", v);
|
|
5691
5699
|
}
|
|
5692
|
-
function _(v,
|
|
5700
|
+
function _(v, R, J) {
|
|
5693
5701
|
switch (v) {
|
|
5694
5702
|
case "event":
|
|
5695
|
-
d =
|
|
5703
|
+
d = R;
|
|
5696
5704
|
break;
|
|
5697
5705
|
case "data":
|
|
5698
|
-
c = `${c}${
|
|
5706
|
+
c = `${c}${R}
|
|
5699
5707
|
`;
|
|
5700
5708
|
break;
|
|
5701
5709
|
case "id":
|
|
5702
|
-
a =
|
|
5710
|
+
a = R.includes("\0") ? void 0 : R;
|
|
5703
5711
|
break;
|
|
5704
5712
|
case "retry":
|
|
5705
|
-
/^\d+$/.test(
|
|
5706
|
-
new
|
|
5713
|
+
/^\d+$/.test(R) ? n(parseInt(R, 10)) : t(
|
|
5714
|
+
new Qr(`Invalid \`retry\` value: "${R}"`, {
|
|
5707
5715
|
type: "invalid-retry",
|
|
5708
|
-
value:
|
|
5716
|
+
value: R,
|
|
5709
5717
|
line: J
|
|
5710
5718
|
})
|
|
5711
5719
|
);
|
|
5712
5720
|
break;
|
|
5713
5721
|
default:
|
|
5714
5722
|
t(
|
|
5715
|
-
new
|
|
5723
|
+
new Qr(
|
|
5716
5724
|
`Unknown field "${v.length > 20 ? `${v.slice(0, 20)}…` : v}"`,
|
|
5717
|
-
{ type: "unknown-field", field: v, value:
|
|
5725
|
+
{ type: "unknown-field", field: v, value: R, line: J }
|
|
5718
5726
|
)
|
|
5719
5727
|
);
|
|
5720
5728
|
break;
|
|
5721
5729
|
}
|
|
5722
5730
|
}
|
|
5723
|
-
function
|
|
5731
|
+
function $() {
|
|
5724
5732
|
c.length > 0 && e({
|
|
5725
5733
|
id: a,
|
|
5726
5734
|
event: d || void 0,
|
|
@@ -5730,10 +5738,10 @@ function tc(s) {
|
|
|
5730
5738
|
`) ? c.slice(0, -1) : c
|
|
5731
5739
|
}), a = void 0, c = "", d = "";
|
|
5732
5740
|
}
|
|
5733
|
-
function
|
|
5741
|
+
function T(v = {}) {
|
|
5734
5742
|
o && v.consume && w(o), i = !0, a = void 0, c = "", d = "", o = "";
|
|
5735
5743
|
}
|
|
5736
|
-
return { feed: u, reset:
|
|
5744
|
+
return { feed: u, reset: T };
|
|
5737
5745
|
}
|
|
5738
5746
|
function sc(s) {
|
|
5739
5747
|
const e = [];
|
|
@@ -5784,7 +5792,7 @@ async function* us(s, e) {
|
|
|
5784
5792
|
yield o;
|
|
5785
5793
|
}
|
|
5786
5794
|
} catch (o) {
|
|
5787
|
-
throw new
|
|
5795
|
+
throw new Hs(o);
|
|
5788
5796
|
} finally {
|
|
5789
5797
|
try {
|
|
5790
5798
|
r.releaseLock();
|
|
@@ -5913,7 +5921,7 @@ const cc = (s, e, t) => {
|
|
|
5913
5921
|
}, Wn = "en", hc = ["nb"], dc = ["en", "nb"], { getLocale: pc, setLocale: uc } = zo({
|
|
5914
5922
|
sourceLocale: Wn,
|
|
5915
5923
|
targetLocales: hc,
|
|
5916
|
-
loadLocale: (s) => cc(/* @__PURE__ */ Object.assign({ "../generated/locales/nb.ts": () => import("./nb-
|
|
5924
|
+
loadLocale: (s) => cc(/* @__PURE__ */ Object.assign({ "../generated/locales/nb.ts": () => import("./nb-CpHjB6yw.js") }), `../generated/locales/${s}.ts`, 4)
|
|
5917
5925
|
});
|
|
5918
5926
|
function gc(s) {
|
|
5919
5927
|
const [e] = s.split("-"), t = e.toLowerCase();
|
|
@@ -5942,7 +5950,7 @@ let ee = class extends oe {
|
|
|
5942
5950
|
this.dispatchEvent(new Xl(n));
|
|
5943
5951
|
}
|
|
5944
5952
|
});
|
|
5945
|
-
const { kind: s, strategy: e } =
|
|
5953
|
+
const { kind: s, strategy: e } = kr(this.baseUrl, this.vismaAccessToken);
|
|
5946
5954
|
this.accessTokenProvider.setStrategy(s, e), this.apiClient = new Jl(this.accessTokenProvider, {
|
|
5947
5955
|
baseUrl: this.baseUrl,
|
|
5948
5956
|
fetchImpl: fetch
|
|
@@ -5958,7 +5966,7 @@ let ee = class extends oe {
|
|
|
5958
5966
|
}
|
|
5959
5967
|
async onPrincipalChanged(s, e, t, n) {
|
|
5960
5968
|
if (s === e && t === n) return;
|
|
5961
|
-
const r = await this.accessTokenProvider.getIdentifier(), { kind: o, strategy: i } =
|
|
5969
|
+
const r = await this.accessTokenProvider.getIdentifier(), { kind: o, strategy: i } = kr(this.baseUrl, e);
|
|
5962
5970
|
this.accessTokenProvider.setStrategy(o, i);
|
|
5963
5971
|
const a = await this.accessTokenProvider.getIdentifier();
|
|
5964
5972
|
(!s && !!e || !t && !!n || a !== r) && (this.bootstrapEffect.clear(), this.streamEffect.abortCurrentTask?.(), this.supportEffect.close(), this.supportEffect.stop()), this.bootstrapEffect.initialize(), this.conversationEffect.getHistory();
|
|
@@ -5979,7 +5987,7 @@ let ee = class extends oe {
|
|
|
5979
5987
|
async onSendMessage(s) {
|
|
5980
5988
|
s.stopPropagation();
|
|
5981
5989
|
const e = s.detail.message;
|
|
5982
|
-
!e || !this.streamEffect || (this.closeFeedbackIfOpen(), this.isConnectedToSupport ? (this.supportEffect.sendMessage(e), this.dispatchEvent(new
|
|
5990
|
+
!e || !this.streamEffect || (this.closeFeedbackIfOpen(), this.isConnectedToSupport ? (this.supportEffect.sendMessage(e), this.dispatchEvent(new Jr(e, "support"))) : (this.streamEffect?.sendMessage(e, this.profileId, this.supportPartnerId), this.dispatchEvent(new Jr(e, "assistant"))));
|
|
5983
5991
|
}
|
|
5984
5992
|
onApproveToolCall(s) {
|
|
5985
5993
|
s.stopPropagation(), this.closeFeedbackIfOpen(), this.streamEffect?.approveToolCall(s.detail.turnId, s.detail.messageId), this.dispatchEvent(new jl(s.detail.turnId, s.detail.messageId));
|
|
@@ -6065,26 +6073,26 @@ let ee = class extends oe {
|
|
|
6065
6073
|
}
|
|
6066
6074
|
};
|
|
6067
6075
|
ae([
|
|
6068
|
-
|
|
6076
|
+
E({ type: String, attribute: "base-url" })
|
|
6069
6077
|
], ee.prototype, "baseUrl", 2);
|
|
6070
6078
|
ae([
|
|
6071
|
-
|
|
6079
|
+
E({ type: String, attribute: "profile-id" })
|
|
6072
6080
|
], ee.prototype, "profileId", 2);
|
|
6073
6081
|
ae([
|
|
6074
|
-
|
|
6082
|
+
E({ type: String, attribute: "support-partner-id" })
|
|
6075
6083
|
], ee.prototype, "supportPartnerId", 2);
|
|
6076
6084
|
ae([
|
|
6077
|
-
|
|
6085
|
+
E({
|
|
6078
6086
|
type: String,
|
|
6079
6087
|
attribute: "visma-token",
|
|
6080
6088
|
reflect: !1
|
|
6081
6089
|
})
|
|
6082
6090
|
], ee.prototype, "vismaAccessToken", 2);
|
|
6083
6091
|
ae([
|
|
6084
|
-
|
|
6092
|
+
E({ type: Boolean, attribute: "is-visitor" })
|
|
6085
6093
|
], ee.prototype, "isVisitor", 2);
|
|
6086
6094
|
ae([
|
|
6087
|
-
|
|
6095
|
+
E({
|
|
6088
6096
|
type: Boolean,
|
|
6089
6097
|
attribute: "closeable",
|
|
6090
6098
|
reflect: !0,
|
|
@@ -6110,4 +6118,4 @@ export {
|
|
|
6110
6118
|
ee as C,
|
|
6111
6119
|
So as s
|
|
6112
6120
|
};
|
|
6113
|
-
//# sourceMappingURL=index-
|
|
6121
|
+
//# sourceMappingURL=index-CdLh5lbh.js.map
|