@cliquify.me/ai-effects 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.es.js +336 -336
  2. package/package.json +4 -4
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import M, { forwardRef as eo, isValidElement as us, createElement as Is, useState as pr, useRef as Zu, useEffect as Vu } from "react";
1
+ import M, { forwardRef as eo, isValidElement as us, createElement as Ts, useState as pr, useRef as Zu, useEffect as Vu } from "react";
2
2
  import qu from "react-dom";
3
3
  import { jsxs as ve, jsx as J } from "react/jsx-runtime";
4
4
  import { dispatch as Vn } from "@designcombo/events";
5
5
  import { Easing as _r } from "remotion";
6
- var xi = "vercel.ai.error", Gu = Symbol.for(xi), ki, Hu = class Ti extends Error {
6
+ var xi = "vercel.ai.error", Gu = Symbol.for(xi), ki, Hu = class Ii extends Error {
7
7
  /**
8
8
  * Creates an AI SDK Error.
9
9
  *
@@ -25,7 +25,7 @@ var xi = "vercel.ai.error", Gu = Symbol.for(xi), ki, Hu = class Ti extends Error
25
25
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
26
26
  */
27
27
  static isInstance(t) {
28
- return Ti.hasMarker(t, xi);
28
+ return Ii.hasMarker(t, xi);
29
29
  }
30
30
  static hasMarker(t, r) {
31
31
  const n = Symbol.for(r);
@@ -33,7 +33,7 @@ var xi = "vercel.ai.error", Gu = Symbol.for(xi), ki, Hu = class Ti extends Error
33
33
  }
34
34
  };
35
35
  ki = Gu;
36
- var Y = Hu, Ii = "AI_APICallError", Si = `vercel.ai.error.${Ii}`, Ju = Symbol.for(Si), Ai, St = class extends Y {
36
+ var Y = Hu, Ti = "AI_APICallError", Si = `vercel.ai.error.${Ti}`, Ju = Symbol.for(Si), Ai, St = class extends Y {
37
37
  constructor({
38
38
  message: e,
39
39
  url: t,
@@ -49,7 +49,7 @@ var Y = Hu, Ii = "AI_APICallError", Si = `vercel.ai.error.${Ii}`, Ju = Symbol.fo
49
49
  // server error
50
50
  data: u
51
51
  }) {
52
- super({ name: Ii, message: e, cause: o }), this[Ai] = !0, this.url = t, this.requestBodyValues = r, this.statusCode = n, this.responseHeaders = a, this.responseBody = s, this.isRetryable = l, this.data = u;
52
+ super({ name: Ti, message: e, cause: o }), this[Ai] = !0, this.url = t, this.requestBodyValues = r, this.statusCode = n, this.responseHeaders = a, this.responseBody = s, this.isRetryable = l, this.data = u;
53
53
  }
54
54
  static isInstance(e) {
55
55
  return Y.hasMarker(e, Si);
@@ -209,7 +209,7 @@ function uc(e) {
209
209
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
210
210
  }
211
211
  var Zr = { exports: {} };
212
- const cc = typeof Buffer < "u", ko = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, To = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
212
+ const cc = typeof Buffer < "u", ko = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, Io = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
213
213
  function ol(e, t, r) {
214
214
  r == null && t !== null && typeof t == "object" && (r = t, t = void 0), cc && Buffer.isBuffer(e) && (e = e.toString()), e && e.charCodeAt(0) === 65279 && (e = e.slice(1));
215
215
  const n = JSON.parse(e, t);
@@ -219,12 +219,12 @@ function ol(e, t, r) {
219
219
  if (a === "ignore" && s === "ignore")
220
220
  return n;
221
221
  if (a !== "ignore" && s !== "ignore") {
222
- if (ko.test(e) === !1 && To.test(e) === !1)
222
+ if (ko.test(e) === !1 && Io.test(e) === !1)
223
223
  return n;
224
224
  } else if (a !== "ignore" && s === "ignore") {
225
225
  if (ko.test(e) === !1)
226
226
  return n;
227
- } else if (To.test(e) === !1)
227
+ } else if (Io.test(e) === !1)
228
228
  return n;
229
229
  return il(n, { protoAction: a, constructorAction: s, safe: r && r.safe });
230
230
  }
@@ -488,7 +488,7 @@ function Vr({
488
488
  };
489
489
  }
490
490
  }
491
- function Tc({
491
+ function Ic({
492
492
  text: e,
493
493
  schema: t
494
494
  }) {
@@ -516,7 +516,7 @@ function Lr({
516
516
  };
517
517
  }
518
518
  }
519
- function Io(e) {
519
+ function To(e) {
520
520
  try {
521
521
  return ro.parse(e), !0;
522
522
  } catch {
@@ -542,7 +542,7 @@ function wn({
542
542
  });
543
543
  return n.value;
544
544
  }
545
- var Ic = () => globalThis.fetch, wt = async ({
545
+ var Tc = () => globalThis.fetch, wt = async ({
546
546
  url: e,
547
547
  headers: t,
548
548
  body: r,
@@ -590,7 +590,7 @@ var Ic = () => globalThis.fetch, wt = async ({
590
590
  successfulResponseHandler: n,
591
591
  failedResponseHandler: a,
592
592
  abortSignal: s,
593
- fetch: o = Ic()
593
+ fetch: o = Tc()
594
594
  }) => {
595
595
  try {
596
596
  const l = await o(e, {
@@ -676,7 +676,7 @@ var ao = ({
676
676
  })
677
677
  };
678
678
  try {
679
- const u = Tc({
679
+ const u = Ic({
680
680
  text: o,
681
681
  schema: e
682
682
  });
@@ -2374,7 +2374,7 @@ function Dr(e) {
2374
2374
  } else return e instanceof Wt ? new Wt({
2375
2375
  ...e._def,
2376
2376
  type: Dr(e.element)
2377
- }) : e instanceof or ? or.create(Dr(e.unwrap())) : e instanceof Ar ? Ar.create(Dr(e.unwrap())) : e instanceof Tr ? Tr.create(e.items.map((t) => Dr(t))) : e;
2377
+ }) : e instanceof or ? or.create(Dr(e.unwrap())) : e instanceof Ar ? Ar.create(Dr(e.unwrap())) : e instanceof Ir ? Ir.create(e.items.map((t) => Dr(t))) : e;
2378
2378
  }
2379
2379
  class Me extends ae {
2380
2380
  constructor() {
@@ -2737,7 +2737,7 @@ Xn.create = (e, t) => new Xn({
2737
2737
  typeName: N.ZodUnion,
2738
2738
  ...Q(t)
2739
2739
  });
2740
- const nr = (e) => e instanceof ta ? nr(e.schema) : e instanceof Sr ? nr(e.innerType()) : e instanceof ra ? [e.value] : e instanceof Ir ? e.options : e instanceof Rs ? ce.objectValues(e.enum) : e instanceof aa ? nr(e._def.innerType) : e instanceof Cs ? [void 0] : e instanceof Kn ? [null] : e instanceof or ? [void 0, ...nr(e.unwrap())] : e instanceof Ar ? [null, ...nr(e.unwrap())] : e instanceof pl || e instanceof oa ? nr(e.unwrap()) : e instanceof sa ? nr(e._def.innerType) : [];
2740
+ const nr = (e) => e instanceof ta ? nr(e.schema) : e instanceof Sr ? nr(e.innerType()) : e instanceof ra ? [e.value] : e instanceof Tr ? e.options : e instanceof Rs ? ce.objectValues(e.enum) : e instanceof aa ? nr(e._def.innerType) : e instanceof Cs ? [void 0] : e instanceof Kn ? [null] : e instanceof or ? [void 0, ...nr(e.unwrap())] : e instanceof Ar ? [null, ...nr(e.unwrap())] : e instanceof pl || e instanceof oa ? nr(e.unwrap()) : e instanceof sa ? nr(e._def.innerType) : [];
2741
2741
  class oo extends ae {
2742
2742
  _parse(t) {
2743
2743
  const { ctx: r } = this._processInputParams(t);
@@ -2864,7 +2864,7 @@ Qn.create = (e, t, r) => new Qn({
2864
2864
  typeName: N.ZodIntersection,
2865
2865
  ...Q(r)
2866
2866
  });
2867
- class Tr extends ae {
2867
+ class Ir extends ae {
2868
2868
  _parse(t) {
2869
2869
  const { status: r, ctx: n } = this._processInputParams(t);
2870
2870
  if (n.parsedType !== F.array)
@@ -2898,16 +2898,16 @@ class Tr extends ae {
2898
2898
  return this._def.items;
2899
2899
  }
2900
2900
  rest(t) {
2901
- return new Tr({
2901
+ return new Ir({
2902
2902
  ...this._def,
2903
2903
  rest: t
2904
2904
  });
2905
2905
  }
2906
2906
  }
2907
- Tr.create = (e, t) => {
2907
+ Ir.create = (e, t) => {
2908
2908
  if (!Array.isArray(e))
2909
2909
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2910
- return new Tr({
2910
+ return new Ir({
2911
2911
  items: e,
2912
2912
  typeName: N.ZodTuple,
2913
2913
  rest: null,
@@ -3103,13 +3103,13 @@ ra.create = (e, t) => new ra({
3103
3103
  ...Q(t)
3104
3104
  });
3105
3105
  function dl(e, t) {
3106
- return new Ir({
3106
+ return new Tr({
3107
3107
  values: e,
3108
3108
  typeName: N.ZodEnum,
3109
3109
  ...Q(t)
3110
3110
  });
3111
3111
  }
3112
- class Ir extends ae {
3112
+ class Tr extends ae {
3113
3113
  _parse(t) {
3114
3114
  if (typeof t.data != "string") {
3115
3115
  const r = this._getOrReturnCtx(t), n = this._def.values;
@@ -3151,19 +3151,19 @@ class Ir extends ae {
3151
3151
  return t;
3152
3152
  }
3153
3153
  extract(t, r = this._def) {
3154
- return Ir.create(t, {
3154
+ return Tr.create(t, {
3155
3155
  ...this._def,
3156
3156
  ...r
3157
3157
  });
3158
3158
  }
3159
3159
  exclude(t, r = this._def) {
3160
- return Ir.create(this.options.filter((n) => !t.includes(n)), {
3160
+ return Tr.create(this.options.filter((n) => !t.includes(n)), {
3161
3161
  ...this._def,
3162
3162
  ...r
3163
3163
  });
3164
3164
  }
3165
3165
  }
3166
- Ir.create = dl;
3166
+ Tr.create = dl;
3167
3167
  class Rs extends ae {
3168
3168
  _parse(t) {
3169
3169
  const r = ce.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(t);
@@ -3513,7 +3513,7 @@ const ia = (e, t = {
3513
3513
  mr.create;
3514
3514
  const Z = Wt.create, _ = Me.create, xe = Xn.create, xr = oo.create;
3515
3515
  Qn.create;
3516
- const jo = Tr.create, sn = ea.create, rd = ta.create, D = ra.create, ur = Ir.create;
3516
+ const jo = Ir.create, sn = ea.create, rd = ta.create, D = ra.create, ur = Tr.create;
3517
3517
  na.create;
3518
3518
  const qe = or.create;
3519
3519
  Ar.create;
@@ -3812,7 +3812,7 @@ var id = class {
3812
3812
  type: "other",
3813
3813
  message: `The 'includeThoughts' option is only supported with the Google Vertex provider and might not be supported or could behave unexpectedly with the current Google provider (${this.config.provider}).`
3814
3814
  });
3815
- const T = {
3815
+ const I = {
3816
3816
  // standardized settings:
3817
3817
  maxOutputTokens: r,
3818
3818
  temperature: n,
@@ -3844,7 +3844,7 @@ var id = class {
3844
3844
  );
3845
3845
  return {
3846
3846
  args: {
3847
- generationConfig: T,
3847
+ generationConfig: I,
3848
3848
  contents: O,
3849
3849
  systemInstruction: w,
3850
3850
  safetySettings: this.settings.safetySettings,
@@ -3859,7 +3859,7 @@ var id = class {
3859
3859
  return {
3860
3860
  args: {
3861
3861
  generationConfig: {
3862
- ...T,
3862
+ ...I,
3863
3863
  responseMimeType: "application/json",
3864
3864
  responseSchema: e.schema != null && // Google GenAI does not support all OpenAPI Schema features,
3865
3865
  // so this is needed as an escape hatch:
@@ -3875,7 +3875,7 @@ var id = class {
3875
3875
  case "object-tool":
3876
3876
  return {
3877
3877
  args: {
3878
- generationConfig: T,
3878
+ generationConfig: I,
3879
3879
  contents: O,
3880
3880
  systemInstruction: w,
3881
3881
  tools: {
@@ -3927,7 +3927,7 @@ var id = class {
3927
3927
  parts: g,
3928
3928
  // Use candidateParts
3929
3929
  generateId: this.config.generateId
3930
- }), T = m.usageMetadata;
3930
+ }), I = m.usageMetadata;
3931
3931
  return {
3932
3932
  text: Lo(g),
3933
3933
  reasoning: Uo(g),
@@ -3941,8 +3941,8 @@ var id = class {
3941
3941
  hasToolCalls: x != null && x.length > 0
3942
3942
  }),
3943
3943
  usage: {
3944
- promptTokens: (r = T == null ? void 0 : T.promptTokenCount) != null ? r : NaN,
3945
- completionTokens: (n = T == null ? void 0 : T.candidatesTokenCount) != null ? n : NaN
3944
+ promptTokens: (r = I == null ? void 0 : I.promptTokenCount) != null ? r : NaN,
3945
+ completionTokens: (n = I == null ? void 0 : I.candidatesTokenCount) != null ? n : NaN
3946
3946
  },
3947
3947
  rawCall: { rawPrompt: f, rawSettings: k },
3948
3948
  rawResponse: { headers: p, body: b },
@@ -3985,7 +3985,7 @@ var id = class {
3985
3985
  stream: o.pipeThrough(
3986
3986
  new TransformStream({
3987
3987
  transform(k, y) {
3988
- var g, x, T, O, w, S;
3988
+ var g, x, I, O, w, S;
3989
3989
  if (!k.success) {
3990
3990
  y.enqueue({ type: "error", error: k.error });
3991
3991
  return;
@@ -3995,7 +3995,7 @@ var id = class {
3995
3995
  promptTokens: (g = U.promptTokenCount) != null ? g : NaN,
3996
3996
  completionTokens: (x = U.candidatesTokenCount) != null ? x : NaN
3997
3997
  });
3998
- const R = (T = A.candidates) == null ? void 0 : T[0];
3998
+ const R = (I = A.candidates) == null ? void 0 : I[0];
3999
3999
  if (R == null)
4000
4000
  return;
4001
4001
  const P = R.content;
@@ -4621,7 +4621,7 @@ var yd = class {
4621
4621
  seed: p,
4622
4622
  providerMetadata: m
4623
4623
  }) {
4624
- var b, f, k, y, g, x, T, O;
4624
+ var b, f, k, y, g, x, I, O;
4625
4625
  const w = e.type, S = [];
4626
4626
  s != null && S.push({
4627
4627
  type: "unsupported-setting",
@@ -4680,7 +4680,7 @@ var yd = class {
4680
4680
  store: (k = m == null ? void 0 : m.openai) == null ? void 0 : k.store,
4681
4681
  metadata: (y = m == null ? void 0 : m.openai) == null ? void 0 : y.metadata,
4682
4682
  prediction: (g = m == null ? void 0 : m.openai) == null ? void 0 : g.prediction,
4683
- reasoning_effort: (T = (x = m == null ? void 0 : m.openai) == null ? void 0 : x.reasoningEffort) != null ? T : this.settings.reasoningEffort,
4683
+ reasoning_effort: (I = (x = m == null ? void 0 : m.openai) == null ? void 0 : x.reasoningEffort) != null ? I : this.settings.reasoningEffort,
4684
4684
  // messages:
4685
4685
  messages: U
4686
4686
  };
@@ -4806,8 +4806,8 @@ var yd = class {
4806
4806
  ),
4807
4807
  abortSignal: e.abortSignal,
4808
4808
  fetch: this.config.fetch
4809
- }), { messages: k, ...y } = c, g = b.choices[0], x = (t = b.usage) == null ? void 0 : t.completion_tokens_details, T = (r = b.usage) == null ? void 0 : r.prompt_tokens_details, O = { openai: {} };
4810
- return (x == null ? void 0 : x.reasoning_tokens) != null && (O.openai.reasoningTokens = x == null ? void 0 : x.reasoning_tokens), (x == null ? void 0 : x.accepted_prediction_tokens) != null && (O.openai.acceptedPredictionTokens = x == null ? void 0 : x.accepted_prediction_tokens), (x == null ? void 0 : x.rejected_prediction_tokens) != null && (O.openai.rejectedPredictionTokens = x == null ? void 0 : x.rejected_prediction_tokens), (T == null ? void 0 : T.cached_tokens) != null && (O.openai.cachedPromptTokens = T == null ? void 0 : T.cached_tokens), {
4809
+ }), { messages: k, ...y } = c, g = b.choices[0], x = (t = b.usage) == null ? void 0 : t.completion_tokens_details, I = (r = b.usage) == null ? void 0 : r.prompt_tokens_details, O = { openai: {} };
4810
+ return (x == null ? void 0 : x.reasoning_tokens) != null && (O.openai.reasoningTokens = x == null ? void 0 : x.reasoning_tokens), (x == null ? void 0 : x.accepted_prediction_tokens) != null && (O.openai.acceptedPredictionTokens = x == null ? void 0 : x.accepted_prediction_tokens), (x == null ? void 0 : x.rejected_prediction_tokens) != null && (O.openai.rejectedPredictionTokens = x == null ? void 0 : x.rejected_prediction_tokens), (I == null ? void 0 : I.cached_tokens) != null && (O.openai.cachedPromptTokens = I == null ? void 0 : I.cached_tokens), {
4811
4811
  text: (n = g.message.content) != null ? n : void 0,
4812
4812
  toolCalls: this.settings.useLegacyFunctionCalling && g.message.function_call ? [
4813
4813
  {
@@ -4849,16 +4849,16 @@ var yd = class {
4849
4849
  type: "text-delta",
4850
4850
  textDelta: y.text
4851
4851
  }), y.toolCalls)
4852
- for (const T of y.toolCalls)
4852
+ for (const I of y.toolCalls)
4853
4853
  x.enqueue({
4854
4854
  type: "tool-call-delta",
4855
4855
  toolCallType: "function",
4856
- toolCallId: T.toolCallId,
4857
- toolName: T.toolName,
4858
- argsTextDelta: T.args
4856
+ toolCallId: I.toolCallId,
4857
+ toolName: I.toolName,
4858
+ argsTextDelta: I.args
4859
4859
  }), x.enqueue({
4860
4860
  type: "tool-call",
4861
- ...T
4861
+ ...I
4862
4862
  });
4863
4863
  x.enqueue({
4864
4864
  type: "finish",
@@ -4902,7 +4902,7 @@ var yd = class {
4902
4902
  stream: s.pipeThrough(
4903
4903
  new TransformStream({
4904
4904
  transform(y, g) {
4905
- var x, T, O, w, S, A, U, R, P, se, le, pe;
4905
+ var x, I, O, w, S, A, U, R, P, se, le, pe;
4906
4906
  if (!y.success) {
4907
4907
  c = "error", g.enqueue({ type: "error", error: y.error });
4908
4908
  return;
@@ -4935,10 +4935,10 @@ var yd = class {
4935
4935
  type: "text-delta",
4936
4936
  textDelta: ke.content
4937
4937
  });
4938
- const Ie = Zo(
4938
+ const Te = Zo(
4939
4939
  te == null ? void 0 : te.logprobs
4940
4940
  );
4941
- Ie != null && Ie.length && (m === void 0 && (m = []), m.push(...Ie));
4941
+ Te != null && Te.length && (m === void 0 && (m = []), m.push(...Te));
4942
4942
  const Se = f && ke.function_call != null ? [
4943
4943
  {
4944
4944
  type: "function",
@@ -4971,7 +4971,7 @@ var yd = class {
4971
4971
  type: "function",
4972
4972
  function: {
4973
4973
  name: he.function.name,
4974
- arguments: (T = he.function.arguments) != null ? T : ""
4974
+ arguments: (I = he.function.arguments) != null ? I : ""
4975
4975
  },
4976
4976
  hasFinished: !1
4977
4977
  };
@@ -4982,7 +4982,7 @@ var yd = class {
4982
4982
  toolCallId: ee.id,
4983
4983
  toolName: ee.function.name,
4984
4984
  argsTextDelta: ee.function.arguments
4985
- }), Io(ee.function.arguments) && (g.enqueue({
4985
+ }), To(ee.function.arguments) && (g.enqueue({
4986
4986
  type: "tool-call",
4987
4987
  toolCallType: "function",
4988
4988
  toolCallId: (S = ee.id) != null ? S : hr(),
@@ -4998,7 +4998,7 @@ var yd = class {
4998
4998
  toolCallId: L.id,
4999
4999
  toolName: L.function.name,
5000
5000
  argsTextDelta: (P = he.function.arguments) != null ? P : ""
5001
- }), ((se = L.function) == null ? void 0 : se.name) != null && ((le = L.function) == null ? void 0 : le.arguments) != null && Io(L.function.arguments) && (g.enqueue({
5001
+ }), ((se = L.function) == null ? void 0 : se.name) != null && ((le = L.function) == null ? void 0 : le.arguments) != null && To(L.function.arguments) && (g.enqueue({
5002
5002
  type: "tool-call",
5003
5003
  toolCallType: "function",
5004
5004
  toolCallId: (pe = L.id) != null ? pe : hr(),
@@ -5253,7 +5253,7 @@ function Vo(e) {
5253
5253
  ) : []
5254
5254
  }));
5255
5255
  }
5256
- var Td = class {
5256
+ var Id = class {
5257
5257
  constructor(e, t, r) {
5258
5258
  this.specificationVersion = "v1", this.defaultObjectGenerationMode = void 0, this.modelId = e, this.settings = t, this.config = r;
5259
5259
  }
@@ -5284,7 +5284,7 @@ var Td = class {
5284
5284
  setting: "responseFormat",
5285
5285
  details: "JSON response format is not supported."
5286
5286
  });
5287
- const { prompt: y, stopSequences: g } = kd({ prompt: r, inputFormat: t }), x = [...g ?? [], ...c ?? []], T = {
5287
+ const { prompt: y, stopSequences: g } = kd({ prompt: r, inputFormat: t }), x = [...g ?? [], ...c ?? []], I = {
5288
5288
  // model id:
5289
5289
  model: this.modelId,
5290
5290
  // model specific settings:
@@ -5315,7 +5315,7 @@ var Td = class {
5315
5315
  throw new _e({
5316
5316
  functionality: "toolChoice"
5317
5317
  });
5318
- return { args: T, warnings: k };
5318
+ return { args: I, warnings: k };
5319
5319
  }
5320
5320
  case "object-json":
5321
5321
  throw new _e({
@@ -5345,7 +5345,7 @@ var Td = class {
5345
5345
  body: t,
5346
5346
  failedResponseHandler: Kt,
5347
5347
  successfulResponseHandler: cr(
5348
- Id
5348
+ Td
5349
5349
  ),
5350
5350
  abortSignal: e.abortSignal,
5351
5351
  fetch: this.config.fetch
@@ -5435,7 +5435,7 @@ var Td = class {
5435
5435
  request: { body: JSON.stringify(n) }
5436
5436
  };
5437
5437
  }
5438
- }, Id = _({
5438
+ }, Td = _({
5439
5439
  id: v().nullish(),
5440
5440
  created: E().nullish(),
5441
5441
  model: v().nullish(),
@@ -5981,7 +5981,7 @@ var Fd = class {
5981
5981
  type: "unsupported-setting",
5982
5982
  setting: "stopSequences"
5983
5983
  });
5984
- const { messages: T, warnings: O } = $d({
5984
+ const { messages: I, warnings: O } = $d({
5985
5985
  prompt: c,
5986
5986
  systemMessageMode: g.systemMessageMode
5987
5987
  });
@@ -5992,7 +5992,7 @@ var Fd = class {
5992
5992
  schema: sp
5993
5993
  }), S = (b = w == null ? void 0 : w.strictSchemas) != null ? b : !0, A = {
5994
5994
  model: this.modelId,
5995
- input: T,
5995
+ input: I,
5996
5996
  temperature: r,
5997
5997
  top_p: a,
5998
5998
  max_output_tokens: t,
@@ -6186,13 +6186,13 @@ var Fd = class {
6186
6186
  text: k.map((x) => x.text).join(`
6187
6187
  `),
6188
6188
  sources: k.flatMap(
6189
- (x) => x.annotations.map((T) => {
6189
+ (x) => x.annotations.map((I) => {
6190
6190
  var O, w, S;
6191
6191
  return {
6192
6192
  sourceType: "url",
6193
6193
  id: (S = (w = (O = this.config).generateId) == null ? void 0 : w.call(O)) != null ? S : hr(),
6194
- url: T.url,
6195
- title: T.title
6194
+ url: I.url,
6195
+ title: I.title
6196
6196
  };
6197
6197
  })
6198
6198
  ),
@@ -6260,7 +6260,7 @@ var Fd = class {
6260
6260
  stream: a.pipeThrough(
6261
6261
  new TransformStream({
6262
6262
  transform(k, y) {
6263
- var g, x, T, O, w, S, A, U;
6263
+ var g, x, I, O, w, S, A, U;
6264
6264
  if (!k.success) {
6265
6265
  o = "error", y.enqueue({ type: "error", error: k.error });
6266
6266
  return;
@@ -6306,7 +6306,7 @@ var Fd = class {
6306
6306
  })) : Kd(R) ? (o = Go({
6307
6307
  finishReason: (g = R.response.incomplete_details) == null ? void 0 : g.reason,
6308
6308
  hasToolCalls: f
6309
- }), l = R.response.usage.input_tokens, u = R.response.usage.output_tokens, c = (T = (x = R.response.usage.input_tokens_details) == null ? void 0 : x.cached_tokens) != null ? T : c, p = (w = (O = R.response.usage.output_tokens_details) == null ? void 0 : O.reasoning_tokens) != null ? w : p) : tp(R) ? y.enqueue({
6309
+ }), l = R.response.usage.input_tokens, u = R.response.usage.output_tokens, c = (I = (x = R.response.usage.input_tokens_details) == null ? void 0 : x.cached_tokens) != null ? I : c, p = (w = (O = R.response.usage.output_tokens_details) == null ? void 0 : O.reasoning_tokens) != null ? w : p) : tp(R) ? y.enqueue({
6310
6310
  type: "source",
6311
6311
  source: {
6312
6312
  sourceType: "url",
@@ -6591,54 +6591,54 @@ function wl(e = {}) {
6591
6591
  "OpenAI-Organization": e.organization,
6592
6592
  "OpenAI-Project": e.project,
6593
6593
  ...e.headers
6594
- }), u = (x, T = {}) => new yd(x, T, {
6594
+ }), u = (x, I = {}) => new yd(x, I, {
6595
6595
  provider: `${o}.chat`,
6596
6596
  url: ({ path: O }) => `${a}${O}`,
6597
6597
  headers: l,
6598
6598
  compatibility: s,
6599
6599
  fetch: e.fetch
6600
- }), c = (x, T = {}) => new Td(x, T, {
6600
+ }), c = (x, I = {}) => new Id(x, I, {
6601
6601
  provider: `${o}.completion`,
6602
6602
  url: ({ path: O }) => `${a}${O}`,
6603
6603
  headers: l,
6604
6604
  compatibility: s,
6605
6605
  fetch: e.fetch
6606
- }), p = (x, T = {}) => new Ad(x, T, {
6606
+ }), p = (x, I = {}) => new Ad(x, I, {
6607
6607
  provider: `${o}.embedding`,
6608
6608
  url: ({ path: O }) => `${a}${O}`,
6609
6609
  headers: l,
6610
6610
  fetch: e.fetch
6611
- }), m = (x, T = {}) => new Od(x, T, {
6611
+ }), m = (x, I = {}) => new Od(x, I, {
6612
6612
  provider: `${o}.image`,
6613
6613
  url: ({ path: O }) => `${a}${O}`,
6614
6614
  headers: l,
6615
6615
  fetch: e.fetch
6616
6616
  }), b = (x) => new Md(x, {
6617
6617
  provider: `${o}.transcription`,
6618
- url: ({ path: T }) => `${a}${T}`,
6618
+ url: ({ path: I }) => `${a}${I}`,
6619
6619
  headers: l,
6620
6620
  fetch: e.fetch
6621
6621
  }), f = (x) => new cp(x, {
6622
6622
  provider: `${o}.speech`,
6623
- url: ({ path: T }) => `${a}${T}`,
6623
+ url: ({ path: I }) => `${a}${I}`,
6624
6624
  headers: l,
6625
6625
  fetch: e.fetch
6626
- }), k = (x, T) => {
6626
+ }), k = (x, I) => {
6627
6627
  if (new.target)
6628
6628
  throw new Error(
6629
6629
  "The OpenAI model function cannot be called with the new keyword."
6630
6630
  );
6631
6631
  return x === "gpt-3.5-turbo-instruct" ? c(
6632
6632
  x,
6633
- T
6634
- ) : u(x, T);
6633
+ I
6634
+ ) : u(x, I);
6635
6635
  }, y = (x) => new Fd(x, {
6636
6636
  provider: `${o}.responses`,
6637
- url: ({ path: T }) => `${a}${T}`,
6637
+ url: ({ path: I }) => `${a}${I}`,
6638
6638
  headers: l,
6639
6639
  fetch: e.fetch
6640
- }), g = function(x, T) {
6641
- return k(x, T);
6640
+ }), g = function(x, I) {
6641
+ return k(x, I);
6642
6642
  };
6643
6643
  return g.languageModel = k, g.chat = u, g.completion = c, g.responses = y, g.embedding = p, g.textEmbedding = p, g.textEmbeddingModel = p, g.image = m, g.imageModel = m, g.transcription = b, g.transcriptionModel = b, g.speech = f, g.speechModel = f, g.tools = lp, g;
6644
6644
  }
@@ -6797,8 +6797,8 @@ function fp({
6797
6797
  case "user": {
6798
6798
  const g = [];
6799
6799
  for (const x of f.messages) {
6800
- const { role: T, content: O } = x;
6801
- switch (T) {
6800
+ const { role: I, content: O } = x;
6801
+ switch (I) {
6802
6802
  case "user": {
6803
6803
  for (let w = 0; w < O.length; w++) {
6804
6804
  const S = O[w], A = w === O.length - 1, U = (n = m(S.providerMetadata)) != null ? n : A ? m(x.providerMetadata) : void 0;
@@ -6883,7 +6883,7 @@ function fp({
6883
6883
  break;
6884
6884
  }
6885
6885
  default: {
6886
- const w = T;
6886
+ const w = I;
6887
6887
  throw new Error(`Unsupported role: ${w}`);
6888
6888
  }
6889
6889
  }
@@ -6894,9 +6894,9 @@ function fp({
6894
6894
  case "assistant": {
6895
6895
  const g = [];
6896
6896
  for (let x = 0; x < f.messages.length; x++) {
6897
- const T = f.messages[x], O = x === f.messages.length - 1, { content: w } = T;
6897
+ const I = f.messages[x], O = x === f.messages.length - 1, { content: w } = I;
6898
6898
  for (let S = 0; S < w.length; S++) {
6899
- const A = w[S], U = S === w.length - 1, R = (o = m(A.providerMetadata)) != null ? o : U ? m(T.providerMetadata) : void 0;
6899
+ const A = w[S], U = S === w.length - 1, R = (o = m(A.providerMetadata)) != null ? o : U ? m(I.providerMetadata) : void 0;
6900
6900
  switch (A.type) {
6901
6901
  case "text": {
6902
6902
  g.push({
@@ -7045,7 +7045,7 @@ var mp = class {
7045
7045
  setting: "responseFormat",
7046
7046
  details: "JSON response format is not supported."
7047
7047
  });
7048
- const { prompt: x, betas: T } = fp({
7048
+ const { prompt: x, betas: I } = fp({
7049
7049
  prompt: t,
7050
7050
  sendReasoning: (b = this.settings.sendReasoning) != null ? b : !0,
7051
7051
  warnings: g
@@ -7100,7 +7100,7 @@ var mp = class {
7100
7100
  return {
7101
7101
  args: { ...A, tools: U, tool_choice: R },
7102
7102
  warnings: [...g, ...P],
7103
- betas: /* @__PURE__ */ new Set([...T, ...se])
7103
+ betas: /* @__PURE__ */ new Set([...I, ...se])
7104
7104
  };
7105
7105
  }
7106
7106
  case "object-json":
@@ -7116,7 +7116,7 @@ var mp = class {
7116
7116
  tool_choice: { type: "tool", name: U }
7117
7117
  },
7118
7118
  warnings: g,
7119
- betas: T
7119
+ betas: I
7120
7120
  };
7121
7121
  }
7122
7122
  default: {
@@ -7236,7 +7236,7 @@ var mp = class {
7236
7236
  stream: o.pipeThrough(
7237
7237
  new TransformStream({
7238
7238
  transform(k, y) {
7239
- var g, x, T, O;
7239
+ var g, x, I, O;
7240
7240
  if (!k.success) {
7241
7241
  y.enqueue({ type: "error", error: k.error });
7242
7242
  return;
@@ -7339,7 +7339,7 @@ var mp = class {
7339
7339
  }
7340
7340
  }, y.enqueue({
7341
7341
  type: "response-metadata",
7342
- id: (T = w.message.id) != null ? T : void 0,
7342
+ id: (I = w.message.id) != null ? I : void 0,
7343
7343
  modelId: (O = w.message.model) != null ? O : void 0
7344
7344
  });
7345
7345
  return;
@@ -7532,7 +7532,7 @@ var kp = _({
7532
7532
  old_str: v().optional(),
7533
7533
  view_range: Z(E().int()).optional()
7534
7534
  });
7535
- function Tp(e = {}) {
7535
+ function Ip(e = {}) {
7536
7536
  return {
7537
7537
  type: "provider-defined",
7538
7538
  id: "anthropic.text_editor_20241022",
@@ -7542,7 +7542,7 @@ function Tp(e = {}) {
7542
7542
  experimental_toToolResultContent: e.experimental_toToolResultContent
7543
7543
  };
7544
7544
  }
7545
- var Ip = _({
7545
+ var Tp = _({
7546
7546
  command: ur(["view", "create", "str_replace", "insert", "undo_edit"]),
7547
7547
  path: v(),
7548
7548
  file_text: v().optional(),
@@ -7556,7 +7556,7 @@ function Sp(e = {}) {
7556
7556
  type: "provider-defined",
7557
7557
  id: "anthropic.text_editor_20250124",
7558
7558
  args: {},
7559
- parameters: Ip,
7559
+ parameters: Tp,
7560
7560
  execute: e.execute,
7561
7561
  experimental_toToolResultContent: e.experimental_toToolResultContent
7562
7562
  };
@@ -7634,7 +7634,7 @@ function Np(e) {
7634
7634
  var Op = {
7635
7635
  bash_20241022: bp,
7636
7636
  bash_20250124: xp,
7637
- textEditor_20241022: Tp,
7637
+ textEditor_20241022: Ip,
7638
7638
  textEditor_20250124: Sp,
7639
7639
  computer_20241022: Ep,
7640
7640
  computer_20250124: Np
@@ -7880,13 +7880,13 @@ function sf(e) {
7880
7880
  }
7881
7881
  var of = (e) => {
7882
7882
  var t, r, n, a, s, o, l, u, c, p, m;
7883
- let { invert: b, toast: f, unstyled: k, interacting: y, setHeights: g, visibleToasts: x, heights: T, index: O, toasts: w, expanded: S, removeToast: A, defaultRichColors: U, closeButton: R, style: P, cancelButtonStyle: se, actionButtonStyle: le, className: pe = "", descriptionClassName: be = "", duration: te, position: ke, gap: Ie, loadingIcon: Se, expandByDefault: he, classNames: V, icons: L, closeButtonAriaLabel: ee = "Close toast", pauseWhenPageIsHidden: re } = e, [K, oe] = M.useState(null), [G, Ye] = M.useState(null), [ne, Ae] = M.useState(!1), [q, Ne] = M.useState(!1), [je, Be] = M.useState(!1), [lt, Ge] = M.useState(!1), [j, $e] = M.useState(!1), [Ee, De] = M.useState(0), [Ke, kt] = M.useState(0), rt = M.useRef(f.duration || te || Wo), ut = M.useRef(null), ct = M.useRef(null), dt = O === 0, ze = O + 1 <= x, Fe = f.type, Le = f.dismissible !== !1, $t = f.className || "", pt = f.descriptionClassName || "", Oe = M.useMemo(() => T.findIndex((H) => H.toastId === f.id) || 0, [T, f.id]), Xt = M.useMemo(() => {
7883
+ let { invert: b, toast: f, unstyled: k, interacting: y, setHeights: g, visibleToasts: x, heights: I, index: O, toasts: w, expanded: S, removeToast: A, defaultRichColors: U, closeButton: R, style: P, cancelButtonStyle: se, actionButtonStyle: le, className: pe = "", descriptionClassName: be = "", duration: te, position: ke, gap: Te, loadingIcon: Se, expandByDefault: he, classNames: V, icons: L, closeButtonAriaLabel: ee = "Close toast", pauseWhenPageIsHidden: re } = e, [K, oe] = M.useState(null), [G, Ye] = M.useState(null), [ne, Ae] = M.useState(!1), [q, Ne] = M.useState(!1), [je, Be] = M.useState(!1), [lt, Ge] = M.useState(!1), [j, $e] = M.useState(!1), [Ee, De] = M.useState(0), [Ke, kt] = M.useState(0), rt = M.useRef(f.duration || te || Wo), ut = M.useRef(null), ct = M.useRef(null), dt = O === 0, ze = O + 1 <= x, Fe = f.type, Le = f.dismissible !== !1, $t = f.className || "", pt = f.descriptionClassName || "", Oe = M.useMemo(() => I.findIndex((H) => H.toastId === f.id) || 0, [I, f.id]), Xt = M.useMemo(() => {
7884
7884
  var H;
7885
7885
  return (H = f.closeButton) != null ? H : R;
7886
- }, [f.closeButton, R]), Tt = M.useMemo(() => f.duration || te || Wo, [f.duration, te]), qt = M.useRef(0), we = M.useRef(0), ft = M.useRef(0), ht = M.useRef(null), [Dt, Et] = ke.split("-"), He = M.useMemo(() => T.reduce((H, ie, me) => me >= Oe ? H : H + ie.height, 0), [T, Oe]), Ct = Zp(), Ce = f.invert || b, Ze = Fe === "loading";
7887
- we.current = M.useMemo(() => Oe * Ie + He, [Oe, He]), M.useEffect(() => {
7888
- rt.current = Tt;
7889
- }, [Tt]), M.useEffect(() => {
7886
+ }, [f.closeButton, R]), It = M.useMemo(() => f.duration || te || Wo, [f.duration, te]), qt = M.useRef(0), we = M.useRef(0), ft = M.useRef(0), ht = M.useRef(null), [Dt, Et] = ke.split("-"), He = M.useMemo(() => I.reduce((H, ie, me) => me >= Oe ? H : H + ie.height, 0), [I, Oe]), Ct = Zp(), Ce = f.invert || b, Ze = Fe === "loading";
7887
+ we.current = M.useMemo(() => Oe * Te + He, [Oe, He]), M.useEffect(() => {
7888
+ rt.current = It;
7889
+ }, [It]), M.useEffect(() => {
7890
7890
  Ae(!0);
7891
7891
  }, []), M.useEffect(() => {
7892
7892
  let H = ct.current;
@@ -7979,7 +7979,7 @@ function lf(e, t) {
7979
7979
  }), r;
7980
7980
  }
7981
7981
  eo(function(e, t) {
7982
- let { invert: r, position: n = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: s, closeButton: o, className: l, offset: u, mobileOffset: c, theme: p = "light", richColors: m, duration: b, style: f, visibleToasts: k = Xp, toastOptions: y, dir: g = Yo(), gap: x = rf, loadingIcon: T, icons: O, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: S } = e, [A, U] = M.useState([]), R = M.useMemo(() => Array.from(new Set([n].concat(A.filter((re) => re.position).map((re) => re.position)))), [A, n]), [P, se] = M.useState([]), [le, pe] = M.useState(!1), [be, te] = M.useState(!1), [ke, Ie] = M.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Se = M.useRef(null), he = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), V = M.useRef(null), L = M.useRef(!1), ee = M.useCallback((re) => {
7982
+ let { invert: r, position: n = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: s, closeButton: o, className: l, offset: u, mobileOffset: c, theme: p = "light", richColors: m, duration: b, style: f, visibleToasts: k = Xp, toastOptions: y, dir: g = Yo(), gap: x = rf, loadingIcon: I, icons: O, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: S } = e, [A, U] = M.useState([]), R = M.useMemo(() => Array.from(new Set([n].concat(A.filter((re) => re.position).map((re) => re.position)))), [A, n]), [P, se] = M.useState([]), [le, pe] = M.useState(!1), [be, te] = M.useState(!1), [ke, Te] = M.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Se = M.useRef(null), he = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), V = M.useRef(null), L = M.useRef(!1), ee = M.useCallback((re) => {
7983
7983
  U((K) => {
7984
7984
  var oe;
7985
7985
  return (oe = K.find((G) => G.id === re.id)) != null && oe.delete || vt.dismiss(re.id), K.filter(({ id: G }) => G !== re.id);
@@ -8000,19 +8000,19 @@ eo(function(e, t) {
8000
8000
  });
8001
8001
  }), []), M.useEffect(() => {
8002
8002
  if (p !== "system") {
8003
- Ie(p);
8003
+ Te(p);
8004
8004
  return;
8005
8005
  }
8006
- if (p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? Ie("dark") : Ie("light")), typeof window > "u") return;
8006
+ if (p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? Te("dark") : Te("light")), typeof window > "u") return;
8007
8007
  let re = window.matchMedia("(prefers-color-scheme: dark)");
8008
8008
  try {
8009
8009
  re.addEventListener("change", ({ matches: K }) => {
8010
- Ie(K ? "dark" : "light");
8010
+ Te(K ? "dark" : "light");
8011
8011
  });
8012
8012
  } catch {
8013
8013
  re.addListener(({ matches: oe }) => {
8014
8014
  try {
8015
- Ie(oe ? "dark" : "light");
8015
+ Te(oe ? "dark" : "light");
8016
8016
  } catch (G) {
8017
8017
  console.error(G);
8018
8018
  }
@@ -8043,7 +8043,7 @@ eo(function(e, t) {
8043
8043
  ne.target instanceof HTMLElement && ne.target.dataset.dismissible === "false" || te(!0);
8044
8044
  }, onPointerUp: () => te(!1) }, A.filter((ne) => !ne.position && K === 0 || ne.position === re).map((ne, Ae) => {
8045
8045
  var q, Ne;
8046
- return M.createElement(of, { key: ne.id, icons: O, index: Ae, toast: ne, defaultRichColors: m, duration: (q = y == null ? void 0 : y.duration) != null ? q : b, className: y == null ? void 0 : y.className, descriptionClassName: y == null ? void 0 : y.descriptionClassName, invert: r, visibleToasts: k, closeButton: (Ne = y == null ? void 0 : y.closeButton) != null ? Ne : o, interacting: be, position: re, style: y == null ? void 0 : y.style, unstyled: y == null ? void 0 : y.unstyled, classNames: y == null ? void 0 : y.classNames, cancelButtonStyle: y == null ? void 0 : y.cancelButtonStyle, actionButtonStyle: y == null ? void 0 : y.actionButtonStyle, removeToast: ee, toasts: A.filter((je) => je.position == ne.position), heights: P.filter((je) => je.position == ne.position), setHeights: se, expandByDefault: s, gap: x, loadingIcon: T, expanded: le, pauseWhenPageIsHidden: S, swipeDirections: e.swipeDirections });
8046
+ return M.createElement(of, { key: ne.id, icons: O, index: Ae, toast: ne, defaultRichColors: m, duration: (q = y == null ? void 0 : y.duration) != null ? q : b, className: y == null ? void 0 : y.className, descriptionClassName: y == null ? void 0 : y.descriptionClassName, invert: r, visibleToasts: k, closeButton: (Ne = y == null ? void 0 : y.closeButton) != null ? Ne : o, interacting: be, position: re, style: y == null ? void 0 : y.style, unstyled: y == null ? void 0 : y.unstyled, classNames: y == null ? void 0 : y.classNames, cancelButtonStyle: y == null ? void 0 : y.cancelButtonStyle, actionButtonStyle: y == null ? void 0 : y.actionButtonStyle, removeToast: ee, toasts: A.filter((je) => je.position == ne.position), heights: P.filter((je) => je.position == ne.position), setHeights: se, expandByDefault: s, gap: x, loadingIcon: I, expanded: le, pauseWhenPageIsHidden: S, swipeDirections: e.swipeDirections });
8047
8047
  })) : null;
8048
8048
  }));
8049
8049
  });
@@ -8103,7 +8103,7 @@ function kl(e, t, r, n) {
8103
8103
  function ye(e, t, r, n, a) {
8104
8104
  e[t] = r, kl(e, t, n, a);
8105
8105
  }
8106
- const Tl = (e, t) => {
8106
+ const Il = (e, t) => {
8107
8107
  let r = 0;
8108
8108
  for (; r < e.length && r < t.length && e[r] === t[r]; r++)
8109
8109
  ;
@@ -8118,7 +8118,7 @@ function xt(e) {
8118
8118
  e.openAiAnyTypeName
8119
8119
  ];
8120
8120
  return e.flags.hasReferencedOpenAiAnyType = !0, {
8121
- $ref: e.$refStrategy === "relative" ? Tl(t, e.currentPath) : t.join("/")
8121
+ $ref: e.$refStrategy === "relative" ? Il(t, e.currentPath) : t.join("/")
8122
8122
  };
8123
8123
  }
8124
8124
  function pf(e, t) {
@@ -8157,7 +8157,7 @@ function hf() {
8157
8157
  type: "boolean"
8158
8158
  };
8159
8159
  }
8160
- function Il(e, t) {
8160
+ function Tl(e, t) {
8161
8161
  return fe(e.type._def, t);
8162
8162
  }
8163
8163
  const mf = (e, t) => fe(e.innerType._def, t);
@@ -8426,10 +8426,10 @@ function Al(e, t) {
8426
8426
  return r;
8427
8427
  }
8428
8428
  function hs(e, t) {
8429
- return t.patternStrategy === "escape" ? Tf(e) : e;
8429
+ return t.patternStrategy === "escape" ? If(e) : e;
8430
8430
  }
8431
8431
  const kf = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
8432
- function Tf(e) {
8432
+ function If(e) {
8433
8433
  let t = "";
8434
8434
  for (let r = 0; r < e.length; r++)
8435
8435
  kf.has(e[r]) || (t += "\\"), t += e[r];
@@ -8551,7 +8551,7 @@ function El(e, t) {
8551
8551
  }
8552
8552
  };
8553
8553
  if (((l = e.keyType) == null ? void 0 : l._def.typeName) === N.ZodBranded && e.keyType._def.type._def.typeName === N.ZodString && ((u = e.keyType._def.type._def.checks) != null && u.length)) {
8554
- const { type: c, ...p } = Il(e.keyType._def, t);
8554
+ const { type: c, ...p } = Tl(e.keyType._def, t);
8555
8555
  return {
8556
8556
  ...r,
8557
8557
  propertyNames: p
@@ -8560,7 +8560,7 @@ function El(e, t) {
8560
8560
  }
8561
8561
  return r;
8562
8562
  }
8563
- function If(e, t) {
8563
+ function Tf(e, t) {
8564
8564
  if (t.mapStrategy === "record")
8565
8565
  return El(e, t);
8566
8566
  const r = fe(e.keyType._def, {
@@ -8874,7 +8874,7 @@ const zf = (e, t) => fe(e.innerType._def, t), Zf = (e, t, r) => {
8874
8874
  case N.ZodOptional:
8875
8875
  return jf(e, r);
8876
8876
  case N.ZodMap:
8877
- return If(e, r);
8877
+ return Tf(e, r);
8878
8878
  case N.ZodSet:
8879
8879
  return Ff(e, r);
8880
8880
  case N.ZodLazy:
@@ -8893,7 +8893,7 @@ const zf = (e, t) => fe(e.innerType._def, t), Zf = (e, t, r) => {
8893
8893
  case N.ZodDefault:
8894
8894
  return yf(e, r);
8895
8895
  case N.ZodBranded:
8896
- return Il(e, r);
8896
+ return Tl(e, r);
8897
8897
  case N.ZodReadonly:
8898
8898
  return zf(e, r);
8899
8899
  case N.ZodCatch:
@@ -8936,7 +8936,7 @@ const Vf = (e, t) => {
8936
8936
  case "root":
8937
8937
  return { $ref: e.path.join("/") };
8938
8938
  case "relative":
8939
- return { $ref: Tl(t.currentPath, e.path) };
8939
+ return { $ref: Il(t.currentPath, e.path) };
8940
8940
  case "none":
8941
8941
  case "seen":
8942
8942
  return e.path.length < t.currentPath.length && e.path.every((r, n) => t.currentPath[n] === r) ? (console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`), xt(t)) : t.$refStrategy === "seen" ? xt(t) : void 0;
@@ -9684,23 +9684,23 @@ function Qr(e, t, r) {
9684
9684
  if (n)
9685
9685
  return r.unshift(t), n[e].apply(n, bh([], _h(r), !1));
9686
9686
  }
9687
- var It;
9687
+ var Tt;
9688
9688
  (function(e) {
9689
9689
  e[e.NONE = 0] = "NONE", e[e.ERROR = 30] = "ERROR", e[e.WARN = 50] = "WARN", e[e.INFO = 60] = "INFO", e[e.DEBUG = 70] = "DEBUG", e[e.VERBOSE = 80] = "VERBOSE", e[e.ALL = 9999] = "ALL";
9690
- })(It || (It = {}));
9690
+ })(Tt || (Tt = {}));
9691
9691
  function xh(e, t) {
9692
- e < It.NONE ? e = It.NONE : e > It.ALL && (e = It.ALL), t = t || {};
9692
+ e < Tt.NONE ? e = Tt.NONE : e > Tt.ALL && (e = Tt.ALL), t = t || {};
9693
9693
  function r(n, a) {
9694
9694
  var s = t[n];
9695
9695
  return typeof s == "function" && e >= a ? s.bind(t) : function() {
9696
9696
  };
9697
9697
  }
9698
9698
  return {
9699
- error: r("error", It.ERROR),
9700
- warn: r("warn", It.WARN),
9701
- info: r("info", It.INFO),
9702
- debug: r("debug", It.DEBUG),
9703
- verbose: r("verbose", It.VERBOSE)
9699
+ error: r("error", Tt.ERROR),
9700
+ warn: r("warn", Tt.WARN),
9701
+ info: r("info", Tt.INFO),
9702
+ debug: r("debug", Tt.DEBUG),
9703
+ verbose: r("verbose", Tt.VERBOSE)
9704
9704
  };
9705
9705
  }
9706
9706
  var kh = function(e, t) {
@@ -9719,11 +9719,11 @@ var kh = function(e, t) {
9719
9719
  }
9720
9720
  }
9721
9721
  return s;
9722
- }, Th = function(e, t, r) {
9722
+ }, Ih = function(e, t, r) {
9723
9723
  if (r || arguments.length === 2) for (var n = 0, a = t.length, s; n < a; n++)
9724
9724
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
9725
9725
  return e.concat(s || Array.prototype.slice.call(t));
9726
- }, Ih = "diag", da = (
9726
+ }, Th = "diag", da = (
9727
9727
  /** @class */
9728
9728
  function() {
9729
9729
  function e() {
@@ -9733,19 +9733,19 @@ var kh = function(e, t) {
9733
9733
  s[o] = arguments[o];
9734
9734
  var l = hn("diag");
9735
9735
  if (l)
9736
- return l[a].apply(l, Th([], kh(s), !1));
9736
+ return l[a].apply(l, Ih([], kh(s), !1));
9737
9737
  };
9738
9738
  }
9739
9739
  var r = this, n = function(a, s) {
9740
9740
  var o, l, u;
9741
- if (s === void 0 && (s = { logLevel: It.INFO }), a === r) {
9741
+ if (s === void 0 && (s = { logLevel: Tt.INFO }), a === r) {
9742
9742
  var c = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
9743
9743
  return r.error((o = c.stack) !== null && o !== void 0 ? o : c.message), !1;
9744
9744
  }
9745
9745
  typeof s == "number" && (s = {
9746
9746
  logLevel: s
9747
9747
  });
9748
- var p = hn("diag"), m = xh((l = s.logLevel) !== null && l !== void 0 ? l : It.INFO, a);
9748
+ var p = hn("diag"), m = xh((l = s.logLevel) !== null && l !== void 0 ? l : Tt.INFO, a);
9749
9749
  if (p && !s.suppressOverrideMessage) {
9750
9750
  var b = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
9751
9751
  p.warn("Current logger will be overwritten from " + b), m.warn("Current logger will overwrite one already registered from " + b);
@@ -9753,7 +9753,7 @@ var kh = function(e, t) {
9753
9753
  return uo("diag", m, r, !0);
9754
9754
  };
9755
9755
  r.setLogger = n, r.disable = function() {
9756
- co(Ih, r);
9756
+ co(Th, r);
9757
9757
  }, r.createComponentLogger = function(a) {
9758
9758
  return new wh(a);
9759
9759
  }, r.verbose = t("verbose"), r.debug = t("debug"), r.info = t("info"), r.warn = t("warn"), r.error = t("error");
@@ -10717,7 +10717,7 @@ function km(e, t) {
10717
10717
  }
10718
10718
  }
10719
10719
  }
10720
- function Tm({
10720
+ function Im({
10721
10721
  maxTokens: e,
10722
10722
  temperature: t,
10723
10723
  topP: r,
@@ -10857,7 +10857,7 @@ function si(e) {
10857
10857
  }
10858
10858
  return a;
10859
10859
  }
10860
- var au = "AI_MessageConversionError", su = `vercel.ai.error.${au}`, Im = Symbol.for(su), ou, _s = class extends Y {
10860
+ var au = "AI_MessageConversionError", su = `vercel.ai.error.${au}`, Tm = Symbol.for(su), ou, _s = class extends Y {
10861
10861
  constructor({
10862
10862
  originalMessage: e,
10863
10863
  message: t
@@ -10868,7 +10868,7 @@ var au = "AI_MessageConversionError", su = `vercel.ai.error.${au}`, Im = Symbol.
10868
10868
  return Y.hasMarker(e, su);
10869
10869
  }
10870
10870
  };
10871
- ou = Im;
10871
+ ou = Tm;
10872
10872
  function Sm(e, t) {
10873
10873
  var r, n;
10874
10874
  const a = (r = t == null ? void 0 : t.tools) != null ? r : {}, s = [];
@@ -10906,26 +10906,26 @@ function Sm(e, t) {
10906
10906
  case "assistant": {
10907
10907
  if (l.parts != null) {
10908
10908
  let k = function() {
10909
- const T = [];
10909
+ const I = [];
10910
10910
  for (const w of x)
10911
10911
  switch (w.type) {
10912
10912
  case "file":
10913
10913
  case "text": {
10914
- T.push(w);
10914
+ I.push(w);
10915
10915
  break;
10916
10916
  }
10917
10917
  case "reasoning": {
10918
10918
  for (const S of w.details)
10919
10919
  switch (S.type) {
10920
10920
  case "text":
10921
- T.push({
10921
+ I.push({
10922
10922
  type: "reasoning",
10923
10923
  text: S.text,
10924
10924
  signature: S.signature
10925
10925
  });
10926
10926
  break;
10927
10927
  case "redacted":
10928
- T.push({
10928
+ I.push({
10929
10929
  type: "redacted-reasoning",
10930
10930
  data: S.data
10931
10931
  });
@@ -10934,7 +10934,7 @@ function Sm(e, t) {
10934
10934
  break;
10935
10935
  }
10936
10936
  case "tool-invocation":
10937
- T.push({
10937
+ I.push({
10938
10938
  type: "tool-call",
10939
10939
  toolCallId: w.toolInvocation.toolCallId,
10940
10940
  toolName: w.toolInvocation.toolName,
@@ -10948,7 +10948,7 @@ function Sm(e, t) {
10948
10948
  }
10949
10949
  s.push({
10950
10950
  role: "assistant",
10951
- content: T
10951
+ content: I
10952
10952
  });
10953
10953
  const O = x.filter(
10954
10954
  (w) => w.type === "tool-invocation"
@@ -10979,19 +10979,19 @@ function Sm(e, t) {
10979
10979
  )
10980
10980
  }), x = [], g = !1, y++;
10981
10981
  }, y = 0, g = !1, x = [];
10982
- for (const T of l.parts)
10983
- switch (T.type) {
10982
+ for (const I of l.parts)
10983
+ switch (I.type) {
10984
10984
  case "text": {
10985
- g && k(), x.push(T);
10985
+ g && k(), x.push(I);
10986
10986
  break;
10987
10987
  }
10988
10988
  case "file":
10989
10989
  case "reasoning": {
10990
- x.push(T);
10990
+ x.push(I);
10991
10991
  break;
10992
10992
  }
10993
10993
  case "tool-invocation": {
10994
- ((n = T.toolInvocation.step) != null ? n : 0) !== y && k(), x.push(T), g = !0;
10994
+ ((n = I.toolInvocation.step) != null ? n : 0) !== y && k(), x.push(I), g = !0;
10995
10995
  break;
10996
10996
  }
10997
10997
  }
@@ -11019,11 +11019,11 @@ function Sm(e, t) {
11019
11019
  content: [
11020
11020
  ...u && p && k === 0 ? [{ type: "text", text: p }] : [],
11021
11021
  ...y.map(
11022
- ({ toolCallId: g, toolName: x, args: T }) => ({
11022
+ ({ toolCallId: g, toolName: x, args: I }) => ({
11023
11023
  type: "tool-call",
11024
11024
  toolCallId: g,
11025
11025
  toolName: x,
11026
- args: T
11026
+ args: I
11027
11027
  })
11028
11028
  )
11029
11029
  ]
@@ -11035,17 +11035,17 @@ function Sm(e, t) {
11035
11035
  originalMessage: l,
11036
11036
  message: "ToolInvocation must have a result: " + JSON.stringify(g)
11037
11037
  });
11038
- const { toolCallId: x, toolName: T, result: O } = g, w = a[T];
11038
+ const { toolCallId: x, toolName: I, result: O } = g, w = a[I];
11039
11039
  return (w == null ? void 0 : w.experimental_toToolResultContent) != null ? {
11040
11040
  type: "tool-result",
11041
11041
  toolCallId: x,
11042
- toolName: T,
11042
+ toolName: I,
11043
11043
  result: w.experimental_toToolResultContent(O),
11044
11044
  experimental_content: w.experimental_toToolResultContent(O)
11045
11045
  } : {
11046
11046
  type: "tool-result",
11047
11047
  toolCallId: x,
11048
- toolName: T,
11048
+ toolName: I,
11049
11049
  result: O
11050
11050
  };
11051
11051
  })
@@ -11076,7 +11076,7 @@ var Us = rd(
11076
11076
  sn(v(), Us),
11077
11077
  Z(Us)
11078
11078
  ])
11079
- ), Te = sn(
11079
+ ), Ie = sn(
11080
11080
  v(),
11081
11081
  sn(v(), Us)
11082
11082
  ), Am = Z(
@@ -11091,38 +11091,38 @@ var Us = rd(
11091
11091
  ), iu = _({
11092
11092
  type: D("text"),
11093
11093
  text: v(),
11094
- providerOptions: Te.optional(),
11095
- experimental_providerMetadata: Te.optional()
11094
+ providerOptions: Ie.optional(),
11095
+ experimental_providerMetadata: Ie.optional()
11096
11096
  }), Em = _({
11097
11097
  type: D("image"),
11098
11098
  image: xe([eu, ia(URL)]),
11099
11099
  mimeType: v().optional(),
11100
- providerOptions: Te.optional(),
11101
- experimental_providerMetadata: Te.optional()
11100
+ providerOptions: Ie.optional(),
11101
+ experimental_providerMetadata: Ie.optional()
11102
11102
  }), lu = _({
11103
11103
  type: D("file"),
11104
11104
  data: xe([eu, ia(URL)]),
11105
11105
  filename: v().optional(),
11106
11106
  mimeType: v(),
11107
- providerOptions: Te.optional(),
11108
- experimental_providerMetadata: Te.optional()
11107
+ providerOptions: Ie.optional(),
11108
+ experimental_providerMetadata: Ie.optional()
11109
11109
  }), Cm = _({
11110
11110
  type: D("reasoning"),
11111
11111
  text: v(),
11112
- providerOptions: Te.optional(),
11113
- experimental_providerMetadata: Te.optional()
11112
+ providerOptions: Ie.optional(),
11113
+ experimental_providerMetadata: Ie.optional()
11114
11114
  }), Nm = _({
11115
11115
  type: D("redacted-reasoning"),
11116
11116
  data: v(),
11117
- providerOptions: Te.optional(),
11118
- experimental_providerMetadata: Te.optional()
11117
+ providerOptions: Ie.optional(),
11118
+ experimental_providerMetadata: Ie.optional()
11119
11119
  }), Om = _({
11120
11120
  type: D("tool-call"),
11121
11121
  toolCallId: v(),
11122
11122
  toolName: v(),
11123
11123
  args: qr(),
11124
- providerOptions: Te.optional(),
11125
- experimental_providerMetadata: Te.optional()
11124
+ providerOptions: Ie.optional(),
11125
+ experimental_providerMetadata: Ie.optional()
11126
11126
  }), Rm = _({
11127
11127
  type: D("tool-result"),
11128
11128
  toolCallId: v(),
@@ -11130,21 +11130,21 @@ var Us = rd(
11130
11130
  result: qr(),
11131
11131
  content: Am.optional(),
11132
11132
  isError: ot().optional(),
11133
- providerOptions: Te.optional(),
11134
- experimental_providerMetadata: Te.optional()
11133
+ providerOptions: Ie.optional(),
11134
+ experimental_providerMetadata: Ie.optional()
11135
11135
  }), Pm = _({
11136
11136
  role: D("system"),
11137
11137
  content: v(),
11138
- providerOptions: Te.optional(),
11139
- experimental_providerMetadata: Te.optional()
11138
+ providerOptions: Ie.optional(),
11139
+ experimental_providerMetadata: Ie.optional()
11140
11140
  }), Mm = _({
11141
11141
  role: D("user"),
11142
11142
  content: xe([
11143
11143
  v(),
11144
11144
  Z(xe([iu, Em, lu]))
11145
11145
  ]),
11146
- providerOptions: Te.optional(),
11147
- experimental_providerMetadata: Te.optional()
11146
+ providerOptions: Ie.optional(),
11147
+ experimental_providerMetadata: Ie.optional()
11148
11148
  }), jm = _({
11149
11149
  role: D("assistant"),
11150
11150
  content: xe([
@@ -11159,13 +11159,13 @@ var Us = rd(
11159
11159
  ])
11160
11160
  )
11161
11161
  ]),
11162
- providerOptions: Te.optional(),
11163
- experimental_providerMetadata: Te.optional()
11162
+ providerOptions: Ie.optional(),
11163
+ experimental_providerMetadata: Ie.optional()
11164
11164
  }), $m = _({
11165
11165
  role: D("tool"),
11166
11166
  content: Z(Rm),
11167
- providerOptions: Te.optional(),
11168
- experimental_providerMetadata: Te.optional()
11167
+ providerOptions: Ie.optional(),
11168
+ experimental_providerMetadata: Ie.optional()
11169
11169
  }), Dm = xe([
11170
11170
  Pm,
11171
11171
  Mm,
@@ -11432,19 +11432,19 @@ var _u = "AI_NoSuchToolError", bu = `vercel.ai.error.${_u}`, sg = Symbol.for(bu)
11432
11432
  }
11433
11433
  };
11434
11434
  wu = sg;
11435
- var xu = "AI_ToolCallRepairError", ku = `vercel.ai.error.${xu}`, og = Symbol.for(ku), Tu, ig = class extends Y {
11435
+ var xu = "AI_ToolCallRepairError", ku = `vercel.ai.error.${xu}`, og = Symbol.for(ku), Iu, ig = class extends Y {
11436
11436
  constructor({
11437
11437
  cause: e,
11438
11438
  originalError: t,
11439
11439
  message: r = `Error repairing tool call: ${_n(e)}`
11440
11440
  }) {
11441
- super({ name: xu, message: r, cause: e }), this[Tu] = !0, this.originalError = t;
11441
+ super({ name: xu, message: r, cause: e }), this[Iu] = !0, this.originalError = t;
11442
11442
  }
11443
11443
  static isInstance(e) {
11444
11444
  return Y.hasMarker(e, ku);
11445
11445
  }
11446
11446
  };
11447
- Tu = og;
11447
+ Iu = og;
11448
11448
  async function lg({
11449
11449
  toolCall: e,
11450
11450
  tools: t,
@@ -11581,7 +11581,7 @@ async function pg({
11581
11581
  providerOptions: y = k,
11582
11582
  experimental_activeTools: g,
11583
11583
  experimental_prepareStep: x,
11584
- experimental_repairToolCall: T,
11584
+ experimental_repairToolCall: I,
11585
11585
  _internal: {
11586
11586
  generateId: O = cg,
11587
11587
  currentDate: w = () => /* @__PURE__ */ new Date()
@@ -11633,8 +11633,8 @@ async function pg({
11633
11633
  }),
11634
11634
  tracer: pe,
11635
11635
  fn: async (be) => {
11636
- var te, ke, Ie, Se, he, V, L, ee, re, K, oe, G, Ye, ne;
11637
- const Ae = Tm(A);
11636
+ var te, ke, Te, Se, he, V, L, ee, re, K, oe, G, Ye, ne;
11637
+ const Ae = Im(A);
11638
11638
  let q, Ne = [], je = [], Be = [], lt = 0;
11639
11639
  const Ge = [];
11640
11640
  let j = "";
@@ -11653,7 +11653,7 @@ async function pg({
11653
11653
  steps: Ee,
11654
11654
  maxSteps: c,
11655
11655
  stepNumber: lt
11656
- })), ct = (te = ut == null ? void 0 : ut.toolChoice) != null ? te : r, dt = (ke = ut == null ? void 0 : ut.experimental_activeTools) != null ? ke : g, ze = (Ie = ut == null ? void 0 : ut.model) != null ? Ie : e, Fe = await bm({
11656
+ })), ct = (te = ut == null ? void 0 : ut.toolChoice) != null ? te : r, dt = (ke = ut == null ? void 0 : ut.experimental_activeTools) != null ? ke : g, ze = (Te = ut == null ? void 0 : ut.model) != null ? Te : e, Fe = await bm({
11657
11657
  prompt: {
11658
11658
  type: kt,
11659
11659
  system: le.system,
@@ -11763,7 +11763,7 @@ async function pg({
11763
11763
  (we) => lg({
11764
11764
  toolCall: we,
11765
11765
  tools: t,
11766
- repairToolCall: T,
11766
+ repairToolCall: I,
11767
11767
  system: n,
11768
11768
  messages: rt
11769
11769
  })
@@ -11788,13 +11788,13 @@ async function pg({
11788
11788
  je.length === Ne.length && (pt = "tool-result")
11789
11789
  ));
11790
11790
  const Oe = (V = q.text) != null ? V : "", Xt = Ke === "continue" && // only for continue steps
11791
- j.trimEnd() !== j ? Oe.trimStart() : Oe, Tt = pt === "continue" ? ng(Xt) : Xt;
11792
- if (j = pt === "continue" || Ke === "continue" ? j + Tt : Tt, Be = li(
11791
+ j.trimEnd() !== j ? Oe.trimStart() : Oe, It = pt === "continue" ? ng(Xt) : Xt;
11792
+ if (j = pt === "continue" || Ke === "continue" ? j + It : It, Be = li(
11793
11793
  q.reasoning
11794
11794
  ), $e.push(...(L = q.sources) != null ? L : []), Ke === "continue") {
11795
11795
  const we = Ge[Ge.length - 1];
11796
- typeof we.content == "string" ? we.content += Tt : we.content.push({
11797
- text: Tt,
11796
+ typeof we.content == "string" ? we.content += It : we.content.push({
11797
+ text: It,
11798
11798
  type: "text"
11799
11799
  });
11800
11800
  } else
@@ -11812,7 +11812,7 @@ async function pg({
11812
11812
  );
11813
11813
  const qt = {
11814
11814
  stepType: Ke,
11815
- text: Tt,
11815
+ text: It,
11816
11816
  // TODO v5: rename reasoning to reasoningText (and use reasoning for composite array)
11817
11817
  reasoning: ii(Be),
11818
11818
  reasoningDetails: Be,
@@ -12060,7 +12060,7 @@ var gg = () => ({
12060
12060
  }
12061
12061
  };
12062
12062
  };
12063
- function Iu(e, t) {
12063
+ function Tu(e, t) {
12064
12064
  const r = e.getReader(), n = t.getReader();
12065
12065
  let a, s, o = !1, l = !1;
12066
12066
  async function u(p) {
@@ -12165,7 +12165,7 @@ wg.extend({
12165
12165
  var kg = _({
12166
12166
  type: D("text"),
12167
12167
  text: v()
12168
- }).passthrough(), Tg = _({
12168
+ }).passthrough(), Ig = _({
12169
12169
  type: D("image"),
12170
12170
  data: v().base64(),
12171
12171
  mimeType: v()
@@ -12178,17 +12178,17 @@ var kg = _({
12178
12178
  * The MIME type of this resource, if known.
12179
12179
  */
12180
12180
  mimeType: qe(v())
12181
- }).passthrough(), Ig = Su.extend({
12181
+ }).passthrough(), Tg = Su.extend({
12182
12182
  text: v()
12183
12183
  }), Sg = Su.extend({
12184
12184
  blob: v().base64()
12185
12185
  }), Ag = _({
12186
12186
  type: D("resource"),
12187
- resource: xe([Ig, Sg])
12187
+ resource: xe([Tg, Sg])
12188
12188
  }).passthrough();
12189
12189
  mn.extend({
12190
12190
  content: Z(
12191
- xe([kg, Tg, Ag])
12191
+ xe([kg, Ig, Ag])
12192
12192
  ),
12193
12193
  isError: ot().default(!1).optional()
12194
12194
  }).or(
@@ -12283,7 +12283,7 @@ function Mg(e, t) {
12283
12283
  const n = vo(
12284
12284
  e,
12285
12285
  t == null ? void 0 : t.callbacks
12286
- ).pipeThrough(new TextEncoderStream()), a = t == null ? void 0 : t.data, s = t == null ? void 0 : t.init, o = a ? Iu(a.stream, n) : n;
12286
+ ).pipeThrough(new TextEncoderStream()), a = t == null ? void 0 : t.data, s = t == null ? void 0 : t.init, o = a ? Tu(a.stream, n) : n;
12287
12287
  return new Response(o, {
12288
12288
  status: (r = s == null ? void 0 : s.status) != null ? r : 200,
12289
12289
  statusText: s == null ? void 0 : s.statusText,
@@ -12336,7 +12336,7 @@ function Fg(e, t = {}) {
12336
12336
  var r;
12337
12337
  const { init: n, data: a, callbacks: s } = t, o = _o(e, s).pipeThrough(
12338
12338
  new TextEncoderStream()
12339
- ), l = a ? Iu(a.stream, o) : o;
12339
+ ), l = a ? Tu(a.stream, o) : o;
12340
12340
  return new Response(l, {
12341
12341
  status: (r = n == null ? void 0 : n.status) != null ? r : 200,
12342
12342
  statusText: n == null ? void 0 : n.statusText,
@@ -12693,7 +12693,7 @@ const Gg = eo(
12693
12693
  children: s,
12694
12694
  iconNode: o,
12695
12695
  ...l
12696
- }, u) => Is(
12696
+ }, u) => Ts(
12697
12697
  "svg",
12698
12698
  {
12699
12699
  ref: u,
@@ -12706,7 +12706,7 @@ const Gg = eo(
12706
12706
  ...l
12707
12707
  },
12708
12708
  [
12709
- ...o.map(([c, p]) => Is(c, p)),
12709
+ ...o.map(([c, p]) => Ts(c, p)),
12710
12710
  ...Array.isArray(s) ? s : [s]
12711
12711
  ]
12712
12712
  )
@@ -12719,7 +12719,7 @@ const Gg = eo(
12719
12719
  */
12720
12720
  const Or = (e, t) => {
12721
12721
  const r = eo(
12722
- ({ className: n, ...a }, s) => Is(Gg, {
12722
+ ({ className: n, ...a }, s) => Ts(Gg, {
12723
12723
  ref: s,
12724
12724
  iconNode: t,
12725
12725
  className: Cu(`lucide-${Vg(e)}`, n),
@@ -12893,7 +12893,7 @@ function Gs(e, t) {
12893
12893
  0 <= r && e.splice(r, 1);
12894
12894
  }
12895
12895
  }
12896
- var Ta = function() {
12896
+ var Ia = function() {
12897
12897
  function e(t) {
12898
12898
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
12899
12899
  }
@@ -12981,9 +12981,9 @@ var Ta = function() {
12981
12981
  var t = new e();
12982
12982
  return t.closed = !0, t;
12983
12983
  }(), e;
12984
- }(), Ru = Ta.EMPTY;
12984
+ }(), Ru = Ia.EMPTY;
12985
12985
  function Pu(e) {
12986
- return e instanceof Ta || e && "closed" in e && ir(e.remove) && ir(e.add) && ir(e.unsubscribe);
12986
+ return e instanceof Ia || e && "closed" in e && ir(e.remove) && ir(e.add) && ir(e.unsubscribe);
12987
12987
  }
12988
12988
  function ci(e) {
12989
12989
  ir(e) ? e() : e.unsubscribe();
@@ -13042,7 +13042,7 @@ var Mu = function(e) {
13042
13042
  this.unsubscribe();
13043
13043
  }
13044
13044
  }, t;
13045
- }(Ta), ry = function() {
13045
+ }(Ia), ry = function() {
13046
13046
  function e(t) {
13047
13047
  this.partialObserver = t;
13048
13048
  }
@@ -13250,7 +13250,7 @@ var cy = Ou(function(e) {
13250
13250
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
13251
13251
  }, t.prototype._innerSubscribe = function(r) {
13252
13252
  var n = this, a = this, s = a.hasError, o = a.isStopped, l = a.observers;
13253
- return s || o ? Ru : (this.currentObservers = null, l.push(r), new Ta(function() {
13253
+ return s || o ? Ru : (this.currentObservers = null, l.push(r), new Ia(function() {
13254
13254
  n.currentObservers = null, Gs(l, r);
13255
13255
  }));
13256
13256
  }, t.prototype._checkFinalizedStatuses = function(r) {
@@ -13309,8 +13309,8 @@ var cy = Ou(function(e) {
13309
13309
  var Mt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ma = { exports: {} };
13310
13310
  ma.exports;
13311
13311
  (function(e, t) {
13312
- var r = 200, n = "__lodash_hash_undefined__", a = 1, s = 2, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", m = "[object Date]", b = "[object Error]", f = "[object Function]", k = "[object GeneratorFunction]", y = "[object Map]", g = "[object Number]", x = "[object Null]", T = "[object Object]", O = "[object Promise]", w = "[object Proxy]", S = "[object RegExp]", A = "[object Set]", U = "[object String]", R = "[object Symbol]", P = "[object Undefined]", se = "[object WeakMap]", le = "[object ArrayBuffer]", pe = "[object DataView]", be = "[object Float32Array]", te = "[object Float64Array]", ke = "[object Int8Array]", Ie = "[object Int16Array]", Se = "[object Int32Array]", he = "[object Uint8Array]", V = "[object Uint8ClampedArray]", L = "[object Uint16Array]", ee = "[object Uint32Array]", re = /[\\^$.*+?()[\]{}|]/g, K = /^\[object .+?Constructor\]$/, oe = /^(?:0|[1-9]\d*)$/, G = {};
13313
- G[be] = G[te] = G[ke] = G[Ie] = G[Se] = G[he] = G[V] = G[L] = G[ee] = !0, G[l] = G[u] = G[le] = G[p] = G[pe] = G[m] = G[b] = G[f] = G[y] = G[g] = G[T] = G[S] = G[A] = G[U] = G[se] = !1;
13312
+ var r = 200, n = "__lodash_hash_undefined__", a = 1, s = 2, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", c = "[object AsyncFunction]", p = "[object Boolean]", m = "[object Date]", b = "[object Error]", f = "[object Function]", k = "[object GeneratorFunction]", y = "[object Map]", g = "[object Number]", x = "[object Null]", I = "[object Object]", O = "[object Promise]", w = "[object Proxy]", S = "[object RegExp]", A = "[object Set]", U = "[object String]", R = "[object Symbol]", P = "[object Undefined]", se = "[object WeakMap]", le = "[object ArrayBuffer]", pe = "[object DataView]", be = "[object Float32Array]", te = "[object Float64Array]", ke = "[object Int8Array]", Te = "[object Int16Array]", Se = "[object Int32Array]", he = "[object Uint8Array]", V = "[object Uint8ClampedArray]", L = "[object Uint16Array]", ee = "[object Uint32Array]", re = /[\\^$.*+?()[\]{}|]/g, K = /^\[object .+?Constructor\]$/, oe = /^(?:0|[1-9]\d*)$/, G = {};
13313
+ G[be] = G[te] = G[ke] = G[Te] = G[Se] = G[he] = G[V] = G[L] = G[ee] = !0, G[l] = G[u] = G[le] = G[p] = G[pe] = G[m] = G[b] = G[f] = G[y] = G[g] = G[I] = G[S] = G[A] = G[U] = G[se] = !1;
13314
13314
  var Ye = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, ne = typeof self == "object" && self && self.Object === Object && self, Ae = Ye || ne || Function("return this")(), q = t && !t.nodeType && t, Ne = q && !0 && e && !e.nodeType && e, je = Ne && Ne.exports === q, Be = je && Ye.process, lt = function() {
13315
13315
  try {
13316
13316
  return Be && Be.binding && Be.binding("util");
@@ -13318,27 +13318,27 @@ ma.exports;
13318
13318
  }
13319
13319
  }(), Ge = lt && lt.isTypedArray;
13320
13320
  function j(i, d) {
13321
- for (var h = -1, I = i == null ? 0 : i.length, X = 0, z = []; ++h < I; ) {
13321
+ for (var h = -1, T = i == null ? 0 : i.length, X = 0, z = []; ++h < T; ) {
13322
13322
  var de = i[h];
13323
13323
  d(de, h, i) && (z[X++] = de);
13324
13324
  }
13325
13325
  return z;
13326
13326
  }
13327
13327
  function $e(i, d) {
13328
- for (var h = -1, I = d.length, X = i.length; ++h < I; )
13328
+ for (var h = -1, T = d.length, X = i.length; ++h < T; )
13329
13329
  i[X + h] = d[h];
13330
13330
  return i;
13331
13331
  }
13332
13332
  function Ee(i, d) {
13333
- for (var h = -1, I = i == null ? 0 : i.length; ++h < I; )
13333
+ for (var h = -1, T = i == null ? 0 : i.length; ++h < T; )
13334
13334
  if (d(i[h], h, i))
13335
13335
  return !0;
13336
13336
  return !1;
13337
13337
  }
13338
13338
  function De(i, d) {
13339
- for (var h = -1, I = Array(i); ++h < i; )
13340
- I[h] = d(h);
13341
- return I;
13339
+ for (var h = -1, T = Array(i); ++h < i; )
13340
+ T[h] = d(h);
13341
+ return T;
13342
13342
  }
13343
13343
  function Ke(i) {
13344
13344
  return function(d) {
@@ -13353,8 +13353,8 @@ ma.exports;
13353
13353
  }
13354
13354
  function ut(i) {
13355
13355
  var d = -1, h = Array(i.size);
13356
- return i.forEach(function(I, X) {
13357
- h[++d] = [X, I];
13356
+ return i.forEach(function(T, X) {
13357
+ h[++d] = [X, T];
13358
13358
  }), h;
13359
13359
  }
13360
13360
  function ct(i, d) {
@@ -13364,21 +13364,21 @@ ma.exports;
13364
13364
  }
13365
13365
  function dt(i) {
13366
13366
  var d = -1, h = Array(i.size);
13367
- return i.forEach(function(I) {
13368
- h[++d] = I;
13367
+ return i.forEach(function(T) {
13368
+ h[++d] = T;
13369
13369
  }), h;
13370
13370
  }
13371
13371
  var ze = Array.prototype, Fe = Function.prototype, Le = Object.prototype, $t = Ae["__core-js_shared__"], pt = Fe.toString, Oe = Le.hasOwnProperty, Xt = function() {
13372
13372
  var i = /[^.]+$/.exec($t && $t.keys && $t.keys.IE_PROTO || "");
13373
13373
  return i ? "Symbol(src)_1." + i : "";
13374
- }(), Tt = Le.toString, qt = RegExp(
13374
+ }(), It = Le.toString, qt = RegExp(
13375
13375
  "^" + pt.call(Oe).replace(re, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13376
- ), we = je ? Ae.Buffer : void 0, ft = Ae.Symbol, ht = Ae.Uint8Array, Dt = Le.propertyIsEnumerable, Et = ze.splice, He = ft ? ft.toStringTag : void 0, Ct = Object.getOwnPropertySymbols, Ce = we ? we.isBuffer : void 0, Ze = ct(Object.keys, Object), mt = er(Ae, "DataView"), Qt = er(Ae, "Map"), H = er(Ae, "Promise"), ie = er(Ae, "Set"), me = er(Ae, "WeakMap"), Re = er(Object, "create"), Xe = at(mt), Ve = at(Qt), Ft = at(H), nt = at(ie), Nt = at(me), In = ft ? ft.prototype : void 0, Gr = In ? In.valueOf : void 0;
13376
+ ), we = je ? Ae.Buffer : void 0, ft = Ae.Symbol, ht = Ae.Uint8Array, Dt = Le.propertyIsEnumerable, Et = ze.splice, He = ft ? ft.toStringTag : void 0, Ct = Object.getOwnPropertySymbols, Ce = we ? we.isBuffer : void 0, Ze = ct(Object.keys, Object), mt = er(Ae, "DataView"), Qt = er(Ae, "Map"), H = er(Ae, "Promise"), ie = er(Ae, "Set"), me = er(Ae, "WeakMap"), Re = er(Object, "create"), Xe = at(mt), Ve = at(Qt), Ft = at(H), nt = at(ie), Nt = at(me), Tn = ft ? ft.prototype : void 0, Gr = Tn ? Tn.valueOf : void 0;
13377
13377
  function Je(i) {
13378
13378
  var d = -1, h = i == null ? 0 : i.length;
13379
13379
  for (this.clear(); ++d < h; ) {
13380
- var I = i[d];
13381
- this.set(I[0], I[1]);
13380
+ var T = i[d];
13381
+ this.set(T[0], T[1]);
13382
13382
  }
13383
13383
  }
13384
13384
  function Ca() {
@@ -13408,8 +13408,8 @@ ma.exports;
13408
13408
  function Qe(i) {
13409
13409
  var d = -1, h = i == null ? 0 : i.length;
13410
13410
  for (this.clear(); ++d < h; ) {
13411
- var I = i[d];
13412
- this.set(I[0], I[1]);
13411
+ var T = i[d];
13412
+ this.set(T[0], T[1]);
13413
13413
  }
13414
13414
  }
13415
13415
  function Ma() {
@@ -13419,8 +13419,8 @@ ma.exports;
13419
13419
  var d = this.__data__, h = Mr(d, i);
13420
13420
  if (h < 0)
13421
13421
  return !1;
13422
- var I = d.length - 1;
13423
- return h == I ? d.pop() : Et.call(d, h, 1), --this.size, !0;
13422
+ var T = d.length - 1;
13423
+ return h == T ? d.pop() : Et.call(d, h, 1), --this.size, !0;
13424
13424
  }
13425
13425
  function $a(i) {
13426
13426
  var d = this.__data__, h = Mr(d, i);
@@ -13430,15 +13430,15 @@ ma.exports;
13430
13430
  return Mr(this.__data__, i) > -1;
13431
13431
  }
13432
13432
  function Fa(i, d) {
13433
- var h = this.__data__, I = Mr(h, i);
13434
- return I < 0 ? (++this.size, h.push([i, d])) : h[I][1] = d, this;
13433
+ var h = this.__data__, T = Mr(h, i);
13434
+ return T < 0 ? (++this.size, h.push([i, d])) : h[T][1] = d, this;
13435
13435
  }
13436
13436
  Qe.prototype.clear = Ma, Qe.prototype.delete = ja, Qe.prototype.get = $a, Qe.prototype.has = Da, Qe.prototype.set = Fa;
13437
13437
  function gt(i) {
13438
13438
  var d = -1, h = i == null ? 0 : i.length;
13439
13439
  for (this.clear(); ++d < h; ) {
13440
- var I = i[d];
13441
- this.set(I[0], I[1]);
13440
+ var T = i[d];
13441
+ this.set(T[0], T[1]);
13442
13442
  }
13443
13443
  }
13444
13444
  function La() {
@@ -13459,8 +13459,8 @@ ma.exports;
13459
13459
  return Lt(this, i).has(i);
13460
13460
  }
13461
13461
  function Za(i, d) {
13462
- var h = Lt(this, i), I = h.size;
13463
- return h.set(i, d), this.size += h.size == I ? 0 : 1, this;
13462
+ var h = Lt(this, i), T = h.size;
13463
+ return h.set(i, d), this.size += h.size == T ? 0 : 1, this;
13464
13464
  }
13465
13465
  gt.prototype.clear = La, gt.prototype.delete = Ua, gt.prototype.get = Ba, gt.prototype.has = za, gt.prototype.set = Za;
13466
13466
  function Rr(i) {
@@ -13495,16 +13495,16 @@ ma.exports;
13495
13495
  function Ha(i, d) {
13496
13496
  var h = this.__data__;
13497
13497
  if (h instanceof Qe) {
13498
- var I = h.__data__;
13499
- if (!Qt || I.length < r - 1)
13500
- return I.push([i, d]), this.size = ++h.size, this;
13501
- h = this.__data__ = new gt(I);
13498
+ var T = h.__data__;
13499
+ if (!Qt || T.length < r - 1)
13500
+ return T.push([i, d]), this.size = ++h.size, this;
13501
+ h = this.__data__ = new gt(T);
13502
13502
  }
13503
13503
  return h.set(i, d), this.size = h.size, this;
13504
13504
  }
13505
13505
  Gt.prototype.clear = Hr, Gt.prototype.delete = Va, Gt.prototype.get = qa, Gt.prototype.has = Ga, Gt.prototype.set = Ha;
13506
13506
  function Ja(i, d) {
13507
- var h = jr(i), I = !h && On(i), X = !h && !I && $r(i), z = !h && !I && !X && Mn(i), de = h || I || X || z, ue = de ? De(i.length, String) : [], Pe = ue.length;
13507
+ var h = jr(i), T = !h && On(i), X = !h && !T && $r(i), z = !h && !T && !X && Mn(i), de = h || T || X || z, ue = de ? De(i.length, String) : [], Pe = ue.length;
13508
13508
  for (var ge in i)
13509
13509
  Oe.call(i, ge) && !(de && // Safari 9 has enumerable `arguments.length` in strict mode.
13510
13510
  (ge == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -13520,8 +13520,8 @@ ma.exports;
13520
13520
  return -1;
13521
13521
  }
13522
13522
  function Jr(i, d, h) {
13523
- var I = d(i);
13524
- return jr(i) ? I : $e(I, h(i));
13523
+ var T = d(i);
13524
+ return jr(i) ? T : $e(T, h(i));
13525
13525
  }
13526
13526
  function gr(i) {
13527
13527
  return i == null ? i === void 0 ? P : x : He && He in Object(i) ? tr(i) : Cn(i);
@@ -13529,28 +13529,28 @@ ma.exports;
13529
13529
  function An(i) {
13530
13530
  return Jt(i) && gr(i) == l;
13531
13531
  }
13532
- function En(i, d, h, I, X) {
13533
- return i === d ? !0 : i == null || d == null || !Jt(i) && !Jt(d) ? i !== i && d !== d : Wa(i, d, h, I, En, X);
13532
+ function En(i, d, h, T, X) {
13533
+ return i === d ? !0 : i == null || d == null || !Jt(i) && !Jt(d) ? i !== i && d !== d : Wa(i, d, h, T, En, X);
13534
13534
  }
13535
- function Wa(i, d, h, I, X, z) {
13535
+ function Wa(i, d, h, T, X, z) {
13536
13536
  var de = jr(i), ue = jr(d), Pe = de ? u : Ht(i), ge = ue ? u : Ht(d);
13537
- Pe = Pe == l ? T : Pe, ge = ge == l ? T : ge;
13538
- var et = Pe == T, yt = ge == T, Ue = Pe == ge;
13537
+ Pe = Pe == l ? I : Pe, ge = ge == l ? I : ge;
13538
+ var et = Pe == I, yt = ge == I, Ue = Pe == ge;
13539
13539
  if (Ue && $r(i)) {
13540
13540
  if (!$r(d))
13541
13541
  return !1;
13542
13542
  de = !0, et = !1;
13543
13543
  }
13544
13544
  if (Ue && !et)
13545
- return z || (z = new Gt()), de || Mn(i) ? Wr(i, d, h, I, X, z) : Qa(i, d, Pe, h, I, X, z);
13545
+ return z || (z = new Gt()), de || Mn(i) ? Wr(i, d, h, T, X, z) : Qa(i, d, Pe, h, T, X, z);
13546
13546
  if (!(h & a)) {
13547
13547
  var tt = et && Oe.call(i, "__wrapped__"), We = yt && Oe.call(d, "__wrapped__");
13548
13548
  if (tt || We) {
13549
13549
  var dr = tt ? i.value() : i, rr = We ? d.value() : d;
13550
- return z || (z = new Gt()), X(dr, rr, h, I, z);
13550
+ return z || (z = new Gt()), X(dr, rr, h, T, z);
13551
13551
  }
13552
13552
  }
13553
- return Ue ? (z || (z = new Gt()), es(i, d, h, I, X, z)) : !1;
13553
+ return Ue ? (z || (z = new Gt()), es(i, d, h, T, X, z)) : !1;
13554
13554
  }
13555
13555
  function Ya(i) {
13556
13556
  if (!Pn(i) || as(i))
@@ -13569,7 +13569,7 @@ ma.exports;
13569
13569
  Oe.call(i, h) && h != "constructor" && d.push(h);
13570
13570
  return d;
13571
13571
  }
13572
- function Wr(i, d, h, I, X, z) {
13572
+ function Wr(i, d, h, T, X, z) {
13573
13573
  var de = h & a, ue = i.length, Pe = d.length;
13574
13574
  if (ue != Pe && !(de && Pe > ue))
13575
13575
  return !1;
@@ -13579,8 +13579,8 @@ ma.exports;
13579
13579
  var et = -1, yt = !0, Ue = h & s ? new Rr() : void 0;
13580
13580
  for (z.set(i, d), z.set(d, i); ++et < ue; ) {
13581
13581
  var tt = i[et], We = d[et];
13582
- if (I)
13583
- var dr = de ? I(We, tt, et, d, i, z) : I(tt, We, et, i, d, z);
13582
+ if (T)
13583
+ var dr = de ? T(We, tt, et, d, i, z) : T(tt, We, et, i, d, z);
13584
13584
  if (dr !== void 0) {
13585
13585
  if (dr)
13586
13586
  continue;
@@ -13589,20 +13589,20 @@ ma.exports;
13589
13589
  }
13590
13590
  if (Ue) {
13591
13591
  if (!Ee(d, function(rr, vr) {
13592
- if (!kt(Ue, vr) && (tt === rr || X(tt, rr, h, I, z)))
13592
+ if (!kt(Ue, vr) && (tt === rr || X(tt, rr, h, T, z)))
13593
13593
  return Ue.push(vr);
13594
13594
  })) {
13595
13595
  yt = !1;
13596
13596
  break;
13597
13597
  }
13598
- } else if (!(tt === We || X(tt, We, h, I, z))) {
13598
+ } else if (!(tt === We || X(tt, We, h, T, z))) {
13599
13599
  yt = !1;
13600
13600
  break;
13601
13601
  }
13602
13602
  }
13603
13603
  return z.delete(i), z.delete(d), yt;
13604
13604
  }
13605
- function Qa(i, d, h, I, X, z, de) {
13605
+ function Qa(i, d, h, T, X, z, de) {
13606
13606
  switch (h) {
13607
13607
  case pe:
13608
13608
  if (i.byteLength != d.byteLength || i.byteOffset != d.byteOffset)
@@ -13622,14 +13622,14 @@ ma.exports;
13622
13622
  case y:
13623
13623
  var ue = ut;
13624
13624
  case A:
13625
- var Pe = I & a;
13625
+ var Pe = T & a;
13626
13626
  if (ue || (ue = dt), i.size != d.size && !Pe)
13627
13627
  return !1;
13628
13628
  var ge = de.get(i);
13629
13629
  if (ge)
13630
13630
  return ge == d;
13631
- I |= s, de.set(i, d);
13632
- var et = Wr(ue(i), ue(d), I, X, z, de);
13631
+ T |= s, de.set(i, d);
13632
+ var et = Wr(ue(i), ue(d), T, X, z, de);
13633
13633
  return de.delete(i), et;
13634
13634
  case R:
13635
13635
  if (Gr)
@@ -13637,7 +13637,7 @@ ma.exports;
13637
13637
  }
13638
13638
  return !1;
13639
13639
  }
13640
- function es(i, d, h, I, X, z) {
13640
+ function es(i, d, h, T, X, z) {
13641
13641
  var de = h & a, ue = yr(i), Pe = ue.length, ge = yr(d), et = ge.length;
13642
13642
  if (Pe != et && !de)
13643
13643
  return !1;
@@ -13654,9 +13654,9 @@ ma.exports;
13654
13654
  for (var dr = de; ++yt < Pe; ) {
13655
13655
  Ue = ue[yt];
13656
13656
  var rr = i[Ue], vr = d[Ue];
13657
- if (I)
13658
- var xo = de ? I(vr, rr, Ue, d, i, z) : I(rr, vr, Ue, i, d, z);
13659
- if (!(xo === void 0 ? rr === vr || X(rr, vr, h, I, z) : xo)) {
13657
+ if (T)
13658
+ var xo = de ? T(vr, rr, Ue, d, i, z) : T(rr, vr, Ue, i, d, z);
13659
+ if (!(xo === void 0 ? rr === vr || X(rr, vr, h, T, z) : xo)) {
13660
13660
  We = !1;
13661
13661
  break;
13662
13662
  }
@@ -13683,11 +13683,11 @@ ma.exports;
13683
13683
  var d = Oe.call(i, He), h = i[He];
13684
13684
  try {
13685
13685
  i[He] = void 0;
13686
- var I = !0;
13686
+ var T = !0;
13687
13687
  } catch {
13688
13688
  }
13689
- var X = Tt.call(i);
13690
- return I && (d ? i[He] = h : delete i[He]), X;
13689
+ var X = It.call(i);
13690
+ return T && (d ? i[He] = h : delete i[He]), X;
13691
13691
  }
13692
13692
  var ts = Ct ? function(i) {
13693
13693
  return i == null ? [] : (i = Object(i), j(Ct(i), function(d) {
@@ -13695,9 +13695,9 @@ ma.exports;
13695
13695
  }));
13696
13696
  } : is, Ht = gr;
13697
13697
  (mt && Ht(new mt(new ArrayBuffer(1))) != pe || Qt && Ht(new Qt()) != y || H && Ht(H.resolve()) != O || ie && Ht(new ie()) != A || me && Ht(new me()) != se) && (Ht = function(i) {
13698
- var d = gr(i), h = d == T ? i.constructor : void 0, I = h ? at(h) : "";
13699
- if (I)
13700
- switch (I) {
13698
+ var d = gr(i), h = d == I ? i.constructor : void 0, T = h ? at(h) : "";
13699
+ if (T)
13700
+ switch (T) {
13701
13701
  case Xe:
13702
13702
  return pe;
13703
13703
  case Ve:
@@ -13726,7 +13726,7 @@ ma.exports;
13726
13726
  return i === h;
13727
13727
  }
13728
13728
  function Cn(i) {
13729
- return Tt.call(i);
13729
+ return It.call(i);
13730
13730
  }
13731
13731
  function at(i) {
13732
13732
  if (i != null) {
@@ -13785,12 +13785,12 @@ ma.exports;
13785
13785
  e.exports = os;
13786
13786
  })(ma, ma.exports);
13787
13787
  ma.exports;
13788
- const Ia = "add", dy = `${Ia}:text`, py = `${Ia}:shape`, fy = `${Ia}:animation`, hy = `${Ia}:rect`;
13788
+ const Ta = "add", dy = `${Ta}:text`, py = `${Ta}:shape`, fy = `${Ta}:animation`, hy = `${Ta}:rect`;
13789
13789
  var ga = { exports: {} };
13790
13790
  ga.exports;
13791
13791
  (function(e, t) {
13792
- var r = 200, n = "__lodash_hash_undefined__", a = 9007199254740991, s = "[object Arguments]", o = "[object Array]", l = "[object Boolean]", u = "[object Date]", c = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", f = "[object Number]", k = "[object Object]", y = "[object Promise]", g = "[object RegExp]", x = "[object Set]", T = "[object String]", O = "[object Symbol]", w = "[object WeakMap]", S = "[object ArrayBuffer]", A = "[object DataView]", U = "[object Float32Array]", R = "[object Float64Array]", P = "[object Int8Array]", se = "[object Int16Array]", le = "[object Int32Array]", pe = "[object Uint8Array]", be = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ke = "[object Uint32Array]", Ie = /[\\^$.*+?()[\]{}|]/g, Se = /\w*$/, he = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, L = {};
13793
- L[s] = L[o] = L[S] = L[A] = L[l] = L[u] = L[U] = L[R] = L[P] = L[se] = L[le] = L[b] = L[f] = L[k] = L[g] = L[x] = L[T] = L[O] = L[pe] = L[be] = L[te] = L[ke] = !0, L[c] = L[p] = L[w] = !1;
13792
+ var r = 200, n = "__lodash_hash_undefined__", a = 9007199254740991, s = "[object Arguments]", o = "[object Array]", l = "[object Boolean]", u = "[object Date]", c = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", f = "[object Number]", k = "[object Object]", y = "[object Promise]", g = "[object RegExp]", x = "[object Set]", I = "[object String]", O = "[object Symbol]", w = "[object WeakMap]", S = "[object ArrayBuffer]", A = "[object DataView]", U = "[object Float32Array]", R = "[object Float64Array]", P = "[object Int8Array]", se = "[object Int16Array]", le = "[object Int32Array]", pe = "[object Uint8Array]", be = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ke = "[object Uint32Array]", Te = /[\\^$.*+?()[\]{}|]/g, Se = /\w*$/, he = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, L = {};
13793
+ L[s] = L[o] = L[S] = L[A] = L[l] = L[u] = L[U] = L[R] = L[P] = L[se] = L[le] = L[b] = L[f] = L[k] = L[g] = L[x] = L[I] = L[O] = L[pe] = L[be] = L[te] = L[ke] = !0, L[c] = L[p] = L[w] = !1;
13794
13794
  var ee = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, re = typeof self == "object" && self && self.Object === Object && self, K = ee || re || Function("return this")(), oe = t && !t.nodeType && t, G = oe && !0 && e && !e.nodeType && e, Ye = G && G.exports === oe;
13795
13795
  function ne(i, d) {
13796
13796
  return i.set(d[0], d[1]), i;
@@ -13799,24 +13799,24 @@ ga.exports;
13799
13799
  return i.add(d), i;
13800
13800
  }
13801
13801
  function q(i, d) {
13802
- for (var h = -1, I = i ? i.length : 0; ++h < I && d(i[h], h, i) !== !1; )
13802
+ for (var h = -1, T = i ? i.length : 0; ++h < T && d(i[h], h, i) !== !1; )
13803
13803
  ;
13804
13804
  return i;
13805
13805
  }
13806
13806
  function Ne(i, d) {
13807
- for (var h = -1, I = d.length, X = i.length; ++h < I; )
13807
+ for (var h = -1, T = d.length, X = i.length; ++h < T; )
13808
13808
  i[X + h] = d[h];
13809
13809
  return i;
13810
13810
  }
13811
- function je(i, d, h, I) {
13811
+ function je(i, d, h, T) {
13812
13812
  for (var X = -1, z = i ? i.length : 0; ++X < z; )
13813
13813
  h = d(h, i[X], X, i);
13814
13814
  return h;
13815
13815
  }
13816
13816
  function Be(i, d) {
13817
- for (var h = -1, I = Array(i); ++h < i; )
13818
- I[h] = d(h);
13819
- return I;
13817
+ for (var h = -1, T = Array(i); ++h < i; )
13818
+ T[h] = d(h);
13819
+ return T;
13820
13820
  }
13821
13821
  function lt(i, d) {
13822
13822
  return i == null ? void 0 : i[d];
@@ -13832,8 +13832,8 @@ ga.exports;
13832
13832
  }
13833
13833
  function j(i) {
13834
13834
  var d = -1, h = Array(i.size);
13835
- return i.forEach(function(I, X) {
13836
- h[++d] = [X, I];
13835
+ return i.forEach(function(T, X) {
13836
+ h[++d] = [X, T];
13837
13837
  }), h;
13838
13838
  }
13839
13839
  function $e(i, d) {
@@ -13843,21 +13843,21 @@ ga.exports;
13843
13843
  }
13844
13844
  function Ee(i) {
13845
13845
  var d = -1, h = Array(i.size);
13846
- return i.forEach(function(I) {
13847
- h[++d] = I;
13846
+ return i.forEach(function(T) {
13847
+ h[++d] = T;
13848
13848
  }), h;
13849
13849
  }
13850
13850
  var De = Array.prototype, Ke = Function.prototype, kt = Object.prototype, rt = K["__core-js_shared__"], ut = function() {
13851
13851
  var i = /[^.]+$/.exec(rt && rt.keys && rt.keys.IE_PROTO || "");
13852
13852
  return i ? "Symbol(src)_1." + i : "";
13853
13853
  }(), ct = Ke.toString, dt = kt.hasOwnProperty, ze = kt.toString, Fe = RegExp(
13854
- "^" + ct.call(dt).replace(Ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13855
- ), Le = Ye ? K.Buffer : void 0, $t = K.Symbol, pt = K.Uint8Array, Oe = $e(Object.getPrototypeOf, Object), Xt = Object.create, Tt = kt.propertyIsEnumerable, qt = De.splice, we = Object.getOwnPropertySymbols, ft = Le ? Le.isBuffer : void 0, ht = $e(Object.keys, Object), Dt = Lt(K, "DataView"), Et = Lt(K, "Map"), He = Lt(K, "Promise"), Ct = Lt(K, "Set"), Ce = Lt(K, "WeakMap"), Ze = Lt(Object, "create"), mt = at(Dt), Qt = at(Et), H = at(He), ie = at(Ct), me = at(Ce), Re = $t ? $t.prototype : void 0, Xe = Re ? Re.valueOf : void 0;
13854
+ "^" + ct.call(dt).replace(Te, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13855
+ ), Le = Ye ? K.Buffer : void 0, $t = K.Symbol, pt = K.Uint8Array, Oe = $e(Object.getPrototypeOf, Object), Xt = Object.create, It = kt.propertyIsEnumerable, qt = De.splice, we = Object.getOwnPropertySymbols, ft = Le ? Le.isBuffer : void 0, ht = $e(Object.keys, Object), Dt = Lt(K, "DataView"), Et = Lt(K, "Map"), He = Lt(K, "Promise"), Ct = Lt(K, "Set"), Ce = Lt(K, "WeakMap"), Ze = Lt(Object, "create"), mt = at(Dt), Qt = at(Et), H = at(He), ie = at(Ct), me = at(Ce), Re = $t ? $t.prototype : void 0, Xe = Re ? Re.valueOf : void 0;
13856
13856
  function Ve(i) {
13857
13857
  var d = -1, h = i ? i.length : 0;
13858
13858
  for (this.clear(); ++d < h; ) {
13859
- var I = i[d];
13860
- this.set(I[0], I[1]);
13859
+ var T = i[d];
13860
+ this.set(T[0], T[1]);
13861
13861
  }
13862
13862
  }
13863
13863
  function Ft() {
@@ -13874,7 +13874,7 @@ ga.exports;
13874
13874
  }
13875
13875
  return dt.call(d, i) ? d[i] : void 0;
13876
13876
  }
13877
- function In(i) {
13877
+ function Tn(i) {
13878
13878
  var d = this.__data__;
13879
13879
  return Ze ? d[i] !== void 0 : dt.call(d, i);
13880
13880
  }
@@ -13882,12 +13882,12 @@ ga.exports;
13882
13882
  var h = this.__data__;
13883
13883
  return h[i] = Ze && d === void 0 ? n : d, this;
13884
13884
  }
13885
- Ve.prototype.clear = Ft, Ve.prototype.delete = nt, Ve.prototype.get = Nt, Ve.prototype.has = In, Ve.prototype.set = Gr;
13885
+ Ve.prototype.clear = Ft, Ve.prototype.delete = nt, Ve.prototype.get = Nt, Ve.prototype.has = Tn, Ve.prototype.set = Gr;
13886
13886
  function Je(i) {
13887
13887
  var d = -1, h = i ? i.length : 0;
13888
13888
  for (this.clear(); ++d < h; ) {
13889
- var I = i[d];
13890
- this.set(I[0], I[1]);
13889
+ var T = i[d];
13890
+ this.set(T[0], T[1]);
13891
13891
  }
13892
13892
  }
13893
13893
  function Ca() {
@@ -13897,8 +13897,8 @@ ga.exports;
13897
13897
  var d = this.__data__, h = Pr(d, i);
13898
13898
  if (h < 0)
13899
13899
  return !1;
13900
- var I = d.length - 1;
13901
- return h == I ? d.pop() : qt.call(d, h, 1), !0;
13900
+ var T = d.length - 1;
13901
+ return h == T ? d.pop() : qt.call(d, h, 1), !0;
13902
13902
  }
13903
13903
  function Oa(i) {
13904
13904
  var d = this.__data__, h = Pr(d, i);
@@ -13908,15 +13908,15 @@ ga.exports;
13908
13908
  return Pr(this.__data__, i) > -1;
13909
13909
  }
13910
13910
  function Pa(i, d) {
13911
- var h = this.__data__, I = Pr(h, i);
13912
- return I < 0 ? h.push([i, d]) : h[I][1] = d, this;
13911
+ var h = this.__data__, T = Pr(h, i);
13912
+ return T < 0 ? h.push([i, d]) : h[T][1] = d, this;
13913
13913
  }
13914
13914
  Je.prototype.clear = Ca, Je.prototype.delete = Na, Je.prototype.get = Oa, Je.prototype.has = Ra, Je.prototype.set = Pa;
13915
13915
  function Qe(i) {
13916
13916
  var d = -1, h = i ? i.length : 0;
13917
13917
  for (this.clear(); ++d < h; ) {
13918
- var I = i[d];
13919
- this.set(I[0], I[1]);
13918
+ var T = i[d];
13919
+ this.set(T[0], T[1]);
13920
13920
  }
13921
13921
  }
13922
13922
  function Ma() {
@@ -13957,23 +13957,23 @@ ga.exports;
13957
13957
  function Za(i, d) {
13958
13958
  var h = this.__data__;
13959
13959
  if (h instanceof Je) {
13960
- var I = h.__data__;
13961
- if (!Et || I.length < r - 1)
13962
- return I.push([i, d]), this;
13963
- h = this.__data__ = new Qe(I);
13960
+ var T = h.__data__;
13961
+ if (!Et || T.length < r - 1)
13962
+ return T.push([i, d]), this;
13963
+ h = this.__data__ = new Qe(T);
13964
13964
  }
13965
13965
  return h.set(i, d), this;
13966
13966
  }
13967
13967
  gt.prototype.clear = La, gt.prototype.delete = Ua, gt.prototype.get = Ba, gt.prototype.has = za, gt.prototype.set = Za;
13968
13968
  function Rr(i, d) {
13969
- var h = Yr(i) || jr(i) ? Be(i.length, String) : [], I = h.length, X = !!I;
13969
+ var h = Yr(i) || jr(i) ? Be(i.length, String) : [], T = h.length, X = !!T;
13970
13970
  for (var z in i)
13971
- dt.call(i, z) && !(X && (z == "length" || ns(z, I))) && h.push(z);
13971
+ dt.call(i, z) && !(X && (z == "length" || ns(z, T))) && h.push(z);
13972
13972
  return h;
13973
13973
  }
13974
13974
  function Sn(i, d, h) {
13975
- var I = i[d];
13976
- (!(dt.call(i, d) && On(I, h)) || h === void 0 && !(d in i)) && (i[d] = h);
13975
+ var T = i[d];
13976
+ (!(dt.call(i, d) && On(T, h)) || h === void 0 && !(d in i)) && (i[d] = h);
13977
13977
  }
13978
13978
  function Pr(i, d) {
13979
13979
  for (var h = i.length; h--; )
@@ -13984,9 +13984,9 @@ ga.exports;
13984
13984
  function Gt(i, d) {
13985
13985
  return i && Wr(d, Xr(d), i);
13986
13986
  }
13987
- function Hr(i, d, h, I, X, z, de) {
13987
+ function Hr(i, d, h, T, X, z, de) {
13988
13988
  var ue;
13989
- if (I && (ue = z ? I(i, X, z, de) : I(i)), ue !== void 0)
13989
+ if (T && (ue = z ? T(i, X, z, de) : T(i)), ue !== void 0)
13990
13990
  return ue;
13991
13991
  if (!Jt(i))
13992
13992
  return i;
@@ -14016,15 +14016,15 @@ ga.exports;
14016
14016
  if (de.set(i, ue), !Pe)
14017
14017
  var Ue = h ? es(i) : Xr(i);
14018
14018
  return q(Ue || i, function(tt, We) {
14019
- Ue && (We = tt, tt = i[We]), Sn(ue, We, Hr(tt, d, h, I, We, i, de));
14019
+ Ue && (We = tt, tt = i[We]), Sn(ue, We, Hr(tt, d, h, T, We, i, de));
14020
14020
  }), ue;
14021
14021
  }
14022
14022
  function Va(i) {
14023
14023
  return Jt(i) ? Xt(i) : {};
14024
14024
  }
14025
14025
  function qa(i, d, h) {
14026
- var I = d(i);
14027
- return Yr(i) ? I : Ne(I, h(i));
14026
+ var T = d(i);
14027
+ return Yr(i) ? T : Ne(T, h(i));
14028
14028
  }
14029
14029
  function Ga(i) {
14030
14030
  return ze.call(i);
@@ -14058,16 +14058,16 @@ ga.exports;
14058
14058
  return new i.constructor(h, i.byteOffset, i.byteLength);
14059
14059
  }
14060
14060
  function An(i, d, h) {
14061
- var I = d ? h(j(i), !0) : j(i);
14062
- return je(I, ne, new i.constructor());
14061
+ var T = d ? h(j(i), !0) : j(i);
14062
+ return je(T, ne, new i.constructor());
14063
14063
  }
14064
14064
  function En(i) {
14065
14065
  var d = new i.constructor(i.source, Se.exec(i));
14066
14066
  return d.lastIndex = i.lastIndex, d;
14067
14067
  }
14068
14068
  function Wa(i, d, h) {
14069
- var I = d ? h(Ee(i), !0) : Ee(i);
14070
- return je(I, Ae, new i.constructor());
14069
+ var T = d ? h(Ee(i), !0) : Ee(i);
14070
+ return je(T, Ae, new i.constructor());
14071
14071
  }
14072
14072
  function Ya(i) {
14073
14073
  return Xe ? Object(Xe.call(i)) : {};
@@ -14077,12 +14077,12 @@ ga.exports;
14077
14077
  return new i.constructor(h, i.byteOffset, i.length);
14078
14078
  }
14079
14079
  function Xa(i, d) {
14080
- var h = -1, I = i.length;
14081
- for (d || (d = Array(I)); ++h < I; )
14080
+ var h = -1, T = i.length;
14081
+ for (d || (d = Array(T)); ++h < T; )
14082
14082
  d[h] = i[h];
14083
14083
  return d;
14084
14084
  }
14085
- function Wr(i, d, h, I) {
14085
+ function Wr(i, d, h, T) {
14086
14086
  h || (h = {});
14087
14087
  for (var X = -1, z = d.length; ++X < z; ) {
14088
14088
  var de = d[X], ue = void 0;
@@ -14106,9 +14106,9 @@ ga.exports;
14106
14106
  }
14107
14107
  var er = we ? $e(we, Object) : is, tr = Ga;
14108
14108
  (Dt && tr(new Dt(new ArrayBuffer(1))) != A || Et && tr(new Et()) != b || He && tr(He.resolve()) != y || Ct && tr(new Ct()) != x || Ce && tr(new Ce()) != w) && (tr = function(i) {
14109
- var d = ze.call(i), h = d == k ? i.constructor : void 0, I = h ? at(h) : void 0;
14110
- if (I)
14111
- switch (I) {
14109
+ var d = ze.call(i), h = d == k ? i.constructor : void 0, T = h ? at(h) : void 0;
14110
+ if (T)
14111
+ switch (T) {
14112
14112
  case mt:
14113
14113
  return A;
14114
14114
  case Qt:
@@ -14129,7 +14129,7 @@ ga.exports;
14129
14129
  function Ht(i) {
14130
14130
  return typeof i.constructor == "function" && !Cn(i) ? Va(Oe(i)) : {};
14131
14131
  }
14132
- function rs(i, d, h, I) {
14132
+ function rs(i, d, h, T) {
14133
14133
  var X = i.constructor;
14134
14134
  switch (d) {
14135
14135
  case S:
@@ -14138,7 +14138,7 @@ ga.exports;
14138
14138
  case u:
14139
14139
  return new X(+i);
14140
14140
  case A:
14141
- return gr(i, I);
14141
+ return gr(i, T);
14142
14142
  case U:
14143
14143
  case R:
14144
14144
  case P:
@@ -14148,16 +14148,16 @@ ga.exports;
14148
14148
  case be:
14149
14149
  case te:
14150
14150
  case ke:
14151
- return Ka(i, I);
14151
+ return Ka(i, T);
14152
14152
  case b:
14153
- return An(i, I, h);
14153
+ return An(i, T, h);
14154
14154
  case f:
14155
- case T:
14155
+ case I:
14156
14156
  return new X(i);
14157
14157
  case g:
14158
14158
  return En(i);
14159
14159
  case x:
14160
- return Wa(i, I, h);
14160
+ return Wa(i, T, h);
14161
14161
  case O:
14162
14162
  return Ya(i);
14163
14163
  }
@@ -14196,7 +14196,7 @@ ga.exports;
14196
14196
  return i === d || i !== i && d !== d;
14197
14197
  }
14198
14198
  function jr(i) {
14199
- return os(i) && dt.call(i, "callee") && (!Tt.call(i, "callee") || ze.call(i) == s);
14199
+ return os(i) && dt.call(i, "callee") && (!It.call(i, "callee") || ze.call(i) == s);
14200
14200
  }
14201
14201
  var Yr = Array.isArray;
14202
14202
  function $r(i) {
@@ -14278,7 +14278,7 @@ function zr(e) {
14278
14278
  }
14279
14279
  function Er(e) {
14280
14280
  var t;
14281
- return e ? Du(e) || Array.isArray(e) || !!e[mi] || !!((t = e.constructor) != null && t[mi]) || Tn(e) || Aa(e) : !1;
14281
+ return e ? Du(e) || Array.isArray(e) || !!e[mi] || !!((t = e.constructor) != null && t[mi]) || In(e) || Aa(e) : !1;
14282
14282
  }
14283
14283
  var gy = Object.prototype.constructor.toString(), gi = /* @__PURE__ */ new WeakMap();
14284
14284
  function Du(e) {
@@ -14302,7 +14302,7 @@ function ya(e, t, r = !0) {
14302
14302
  }
14303
14303
  function Sa(e) {
14304
14304
  const t = e[At];
14305
- return t ? t.type_ : Array.isArray(e) ? 1 : Tn(e) ? 2 : Aa(e) ? 3 : 0;
14305
+ return t ? t.type_ : Array.isArray(e) ? 1 : In(e) ? 2 : Aa(e) ? 3 : 0;
14306
14306
  }
14307
14307
  function Js(e, t) {
14308
14308
  return Sa(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
@@ -14314,7 +14314,7 @@ function Fu(e, t, r) {
14314
14314
  function yy(e, t) {
14315
14315
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
14316
14316
  }
14317
- function Tn(e) {
14317
+ function In(e) {
14318
14318
  return e instanceof Map;
14319
14319
  }
14320
14320
  function Aa(e) {
@@ -14324,7 +14324,7 @@ function br(e) {
14324
14324
  return e.copy_ || e.base_;
14325
14325
  }
14326
14326
  function Ws(e, t) {
14327
- if (Tn(e))
14327
+ if (In(e))
14328
14328
  return new Map(e);
14329
14329
  if (Aa(e))
14330
14330
  return new Set(e);
@@ -14472,7 +14472,7 @@ function bi(e, t, r, n, a, s, o) {
14472
14472
  if (Er(a) && !l) {
14473
14473
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[n] === a && l)
14474
14474
  return;
14475
- va(e, a), (!t || !t.scope_.parent_) && typeof n != "symbol" && (Tn(r) ? r.has(n) : Object.prototype.propertyIsEnumerable.call(r, n)) && _a(e, a);
14475
+ va(e, a), (!t || !t.scope_.parent_) && typeof n != "symbol" && (In(r) ? r.has(n) : Object.prototype.propertyIsEnumerable.call(r, n)) && _a(e, a);
14476
14476
  }
14477
14477
  }
14478
14478
  }
@@ -14608,7 +14608,7 @@ function ks(e) {
14608
14608
  e.scope_.immer_.useStrictShallowCopy_
14609
14609
  ));
14610
14610
  }
14611
- var Ty = class {
14611
+ var Iy = class {
14612
14612
  constructor(e) {
14613
14613
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (t, r, n) => {
14614
14614
  if (typeof t == "function" && typeof r != "function") {
@@ -14648,7 +14648,7 @@ var Ty = class {
14648
14648
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof (e == null ? void 0 : e.useStrictIteration) == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
14649
14649
  }
14650
14650
  createDraft(e) {
14651
- Er(e) || _t(8), zr(e) && (e = Iy(e));
14651
+ Er(e) || _t(8), zr(e) && (e = Ty(e));
14652
14652
  const t = vi(this), r = Qs(e, void 0);
14653
14653
  return r[At].isManual_ = !0, Ks(t), r;
14654
14654
  }
@@ -14704,10 +14704,10 @@ var Ty = class {
14704
14704
  }
14705
14705
  };
14706
14706
  function Qs(e, t) {
14707
- const r = Tn(e) ? Cr("MapSet").proxyMap_(e, t) : Aa(e) ? Cr("MapSet").proxySet_(e, t) : xy(e, t);
14707
+ const r = In(e) ? Cr("MapSet").proxyMap_(e, t) : Aa(e) ? Cr("MapSet").proxySet_(e, t) : xy(e, t);
14708
14708
  return (t ? t.scope_ : Lu()).drafts_.push(r), r;
14709
14709
  }
14710
- function Iy(e) {
14710
+ function Ty(e) {
14711
14711
  return zr(e) || _t(10, e), Bu(e);
14712
14712
  }
14713
14713
  function Bu(e) {
@@ -14729,11 +14729,11 @@ function Bu(e) {
14729
14729
  n
14730
14730
  ), t && (t.finalized_ = !1), r;
14731
14731
  }
14732
- var Sy = new Ty();
14732
+ var Sy = new Iy();
14733
14733
  Sy.produce;
14734
14734
  var Ay = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, Ey = typeof self == "object" && self && self.Object === Object && self, Cy = Ay || Ey || Function("return this")(), wi = Cy.Symbol;
14735
14735
  wi && wi.isConcatSpreadable;
14736
- const Ts = {
14736
+ const Is = {
14737
14737
  rectangle: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' rx='8' fill='%233b82f6'/></svg>",
14738
14738
  circle: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='50' fill='%233b82f6'/></svg>",
14739
14739
  triangle: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,5 95,95 5,95' fill='%233b82f6'/></svg>",
@@ -14788,7 +14788,7 @@ const Ts = {
14788
14788
  });
14789
14789
  else {
14790
14790
  let m = "";
14791
- e.svgContent && e.svgContent.includes("<svg") ? m = `data:image/svg+xml;utf8,${encodeURIComponent(e.svgContent)}` : m = (l in Ts ? Ts[l] : Ts.rectangle).replace(/%23[0-9a-fA-F]{6}/, encodeURIComponent(u)), Vn(py, {
14791
+ e.svgContent && e.svgContent.includes("<svg") ? m = `data:image/svg+xml;utf8,${encodeURIComponent(e.svgContent)}` : m = (l in Is ? Is[l] : Is.rectangle).replace(/%23[0-9a-fA-F]{6}/, encodeURIComponent(u)), Vn(py, {
14792
14792
  payload: {
14793
14793
  id: o,
14794
14794
  type: "shape",
@@ -14834,7 +14834,7 @@ const Ts = {
14834
14834
  const y = Math.min(k.durationInFrames || 30, u || 90), g = k.delayInFrames || 0;
14835
14835
  let x = l + g;
14836
14836
  a === "out" && (x = Math.max(l, l + u - y - g));
14837
- const T = {
14837
+ const I = {
14838
14838
  id: Pt(),
14839
14839
  property: k.property,
14840
14840
  from: k.from,
@@ -14846,7 +14846,7 @@ const Ts = {
14846
14846
  persist: !0,
14847
14847
  order: "forward"
14848
14848
  };
14849
- return k.details && (T.details = k.details), T;
14849
+ return k.details && (I.details = k.details), I;
14850
14850
  });
14851
14851
  console.log(
14852
14852
  `[AI-Effects-Service] Dispatching ADD_ANIMATION for item ${s} (${o.type}):`,
@@ -14870,7 +14870,7 @@ const Ts = {
14870
14870
  delayInFrames: typeof S.delay == "number" ? S.delay : 0,
14871
14871
  durationInFrames: typeof S.durationInFrames == "number" ? S.durationInFrames : 30,
14872
14872
  name: S.name
14873
- })), x = (p.effects || []).map((S) => S.name || S.type || "").filter(Boolean), T = p.details;
14873
+ })), x = (p.effects || []).map((S) => S.name || S.type || "").filter(Boolean), I = p.details;
14874
14874
  return {
14875
14875
  id: n.id,
14876
14876
  name: n.name || n.type,
@@ -14881,9 +14881,9 @@ const Ts = {
14881
14881
  startTimeMs: l,
14882
14882
  endTimeMs: u,
14883
14883
  durationMs: c,
14884
- width: typeof (T == null ? void 0 : T.width) == "number" ? T.width : void 0,
14885
- height: typeof (T == null ? void 0 : T.height) == "number" ? T.height : void 0,
14886
- text: typeof (T == null ? void 0 : T.text) == "string" ? T.text : void 0,
14884
+ width: typeof (I == null ? void 0 : I.width) == "number" ? I.width : void 0,
14885
+ height: typeof (I == null ? void 0 : I.height) == "number" ? I.height : void 0,
14886
+ text: typeof (I == null ? void 0 : I.text) == "string" ? I.text : void 0,
14887
14887
  currentAnimations: k,
14888
14888
  currentEffects: x,
14889
14889
  existingAnimationDetails: y
@@ -14915,7 +14915,7 @@ const Ts = {
14915
14915
  sender: "user",
14916
14916
  text: b,
14917
14917
  targetElement: y
14918
- }, x = Py(t, r, a), T = {
14918
+ }, x = Py(t, r, a), I = {
14919
14919
  provider: o,
14920
14920
  model: l,
14921
14921
  apiKey: u && u.trim() ? u.trim() : void 0
@@ -14930,7 +14930,7 @@ const Ts = {
14930
14930
  selectedItems: x,
14931
14931
  animationDirection: c,
14932
14932
  conversationHistory: O,
14933
- config: T
14933
+ config: I
14934
14934
  });
14935
14935
  if (console.log("[AI-Effects-Service] AI result:", w), ((A = w.action) == null ? void 0 : A.type) === "add_text") {
14936
14936
  Ny(w.action, r, n, p);
@@ -15030,7 +15030,7 @@ Describe what you want to create or animate!`
15030
15030
  onApiKeyChange: y,
15031
15031
  onEffectApplied: g,
15032
15032
  onActionExecuted: x,
15033
- className: T = "",
15033
+ className: I = "",
15034
15034
  width: O = 380,
15035
15035
  style: w
15036
15036
  }) => {
@@ -15043,8 +15043,8 @@ Describe what you want to create or animate!`
15043
15043
  var Ee;
15044
15044
  m && m(j), p === void 0 && se(j);
15045
15045
  const $e = ((Ee = ps[j][0]) == null ? void 0 : Ee.id) || "";
15046
- Ie($e);
15047
- }, [be, te] = pr("gpt-4o-mini"), ke = b !== void 0 ? b : be, Ie = (j) => {
15046
+ Te($e);
15047
+ }, [be, te] = pr("gpt-4o-mini"), ke = b !== void 0 ? b : be, Te = (j) => {
15048
15048
  f && f(j), b === void 0 && te(j);
15049
15049
  }, [Se, he] = pr(""), V = k !== void 0 ? k : Se, L = (j) => {
15050
15050
  y && y(j), k === void 0 && he(j);
@@ -15102,7 +15102,7 @@ Describe what you want to create or animate!`
15102
15102
  "div",
15103
15103
  {
15104
15104
  style: { width: O, ...w },
15105
- className: `flex flex-col h-full rounded-2xl border border-border/80 bg-card text-card-foreground overflow-hidden shadow-2xl animate-in slide-in-from-right-4 duration-200 ${T}`,
15105
+ className: `flex flex-col h-full rounded-2xl border border-border/80 bg-card text-card-foreground overflow-hidden shadow-2xl animate-in slide-in-from-right-4 duration-200 ${I}`,
15106
15106
  children: [
15107
15107
  /* @__PURE__ */ ve("div", { className: "flex items-center justify-between px-4 h-14 border-b border-border/60 bg-muted/20 flex-shrink-0", children: [
15108
15108
  /* @__PURE__ */ J("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ J("span", { className: "text-sm font-semibold tracking-tight text-foreground", children: o === "Build your custom effect" ? "AI chats" : o }) }),
@@ -15151,7 +15151,7 @@ Describe what you want to create or animate!`
15151
15151
  "select",
15152
15152
  {
15153
15153
  value: ke,
15154
- onChange: (j) => Ie(j.target.value),
15154
+ onChange: (j) => Te(j.target.value),
15155
15155
  className: "w-full bg-background border border-input rounded px-2 py-1 text-foreground text-xs focus:outline-none focus:ring-1 focus:ring-primary truncate",
15156
15156
  children: ps[le].map((j) => /* @__PURE__ */ J("option", { value: j.id, title: j.description, children: j.name }, j.id))
15157
15157
  }
@@ -15378,7 +15378,7 @@ export {
15378
15378
  Zy as AIEffectsChatPanel,
15379
15379
  Pp as ANIMATION_CONTEXT_KNOWLEDGE,
15380
15380
  ps as PROVIDER_MODELS,
15381
- Ts as STANDARD_SHAPE_SVGS,
15381
+ Is as STANDARD_SHAPE_SVGS,
15382
15382
  Mp as TOOLS_CAPABILITIES_KNOWLEDGE,
15383
15383
  Eu as calculateFrames,
15384
15384
  zg as cancelPreviewAnimation,