@ddict/popup 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/popup.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as g, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as P, createTextVNode as Ee, normalizeStyle as Zn, toDisplayString as G, createStaticVNode as Be, createBlock as W, createCommentVNode as R, computed as L, unref as M, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as O, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as St, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as Et, popScopeId as $t, withKeys as Jn } from "vue";
1
+ import { createElementBlock as C, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as P, createTextVNode as Ee, normalizeStyle as Zn, toDisplayString as G, createStaticVNode as Be, createCommentVNode as R, createBlock as W, computed as L, unref as k, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as $, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as St, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as Et, popScopeId as $t, withKeys as Jn } from "vue";
2
2
  const vt = navigator.userAgent.match(
3
3
  /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
4
4
  ), Ze = {
@@ -56,10 +56,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
56
56
  ], l = (s) => {
57
57
  t("themeChange", s);
58
58
  };
59
- return (s, r) => (h(), g("div", Kn, [
59
+ return (s, r) => (h(), C("div", Kn, [
60
60
  eo,
61
61
  f("ul", to, [
62
- (h(), g(z, null, Y(o, (a) => f("li", {
62
+ (h(), C(z, null, Y(o, (a) => f("li", {
63
63
  key: a.value
64
64
  }, [
65
65
  f("input", {
@@ -86,7 +86,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
86
86
  ])
87
87
  ]));
88
88
  }
89
- }, ao = { class: "flex justify-between" }, ro = /* @__PURE__ */ Be('<div class="flex flex-row"><svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg></div>', 1), io = { class: "flex" }, uo = /* @__PURE__ */ f("svg", {
89
+ }, ao = { class: "flex justify-between" }, ro = { class: "flex flex-row items-center" }, io = /* @__PURE__ */ Be('<svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg>', 1), uo = {
90
+ key: 0,
91
+ class: "ml-2 px-1.5 py-0.5 text-[10px] font-medium bg-primary/10 text-primary border border-primary/20 rounded-full"
92
+ }, co = { class: "flex" }, fo = /* @__PURE__ */ f("svg", {
90
93
  class: "w-6 h-6 text-primary",
91
94
  viewBox: "0 0 24 24",
92
95
  fill: "none",
@@ -110,9 +113,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
110
113
  d: "M6.25 18.5C6.25 18.0858 6.58579 17.75 7 17.75H17C17.4142 17.75 17.75 18.0858 17.75 18.5C17.75 18.9142 17.4142 19.25 17 19.25H7C6.58579 19.25 6.25 18.9142 6.25 18.5Z",
111
114
  fill: "currentColor"
112
115
  })
113
- ], -1), co = [
114
- uo
115
- ], fo = /* @__PURE__ */ f("svg", {
116
+ ], -1), vo = [
117
+ fo
118
+ ], po = /* @__PURE__ */ f("svg", {
116
119
  class: "w-6 h-6 text-primary",
117
120
  viewBox: "0 0 24 24",
118
121
  fill: "none",
@@ -139,10 +142,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
139
142
  "stroke-linecap": "round",
140
143
  "stroke-linejoin": "round"
141
144
  })
142
- ], -1), vo = {
145
+ ], -1), ho = {
143
146
  key: 0,
144
147
  class: "absolute -top-0.5 -right-0.5 bg-red-500 text-white text-xs rounded-full h-4 min-w-[16px] flex items-center justify-center px-1 text-[8px]"
145
- }, po = /* @__PURE__ */ f("svg", {
148
+ }, mo = /* @__PURE__ */ f("svg", {
146
149
  class: "w-6 h-6 text-primary",
147
150
  viewBox: "0 0 24 24",
148
151
  fill: "none",
@@ -155,9 +158,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
155
158
  "stroke-linecap": "round",
156
159
  "stroke-linejoin": "round"
157
160
  })
158
- ], -1), ho = [
159
- po
160
- ], mo = /* @__PURE__ */ f("svg", {
161
+ ], -1), go = [
162
+ mo
163
+ ], bo = /* @__PURE__ */ f("svg", {
161
164
  class: "w-6 h-6 text-primary",
162
165
  viewBox: "0 0 24 24",
163
166
  fill: "none",
@@ -171,11 +174,11 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
171
174
  d: "M7.75 12C7.75 9.65278 9.65279 7.75 12 7.75C14.3472 7.75 16.25 9.65278 16.25 12C16.25 14.3472 14.3472 16.25 12 16.25C9.65279 16.25 7.75 14.3472 7.75 12ZM12 9.25C10.4812 9.25 9.25 10.4812 9.25 12C9.25 13.5188 10.4812 14.75 12 14.75C13.5188 14.75 14.75 13.5188 14.75 12C14.75 10.4812 13.5188 9.25 12 9.25Z",
172
175
  fill: "currentColor"
173
176
  })
174
- ], -1), go = [
175
- mo
176
- ], bo = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), Co = [
177
+ ], -1), Co = [
177
178
  bo
178
- ], xo = {
179
+ ], xo = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), yo = [
180
+ xo
181
+ ], wo = {
179
182
  __name: "Header",
180
183
  props: {
181
184
  headerSettings: {
@@ -193,6 +196,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
193
196
  currentTheme: {
194
197
  type: String,
195
198
  default: "lofi"
199
+ },
200
+ isPremium: {
201
+ type: Boolean,
202
+ default: !1
196
203
  }
197
204
  },
198
205
  emits: ["settings", "fullScreen", "reader", "learn", "account", "themeChange"],
@@ -200,70 +207,73 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
200
207
  const t = n, o = (l) => {
201
208
  t("themeChange", l);
202
209
  };
203
- return (l, s) => (h(), g("div", ao, [
204
- ro,
205
- f("div", io, [
210
+ return (l, s) => (h(), C("div", ao, [
211
+ f("div", ro, [
212
+ io,
213
+ e.isPremium ? (h(), C("span", uo, "Premium")) : R("", !0)
214
+ ]),
215
+ f("div", co, [
206
216
  e.headerSettings.showThemeSelector ? (h(), W(so, {
207
217
  key: 0,
208
218
  "current-theme": e.currentTheme,
209
219
  onThemeChange: o
210
220
  }, null, 8, ["current-theme"])) : R("", !0),
211
- e.headerSettings.showReader ? (h(), g("button", {
221
+ e.headerSettings.showReader ? (h(), C("button", {
212
222
  key: 1,
213
223
  class: "btn btn-ghost btn-circle btn-sm",
214
224
  onClick: s[0] || (s[0] = (r) => t("reader"))
215
- }, co)) : R("", !0),
225
+ }, vo)) : R("", !0),
216
226
  f("button", {
217
227
  class: "btn btn-ghost btn-circle btn-sm relative",
218
228
  onClick: s[1] || (s[1] = (r) => t("learn"))
219
229
  }, [
220
- fo,
221
- e.headerSettings.showLearn > 0 ? (h(), g("span", vo, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
230
+ po,
231
+ e.headerSettings.showLearn > 0 ? (h(), C("span", ho, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
222
232
  ]),
223
- e.headerSettings.showAccount ? (h(), g("button", {
233
+ e.headerSettings.showAccount ? (h(), C("button", {
224
234
  key: 2,
225
235
  class: "btn btn-ghost btn-circle btn-sm",
226
236
  onClick: s[2] || (s[2] = (r) => t("account"))
227
- }, ho)) : R("", !0),
228
- e.headerSettings.showSettings ? (h(), g("button", {
237
+ }, go)) : R("", !0),
238
+ e.headerSettings.showSettings ? (h(), C("button", {
229
239
  key: 3,
230
240
  class: "btn btn-ghost btn-circle btn-sm",
231
241
  onClick: s[3] || (s[3] = (r) => t("settings"))
232
- }, go)) : R("", !0),
233
- e.headerSettings.showFullscreen ? (h(), g("button", {
242
+ }, Co)) : R("", !0),
243
+ e.headerSettings.showFullscreen ? (h(), C("button", {
234
244
  key: 4,
235
245
  class: "btn btn-ghost btn-circle btn-sm",
236
246
  onClick: s[4] || (s[4] = (r) => t("fullScreen"))
237
- }, Co)) : R("", !0)
247
+ }, yo)) : R("", !0)
238
248
  ])
239
249
  ]));
240
250
  }
241
251
  };
242
- function Le(e, n, t) {
252
+ function Ie(e, n, t) {
243
253
  let o = t.initialDeps ?? [], l;
244
254
  return () => {
245
255
  var s, r, a, i;
246
256
  let u;
247
257
  t.key && ((s = t.debug) != null && s.call(t)) && (u = Date.now());
248
258
  const c = e();
249
- if (!(c.length !== o.length || c.some((m, C) => o[C] !== m)))
259
+ if (!(c.length !== o.length || c.some((m, y) => o[y] !== m)))
250
260
  return l;
251
261
  o = c;
252
- let x;
253
- if (t.key && ((r = t.debug) != null && r.call(t)) && (x = Date.now()), l = n(...c), t.key && ((a = t.debug) != null && a.call(t))) {
254
- const m = Math.round((Date.now() - u) * 100) / 100, C = Math.round((Date.now() - x) * 100) / 100, b = C / 16, I = ($, w) => {
255
- for ($ = String($); $.length < w; )
256
- $ = " " + $;
257
- return $;
262
+ let w;
263
+ if (t.key && ((r = t.debug) != null && r.call(t)) && (w = Date.now()), l = n(...c), t.key && ((a = t.debug) != null && a.call(t))) {
264
+ const m = Math.round((Date.now() - u) * 100) / 100, y = Math.round((Date.now() - w) * 100) / 100, x = y / 16, O = (D, b) => {
265
+ for (D = String(D); D.length < b; )
266
+ D = " " + D;
267
+ return D;
258
268
  };
259
269
  console.info(
260
- `%c⏱ ${I(C, 5)} /${I(m, 5)} ms`,
270
+ `%c⏱ ${O(y, 5)} /${O(m, 5)} ms`,
261
271
  `
262
272
  font-size: .6rem;
263
273
  font-weight: bold;
264
274
  color: hsl(${Math.max(
265
275
  0,
266
- Math.min(120 - 120 * b, 120)
276
+ Math.min(120 - 120 * x, 120)
267
277
  )}deg 100% 31%);`,
268
278
  t == null ? void 0 : t.key
269
279
  );
@@ -276,17 +286,17 @@ function ut(e, n) {
276
286
  throw new Error("Unexpected undefined");
277
287
  return e;
278
288
  }
279
- const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
289
+ const _o = (e, n) => Math.abs(e - n) < 1, To = (e, n, t) => {
280
290
  let o;
281
291
  return function(...l) {
282
292
  e.clearTimeout(o), o = e.setTimeout(() => n.apply(this, l), t);
283
293
  };
284
- }, _o = (e) => e, To = (e) => {
294
+ }, So = (e) => e, Eo = (e) => {
285
295
  const n = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), o = [];
286
296
  for (let l = n; l <= t; l++)
287
297
  o.push(l);
288
298
  return o;
289
- }, So = (e, n) => {
299
+ }, $o = (e, n) => {
290
300
  const t = e.scrollElement;
291
301
  if (!t)
292
302
  return;
@@ -316,7 +326,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
316
326
  };
317
327
  }, Pt = {
318
328
  passive: !0
319
- }, Eo = typeof window > "u" ? !0 : "onscrollend" in window, $o = (e, n) => {
329
+ }, Oo = typeof window > "u" ? !0 : "onscrollend" in window, Lo = (e, n) => {
320
330
  const t = e.scrollElement;
321
331
  if (!t)
322
332
  return;
@@ -324,8 +334,8 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
324
334
  if (!o)
325
335
  return;
326
336
  let l = 0;
327
- const s = Eo ? () => {
328
- } : wo(
337
+ const s = Oo ? () => {
338
+ } : To(
329
339
  o,
330
340
  () => {
331
341
  n(l, !1);
@@ -337,7 +347,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
337
347
  return i(), t.addEventListener("scroll", a, Pt), t.addEventListener("scrollend", i, Pt), () => {
338
348
  t.removeEventListener("scroll", a), t.removeEventListener("scrollend", i);
339
349
  };
340
- }, Oo = (e, n, t) => {
350
+ }, Io = (e, n, t) => {
341
351
  if (n != null && n.borderBoxSize) {
342
352
  const o = n.borderBoxSize[0];
343
353
  if (o)
@@ -348,7 +358,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
348
358
  return Math.round(
349
359
  e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
350
360
  );
351
- }, Io = (e, {
361
+ }, ko = (e, {
352
362
  adjustments: n = 0,
353
363
  behavior: t
354
364
  }, o) => {
@@ -359,7 +369,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
359
369
  behavior: t
360
370
  });
361
371
  };
362
- class Lo {
372
+ class Mo {
363
373
  constructor(n) {
364
374
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
365
375
  let t = null;
@@ -394,11 +404,11 @@ class Lo {
394
404
  scrollPaddingStart: 0,
395
405
  scrollPaddingEnd: 0,
396
406
  horizontal: !1,
397
- getItemKey: _o,
398
- rangeExtractor: To,
407
+ getItemKey: So,
408
+ rangeExtractor: Eo,
399
409
  onChange: () => {
400
410
  },
401
- measureElement: Oo,
411
+ measureElement: Io,
402
412
  initialRect: { width: 0, height: 0 },
403
413
  scrollMargin: 0,
404
414
  gap: 0,
@@ -456,7 +466,7 @@ class Lo {
456
466
  break;
457
467
  }
458
468
  return s.size === this.options.lanes ? Array.from(s.values()).sort((r, a) => r.end === a.end ? r.index - a.index : r.end - a.end)[0] : void 0;
459
- }, this.getMeasurementOptions = Le(
469
+ }, this.getMeasurementOptions = Ie(
460
470
  () => [
461
471
  this.options.count,
462
472
  this.options.paddingStart,
@@ -474,7 +484,7 @@ class Lo {
474
484
  {
475
485
  key: !1
476
486
  }
477
- ), this.getMeasurements = Le(
487
+ ), this.getMeasurements = Ie(
478
488
  () => [this.getMeasurementOptions(), this.itemSizeCache],
479
489
  ({ count: t, paddingStart: o, scrollMargin: l, getItemKey: s, enabled: r }, a) => {
480
490
  var i;
@@ -487,27 +497,27 @@ class Lo {
487
497
  this.pendingMeasuredCacheIndexes = [];
488
498
  const c = this.measurementsCache.slice(0, u);
489
499
  for (let d = u; d < t; d++) {
490
- let x = (i = this.measurementsCache[d]) == null ? void 0 : i.measureElement;
491
- x || (x = (_) => {
492
- const T = s(d), V = this.elementsCache.get(T);
500
+ let w = (i = this.measurementsCache[d]) == null ? void 0 : i.measureElement;
501
+ w || (w = (_) => {
502
+ const T = s(d), A = this.elementsCache.get(T);
493
503
  if (!_) {
494
- V && (this.observer.unobserve(V), this.elementsCache.delete(T));
504
+ A && (this.observer.unobserve(A), this.elementsCache.delete(T));
495
505
  return;
496
506
  }
497
- V !== _ && (V && this.observer.unobserve(V), this.observer.observe(_), this.elementsCache.set(T, _)), _.isConnected && this.resizeItem(
507
+ A !== _ && (A && this.observer.unobserve(A), this.observer.observe(_), this.elementsCache.set(T, _)), _.isConnected && this.resizeItem(
498
508
  d,
499
509
  this.options.measureElement(_, void 0, this)
500
510
  );
501
511
  });
502
- const m = s(d), C = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), b = C ? C.end + this.options.gap : o + l, I = a.get(m), $ = typeof I == "number" ? I : this.options.estimateSize(d), w = b + $, y = C ? C.lane : d % this.options.lanes;
512
+ const m = s(d), y = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d), x = y ? y.end + this.options.gap : o + l, O = a.get(m), D = typeof O == "number" ? O : this.options.estimateSize(d), b = x + D, g = y ? y.lane : d % this.options.lanes;
503
513
  c[d] = {
504
514
  index: d,
505
- start: b,
506
- size: $,
507
- end: w,
515
+ start: x,
516
+ size: D,
517
+ end: b,
508
518
  key: m,
509
- lane: y,
510
- measureElement: x
519
+ lane: g,
520
+ measureElement: w
511
521
  };
512
522
  }
513
523
  return this.measurementsCache = c, c;
@@ -516,9 +526,9 @@ class Lo {
516
526
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
517
527
  debug: () => this.options.debug
518
528
  }
519
- ), this.calculateRange = Le(
529
+ ), this.calculateRange = Ie(
520
530
  () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
521
- (t, o, l) => this.range = t.length > 0 && o > 0 ? ko({
531
+ (t, o, l) => this.range = t.length > 0 && o > 0 ? Ao({
522
532
  measurements: t,
523
533
  outerSize: o,
524
534
  scrollOffset: l
@@ -527,7 +537,7 @@ class Lo {
527
537
  key: process.env.NODE_ENV !== "production" && "calculateRange",
528
538
  debug: () => this.options.debug
529
539
  }
530
- ), this.getIndexes = Le(
540
+ ), this.getIndexes = Ie(
531
541
  () => [
532
542
  this.options.rangeExtractor,
533
543
  this.calculateRange(),
@@ -570,7 +580,7 @@ class Lo {
570
580
  })), this.pendingMeasuredCacheIndexes.push(l.index), this.itemSizeCache = new Map(this.itemSizeCache.set(l.key, o)), this.notify(!0, !1));
571
581
  }, this.measureElement = (t) => {
572
582
  t && this._measureElement(t, void 0);
573
- }, this.getVirtualItems = Le(
583
+ }, this.getVirtualItems = Ie(
574
584
  () => [this.getIndexes(), this.getMeasurements()],
575
585
  (t, o) => {
576
586
  const l = [];
@@ -638,7 +648,7 @@ class Lo {
638
648
  const [u] = ut(
639
649
  this.getOffsetForIndex(t, a)
640
650
  );
641
- yo(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
651
+ _o(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
642
652
  } else
643
653
  this.scrollToIndex(t, { align: a, behavior: l });
644
654
  }));
@@ -679,7 +689,7 @@ const dn = (e, n, t, o) => {
679
689
  }
680
690
  return e > 0 ? e - 1 : 0;
681
691
  };
682
- function ko({
692
+ function Ao({
683
693
  measurements: e,
684
694
  outerSize: n,
685
695
  scrollOffset: t
@@ -690,10 +700,10 @@ function ko({
690
700
  r++;
691
701
  return { startIndex: s, endIndex: r };
692
702
  }
693
- function Mo(e) {
694
- const n = new Lo(M(e)), t = Un(n), o = n._didMount();
703
+ function Vo(e) {
704
+ const n = new Mo(k(e)), t = Un(n), o = n._didMount();
695
705
  return F(
696
- () => M(e).getScrollElement(),
706
+ () => k(e).getScrollElement(),
697
707
  (l) => {
698
708
  l && n._willUpdate();
699
709
  },
@@ -701,7 +711,7 @@ function Mo(e) {
701
711
  immediate: !0
702
712
  }
703
713
  ), F(
704
- () => M(e),
714
+ () => k(e),
705
715
  (l) => {
706
716
  n.setOptions({
707
717
  ...l,
@@ -716,23 +726,23 @@ function Mo(e) {
716
726
  }
717
727
  ), Tt(o), t;
718
728
  }
719
- function Ao(e) {
720
- return Mo(
729
+ function Do(e) {
730
+ return Vo(
721
731
  L(() => ({
722
- observeElementRect: So,
723
- observeElementOffset: $o,
724
- scrollToFn: Io,
725
- ...M(e)
732
+ observeElementRect: $o,
733
+ observeElementOffset: Lo,
734
+ scrollToFn: ko,
735
+ ...k(e)
726
736
  }))
727
737
  );
728
738
  }
729
- function Vo(e, n, t) {
730
- let o = O(t == null ? void 0 : t.value), l = L(() => e.value !== void 0);
739
+ function Ro(e, n, t) {
740
+ let o = $(t == null ? void 0 : t.value), l = L(() => e.value !== void 0);
731
741
  return [L(() => l.value ? e.value : o.value), function(s) {
732
742
  return l.value || (o.value = s), n == null ? void 0 : n(s);
733
743
  }];
734
744
  }
735
- function Do(e) {
745
+ function Po(e) {
736
746
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((n) => setTimeout(() => {
737
747
  throw n;
738
748
  }));
@@ -752,7 +762,7 @@ function Qe() {
752
762
  n.add(() => clearTimeout(o));
753
763
  }, microTask(...t) {
754
764
  let o = { current: !0 };
755
- return Do(() => {
765
+ return Po(() => {
756
766
  o.current && t[0]();
757
767
  }), n.add(() => {
758
768
  o.current = !1;
@@ -775,19 +785,19 @@ function Qe() {
775
785
  } };
776
786
  return n;
777
787
  }
778
- function Ro() {
788
+ function No() {
779
789
  let e = Qe();
780
790
  return Fe(() => e.dispose()), e;
781
791
  }
782
- function Po() {
783
- let e = Ro();
792
+ function Bo() {
793
+ let e = No();
784
794
  return (n) => {
785
795
  e.dispose(), e.nextFrame(n);
786
796
  };
787
797
  }
788
- let No = Symbol("headlessui.useid"), Bo = 0;
798
+ let Fo = Symbol("headlessui.useid"), jo = 0;
789
799
  function je() {
790
- return le(No, () => `${++Bo}`)();
800
+ return le(Fo, () => `${++jo}`)();
791
801
  }
792
802
  function N(e) {
793
803
  var n;
@@ -803,8 +813,8 @@ function ue(e, n, ...t) {
803
813
  let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((l) => `"${l}"`).join(", ")}.`);
804
814
  throw Error.captureStackTrace && Error.captureStackTrace(o, ue), o;
805
815
  }
806
- var Fo = Object.defineProperty, jo = (e, n, t) => n in e ? Fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (jo(e, typeof n != "symbol" ? n + "" : n, t), t);
807
- let Ho = class {
816
+ var Ho = Object.defineProperty, zo = (e, n, t) => n in e ? Ho(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (zo(e, typeof n != "symbol" ? n + "" : n, t), t);
817
+ let Zo = class {
808
818
  constructor() {
809
819
  Nt(this, "current", this.detect()), Nt(this, "currentId", 0);
810
820
  }
@@ -826,8 +836,8 @@ let Ho = class {
826
836
  detect() {
827
837
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
828
838
  }
829
- }, Ot = new Ho();
830
- function It(e) {
839
+ }, Ot = new Zo();
840
+ function Lt(e) {
831
841
  if (Ot.isServer) return null;
832
842
  if (e instanceof Node) return e.ownerDocument;
833
843
  if (e != null && e.hasOwnProperty("value")) {
@@ -837,10 +847,10 @@ function It(e) {
837
847
  return document;
838
848
  }
839
849
  let Bt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
840
- var zo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(zo || {}), Zo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zo || {}), Uo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Uo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
841
- function Wo(e, n = 0) {
850
+ var Uo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Uo || {}), Wo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Wo || {}), qo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
851
+ function Go(e, n = 0) {
842
852
  var t;
843
- return e === ((t = It(e)) == null ? void 0 : t.body) ? !1 : ue(n, { 0() {
853
+ return e === ((t = Lt(e)) == null ? void 0 : t.body) ? !1 : ue(n, { 0() {
844
854
  return e.matches(Bt);
845
855
  }, 1() {
846
856
  let o = e;
@@ -851,13 +861,13 @@ function Wo(e, n = 0) {
851
861
  return !1;
852
862
  } });
853
863
  }
854
- var qo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(qo || {});
864
+ var Jo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Jo || {});
855
865
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
856
866
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
857
867
  }, !0), document.addEventListener("click", (e) => {
858
868
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
859
869
  }, !0));
860
- function Go(e, n = (t) => t) {
870
+ function Yo(e, n = (t) => t) {
861
871
  return e.slice().sort((t, o) => {
862
872
  let l = n(t), s = n(o);
863
873
  if (l === null || s === null) return 0;
@@ -865,26 +875,26 @@ function Go(e, n = (t) => t) {
865
875
  return r & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : r & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
866
876
  });
867
877
  }
868
- function Jo() {
878
+ function Qo() {
869
879
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
870
880
  }
871
- function Yo() {
881
+ function Xo() {
872
882
  return /Android/gi.test(window.navigator.userAgent);
873
883
  }
874
884
  function vn() {
875
- return Jo() || Yo();
885
+ return Qo() || Xo();
876
886
  }
877
887
  function Ue(e, n, t) {
878
888
  Ot.isServer || fe((o) => {
879
889
  document.addEventListener(e, n, t), o(() => document.removeEventListener(e, n, t));
880
890
  });
881
891
  }
882
- function Qo(e, n, t) {
892
+ function Ko(e, n, t) {
883
893
  Ot.isServer || fe((o) => {
884
894
  window.addEventListener(e, n, t), o(() => window.removeEventListener(e, n, t));
885
895
  });
886
896
  }
887
- function Xo(e, n, t = L(() => !0)) {
897
+ function el(e, n, t = L(() => !0)) {
888
898
  function o(s, r) {
889
899
  if (!t.value || s.defaultPrevented) return;
890
900
  let a = r(s);
@@ -897,9 +907,9 @@ function Xo(e, n, t = L(() => !0)) {
897
907
  let c = u instanceof HTMLElement ? u : N(u);
898
908
  if (c != null && c.contains(a) || s.composed && s.composedPath().includes(c)) return;
899
909
  }
900
- return !Wo(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
910
+ return !Go(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
901
911
  }
902
- let l = O(null);
912
+ let l = $(null);
903
913
  Ue("pointerdown", (s) => {
904
914
  var r, a;
905
915
  t.value && (l.value = ((a = (r = s.composedPath) == null ? void 0 : r.call(s)) == null ? void 0 : a[0]) || s.target);
@@ -908,15 +918,15 @@ function Xo(e, n, t = L(() => !0)) {
908
918
  t.value && (l.value = ((a = (r = s.composedPath) == null ? void 0 : r.call(s)) == null ? void 0 : a[0]) || s.target);
909
919
  }, !0), Ue("click", (s) => {
910
920
  vn() || l.value && (o(s, () => l.value), l.value = null);
911
- }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Qo("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
921
+ }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Ko("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
912
922
  }
913
923
  function Ft(e, n) {
914
924
  if (e) return e;
915
925
  let t = n ?? "button";
916
926
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
917
927
  }
918
- function Ko(e, n) {
919
- let t = O(Ft(e.value.type, e.value.as));
928
+ function tl(e, n) {
929
+ let t = $(Ft(e.value.type, e.value.as));
920
930
  return se(() => {
921
931
  t.value = Ft(e.value.type, e.value.as);
922
932
  }), fe(() => {
@@ -927,8 +937,8 @@ function Ko(e, n) {
927
937
  function jt(e) {
928
938
  return [e.screenX, e.screenY];
929
939
  }
930
- function el() {
931
- let e = O([-1, -1]);
940
+ function nl() {
941
+ let e = $([-1, -1]);
932
942
  return { wasMoved(n) {
933
943
  let t = jt(n);
934
944
  return e.value[0] === t[0] && e.value[1] === t[1] ? !1 : (e.value = t, !0);
@@ -936,17 +946,17 @@ function el() {
936
946
  e.value = jt(n);
937
947
  } };
938
948
  }
939
- function tl({ container: e, accept: n, walk: t, enabled: o }) {
949
+ function ol({ container: e, accept: n, walk: t, enabled: o }) {
940
950
  fe(() => {
941
951
  let l = e.value;
942
952
  if (!l || o !== void 0 && !o.value) return;
943
- let s = It(e);
953
+ let s = Lt(e);
944
954
  if (!s) return;
945
955
  let r = Object.assign((i) => n(i), { acceptNode: n }), a = s.createTreeWalker(l, NodeFilter.SHOW_ELEMENT, r, !1);
946
956
  for (; a.nextNode(); ) t(a.currentNode);
947
957
  });
948
958
  }
949
- var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), nl = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(nl || {});
959
+ var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), ll = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ll || {});
950
960
  function ye({ visible: e = !0, features: n = 0, ourProps: t, theirProps: o, ...l }) {
951
961
  var s;
952
962
  let r = hn(o, t), a = Object.assign(l, { props: r });
@@ -965,20 +975,20 @@ function ct({ props: e, attrs: n, slots: t, slot: o, name: l }) {
965
975
  var s, r;
966
976
  let { as: a, ...i } = ot(e, ["unmount", "static"]), u = (s = t.default) == null ? void 0 : s.call(t, o), c = {};
967
977
  if (o) {
968
- let d = !1, x = [];
969
- for (let [m, C] of Object.entries(o)) typeof C == "boolean" && (d = !0), C === !0 && x.push(m);
970
- d && (c["data-headlessui-state"] = x.join(" "));
978
+ let d = !1, w = [];
979
+ for (let [m, y] of Object.entries(o)) typeof y == "boolean" && (d = !0), y === !0 && w.push(m);
980
+ d && (c["data-headlessui-state"] = w.join(" "));
971
981
  }
972
982
  if (a === "template") {
973
983
  if (u = pn(u ?? []), Object.keys(i).length > 0 || Object.keys(n).length > 0) {
974
- let [d, ...x] = u ?? [];
975
- if (!ll(d) || x.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((b) => b.trim()).filter((b, I, $) => $.indexOf(b) === I).sort((b, I) => b.localeCompare(I)).map((b) => ` - ${b}`).join(`
976
- `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((b) => ` - ${b}`).join(`
984
+ let [d, ...w] = u ?? [];
985
+ if (!al(d) || w.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((x) => x.trim()).filter((x, O, D) => D.indexOf(x) === O).sort((x, O) => x.localeCompare(O)).map((x) => ` - ${x}`).join(`
986
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((x) => ` - ${x}`).join(`
977
987
  `)].join(`
978
988
  `));
979
- let m = hn((r = d.props) != null ? r : {}, i, c), C = sn(d, m, !0);
980
- for (let b in m) b.startsWith("on") && (C.props || (C.props = {}), C.props[b] = m[b]);
981
- return C;
989
+ let m = hn((r = d.props) != null ? r : {}, i, c), y = sn(d, m, !0);
990
+ for (let x in m) x.startsWith("on") && (y.props || (y.props = {}), y.props[x] = m[x]);
991
+ return y;
982
992
  }
983
993
  return Array.isArray(u) && u.length === 1 ? u[0] : u;
984
994
  }
@@ -1002,7 +1012,7 @@ function hn(...e) {
1002
1012
  } });
1003
1013
  return n;
1004
1014
  }
1005
- function ol(e) {
1015
+ function sl(e) {
1006
1016
  let n = Object.assign({}, e);
1007
1017
  for (let t in n) n[t] === void 0 && delete n[t];
1008
1018
  return n;
@@ -1012,11 +1022,11 @@ function ot(e, n = []) {
1012
1022
  for (let o of n) o in t && delete t[o];
1013
1023
  return t;
1014
1024
  }
1015
- function ll(e) {
1025
+ function al(e) {
1016
1026
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1017
1027
  }
1018
1028
  var mn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(mn || {});
1019
- let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1029
+ let rl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1020
1030
  return () => {
1021
1031
  var o;
1022
1032
  let { features: l, ...s } = e, r = { "aria-hidden": (l & 2) === 2 ? !0 : (o = s["aria-hidden"]) != null ? o : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
@@ -1024,27 +1034,27 @@ let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "d
1024
1034
  };
1025
1035
  } }), gn = Symbol("Context");
1026
1036
  var Re = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Re || {});
1027
- function al() {
1037
+ function il() {
1028
1038
  return le(gn, null);
1029
1039
  }
1030
- function rl(e) {
1040
+ function ul(e) {
1031
1041
  ce(gn, e);
1032
1042
  }
1033
1043
  var Q = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Q || {}), bn = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(bn || {});
1034
- function il(e) {
1044
+ function cl(e) {
1035
1045
  function n() {
1036
1046
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", n));
1037
1047
  }
1038
1048
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", n), n());
1039
1049
  }
1040
1050
  let ge = [];
1041
- il(() => {
1051
+ cl(() => {
1042
1052
  function e(n) {
1043
1053
  n.target instanceof HTMLElement && n.target !== document.body && ge[0] !== n.target && (ge.unshift(n.target), ge = ge.filter((t) => t != null && t.isConnected), ge.splice(10));
1044
1054
  }
1045
1055
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
1046
1056
  });
1047
- function ul(e) {
1057
+ function dl(e) {
1048
1058
  throw new Error("Unexpected object: " + e);
1049
1059
  }
1050
1060
  var q = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(q || {});
@@ -1077,7 +1087,7 @@ function Ht(e, n) {
1077
1087
  case 5:
1078
1088
  return null;
1079
1089
  default:
1080
- ul(e);
1090
+ dl(e);
1081
1091
  }
1082
1092
  }
1083
1093
  function Cn(e = {}, n = null, t = []) {
@@ -1091,10 +1101,10 @@ function yn(e, n, t) {
1091
1101
  if (Array.isArray(t)) for (let [o, l] of t.entries()) yn(e, xn(n, o.toString()), l);
1092
1102
  else t instanceof Date ? e.push([n, t.toISOString()]) : typeof t == "boolean" ? e.push([n, t ? "1" : "0"]) : typeof t == "string" ? e.push([n, t]) : typeof t == "number" ? e.push([n, `${t}`]) : t == null ? e.push([n, ""]) : Cn(t, n, e);
1093
1103
  }
1094
- function cl(e, n) {
1104
+ function fl(e, n) {
1095
1105
  return e === n;
1096
1106
  }
1097
- var dl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(dl || {}), fl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(fl || {}), vl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(vl || {});
1107
+ var vl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(vl || {}), pl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(pl || {}), hl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(hl || {});
1098
1108
  let wn = Symbol("ComboboxContext");
1099
1109
  function we(e) {
1100
1110
  let n = le(wn, null);
@@ -1104,20 +1114,20 @@ function we(e) {
1104
1114
  }
1105
1115
  return n;
1106
1116
  }
1107
- let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1117
+ let _n = Symbol("VirtualContext"), ml = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1108
1118
  let t = we("VirtualProvider"), o = L(() => {
1109
1119
  let a = N(t.optionsRef);
1110
1120
  if (!a) return { start: 0, end: 0 };
1111
1121
  let i = window.getComputedStyle(a);
1112
1122
  return { start: parseFloat(i.paddingBlockStart || i.paddingTop), end: parseFloat(i.paddingBlockEnd || i.paddingBottom) };
1113
- }), l = Ao(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1123
+ }), l = Do(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1114
1124
  return 40;
1115
1125
  }, getScrollElement() {
1116
1126
  return N(t.optionsRef);
1117
1127
  }, overscan: 12 }))), s = L(() => {
1118
1128
  var a;
1119
1129
  return (a = t.virtual.value) == null ? void 0 : a.options;
1120
- }), r = O(0);
1130
+ }), r = $(0);
1121
1131
  return F([s], () => {
1122
1132
  r.value += 1;
1123
1133
  }), ce(_n, t.virtual.value ? l : null), () => [Ve("div", { style: { position: "relative", width: "100%", height: `${l.value.getTotalSize()}px` }, ref: (a) => {
@@ -1126,45 +1136,45 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1126
1136
  t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
1127
1137
  }
1128
1138
  } }, l.value.getVirtualItems().map((a) => sn(n.default({ option: t.virtual.value.options[a.index], open: t.comboboxState.value === 0 })[0], { key: `${r.value}-${a.index}`, "data-index": a.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": a.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${a.start}px)`, overflowAnchor: "none" } })))];
1129
- } }), hl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1130
- let l = O(1), s = O(null), r = O(null), a = O(null), i = O(null), u = O({ static: !1, hold: !1 }), c = O([]), d = O(null), x = O(2), m = O(!1);
1131
- function C(v = (p) => p) {
1132
- let p = d.value !== null ? c.value[d.value] : null, k = v(c.value.slice()), A = k.length > 0 && k[0].dataRef.order.value !== null ? k.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Go(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1133
- return j === -1 && (j = null), { options: A, activeOptionIndex: j };
1139
+ } }), gl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1140
+ let l = $(1), s = $(null), r = $(null), a = $(null), i = $(null), u = $({ static: !1, hold: !1 }), c = $([]), d = $(null), w = $(2), m = $(!1);
1141
+ function y(v = (p) => p) {
1142
+ let p = d.value !== null ? c.value[d.value] : null, I = v(c.value.slice()), M = I.length > 0 && I[0].dataRef.order.value !== null ? I.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Yo(I, (H) => N(H.dataRef.domRef)), j = p ? M.indexOf(p) : null;
1143
+ return j === -1 && (j = null), { options: M, activeOptionIndex: j };
1134
1144
  }
1135
- let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Vo(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), y = L(() => $.value === void 0 ? ue(b.value, { 1: [], 0: void 0 }) : $.value), _ = null, T = null;
1136
- function V(v) {
1137
- return ue(b.value, { 0() {
1138
- return w == null ? void 0 : w(v);
1145
+ let x = L(() => e.multiple ? 1 : 0), O = L(() => e.nullable), [D, b] = Ro(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), g = L(() => D.value === void 0 ? ue(x.value, { 1: [], 0: void 0 }) : D.value), _ = null, T = null;
1146
+ function A(v) {
1147
+ return ue(x.value, { 0() {
1148
+ return b == null ? void 0 : b(v);
1139
1149
  }, 1: () => {
1140
- let p = ne(E.value.value).slice(), k = ne(v), A = p.findIndex((j) => E.compare(k, ne(j)));
1141
- return A === -1 ? p.push(k) : p.splice(A, 1), w == null ? void 0 : w(p);
1150
+ let p = ne(E.value.value).slice(), I = ne(v), M = p.findIndex((j) => E.compare(I, ne(j)));
1151
+ return M === -1 ? p.push(I) : p.splice(M, 1), b == null ? void 0 : b(p);
1142
1152
  } });
1143
1153
  }
1144
1154
  let S = L(() => {
1145
1155
  });
1146
1156
  F([S], ([v], [p]) => {
1147
1157
  if (E.virtual.value && v && p && d.value !== null) {
1148
- let k = v.indexOf(p[d.value]);
1149
- k !== -1 ? d.value = k : d.value = null;
1158
+ let I = v.indexOf(p[d.value]);
1159
+ I !== -1 ? d.value = I : d.value = null;
1150
1160
  }
1151
1161
  });
1152
- let E = { comboboxState: l, value: y, mode: b, compare(v, p) {
1162
+ let E = { comboboxState: l, value: g, mode: x, compare(v, p) {
1153
1163
  if (typeof e.by == "string") {
1154
- let k = e.by;
1155
- return (v == null ? void 0 : v[k]) === (p == null ? void 0 : p[k]);
1164
+ let I = e.by;
1165
+ return (v == null ? void 0 : v[I]) === (p == null ? void 0 : p[I]);
1156
1166
  }
1157
- return e.by === null ? cl(v, p) : e.by(v, p);
1167
+ return e.by === null ? fl(v, p) : e.by(v, p);
1158
1168
  }, calculateIndex(v) {
1159
1169
  return E.virtual.value ? e.by === null ? E.virtual.value.options.indexOf(v) : E.virtual.value.options.findIndex((p) => E.compare(p, v)) : c.value.findIndex((p) => E.compare(p.dataRef.value, v));
1160
- }, defaultValue: L(() => e.defaultValue), nullable: I, immediate: L(() => !1), virtual: L(() => null), inputRef: r, labelRef: s, buttonRef: a, optionsRef: i, disabled: L(() => e.disabled), options: c, change(v) {
1161
- w(v);
1170
+ }, defaultValue: L(() => e.defaultValue), nullable: O, immediate: L(() => !1), virtual: L(() => null), inputRef: r, labelRef: s, buttonRef: a, optionsRef: i, disabled: L(() => e.disabled), options: c, change(v) {
1171
+ b(v);
1162
1172
  }, activeOptionIndex: L(() => {
1163
1173
  if (m.value && d.value === null && (E.virtual.value ? E.virtual.value.options.length > 0 : c.value.length > 0)) {
1164
1174
  if (E.virtual.value) {
1165
- let p = E.virtual.value.options.findIndex((k) => {
1166
- var A;
1167
- return !((A = E.virtual.value) != null && A.disabled(k));
1175
+ let p = E.virtual.value.options.findIndex((I) => {
1176
+ var M;
1177
+ return !((M = E.virtual.value) != null && M.disabled(I));
1168
1178
  });
1169
1179
  if (p !== -1) return p;
1170
1180
  }
@@ -1172,7 +1182,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1172
1182
  if (v !== -1) return v;
1173
1183
  }
1174
1184
  return d.value;
1175
- }), activationTrigger: x, optionsPropsRef: u, closeCombobox() {
1185
+ }), activationTrigger: w, optionsPropsRef: u, closeCombobox() {
1176
1186
  m.value = !1, !e.disabled && l.value !== 1 && (l.value = 1, d.value = null);
1177
1187
  }, openCombobox() {
1178
1188
  if (m.value = !0, !e.disabled && l.value !== 0) {
@@ -1183,8 +1193,8 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1183
1193
  l.value = 0;
1184
1194
  }
1185
1195
  }, setActivationTrigger(v) {
1186
- x.value = v;
1187
- }, goToOption(v, p, k) {
1196
+ w.value = v;
1197
+ }, goToOption(v, p, I) {
1188
1198
  m.value = !1, _ !== null && cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
1189
1199
  if (e.disabled || i.value && !u.value.static && l.value === 1) return;
1190
1200
  if (E.virtual.value) {
@@ -1196,78 +1206,78 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1196
1206
  })) != null ? K : null;
1197
1207
  }, resolveDisabled: (H) => E.virtual.value.disabled(H), resolveId() {
1198
1208
  throw new Error("Function not implemented.");
1199
- } }), x.value = k ?? 2;
1209
+ } }), w.value = I ?? 2;
1200
1210
  return;
1201
1211
  }
1202
- let A = C();
1203
- if (A.activeOptionIndex === null) {
1204
- let H = A.options.findIndex((K) => !K.dataRef.disabled);
1205
- H !== -1 && (A.activeOptionIndex = H);
1212
+ let M = y();
1213
+ if (M.activeOptionIndex === null) {
1214
+ let H = M.options.findIndex((K) => !K.dataRef.disabled);
1215
+ H !== -1 && (M.activeOptionIndex = H);
1206
1216
  }
1207
- let j = v === q.Specific ? p : Ht({ focus: v }, { resolveItems: () => A.options, resolveActiveIndex: () => A.activeOptionIndex, resolveId: (H) => H.id, resolveDisabled: (H) => H.dataRef.disabled });
1208
- d.value = j, x.value = k ?? 2, c.value = A.options;
1217
+ let j = v === q.Specific ? p : Ht({ focus: v }, { resolveItems: () => M.options, resolveActiveIndex: () => M.activeOptionIndex, resolveId: (H) => H.id, resolveDisabled: (H) => H.dataRef.disabled });
1218
+ d.value = j, w.value = I ?? 2, c.value = M.options;
1209
1219
  });
1210
1220
  }, selectOption(v) {
1211
- let p = c.value.find((A) => A.id === v);
1221
+ let p = c.value.find((M) => M.id === v);
1212
1222
  if (!p) return;
1213
- let { dataRef: k } = p;
1214
- V(k.value);
1223
+ let { dataRef: I } = p;
1224
+ A(I.value);
1215
1225
  }, selectActiveOption() {
1216
1226
  if (E.activeOptionIndex.value !== null) {
1217
- if (E.virtual.value) V(E.virtual.value.options[E.activeOptionIndex.value]);
1227
+ if (E.virtual.value) A(E.virtual.value.options[E.activeOptionIndex.value]);
1218
1228
  else {
1219
1229
  let { dataRef: v } = c.value[E.activeOptionIndex.value];
1220
- V(v.value);
1230
+ A(v.value);
1221
1231
  }
1222
1232
  E.goToOption(q.Specific, E.activeOptionIndex.value);
1223
1233
  }
1224
1234
  }, registerOption(v, p) {
1225
- let k = an({ id: v, dataRef: p });
1235
+ let I = an({ id: v, dataRef: p });
1226
1236
  if (E.virtual.value) {
1227
- c.value.push(k);
1237
+ c.value.push(I);
1228
1238
  return;
1229
1239
  }
1230
1240
  T && cancelAnimationFrame(T);
1231
- let A = C((j) => (j.push(k), j));
1232
- d.value === null && E.isSelected(p.value.value) && (A.activeOptionIndex = A.options.indexOf(k)), c.value = A.options, d.value = A.activeOptionIndex, x.value = 2, A.options.some((j) => !N(j.dataRef.domRef)) && (T = requestAnimationFrame(() => {
1233
- let j = C();
1241
+ let M = y((j) => (j.push(I), j));
1242
+ d.value === null && E.isSelected(p.value.value) && (M.activeOptionIndex = M.options.indexOf(I)), c.value = M.options, d.value = M.activeOptionIndex, w.value = 2, M.options.some((j) => !N(j.dataRef.domRef)) && (T = requestAnimationFrame(() => {
1243
+ let j = y();
1234
1244
  c.value = j.options, d.value = j.activeOptionIndex;
1235
1245
  }));
1236
1246
  }, unregisterOption(v, p) {
1237
1247
  if (_ !== null && cancelAnimationFrame(_), p && (m.value = !0), E.virtual.value) {
1238
- c.value = c.value.filter((A) => A.id !== v);
1248
+ c.value = c.value.filter((M) => M.id !== v);
1239
1249
  return;
1240
1250
  }
1241
- let k = C((A) => {
1242
- let j = A.findIndex((H) => H.id === v);
1243
- return j !== -1 && A.splice(j, 1), A;
1251
+ let I = y((M) => {
1252
+ let j = M.findIndex((H) => H.id === v);
1253
+ return j !== -1 && M.splice(j, 1), M;
1244
1254
  });
1245
- c.value = k.options, d.value = k.activeOptionIndex, x.value = 2;
1255
+ c.value = I.options, d.value = I.activeOptionIndex, w.value = 2;
1246
1256
  }, isSelected(v) {
1247
- return ue(b.value, { 0: () => E.compare(ne(E.value.value), ne(v)), 1: () => ne(E.value.value).some((p) => E.compare(ne(p), ne(v))) });
1257
+ return ue(x.value, { 0: () => E.compare(ne(E.value.value), ne(v)), 1: () => ne(E.value.value).some((p) => E.compare(ne(p), ne(v))) });
1248
1258
  }, isActive(v) {
1249
1259
  return d.value === E.calculateIndex(v);
1250
1260
  } };
1251
- Xo([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), rl(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1252
- let D = L(() => {
1261
+ el([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), ul(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1262
+ let V = L(() => {
1253
1263
  var v;
1254
1264
  return (v = N(r)) == null ? void 0 : v.closest("form");
1255
1265
  });
1256
1266
  return se(() => {
1257
- F([D], () => {
1258
- if (!D.value || e.defaultValue === void 0) return;
1267
+ F([V], () => {
1268
+ if (!V.value || e.defaultValue === void 0) return;
1259
1269
  function v() {
1260
1270
  E.change(e.defaultValue);
1261
1271
  }
1262
- return D.value.addEventListener("reset", v), () => {
1272
+ return V.value.addEventListener("reset", v), () => {
1263
1273
  var p;
1264
- (p = D.value) == null || p.removeEventListener("reset", v);
1274
+ (p = V.value) == null || p.removeEventListener("reset", v);
1265
1275
  };
1266
1276
  }, { immediate: !0 });
1267
1277
  }), () => {
1268
- var v, p, k;
1269
- let { name: A, disabled: j, form: H, ...K } = e, ee = { open: l.value === 0, disabled: j, activeIndex: E.activeOptionIndex.value, activeOption: E.activeOptionIndex.value === null ? null : E.virtual.value ? E.virtual.value.options[(v = E.activeOptionIndex.value) != null ? v : 0] : (k = (p = E.options.value[E.activeOptionIndex.value]) == null ? void 0 : p.dataRef.value) != null ? k : null, value: y.value };
1270
- return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(sl, ol({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1278
+ var v, p, I;
1279
+ let { name: M, disabled: j, form: H, ...K } = e, ee = { open: l.value === 0, disabled: j, activeIndex: E.activeOptionIndex.value, activeOption: E.activeOptionIndex.value === null ? null : E.virtual.value ? E.virtual.value.options[(v = E.activeOptionIndex.value) != null ? v : 0] : (I = (p = E.options.value[E.activeOptionIndex.value]) == null ? void 0 : p.dataRef.value) != null ? I : null, value: g.value };
1280
+ return Ve(z, [...M != null && g.value != null ? Cn({ [M]: g.value }).map(([Z, zn]) => Ve(rl, sl({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1271
1281
  };
1272
1282
  } });
1273
1283
  pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t }) {
@@ -1282,7 +1292,7 @@ pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
1282
1292
  return ye({ ourProps: u, theirProps: i, slot: a, attrs: n, slots: t, name: "ComboboxLabel" });
1283
1293
  };
1284
1294
  } });
1285
- let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1295
+ let bl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1286
1296
  var l;
1287
1297
  let s = (l = e.id) != null ? l : `headlessui-combobox-button-${je()}`, r = we("ComboboxButton");
1288
1298
  o({ el: r.buttonRef, $el: r.buttonRef });
@@ -1317,15 +1327,15 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1317
1327
  return;
1318
1328
  }
1319
1329
  }
1320
- let u = Ko(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1330
+ let u = tl(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1321
1331
  return () => {
1322
1332
  var c, d;
1323
- let x = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...m } = e, C = { ref: r.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = N(r.optionsRef)) == null ? void 0 : c.id, "aria-expanded": r.comboboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(d = N(r.labelRef)) == null ? void 0 : d.id, s].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: i, onClick: a };
1324
- return ye({ ourProps: C, theirProps: m, slot: x, attrs: n, slots: t, name: "ComboboxButton" });
1333
+ let w = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...m } = e, y = { ref: r.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = N(r.optionsRef)) == null ? void 0 : c.id, "aria-expanded": r.comboboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(d = N(r.labelRef)) == null ? void 0 : d.id, s].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: i, onClick: a };
1334
+ return ye({ ourProps: y, theirProps: m, slot: w, attrs: n, slots: t, name: "ComboboxButton" });
1325
1335
  };
1326
- } }), gl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1336
+ } }), Cl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1327
1337
  var s;
1328
- let r = (s = e.id) != null ? s : `headlessui-combobox-input-${je()}`, a = we("ComboboxInput"), i = L(() => It(N(a.inputRef))), u = { value: !1 };
1338
+ let r = (s = e.id) != null ? s : `headlessui-combobox-input-${je()}`, a = we("ComboboxInput"), i = L(() => Lt(N(a.inputRef))), u = { value: !1 };
1329
1339
  l({ el: a.inputRef, $el: a.inputRef });
1330
1340
  function c() {
1331
1341
  a.change(null);
@@ -1334,45 +1344,45 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1334
1344
  }
1335
1345
  let d = L(() => {
1336
1346
  var T;
1337
- let V = a.value.value;
1338
- return N(a.inputRef) ? typeof e.displayValue < "u" && V !== void 0 ? (T = e.displayValue(V)) != null ? T : "" : typeof V == "string" ? V : "" : "";
1347
+ let A = a.value.value;
1348
+ return N(a.inputRef) ? typeof e.displayValue < "u" && A !== void 0 ? (T = e.displayValue(A)) != null ? T : "" : typeof A == "string" ? A : "" : "";
1339
1349
  });
1340
1350
  se(() => {
1341
- F([d, a.comboboxState, i], ([T, V], [S, E]) => {
1351
+ F([d, a.comboboxState, i], ([T, A], [S, E]) => {
1342
1352
  if (u.value) return;
1343
- let D = N(a.inputRef);
1344
- D && ((E === 0 && V === 1 || T !== S) && (D.value = T), requestAnimationFrame(() => {
1353
+ let V = N(a.inputRef);
1354
+ V && ((E === 0 && A === 1 || T !== S) && (V.value = T), requestAnimationFrame(() => {
1345
1355
  var v;
1346
- if (u.value || !D || ((v = i.value) == null ? void 0 : v.activeElement) !== D) return;
1347
- let { selectionStart: p, selectionEnd: k } = D;
1348
- Math.abs((k ?? 0) - (p ?? 0)) === 0 && p === 0 && D.setSelectionRange(D.value.length, D.value.length);
1356
+ if (u.value || !V || ((v = i.value) == null ? void 0 : v.activeElement) !== V) return;
1357
+ let { selectionStart: p, selectionEnd: I } = V;
1358
+ Math.abs((I ?? 0) - (p ?? 0)) === 0 && p === 0 && V.setSelectionRange(V.value.length, V.value.length);
1349
1359
  }));
1350
- }, { immediate: !0 }), F([a.comboboxState], ([T], [V]) => {
1351
- if (T === 0 && V === 1) {
1360
+ }, { immediate: !0 }), F([a.comboboxState], ([T], [A]) => {
1361
+ if (T === 0 && A === 1) {
1352
1362
  if (u.value) return;
1353
1363
  let S = N(a.inputRef);
1354
1364
  if (!S) return;
1355
- let E = S.value, { selectionStart: D, selectionEnd: v, selectionDirection: p } = S;
1356
- S.value = "", S.value = E, p !== null ? S.setSelectionRange(D, v, p) : S.setSelectionRange(D, v);
1365
+ let E = S.value, { selectionStart: V, selectionEnd: v, selectionDirection: p } = S;
1366
+ S.value = "", S.value = E, p !== null ? S.setSelectionRange(V, v, p) : S.setSelectionRange(V, v);
1357
1367
  }
1358
1368
  });
1359
1369
  });
1360
- let x = O(!1);
1370
+ let w = $(!1);
1361
1371
  function m() {
1362
- x.value = !0;
1372
+ w.value = !0;
1363
1373
  }
1364
- function C() {
1374
+ function y() {
1365
1375
  Qe().nextFrame(() => {
1366
- x.value = !1;
1376
+ w.value = !1;
1367
1377
  });
1368
1378
  }
1369
- let b = Po();
1370
- function I(T) {
1371
- switch (u.value = !0, b(() => {
1379
+ let x = Bo();
1380
+ function O(T) {
1381
+ switch (u.value = !0, x(() => {
1372
1382
  u.value = !1;
1373
1383
  }), T.key) {
1374
1384
  case Q.Enter:
1375
- if (u.value = !1, a.comboboxState.value !== 0 || x.value) return;
1385
+ if (u.value = !1, a.comboboxState.value !== 0 || w.value) return;
1376
1386
  if (T.preventDefault(), T.stopPropagation(), a.activeOptionIndex.value === null) {
1377
1387
  a.closeCombobox();
1378
1388
  return;
@@ -1407,39 +1417,39 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1407
1417
  break;
1408
1418
  }
1409
1419
  }
1410
- function $(T) {
1420
+ function D(T) {
1411
1421
  n("change", T), a.nullable.value && a.mode.value === 0 && T.target.value === "" && c(), a.openCombobox();
1412
1422
  }
1413
- function w(T) {
1414
- var V, S, E;
1415
- let D = (V = T.relatedTarget) != null ? V : ge.find((v) => v !== T.currentTarget);
1416
- if (u.value = !1, !((S = N(a.optionsRef)) != null && S.contains(D)) && !((E = N(a.buttonRef)) != null && E.contains(D)) && a.comboboxState.value === 0) return T.preventDefault(), a.mode.value === 0 && (a.nullable.value && a.value.value === null ? c() : a.activationTrigger.value !== 1 && a.selectActiveOption()), a.closeCombobox();
1423
+ function b(T) {
1424
+ var A, S, E;
1425
+ let V = (A = T.relatedTarget) != null ? A : ge.find((v) => v !== T.currentTarget);
1426
+ if (u.value = !1, !((S = N(a.optionsRef)) != null && S.contains(V)) && !((E = N(a.buttonRef)) != null && E.contains(V)) && a.comboboxState.value === 0) return T.preventDefault(), a.mode.value === 0 && (a.nullable.value && a.value.value === null ? c() : a.activationTrigger.value !== 1 && a.selectActiveOption()), a.closeCombobox();
1417
1427
  }
1418
- function y(T) {
1419
- var V, S, E;
1420
- let D = (V = T.relatedTarget) != null ? V : ge.find((v) => v !== T.currentTarget);
1421
- (S = N(a.buttonRef)) != null && S.contains(D) || (E = N(a.optionsRef)) != null && E.contains(D) || a.disabled.value || a.immediate.value && a.comboboxState.value !== 0 && (a.openCombobox(), Qe().nextFrame(() => {
1428
+ function g(T) {
1429
+ var A, S, E;
1430
+ let V = (A = T.relatedTarget) != null ? A : ge.find((v) => v !== T.currentTarget);
1431
+ (S = N(a.buttonRef)) != null && S.contains(V) || (E = N(a.optionsRef)) != null && E.contains(V) || a.disabled.value || a.immediate.value && a.comboboxState.value !== 0 && (a.openCombobox(), Qe().nextFrame(() => {
1422
1432
  a.setActivationTrigger(1);
1423
1433
  }));
1424
1434
  }
1425
1435
  let _ = L(() => {
1426
- var T, V, S, E;
1427
- return (E = (S = (V = e.defaultValue) != null ? V : a.defaultValue.value !== void 0 ? (T = e.displayValue) == null ? void 0 : T.call(e, a.defaultValue.value) : null) != null ? S : a.defaultValue.value) != null ? E : "";
1436
+ var T, A, S, E;
1437
+ return (E = (S = (A = e.defaultValue) != null ? A : a.defaultValue.value !== void 0 ? (T = e.displayValue) == null ? void 0 : T.call(e, a.defaultValue.value) : null) != null ? S : a.defaultValue.value) != null ? E : "";
1428
1438
  });
1429
1439
  return () => {
1430
- var T, V, S, E, D, v, p;
1431
- let k = { open: a.comboboxState.value === 0 }, { displayValue: A, onChange: j, ...H } = e, K = { "aria-controls": (T = a.optionsRef.value) == null ? void 0 : T.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (V = a.options.value.find((ee) => !a.virtual.value.disabled(ee.dataRef.value) && a.compare(ee.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : V.id : (S = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (v = (E = N(a.labelRef)) == null ? void 0 : E.id) != null ? v : (D = N(a.buttonRef)) == null ? void 0 : D.id, "aria-autocomplete": "list", id: r, onCompositionstart: m, onCompositionend: C, onKeydown: I, onInput: $, onFocus: y, onBlur: w, role: "combobox", type: (p = t.type) != null ? p : "text", tabIndex: 0, ref: a.inputRef, defaultValue: _.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1432
- return ye({ ourProps: K, theirProps: H, slot: k, attrs: t, slots: o, features: De.RenderStrategy | De.Static, name: "ComboboxInput" });
1440
+ var T, A, S, E, V, v, p;
1441
+ let I = { open: a.comboboxState.value === 0 }, { displayValue: M, onChange: j, ...H } = e, K = { "aria-controls": (T = a.optionsRef.value) == null ? void 0 : T.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (A = a.options.value.find((ee) => !a.virtual.value.disabled(ee.dataRef.value) && a.compare(ee.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : A.id : (S = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (v = (E = N(a.labelRef)) == null ? void 0 : E.id) != null ? v : (V = N(a.buttonRef)) == null ? void 0 : V.id, "aria-autocomplete": "list", id: r, onCompositionstart: m, onCompositionend: y, onKeydown: O, onInput: D, onFocus: g, onBlur: b, role: "combobox", type: (p = t.type) != null ? p : "text", tabIndex: 0, ref: a.inputRef, defaultValue: _.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1442
+ return ye({ ourProps: K, theirProps: H, slot: I, attrs: t, slots: o, features: De.RenderStrategy | De.Static, name: "ComboboxInput" });
1433
1443
  };
1434
- } }), bl = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1444
+ } }), xl = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1435
1445
  let l = we("ComboboxOptions"), s = `headlessui-combobox-options-${je()}`;
1436
1446
  o({ el: l.optionsRef, $el: l.optionsRef }), fe(() => {
1437
1447
  l.optionsPropsRef.value.static = e.static;
1438
1448
  }), fe(() => {
1439
1449
  l.optionsPropsRef.value.hold = e.hold;
1440
1450
  });
1441
- let r = al(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1442
- tl({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1451
+ let r = il(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1452
+ ol({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1443
1453
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1444
1454
  }, walk(u) {
1445
1455
  u.setAttribute("role", "none");
@@ -1449,58 +1459,58 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1449
1459
  }
1450
1460
  return () => {
1451
1461
  var u, c, d;
1452
- let x = { open: l.comboboxState.value === 0 }, m = { "aria-labelledby": (d = (u = N(l.labelRef)) == null ? void 0 : u.id) != null ? d : (c = N(l.buttonRef)) == null ? void 0 : c.id, id: s, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: i }, C = ot(e, ["hold"]);
1453
- return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(pl, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1462
+ let w = { open: l.comboboxState.value === 0 }, m = { "aria-labelledby": (d = (u = N(l.labelRef)) == null ? void 0 : u.id) != null ? d : (c = N(l.buttonRef)) == null ? void 0 : c.id, id: s, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: i }, y = ot(e, ["hold"]);
1463
+ return ye({ ourProps: m, theirProps: y, slot: w, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(ml, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1454
1464
  };
1455
- } }), Cl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1456
- let l = we("ComboboxOption"), s = `headlessui-combobox-option-${je()}`, r = O(null), a = L(() => e.disabled);
1465
+ } }), yl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1466
+ let l = we("ComboboxOption"), s = `headlessui-combobox-option-${je()}`, r = $(null), a = L(() => e.disabled);
1457
1467
  o({ el: r, $el: r });
1458
1468
  let i = L(() => {
1459
- var w;
1460
- return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((w = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : w.id) === s;
1469
+ var b;
1470
+ return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((b = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : b.id) === s;
1461
1471
  }), u = L(() => l.isSelected(e.value)), c = le(_n, null), d = L(() => ({ disabled: e.disabled, value: e.value, domRef: r, order: L(() => e.order) }));
1462
1472
  se(() => l.registerOption(s, d)), Fe(() => l.unregisterOption(s, i.value)), fe(() => {
1463
- let w = N(r);
1464
- w && (c == null || c.value.measureElement(w));
1473
+ let b = N(r);
1474
+ b && (c == null || c.value.measureElement(b));
1465
1475
  }), fe(() => {
1466
1476
  l.comboboxState.value === 0 && i.value && (l.virtual.value || l.activationTrigger.value !== 0 && X(() => {
1467
- var w, y;
1468
- return (y = (w = N(r)) == null ? void 0 : w.scrollIntoView) == null ? void 0 : y.call(w, { block: "nearest" });
1477
+ var b, g;
1478
+ return (g = (b = N(r)) == null ? void 0 : b.scrollIntoView) == null ? void 0 : g.call(b, { block: "nearest" });
1469
1479
  }));
1470
1480
  });
1471
- function x(w) {
1472
- w.preventDefault(), w.button === bn.Left && (a.value || (l.selectOption(s), vn() || requestAnimationFrame(() => {
1473
- var y;
1474
- return (y = N(l.inputRef)) == null ? void 0 : y.focus({ preventScroll: !0 });
1481
+ function w(b) {
1482
+ b.preventDefault(), b.button === bn.Left && (a.value || (l.selectOption(s), vn() || requestAnimationFrame(() => {
1483
+ var g;
1484
+ return (g = N(l.inputRef)) == null ? void 0 : g.focus({ preventScroll: !0 });
1475
1485
  }), l.mode.value === 0 && l.closeCombobox()));
1476
1486
  }
1477
1487
  function m() {
1478
- var w;
1479
- if (e.disabled || (w = l.virtual.value) != null && w.disabled(e.value)) return l.goToOption(q.Nothing);
1480
- let y = l.calculateIndex(e.value);
1481
- l.goToOption(q.Specific, y);
1488
+ var b;
1489
+ if (e.disabled || (b = l.virtual.value) != null && b.disabled(e.value)) return l.goToOption(q.Nothing);
1490
+ let g = l.calculateIndex(e.value);
1491
+ l.goToOption(q.Specific, g);
1482
1492
  }
1483
- let C = el();
1484
- function b(w) {
1485
- C.update(w);
1493
+ let y = nl();
1494
+ function x(b) {
1495
+ y.update(b);
1486
1496
  }
1487
- function I(w) {
1488
- var y;
1489
- if (!C.wasMoved(w) || e.disabled || (y = l.virtual.value) != null && y.disabled(e.value) || i.value) return;
1497
+ function O(b) {
1498
+ var g;
1499
+ if (!y.wasMoved(b) || e.disabled || (g = l.virtual.value) != null && g.disabled(e.value) || i.value) return;
1490
1500
  let _ = l.calculateIndex(e.value);
1491
1501
  l.goToOption(q.Specific, _, 0);
1492
1502
  }
1493
- function $(w) {
1494
- var y;
1495
- C.wasMoved(w) && (e.disabled || (y = l.virtual.value) != null && y.disabled(e.value) || i.value && (l.optionsPropsRef.value.hold || l.goToOption(q.Nothing)));
1503
+ function D(b) {
1504
+ var g;
1505
+ y.wasMoved(b) && (e.disabled || (g = l.virtual.value) != null && g.disabled(e.value) || i.value && (l.optionsPropsRef.value.hold || l.goToOption(q.Nothing)));
1496
1506
  }
1497
1507
  return () => {
1498
- let { disabled: w } = e, y = { active: i.value, selected: u.value, disabled: w }, _ = { id: s, ref: r, role: "option", tabIndex: w === !0 ? void 0 : -1, "aria-disabled": w === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: x, onFocus: m, onPointerenter: b, onMouseenter: b, onPointermove: I, onMousemove: I, onPointerleave: $, onMouseleave: $ }, T = ot(e, ["order", "value"]);
1499
- return ye({ ourProps: _, theirProps: T, slot: y, attrs: t, slots: n, name: "ComboboxOption" });
1508
+ let { disabled: b } = e, g = { active: i.value, selected: u.value, disabled: b }, _ = { id: s, ref: r, role: "option", tabIndex: b === !0 ? void 0 : -1, "aria-disabled": b === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: w, onFocus: m, onPointerenter: x, onMouseenter: x, onPointermove: O, onMousemove: O, onPointerleave: D, onMouseleave: D }, T = ot(e, ["order", "value"]);
1509
+ return ye({ ourProps: _, theirProps: T, slot: g, attrs: t, slots: n, name: "ComboboxOption" });
1500
1510
  };
1501
1511
  } });
1502
- function xl(e, n) {
1503
- return h(), g("svg", {
1512
+ function wl(e, n) {
1513
+ return h(), C("svg", {
1504
1514
  xmlns: "http://www.w3.org/2000/svg",
1505
1515
  viewBox: "0 0 20 20",
1506
1516
  fill: "currentColor",
@@ -1514,8 +1524,8 @@ function xl(e, n) {
1514
1524
  })
1515
1525
  ]);
1516
1526
  }
1517
- function yl(e, n) {
1518
- return h(), g("svg", {
1527
+ function _l(e, n) {
1528
+ return h(), C("svg", {
1519
1529
  xmlns: "http://www.w3.org/2000/svg",
1520
1530
  viewBox: "0 0 20 20",
1521
1531
  fill: "currentColor",
@@ -1529,8 +1539,8 @@ function yl(e, n) {
1529
1539
  })
1530
1540
  ]);
1531
1541
  }
1532
- function wl(e, n) {
1533
- return h(), g("svg", {
1542
+ function Tl(e, n) {
1543
+ return h(), C("svg", {
1534
1544
  xmlns: "http://www.w3.org/2000/svg",
1535
1545
  viewBox: "0 0 20 20",
1536
1546
  fill: "currentColor",
@@ -1554,22 +1564,22 @@ function dt(e, n) {
1554
1564
  }
1555
1565
  delete e[n];
1556
1566
  }
1557
- function _l() {
1567
+ function Sl() {
1558
1568
  return Tn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1559
1569
  }
1560
1570
  function Tn() {
1561
1571
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1562
1572
  }
1563
- const Tl = typeof Proxy == "function", Sl = "devtools-plugin:setup", El = "plugin:settings:set";
1573
+ const El = typeof Proxy == "function", $l = "devtools-plugin:setup", Ol = "plugin:settings:set";
1564
1574
  let _e, pt;
1565
- function $l() {
1575
+ function Ll() {
1566
1576
  var e;
1567
1577
  return _e !== void 0 || (typeof window < "u" && window.performance ? (_e = !0, pt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (_e = !0, pt = globalThis.perf_hooks.performance) : _e = !1), _e;
1568
1578
  }
1569
- function Ol() {
1570
- return $l() ? pt.now() : Date.now();
1579
+ function Il() {
1580
+ return Ll() ? pt.now() : Date.now();
1571
1581
  }
1572
- class Il {
1582
+ class kl {
1573
1583
  constructor(n, t) {
1574
1584
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = n, this.hook = t;
1575
1585
  const o = {};
@@ -1597,9 +1607,9 @@ class Il {
1597
1607
  s = r;
1598
1608
  },
1599
1609
  now() {
1600
- return Ol();
1610
+ return Il();
1601
1611
  }
1602
- }, t && t.on(El, (r, a) => {
1612
+ }, t && t.on(Ol, (r, a) => {
1603
1613
  r === this.plugin.id && this.fallbacks.setSettings(a);
1604
1614
  }), this.proxiedOn = new Proxy({}, {
1605
1615
  get: (r, a) => this.target ? this.target.on[a] : (...i) => {
@@ -1632,11 +1642,11 @@ class Il {
1632
1642
  }
1633
1643
  }
1634
1644
  function Sn(e, n) {
1635
- const t = e, o = Tn(), l = _l(), s = Tl && t.enableEarlyProxy;
1645
+ const t = e, o = Tn(), l = Sl(), s = El && t.enableEarlyProxy;
1636
1646
  if (l && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1637
- l.emit(Sl, e, n);
1647
+ l.emit($l, e, n);
1638
1648
  else {
1639
- const r = s ? new Il(t, l) : null;
1649
+ const r = s ? new kl(t, l) : null;
1640
1650
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1641
1651
  pluginDescriptor: t,
1642
1652
  setupFn: n,
@@ -1662,13 +1672,13 @@ var ae;
1662
1672
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1663
1673
  })(ae || (ae = {}));
1664
1674
  const lt = typeof window < "u", Ae = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && lt, zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1665
- function Ll(e, { autoBom: n = !1 } = {}) {
1675
+ function Ml(e, { autoBom: n = !1 } = {}) {
1666
1676
  return n && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
1667
1677
  }
1668
- function Lt(e, n, t) {
1678
+ function It(e, n, t) {
1669
1679
  const o = new XMLHttpRequest();
1670
1680
  o.open("GET", e), o.responseType = "blob", o.onload = function() {
1671
- In(o.response, n, t);
1681
+ Ln(o.response, n, t);
1672
1682
  }, o.onerror = function() {
1673
1683
  console.error("could not download file");
1674
1684
  }, o.send();
@@ -1690,29 +1700,29 @@ function Ge(e) {
1690
1700
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
1691
1701
  }
1692
1702
  }
1693
- const Je = typeof navigator == "object" ? navigator : { userAgent: "" }, On = /Macintosh/.test(Je.userAgent) && /AppleWebKit/.test(Je.userAgent) && !/Safari/.test(Je.userAgent), In = lt ? (
1703
+ const Je = typeof navigator == "object" ? navigator : { userAgent: "" }, On = /Macintosh/.test(Je.userAgent) && /AppleWebKit/.test(Je.userAgent) && !/Safari/.test(Je.userAgent), Ln = lt ? (
1694
1704
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1695
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? kl : (
1705
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? Al : (
1696
1706
  // Use msSaveOrOpenBlob as a second approach
1697
- "msSaveOrOpenBlob" in Je ? Ml : (
1707
+ "msSaveOrOpenBlob" in Je ? Vl : (
1698
1708
  // Fallback to using FileReader and a popup
1699
- Al
1709
+ Dl
1700
1710
  )
1701
1711
  )
1702
1712
  ) : () => {
1703
1713
  };
1704
- function kl(e, n = "download", t) {
1714
+ function Al(e, n = "download", t) {
1705
1715
  const o = document.createElement("a");
1706
- o.download = n, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? $n(o.href) ? Lt(e, n, t) : (o.target = "_blank", Ge(o)) : Ge(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
1716
+ o.download = n, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? $n(o.href) ? It(e, n, t) : (o.target = "_blank", Ge(o)) : Ge(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
1707
1717
  URL.revokeObjectURL(o.href);
1708
1718
  }, 4e4), setTimeout(function() {
1709
1719
  Ge(o);
1710
1720
  }, 0));
1711
1721
  }
1712
- function Ml(e, n = "download", t) {
1722
+ function Vl(e, n = "download", t) {
1713
1723
  if (typeof e == "string")
1714
1724
  if ($n(e))
1715
- Lt(e, n, t);
1725
+ It(e, n, t);
1716
1726
  else {
1717
1727
  const o = document.createElement("a");
1718
1728
  o.href = e, o.target = "_blank", setTimeout(function() {
@@ -1720,11 +1730,11 @@ function Ml(e, n = "download", t) {
1720
1730
  });
1721
1731
  }
1722
1732
  else
1723
- navigator.msSaveOrOpenBlob(Ll(e, t), n);
1733
+ navigator.msSaveOrOpenBlob(Ml(e, t), n);
1724
1734
  }
1725
- function Al(e, n, t, o) {
1735
+ function Dl(e, n, t, o) {
1726
1736
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
1727
- return Lt(e, n, t);
1737
+ return It(e, n, t);
1728
1738
  const l = e.type === "application/octet-stream", s = /constructor/i.test(String(zt.HTMLElement)) || "safari" in zt, r = /CriOS\/[\d]+/.test(navigator.userAgent);
1729
1739
  if ((r || l && s || On) && typeof FileReader < "u") {
1730
1740
  const a = new FileReader();
@@ -1748,15 +1758,15 @@ function U(e, n) {
1748
1758
  function kt(e) {
1749
1759
  return "_a" in e && "install" in e;
1750
1760
  }
1751
- function Ln() {
1761
+ function In() {
1752
1762
  if (!("clipboard" in navigator))
1753
1763
  return U("Your browser doesn't support the Clipboard API", "error"), !0;
1754
1764
  }
1755
1765
  function kn(e) {
1756
1766
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1757
1767
  }
1758
- async function Vl(e) {
1759
- if (!Ln())
1768
+ async function Rl(e) {
1769
+ if (!In())
1760
1770
  try {
1761
1771
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), U("Global state copied to clipboard.");
1762
1772
  } catch (n) {
@@ -1765,8 +1775,8 @@ async function Vl(e) {
1765
1775
  U("Failed to serialize the state. Check the console for more details.", "error"), console.error(n);
1766
1776
  }
1767
1777
  }
1768
- async function Dl(e) {
1769
- if (!Ln())
1778
+ async function Pl(e) {
1779
+ if (!In())
1770
1780
  try {
1771
1781
  Mn(e, JSON.parse(await navigator.clipboard.readText())), U("Global state pasted from clipboard.");
1772
1782
  } catch (n) {
@@ -1775,9 +1785,9 @@ async function Dl(e) {
1775
1785
  U("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(n);
1776
1786
  }
1777
1787
  }
1778
- async function Rl(e) {
1788
+ async function Nl(e) {
1779
1789
  try {
1780
- In(new Blob([JSON.stringify(e.state.value)], {
1790
+ Ln(new Blob([JSON.stringify(e.state.value)], {
1781
1791
  type: "text/plain;charset=utf-8"
1782
1792
  }), "pinia-state.json");
1783
1793
  } catch (n) {
@@ -1785,7 +1795,7 @@ async function Rl(e) {
1785
1795
  }
1786
1796
  }
1787
1797
  let ie;
1788
- function Pl() {
1798
+ function Bl() {
1789
1799
  ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
1790
1800
  function e() {
1791
1801
  return new Promise((n, t) => {
@@ -1800,9 +1810,9 @@ function Pl() {
1800
1810
  }
1801
1811
  return e;
1802
1812
  }
1803
- async function Nl(e) {
1813
+ async function Fl(e) {
1804
1814
  try {
1805
- const t = await Pl()();
1815
+ const t = await Bl()();
1806
1816
  if (!t)
1807
1817
  return;
1808
1818
  const { text: o, file: l } = t;
@@ -1825,7 +1835,7 @@ function oe(e) {
1825
1835
  };
1826
1836
  }
1827
1837
  const An = "🍍 Pinia (root)", ht = "_root";
1828
- function Bl(e) {
1838
+ function jl(e) {
1829
1839
  return kt(e) ? {
1830
1840
  id: ht,
1831
1841
  label: An
@@ -1834,7 +1844,7 @@ function Bl(e) {
1834
1844
  label: e.$id
1835
1845
  };
1836
1846
  }
1837
- function Fl(e) {
1847
+ function Hl(e) {
1838
1848
  if (kt(e)) {
1839
1849
  const t = Array.from(e._s.keys()), o = e._s;
1840
1850
  return {
@@ -1870,7 +1880,7 @@ function Fl(e) {
1870
1880
  value: e[t]
1871
1881
  }))), n;
1872
1882
  }
1873
- function jl(e) {
1883
+ function zl(e) {
1874
1884
  return e ? Array.isArray(e) ? e.reduce((n, t) => (n.keys.push(t.key), n.operations.push(t.type), n.oldValue[t.key] = t.oldValue, n.newValue[t.key] = t.newValue, n), {
1875
1885
  oldValue: {},
1876
1886
  keys: [],
@@ -1883,7 +1893,7 @@ function jl(e) {
1883
1893
  newValue: e.newValue
1884
1894
  } : {};
1885
1895
  }
1886
- function Hl(e) {
1896
+ function Zl(e) {
1887
1897
  switch (e) {
1888
1898
  case ae.direct:
1889
1899
  return "mutation";
@@ -1896,8 +1906,8 @@ function Hl(e) {
1896
1906
  }
1897
1907
  }
1898
1908
  let Se = !0;
1899
- const Ye = [], me = "pinia:mutations", J = "pinia", { assign: zl } = Object, Xe = (e) => "🍍 " + e;
1900
- function Zl(e, n) {
1909
+ const Ye = [], me = "pinia:mutations", J = "pinia", { assign: Ul } = Object, Xe = (e) => "🍍 " + e;
1910
+ function Wl(e, n) {
1901
1911
  Sn({
1902
1912
  id: "dev.esm.pinia",
1903
1913
  label: "Pinia 🍍",
@@ -1920,28 +1930,28 @@ function Zl(e, n) {
1920
1930
  {
1921
1931
  icon: "content_copy",
1922
1932
  action: () => {
1923
- Vl(n);
1933
+ Rl(n);
1924
1934
  },
1925
1935
  tooltip: "Serialize and copy the state"
1926
1936
  },
1927
1937
  {
1928
1938
  icon: "content_paste",
1929
1939
  action: async () => {
1930
- await Dl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1940
+ await Pl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1931
1941
  },
1932
1942
  tooltip: "Replace the state with the content of your clipboard"
1933
1943
  },
1934
1944
  {
1935
1945
  icon: "save",
1936
1946
  action: () => {
1937
- Rl(n);
1947
+ Nl(n);
1938
1948
  },
1939
1949
  tooltip: "Save the state as a JSON file"
1940
1950
  },
1941
1951
  {
1942
1952
  icon: "folder_open",
1943
1953
  action: async () => {
1944
- await Nl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1954
+ await Fl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1945
1955
  },
1946
1956
  tooltip: "Import the state from a JSON file"
1947
1957
  }
@@ -1998,14 +2008,14 @@ function Zl(e, n) {
1998
2008
  }), t.on.getInspectorTree((o) => {
1999
2009
  if (o.app === e && o.inspectorId === J) {
2000
2010
  let l = [n];
2001
- l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(Bl);
2011
+ l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(jl);
2002
2012
  }
2003
2013
  }), t.on.getInspectorState((o) => {
2004
2014
  if (o.app === e && o.inspectorId === J) {
2005
2015
  const l = o.nodeId === ht ? n : n._s.get(o.nodeId);
2006
2016
  if (!l)
2007
2017
  return;
2008
- l && (o.state = Fl(l));
2018
+ l && (o.state = Hl(l));
2009
2019
  }
2010
2020
  }), t.on.editInspectorState((o, l) => {
2011
2021
  if (o.app === e && o.inspectorId === J) {
@@ -2030,7 +2040,7 @@ Only state can be modified.`);
2030
2040
  });
2031
2041
  });
2032
2042
  }
2033
- function Ul(e, n) {
2043
+ function ql(e, n) {
2034
2044
  Ye.includes(Xe(n.$id)) || Ye.push(Xe(n.$id)), Sn({
2035
2045
  id: "dev.esm.pinia",
2036
2046
  label: "Pinia 🍍",
@@ -2103,7 +2113,7 @@ function Ul(e, n) {
2103
2113
  });
2104
2114
  });
2105
2115
  }, !0), n._customProperties.forEach((r) => {
2106
- F(() => M(n[r]), (a, i) => {
2116
+ F(() => k(n[r]), (a, i) => {
2107
2117
  t.notifyComponentUpdate(), t.sendInspectorState(J), Se && t.addTimelineEvent({
2108
2118
  layerId: me,
2109
2119
  event: {
@@ -2123,8 +2133,8 @@ function Ul(e, n) {
2123
2133
  return;
2124
2134
  const u = {
2125
2135
  time: o(),
2126
- title: Hl(a),
2127
- data: zl({ store: oe(n.$id) }, jl(r)),
2136
+ title: Zl(a),
2137
+ data: Ul({ store: oe(n.$id) }, zl(r)),
2128
2138
  groupId: de
2129
2139
  };
2130
2140
  a === ae.patchFunction ? u.subtitle = "⤵️" : a === ae.patchObject ? u.subtitle = "🧩" : r && !Array.isArray(r) && (u.subtitle = r.type), r && (u.data["rawEvent(s)"] = {
@@ -2178,25 +2188,25 @@ function Zt(e, n, t) {
2178
2188
  return de = void 0, a;
2179
2189
  };
2180
2190
  }
2181
- function Wl({ app: e, store: n, options: t }) {
2191
+ function Gl({ app: e, store: n, options: t }) {
2182
2192
  if (n.$id.startsWith("__hot:"))
2183
2193
  return;
2184
2194
  n._isOptionsAPI = !!t.state, Zt(n, Object.keys(t.actions), n._isOptionsAPI);
2185
2195
  const o = n._hotUpdate;
2186
2196
  ne(n)._hotUpdate = function(l) {
2187
2197
  o.apply(this, arguments), Zt(n, Object.keys(l._hmrPayload.actions), !!n._isOptionsAPI);
2188
- }, Ul(
2198
+ }, ql(
2189
2199
  e,
2190
2200
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
2191
2201
  n
2192
2202
  );
2193
2203
  }
2194
- function ql() {
2195
- const e = un(!0), n = e.run(() => O({}));
2204
+ function Jl() {
2205
+ const e = un(!0), n = e.run(() => $({}));
2196
2206
  let t = [], o = [];
2197
2207
  const l = be({
2198
2208
  install(s) {
2199
- Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Zl(s, l), o.forEach((r) => t.push(r)), o = [];
2209
+ Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Wl(s, l), o.forEach((r) => t.push(r)), o = [];
2200
2210
  },
2201
2211
  use(s) {
2202
2212
  return this._a ? t.push(s) : o.push(s), this;
@@ -2209,7 +2219,7 @@ function ql() {
2209
2219
  _s: /* @__PURE__ */ new Map(),
2210
2220
  state: n
2211
2221
  });
2212
- return Ae && typeof Proxy < "u" && l.use(Wl), l;
2222
+ return Ae && typeof Proxy < "u" && l.use(Gl), l;
2213
2223
  }
2214
2224
  function Dn(e, n) {
2215
2225
  for (const t in n) {
@@ -2236,7 +2246,7 @@ function Te(e, ...n) {
2236
2246
  t(...n);
2237
2247
  });
2238
2248
  }
2239
- const Gl = (e) => e();
2249
+ const Yl = (e) => e();
2240
2250
  function mt(e, n) {
2241
2251
  e instanceof Map && n instanceof Map && n.forEach((t, o) => e.set(o, t)), e instanceof Set && n instanceof Set && n.forEach(e.add, e);
2242
2252
  for (const t in n) {
@@ -2247,12 +2257,12 @@ function mt(e, n) {
2247
2257
  }
2248
2258
  return e;
2249
2259
  }
2250
- const Jl = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2260
+ const Ql = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2251
2261
  /* istanbul ignore next */
2252
2262
  Symbol()
2253
2263
  );
2254
- function Yl(e) {
2255
- return !Ce(e) || !e.hasOwnProperty(Jl);
2264
+ function Xl(e) {
2265
+ return !Ce(e) || !e.hasOwnProperty(Ql);
2256
2266
  }
2257
2267
  const { assign: te } = Object;
2258
2268
  function Wt(e) {
@@ -2265,12 +2275,12 @@ function qt(e, n, t, o) {
2265
2275
  !a && (process.env.NODE_ENV === "production" || !o) && (t.state.value[e] = l ? l() : {});
2266
2276
  const c = process.env.NODE_ENV !== "production" && o ? (
2267
2277
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
2268
- Rt(O(l ? l() : {}).value)
2278
+ Rt($(l ? l() : {}).value)
2269
2279
  ) : Rt(t.state.value[e]);
2270
- return te(c, s, Object.keys(r || {}).reduce((d, x) => (process.env.NODE_ENV !== "production" && x in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${x}" in store "${e}".`), d[x] = be(L(() => {
2280
+ return te(c, s, Object.keys(r || {}).reduce((d, w) => (process.env.NODE_ENV !== "production" && w in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${w}" in store "${e}".`), d[w] = be(L(() => {
2271
2281
  Pe(t);
2272
2282
  const m = t._s.get(e);
2273
- return r[x].call(m, m);
2283
+ return r[w].call(m, m);
2274
2284
  })), d), {}));
2275
2285
  }
2276
2286
  return i = gt(e, u, n, t, o, !0), i;
@@ -2287,12 +2297,12 @@ function gt(e, n, t = {}, o, l, s) {
2287
2297
  process.env.NODE_ENV !== "production" && (i.onTrigger = (v) => {
2288
2298
  u ? m = v : u == !1 && !S._hotUpdating && (Array.isArray(m) ? m.push(v) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2289
2299
  });
2290
- let u, c, d = [], x = [], m;
2291
- const C = o.state.value[e];
2292
- !s && !C && (process.env.NODE_ENV === "production" || !l) && (o.state.value[e] = {});
2293
- const b = O({});
2294
- let I;
2295
- function $(v) {
2300
+ let u, c, d = [], w = [], m;
2301
+ const y = o.state.value[e];
2302
+ !s && !y && (process.env.NODE_ENV === "production" || !l) && (o.state.value[e] = {});
2303
+ const x = $({});
2304
+ let O;
2305
+ function D(v) {
2296
2306
  let p;
2297
2307
  u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof v == "function" ? (v(o.state.value[e]), p = {
2298
2308
  type: ae.patchFunction,
@@ -2304,15 +2314,15 @@ function gt(e, n, t = {}, o, l, s) {
2304
2314
  storeId: e,
2305
2315
  events: m
2306
2316
  });
2307
- const k = I = Symbol();
2317
+ const I = O = Symbol();
2308
2318
  X().then(() => {
2309
- I === k && (u = !0);
2319
+ O === I && (u = !0);
2310
2320
  }), c = !0, Te(d, p, o.state.value[e]);
2311
2321
  }
2312
- const w = s ? function() {
2313
- const { state: p } = t, k = p ? p() : {};
2314
- this.$patch((A) => {
2315
- te(A, k);
2322
+ const b = s ? function() {
2323
+ const { state: p } = t, I = p ? p() : {};
2324
+ this.$patch((M) => {
2325
+ te(M, I);
2316
2326
  });
2317
2327
  } : (
2318
2328
  /* istanbul ignore next */
@@ -2320,21 +2330,21 @@ function gt(e, n, t = {}, o, l, s) {
2320
2330
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
2321
2331
  } : Rn
2322
2332
  );
2323
- function y() {
2324
- r.stop(), d = [], x = [], o._s.delete(e);
2333
+ function g() {
2334
+ r.stop(), d = [], w = [], o._s.delete(e);
2325
2335
  }
2326
2336
  function _(v, p) {
2327
2337
  return function() {
2328
2338
  Pe(o);
2329
- const k = Array.from(arguments), A = [], j = [];
2339
+ const I = Array.from(arguments), M = [], j = [];
2330
2340
  function H(Z) {
2331
- A.push(Z);
2341
+ M.push(Z);
2332
2342
  }
2333
2343
  function K(Z) {
2334
2344
  j.push(Z);
2335
2345
  }
2336
- Te(x, {
2337
- args: k,
2346
+ Te(w, {
2347
+ args: I,
2338
2348
  name: v,
2339
2349
  store: S,
2340
2350
  after: H,
@@ -2342,75 +2352,75 @@ function gt(e, n, t = {}, o, l, s) {
2342
2352
  });
2343
2353
  let ee;
2344
2354
  try {
2345
- ee = p.apply(this && this.$id === e ? this : S, k);
2355
+ ee = p.apply(this && this.$id === e ? this : S, I);
2346
2356
  } catch (Z) {
2347
2357
  throw Te(j, Z), Z;
2348
2358
  }
2349
- return ee instanceof Promise ? ee.then((Z) => (Te(A, Z), Z)).catch((Z) => (Te(j, Z), Promise.reject(Z))) : (Te(A, ee), ee);
2359
+ return ee instanceof Promise ? ee.then((Z) => (Te(M, Z), Z)).catch((Z) => (Te(j, Z), Promise.reject(Z))) : (Te(M, ee), ee);
2350
2360
  };
2351
2361
  }
2352
2362
  const T = /* @__PURE__ */ be({
2353
2363
  actions: {},
2354
2364
  getters: {},
2355
2365
  state: [],
2356
- hotState: b
2357
- }), V = {
2366
+ hotState: x
2367
+ }), A = {
2358
2368
  _p: o,
2359
2369
  // _s: scope,
2360
2370
  $id: e,
2361
- $onAction: Ut.bind(null, x),
2362
- $patch: $,
2363
- $reset: w,
2371
+ $onAction: Ut.bind(null, w),
2372
+ $patch: D,
2373
+ $reset: b,
2364
2374
  $subscribe(v, p = {}) {
2365
- const k = Ut(d, v, p.detached, () => A()), A = r.run(() => F(() => o.state.value[e], (j) => {
2375
+ const I = Ut(d, v, p.detached, () => M()), M = r.run(() => F(() => o.state.value[e], (j) => {
2366
2376
  (p.flush === "sync" ? c : u) && v({
2367
2377
  storeId: e,
2368
2378
  type: ae.direct,
2369
2379
  events: m
2370
2380
  }, j);
2371
2381
  }, te({}, i, p)));
2372
- return k;
2382
+ return I;
2373
2383
  },
2374
- $dispose: y
2384
+ $dispose: g
2375
2385
  }, S = an(process.env.NODE_ENV !== "production" || Ae ? te(
2376
2386
  {
2377
2387
  _hmrPayload: T,
2378
2388
  _customProperties: be(/* @__PURE__ */ new Set())
2379
2389
  // devtools custom properties
2380
2390
  },
2381
- V
2391
+ A
2382
2392
  // must be added later
2383
2393
  // setupStore
2384
- ) : V);
2394
+ ) : A);
2385
2395
  o._s.set(e, S);
2386
- const D = (o._a && o._a.runWithContext || Gl)(() => o._e.run(() => (r = un()).run(n)));
2387
- for (const v in D) {
2388
- const p = D[v];
2396
+ const V = (o._a && o._a.runWithContext || Yl)(() => o._e.run(() => (r = un()).run(n)));
2397
+ for (const v in V) {
2398
+ const p = V[v];
2389
2399
  if ($e(p) && !Wt(p) || St(p))
2390
- process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Yl(p) && ($e(p) ? p.value = C[v] : mt(p, C[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2400
+ process.env.NODE_ENV !== "production" && l ? We(x.value, v, it(V, v)) : s || (y && Xl(p) && ($e(p) ? p.value = y[v] : mt(p, y[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2391
2401
  else if (typeof p == "function") {
2392
- const k = process.env.NODE_ENV !== "production" && l ? p : _(v, p);
2393
- D[v] = k, process.env.NODE_ENV !== "production" && (T.actions[v] = p), a.actions[v] = p;
2402
+ const I = process.env.NODE_ENV !== "production" && l ? p : _(v, p);
2403
+ V[v] = I, process.env.NODE_ENV !== "production" && (T.actions[v] = p), a.actions[v] = p;
2394
2404
  } else process.env.NODE_ENV !== "production" && Wt(p) && (T.getters[v] = s ? (
2395
2405
  // @ts-expect-error
2396
2406
  t.getters[v]
2397
- ) : p, lt && (D._getters || // @ts-expect-error: same
2398
- (D._getters = be([]))).push(v));
2407
+ ) : p, lt && (V._getters || // @ts-expect-error: same
2408
+ (V._getters = be([]))).push(v));
2399
2409
  }
2400
- if (te(S, D), te(ne(S), D), Object.defineProperty(S, "$state", {
2401
- get: () => process.env.NODE_ENV !== "production" && l ? b.value : o.state.value[e],
2410
+ if (te(S, V), te(ne(S), V), Object.defineProperty(S, "$state", {
2411
+ get: () => process.env.NODE_ENV !== "production" && l ? x.value : o.state.value[e],
2402
2412
  set: (v) => {
2403
2413
  if (process.env.NODE_ENV !== "production" && l)
2404
2414
  throw new Error("cannot set hotState");
2405
- $((p) => {
2415
+ D((p) => {
2406
2416
  te(p, v);
2407
2417
  });
2408
2418
  }
2409
2419
  }), process.env.NODE_ENV !== "production" && (S._hotUpdate = be((v) => {
2410
2420
  S._hotUpdating = !0, v._hmrPayload.state.forEach((p) => {
2411
2421
  if (p in S.$state) {
2412
- const k = v.$state[p], A = S.$state[p];
2413
- typeof k == "object" && Ce(k) && Ce(A) ? Dn(k, A) : v.$state[p] = A;
2422
+ const I = v.$state[p], M = S.$state[p];
2423
+ typeof I == "object" && Ce(I) && Ce(M) ? Dn(I, M) : v.$state[p] = M;
2414
2424
  }
2415
2425
  We(S, p, it(v.$state, p));
2416
2426
  }), Object.keys(S.$state).forEach((p) => {
@@ -2419,15 +2429,15 @@ function gt(e, n, t = {}, o, l, s) {
2419
2429
  u = !0;
2420
2430
  });
2421
2431
  for (const p in v._hmrPayload.actions) {
2422
- const k = v[p];
2423
- We(S, p, _(p, k));
2432
+ const I = v[p];
2433
+ We(S, p, _(p, I));
2424
2434
  }
2425
2435
  for (const p in v._hmrPayload.getters) {
2426
- const k = v._hmrPayload.getters[p], A = s ? (
2436
+ const I = v._hmrPayload.getters[p], M = s ? (
2427
2437
  // special handling of options api
2428
- L(() => (Pe(o), k.call(S, S)))
2429
- ) : k;
2430
- We(S, p, A);
2438
+ L(() => (Pe(o), I.call(S, S)))
2439
+ ) : I;
2440
+ We(S, p, M);
2431
2441
  }
2432
2442
  Object.keys(S._hmrPayload.getters).forEach((p) => {
2433
2443
  p in v._hmrPayload.getters || dt(S, p);
@@ -2453,7 +2463,7 @@ function gt(e, n, t = {}, o, l, s) {
2453
2463
  pinia: o,
2454
2464
  options: a
2455
2465
  }));
2456
- Object.keys(p || {}).forEach((k) => S._customProperties.add(k)), te(S, p);
2466
+ Object.keys(p || {}).forEach((I) => S._customProperties.add(I)), te(S, p);
2457
2467
  } else
2458
2468
  te(S, r.run(() => v({
2459
2469
  store: S,
@@ -2463,7 +2473,7 @@ function gt(e, n, t = {}, o, l, s) {
2463
2473
  })));
2464
2474
  }), process.env.NODE_ENV !== "production" && S.$state && typeof S.$state == "object" && typeof S.$state.constructor == "function" && !S.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2465
2475
  state: () => new MyClass()
2466
- Found in store "${S.$id}".`), C && s && t.hydrate && t.hydrate(S.$state, C), u = !0, c = !0, S;
2476
+ Found in store "${S.$id}".`), y && s && t.hydrate && t.hydrate(S.$state, y), u = !0, c = !0, S;
2467
2477
  }
2468
2478
  function He(e, n, t) {
2469
2479
  let o, l;
@@ -2483,14 +2493,14 @@ This will fail in production.`);
2483
2493
  a = Me, a._s.has(o) || (s ? gt(o, n, l, a) : qt(o, l, a), process.env.NODE_ENV !== "production" && (r._pinia = a));
2484
2494
  const c = a._s.get(o);
2485
2495
  if (process.env.NODE_ENV !== "production" && i) {
2486
- const d = "__hot:" + o, x = s ? gt(d, n, l, a, !0) : qt(d, te({}, l), a, !0);
2487
- i._hotUpdate(x), delete a.state.value[d], a._s.delete(d);
2496
+ const d = "__hot:" + o, w = s ? gt(d, n, l, a, !0) : qt(d, te({}, l), a, !0);
2497
+ i._hotUpdate(w), delete a.state.value[d], a._s.delete(d);
2488
2498
  }
2489
2499
  if (process.env.NODE_ENV !== "production" && lt) {
2490
2500
  const d = rn();
2491
2501
  if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
2492
2502
  !i) {
2493
- const x = d.proxy, m = "_pStores" in x ? x._pStores : x._pStores = {};
2503
+ const w = d.proxy, m = "_pStores" in w ? w._pStores : w._pStores = {};
2494
2504
  m[o] = c;
2495
2505
  }
2496
2506
  }
@@ -2499,7 +2509,7 @@ This will fail in production.`);
2499
2509
  return r.$id = o, r;
2500
2510
  }
2501
2511
  const xe = He("loader", () => {
2502
- const e = O({
2512
+ const e = $({
2503
2513
  translation: !1,
2504
2514
  aiExplanation: !1,
2505
2515
  writing: !1
@@ -2520,32 +2530,32 @@ const xe = He("loader", () => {
2520
2530
  }),
2521
2531
  emits: ["update:modelValue"],
2522
2532
  setup(e) {
2523
- const n = xe(), t = e, o = Gn(e, "modelValue"), l = O(""), s = O(null), r = L(() => Object.entries(t.languages).filter(
2533
+ const n = xe(), t = e, o = Gn(e, "modelValue"), l = $(""), s = $(null), r = L(() => Object.entries(t.languages).filter(
2524
2534
  ([, i]) => i.toLowerCase().includes(l.value.toLowerCase())
2525
2535
  )), a = (i) => {
2526
2536
  i.target.value = "", l.value = "", s.value && s.value.$el.click();
2527
2537
  };
2528
- return (i, u) => (h(), W(M(hl), {
2538
+ return (i, u) => (h(), W(k(gl), {
2529
2539
  modelValue: o.value,
2530
2540
  "onUpdate:modelValue": u[3] || (u[3] = (c) => o.value = c),
2531
- disabled: M(n).loading,
2541
+ disabled: k(n).loading,
2532
2542
  as: "div",
2533
2543
  class: "relative mt-1"
2534
2544
  }, {
2535
2545
  default: ze(() => [
2536
- B(M(gl), {
2546
+ B(k(Cl), {
2537
2547
  class: "w-full bg-base-100 border border-base-300 rounded py-2.5 pl-3 pr-10 text-sm text-base-content font-medium focus:outline-none focus:ring-0.5 focus:ring-primary focus:border-primary",
2538
2548
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2539
2549
  displayValue: (c) => e.languages[c],
2540
2550
  onFocus: u[1] || (u[1] = (c) => a(c))
2541
2551
  }, null, 8, ["displayValue"]),
2542
- B(M(ml), {
2552
+ B(k(bl), {
2543
2553
  ref_key: "btnSelect",
2544
2554
  ref: s,
2545
2555
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2546
2556
  }, {
2547
2557
  default: ze(() => [
2548
- B(M(yl), {
2558
+ B(k(_l), {
2549
2559
  class: "h-5 w-5 text-base-content/50",
2550
2560
  "aria-hidden": "true",
2551
2561
  onClick: u[2] || (u[2] = (c) => a(c))
@@ -2553,17 +2563,17 @@ const xe = He("loader", () => {
2553
2563
  ]),
2554
2564
  _: 1
2555
2565
  }, 512),
2556
- B(M(bl), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2566
+ B(k(xl), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2557
2567
  default: ze(() => [
2558
- (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(Cl), {
2568
+ (h(!0), C(z, null, Y(r.value, ([c, d]) => (h(), W(k(yl), {
2559
2569
  key: c,
2560
2570
  value: c
2561
2571
  }, {
2562
- default: ze(({ active: x, selected: m }) => [
2572
+ default: ze(({ active: w, selected: m }) => [
2563
2573
  f("li", {
2564
2574
  class: P([
2565
2575
  "relative cursor-default select-none py-2 pl-3 pr-9",
2566
- x ? "bg-primary text-primary-content" : "text-base-content"
2576
+ w ? "bg-primary text-primary-content" : "text-base-content"
2567
2577
  ])
2568
2578
  }, [
2569
2579
  f("span", {
@@ -2580,11 +2590,11 @@ const xe = He("loader", () => {
2580
2590
  _: 1
2581
2591
  }, 8, ["modelValue", "disabled"]));
2582
2592
  }
2583
- }, Ql = ["disabled"], Xl = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), Kl = [
2584
- Xl
2585
- ], es = ["disabled"], ts = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ns = [
2586
- ts
2587
- ], os = {
2593
+ }, Kl = ["disabled"], es = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ts = [
2594
+ es
2595
+ ], ns = ["disabled"], os = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ls = [
2596
+ os
2597
+ ], ss = {
2588
2598
  __name: "SwapBtn",
2589
2599
  props: {
2590
2600
  isBidirect: {
@@ -2595,17 +2605,17 @@ const xe = He("loader", () => {
2595
2605
  emits: ["swap"],
2596
2606
  setup(e, { emit: n }) {
2597
2607
  const t = xe(), o = L(() => t.isLoading("translation")), l = n;
2598
- return (s, r) => e.isBidirect ? (h(), g("button", {
2608
+ return (s, r) => e.isBidirect ? (h(), C("button", {
2599
2609
  key: 1,
2600
2610
  onClick: r[0] || (r[0] = (a) => l("swap")),
2601
2611
  disabled: o.value
2602
- }, ns, 8, es)) : (h(), g("button", {
2612
+ }, ls, 8, ns)) : (h(), C("button", {
2603
2613
  key: 0,
2604
2614
  disabled: o.value
2605
- }, Kl, 8, Ql));
2615
+ }, ts, 8, Kl));
2606
2616
  }
2607
2617
  }, Oe = He("language", () => {
2608
- const e = O("auto"), n = O("vi"), t = O({
2618
+ const e = $("auto"), n = $("vi"), t = $({
2609
2619
  src: [],
2610
2620
  target: []
2611
2621
  }), o = L(() => t.value.src[e.value]), l = L(() => t.value.target[n.value]);
@@ -2621,19 +2631,19 @@ const xe = He("loader", () => {
2621
2631
  return t.value.src[i] || t.value.target[i];
2622
2632
  }
2623
2633
  return { languages: t, src: e, target: n, srcLabel: o, targetLabel: l, init: s, swap: r, getLabel: a };
2624
- }), ls = {
2634
+ }), as = {
2625
2635
  key: 0,
2626
2636
  class: "flex flex-col"
2627
- }, ss = { class: "flex" }, as = { class: "grow flex flex-col" }, rs = {
2637
+ }, rs = { class: "flex" }, is = { class: "grow flex flex-col" }, us = {
2628
2638
  key: 0,
2629
2639
  class: "flex mt-1 space-x-1"
2630
- }, is = ["onClick"], us = { class: "grow flex flex-col" }, cs = {
2640
+ }, cs = ["onClick"], ds = { class: "grow flex flex-col" }, fs = {
2631
2641
  key: 0,
2632
2642
  class: "flex mt-1 space-x-1 justify-end"
2633
- }, ds = ["onClick"], fs = { class: "flex" }, vs = { class: "grow flex flex-col" }, ps = { class: "grow flex flex-col" }, Jt = 3, hs = {
2643
+ }, vs = ["onClick"], ps = { class: "flex" }, hs = { class: "grow flex flex-col" }, ms = { class: "grow flex flex-col" }, Jt = 3, gs = {
2634
2644
  __name: "Selects",
2635
2645
  setup(e) {
2636
- const n = Oe(), t = O([]), o = O([]);
2646
+ const n = Oe(), t = $([]), o = $([]);
2637
2647
  function l() {
2638
2648
  n.swap();
2639
2649
  }
@@ -2650,53 +2660,53 @@ const xe = He("loader", () => {
2650
2660
  (s) => {
2651
2661
  s && (o.value.includes(s) || (o.value.unshift(s), o.value = o.value.slice(0, Jt), Ze.setLocalStorage("recentTarget", o.value)));
2652
2662
  }
2653
- ), (s, r) => M(n).languages ? (h(), g("div", ls, [
2654
- f("div", ss, [
2655
- f("div", as, [
2656
- t.value.length > 0 ? (h(), g("div", rs, [
2657
- (h(!0), g(z, null, Y(t.value, (a) => (h(), g("button", {
2663
+ ), (s, r) => k(n).languages ? (h(), C("div", as, [
2664
+ f("div", rs, [
2665
+ f("div", is, [
2666
+ t.value.length > 0 ? (h(), C("div", us, [
2667
+ (h(!0), C(z, null, Y(t.value, (a) => (h(), C("button", {
2658
2668
  key: a,
2659
2669
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2660
- onClick: (i) => M(n).src = a
2661
- }, G(M(n).languages.src[a]), 9, is))), 128))
2670
+ onClick: (i) => k(n).src = a
2671
+ }, G(k(n).languages.src[a]), 9, cs))), 128))
2662
2672
  ])) : R("", !0)
2663
2673
  ]),
2664
- f("div", us, [
2665
- o.value.length > 0 ? (h(), g("div", cs, [
2666
- (h(!0), g(z, null, Y(o.value, (a) => (h(), g("button", {
2674
+ f("div", ds, [
2675
+ o.value.length > 0 ? (h(), C("div", fs, [
2676
+ (h(!0), C(z, null, Y(o.value, (a) => (h(), C("button", {
2667
2677
  key: a,
2668
2678
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2669
- onClick: (i) => M(n).target = a
2670
- }, G(M(n).languages.target[a]), 9, ds))), 128))
2679
+ onClick: (i) => k(n).target = a
2680
+ }, G(k(n).languages.target[a]), 9, vs))), 128))
2671
2681
  ])) : R("", !0)
2672
2682
  ])
2673
2683
  ]),
2674
- f("div", fs, [
2675
- f("div", vs, [
2684
+ f("div", ps, [
2685
+ f("div", hs, [
2676
2686
  B(Gt, {
2677
- modelValue: M(n).src,
2678
- "onUpdate:modelValue": r[0] || (r[0] = (a) => M(n).src = a),
2679
- languages: M(n).languages.src,
2687
+ modelValue: k(n).src,
2688
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => k(n).src = a),
2689
+ languages: k(n).languages.src,
2680
2690
  class: "grow"
2681
2691
  }, null, 8, ["modelValue", "languages"])
2682
2692
  ]),
2683
- B(os, {
2684
- isBidirect: M(n).src !== "auto",
2693
+ B(ss, {
2694
+ isBidirect: k(n).src !== "auto",
2685
2695
  class: "grow-0 mx-3 mt-4 self-start",
2686
2696
  onSwap: l
2687
2697
  }, null, 8, ["isBidirect"]),
2688
- f("div", ps, [
2698
+ f("div", ms, [
2689
2699
  B(Gt, {
2690
- modelValue: M(n).target,
2691
- "onUpdate:modelValue": r[1] || (r[1] = (a) => M(n).target = a),
2692
- languages: M(n).languages.target,
2700
+ modelValue: k(n).target,
2701
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => k(n).target = a),
2702
+ languages: k(n).languages.target,
2693
2703
  class: "grow"
2694
2704
  }, null, 8, ["modelValue", "languages"])
2695
2705
  ])
2696
2706
  ])
2697
2707
  ])) : R("", !0);
2698
2708
  }
2699
- }, Ie = {
2709
+ }, Le = {
2700
2710
  INPUT_MAX_LENGTH: 5e3,
2701
2711
  INPUT_DEBOUNCE: 1e3,
2702
2712
  IMPROVE_INPUT_MIN_LENGTH: 4,
@@ -2706,12 +2716,12 @@ const xe = He("loader", () => {
2706
2716
  for (const [o, l] of n)
2707
2717
  t[o] = l;
2708
2718
  return t;
2709
- }, ms = {}, gs = { class: "mr-2 loading loading-dots loading-xs" };
2710
- function bs(e, n) {
2711
- return h(), g("span", gs);
2719
+ }, bs = {}, Cs = { class: "mr-2 loading loading-dots loading-xs" };
2720
+ function xs(e, n) {
2721
+ return h(), C("span", Cs);
2712
2722
  }
2713
- const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2714
- const e = O({
2723
+ const Mt = /* @__PURE__ */ he(bs, [["render", xs]]), bt = He("tts", () => {
2724
+ const e = $({
2715
2725
  src: null,
2716
2726
  target: null
2717
2727
  });
@@ -2734,12 +2744,12 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2734
2744
  get: t,
2735
2745
  reset: o
2736
2746
  };
2737
- }), Cs = ["disabled"], xs = /* @__PURE__ */ f("path", {
2747
+ }), ys = ["disabled"], ws = /* @__PURE__ */ f("path", {
2738
2748
  d: "M2.33325 4.66667H3.51125C3.82693 4.6667 4.13239 4.55473 4.37325 4.35067L6.83392 2.26667C6.99592 2.12953 7.19374 2.04156 7.40407 2.01312C7.61441 1.98468 7.82849 2.01696 8.02109 2.10615C8.21369 2.19534 8.37678 2.33772 8.49114 2.51652C8.60551 2.69532 8.66638 2.90309 8.66659 3.11534V12.8847C8.66649 13.097 8.60565 13.305 8.49125 13.4839C8.37685 13.6628 8.21367 13.8053 8.02094 13.8945C7.82822 13.9837 7.614 14.0159 7.40356 13.9874C7.19312 13.9588 6.99523 13.8707 6.83325 13.7333L4.37325 11.6487C4.13229 11.4449 3.82685 11.3331 3.51125 11.3333H2.33325C2.06804 11.3333 1.81368 11.228 1.62615 11.0404C1.43861 10.8529 1.33325 10.5986 1.33325 10.3333V5.66667C1.33325 5.40145 1.43861 5.1471 1.62615 4.95956C1.81368 4.77203 2.06804 4.66667 2.33325 4.66667ZM11.1779 11.18C11.5969 10.763 11.9294 10.2674 12.1562 9.72156C12.3831 9.17572 12.4999 8.59044 12.4999 7.99934C12.4999 7.40823 12.3831 6.82295 12.1562 6.27711C11.9294 5.73127 11.5969 5.23564 11.1779 4.81867C11.1317 4.77098 11.0765 4.73297 11.0155 4.70686C10.9544 4.68075 10.8888 4.66705 10.8224 4.66657C10.756 4.66609 10.6902 4.67883 10.6288 4.70406C10.5674 4.72929 10.5116 4.76649 10.4647 4.8135C10.4179 4.86051 10.3808 4.91639 10.3558 4.97787C10.3307 5.03935 10.3181 5.10521 10.3188 5.17159C10.3195 5.23798 10.3334 5.30357 10.3597 5.36453C10.3859 5.42549 10.4241 5.48061 10.4719 5.52667C10.7977 5.85079 11.0562 6.23609 11.2326 6.66043C11.409 7.08477 11.4998 7.53979 11.4998 7.99934C11.4998 8.45888 11.409 8.9139 11.2326 9.33824C11.0562 9.76258 10.7977 10.1479 10.4719 10.472C10.4241 10.5181 10.3859 10.5732 10.3597 10.6341C10.3334 10.6951 10.3195 10.7607 10.3188 10.8271C10.3181 10.8935 10.3307 10.9593 10.3558 11.0208C10.3808 11.0823 10.4179 11.1382 10.4647 11.1852C10.5116 11.2322 10.5674 11.2694 10.6288 11.2946C10.6902 11.3198 10.756 11.3326 10.8224 11.3321C10.8888 11.3316 10.9544 11.3179 11.0155 11.2918C11.0765 11.2657 11.1317 11.2277 11.1779 11.18ZM12.7113 13.2127C12.6123 13.2126 12.5157 13.1832 12.4335 13.1281C12.3513 13.0731 12.2873 12.9949 12.2495 12.9035C12.2118 12.8121 12.202 12.7115 12.2214 12.6146C12.2408 12.5176 12.2886 12.4285 12.3586 12.3587C12.9317 11.7866 13.3865 11.1071 13.6967 10.359C14.0069 9.61101 14.1666 8.80915 14.1666 7.99934C14.1666 7.18952 14.0069 6.38766 13.6967 5.63963C13.3865 4.8916 12.9317 4.2121 12.3586 3.64C12.3122 3.59351 12.2754 3.53834 12.2503 3.47764C12.2252 3.41693 12.2124 3.35188 12.2124 3.2862C12.2125 3.22052 12.2255 3.15549 12.2507 3.09483C12.2759 3.03417 12.3128 2.97907 12.3593 2.93267C12.4057 2.88627 12.4609 2.84948 12.5216 2.8244C12.5823 2.79932 12.6474 2.78645 12.7131 2.78651C12.7787 2.78657 12.8438 2.79957 12.9044 2.82476C12.9651 2.84995 13.0202 2.88685 13.0666 2.93334C13.7327 3.59825 14.2612 4.38801 14.6218 5.25741C14.9824 6.12681 15.168 7.05879 15.168 8C15.168 8.94122 14.9824 9.87319 14.6218 10.7426C14.2612 11.612 13.7327 12.4018 13.0666 13.0667C13.02 13.1134 12.9646 13.1504 12.9036 13.1756C12.8426 13.2007 12.7772 13.2129 12.7113 13.2127Z",
2739
2749
  fill: "currentColor"
2740
- }, null, -1), ys = [
2741
- xs
2742
- ], ws = /* @__PURE__ */ f("svg", {
2750
+ }, null, -1), _s = [
2751
+ ws
2752
+ ], Ts = /* @__PURE__ */ f("svg", {
2743
2753
  class: "w-4 h-4 text-primary",
2744
2754
  fill: "none",
2745
2755
  xmlns: "http://www.w3.org/2000/svg",
@@ -2751,9 +2761,9 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2751
2761
  "clip-rule": "evenodd",
2752
2762
  fill: "currentColor"
2753
2763
  })
2754
- ], -1), _s = [
2755
- ws
2756
- ], Ts = {
2764
+ ], -1), Ss = [
2765
+ Ts
2766
+ ], Es = {
2757
2767
  __name: "SpeakBtn",
2758
2768
  props: {
2759
2769
  type: {
@@ -2764,7 +2774,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2764
2774
  },
2765
2775
  emits: ["loadTTS"],
2766
2776
  setup(e, { emit: n }) {
2767
- const t = bt(), o = e, l = n, s = L(() => t.tts[o.type]), r = O(!1), a = new Audio(), i = O(!1);
2777
+ const t = bt(), o = e, l = n, s = L(() => t.tts[o.type]), r = $(!1), a = new Audio(), i = $(!1);
2768
2778
  F(
2769
2779
  s,
2770
2780
  () => {
@@ -2795,11 +2805,11 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2795
2805
  }
2796
2806
  return a.onended = () => {
2797
2807
  r.value = !1;
2798
- }, (x, m) => r.value ? (h(), g("button", {
2808
+ }, (w, m) => r.value ? (h(), C("button", {
2799
2809
  key: 1,
2800
2810
  class: "btn btn-xs btn-circle",
2801
2811
  onClick: ft(d, ["prevent"])
2802
- }, _s)) : (h(), g("button", {
2812
+ }, Ss)) : (h(), C("button", {
2803
2813
  key: 0,
2804
2814
  class: P(["btn btn-xs btn-circle", [
2805
2815
  { "btn-ghost": !e.disabled },
@@ -2808,37 +2818,37 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2808
2818
  disabled: e.disabled,
2809
2819
  onClick: ft(u, ["prevent"])
2810
2820
  }, [
2811
- (h(), g("svg", {
2821
+ (h(), C("svg", {
2812
2822
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2813
2823
  viewBox: "0 0 16 16",
2814
2824
  fill: "none",
2815
2825
  xmlns: "http://www.w3.org/2000/svg"
2816
- }, ys, 2))
2817
- ], 10, Cs));
2826
+ }, _s, 2))
2827
+ ], 10, ys));
2818
2828
  }
2819
- }, Ss = {
2829
+ }, $s = {
2820
2830
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2821
2831
  "data-tip": "Clear"
2822
- }, Es = ["disabled"], $s = /* @__PURE__ */ f("path", {
2832
+ }, Os = ["disabled"], Ls = /* @__PURE__ */ f("path", {
2823
2833
  "fill-rule": "evenodd",
2824
2834
  "clip-rule": "evenodd",
2825
2835
  d: "M3.19102 3.19102C3.44571 2.93633 3.85864 2.93633 4.11333 3.19102L12.809 11.8867C13.0637 12.1414 13.0637 12.5543 12.809 12.809C12.5543 13.0637 12.1414 13.0637 11.8867 12.809L3.19102 4.11333C2.93633 3.85864 2.93633 3.44571 3.19102 3.19102Z",
2826
2836
  fill: "currentColor"
2827
- }, null, -1), Os = /* @__PURE__ */ f("path", {
2837
+ }, null, -1), Is = /* @__PURE__ */ f("path", {
2828
2838
  "fill-rule": "evenodd",
2829
2839
  "clip-rule": "evenodd",
2830
2840
  d: "M12.809 3.19102C13.0637 3.44571 13.0637 3.85864 12.809 4.11333L4.11333 12.809C3.85864 13.0637 3.44571 13.0637 3.19102 12.809C2.93633 12.5543 2.93633 12.1414 3.19102 11.8867L11.8867 3.19102C12.1414 2.93633 12.5543 2.93633 12.809 3.19102Z",
2831
2841
  fill: "currentColor"
2832
- }, null, -1), Is = [
2833
- $s,
2834
- Os
2842
+ }, null, -1), ks = [
2843
+ Ls,
2844
+ Is
2835
2845
  ], Pn = {
2836
2846
  __name: "ClearBtn",
2837
2847
  props: {
2838
2848
  disabled: Boolean
2839
2849
  },
2840
2850
  setup(e) {
2841
- return (n, t) => (h(), g("div", Ss, [
2851
+ return (n, t) => (h(), C("div", $s, [
2842
2852
  f("button", {
2843
2853
  class: P(["btn btn-xs btn-circle", [
2844
2854
  { "btn-ghost": !e.disabled },
@@ -2846,36 +2856,36 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2846
2856
  ]]),
2847
2857
  disabled: e.disabled
2848
2858
  }, [
2849
- (h(), g("svg", {
2859
+ (h(), C("svg", {
2850
2860
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2851
2861
  viewBox: "0 0 16 16",
2852
2862
  fill: "none",
2853
2863
  xmlns: "http://www.w3.org/2000/svg"
2854
- }, Is, 2))
2855
- ], 10, Es)
2864
+ }, ks, 2))
2865
+ ], 10, Os)
2856
2866
  ]));
2857
2867
  }
2858
- }, Ls = {
2868
+ }, Ms = {
2859
2869
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2860
2870
  "data-tip": "Favorite"
2861
- }, ks = ["disabled"], Ms = /* @__PURE__ */ f("path", {
2871
+ }, As = ["disabled"], Vs = /* @__PURE__ */ f("path", {
2862
2872
  d: "M14.9491 5.89315C14.8278 5.53128 14.5111 5.27252 14.1226 5.21783L10.5264 4.7114L8.91813 1.55315C8.74435 1.21195 8.39257 1 7.99998 1C7.60739 1 7.25557 1.21195 7.08183 1.55315L5.47358 4.7114L1.8774 5.21783C1.48888 5.27252 1.17219 5.53128 1.05086 5.89315C0.929554 6.25501 1.02881 6.64477 1.30993 6.91038L3.91217 9.36871L3.29786 12.8399C3.2315 13.215 3.38755 13.5868 3.7052 13.8105C3.88128 13.9344 4.08938 14 4.30704 14C4.47232 14 4.63705 13.9606 4.78341 13.886L7.99995 12.2471L11.2165 13.886C11.3628 13.9606 11.5276 14 11.6929 14C11.9106 14 12.1187 13.9345 12.2948 13.8105C12.6124 13.5868 12.7685 13.215 12.7021 12.84L12.0878 9.36871L14.6901 6.91035C14.9712 6.64477 15.0704 6.25498 14.9491 5.89315ZM14.0266 6.25082L11.2455 8.87813C11.1335 8.98392 11.0824 9.13637 11.1089 9.28575L11.7654 12.9956C11.7701 13.0226 11.759 13.0493 11.7362 13.0653C11.7202 13.0766 11.7038 13.079 11.6929 13.079C11.6809 13.079 11.6694 13.0762 11.6587 13.0708L8.22108 11.3192C8.15189 11.284 8.07593 11.2663 7.99998 11.2663C7.92402 11.2663 7.84807 11.284 7.77882 11.3193L4.34118 13.0708C4.33052 13.0763 4.31904 13.079 4.30701 13.079C4.29611 13.079 4.27969 13.0767 4.26373 13.0654C4.24092 13.0494 4.22975 13.0226 4.2345 12.9957L4.89104 9.28584C4.91747 9.13646 4.86637 8.98401 4.75439 8.87822L1.97327 6.25091C1.95308 6.23184 1.94595 6.20383 1.95466 6.17786C1.9634 6.15185 1.98612 6.13326 2.01405 6.12933L5.85743 5.58807C6.0122 5.56626 6.14599 5.47208 6.21521 5.33616L7.93404 1.9608C7.94653 1.9363 7.97178 1.92107 7.99998 1.92107C8.02818 1.92107 8.05343 1.9363 8.06591 1.9608L9.78468 5.33607C9.85391 5.47199 9.9877 5.5662 10.1425 5.58799L13.9859 6.12924C14.0138 6.1332 14.0365 6.15176 14.0452 6.17777C14.0539 6.20374 14.0468 6.23175 14.0266 6.25082Z",
2863
2873
  fill: "currentColor"
2864
- }, null, -1), As = [
2865
- Ms
2866
- ], Vs = /* @__PURE__ */ f("path", {
2867
- d: "M7.47207 1.31905C7.57125 1.12371 7.77589 1 8.00001 1C8.22413 1 8.42877 1.12367 8.52795 1.31905L10.3721 4.95175L14.4959 5.53427C14.7177 5.5656 14.9019 5.7166 14.9712 5.9238C15.0404 6.13101 14.9827 6.35843 14.8222 6.51049L11.8382 9.33816L12.5427 13.3309C12.5806 13.5456 12.4897 13.7626 12.3084 13.8906C12.1272 14.0187 11.8868 14.0356 11.6884 13.9342L8.00004 12.0491L4.31158 13.9343C4.11323 14.0356 3.87286 14.0187 3.69157 13.8907C3.51028 13.7627 3.4195 13.5457 3.45736 13.3309L4.1618 9.33819L1.17781 6.51052C1.01735 6.35846 0.959571 6.13101 1.02884 5.92383C1.09807 5.71663 1.28232 5.56563 1.50409 5.53431L5.62787 4.95178L7.47207 1.31905Z",
2868
- fill: "currentColor"
2869
2874
  }, null, -1), Ds = [
2870
2875
  Vs
2871
- ], Rs = {
2876
+ ], Rs = /* @__PURE__ */ f("path", {
2877
+ d: "M7.47207 1.31905C7.57125 1.12371 7.77589 1 8.00001 1C8.22413 1 8.42877 1.12367 8.52795 1.31905L10.3721 4.95175L14.4959 5.53427C14.7177 5.5656 14.9019 5.7166 14.9712 5.9238C15.0404 6.13101 14.9827 6.35843 14.8222 6.51049L11.8382 9.33816L12.5427 13.3309C12.5806 13.5456 12.4897 13.7626 12.3084 13.8906C12.1272 14.0187 11.8868 14.0356 11.6884 13.9342L8.00004 12.0491L4.31158 13.9343C4.11323 14.0356 3.87286 14.0187 3.69157 13.8907C3.51028 13.7627 3.4195 13.5457 3.45736 13.3309L4.1618 9.33819L1.17781 6.51052C1.01735 6.35846 0.959571 6.13101 1.02884 5.92383C1.09807 5.71663 1.28232 5.56563 1.50409 5.53431L5.62787 4.95178L7.47207 1.31905Z",
2878
+ fill: "currentColor"
2879
+ }, null, -1), Ps = [
2880
+ Rs
2881
+ ], Ns = {
2872
2882
  __name: "FavoriteBtn",
2873
2883
  props: {
2874
2884
  disabled: Boolean,
2875
2885
  isFilled: Boolean
2876
2886
  },
2877
2887
  setup(e) {
2878
- return (n, t) => (h(), g("div", Ls, [
2888
+ return (n, t) => (h(), C("div", Ms, [
2879
2889
  f("button", {
2880
2890
  class: P(["btn btn-xs btn-circle", [
2881
2891
  { "btn-ghost": !e.disabled },
@@ -2883,48 +2893,48 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2883
2893
  ]]),
2884
2894
  disabled: e.disabled
2885
2895
  }, [
2886
- e.isFilled ? (h(), g("svg", {
2896
+ e.isFilled ? (h(), C("svg", {
2887
2897
  key: 1,
2888
2898
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2889
2899
  viewBox: "0 0 16 16",
2890
2900
  fill: "none",
2891
2901
  xmlns: "http://www.w3.org/2000/svg"
2892
- }, Ds, 2)) : (h(), g("svg", {
2902
+ }, Ps, 2)) : (h(), C("svg", {
2893
2903
  key: 0,
2894
2904
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2895
2905
  viewBox: "0 0 16 16",
2896
2906
  fill: "none",
2897
2907
  xmlns: "http://www.w3.org/2000/svg"
2898
- }, As, 2))
2899
- ], 10, ks)
2908
+ }, Ds, 2))
2909
+ ], 10, As)
2900
2910
  ]));
2901
2911
  }
2902
- }, Ps = {
2912
+ }, Bs = {
2903
2913
  class: "tooltip tooltip-top tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!text-xs before:!py-1 before:!px-2",
2904
2914
  "data-tip": "AI Translate"
2905
- }, Ns = ["disabled"], Bs = /* @__PURE__ */ f("path", {
2915
+ }, Fs = ["disabled"], js = /* @__PURE__ */ f("path", {
2906
2916
  d: "M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z",
2907
2917
  fill: "currentColor"
2908
- }, null, -1), Fs = /* @__PURE__ */ f("path", {
2918
+ }, null, -1), Hs = /* @__PURE__ */ f("path", {
2909
2919
  d: "M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z",
2910
2920
  fill: "currentColor"
2911
- }, null, -1), js = /* @__PURE__ */ f("path", {
2921
+ }, null, -1), zs = /* @__PURE__ */ f("path", {
2912
2922
  d: "M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z",
2913
2923
  fill: "currentColor"
2914
- }, null, -1), Hs = [
2915
- Bs,
2916
- Fs,
2917
- js
2918
- ], zs = /* @__PURE__ */ Be('<path d="M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z" fill="currentColor"></path><path d="M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z" fill="currentColor"></path><path d="M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z" fill="currentColor"></path><circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"></circle><ellipse cx="4.5" cy="10" rx="0.5" ry="1" fill="currentColor"></ellipse><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Zs = [
2924
+ }, null, -1), Zs = [
2925
+ js,
2926
+ Hs,
2919
2927
  zs
2920
- ], Us = {
2928
+ ], Us = /* @__PURE__ */ Be('<path d="M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z" fill="currentColor"></path><path d="M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z" fill="currentColor"></path><path d="M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z" fill="currentColor"></path><circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"></circle><ellipse cx="4.5" cy="10" rx="0.5" ry="1" fill="currentColor"></ellipse><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Ws = [
2929
+ Us
2930
+ ], qs = {
2921
2931
  __name: "AIBtn",
2922
2932
  props: {
2923
2933
  disabled: Boolean,
2924
2934
  isFilled: Boolean
2925
2935
  },
2926
2936
  setup(e) {
2927
- return (n, t) => (h(), g("div", Ps, [
2937
+ return (n, t) => (h(), C("div", Bs, [
2928
2938
  f("button", {
2929
2939
  class: P(["btn btn-xs btn-circle", [
2930
2940
  { "btn-ghost": !e.disabled },
@@ -2932,39 +2942,39 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2932
2942
  ]]),
2933
2943
  disabled: e.disabled
2934
2944
  }, [
2935
- e.isFilled ? (h(), g("svg", {
2945
+ e.isFilled ? (h(), C("svg", {
2936
2946
  key: 1,
2937
2947
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2938
2948
  viewBox: "0 0 12 12",
2939
2949
  fill: "none",
2940
2950
  xmlns: "http://www.w3.org/2000/svg"
2941
- }, Zs, 2)) : (h(), g("svg", {
2951
+ }, Ws, 2)) : (h(), C("svg", {
2942
2952
  key: 0,
2943
2953
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2944
2954
  viewBox: "0 0 12 12",
2945
2955
  fill: "none",
2946
2956
  xmlns: "http://www.w3.org/2000/svg"
2947
- }, Hs, 2))
2948
- ], 10, Ns)
2957
+ }, Zs, 2))
2958
+ ], 10, Fs)
2949
2959
  ]));
2950
2960
  }
2951
- }, Ws = ["data-tip"], qs = ["disabled"], Gs = /* @__PURE__ */ f("path", {
2961
+ }, Gs = ["data-tip"], Js = ["disabled"], Ys = /* @__PURE__ */ f("path", {
2952
2962
  d: "M13.9023 3.26667L10.8093 0.1C10.7767 0.0666667 10.7116 0 10.5814 0H3.74419C3.12558 0 2.60465 0.533333 2.60465 1.16667V2.66667H1.13953C0.52093 2.66667 0 3.2 0 3.83333V14.8667C0 15.4667 0.52093 16 1.13953 16H10.2558C10.8744 16 11.3953 15.4667 11.3953 14.8333V13.3333H12.8605C13.4791 13.3333 14 12.8 14 12.1667V3.5C14 3.4 13.9674 3.3 13.9023 3.26667ZM12.893 3.16667H11.3954C11.1349 3.16667 10.907 2.93333 10.907 2.66667V1.13333L12.893 3.16667ZM10.2558 15.3333H1.13953C0.87907 15.3333 0.651163 15.1 0.651163 14.8333V3.83333C0.651163 3.53333 0.87907 3.33333 1.13953 3.33333H7.68372V5.33333C7.68372 5.96667 8.20465 6.5 8.82326 6.5H10.7767V14.8667C10.7442 15.1 10.5488 15.3333 10.2558 15.3333ZM9.31163 4.8L10.2884 5.8H8.7907C8.53023 5.8 8.30233 5.56667 8.30233 5.3V3.76667L9.31163 4.8ZM12.8605 12.6667H11.3953V6.13333C11.3953 6.06667 11.3628 5.96667 11.2977 5.9L8.20465 2.73333C8.17209 2.7 8.07442 2.66667 8.0093 2.66667H3.25581V1.16667C3.25581 0.9 3.45116 0.666666 3.74419 0.666666H10.2558V2.66667C10.2558 3.3 10.7767 3.83333 11.3954 3.83333H13.3488V12.2C13.3488 12.4667 13.1209 12.6667 12.8605 12.6667Z",
2953
2963
  fill: "currentColor"
2954
- }, null, -1), Js = [
2955
- Gs
2964
+ }, null, -1), Qs = [
2965
+ Ys
2956
2966
  ], Nn = {
2957
2967
  __name: "CopyBtn",
2958
2968
  props: {
2959
2969
  disabled: Boolean
2960
2970
  },
2961
2971
  setup(e) {
2962
- const n = O("Copy"), t = () => {
2972
+ const n = $("Copy"), t = () => {
2963
2973
  n.value = "Copied", setTimeout(() => {
2964
2974
  n.value = "Copy";
2965
2975
  }, 1e3);
2966
2976
  };
2967
- return (o, l) => (h(), g("div", {
2977
+ return (o, l) => (h(), C("div", {
2968
2978
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2969
2979
  "data-tip": n.value
2970
2980
  }, [
@@ -2976,19 +2986,19 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2976
2986
  disabled: e.disabled,
2977
2987
  onClick: t
2978
2988
  }, [
2979
- (h(), g("svg", {
2989
+ (h(), C("svg", {
2980
2990
  class: P(["w-3 h-3 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2981
2991
  viewBox: "0 0 14 16",
2982
2992
  fill: "none",
2983
2993
  xmlns: "http://www.w3.org/2000/svg"
2984
- }, Js, 2))
2985
- ], 10, qs)
2986
- ], 8, Ws));
2994
+ }, Qs, 2))
2995
+ ], 10, Js)
2996
+ ], 8, Gs));
2987
2997
  }
2988
- }, Ys = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Qs = { class: "ml-1 text-sm text-base-content/70" }, Xs = {
2998
+ }, Xs = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Ks = { class: "ml-1 text-sm text-base-content/70" }, ea = {
2989
2999
  key: 0,
2990
3000
  class: "italic"
2991
- }, Ks = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, ea = {
3001
+ }, ta = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, na = {
2992
3002
  __name: "InputBtnGroup",
2993
3003
  props: {
2994
3004
  loading: {
@@ -3048,33 +3058,33 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3048
3058
  emits: ["clear", "favorite", "loadTTS", "aiTranslate", "copy"],
3049
3059
  setup(e, { emit: n }) {
3050
3060
  const t = n;
3051
- return (o, l) => (h(), g("div", Ys, [
3052
- e.src && e.isTTS ? (h(), W(Ts, {
3061
+ return (o, l) => (h(), C("div", Xs, [
3062
+ e.src && e.isTTS ? (h(), W(Es, {
3053
3063
  key: 0,
3054
3064
  type: e.type,
3055
3065
  onLoadTTS: l[0] || (l[0] = (s) => t("loadTTS"))
3056
3066
  }, null, 8, ["type"])) : R("", !0),
3057
- f("div", Qs, [
3067
+ f("div", Ks, [
3058
3068
  Ee(G(e.srcLabel) + " ", 1),
3059
- e.phonetic ? (h(), g("span", Xs, "- " + G(e.phonetic), 1)) : R("", !0)
3069
+ e.phonetic ? (h(), C("span", ea, "- " + G(e.phonetic), 1)) : R("", !0)
3060
3070
  ]),
3061
3071
  e.loading ? (h(), W(Mt, {
3062
3072
  key: 1,
3063
3073
  class: "absolute right-6 top-2"
3064
3074
  })) : R("", !0),
3065
- f("div", Ks, [
3075
+ f("div", ta, [
3066
3076
  e.hasClearBtn ? (h(), W(Pn, {
3067
3077
  key: 0,
3068
3078
  onClick: l[1] || (l[1] = (s) => t("clear")),
3069
3079
  disabled: e.loading
3070
3080
  }, null, 8, ["disabled"])) : R("", !0),
3071
- e.src && e.hasAIBtn ? (h(), W(Us, {
3081
+ e.src && e.hasAIBtn ? (h(), W(qs, {
3072
3082
  key: 1,
3073
3083
  isFilled: e.isAITranslate,
3074
3084
  onClick: l[2] || (l[2] = (s) => t("aiTranslate")),
3075
3085
  disabled: e.loading
3076
3086
  }, null, 8, ["isFilled", "disabled"])) : R("", !0),
3077
- e.src && e.hasFavoriteBtn ? (h(), W(Rs, {
3087
+ e.src && e.hasFavoriteBtn ? (h(), W(Ns, {
3078
3088
  key: 2,
3079
3089
  isFilled: e.isFavorite,
3080
3090
  onClick: l[3] || (l[3] = (s) => t("favorite")),
@@ -3088,18 +3098,18 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3088
3098
  ])
3089
3099
  ]));
3090
3100
  }
3091
- }, Bn = /* @__PURE__ */ he(ea, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3092
- const e = O(null), n = O(null), t = O(null), o = O({
3101
+ }, Bn = /* @__PURE__ */ he(na, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3102
+ const e = $(null), n = $(null), t = $(null), o = $({
3093
3103
  src: null,
3094
3104
  target: null
3095
- }), l = O(null), s = O([]), r = O([]), a = O([]), i = O([]), u = O({
3105
+ }), l = $(null), s = $([]), r = $([]), a = $([]), i = $([]), u = $({
3096
3106
  src: null,
3097
3107
  target: null
3098
- }), c = Oe(), d = L(() => c.getLabel(e.value)), x = L(() => c.getLabel(n.value));
3099
- function m(b) {
3100
- e.value = b.src, n.value = b.target, t.value = b.text, o.value = b.phonetic, l.value = b.result, s.value = b.dictionary, r.value = b.definitions, a.value = b.synonyms, i.value = b.examples, u.value = b.tts;
3108
+ }), c = Oe(), d = L(() => c.getLabel(e.value)), w = L(() => c.getLabel(n.value));
3109
+ function m(x) {
3110
+ e.value = x.src, n.value = x.target, t.value = x.text, o.value = x.phonetic, l.value = x.result, s.value = x.dictionary, r.value = x.definitions, a.value = x.synonyms, i.value = x.examples, u.value = x.tts;
3101
3111
  }
3102
- function C() {
3112
+ function y() {
3103
3113
  e.value = null, n.value = null, t.value = null, o.value = {
3104
3114
  src: null,
3105
3115
  target: null
@@ -3112,7 +3122,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3112
3122
  src: e,
3113
3123
  srcLabel: d,
3114
3124
  target: n,
3115
- targetLabel: x,
3125
+ targetLabel: w,
3116
3126
  phonetic: o,
3117
3127
  text: t,
3118
3128
  result: l,
@@ -3122,20 +3132,20 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3122
3132
  examples: i,
3123
3133
  tts: u,
3124
3134
  init: m,
3125
- reset: C
3135
+ reset: y
3126
3136
  };
3127
3137
  });
3128
- function ta(e) {
3138
+ function oa(e) {
3129
3139
  return cn() ? (Tt(e), !0) : !1;
3130
3140
  }
3131
3141
  function Ke(e) {
3132
- return typeof e == "function" ? e() : M(e);
3142
+ return typeof e == "function" ? e() : k(e);
3133
3143
  }
3134
- const na = typeof window < "u" && typeof document < "u";
3144
+ const la = typeof window < "u" && typeof document < "u";
3135
3145
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3136
3146
  const Yt = () => {
3137
3147
  };
3138
- function oa(e, n) {
3148
+ function sa(e, n) {
3139
3149
  function t(...o) {
3140
3150
  return new Promise((l, s) => {
3141
3151
  Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(l).catch(s);
@@ -3143,7 +3153,7 @@ function oa(e, n) {
3143
3153
  }
3144
3154
  return t;
3145
3155
  }
3146
- function la(e, n = {}) {
3156
+ function aa(e, n = {}) {
3147
3157
  let t, o, l = Yt;
3148
3158
  const s = (a) => {
3149
3159
  clearTimeout(a), l(), l = Yt;
@@ -3159,9 +3169,9 @@ function la(e, n = {}) {
3159
3169
  });
3160
3170
  };
3161
3171
  }
3162
- function sa(e, n = 200, t = {}) {
3163
- return oa(
3164
- la(n, t),
3172
+ function ra(e, n = 200, t = {}) {
3173
+ return sa(
3174
+ aa(n, t),
3165
3175
  e
3166
3176
  );
3167
3177
  }
@@ -3170,43 +3180,43 @@ function Qt(e) {
3170
3180
  const t = Ke(e);
3171
3181
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
3172
3182
  }
3173
- const aa = na ? window : void 0;
3174
- function ra() {
3175
- const e = O(!1), n = rn();
3183
+ const ia = la ? window : void 0;
3184
+ function ua() {
3185
+ const e = $(!1), n = rn();
3176
3186
  return n && se(() => {
3177
3187
  e.value = !0;
3178
3188
  }, n), e;
3179
3189
  }
3180
- function ia(e) {
3181
- const n = ra();
3190
+ function ca(e) {
3191
+ const n = ua();
3182
3192
  return L(() => (n.value, !!e()));
3183
3193
  }
3184
- function ua(e, n, t = {}) {
3185
- const { window: o = aa, ...l } = t;
3194
+ function da(e, n, t = {}) {
3195
+ const { window: o = ia, ...l } = t;
3186
3196
  let s;
3187
- const r = ia(() => o && "ResizeObserver" in o), a = () => {
3197
+ const r = ca(() => o && "ResizeObserver" in o), a = () => {
3188
3198
  s && (s.disconnect(), s = void 0);
3189
3199
  }, i = L(() => Array.isArray(e) ? e.map((d) => Qt(d)) : [Qt(e)]), u = F(
3190
3200
  i,
3191
3201
  (d) => {
3192
3202
  if (a(), r.value && o) {
3193
3203
  s = new ResizeObserver(n);
3194
- for (const x of d)
3195
- x && s.observe(x, l);
3204
+ for (const w of d)
3205
+ w && s.observe(w, l);
3196
3206
  }
3197
3207
  },
3198
3208
  { immediate: !0, flush: "post" }
3199
3209
  ), c = () => {
3200
3210
  a(), u();
3201
3211
  };
3202
- return ta(c), {
3212
+ return oa(c), {
3203
3213
  isSupported: r,
3204
3214
  stop: c
3205
3215
  };
3206
3216
  }
3207
3217
  function st(e) {
3208
3218
  var n;
3209
- const t = O(e == null ? void 0 : e.element), o = O(e == null ? void 0 : e.input), l = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", s = O(1);
3219
+ const t = $(e == null ? void 0 : e.element), o = $(e == null ? void 0 : e.input), l = (n = e == null ? void 0 : e.styleProp) != null ? n : "height", s = $(1);
3210
3220
  function r() {
3211
3221
  var a;
3212
3222
  if (!t.value)
@@ -3217,13 +3227,13 @@ function st(e) {
3217
3227
  return F([o, t], () => X(r), { immediate: !0 }), F(s, () => {
3218
3228
  var a;
3219
3229
  return (a = e == null ? void 0 : e.onResize) == null ? void 0 : a.call(e);
3220
- }), ua(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3230
+ }), da(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3221
3231
  textarea: t,
3222
3232
  input: o,
3223
3233
  triggerResize: r
3224
3234
  };
3225
3235
  }
3226
- const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, da = {
3236
+ const fa = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, va = {
3227
3237
  __name: "Input",
3228
3238
  props: {
3229
3239
  text: {
@@ -3237,23 +3247,23 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3237
3247
  },
3238
3248
  emits: ["change", "clear", "loadTTS"],
3239
3249
  setup(e, { emit: n }) {
3240
- const t = ve(), o = e, l = O(o.text), s = L(() => t.src), r = L(() => t.srcLabel), a = L(() => {
3241
- var C;
3242
- return (C = t.phonetic) == null ? void 0 : C.src;
3243
- }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = sa(() => {
3250
+ const t = ve(), o = e, l = $(o.text), s = L(() => t.src), r = L(() => t.srcLabel), a = L(() => {
3251
+ var y;
3252
+ return (y = t.phonetic) == null ? void 0 : y.src;
3253
+ }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = ra(() => {
3244
3254
  u("change", l.value);
3245
- }, Ie.INPUT_DEBOUNCE);
3255
+ }, Le.INPUT_DEBOUNCE);
3246
3256
  se(() => {
3247
3257
  m();
3248
3258
  });
3249
3259
  function d() {
3250
3260
  if (!l.value) {
3251
- x();
3261
+ w();
3252
3262
  return;
3253
3263
  }
3254
3264
  c();
3255
3265
  }
3256
- function x() {
3266
+ function w() {
3257
3267
  u("clear"), l.value = "", i.value.focus();
3258
3268
  }
3259
3269
  async function m() {
@@ -3261,10 +3271,10 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3261
3271
  }
3262
3272
  return F(
3263
3273
  () => o.text,
3264
- (C) => {
3265
- l.value !== C && m(), l.value = C;
3274
+ (y) => {
3275
+ l.value !== y && m(), l.value = y;
3266
3276
  }
3267
- ), (C, b) => (h(), g("div", ca, [
3277
+ ), (y, x) => (h(), C("div", fa, [
3268
3278
  B(Bn, {
3269
3279
  src: s.value,
3270
3280
  srcLabel: r.value,
@@ -3272,13 +3282,13 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3272
3282
  type: "src",
3273
3283
  phonetic: a.value,
3274
3284
  hasClearBtn: l.value.length > 0,
3275
- onClear: x,
3276
- onLoadTTS: b[0] || (b[0] = (I) => u("loadTTS"))
3285
+ onClear: w,
3286
+ onLoadTTS: x[0] || (x[0] = (O) => u("loadTTS"))
3277
3287
  }, null, 8, ["src", "srcLabel", "isTTS", "phonetic", "hasClearBtn"]),
3278
3288
  tt(f("textarea", {
3279
3289
  ref_key: "textarea",
3280
3290
  ref: i,
3281
- "onUpdate:modelValue": b[1] || (b[1] = (I) => l.value = I),
3291
+ "onUpdate:modelValue": x[1] || (x[1] = (O) => l.value = O),
3282
3292
  class: "w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden",
3283
3293
  autofocus: "",
3284
3294
  rows: "2",
@@ -3294,7 +3304,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3294
3304
  ])
3295
3305
  ]));
3296
3306
  }
3297
- }, fa = /* @__PURE__ */ he(da, [["__scopeId", "data-v-66ae5655"]]), va = { class: "bg-base-100 relative z-10 rounded-md h-full" }, pa = { class: "bg-transparent" }, ha = {
3307
+ }, pa = /* @__PURE__ */ he(va, [["__scopeId", "data-v-66ae5655"]]), ha = { class: "bg-base-100 relative z-10 rounded-md h-full" }, ma = { class: "bg-transparent" }, ga = {
3298
3308
  __name: "Result",
3299
3309
  props: {
3300
3310
  isFavoriteFeatureEnabled: Boolean,
@@ -3309,10 +3319,10 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3309
3319
  emits: ["loadTTS", "favorite", "aiTranslate", "copy"],
3310
3320
  setup(e, { emit: n }) {
3311
3321
  const t = ve(), o = L(() => t.result), l = L(() => t.target), s = L(() => t.targetLabel), r = L(() => {
3312
- var x;
3313
- return (x = t.phonetic) == null ? void 0 : x.target;
3322
+ var w;
3323
+ return (w = t.phonetic) == null ? void 0 : w.target;
3314
3324
  }), a = xe(), i = L(() => a.isLoading("translation")), { textarea: u, input: c } = st({ input: o, styleProp: "minHeight" }), d = n;
3315
- return (x, m) => (h(), g("div", {
3325
+ return (w, m) => (h(), C("div", {
3316
3326
  class: P([
3317
3327
  "relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border border-base-300 rounded",
3318
3328
  {
@@ -3320,7 +3330,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3320
3330
  }
3321
3331
  ])
3322
3332
  }, [
3323
- f("div", va, [
3333
+ f("div", ha, [
3324
3334
  B(Bn, {
3325
3335
  loading: i.value,
3326
3336
  src: l.value,
@@ -3333,79 +3343,79 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3333
3343
  isFavorite: e.isFavorite,
3334
3344
  isAITranslate: e.isAITranslate,
3335
3345
  phonetic: r.value,
3336
- onFavorite: m[0] || (m[0] = (C) => d("favorite")),
3337
- onLoadTTS: m[1] || (m[1] = (C) => d("loadTTS")),
3338
- onAiTranslate: m[2] || (m[2] = (C) => d("aiTranslate")),
3339
- onCopy: m[3] || (m[3] = (C) => d("copy"))
3346
+ onFavorite: m[0] || (m[0] = (y) => d("favorite")),
3347
+ onLoadTTS: m[1] || (m[1] = (y) => d("loadTTS")),
3348
+ onAiTranslate: m[2] || (m[2] = (y) => d("aiTranslate")),
3349
+ onCopy: m[3] || (m[3] = (y) => d("copy"))
3340
3350
  }, null, 8, ["loading", "src", "srcLabel", "isTTS", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "phonetic"]),
3341
- f("div", pa, [
3351
+ f("div", ma, [
3342
3352
  tt(f("textarea", {
3343
3353
  ref_key: "textarea",
3344
3354
  ref: u,
3345
- "onUpdate:modelValue": m[4] || (m[4] = (C) => $e(c) ? c.value = C : null),
3355
+ "onUpdate:modelValue": m[4] || (m[4] = (y) => $e(c) ? c.value = y : null),
3346
3356
  class: "w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden",
3347
3357
  readonly: "",
3348
3358
  rows: "2",
3349
3359
  spellcheck: "false"
3350
3360
  }, null, 512), [
3351
- [nt, M(c)]
3361
+ [nt, k(c)]
3352
3362
  ])
3353
3363
  ])
3354
3364
  ])
3355
3365
  ], 2));
3356
3366
  }
3357
- }, ma = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-88599360"]]), ga = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3367
+ }, ba = /* @__PURE__ */ he(ga, [["__scopeId", "data-v-88599360"]]), Ca = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3358
3368
  __name: "ToggleBtn",
3359
3369
  props: {
3360
3370
  isExpanded: Boolean
3361
3371
  },
3362
3372
  setup(e) {
3363
3373
  const n = e;
3364
- return (t, o) => (h(), g("button", ga, [
3365
- n.isExpanded ? (h(), W(M(wl), {
3374
+ return (t, o) => (h(), C("button", Ca, [
3375
+ n.isExpanded ? (h(), W(k(Tl), {
3366
3376
  key: 0,
3367
3377
  class: "w-7 text-base-content/50"
3368
- })) : (h(), W(M(xl), {
3378
+ })) : (h(), W(k(wl), {
3369
3379
  key: 1,
3370
3380
  class: "w-7 text-base-content/50"
3371
3381
  }))
3372
3382
  ]));
3373
3383
  }
3374
- }, ba = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), Ca = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, xa = { class: "list-none list-inside" }, ya = ["onClick"], wa = { class: "text-sm font-normal text-base-content/80 leading-4" }, _a = {
3384
+ }, xa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), ya = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, wa = { class: "list-none list-inside" }, _a = ["onClick"], Ta = { class: "text-sm font-normal text-base-content/80 leading-4" }, Sa = {
3375
3385
  __name: "Dictionary",
3376
3386
  emits: ["translate"],
3377
3387
  setup(e, { emit: n }) {
3378
- const t = O(!0), o = ve(), l = Oe(), s = L(() => o.dictionary), r = n, a = () => {
3388
+ const t = $(!0), o = ve(), l = Oe(), s = L(() => o.dictionary), r = n, a = () => {
3379
3389
  t.value = !t.value;
3380
3390
  }, i = (u) => {
3381
3391
  r("translate", u, o.target, o.src), l.src = o.target, l.target = o.src, window.scrollTo(0, 0);
3382
3392
  };
3383
- return (u, c) => (h(), g(z, null, [
3393
+ return (u, c) => (h(), C(z, null, [
3384
3394
  f("div", {
3385
3395
  class: "flex justify-between items-center",
3386
3396
  onClick: a
3387
3397
  }, [
3388
- ba,
3398
+ xa,
3389
3399
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3390
3400
  ]),
3391
3401
  f("div", {
3392
3402
  class: P(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3393
3403
  }, [
3394
3404
  f("ul", null, [
3395
- (h(!0), g(z, null, Y(s.value, (d, x) => (h(), g("li", {
3396
- key: `${d.pos}-${x}`,
3405
+ (h(!0), C(z, null, Y(s.value, (d, w) => (h(), C("li", {
3406
+ key: `${d.pos}-${w}`,
3397
3407
  class: "mb-2"
3398
3408
  }, [
3399
- f("h5", Ca, G(d.pos), 1),
3400
- f("ul", xa, [
3401
- (h(!0), g(z, null, Y(d.items, (m, C) => (h(), g("li", {
3402
- key: `${m.word}-${C}`
3409
+ f("h5", ya, G(d.pos), 1),
3410
+ f("ul", wa, [
3411
+ (h(!0), C(z, null, Y(d.items, (m, y) => (h(), C("li", {
3412
+ key: `${m.word}-${y}`
3403
3413
  }, [
3404
3414
  f("span", {
3405
3415
  class: "m-0.5 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3406
- onClick: (b) => i(m.word)
3407
- }, G(m.word), 9, ya),
3408
- f("small", wa, " - " + G(m.reverse_translation.join(", ")), 1)
3416
+ onClick: (x) => i(m.word)
3417
+ }, G(m.word), 9, _a),
3418
+ f("small", Ta, " - " + G(m.reverse_translation.join(", ")), 1)
3409
3419
  ]))), 128))
3410
3420
  ])
3411
3421
  ]))), 128))
@@ -3413,40 +3423,40 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3413
3423
  ], 2)
3414
3424
  ], 64));
3415
3425
  }
3416
- }, Ta = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), Sa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ea = { class: "text-sm text-base-content list-disc list-outside ml-5" }, $a = /* @__PURE__ */ f("br", null, null, -1), Oa = {
3426
+ }, Ea = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), $a = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Oa = { class: "text-sm text-base-content list-disc list-outside ml-5" }, La = /* @__PURE__ */ f("br", null, null, -1), Ia = {
3417
3427
  key: 0,
3418
3428
  class: "italic text-base-content/70"
3419
- }, Ia = {
3429
+ }, ka = {
3420
3430
  __name: "Definition",
3421
3431
  setup(e) {
3422
- const n = O(!0), t = ve(), o = L(() => t.definitions), l = () => {
3432
+ const n = $(!0), t = ve(), o = L(() => t.definitions), l = () => {
3423
3433
  n.value = !n.value;
3424
3434
  };
3425
- return (s, r) => (h(), g(z, null, [
3435
+ return (s, r) => (h(), C(z, null, [
3426
3436
  f("div", {
3427
3437
  class: "flex justify-between items-center",
3428
3438
  onClick: l
3429
3439
  }, [
3430
- Ta,
3440
+ Ea,
3431
3441
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3432
3442
  ]),
3433
3443
  f("div", {
3434
3444
  class: P(["overflow-hidden", n.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3435
3445
  }, [
3436
3446
  f("ul", null, [
3437
- (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3447
+ (h(!0), C(z, null, Y(o.value, (a, i) => (h(), C("li", {
3438
3448
  key: `${a.pos}-${i}`,
3439
3449
  class: "mb-2"
3440
3450
  }, [
3441
- f("h5", Sa, G(a.pos), 1),
3442
- f("ul", Ea, [
3443
- (h(!0), g(z, null, Y(a.items, (u, c) => (h(), g("li", {
3451
+ f("h5", $a, G(a.pos), 1),
3452
+ f("ul", Oa, [
3453
+ (h(!0), C(z, null, Y(a.items, (u, c) => (h(), C("li", {
3444
3454
  key: `${u.gloss}-${c}`,
3445
3455
  class: "mb-1"
3446
3456
  }, [
3447
3457
  f("span", null, G(u.gloss), 1),
3448
- $a,
3449
- u.example ? (h(), g("small", Oa, '"' + G(u.example) + '"', 1)) : R("", !0)
3458
+ La,
3459
+ u.example ? (h(), C("small", Ia, '"' + G(u.example) + '"', 1)) : R("", !0)
3450
3460
  ]))), 128))
3451
3461
  ])
3452
3462
  ]))), 128))
@@ -3454,69 +3464,69 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3454
3464
  ], 2)
3455
3465
  ], 64));
3456
3466
  }
3457
- }, La = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), ka = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Ma = ["innerHTML"], Aa = {
3467
+ }, Ma = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), Aa = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Va = ["innerHTML"], Da = {
3458
3468
  __name: "Example",
3459
3469
  setup(e) {
3460
- const n = O(!0), t = ve(), o = L(() => t.examples), l = () => {
3470
+ const n = $(!0), t = ve(), o = L(() => t.examples), l = () => {
3461
3471
  n.value = !n.value;
3462
3472
  };
3463
- return (s, r) => (h(), g(z, null, [
3473
+ return (s, r) => (h(), C(z, null, [
3464
3474
  f("div", {
3465
3475
  class: "flex justify-between items-center",
3466
3476
  onClick: l
3467
3477
  }, [
3468
- La,
3478
+ Ma,
3469
3479
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3470
3480
  ]),
3471
3481
  f("div", {
3472
3482
  class: P(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3473
3483
  }, [
3474
- f("ul", ka, [
3475
- (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3484
+ f("ul", Aa, [
3485
+ (h(!0), C(z, null, Y(o.value, (a, i) => (h(), C("li", {
3476
3486
  key: `${a.definition_id}-${i}`,
3477
3487
  innerHTML: a
3478
- }, null, 8, Ma))), 128))
3488
+ }, null, 8, Va))), 128))
3479
3489
  ])
3480
3490
  ], 2)
3481
3491
  ], 64));
3482
3492
  }
3483
- }, Va = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Da = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ra = { class: "list-none list-inside" }, Pa = { class: "flex flex-wrap" }, Na = ["onClick"], Ba = {
3493
+ }, Ra = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Pa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Na = { class: "list-none list-inside" }, Ba = { class: "flex flex-wrap" }, Fa = ["onClick"], ja = {
3484
3494
  __name: "Synonyms",
3485
3495
  emits: ["translate"],
3486
3496
  setup(e, { emit: n }) {
3487
- const t = O(!0), o = ve(), l = L(() => o.synonyms), s = n, r = () => {
3497
+ const t = $(!0), o = ve(), l = L(() => o.synonyms), s = n, r = () => {
3488
3498
  t.value = !t.value;
3489
3499
  }, a = (i) => {
3490
3500
  s("translate", i), window.scrollTo(0, 0);
3491
3501
  };
3492
- return (i, u) => (h(), g(z, null, [
3502
+ return (i, u) => (h(), C(z, null, [
3493
3503
  f("div", {
3494
3504
  class: "flex justify-between items-center",
3495
3505
  onClick: r
3496
3506
  }, [
3497
- Va,
3507
+ Ra,
3498
3508
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3499
3509
  ]),
3500
3510
  f("div", {
3501
3511
  class: P(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3502
3512
  }, [
3503
3513
  f("ul", null, [
3504
- (h(!0), g(z, null, Y(l.value, (c, d) => (h(), g("li", {
3514
+ (h(!0), C(z, null, Y(l.value, (c, d) => (h(), C("li", {
3505
3515
  key: `${c.pos}-${d}`,
3506
3516
  class: "mb-2"
3507
3517
  }, [
3508
- f("h5", Da, G(c.pos), 1),
3509
- f("ul", Ra, [
3510
- (h(!0), g(z, null, Y(c.items, (x, m) => (h(), g("li", {
3511
- key: `${x.word}-${m}`,
3518
+ f("h5", Pa, G(c.pos), 1),
3519
+ f("ul", Na, [
3520
+ (h(!0), C(z, null, Y(c.items, (w, m) => (h(), C("li", {
3521
+ key: `${w.word}-${m}`,
3512
3522
  class: "mb-2"
3513
3523
  }, [
3514
- f("div", Pa, [
3515
- (h(!0), g(z, null, Y(x.synonym, (C, b) => (h(), g("span", {
3516
- key: `${C}-${b}`,
3524
+ f("div", Ba, [
3525
+ (h(!0), C(z, null, Y(w.synonym, (y, x) => (h(), C("span", {
3526
+ key: `${y}-${x}`,
3517
3527
  class: "m-0.5 ml-0 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3518
- onClick: (I) => a(C)
3519
- }, G(C), 9, Na))), 128))
3528
+ onClick: (O) => a(y)
3529
+ }, G(y), 9, Fa))), 128))
3520
3530
  ])
3521
3531
  ]))), 128))
3522
3532
  ])
@@ -3525,62 +3535,62 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3525
3535
  ], 2)
3526
3536
  ], 64));
3527
3537
  }
3528
- }, Fa = ["disabled"], ja = /* @__PURE__ */ f("path", {
3538
+ }, Ha = ["disabled"], za = /* @__PURE__ */ f("path", {
3529
3539
  stroke: "currentColor",
3530
3540
  "stroke-linecap": "round",
3531
3541
  "stroke-linejoin": "round",
3532
3542
  "stroke-width": "2",
3533
3543
  d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
3534
- }, null, -1), Ha = [
3535
- ja
3536
- ], za = /* @__PURE__ */ f("path", {
3544
+ }, null, -1), Za = [
3545
+ za
3546
+ ], Ua = /* @__PURE__ */ f("path", {
3537
3547
  fill: "currentColor",
3538
3548
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
3539
- }, null, -1), Za = /* @__PURE__ */ f("path", {
3549
+ }, null, -1), Wa = /* @__PURE__ */ f("path", {
3540
3550
  stroke: "currentColor",
3541
3551
  "stroke-linecap": "round",
3542
3552
  "stroke-linejoin": "round",
3543
3553
  "stroke-width": "2",
3544
3554
  d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
3545
- }, null, -1), Ua = [
3546
- za,
3547
- Za
3548
- ], Wa = {
3555
+ }, null, -1), qa = [
3556
+ Ua,
3557
+ Wa
3558
+ ], Ga = {
3549
3559
  __name: "ChevronAIBtn",
3550
3560
  props: {
3551
3561
  disabled: Boolean,
3552
3562
  isExpanded: Boolean
3553
3563
  },
3554
3564
  setup(e) {
3555
- return (n, t) => (h(), g("button", {
3565
+ return (n, t) => (h(), C("button", {
3556
3566
  class: P(["btn btn-xs btn-circle", [
3557
3567
  { "btn-ghost": !e.disabled },
3558
3568
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
3559
3569
  ]]),
3560
3570
  disabled: e.disabled
3561
3571
  }, [
3562
- e.isExpanded ? (h(), g("svg", {
3572
+ e.isExpanded ? (h(), C("svg", {
3563
3573
  key: 1,
3564
3574
  class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3565
3575
  viewBox: "0 0 24 24",
3566
3576
  xmlns: "http://www.w3.org/2000/svg",
3567
3577
  fill: "none"
3568
- }, Ua, 2)) : (h(), g("svg", {
3578
+ }, qa, 2)) : (h(), C("svg", {
3569
3579
  key: 0,
3570
3580
  class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3571
3581
  viewBox: "0 0 24 24",
3572
3582
  xmlns: "http://www.w3.org/2000/svg",
3573
3583
  fill: "none"
3574
- }, Ha, 2))
3575
- ], 10, Fa));
3584
+ }, Za, 2))
3585
+ ], 10, Ha));
3576
3586
  }
3577
- }, qa = { class: "p-2 gap-0 relative z-10" }, Ga = { class: "flex justify-between items-center" }, Ja = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Ya = { class: "flex items-center" }, Qa = {
3587
+ }, Ja = { class: "p-2 gap-0 relative z-10" }, Ya = { class: "flex justify-between items-center" }, Qa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Xa = { class: "flex items-center" }, Ka = {
3578
3588
  class: "tooltip tooltip-bottom tooltip-small before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded before:!text-base-content/70 before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
3579
3589
  "data-tip": "AI Summarize"
3580
- }, Xa = {
3590
+ }, er = {
3581
3591
  key: 0,
3582
3592
  class: "text-base-content list-none list-outside"
3583
- }, Ka = ["innerHTML"], er = {
3593
+ }, tr = ["innerHTML"], nr = {
3584
3594
  __name: "AIExplanation",
3585
3595
  props: {
3586
3596
  isAIExplain: {
@@ -3601,13 +3611,13 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3601
3611
  }
3602
3612
  return (r, a) => {
3603
3613
  var i, u;
3604
- return h(), g("div", qa, [
3605
- f("div", Ga, [
3606
- Ja,
3607
- f("div", Ya, [
3614
+ return h(), C("div", Ja, [
3615
+ f("div", Ya, [
3616
+ Qa,
3617
+ f("div", Xa, [
3608
3618
  o.value ? (h(), W(Mt, { key: 0 })) : R("", !0),
3609
- f("div", Qa, [
3610
- B(Wa, {
3619
+ f("div", Ka, [
3620
+ B(Ga, {
3611
3621
  isExpanded: e.isAIExplain,
3612
3622
  disabled: o.value,
3613
3623
  onClick: s
@@ -3618,52 +3628,52 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3618
3628
  f("div", {
3619
3629
  class: P(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3620
3630
  }, [
3621
- (i = e.explanation) != null && i.result ? (h(), g("ul", Xa, [
3622
- (h(!0), g(z, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
3623
- `)) || [], (c, d) => (h(), g("li", {
3631
+ (i = e.explanation) != null && i.result ? (h(), C("ul", er, [
3632
+ (h(!0), C(z, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
3633
+ `)) || [], (c, d) => (h(), C("li", {
3624
3634
  key: `${c}-${d}`,
3625
3635
  innerHTML: c
3626
- }, null, 8, Ka))), 128))
3636
+ }, null, 8, tr))), 128))
3627
3637
  ])) : R("", !0)
3628
3638
  ], 2)
3629
3639
  ]);
3630
3640
  };
3631
3641
  }
3632
3642
  };
3633
- function tr() {
3643
+ function or() {
3634
3644
  document.documentElement.setAttribute("dir", "rtl");
3635
3645
  }
3636
- function nr() {
3646
+ function lr() {
3637
3647
  document.documentElement.removeAttribute("dir");
3638
3648
  }
3639
3649
  const Xt = {
3640
- supportRTL: tr,
3641
- removeRTL: nr
3642
- }, or = ["ar", "fa", "iw", "yi", "ur", "pa"], lr = (e) => (Et("data-v-08f9cb53"), e = e(), $t(), e), sr = { class: "pb-6" }, ar = { class: "flex flex-col lg:flex-row lg:gap-2" }, rr = {
3650
+ supportRTL: or,
3651
+ removeRTL: lr
3652
+ }, sr = ["ar", "fa", "iw", "yi", "ur", "pa"], ar = (e) => (Et("data-v-ba5c119c"), e = e(), $t(), e), rr = { class: "pb-6" }, ir = { class: "flex flex-col lg:flex-row lg:gap-2" }, ur = {
3643
3653
  id: "input",
3644
3654
  class: "w-full lg:w-[calc(50%-1rem)] flex mt-1"
3645
- }, ir = /* @__PURE__ */ lr(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), ur = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, cr = {
3655
+ }, cr = /* @__PURE__ */ ar(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), dr = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, fr = {
3646
3656
  key: 0,
3647
3657
  class: "masonry-container mt-1"
3648
- }, dr = {
3658
+ }, vr = {
3649
3659
  key: 0,
3650
3660
  class: "masonry-item border border-base-300 bg-base-100"
3651
- }, fr = {
3661
+ }, pr = {
3652
3662
  key: 1,
3653
3663
  class: "masonry-item border border-base-300 bg-base-100"
3654
- }, vr = { class: "p-2" }, pr = {
3664
+ }, hr = { class: "p-2" }, mr = {
3655
3665
  key: 2,
3656
3666
  class: "masonry-item border border-base-300 bg-base-100"
3657
- }, hr = { class: "p-2" }, mr = {
3667
+ }, gr = { class: "p-2" }, br = {
3658
3668
  key: 3,
3659
3669
  class: "masonry-item border border-base-300 bg-base-100"
3660
- }, gr = { class: "p-2" }, br = {
3670
+ }, Cr = { class: "p-2" }, xr = {
3661
3671
  key: 4,
3662
3672
  class: "masonry-item border border-base-300 bg-base-100"
3663
- }, Cr = { class: "p-2" }, xr = {
3673
+ }, yr = { class: "p-2" }, wr = {
3664
3674
  key: 1,
3665
3675
  class: "text-base-content italic font-medium"
3666
- }, yr = {
3676
+ }, _r = {
3667
3677
  __name: "TranslateTab",
3668
3678
  props: {
3669
3679
  opt: Object,
@@ -3689,174 +3699,179 @@ const Xt = {
3689
3699
  "copy"
3690
3700
  ],
3691
3701
  setup(e, { emit: n }) {
3692
- const t = O(""), o = e, l = le("translationStore"), s = le("ttsStore"), r = le("languageStore"), a = le("loaderStore"), i = n, u = () => {
3693
- const $ = o.opt.target;
3694
- or.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3702
+ const t = $(""), o = $(!1), l = e, s = le("translationStore"), r = le("ttsStore"), a = le("languageStore"), i = le("loaderStore"), u = n, c = () => {
3703
+ const b = l.opt.target;
3704
+ sr.includes(b) ? Xt.supportRTL() : Xt.removeRTL();
3695
3705
  };
3696
3706
  F(
3697
- () => o.translation,
3698
- ($) => {
3699
- a.setLoading("translation", !1), $ && (t.value = $.text, l.init($), s.reset());
3707
+ () => l.translation,
3708
+ (b) => {
3709
+ if (!b) {
3710
+ i.setLoading("translation", !1);
3711
+ return;
3712
+ }
3713
+ const g = b.text || "", _ = t.value || "";
3714
+ o.value && g !== _ || (i.setLoading("translation", !1), t.value = g, s.init(b), r.reset());
3700
3715
  },
3701
3716
  { immediate: !0 }
3702
3717
  ), F(
3703
- [() => o.explanation, () => o.isAIExplain],
3704
- ([$]) => {
3705
- $ != null && $.result && a.setLoading("aiExplanation", !1);
3718
+ [() => l.explanation, () => l.isAIExplain],
3719
+ ([b]) => {
3720
+ b != null && b.result && i.setLoading("aiExplanation", !1);
3706
3721
  },
3707
3722
  { immediate: !0, deep: !0 }
3708
3723
  ), F(
3709
- () => o.tts,
3710
- ($) => {
3711
- if (!$) {
3712
- s.reset();
3724
+ () => l.tts,
3725
+ (b) => {
3726
+ if (!b) {
3727
+ r.reset();
3713
3728
  return;
3714
3729
  }
3715
- s.set($);
3730
+ r.set(b);
3716
3731
  },
3717
3732
  { immediate: !0 }
3718
- ), F([() => o.opt, () => o.languages], ([$, w]) => {
3719
- r.init($, w), u();
3720
- }), F([() => r.src, () => r.target], ([$, w]) => {
3721
- i("opt", { src: $, target: w }), m(t.value);
3733
+ ), F([() => l.opt, () => l.languages], ([b, g]) => {
3734
+ a.init(b, g), c();
3735
+ }), F([() => a.src, () => a.target], ([b, g]) => {
3736
+ u("opt", { src: b, target: g }), y(t.value);
3722
3737
  }), se(() => {
3723
- r.init(o.opt, o.languages), u();
3738
+ a.init(l.opt, l.languages), c();
3724
3739
  });
3725
- function c() {
3726
- t.value = "", o.isAITranslate && C(), l.reset();
3740
+ function d() {
3741
+ o.value = !0, t.value = "", i.setLoading("translation", !1), l.isAITranslate && x(), s.reset();
3727
3742
  }
3728
- function d($) {
3729
- t.value = $, m($);
3743
+ function w(b) {
3744
+ o.value = !0, t.value = b, y(b);
3730
3745
  }
3731
- function x($) {
3732
- const w = $ === "src" ? l.text : l.result;
3733
- i("loadTTS", { type: $, data: w });
3746
+ function m(b) {
3747
+ const g = b === "src" ? s.text : s.result;
3748
+ u("loadTTS", { type: b, data: g });
3734
3749
  }
3735
- function m($, w = r.src, y = r.target) {
3736
- $ && (I(), t.value = $, a.setLoading("translation", !0), i("translate", {
3737
- src: w,
3738
- target: y,
3739
- text: $
3750
+ function y(b, g = a.src, _ = a.target) {
3751
+ b && (D(), t.value = b, i.setLoading("translation", !0), u("translate", {
3752
+ src: g,
3753
+ target: _,
3754
+ text: b
3740
3755
  }));
3741
3756
  }
3742
- function C() {
3743
- o.isAITranslate || a.setLoading("translation", !0), i("aiTranslate", {
3744
- src: r.src,
3745
- target: r.target,
3757
+ function x() {
3758
+ l.isAITranslate || i.setLoading("translation", !0), u("aiTranslate", {
3759
+ src: a.src,
3760
+ target: a.target,
3746
3761
  text: t.value
3747
3762
  });
3748
3763
  }
3749
- function b() {
3750
- o.isAIExplain || a.setLoading("aiExplanation", !0), i("aiExplain", {
3751
- src: r.src,
3752
- target: r.target,
3764
+ function O() {
3765
+ l.isAIExplain || i.setLoading("aiExplanation", !0), u("aiExplain", {
3766
+ src: a.src,
3767
+ target: a.target,
3753
3768
  text: t.value
3754
3769
  });
3755
3770
  }
3756
- function I() {
3757
- const $ = document.getElementById("input");
3758
- $ && $.getBoundingClientRect().top < 0 && $.scrollIntoView({ behavior: "smooth" });
3771
+ function D() {
3772
+ const b = document.getElementById("input");
3773
+ b && b.getBoundingClientRect().top < 0 && b.scrollIntoView({ behavior: "smooth" });
3759
3774
  }
3760
- return ($, w) => {
3761
- var y, _, T, V, S;
3762
- return h(), g("div", sr, [
3763
- B(hs),
3764
- f("div", ar, [
3765
- f("div", rr, [
3766
- B(fa, {
3775
+ return (b, g) => {
3776
+ var _, T, A, S, E;
3777
+ return h(), C("div", rr, [
3778
+ B(gs),
3779
+ f("div", ir, [
3780
+ f("div", ur, [
3781
+ B(pa, {
3767
3782
  text: t.value,
3768
3783
  isTTS: e.isTTS,
3769
- onChange: d,
3770
- onClear: c,
3771
- onLoadTTS: w[0] || (w[0] = (E) => x("src")),
3784
+ onChange: w,
3785
+ onClear: d,
3786
+ onLoadTTS: g[0] || (g[0] = (V) => m("src")),
3772
3787
  class: "flex-grow flex flex-col"
3773
3788
  }, null, 8, ["text", "isTTS"])
3774
3789
  ]),
3775
- ir,
3776
- f("div", ur, [
3777
- B(ma, {
3790
+ cr,
3791
+ f("div", dr, [
3792
+ B(ba, {
3778
3793
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3779
3794
  isAITranslateFeatureEnabled: e.isAITranslateFeatureEnabled,
3780
3795
  isAITranslate: e.isAITranslate,
3781
3796
  isFavorite: e.isFavorite,
3782
3797
  isTTS: e.isTTS,
3783
- onCopy: w[1] || (w[1] = (E) => {
3784
- var D;
3785
- return $.$emit("copy", (D = M(l)) == null ? void 0 : D.result);
3798
+ onCopy: g[1] || (g[1] = (V) => {
3799
+ var v;
3800
+ return b.$emit("copy", (v = k(s)) == null ? void 0 : v.result);
3786
3801
  }),
3787
- onAiTranslate: C,
3788
- onFavorite: w[2] || (w[2] = (E) => $.$emit("favorite")),
3789
- onLoadTTS: w[3] || (w[3] = (E) => x("target")),
3802
+ onAiTranslate: x,
3803
+ onFavorite: g[2] || (g[2] = (V) => b.$emit("favorite")),
3804
+ onLoadTTS: g[3] || (g[3] = (V) => m("target")),
3790
3805
  class: "flex-grow flex flex-col"
3791
3806
  }, null, 8, ["isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isAITranslate", "isFavorite", "isTTS"])
3792
3807
  ])
3793
3808
  ]),
3794
- e.translation ? (h(), g("div", cr, [
3795
- ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", dr, [
3796
- B(er, {
3809
+ e.translation ? (h(), C("div", fr, [
3810
+ ((_ = k(s).result) == null ? void 0 : _.length) > e.aiExplainMinLength ? (h(), C("div", vr, [
3811
+ B(nr, {
3797
3812
  isAIExplain: e.isAIExplain,
3798
3813
  explanation: e.explanation,
3799
- onAiExplain: b
3814
+ onAiExplain: O
3800
3815
  }, null, 8, ["isAIExplain", "explanation"])
3801
3816
  ])) : R("", !0),
3802
- (_ = M(l).dictionary) != null && _.length ? (h(), g("div", fr, [
3803
- f("div", vr, [
3804
- B(_a, { onTranslate: m })
3805
- ])
3806
- ])) : R("", !0),
3807
- (T = M(l).definitions) != null && T.length ? (h(), g("div", pr, [
3817
+ (T = k(s).dictionary) != null && T.length ? (h(), C("div", pr, [
3808
3818
  f("div", hr, [
3809
- B(Ia)
3819
+ B(Sa, { onTranslate: y })
3810
3820
  ])
3811
3821
  ])) : R("", !0),
3812
- (V = M(l).synonyms) != null && V.length ? (h(), g("div", mr, [
3822
+ (A = k(s).definitions) != null && A.length ? (h(), C("div", mr, [
3813
3823
  f("div", gr, [
3814
- B(Ba, { onTranslate: m })
3824
+ B(ka)
3815
3825
  ])
3816
3826
  ])) : R("", !0),
3817
- (S = M(l).examples) != null && S.length ? (h(), g("div", br, [
3827
+ (S = k(s).synonyms) != null && S.length ? (h(), C("div", br, [
3818
3828
  f("div", Cr, [
3819
- B(Aa)
3829
+ B(ja, { onTranslate: y })
3830
+ ])
3831
+ ])) : R("", !0),
3832
+ (E = k(s).examples) != null && E.length ? (h(), C("div", xr, [
3833
+ f("div", yr, [
3834
+ B(Da)
3820
3835
  ])
3821
3836
  ])) : R("", !0)
3822
- ])) : (h(), g("span", xr, "Service unavailable"))
3837
+ ])) : (h(), C("span", wr, "Service unavailable"))
3823
3838
  ]);
3824
3839
  };
3825
3840
  }
3826
- }, wr = /* @__PURE__ */ he(yr, [["__scopeId", "data-v-08f9cb53"]]), _r = ["disabled"], Tr = /* @__PURE__ */ f("path", {
3841
+ }, Tr = /* @__PURE__ */ he(_r, [["__scopeId", "data-v-ba5c119c"]]), Sr = ["disabled"], Er = /* @__PURE__ */ f("path", {
3827
3842
  "stroke-linecap": "round",
3828
3843
  "stroke-linejoin": "round",
3829
3844
  "stroke-width": "2",
3830
3845
  d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
3831
- }, null, -1), Sr = [
3832
- Tr
3833
- ], Er = {
3846
+ }, null, -1), $r = [
3847
+ Er
3848
+ ], Or = {
3834
3849
  __name: "RetryBtn",
3835
3850
  props: {
3836
3851
  disabled: Boolean
3837
3852
  },
3838
3853
  emits: ["click"],
3839
3854
  setup(e) {
3840
- return (n, t) => (h(), g("button", {
3855
+ return (n, t) => (h(), C("button", {
3841
3856
  class: "bg-base-100 rounded-full hover:bg-base-200 focus:outline-none active:scale-95",
3842
3857
  onClick: t[0] || (t[0] = (o) => n.$emit("click")),
3843
3858
  disabled: e.disabled,
3844
3859
  "aria-label": "Retry"
3845
3860
  }, [
3846
- (h(), g("svg", {
3861
+ (h(), C("svg", {
3847
3862
  class: P(["h-5 w-5 text-primary", { "opacity-50": e.disabled }]),
3848
3863
  xmlns: "http://www.w3.org/2000/svg",
3849
3864
  fill: "none",
3850
3865
  viewBox: "0 0 24 24",
3851
3866
  stroke: "currentColor"
3852
- }, Sr, 2))
3853
- ], 8, _r));
3867
+ }, $r, 2))
3868
+ ], 8, Sr));
3854
3869
  }
3855
- }, $r = ["data-tip"], Or = ["disabled"], Ir = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Lr = [
3856
- Ir
3857
- ], kr = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Mr = [
3870
+ }, Lr = ["data-tip"], Ir = ["disabled"], kr = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Mr = [
3858
3871
  kr
3859
- ], Ar = {
3872
+ ], Ar = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Vr = [
3873
+ Ar
3874
+ ], Dr = {
3860
3875
  __name: "ToggleDiffBtn",
3861
3876
  props: {
3862
3877
  disabled: Boolean,
@@ -3864,7 +3879,7 @@ const Xt = {
3864
3879
  },
3865
3880
  emits: ["toggle"],
3866
3881
  setup(e) {
3867
- return (n, t) => (h(), g("div", {
3882
+ return (n, t) => (h(), C("div", {
3868
3883
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
3869
3884
  "data-tip": e.isDiffMode ? "Hide Differences" : "Show Differences"
3870
3885
  }, [
@@ -3876,23 +3891,23 @@ const Xt = {
3876
3891
  disabled: e.disabled,
3877
3892
  onClick: t[0] || (t[0] = (o) => n.$emit("toggle"))
3878
3893
  }, [
3879
- e.isDiffMode ? (h(), g("svg", {
3894
+ e.isDiffMode ? (h(), C("svg", {
3880
3895
  key: 1,
3881
3896
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3882
3897
  fill: "currentColor",
3883
3898
  viewBox: "0 0 24 24",
3884
3899
  xmlns: "http://www.w3.org/2000/svg"
3885
- }, Mr, 2)) : (h(), g("svg", {
3900
+ }, Vr, 2)) : (h(), C("svg", {
3886
3901
  key: 0,
3887
3902
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3888
3903
  fill: "currentColor",
3889
3904
  viewBox: "0 0 24 24",
3890
3905
  xmlns: "http://www.w3.org/2000/svg"
3891
- }, Lr, 2))
3892
- ], 10, Or)
3893
- ], 8, $r));
3906
+ }, Mr, 2))
3907
+ ], 10, Ir)
3908
+ ], 8, Lr));
3894
3909
  }
3895
- }, Vr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Dr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3910
+ }, Rr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Pr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3896
3911
  __name: "InputBtnGroup",
3897
3912
  props: {
3898
3913
  loading: {
@@ -3926,13 +3941,13 @@ const Xt = {
3926
3941
  },
3927
3942
  emits: ["copy", "clear", "toggleDiff", "info"],
3928
3943
  setup(e) {
3929
- return (n, t) => (h(), g("div", Vr, [
3944
+ return (n, t) => (h(), C("div", Rr, [
3930
3945
  e.loading ? (h(), W(Mt, {
3931
3946
  key: 0,
3932
3947
  class: "absolute right-6 top-2"
3933
3948
  })) : R("", !0),
3934
- f("div", Dr, [
3935
- e.showDiffToggle ? (h(), W(Ar, {
3949
+ f("div", Pr, [
3950
+ e.showDiffToggle ? (h(), W(Dr, {
3936
3951
  key: 0,
3937
3952
  disabled: e.loading,
3938
3953
  isDiffMode: e.isDiffMode,
@@ -3950,7 +3965,7 @@ const Xt = {
3950
3965
  ])
3951
3966
  ]));
3952
3967
  }
3953
- }, Rr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Pr = ["onKeydown", "placeholder"], Nr = {
3968
+ }, Nr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Br = ["onKeydown", "placeholder"], Fr = {
3954
3969
  __name: "Input",
3955
3970
  props: {
3956
3971
  text: {
@@ -3960,7 +3975,7 @@ const Xt = {
3960
3975
  },
3961
3976
  emits: ["change", "clear", "improve"],
3962
3977
  setup(e, { emit: n }) {
3963
- const t = e, o = O(t.text), { textarea: l } = st({ input: o, styleProp: "minHeight" }), s = n;
3978
+ const t = e, o = $(t.text), { textarea: l } = st({ input: o, styleProp: "minHeight" }), s = n;
3964
3979
  function r() {
3965
3980
  if (!o.value) {
3966
3981
  a();
@@ -3986,7 +4001,7 @@ const Xt = {
3986
4001
  o.value = t.text, X(() => {
3987
4002
  l.value.focus(), i();
3988
4003
  });
3989
- }), (c, d) => (h(), g("div", Rr, [
4004
+ }), (c, d) => (h(), C("div", Nr, [
3990
4005
  B(Fn, {
3991
4006
  src: e.text,
3992
4007
  hasClearBtn: !0,
@@ -3997,15 +4012,15 @@ const Xt = {
3997
4012
  tt(f("textarea", {
3998
4013
  ref_key: "textarea",
3999
4014
  ref: l,
4000
- "onUpdate:modelValue": d[0] || (d[0] = (x) => o.value = x),
4015
+ "onUpdate:modelValue": d[0] || (d[0] = (w) => o.value = w),
4001
4016
  class: "w-full outline-none px-2 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden h-full",
4002
4017
  autofocus: "",
4003
4018
  rows: "2",
4004
4019
  onInput: r,
4005
4020
  onFocus: i,
4006
4021
  onKeydown: Jn(ft(u, ["ctrl", "prevent"]), ["enter"]),
4007
- placeholder: `Min ${M(Ie).IMPROVE_INPUT_MIN_LENGTH} characters. ${M(vt) ? "" : "Ctrl+Enter to improve"}`
4008
- }, null, 40, Pr), [
4022
+ placeholder: `Min ${k(Le).IMPROVE_INPUT_MIN_LENGTH} characters. ${k(vt) ? "" : "Ctrl+Enter to improve"}`
4023
+ }, null, 40, Br), [
4009
4024
  [
4010
4025
  nt,
4011
4026
  o.value,
@@ -4015,7 +4030,7 @@ const Xt = {
4015
4030
  ])
4016
4031
  ]));
4017
4032
  }
4018
- }, Br = /* @__PURE__ */ he(Nr, [["__scopeId", "data-v-66614870"]]);
4033
+ }, jr = /* @__PURE__ */ he(Fr, [["__scopeId", "data-v-66614870"]]);
4019
4034
  function re() {
4020
4035
  }
4021
4036
  re.prototype = {
@@ -4031,30 +4046,30 @@ re.prototype = {
4031
4046
  n = this.castInput(n, l), t = this.castInput(t, l), n = this.removeEmpty(this.tokenize(n, l)), t = this.removeEmpty(this.tokenize(t, l));
4032
4047
  var i = t.length, u = n.length, c = 1, d = i + u;
4033
4048
  l.maxEditLength != null && (d = Math.min(d, l.maxEditLength));
4034
- var x = (o = l.timeout) !== null && o !== void 0 ? o : 1 / 0, m = Date.now() + x, C = [{
4049
+ var w = (o = l.timeout) !== null && o !== void 0 ? o : 1 / 0, m = Date.now() + w, y = [{
4035
4050
  oldPos: -1,
4036
4051
  lastComponent: void 0
4037
- }], b = this.extractCommon(C[0], t, n, 0, l);
4038
- if (C[0].oldPos + 1 >= u && b + 1 >= i)
4039
- return a(Kt(r, C[0].lastComponent, t, n, r.useLongestToken));
4040
- var I = -1 / 0, $ = 1 / 0;
4041
- function w() {
4042
- for (var _ = Math.max(I, -c); _ <= Math.min($, c); _ += 2) {
4043
- var T = void 0, V = C[_ - 1], S = C[_ + 1];
4044
- V && (C[_ - 1] = void 0);
4052
+ }], x = this.extractCommon(y[0], t, n, 0, l);
4053
+ if (y[0].oldPos + 1 >= u && x + 1 >= i)
4054
+ return a(Kt(r, y[0].lastComponent, t, n, r.useLongestToken));
4055
+ var O = -1 / 0, D = 1 / 0;
4056
+ function b() {
4057
+ for (var _ = Math.max(O, -c); _ <= Math.min(D, c); _ += 2) {
4058
+ var T = void 0, A = y[_ - 1], S = y[_ + 1];
4059
+ A && (y[_ - 1] = void 0);
4045
4060
  var E = !1;
4046
4061
  if (S) {
4047
- var D = S.oldPos - _;
4048
- E = S && 0 <= D && D < i;
4062
+ var V = S.oldPos - _;
4063
+ E = S && 0 <= V && V < i;
4049
4064
  }
4050
- var v = V && V.oldPos + 1 < u;
4065
+ var v = A && A.oldPos + 1 < u;
4051
4066
  if (!E && !v) {
4052
- C[_] = void 0;
4067
+ y[_] = void 0;
4053
4068
  continue;
4054
4069
  }
4055
- if (!v || E && V.oldPos < S.oldPos ? T = r.addToPath(S, !0, !1, 0, l) : T = r.addToPath(V, !1, !0, 1, l), b = r.extractCommon(T, t, n, _, l), T.oldPos + 1 >= u && b + 1 >= i)
4070
+ if (!v || E && A.oldPos < S.oldPos ? T = r.addToPath(S, !0, !1, 0, l) : T = r.addToPath(A, !1, !0, 1, l), x = r.extractCommon(T, t, n, _, l), T.oldPos + 1 >= u && x + 1 >= i)
4056
4071
  return a(Kt(r, T.lastComponent, t, n, r.useLongestToken));
4057
- C[_] = T, T.oldPos + 1 >= u && ($ = Math.min($, _ - 1)), b + 1 >= i && (I = Math.max(I, _ + 1));
4072
+ y[_] = T, T.oldPos + 1 >= u && (D = Math.min(D, _ - 1)), x + 1 >= i && (O = Math.max(O, _ + 1));
4058
4073
  }
4059
4074
  c++;
4060
4075
  }
@@ -4063,14 +4078,14 @@ re.prototype = {
4063
4078
  setTimeout(function() {
4064
4079
  if (c > d || Date.now() > m)
4065
4080
  return s();
4066
- w() || _();
4081
+ b() || _();
4067
4082
  }, 0);
4068
4083
  })();
4069
4084
  else
4070
4085
  for (; c <= d && Date.now() <= m; ) {
4071
- var y = w();
4072
- if (y)
4073
- return y;
4086
+ var g = b();
4087
+ if (g)
4088
+ return g;
4074
4089
  }
4075
4090
  },
4076
4091
  addToPath: function(n, t, o, l, s) {
@@ -4139,11 +4154,11 @@ function Kt(e, n, t, o, l) {
4139
4154
  d.value = e.join(o.slice(c, c + d.count)), c += d.count;
4140
4155
  else {
4141
4156
  if (!d.added && l) {
4142
- var x = t.slice(u, u + d.count);
4143
- x = x.map(function(m, C) {
4144
- var b = o[c + C];
4145
- return b.length > m.length ? b : m;
4146
- }), d.value = e.join(x);
4157
+ var w = t.slice(u, u + d.count);
4158
+ w = w.map(function(m, y) {
4159
+ var x = o[c + y];
4160
+ return x.length > m.length ? x : m;
4161
+ }), d.value = e.join(w);
4147
4162
  } else
4148
4163
  d.value = e.join(t.slice(u, u + d.count));
4149
4164
  u += d.count, d.added || (c += d.count);
@@ -4186,9 +4201,9 @@ function qe(e, n) {
4186
4201
  return xt(e, n, "");
4187
4202
  }
4188
4203
  function nn(e, n) {
4189
- return n.slice(0, Fr(e, n));
4204
+ return n.slice(0, Hr(e, n));
4190
4205
  }
4191
- function Fr(e, n) {
4206
+ function Hr(e, n) {
4192
4207
  var t = 0;
4193
4208
  e.length > n.length && (t = e.length - n.length);
4194
4209
  var o = n.length;
@@ -4208,7 +4223,7 @@ function Fr(e, n) {
4208
4223
  }
4209
4224
  return s;
4210
4225
  }
4211
- var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", jr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4226
+ var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", zr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4212
4227
  rt.equals = function(e, n, t) {
4213
4228
  return t.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e.trim() === n.trim();
4214
4229
  };
@@ -4221,7 +4236,7 @@ rt.tokenize = function(e) {
4221
4236
  return s.segment;
4222
4237
  });
4223
4238
  } else
4224
- t = e.match(jr) || [];
4239
+ t = e.match(zr) || [];
4225
4240
  var o = [], l = null;
4226
4241
  return t.forEach(function(s) {
4227
4242
  /\s/.test(s) ? l == null ? o.push(s) : o.push(o.pop() + s) : /\s/.test(l) ? o[o.length - 1] == l ? o.push(o.pop() + s) : o.push(l + s) : o.push(s), l = s;
@@ -4254,15 +4269,15 @@ function on(e, n, t, o) {
4254
4269
  } else if (t)
4255
4270
  e && (t.value = t.value.replace(/^\s*/, "")), o && (o.value = o.value.replace(/^\s*/, ""));
4256
4271
  else if (e && o) {
4257
- var c = o.value.match(/^\s*/)[0], d = n.value.match(/^\s*/)[0], x = n.value.match(/\s*$/)[0], m = en(c, d);
4272
+ var c = o.value.match(/^\s*/)[0], d = n.value.match(/^\s*/)[0], w = n.value.match(/\s*$/)[0], m = en(c, d);
4258
4273
  n.value = ke(n.value, m);
4259
- var C = tn(ke(c, m), x);
4260
- n.value = qe(n.value, C), o.value = Ct(o.value, c, C), e.value = xt(e.value, c, c.slice(0, c.length - C.length));
4274
+ var y = tn(ke(c, m), w);
4275
+ n.value = qe(n.value, y), o.value = Ct(o.value, c, y), e.value = xt(e.value, c, c.slice(0, c.length - y.length));
4261
4276
  } else if (o) {
4262
- var b = o.value.match(/^\s*/)[0], I = n.value.match(/\s*$/)[0], $ = nn(I, b);
4263
- n.value = qe(n.value, $);
4277
+ var x = o.value.match(/^\s*/)[0], O = n.value.match(/\s*$/)[0], D = nn(O, x);
4278
+ n.value = qe(n.value, D);
4264
4279
  } else if (e) {
4265
- var w = e.value.match(/\s*$/)[0], y = n.value.match(/^\s*/)[0], _ = nn(w, y);
4280
+ var b = e.value.match(/\s*$/)[0], g = n.value.match(/^\s*/)[0], _ = nn(b, g);
4266
4281
  n.value = ke(n.value, _);
4267
4282
  }
4268
4283
  }
@@ -4271,7 +4286,7 @@ jn.tokenize = function(e) {
4271
4286
  var n = new RegExp("(\\r?\\n)|[".concat(et, "]+|[^\\S\\n\\r]+|[^").concat(et, "]"), "ug");
4272
4287
  return e.match(n) || [];
4273
4288
  };
4274
- function Hr(e, n, t) {
4289
+ function Zr(e, n, t) {
4275
4290
  return jn.diff(e, n, t);
4276
4291
  }
4277
4292
  var At = new re();
@@ -4293,12 +4308,12 @@ At.equals = function(e, n, t) {
4293
4308
  `) && (e = e.slice(0, -1)), n.endsWith(`
4294
4309
  `) && (n = n.slice(0, -1))), re.prototype.equals.call(this, e, n, t);
4295
4310
  };
4296
- var zr = new re();
4297
- zr.tokenize = function(e) {
4311
+ var Ur = new re();
4312
+ Ur.tokenize = function(e) {
4298
4313
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
4299
4314
  };
4300
- var Zr = new re();
4301
- Zr.tokenize = function(e) {
4315
+ var Wr = new re();
4316
+ Wr.tokenize = function(e) {
4302
4317
  return e.split(/([{}:;,]|\s+)/);
4303
4318
  };
4304
4319
  function yt(e) {
@@ -4352,7 +4367,7 @@ _t.tokenize = function(e) {
4352
4367
  _t.join = _t.removeEmpty = function(e) {
4353
4368
  return e;
4354
4369
  };
4355
- const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Wr = { class: "flex justify-end items-center mb-1" }, qr = { class: "bg-transparent" }, Gr = ["innerHTML"], Jr = {
4370
+ const qr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Gr = { class: "flex justify-end items-center mb-1" }, Jr = { class: "bg-transparent" }, Yr = ["innerHTML"], Qr = {
4356
4371
  __name: "Result",
4357
4372
  props: {
4358
4373
  text: {
@@ -4370,15 +4385,15 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4370
4385
  },
4371
4386
  emits: ["copy", "change", "clear"],
4372
4387
  setup(e, { emit: n }) {
4373
- const t = e, o = xe(), l = L(() => o.isLoading("writing")), s = L(() => l.value ? "" : t.text), r = O(""), a = O(Ie.DEFAULT_DIFF_MODE), { textarea: i } = st({ input: s, styleProp: "minHeight" }), u = n;
4388
+ const t = e, o = xe(), l = L(() => o.isLoading("writing")), s = L(() => l.value ? "" : t.text), r = $(""), a = $(Le.DEFAULT_DIFF_MODE), { textarea: i } = st({ input: s, styleProp: "minHeight" }), u = n;
4374
4389
  function c() {
4375
4390
  !l.value && s.value && u("copy", s.value);
4376
4391
  }
4377
- function d(m, C) {
4378
- return Hr(m, C).map((I) => I.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${I.value}</span>` : I.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${I.value}</span>` : I.value).join("");
4392
+ function d(m, y) {
4393
+ return Zr(m, y).map((O) => O.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${O.value}</span>` : O.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${O.value}</span>` : O.value).join("");
4379
4394
  }
4380
- function x() {
4381
- a.value = !a.value, Ie.DEFAULT_DIFF_MODE = a.value;
4395
+ function w() {
4396
+ a.value = !a.value, Le.DEFAULT_DIFF_MODE = a.value;
4382
4397
  }
4383
4398
  return F(
4384
4399
  () => t.text,
@@ -4388,8 +4403,8 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4388
4403
  { immediate: !0 }
4389
4404
  ), F(s, (m) => {
4390
4405
  u("change", m);
4391
- }), (m, C) => (h(), g("div", Ur, [
4392
- f("div", Wr, [
4406
+ }), (m, y) => (h(), C("div", qr, [
4407
+ f("div", Gr, [
4393
4408
  B(Fn, {
4394
4409
  loading: l.value,
4395
4410
  src: s.value,
@@ -4397,45 +4412,45 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4397
4412
  showDiffToggle: e.type === "check",
4398
4413
  isDiffMode: a.value,
4399
4414
  onCopy: c,
4400
- onToggleDiff: x
4415
+ onToggleDiff: w
4401
4416
  }, null, 8, ["loading", "src", "hasCopyBtn", "showDiffToggle", "isDiffMode"])
4402
4417
  ]),
4403
- f("div", qr, [
4404
- e.type !== "check" || !a.value ? tt((h(), g("textarea", {
4418
+ f("div", Jr, [
4419
+ e.type !== "check" || !a.value ? tt((h(), C("textarea", {
4405
4420
  key: 0,
4406
4421
  ref_key: "textarea",
4407
4422
  ref: i,
4408
- "onUpdate:modelValue": C[0] || (C[0] = (b) => s.value = b),
4423
+ "onUpdate:modelValue": y[0] || (y[0] = (x) => s.value = x),
4409
4424
  class: "w-full outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden font-sans text-base leading-normal",
4410
4425
  readonly: "",
4411
4426
  spellcheck: "false"
4412
4427
  }, null, 512)), [
4413
4428
  [nt, s.value]
4414
- ]) : (h(), g("pre", {
4429
+ ]) : (h(), C("pre", {
4415
4430
  key: 1,
4416
4431
  class: "w-full min-h-[80px] outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden whitespace-pre-wrap break-words font-sans text-base leading-normal",
4417
4432
  innerHTML: l.value ? "" : r.value
4418
- }, null, 8, Gr))
4433
+ }, null, 8, Yr))
4419
4434
  ])
4420
4435
  ]));
4421
4436
  }
4422
- }, Yr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", Qr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='currentColor'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='currentColor'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='currentColor'/%3e%3c/svg%3e", Xr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (Et("data-v-345bc0b4"), e = e(), $t(), e), ei = { class: "flex rounded-md w-full" }, ti = ["disabled"], ni = { class: "flex items-center text-xs" }, oi = ["src"], li = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), si = { class: "relative block" }, ai = ["aria-expanded", "disabled"], ri = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ii = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4423
- src: Kr,
4437
+ }, Xr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='currentColor'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='currentColor'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='currentColor'/%3e%3c/svg%3e", ei = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", ti = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (Et("data-v-345bc0b4"), e = e(), $t(), e), ni = { class: "flex rounded-md w-full" }, oi = ["disabled"], li = { class: "flex items-center text-xs" }, si = ["src"], ai = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), ri = { class: "relative block" }, ii = ["aria-expanded", "disabled"], ui = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ci = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4438
+ src: ti,
4424
4439
  alt: "Chevron down",
4425
4440
  class: "w-4 h-4 fill-current"
4426
- }, null, -1)), ui = [
4427
- ri,
4428
- ii
4429
- ], ci = {
4441
+ }, null, -1)), di = [
4442
+ ui,
4443
+ ci
4444
+ ], fi = {
4430
4445
  key: 0,
4431
4446
  class: "origin-top-right absolute left-0 mt-1 w-full rounded-md shadow-lg bg-base-100 ring-1 ring-base-300 focus:outline-none z-50",
4432
4447
  role: "menu",
4433
4448
  "aria-orientation": "vertical",
4434
4449
  "aria-labelledby": "options-menu"
4435
- }, di = {
4450
+ }, vi = {
4436
4451
  class: "py-1",
4437
4452
  role: "none"
4438
- }, fi = ["onClick"], vi = { class: "flex items-center" }, pi = ["src"], hi = {
4453
+ }, pi = ["onClick"], hi = { class: "flex items-center" }, mi = ["src"], gi = {
4439
4454
  __name: "ButtonSelect",
4440
4455
  props: {
4441
4456
  modelValue: {
@@ -4461,7 +4476,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4461
4476
  },
4462
4477
  emits: ["update:modelValue", "action"],
4463
4478
  setup(e, { emit: n }) {
4464
- const t = e, o = n, l = O(!1), s = O(t.modelValue), r = O(null), a = L(() => t.options.find((m) => m.value === s.value) || t.options[0]);
4479
+ const t = e, o = n, l = $(!1), s = $(t.modelValue), r = $(null), a = L(() => t.options.find((m) => m.value === s.value) || t.options[0]);
4465
4480
  function i() {
4466
4481
  o("action");
4467
4482
  }
@@ -4472,9 +4487,9 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4472
4487
  m.value !== s.value && (s.value = m.value, o("update:modelValue", m.value)), l.value = !1;
4473
4488
  }
4474
4489
  function d(m) {
4475
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Yr, "../../assets/icons/ai-translate.svg": Qr, "../../assets/icons/chevron-down.svg": Xr }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4490
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Xr, "../../assets/icons/ai-translate.svg": Kr, "../../assets/icons/chevron-down.svg": ei }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4476
4491
  }
4477
- function x(m) {
4492
+ function w(m) {
4478
4493
  r.value && !r.value.contains(m.target) && (l.value = !1);
4479
4494
  }
4480
4495
  return F(
@@ -4488,10 +4503,10 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4488
4503
  m && (l.value = !1);
4489
4504
  }
4490
4505
  ), se(() => {
4491
- document.addEventListener("click", x);
4506
+ document.addEventListener("click", w);
4492
4507
  }), Fe(() => {
4493
- document.removeEventListener("click", x);
4494
- }), (m, C) => (h(), g("div", {
4508
+ document.removeEventListener("click", w);
4509
+ }), (m, y) => (h(), C("div", {
4495
4510
  class: "relative inline-block text-left flex-1",
4496
4511
  ref_key: "dropdownRef",
4497
4512
  ref: r
@@ -4502,7 +4517,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4502
4517
  e.isTextEmpty || t.loading ? "border-base-300" : "border-primary"
4503
4518
  ])
4504
4519
  }, [
4505
- f("div", ei, [
4520
+ f("div", ni, [
4506
4521
  f("button", {
4507
4522
  onClick: i,
4508
4523
  class: P(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative", [
@@ -4510,17 +4525,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4510
4525
  ]]),
4511
4526
  disabled: e.isTextEmpty || t.loading
4512
4527
  }, [
4513
- f("div", ni, [
4528
+ f("div", li, [
4514
4529
  f("img", {
4515
4530
  src: d(a.value.icon),
4516
4531
  alt: "",
4517
4532
  class: "w-4 h-4 mr-2"
4518
- }, null, 8, oi),
4533
+ }, null, 8, si),
4519
4534
  Ee(" " + G(a.value.label), 1)
4520
4535
  ])
4521
- ], 10, ti),
4522
- li,
4523
- f("div", si, [
4536
+ ], 10, oi),
4537
+ ai,
4538
+ f("div", ri, [
4524
4539
  f("button", {
4525
4540
  onClick: u,
4526
4541
  type: "button",
@@ -4530,36 +4545,36 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4530
4545
  "aria-haspopup": "true",
4531
4546
  "aria-expanded": l.value,
4532
4547
  disabled: e.isTextEmpty || t.loading
4533
- }, ui, 10, ai)
4548
+ }, di, 10, ii)
4534
4549
  ])
4535
4550
  ])
4536
4551
  ], 2),
4537
- l.value ? (h(), g("div", ci, [
4538
- f("div", di, [
4539
- (h(!0), g(z, null, Y(e.options, (b) => (h(), g("a", {
4540
- key: b.value,
4541
- onClick: (I) => c(b),
4552
+ l.value ? (h(), C("div", fi, [
4553
+ f("div", vi, [
4554
+ (h(!0), C(z, null, Y(e.options, (x) => (h(), C("a", {
4555
+ key: x.value,
4556
+ onClick: (O) => c(x),
4542
4557
  href: "#",
4543
4558
  class: "block px-1 py-1 text-sm text-base-content hover:bg-base-200 hover:text-primary",
4544
4559
  role: "menuitem"
4545
4560
  }, [
4546
- f("div", vi, [
4561
+ f("div", hi, [
4547
4562
  f("img", {
4548
- src: d(b.icon),
4563
+ src: d(x.icon),
4549
4564
  alt: "",
4550
4565
  class: "w-4 h-4 mr-2"
4551
- }, null, 8, pi),
4552
- Ee(" " + G(b.label), 1)
4566
+ }, null, 8, mi),
4567
+ Ee(" " + G(x.label), 1)
4553
4568
  ])
4554
- ], 8, fi))), 128))
4569
+ ], 8, pi))), 128))
4555
4570
  ])
4556
4571
  ])) : R("", !0)
4557
4572
  ], 512));
4558
4573
  }
4559
- }, mi = /* @__PURE__ */ he(hi, [["__scopeId", "data-v-345bc0b4"]]), gi = { class: "w-full mt-1" }, bi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, Ci = { class: "lg:flex-grow lg:w-0 flex flex-col" }, xi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, yi = {
4574
+ }, bi = /* @__PURE__ */ he(gi, [["__scopeId", "data-v-345bc0b4"]]), Ci = { class: "w-full mt-1" }, xi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, yi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, wi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, _i = {
4560
4575
  class: "flex items-center",
4561
4576
  style: { "max-width": "300px" }
4562
- }, wi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, _i = {
4577
+ }, Ti = { class: "lg:flex-grow lg:w-0 flex flex-col" }, Si = {
4563
4578
  __name: "WriteTab",
4564
4579
  props: {
4565
4580
  opt: {
@@ -4580,95 +4595,96 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4580
4595
  const t = le("writingStore"), o = le("loaderStore"), l = e, s = n, r = [
4581
4596
  { value: "check", label: "Check", icon: "ai-translate" },
4582
4597
  { value: "improve", label: "Improve", icon: "ai-explain" },
4583
- { value: "improve-plus", label: "Improve +++", icon: "ai-explain" },
4598
+ { value: "improve-plus", label: "Academy", icon: "ai-explain" },
4599
+ { value: "friendly", label: "Friendly", icon: "ai-translate" },
4584
4600
  { value: "simplify", label: "Simplify", icon: "ai-translate" },
4585
4601
  { value: "more-detailed", label: "More detailed", icon: "ai-explain" }
4586
4602
  ];
4587
4603
  F(
4588
4604
  () => l.writing,
4589
- (b) => {
4590
- o.setLoading("writing", !1), b && (t.reset(), t.init(b));
4605
+ (x) => {
4606
+ o.setLoading("writing", !1), x && (t.reset(), t.init(x));
4591
4607
  },
4592
4608
  { immediate: !0 }
4593
4609
  ), F(
4594
4610
  () => l.opt,
4595
- (b) => {
4596
- b.src !== t.src && t.init({ ...t.$state, src: b.src });
4611
+ (x) => {
4612
+ x.src !== t.src && t.init({ ...t.$state, src: x.src });
4597
4613
  },
4598
4614
  { deep: !0 }
4599
4615
  );
4600
- function a(b) {
4601
- t.init({ ...t.$state, text: b });
4616
+ function a(x) {
4617
+ t.init({ ...t.$state, text: x });
4602
4618
  }
4603
4619
  function i() {
4604
4620
  t.reset();
4605
4621
  }
4606
- function u(b) {
4607
- t.init({ ...t.$state, result: b });
4622
+ function u(x) {
4623
+ t.init({ ...t.$state, result: x });
4608
4624
  }
4609
4625
  function c() {
4610
4626
  t.init({ ...t.$state, result: "", suggestions: [] });
4611
4627
  }
4612
- function d(b = null) {
4613
- t.text.length < Ie.IMPROVE_INPUT_MIN_LENGTH || (o.setLoading("writing", !0), m(t.text, l.opt.type, b));
4628
+ function d(x = null) {
4629
+ t.text.length < Le.IMPROVE_INPUT_MIN_LENGTH || (o.setLoading("writing", !0), m(t.text, l.opt.type, x));
4614
4630
  }
4615
- function x() {
4631
+ function w() {
4616
4632
  d("retry");
4617
4633
  }
4618
- function m(b, I = l.opt.type, $) {
4619
- b && (o.setLoading("writing", !0), s("write", {
4634
+ function m(x, O = l.opt.type, D) {
4635
+ x && (o.setLoading("writing", !0), s("write", {
4620
4636
  src: l.opt.src,
4621
- text: b,
4622
- action: I,
4623
- flag: $
4637
+ text: x,
4638
+ action: O,
4639
+ flag: D
4624
4640
  }));
4625
4641
  }
4626
- function C(b) {
4627
- o.setLoading("writing", !0), s("opt", { ...l.opt, type: b, text: t.text });
4642
+ function y(x) {
4643
+ o.setLoading("writing", !0), s("opt", { ...l.opt, type: x, text: t.text });
4628
4644
  }
4629
- return (b, I) => {
4630
- var $, w;
4631
- return h(), g("div", gi, [
4632
- f("div", bi, [
4633
- f("div", Ci, [
4634
- B(Br, {
4645
+ return (x, O) => {
4646
+ var D, b;
4647
+ return h(), C("div", Ci, [
4648
+ f("div", xi, [
4649
+ f("div", yi, [
4650
+ B(jr, {
4635
4651
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4636
- text: M(t).text,
4652
+ text: k(t).text,
4637
4653
  onChange: a,
4638
4654
  onClear: i,
4639
4655
  onImprove: d
4640
4656
  }, null, 8, ["text"])
4641
4657
  ]),
4642
- f("div", xi, [
4643
- f("div", yi, [
4644
- B(mi, {
4658
+ f("div", wi, [
4659
+ f("div", _i, [
4660
+ B(bi, {
4645
4661
  class: "w-full",
4646
4662
  modelValue: l.opt.type,
4647
4663
  options: r,
4648
- loading: M(o).isLoading("writing"),
4649
- isTextEmpty: M(t).text && (($ = M(t).text) == null ? void 0 : $.length) < M(Ie).IMPROVE_INPUT_MIN_LENGTH,
4650
- hasResult: !!M(t).result,
4651
- "onUpdate:modelValue": C,
4664
+ loading: k(o).isLoading("writing"),
4665
+ isTextEmpty: k(t).text && ((D = k(t).text) == null ? void 0 : D.length) < k(Le).IMPROVE_INPUT_MIN_LENGTH,
4666
+ hasResult: !!k(t).result,
4667
+ "onUpdate:modelValue": y,
4652
4668
  onAction: d
4653
4669
  }, null, 8, ["modelValue", "loading", "isTextEmpty", "hasResult"])
4654
4670
  ]),
4655
- B(Er, {
4671
+ B(Or, {
4656
4672
  class: "ml-2 lg:m-2",
4657
- disabled: ((w = M(t).text) == null ? void 0 : w.length) < 5 || !M(t).result,
4658
- onClick: x
4673
+ disabled: ((b = k(t).text) == null ? void 0 : b.length) < 5 || !k(t).result,
4674
+ onClick: w
4659
4675
  }, null, 8, ["disabled"])
4660
4676
  ]),
4661
- f("div", wi, [
4662
- B(Jr, {
4677
+ f("div", Ti, [
4678
+ B(Qr, {
4663
4679
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4664
- text: M(t).result,
4665
- originalText: M(t).text,
4680
+ text: k(t).result,
4681
+ originalText: k(t).text,
4666
4682
  type: l.opt.type,
4667
4683
  onChange: u,
4668
4684
  onClear: c,
4669
- onCopy: I[0] || (I[0] = (y) => {
4685
+ onCopy: O[0] || (O[0] = (g) => {
4670
4686
  var _;
4671
- return s("copy", (_ = M(t)) == null ? void 0 : _.result);
4687
+ return s("copy", (_ = k(t)) == null ? void 0 : _.result);
4672
4688
  })
4673
4689
  }, null, 8, ["text", "originalText", "type"])
4674
4690
  ])
@@ -4677,7 +4693,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4677
4693
  };
4678
4694
  }
4679
4695
  }, ln = He("writing", () => {
4680
- const e = O(null), n = O(""), t = O(""), o = O([]), l = O(null), s = Oe(), r = L(() => s.getLabel(e.value));
4696
+ const e = $(null), n = $(""), t = $(""), o = $([]), l = $(null), s = Oe(), r = L(() => s.getLabel(e.value));
4681
4697
  function a(u) {
4682
4698
  e.value = u.src, n.value = u.text, t.value = u.result, o.value = u.suggestions, l.value = u.action;
4683
4699
  }
@@ -4694,17 +4710,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4694
4710
  init: a,
4695
4711
  reset: i
4696
4712
  };
4697
- }), Hn = (e) => (Et("data-v-e4dbf9d3"), e = e(), $t(), e), Ti = ["data-theme"], Si = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Ei = { class: "flex-none" }, $i = { class: "flex w-full border-b border-base-300 items-center" }, Oi = {
4713
+ }), Hn = (e) => (Et("data-v-8885ead1"), e = e(), $t(), e), Ei = ["data-theme"], $i = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Oi = { class: "flex-none" }, Li = { class: "flex w-full border-b border-base-300 items-center" }, Ii = {
4698
4714
  key: 0,
4699
4715
  class: "text-xs text-base-content/40 ml-1 italic"
4700
- }, Ii = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Li = [
4701
- Ii
4702
- ], ki = {
4716
+ }, ki = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Mi = [
4717
+ ki
4718
+ ], Ai = {
4703
4719
  key: 0,
4704
4720
  class: "text-xs text-base-content/40 ml-1 italic"
4705
- }, Mi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Ai = [
4706
- Mi
4707
- ], Vi = { class: "flex-1 min-h-0" }, Di = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ri = {
4721
+ }, Vi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Di = [
4722
+ Vi
4723
+ ], Ri = { class: "flex-1 min-h-0" }, Pi = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ni = {
4708
4724
  __name: "Popup",
4709
4725
  props: {
4710
4726
  options: {
@@ -4742,25 +4758,29 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4742
4758
  theme: {
4743
4759
  type: String,
4744
4760
  default: "light"
4761
+ },
4762
+ isPremium: {
4763
+ type: Boolean,
4764
+ default: !1
4745
4765
  }
4746
4766
  },
4747
4767
  emits: ["nav", "translate", "write", "common"],
4748
4768
  setup(e, { emit: n }) {
4749
- const t = ql();
4769
+ const t = Jl();
4750
4770
  ve(t), bt(t), Oe(t), xe(t), ln(t);
4751
4771
  const o = ve(), l = bt(), s = Oe(), r = xe(), a = ln();
4752
4772
  ce("translationStore", o), ce("ttsStore", l), ce("languageStore", s), ce("loaderStore", r), ce("writingStore", a);
4753
- const i = n, u = (w, y) => {
4754
- i("nav", { action: w, payload: y });
4755
- }, c = (w) => {
4756
- i("nav", { action: "themeChange", payload: w });
4757
- }, d = (w, y = {}) => {
4758
- i("translate", { action: w, payload: y });
4759
- }, x = (w, y = {}) => {
4760
- i("write", { action: w, payload: y });
4761
- }, m = (w, y = {}) => {
4762
- i("common", { action: w, payload: y });
4763
- }, C = e, b = {
4773
+ const i = n, u = (b, g) => {
4774
+ i("nav", { action: b, payload: g });
4775
+ }, c = (b) => {
4776
+ i("nav", { action: "themeChange", payload: b });
4777
+ }, d = (b, g = {}) => {
4778
+ i("translate", { action: b, payload: g });
4779
+ }, w = (b, g = {}) => {
4780
+ i("write", { action: b, payload: g });
4781
+ }, m = (b, g = {}) => {
4782
+ i("common", { action: b, payload: g });
4783
+ }, y = e, x = {
4764
4784
  activeTab: "translate",
4765
4785
  translateOpts: { src: "auto", target: "en" },
4766
4786
  writeOpts: { type: "check" },
@@ -4776,95 +4796,96 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4776
4796
  isAIExplain: !1,
4777
4797
  aiExplainMinLength: 5,
4778
4798
  isTTS: !0
4779
- }, I = L(() => Object.assign({}, b, C.options)), $ = (w) => {
4780
- if (w.key === "Tab") {
4781
- w.preventDefault();
4782
- const _ = I.value.activeTab === "translate" ? "write" : "translate";
4799
+ }, O = L(() => Object.assign({}, x, y.options)), D = (b) => {
4800
+ if (b.key === "Tab") {
4801
+ b.preventDefault();
4802
+ const _ = O.value.activeTab === "translate" ? "write" : "translate";
4783
4803
  u("activeTab", _);
4784
4804
  }
4785
4805
  };
4786
4806
  return se(() => {
4787
- window.addEventListener("keydown", $);
4807
+ window.addEventListener("keydown", D);
4788
4808
  }), Fe(() => {
4789
- window.removeEventListener("keydown", $);
4790
- }), (w, y) => (h(), g("div", {
4809
+ window.removeEventListener("keydown", D);
4810
+ }), (b, g) => (h(), C("div", {
4791
4811
  "data-theme": e.theme,
4792
4812
  class: "h-screen flex flex-col bg-base-100"
4793
4813
  }, [
4794
- f("div", Si, [
4795
- B(xo, {
4814
+ f("div", $i, [
4815
+ B(wo, {
4796
4816
  "header-settings": e.headerSettings,
4797
4817
  "current-theme": e.theme,
4798
- onReader: y[0] || (y[0] = (_) => u("reader")),
4799
- onLearn: y[1] || (y[1] = (_) => u("learn")),
4800
- onSettings: y[2] || (y[2] = (_) => u("settings")),
4801
- onFullScreen: y[3] || (y[3] = (_) => u("fullscreen")),
4802
- onAccount: y[4] || (y[4] = (_) => u("account")),
4818
+ "is-premium": e.isPremium,
4819
+ onReader: g[0] || (g[0] = (_) => u("reader")),
4820
+ onLearn: g[1] || (g[1] = (_) => u("learn")),
4821
+ onSettings: g[2] || (g[2] = (_) => u("settings")),
4822
+ onFullScreen: g[3] || (g[3] = (_) => u("fullscreen")),
4823
+ onAccount: g[4] || (g[4] = (_) => u("account")),
4803
4824
  onThemeChange: c
4804
- }, null, 8, ["header-settings", "current-theme"])
4825
+ }, null, 8, ["header-settings", "current-theme", "is-premium"])
4805
4826
  ]),
4806
- f("div", Ei, [
4807
- f("div", $i, [
4827
+ f("div", Oi, [
4828
+ f("div", Li, [
4808
4829
  f("button", {
4809
4830
  class: P([
4810
4831
  "w-1/2 px-4 py-2 text-sm font-medium",
4811
- I.value.activeTab === "translate" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4832
+ O.value.activeTab === "translate" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4812
4833
  ]),
4813
- onClick: y[5] || (y[5] = (_) => u("activeTab", "translate"))
4834
+ onClick: g[5] || (g[5] = (_) => u("activeTab", "translate"))
4814
4835
  }, [
4815
4836
  Ee(" Translate "),
4816
- !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Oi, Li)) : R("", !0)
4837
+ !k(vt) && O.value.activeTab !== "translate" ? (h(), C("span", Ii, Mi)) : R("", !0)
4817
4838
  ], 2),
4818
4839
  f("button", {
4819
4840
  class: P([
4820
4841
  "w-1/2 px-4 py-2 text-sm font-medium",
4821
- I.value.activeTab === "write" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4842
+ O.value.activeTab === "write" ? "text-primary border-b-2 border-primary" : "text-base-content/60 hover:text-primary"
4822
4843
  ]),
4823
- onClick: y[6] || (y[6] = (_) => u("activeTab", "write"))
4844
+ onClick: g[6] || (g[6] = (_) => u("activeTab", "write"))
4824
4845
  }, [
4825
4846
  Ee(" Write "),
4826
- !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", ki, Ai)) : R("", !0)
4847
+ !k(vt) && O.value.activeTab !== "write" ? (h(), C("span", Ai, Di)) : R("", !0)
4827
4848
  ], 2)
4828
4849
  ])
4829
4850
  ]),
4830
- f("div", Vi, [
4831
- f("div", Di, [
4832
- I.value.activeTab === "translate" ? (h(), W(wr, {
4851
+ f("div", Ri, [
4852
+ f("div", Pi, [
4853
+ O.value.activeTab === "translate" ? (h(), W(Tr, {
4833
4854
  key: 0,
4834
- opt: I.value.translateOpts,
4835
- languages: I.value.languages,
4855
+ opt: O.value.translateOpts,
4856
+ languages: O.value.languages,
4836
4857
  translation: e.data.translation,
4837
4858
  explanation: e.data.explanation,
4838
4859
  tts: e.data.tts,
4839
- isTTS: I.value.isTTS,
4840
- isFavoriteFeatureEnabled: I.value.isFavoriteFeatureEnabled,
4841
- isAITranslateFeatureEnabled: I.value.isAITranslateFeatureEnabled,
4842
- isFavorite: I.value.isFavorite,
4843
- isAITranslate: I.value.isAITranslate,
4844
- isAIExplain: I.value.isAIExplain,
4845
- aiExplainMinLength: I.value.aiExplainMinLength,
4846
- onOpt: y[7] || (y[7] = (_) => d("updateOpts", _)),
4847
- onTranslate: y[8] || (y[8] = (_) => d("translate", _)),
4848
- onLoadTTS: y[9] || (y[9] = (_) => d("loadTTS", _)),
4849
- onFavorite: y[10] || (y[10] = (_) => d("favorite")),
4850
- onAiTranslate: y[11] || (y[11] = (_) => d("aiTranslate", _)),
4851
- onAiExplain: y[12] || (y[12] = (_) => d("aiExplain", _)),
4852
- onCopy: y[13] || (y[13] = (_) => m("copy", _))
4860
+ isTTS: O.value.isTTS,
4861
+ isFavoriteFeatureEnabled: O.value.isFavoriteFeatureEnabled,
4862
+ isAITranslateFeatureEnabled: O.value.isAITranslateFeatureEnabled,
4863
+ isFavorite: O.value.isFavorite,
4864
+ isAITranslate: O.value.isAITranslate,
4865
+ isAIExplain: O.value.isAIExplain,
4866
+ aiExplainMinLength: O.value.aiExplainMinLength,
4867
+ onOpt: g[7] || (g[7] = (_) => d("updateOpts", _)),
4868
+ onTranslate: g[8] || (g[8] = (_) => d("translate", _)),
4869
+ onLoadTTS: g[9] || (g[9] = (_) => d("loadTTS", _)),
4870
+ onFavorite: g[10] || (g[10] = (_) => d("favorite")),
4871
+ onAiTranslate: g[11] || (g[11] = (_) => d("aiTranslate", _)),
4872
+ onAiExplain: g[12] || (g[12] = (_) => d("aiExplain", _)),
4873
+ onCopy: g[13] || (g[13] = (_) => m("copy", _))
4853
4874
  }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : R("", !0),
4854
- I.value.activeTab === "write" ? (h(), W(_i, {
4875
+ O.value.activeTab === "write" ? (h(), W(Si, {
4855
4876
  key: 1,
4856
- opt: I.value.writeOpts,
4857
- languages: I.value.languages,
4877
+ opt: O.value.writeOpts,
4878
+ languages: O.value.languages,
4858
4879
  writing: e.data.writing,
4859
- onOpt: y[14] || (y[14] = (_) => x("updateOpts", _)),
4860
- onWrite: y[15] || (y[15] = (_) => x("write", _)),
4861
- onCopy: y[16] || (y[16] = (_) => m("copy", _))
4880
+ onOpt: g[14] || (g[14] = (_) => w("updateOpts", _)),
4881
+ onWrite: g[15] || (g[15] = (_) => w("write", _)),
4882
+ onCopy: g[16] || (g[16] = (_) => m("copy", _))
4862
4883
  }, null, 8, ["opt", "languages", "writing"])) : R("", !0)
4863
4884
  ])
4864
4885
  ])
4865
- ], 8, Ti));
4886
+ ], 8, Ei));
4866
4887
  }
4867
- }, Bi = /* @__PURE__ */ he(Ri, [["__scopeId", "data-v-e4dbf9d3"]]);
4888
+ }, ji = /* @__PURE__ */ he(Ni, [["__scopeId", "data-v-8885ead1"]]);
4868
4889
  export {
4869
- Bi as default
4890
+ ji as default
4870
4891
  };