@eloisallena/web_components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/.next/dev/types/validator.d.ts +1 -0
- package/dist/.next/types/validator.d.ts +1 -0
- package/dist/.storybook/main.d.ts +3 -0
- package/dist/.storybook/preview.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/next.config.d.ts +3 -0
- package/dist/src/app/layout.d.ts +5 -0
- package/dist/src/app/page.d.ts +1 -0
- package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/src/component/breadcrumbs/index.d.ts +1 -0
- package/dist/src/component/button/Button.d.ts +8 -0
- package/dist/src/component/button/index.d.ts +1 -0
- package/dist/src/component/card/Card.d.ts +6 -0
- package/dist/src/component/card/CardContent.d.ts +6 -0
- package/dist/src/component/card/CardFooter.d.ts +5 -0
- package/dist/src/component/card/CardImage.d.ts +7 -0
- package/dist/src/component/card/index.d.ts +4 -0
- package/dist/src/component/footer/Cfooter.d.ts +6 -0
- package/dist/src/component/footer/FooterBottom.d.ts +5 -0
- package/dist/src/component/footer/FooterContact.d.ts +11 -0
- package/dist/src/component/footer/FooterIcon.d.ts +7 -0
- package/dist/src/component/footer/QuickLink.d.ts +11 -0
- package/dist/src/component/footer/index.d.ts +5 -0
- package/dist/src/component/form/Cform.d.ts +6 -0
- package/dist/src/component/form/index.d.ts +1 -0
- package/dist/src/component/header/Cheader.d.ts +7 -0
- package/dist/src/component/header/Drawer.d.ts +12 -0
- package/dist/src/component/header/Icon.d.ts +9 -0
- package/dist/src/component/header/NavBar.d.ts +12 -0
- package/dist/src/component/header/SearchBar.d.ts +8 -0
- package/dist/src/component/header/index.d.ts +5 -0
- package/dist/src/component/input/CheckBox.d.ts +12 -0
- package/dist/src/component/input/Select.d.ts +17 -0
- package/dist/src/component/input/TextField.d.ts +11 -0
- package/dist/src/component/input/index.d.ts +3 -0
- package/dist/src/component/modal/Modal.d.ts +8 -0
- package/dist/src/component/modal/index.d.ts +1 -0
- package/dist/src/component/section/Section.d.ts +9 -0
- package/dist/src/component/section/index.d.ts +1 -0
- package/dist/src/component/spinner/Loader.d.ts +1 -0
- package/dist/src/component/spinner/index.d.ts +1 -0
- package/dist/src/component/stories/LandingLayout.d.ts +6 -0
- package/dist/src/component/stories/index.d.ts +1 -0
- package/dist/src/component/table/Ctable.d.ts +8 -0
- package/dist/src/component/table/TableBody.d.ts +7 -0
- package/dist/src/component/table/TableCell.d.ts +8 -0
- package/dist/src/component/table/TableHead.d.ts +7 -0
- package/dist/src/component/table/TableRow.d.ts +8 -0
- package/dist/src/component/table/alignment.d.ts +5 -0
- package/dist/src/component/table/index.d.ts +5 -0
- package/dist/src/component/table/types.d.ts +13 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/web-components.cjs.ts +304 -0
- package/dist/web-components.es.ts +2757 -0
- package/package.json +56 -0
|
@@ -0,0 +1,2757 @@
|
|
|
1
|
+
import e, { useState as t } from "react";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.getPrototypeOf, s = Object.prototype.hasOwnProperty, c = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), l = (e, t, n, o) => {
|
|
4
|
+
if (t && typeof t == "object" || typeof t == "function") for (var c = a(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !s.call(e, d) && d !== n && r(e, d, {
|
|
5
|
+
get: ((e) => t[e]).bind(null, d),
|
|
6
|
+
enumerable: !(o = i(t, d)) || o.enumerable
|
|
7
|
+
});
|
|
8
|
+
return e;
|
|
9
|
+
}, u = (e, t, i) => (i = e == null ? {} : n(o(e)), l(t || !e || !e.__esModule ? r(i, "default", {
|
|
10
|
+
value: e,
|
|
11
|
+
enumerable: !0
|
|
12
|
+
}) : i, e)), d = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
13
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
14
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
15
|
+
}), f = /* @__PURE__ */ c(((e) => {
|
|
16
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
17
|
+
function r(e, n, r) {
|
|
18
|
+
var i = null;
|
|
19
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
20
|
+
else r = n;
|
|
21
|
+
return n = r.ref, {
|
|
22
|
+
$$typeof: t,
|
|
23
|
+
type: e,
|
|
24
|
+
key: i,
|
|
25
|
+
ref: n === void 0 ? null : n,
|
|
26
|
+
props: r
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
30
|
+
})), p = /* @__PURE__ */ c(((e) => {
|
|
31
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
32
|
+
function t(e) {
|
|
33
|
+
if (e == null) return null;
|
|
34
|
+
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
35
|
+
if (typeof e == "string") return e;
|
|
36
|
+
switch (e) {
|
|
37
|
+
case v: return "Fragment";
|
|
38
|
+
case b: return "Profiler";
|
|
39
|
+
case y: return "StrictMode";
|
|
40
|
+
case w: return "Suspense";
|
|
41
|
+
case T: return "SuspenseList";
|
|
42
|
+
case O: return "Activity";
|
|
43
|
+
}
|
|
44
|
+
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
45
|
+
case _: return "Portal";
|
|
46
|
+
case S: return e.displayName || "Context";
|
|
47
|
+
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
48
|
+
case C:
|
|
49
|
+
var n = e.render;
|
|
50
|
+
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
51
|
+
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
52
|
+
case D:
|
|
53
|
+
n = e._payload, e = e._init;
|
|
54
|
+
try {
|
|
55
|
+
return t(e(n));
|
|
56
|
+
} catch {}
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
function n(e) {
|
|
61
|
+
return "" + e;
|
|
62
|
+
}
|
|
63
|
+
function r(e) {
|
|
64
|
+
try {
|
|
65
|
+
n(e);
|
|
66
|
+
var t = !1;
|
|
67
|
+
} catch {
|
|
68
|
+
t = !0;
|
|
69
|
+
}
|
|
70
|
+
if (t) {
|
|
71
|
+
t = console;
|
|
72
|
+
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
73
|
+
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function i(e) {
|
|
77
|
+
if (e === v) return "<>";
|
|
78
|
+
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
79
|
+
try {
|
|
80
|
+
var n = t(e);
|
|
81
|
+
return n ? "<" + n + ">" : "<...>";
|
|
82
|
+
} catch {
|
|
83
|
+
return "<...>";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function a() {
|
|
87
|
+
var e = A.A;
|
|
88
|
+
return e === null ? null : e.getOwner();
|
|
89
|
+
}
|
|
90
|
+
function o() {
|
|
91
|
+
return Error("react-stack-top-frame");
|
|
92
|
+
}
|
|
93
|
+
function s(e) {
|
|
94
|
+
if (j.call(e, "key")) {
|
|
95
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
96
|
+
if (t && t.isReactWarning) return !1;
|
|
97
|
+
}
|
|
98
|
+
return e.key !== void 0;
|
|
99
|
+
}
|
|
100
|
+
function c(e, t) {
|
|
101
|
+
function n() {
|
|
102
|
+
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
103
|
+
}
|
|
104
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
105
|
+
get: n,
|
|
106
|
+
configurable: !0
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function l() {
|
|
110
|
+
var e = t(this.type);
|
|
111
|
+
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
112
|
+
}
|
|
113
|
+
function u(e, t, n, r, i, a) {
|
|
114
|
+
var o = n.ref;
|
|
115
|
+
return e = {
|
|
116
|
+
$$typeof: g,
|
|
117
|
+
type: e,
|
|
118
|
+
key: t,
|
|
119
|
+
props: n,
|
|
120
|
+
_owner: r
|
|
121
|
+
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
122
|
+
enumerable: !1,
|
|
123
|
+
value: null
|
|
124
|
+
}) : Object.defineProperty(e, "ref", {
|
|
125
|
+
enumerable: !1,
|
|
126
|
+
get: l
|
|
127
|
+
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
128
|
+
configurable: !1,
|
|
129
|
+
enumerable: !1,
|
|
130
|
+
writable: !0,
|
|
131
|
+
value: 0
|
|
132
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
133
|
+
configurable: !1,
|
|
134
|
+
enumerable: !1,
|
|
135
|
+
writable: !0,
|
|
136
|
+
value: null
|
|
137
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
138
|
+
configurable: !1,
|
|
139
|
+
enumerable: !1,
|
|
140
|
+
writable: !0,
|
|
141
|
+
value: i
|
|
142
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
143
|
+
configurable: !1,
|
|
144
|
+
enumerable: !1,
|
|
145
|
+
writable: !0,
|
|
146
|
+
value: a
|
|
147
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
148
|
+
}
|
|
149
|
+
function f(e, n, i, o, l, d) {
|
|
150
|
+
var f = n.children;
|
|
151
|
+
if (f !== void 0) if (o) if (M(f)) {
|
|
152
|
+
for (o = 0; o < f.length; o++) p(f[o]);
|
|
153
|
+
Object.freeze && Object.freeze(f);
|
|
154
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
155
|
+
else p(f);
|
|
156
|
+
if (j.call(n, "key")) {
|
|
157
|
+
f = t(e);
|
|
158
|
+
var m = Object.keys(n).filter(function(e) {
|
|
159
|
+
return e !== "key";
|
|
160
|
+
});
|
|
161
|
+
o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), R[f + o] = !0);
|
|
162
|
+
}
|
|
163
|
+
if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
|
|
164
|
+
else i = n;
|
|
165
|
+
return f && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), u(e, f, i, a(), l, d);
|
|
166
|
+
}
|
|
167
|
+
function p(e) {
|
|
168
|
+
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
169
|
+
}
|
|
170
|
+
function m(e) {
|
|
171
|
+
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
172
|
+
}
|
|
173
|
+
var h = d("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
174
|
+
return null;
|
|
175
|
+
};
|
|
176
|
+
h = { react_stack_bottom_frame: function(e) {
|
|
177
|
+
return e();
|
|
178
|
+
} };
|
|
179
|
+
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, o)(), L = N(i(o)), R = {};
|
|
180
|
+
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
181
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
182
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
|
|
183
|
+
}, e.jsxs = function(e, t, n) {
|
|
184
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
185
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
|
|
186
|
+
};
|
|
187
|
+
})();
|
|
188
|
+
})), m = /* @__PURE__ */ c(((e, t) => {
|
|
189
|
+
process.env.NODE_ENV === "production" ? t.exports = f() : t.exports = p();
|
|
190
|
+
})), h = m(), g = () => /* @__PURE__ */ (0, h.jsx)("span", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-white" }), _ = ({ variant: e = "primary", label: t, isLoading: n = !1, disabled: r = !1, onClick: i }) => {
|
|
191
|
+
let a = {
|
|
192
|
+
primary: "bg-primary-button text-primary",
|
|
193
|
+
secondary: "bg-secondary-button text-primary",
|
|
194
|
+
restore: "bg-restore-button text-primary",
|
|
195
|
+
delete: "bg-delete-button text-primary",
|
|
196
|
+
disabled: "bg-disabled-button text-primary"
|
|
197
|
+
}, o = n ? /* @__PURE__ */ (0, h.jsx)(g, {}) : null, s = r || n;
|
|
198
|
+
return /* @__PURE__ */ (0, h.jsx)("div", { children: /* @__PURE__ */ (0, h.jsxs)("button", {
|
|
199
|
+
className: `${a[e]} flex items-center gap-3 px-4 py-2 rounded-2xl text-sm font-medium w-full justify-center md:w-70 lg:w-25
|
|
200
|
+
${s ? "cursor-not-allowed opacity-50" : "hover:cursor-pointer"}`,
|
|
201
|
+
disabled: s,
|
|
202
|
+
onClick: i,
|
|
203
|
+
children: [o, t]
|
|
204
|
+
}) });
|
|
205
|
+
}, v = ({ children: e }) => /* @__PURE__ */ (0, h.jsx)("div", {
|
|
206
|
+
className: "bg-primary w-full max-w-sm rounded-lg shadow-md overflow-hidden",
|
|
207
|
+
children: e
|
|
208
|
+
}), y = /* @__PURE__ */ c(((e) => {
|
|
209
|
+
function t(e) {
|
|
210
|
+
return e && e.__esModule ? e : { default: e };
|
|
211
|
+
}
|
|
212
|
+
e._ = t;
|
|
213
|
+
})), b = /* @__PURE__ */ c(((e) => {
|
|
214
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "warnOnce", {
|
|
215
|
+
enumerable: !0,
|
|
216
|
+
get: function() {
|
|
217
|
+
return t;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
var t = (e) => {};
|
|
221
|
+
if (process.env.NODE_ENV !== "production") {
|
|
222
|
+
let e = /* @__PURE__ */ new Set();
|
|
223
|
+
t = (t) => {
|
|
224
|
+
e.has(t) || console.warn(t), e.add(t);
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
})), x = /* @__PURE__ */ c(((e) => {
|
|
228
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
229
|
+
function t(e, t) {
|
|
230
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
231
|
+
enumerable: !0,
|
|
232
|
+
get: t[n]
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
t(e, {
|
|
236
|
+
getAssetToken: function() {
|
|
237
|
+
return a;
|
|
238
|
+
},
|
|
239
|
+
getAssetTokenQuery: function() {
|
|
240
|
+
return o;
|
|
241
|
+
},
|
|
242
|
+
getDeploymentId: function() {
|
|
243
|
+
return r;
|
|
244
|
+
},
|
|
245
|
+
getDeploymentIdQuery: function() {
|
|
246
|
+
return i;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
var n;
|
|
250
|
+
typeof window < "u" ? (n = document.documentElement.dataset.dplId, delete document.documentElement.dataset.dplId) : n = process.env.NEXT_DEPLOYMENT_ID || void 0;
|
|
251
|
+
function r() {
|
|
252
|
+
return n;
|
|
253
|
+
}
|
|
254
|
+
function i(e = !1) {
|
|
255
|
+
let t = r();
|
|
256
|
+
return t ? `${e ? "&" : "?"}dpl=${t}` : "";
|
|
257
|
+
}
|
|
258
|
+
function a() {
|
|
259
|
+
return process.env.NEXT_IMMUTABLE_ASSET_TOKEN || process.env.NEXT_DEPLOYMENT_ID;
|
|
260
|
+
}
|
|
261
|
+
function o(e = !1) {
|
|
262
|
+
let t = a();
|
|
263
|
+
return t ? `${e ? "&" : "?"}dpl=${t}` : "";
|
|
264
|
+
}
|
|
265
|
+
})), S = /* @__PURE__ */ c(((e) => {
|
|
266
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getImageBlurSvg", {
|
|
267
|
+
enumerable: !0,
|
|
268
|
+
get: function() {
|
|
269
|
+
return t;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
function t({ widthInt: e, heightInt: t, blurWidth: n, blurHeight: r, blurDataURL: i, objectFit: a }) {
|
|
273
|
+
let o = n ? n * 40 : e, s = r ? r * 40 : t, c = o && s ? `viewBox='0 0 ${o} ${s}'` : "";
|
|
274
|
+
return `%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c ? "none" : a === "contain" ? "xMidYMid" : a === "cover" ? "xMidYMid slice" : "none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`;
|
|
275
|
+
}
|
|
276
|
+
})), C = /* @__PURE__ */ c(((e) => {
|
|
277
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
278
|
+
function t(e, t) {
|
|
279
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
280
|
+
enumerable: !0,
|
|
281
|
+
get: t[n]
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
t(e, {
|
|
285
|
+
VALID_LOADERS: function() {
|
|
286
|
+
return n;
|
|
287
|
+
},
|
|
288
|
+
imageConfigDefault: function() {
|
|
289
|
+
return r;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
var n = [
|
|
293
|
+
"default",
|
|
294
|
+
"imgix",
|
|
295
|
+
"cloudinary",
|
|
296
|
+
"akamai",
|
|
297
|
+
"custom"
|
|
298
|
+
], r = {
|
|
299
|
+
deviceSizes: [
|
|
300
|
+
640,
|
|
301
|
+
750,
|
|
302
|
+
828,
|
|
303
|
+
1080,
|
|
304
|
+
1200,
|
|
305
|
+
1920,
|
|
306
|
+
2048,
|
|
307
|
+
3840
|
|
308
|
+
],
|
|
309
|
+
imageSizes: [
|
|
310
|
+
32,
|
|
311
|
+
48,
|
|
312
|
+
64,
|
|
313
|
+
96,
|
|
314
|
+
128,
|
|
315
|
+
256,
|
|
316
|
+
384
|
|
317
|
+
],
|
|
318
|
+
path: "/_next/image",
|
|
319
|
+
loader: "default",
|
|
320
|
+
loaderFile: "",
|
|
321
|
+
domains: [],
|
|
322
|
+
disableStaticImages: !1,
|
|
323
|
+
minimumCacheTTL: 14400,
|
|
324
|
+
formats: ["image/webp"],
|
|
325
|
+
maximumDiskCacheSize: void 0,
|
|
326
|
+
maximumRedirects: 3,
|
|
327
|
+
maximumResponseBody: 5e7,
|
|
328
|
+
dangerouslyAllowLocalIP: !1,
|
|
329
|
+
dangerouslyAllowSVG: !1,
|
|
330
|
+
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
|
|
331
|
+
contentDispositionType: "attachment",
|
|
332
|
+
localPatterns: void 0,
|
|
333
|
+
remotePatterns: [],
|
|
334
|
+
qualities: [75],
|
|
335
|
+
unoptimized: !1,
|
|
336
|
+
customCacheHandler: !1
|
|
337
|
+
};
|
|
338
|
+
})), w = /* @__PURE__ */ c(((e) => {
|
|
339
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getImgProps", {
|
|
340
|
+
enumerable: !0,
|
|
341
|
+
get: function() {
|
|
342
|
+
return h;
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
var t = b(), n = x(), r = S(), i = C(), a = [
|
|
346
|
+
"lazy",
|
|
347
|
+
"eager",
|
|
348
|
+
void 0
|
|
349
|
+
], o = [
|
|
350
|
+
"-moz-initial",
|
|
351
|
+
"fill",
|
|
352
|
+
"none",
|
|
353
|
+
"scale-down",
|
|
354
|
+
void 0
|
|
355
|
+
];
|
|
356
|
+
function s(e) {
|
|
357
|
+
return e.default !== void 0;
|
|
358
|
+
}
|
|
359
|
+
function c(e) {
|
|
360
|
+
return e.src !== void 0;
|
|
361
|
+
}
|
|
362
|
+
function l(e) {
|
|
363
|
+
return !!e && typeof e == "object" && (s(e) || c(e));
|
|
364
|
+
}
|
|
365
|
+
var u = /* @__PURE__ */ new Map(), d;
|
|
366
|
+
function f(e) {
|
|
367
|
+
return e === void 0 ? e : typeof e == "number" ? Number.isFinite(e) ? e : NaN : typeof e == "string" && /^[0-9]+$/.test(e) ? parseInt(e, 10) : NaN;
|
|
368
|
+
}
|
|
369
|
+
function p({ deviceSizes: e, allSizes: t }, n, r) {
|
|
370
|
+
if (r) {
|
|
371
|
+
let n = /(^|\s)(1?\d?\d)vw/g, i = [];
|
|
372
|
+
for (let e; e = n.exec(r);) i.push(parseInt(e[2]));
|
|
373
|
+
if (i.length) {
|
|
374
|
+
let n = Math.min(...i) * .01;
|
|
375
|
+
return {
|
|
376
|
+
widths: t.filter((t) => t >= e[0] * n),
|
|
377
|
+
kind: "w"
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
return {
|
|
381
|
+
widths: t,
|
|
382
|
+
kind: "w"
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
return typeof n == "number" ? {
|
|
386
|
+
widths: [...new Set([n, n * 2].map((e) => t.find((t) => t >= e) || t[t.length - 1]))],
|
|
387
|
+
kind: "x"
|
|
388
|
+
} : {
|
|
389
|
+
widths: e,
|
|
390
|
+
kind: "w"
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function m({ config: e, src: t, unoptimized: r, width: i, quality: a, sizes: o, loader: s }) {
|
|
394
|
+
if (r) {
|
|
395
|
+
if (t.startsWith("/") && !t.startsWith("//")) {
|
|
396
|
+
let e = (0, n.getDeploymentId)();
|
|
397
|
+
if (e) {
|
|
398
|
+
let n = t.indexOf("?");
|
|
399
|
+
if (n !== -1) {
|
|
400
|
+
let r = new URLSearchParams(t.slice(n + 1));
|
|
401
|
+
r.get("dpl") || (r.append("dpl", e), t = t.slice(0, n) + "?" + r.toString());
|
|
402
|
+
} else t += `?dpl=${e}`;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return {
|
|
406
|
+
src: t,
|
|
407
|
+
srcSet: void 0,
|
|
408
|
+
sizes: void 0
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
let { widths: c, kind: l } = p(e, i, o), u = c.length - 1;
|
|
412
|
+
return {
|
|
413
|
+
sizes: !o && l === "w" ? "100vw" : o,
|
|
414
|
+
srcSet: c.map((n, r) => `${s({
|
|
415
|
+
config: e,
|
|
416
|
+
src: t,
|
|
417
|
+
quality: a,
|
|
418
|
+
width: n
|
|
419
|
+
})} ${l === "w" ? n : r + 1}${l}`).join(", "),
|
|
420
|
+
src: s({
|
|
421
|
+
config: e,
|
|
422
|
+
src: t,
|
|
423
|
+
quality: a,
|
|
424
|
+
width: c[u]
|
|
425
|
+
})
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
function h({ src: e, sizes: n, unoptimized: c = !1, priority: p = !1, preload: h = !1, loading: g, className: _, quality: v, width: y, height: b, fill: x = !1, style: S, overrideSrc: C, onLoad: w, onLoadingComplete: T, placeholder: E = "empty", blurDataURL: D, fetchPriority: O, decoding: k = "async", layout: A, objectFit: j, objectPosition: M, lazyBoundary: N, lazyRoot: P, ...F }, I) {
|
|
429
|
+
let { imgConf: L, showAltText: R, blurComplete: z, defaultLoader: B } = I, V, H = L || i.imageConfigDefault;
|
|
430
|
+
if ("allSizes" in H) V = H;
|
|
431
|
+
else {
|
|
432
|
+
let e = [...H.deviceSizes, ...H.imageSizes].sort((e, t) => e - t), t = H.deviceSizes.sort((e, t) => e - t), n = H.qualities?.sort((e, t) => e - t);
|
|
433
|
+
V = {
|
|
434
|
+
...H,
|
|
435
|
+
allSizes: e,
|
|
436
|
+
deviceSizes: t,
|
|
437
|
+
qualities: n
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
if (B === void 0) throw Object.defineProperty(/* @__PURE__ */ Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"), "__NEXT_ERROR_CODE", {
|
|
441
|
+
value: "E163",
|
|
442
|
+
enumerable: !1,
|
|
443
|
+
configurable: !0
|
|
444
|
+
});
|
|
445
|
+
let U = F.loader || B;
|
|
446
|
+
delete F.loader, delete F.srcSet;
|
|
447
|
+
let W = "__next_img_default" in U;
|
|
448
|
+
if (W) {
|
|
449
|
+
if (V.loader === "custom") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT_ERROR_CODE", {
|
|
450
|
+
value: "E252",
|
|
451
|
+
enumerable: !1,
|
|
452
|
+
configurable: !0
|
|
453
|
+
});
|
|
454
|
+
} else {
|
|
455
|
+
let e = U;
|
|
456
|
+
U = (t) => {
|
|
457
|
+
let { config: n, ...r } = t;
|
|
458
|
+
return e(r);
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
if (A) {
|
|
462
|
+
A === "fill" && (x = !0);
|
|
463
|
+
let e = {
|
|
464
|
+
intrinsic: {
|
|
465
|
+
maxWidth: "100%",
|
|
466
|
+
height: "auto"
|
|
467
|
+
},
|
|
468
|
+
responsive: {
|
|
469
|
+
width: "100%",
|
|
470
|
+
height: "auto"
|
|
471
|
+
}
|
|
472
|
+
}, t = {
|
|
473
|
+
responsive: "100vw",
|
|
474
|
+
fill: "100vw"
|
|
475
|
+
}, r = e[A];
|
|
476
|
+
r && (S = {
|
|
477
|
+
...S,
|
|
478
|
+
...r
|
|
479
|
+
});
|
|
480
|
+
let i = t[A];
|
|
481
|
+
i && !n && (n = i);
|
|
482
|
+
}
|
|
483
|
+
let G = "", K = f(y), q = f(b), J, Y;
|
|
484
|
+
if (l(e)) {
|
|
485
|
+
let t = s(e) ? e.default : e;
|
|
486
|
+
if (!t.src) throw Object.defineProperty(/* @__PURE__ */ Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`), "__NEXT_ERROR_CODE", {
|
|
487
|
+
value: "E460",
|
|
488
|
+
enumerable: !1,
|
|
489
|
+
configurable: !0
|
|
490
|
+
});
|
|
491
|
+
if (!t.height || !t.width) throw Object.defineProperty(/* @__PURE__ */ Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`), "__NEXT_ERROR_CODE", {
|
|
492
|
+
value: "E48",
|
|
493
|
+
enumerable: !1,
|
|
494
|
+
configurable: !0
|
|
495
|
+
});
|
|
496
|
+
if (J = t.blurWidth, Y = t.blurHeight, D ||= t.blurDataURL, G = t.src, !x) {
|
|
497
|
+
if (!K && !q) K = t.width, q = t.height;
|
|
498
|
+
else if (K && !q) {
|
|
499
|
+
let e = K / t.width;
|
|
500
|
+
q = Math.round(t.height * e);
|
|
501
|
+
} else if (!K && q) {
|
|
502
|
+
let e = q / t.height;
|
|
503
|
+
K = Math.round(t.width * e);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
e = typeof e == "string" ? e : G;
|
|
508
|
+
let X = !p && !h && (g === "lazy" || g === void 0);
|
|
509
|
+
(!e || e.startsWith("data:") || e.startsWith("blob:")) && (c = !0, X = !1), V.unoptimized && (c = !0), W && !V.dangerouslyAllowSVG && e.split("?", 1)[0].endsWith(".svg") && (c = !0);
|
|
510
|
+
let Z = f(v);
|
|
511
|
+
if (process.env.NODE_ENV !== "production") {
|
|
512
|
+
if (V.output === "export" && W && !c) throw Object.defineProperty(/* @__PURE__ */ Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api"), "__NEXT_ERROR_CODE", {
|
|
513
|
+
value: "E500",
|
|
514
|
+
enumerable: !1,
|
|
515
|
+
configurable: !0
|
|
516
|
+
});
|
|
517
|
+
if (!e) c = !0;
|
|
518
|
+
else if (x) {
|
|
519
|
+
if (y) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "width" and "fill" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
520
|
+
value: "E96",
|
|
521
|
+
enumerable: !1,
|
|
522
|
+
configurable: !0
|
|
523
|
+
});
|
|
524
|
+
if (b) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "height" and "fill" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
525
|
+
value: "E115",
|
|
526
|
+
enumerable: !1,
|
|
527
|
+
configurable: !0
|
|
528
|
+
});
|
|
529
|
+
if (S?.position && S.position !== "absolute") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.`), "__NEXT_ERROR_CODE", {
|
|
530
|
+
value: "E216",
|
|
531
|
+
enumerable: !1,
|
|
532
|
+
configurable: !0
|
|
533
|
+
});
|
|
534
|
+
if (S?.width && S.width !== "100%") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.`), "__NEXT_ERROR_CODE", {
|
|
535
|
+
value: "E73",
|
|
536
|
+
enumerable: !1,
|
|
537
|
+
configurable: !0
|
|
538
|
+
});
|
|
539
|
+
if (S?.height && S.height !== "100%") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.`), "__NEXT_ERROR_CODE", {
|
|
540
|
+
value: "E404",
|
|
541
|
+
enumerable: !1,
|
|
542
|
+
configurable: !0
|
|
543
|
+
});
|
|
544
|
+
} else {
|
|
545
|
+
if (K === void 0) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" is missing required "width" property.`), "__NEXT_ERROR_CODE", {
|
|
546
|
+
value: "E451",
|
|
547
|
+
enumerable: !1,
|
|
548
|
+
configurable: !0
|
|
549
|
+
});
|
|
550
|
+
if (isNaN(K)) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has invalid "width" property. Expected a numeric value in pixels but received "${y}".`), "__NEXT_ERROR_CODE", {
|
|
551
|
+
value: "E66",
|
|
552
|
+
enumerable: !1,
|
|
553
|
+
configurable: !0
|
|
554
|
+
});
|
|
555
|
+
if (q === void 0) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" is missing required "height" property.`), "__NEXT_ERROR_CODE", {
|
|
556
|
+
value: "E397",
|
|
557
|
+
enumerable: !1,
|
|
558
|
+
configurable: !0
|
|
559
|
+
});
|
|
560
|
+
if (isNaN(q)) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has invalid "height" property. Expected a numeric value in pixels but received "${b}".`), "__NEXT_ERROR_CODE", {
|
|
561
|
+
value: "E444",
|
|
562
|
+
enumerable: !1,
|
|
563
|
+
configurable: !0
|
|
564
|
+
});
|
|
565
|
+
if (/^[\x00-\x20]/.test(e)) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.`), "__NEXT_ERROR_CODE", {
|
|
566
|
+
value: "E176",
|
|
567
|
+
enumerable: !1,
|
|
568
|
+
configurable: !0
|
|
569
|
+
});
|
|
570
|
+
if (/[\x00-\x20]$/.test(e)) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.`), "__NEXT_ERROR_CODE", {
|
|
571
|
+
value: "E21",
|
|
572
|
+
enumerable: !1,
|
|
573
|
+
configurable: !0
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
if (!a.includes(g)) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has invalid "loading" property. Provided "${g}" should be one of ${a.map(String).join(",")}.`), "__NEXT_ERROR_CODE", {
|
|
577
|
+
value: "E357",
|
|
578
|
+
enumerable: !1,
|
|
579
|
+
configurable: !0
|
|
580
|
+
});
|
|
581
|
+
if (p && g === "lazy") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
582
|
+
value: "E218",
|
|
583
|
+
enumerable: !1,
|
|
584
|
+
configurable: !0
|
|
585
|
+
});
|
|
586
|
+
if (h && g === "lazy") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "preload" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
587
|
+
value: "E803",
|
|
588
|
+
enumerable: !1,
|
|
589
|
+
configurable: !0
|
|
590
|
+
});
|
|
591
|
+
if (h && p) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has both "preload" and "priority" properties. Only "preload" should be used.`), "__NEXT_ERROR_CODE", {
|
|
592
|
+
value: "E802",
|
|
593
|
+
enumerable: !1,
|
|
594
|
+
configurable: !0
|
|
595
|
+
});
|
|
596
|
+
if (E !== "empty" && E !== "blur" && !E.startsWith("data:image/")) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has invalid "placeholder" property "${E}".`), "__NEXT_ERROR_CODE", {
|
|
597
|
+
value: "E431",
|
|
598
|
+
enumerable: !1,
|
|
599
|
+
configurable: !0
|
|
600
|
+
});
|
|
601
|
+
if (E !== "empty" && K && q && K * q < 1600 && (0, t.warnOnce)(`Image with src "${e}" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.`), Z && V.qualities && !V.qualities.includes(Z) && (0, t.warnOnce)(`Image with src "${e}" is using quality "${Z}" which is not configured in images.qualities [${V.qualities.join(", ")}]. Please update your config to [${[...V.qualities, Z].sort().join(", ")}].\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-qualities`), E === "blur" && !D) throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${e}" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
602
|
+
Possible solutions:
|
|
603
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
604
|
+
- Change the "src" property to a static import with one of the supported file types: ${[
|
|
605
|
+
"jpeg",
|
|
606
|
+
"png",
|
|
607
|
+
"webp",
|
|
608
|
+
"avif"
|
|
609
|
+
].join(",")} (animated images not supported)
|
|
610
|
+
- Remove the "placeholder" property, effectively no blur effect
|
|
611
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`), "__NEXT_ERROR_CODE", {
|
|
612
|
+
value: "E371",
|
|
613
|
+
enumerable: !1,
|
|
614
|
+
configurable: !0
|
|
615
|
+
});
|
|
616
|
+
if ("ref" in F && (0, t.warnOnce)(`Image with src "${e}" is using unsupported "ref" property. Consider using the "onLoad" property instead.`), !c && !W) {
|
|
617
|
+
let n = U({
|
|
618
|
+
config: V,
|
|
619
|
+
src: e,
|
|
620
|
+
width: K || 400,
|
|
621
|
+
quality: Z || 75
|
|
622
|
+
}), r;
|
|
623
|
+
try {
|
|
624
|
+
r = new URL(n);
|
|
625
|
+
} catch {}
|
|
626
|
+
(n === e || r && r.pathname === e && !r.search) && (0, t.warnOnce)(`Image with src "${e}" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
|
|
627
|
+
}
|
|
628
|
+
T && (0, t.warnOnce)(`Image with src "${e}" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.`);
|
|
629
|
+
for (let [n, r] of Object.entries({
|
|
630
|
+
layout: A,
|
|
631
|
+
objectFit: j,
|
|
632
|
+
objectPosition: M,
|
|
633
|
+
lazyBoundary: N,
|
|
634
|
+
lazyRoot: P
|
|
635
|
+
})) r && (0, t.warnOnce)(`Image with src "${e}" has legacy prop "${n}". Did you forget to run the codemod?\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
|
|
636
|
+
if (typeof window < "u" && !d && window.PerformanceObserver) {
|
|
637
|
+
d = new PerformanceObserver((e) => {
|
|
638
|
+
for (let n of e.getEntries()) {
|
|
639
|
+
let e = n?.element?.src || "", r = u.get(e);
|
|
640
|
+
r && r.loading === "lazy" && r.placeholder === "empty" && !r.src.startsWith("data:") && !r.src.startsWith("blob:") && (0, t.warnOnce)(`Image with src "${r.src}" was detected as the Largest Contentful Paint (LCP). Please add the \`loading="eager"\` property if this image is above the fold.\nRead more: https://nextjs.org/docs/app/api-reference/components/image#loading`);
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
try {
|
|
644
|
+
d.observe({
|
|
645
|
+
type: "largest-contentful-paint",
|
|
646
|
+
buffered: !0
|
|
647
|
+
});
|
|
648
|
+
} catch (e) {
|
|
649
|
+
console.error(e);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
let Q = Object.assign(x ? {
|
|
654
|
+
position: "absolute",
|
|
655
|
+
height: "100%",
|
|
656
|
+
width: "100%",
|
|
657
|
+
left: 0,
|
|
658
|
+
top: 0,
|
|
659
|
+
right: 0,
|
|
660
|
+
bottom: 0,
|
|
661
|
+
objectFit: j,
|
|
662
|
+
objectPosition: M
|
|
663
|
+
} : {}, R ? {} : { color: "transparent" }, S), ee = !z && E !== "empty" ? E === "blur" ? `url("data:image/svg+xml;charset=utf-8,${(0, r.getImageBlurSvg)({
|
|
664
|
+
widthInt: K,
|
|
665
|
+
heightInt: q,
|
|
666
|
+
blurWidth: J,
|
|
667
|
+
blurHeight: Y,
|
|
668
|
+
blurDataURL: D || "",
|
|
669
|
+
objectFit: Q.objectFit
|
|
670
|
+
})}")` : `url("${E}")` : null, te = o.includes(Q.objectFit) ? Q.objectFit === "fill" ? "100% 100%" : "cover" : Q.objectFit, ne = ee ? {
|
|
671
|
+
backgroundSize: te,
|
|
672
|
+
backgroundPosition: Q.objectPosition || "50% 50%",
|
|
673
|
+
backgroundRepeat: "no-repeat",
|
|
674
|
+
backgroundImage: ee
|
|
675
|
+
} : {};
|
|
676
|
+
process.env.NODE_ENV === "development" && ne.backgroundImage && E === "blur" && D?.startsWith("/") && (ne.backgroundImage = `url("${D}")`);
|
|
677
|
+
let $ = m({
|
|
678
|
+
config: V,
|
|
679
|
+
src: e,
|
|
680
|
+
unoptimized: c,
|
|
681
|
+
width: K,
|
|
682
|
+
quality: Z,
|
|
683
|
+
sizes: n,
|
|
684
|
+
loader: U
|
|
685
|
+
}), re = X ? "lazy" : g;
|
|
686
|
+
if (process.env.NODE_ENV !== "production" && typeof window < "u") {
|
|
687
|
+
let t;
|
|
688
|
+
try {
|
|
689
|
+
t = new URL($.src);
|
|
690
|
+
} catch {
|
|
691
|
+
t = new URL($.src, window.location.href);
|
|
692
|
+
}
|
|
693
|
+
u.set(t.href, {
|
|
694
|
+
src: e,
|
|
695
|
+
loading: re,
|
|
696
|
+
placeholder: E
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
return {
|
|
700
|
+
props: {
|
|
701
|
+
...F,
|
|
702
|
+
loading: re,
|
|
703
|
+
fetchPriority: O,
|
|
704
|
+
width: K,
|
|
705
|
+
height: q,
|
|
706
|
+
decoding: k,
|
|
707
|
+
className: _,
|
|
708
|
+
style: {
|
|
709
|
+
...Q,
|
|
710
|
+
...ne
|
|
711
|
+
},
|
|
712
|
+
sizes: $.sizes,
|
|
713
|
+
srcSet: $.srcSet,
|
|
714
|
+
src: C || $.src
|
|
715
|
+
},
|
|
716
|
+
meta: {
|
|
717
|
+
unoptimized: c,
|
|
718
|
+
preload: h || p,
|
|
719
|
+
placeholder: E,
|
|
720
|
+
fill: x
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
})), T = /* @__PURE__ */ c(((e) => {
|
|
725
|
+
function t(e) {
|
|
726
|
+
if (typeof WeakMap != "function") return null;
|
|
727
|
+
var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
728
|
+
return (t = function(e) {
|
|
729
|
+
return e ? r : n;
|
|
730
|
+
})(e);
|
|
731
|
+
}
|
|
732
|
+
function n(e, n) {
|
|
733
|
+
if (!n && e && e.__esModule) return e;
|
|
734
|
+
if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
|
|
735
|
+
var r = t(n);
|
|
736
|
+
if (r && r.has(e)) return r.get(e);
|
|
737
|
+
var i = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
738
|
+
for (var o in e) if (o !== "default" && Object.prototype.hasOwnProperty.call(e, o)) {
|
|
739
|
+
var s = a ? Object.getOwnPropertyDescriptor(e, o) : null;
|
|
740
|
+
s && (s.get || s.set) ? Object.defineProperty(i, o, s) : i[o] = e[o];
|
|
741
|
+
}
|
|
742
|
+
return i.default = e, r && r.set(e, i), i;
|
|
743
|
+
}
|
|
744
|
+
e._ = n;
|
|
745
|
+
})), E = /* @__PURE__ */ c(((e) => {
|
|
746
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "default", {
|
|
747
|
+
enumerable: !0,
|
|
748
|
+
get: function() {
|
|
749
|
+
return a;
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
var t = d("react"), n = typeof window > "u", r = n ? () => {} : t.useLayoutEffect, i = n ? () => {} : t.useEffect;
|
|
753
|
+
function a(e) {
|
|
754
|
+
let { headManager: a, reduceComponentsToState: o } = e;
|
|
755
|
+
function s() {
|
|
756
|
+
if (a && a.mountedInstances) {
|
|
757
|
+
let e = t.Children.toArray(Array.from(a.mountedInstances).filter(Boolean));
|
|
758
|
+
a.updateHead(o(e));
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
return n && (a?.mountedInstances?.add(e.children), s()), r(() => (a?.mountedInstances?.add(e.children), () => {
|
|
762
|
+
a?.mountedInstances?.delete(e.children);
|
|
763
|
+
})), r(() => (a && (a._pendingUpdate = s), () => {
|
|
764
|
+
a && (a._pendingUpdate = s);
|
|
765
|
+
})), i(() => (a && a._pendingUpdate && (a._pendingUpdate(), a._pendingUpdate = null), () => {
|
|
766
|
+
a && a._pendingUpdate && (a._pendingUpdate(), a._pendingUpdate = null);
|
|
767
|
+
})), null;
|
|
768
|
+
}
|
|
769
|
+
})), D = /* @__PURE__ */ c(((e) => {
|
|
770
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "HeadManagerContext", {
|
|
771
|
+
enumerable: !0,
|
|
772
|
+
get: function() {
|
|
773
|
+
return t;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
var t = (/* @__PURE__ */ y()._(d("react"))).default.createContext({});
|
|
777
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "HeadManagerContext");
|
|
778
|
+
})), O = /* @__PURE__ */ c(((e, t) => {
|
|
779
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
780
|
+
function n(e, t) {
|
|
781
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
782
|
+
enumerable: !0,
|
|
783
|
+
get: t[n]
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
n(e, {
|
|
787
|
+
default: function() {
|
|
788
|
+
return v;
|
|
789
|
+
},
|
|
790
|
+
defaultHead: function() {
|
|
791
|
+
return u;
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
var r = y(), i = T(), a = m(), o = /* @__PURE__ */ i._(d("react")), s = /* @__PURE__ */ r._(E()), c = D(), l = b();
|
|
795
|
+
function u() {
|
|
796
|
+
return [/* @__PURE__ */ (0, a.jsx)("meta", { charSet: "utf-8" }, "charset"), /* @__PURE__ */ (0, a.jsx)("meta", {
|
|
797
|
+
name: "viewport",
|
|
798
|
+
content: "width=device-width"
|
|
799
|
+
}, "viewport")];
|
|
800
|
+
}
|
|
801
|
+
function f(e, t) {
|
|
802
|
+
return typeof t == "string" || typeof t == "number" ? e : t.type === o.default.Fragment ? e.concat(o.default.Children.toArray(t.props.children).reduce((e, t) => typeof t == "string" || typeof t == "number" ? e : e.concat(t), [])) : e.concat(t);
|
|
803
|
+
}
|
|
804
|
+
var p = [
|
|
805
|
+
"name",
|
|
806
|
+
"httpEquiv",
|
|
807
|
+
"charSet",
|
|
808
|
+
"itemProp"
|
|
809
|
+
];
|
|
810
|
+
function h() {
|
|
811
|
+
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = {};
|
|
812
|
+
return (i) => {
|
|
813
|
+
let a = !0, o = !1;
|
|
814
|
+
if (i.key && typeof i.key != "number" && i.key.indexOf("$") > 0) {
|
|
815
|
+
o = !0;
|
|
816
|
+
let t = i.key.slice(i.key.indexOf("$") + 1);
|
|
817
|
+
e.has(t) ? a = !1 : e.add(t);
|
|
818
|
+
}
|
|
819
|
+
switch (i.type) {
|
|
820
|
+
case "title":
|
|
821
|
+
case "base":
|
|
822
|
+
t.has(i.type) ? a = !1 : t.add(i.type);
|
|
823
|
+
break;
|
|
824
|
+
case "meta":
|
|
825
|
+
for (let e = 0, t = p.length; e < t; e++) {
|
|
826
|
+
let t = p[e];
|
|
827
|
+
if (i.props.hasOwnProperty(t)) if (t === "charSet") n.has(t) ? a = !1 : n.add(t);
|
|
828
|
+
else {
|
|
829
|
+
let e = i.props[t], n = r[t] || /* @__PURE__ */ new Set();
|
|
830
|
+
(t !== "name" || !o) && n.has(e) ? a = !1 : (n.add(e), r[t] = n);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
return a;
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function g(e) {
|
|
839
|
+
return e.reduce(f, []).reverse().concat(u().reverse()).filter(h()).reverse().map((e, t) => {
|
|
840
|
+
let n = e.key || t;
|
|
841
|
+
if (process.env.NODE_ENV === "development") if (e.type === "script" && e.props.type !== "application/ld+json") {
|
|
842
|
+
let t = e.props.src ? `<script> tag with src="${e.props.src}"` : "inline <script>";
|
|
843
|
+
(0, l.warnOnce)(`Do not add <script> tags using next/head (see ${t}). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
|
|
844
|
+
} else e.type === "link" && e.props.rel === "stylesheet" && (0, l.warnOnce)(`Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="${e.props.href}"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
|
845
|
+
return /* @__PURE__ */ o.default.cloneElement(e, { key: n });
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
function _({ children: e }) {
|
|
849
|
+
let t = (0, o.useContext)(c.HeadManagerContext);
|
|
850
|
+
return /* @__PURE__ */ (0, a.jsx)(s.default, {
|
|
851
|
+
reduceComponentsToState: g,
|
|
852
|
+
headManager: t,
|
|
853
|
+
children: e
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
var v = _;
|
|
857
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && e.default.__esModule === void 0 && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
858
|
+
})), k = /* @__PURE__ */ c(((e) => {
|
|
859
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ImageConfigContext", {
|
|
860
|
+
enumerable: !0,
|
|
861
|
+
get: function() {
|
|
862
|
+
return r;
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
var t = /* @__PURE__ */ y()._(d("react")), n = C(), r = t.default.createContext(n.imageConfigDefault);
|
|
866
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "ImageConfigContext");
|
|
867
|
+
})), A = /* @__PURE__ */ c(((e) => {
|
|
868
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "RouterContext", {
|
|
869
|
+
enumerable: !0,
|
|
870
|
+
get: function() {
|
|
871
|
+
return t;
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
var t = (/* @__PURE__ */ y()._(d("react"))).default.createContext(null);
|
|
875
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "RouterContext");
|
|
876
|
+
})), j = /* @__PURE__ */ c(((e) => {
|
|
877
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "findClosestQuality", {
|
|
878
|
+
enumerable: !0,
|
|
879
|
+
get: function() {
|
|
880
|
+
return t;
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
function t(e, t) {
|
|
884
|
+
let n = e || 75;
|
|
885
|
+
return t?.qualities?.length ? t.qualities.reduce((e, t) => Math.abs(t - n) < Math.abs(e - n) ? t : e, t.qualities[0]) : n;
|
|
886
|
+
}
|
|
887
|
+
})), M = /* @__PURE__ */ c(((e, t) => {
|
|
888
|
+
(() => {
|
|
889
|
+
var e = {
|
|
890
|
+
170: (e, t, n) => {
|
|
891
|
+
let r = n(510), i = () => {
|
|
892
|
+
if (typeof navigator < "u" && navigator.platform) {
|
|
893
|
+
let e = navigator.platform.toLowerCase();
|
|
894
|
+
return e === "win32" || e === "windows";
|
|
895
|
+
}
|
|
896
|
+
return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
|
|
897
|
+
};
|
|
898
|
+
function a(e, t, n = !1) {
|
|
899
|
+
return t && (t.windows === null || t.windows === void 0) && (t = {
|
|
900
|
+
...t,
|
|
901
|
+
windows: i()
|
|
902
|
+
}), r(e, t, n);
|
|
903
|
+
}
|
|
904
|
+
Object.assign(a, r), e.exports = a;
|
|
905
|
+
},
|
|
906
|
+
154: (e) => {
|
|
907
|
+
let t = "[^\\\\/]", n = "[^/]", r = "(?:\\/|$)", i = "(?:^|\\/)", a = `\\.{1,2}${r}`, o = {
|
|
908
|
+
DOT_LITERAL: "\\.",
|
|
909
|
+
PLUS_LITERAL: "\\+",
|
|
910
|
+
QMARK_LITERAL: "\\?",
|
|
911
|
+
SLASH_LITERAL: "\\/",
|
|
912
|
+
ONE_CHAR: "(?=.)",
|
|
913
|
+
QMARK: n,
|
|
914
|
+
END_ANCHOR: r,
|
|
915
|
+
DOTS_SLASH: a,
|
|
916
|
+
NO_DOT: "(?!\\.)",
|
|
917
|
+
NO_DOTS: `(?!${i}${a})`,
|
|
918
|
+
NO_DOT_SLASH: `(?!\\.{0,1}${r})`,
|
|
919
|
+
NO_DOTS_SLASH: `(?!${a})`,
|
|
920
|
+
QMARK_NO_DOT: "[^.\\/]",
|
|
921
|
+
STAR: `${n}*?`,
|
|
922
|
+
START_ANCHOR: i,
|
|
923
|
+
SEP: "/"
|
|
924
|
+
}, s = {
|
|
925
|
+
...o,
|
|
926
|
+
SLASH_LITERAL: "[\\\\/]",
|
|
927
|
+
QMARK: t,
|
|
928
|
+
STAR: `${t}*?`,
|
|
929
|
+
DOTS_SLASH: "\\.{1,2}(?:[\\\\/]|$)",
|
|
930
|
+
NO_DOT: "(?!\\.)",
|
|
931
|
+
NO_DOTS: "(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",
|
|
932
|
+
NO_DOT_SLASH: "(?!\\.{0,1}(?:[\\\\/]|$))",
|
|
933
|
+
NO_DOTS_SLASH: "(?!\\.{1,2}(?:[\\\\/]|$))",
|
|
934
|
+
QMARK_NO_DOT: "[^.\\\\/]",
|
|
935
|
+
START_ANCHOR: "(?:^|[\\\\/])",
|
|
936
|
+
END_ANCHOR: "(?:[\\\\/]|$)",
|
|
937
|
+
SEP: "\\"
|
|
938
|
+
};
|
|
939
|
+
e.exports = {
|
|
940
|
+
MAX_LENGTH: 1024 * 64,
|
|
941
|
+
POSIX_REGEX_SOURCE: {
|
|
942
|
+
alnum: "a-zA-Z0-9",
|
|
943
|
+
alpha: "a-zA-Z",
|
|
944
|
+
ascii: "\\x00-\\x7F",
|
|
945
|
+
blank: " \\t",
|
|
946
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
947
|
+
digit: "0-9",
|
|
948
|
+
graph: "\\x21-\\x7E",
|
|
949
|
+
lower: "a-z",
|
|
950
|
+
print: "\\x20-\\x7E ",
|
|
951
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
952
|
+
space: " \\t\\r\\n\\v\\f",
|
|
953
|
+
upper: "A-Z",
|
|
954
|
+
word: "A-Za-z0-9_",
|
|
955
|
+
xdigit: "A-Fa-f0-9"
|
|
956
|
+
},
|
|
957
|
+
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
958
|
+
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
959
|
+
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
960
|
+
REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
|
|
961
|
+
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
962
|
+
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
963
|
+
REPLACEMENTS: {
|
|
964
|
+
"***": "*",
|
|
965
|
+
"**/**": "**",
|
|
966
|
+
"**/**/**": "**"
|
|
967
|
+
},
|
|
968
|
+
CHAR_0: 48,
|
|
969
|
+
CHAR_9: 57,
|
|
970
|
+
CHAR_UPPERCASE_A: 65,
|
|
971
|
+
CHAR_LOWERCASE_A: 97,
|
|
972
|
+
CHAR_UPPERCASE_Z: 90,
|
|
973
|
+
CHAR_LOWERCASE_Z: 122,
|
|
974
|
+
CHAR_LEFT_PARENTHESES: 40,
|
|
975
|
+
CHAR_RIGHT_PARENTHESES: 41,
|
|
976
|
+
CHAR_ASTERISK: 42,
|
|
977
|
+
CHAR_AMPERSAND: 38,
|
|
978
|
+
CHAR_AT: 64,
|
|
979
|
+
CHAR_BACKWARD_SLASH: 92,
|
|
980
|
+
CHAR_CARRIAGE_RETURN: 13,
|
|
981
|
+
CHAR_CIRCUMFLEX_ACCENT: 94,
|
|
982
|
+
CHAR_COLON: 58,
|
|
983
|
+
CHAR_COMMA: 44,
|
|
984
|
+
CHAR_DOT: 46,
|
|
985
|
+
CHAR_DOUBLE_QUOTE: 34,
|
|
986
|
+
CHAR_EQUAL: 61,
|
|
987
|
+
CHAR_EXCLAMATION_MARK: 33,
|
|
988
|
+
CHAR_FORM_FEED: 12,
|
|
989
|
+
CHAR_FORWARD_SLASH: 47,
|
|
990
|
+
CHAR_GRAVE_ACCENT: 96,
|
|
991
|
+
CHAR_HASH: 35,
|
|
992
|
+
CHAR_HYPHEN_MINUS: 45,
|
|
993
|
+
CHAR_LEFT_ANGLE_BRACKET: 60,
|
|
994
|
+
CHAR_LEFT_CURLY_BRACE: 123,
|
|
995
|
+
CHAR_LEFT_SQUARE_BRACKET: 91,
|
|
996
|
+
CHAR_LINE_FEED: 10,
|
|
997
|
+
CHAR_NO_BREAK_SPACE: 160,
|
|
998
|
+
CHAR_PERCENT: 37,
|
|
999
|
+
CHAR_PLUS: 43,
|
|
1000
|
+
CHAR_QUESTION_MARK: 63,
|
|
1001
|
+
CHAR_RIGHT_ANGLE_BRACKET: 62,
|
|
1002
|
+
CHAR_RIGHT_CURLY_BRACE: 125,
|
|
1003
|
+
CHAR_RIGHT_SQUARE_BRACKET: 93,
|
|
1004
|
+
CHAR_SEMICOLON: 59,
|
|
1005
|
+
CHAR_SINGLE_QUOTE: 39,
|
|
1006
|
+
CHAR_SPACE: 32,
|
|
1007
|
+
CHAR_TAB: 9,
|
|
1008
|
+
CHAR_UNDERSCORE: 95,
|
|
1009
|
+
CHAR_VERTICAL_LINE: 124,
|
|
1010
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1011
|
+
extglobChars(e) {
|
|
1012
|
+
return {
|
|
1013
|
+
"!": {
|
|
1014
|
+
type: "negate",
|
|
1015
|
+
open: "(?:(?!(?:",
|
|
1016
|
+
close: `))${e.STAR})`
|
|
1017
|
+
},
|
|
1018
|
+
"?": {
|
|
1019
|
+
type: "qmark",
|
|
1020
|
+
open: "(?:",
|
|
1021
|
+
close: ")?"
|
|
1022
|
+
},
|
|
1023
|
+
"+": {
|
|
1024
|
+
type: "plus",
|
|
1025
|
+
open: "(?:",
|
|
1026
|
+
close: ")+"
|
|
1027
|
+
},
|
|
1028
|
+
"*": {
|
|
1029
|
+
type: "star",
|
|
1030
|
+
open: "(?:",
|
|
1031
|
+
close: ")*"
|
|
1032
|
+
},
|
|
1033
|
+
"@": {
|
|
1034
|
+
type: "at",
|
|
1035
|
+
open: "(?:",
|
|
1036
|
+
close: ")"
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
},
|
|
1040
|
+
globChars(e) {
|
|
1041
|
+
return e === !0 ? s : o;
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
},
|
|
1045
|
+
697: (e, t, n) => {
|
|
1046
|
+
let r = n(154), i = n(96), { MAX_LENGTH: a, POSIX_REGEX_SOURCE: o, REGEX_NON_SPECIAL_CHARS: s, REGEX_SPECIAL_CHARS_BACKREF: c, REPLACEMENTS: l } = r, u = (e, t) => {
|
|
1047
|
+
if (typeof t.expandRange == "function") return t.expandRange(...e, t);
|
|
1048
|
+
e.sort();
|
|
1049
|
+
let n = `[${e.join("-")}]`;
|
|
1050
|
+
try {
|
|
1051
|
+
new RegExp(n);
|
|
1052
|
+
} catch {
|
|
1053
|
+
return e.map(((e) => i.escapeRegex(e))).join("..");
|
|
1054
|
+
}
|
|
1055
|
+
return n;
|
|
1056
|
+
}, d = (e, t) => `Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`, f = (e, t) => {
|
|
1057
|
+
if (typeof e != "string") throw TypeError("Expected a string");
|
|
1058
|
+
e = l[e] || e;
|
|
1059
|
+
let n = { ...t }, p = typeof n.maxLength == "number" ? Math.min(a, n.maxLength) : a, m = e.length;
|
|
1060
|
+
if (m > p) throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);
|
|
1061
|
+
let h = {
|
|
1062
|
+
type: "bos",
|
|
1063
|
+
value: "",
|
|
1064
|
+
output: n.prepend || ""
|
|
1065
|
+
}, g = [h], _ = n.capture ? "" : "?:", v = r.globChars(n.windows), y = r.extglobChars(v), { DOT_LITERAL: b, PLUS_LITERAL: x, SLASH_LITERAL: S, ONE_CHAR: C, DOTS_SLASH: w, NO_DOT: T, NO_DOT_SLASH: E, NO_DOTS_SLASH: D, QMARK: O, QMARK_NO_DOT: k, STAR: A, START_ANCHOR: j } = v, M = (e) => `(${_}(?:(?!${j}${e.dot ? w : b}).)*?)`, N = n.dot ? "" : T, P = n.dot ? O : k, F = n.bash === !0 ? M(n) : A;
|
|
1066
|
+
n.capture && (F = `(${F})`), typeof n.noext == "boolean" && (n.noextglob = n.noext);
|
|
1067
|
+
let I = {
|
|
1068
|
+
input: e,
|
|
1069
|
+
index: -1,
|
|
1070
|
+
start: 0,
|
|
1071
|
+
dot: n.dot === !0,
|
|
1072
|
+
consumed: "",
|
|
1073
|
+
output: "",
|
|
1074
|
+
prefix: "",
|
|
1075
|
+
backtrack: !1,
|
|
1076
|
+
negated: !1,
|
|
1077
|
+
brackets: 0,
|
|
1078
|
+
braces: 0,
|
|
1079
|
+
parens: 0,
|
|
1080
|
+
quotes: 0,
|
|
1081
|
+
globstar: !1,
|
|
1082
|
+
tokens: g
|
|
1083
|
+
};
|
|
1084
|
+
e = i.removePrefix(e, I), m = e.length;
|
|
1085
|
+
let L = [], R = [], z = [], B = h, V, H = () => I.index === m - 1, U = I.peek = (t = 1) => e[I.index + t], W = I.advance = () => e[++I.index] || "", G = () => e.slice(I.index + 1), K = (e = "", t = 0) => {
|
|
1086
|
+
I.consumed += e, I.index += t;
|
|
1087
|
+
}, q = (e) => {
|
|
1088
|
+
I.output += e.output == null ? e.value : e.output, K(e.value);
|
|
1089
|
+
}, J = () => {
|
|
1090
|
+
let e = 1;
|
|
1091
|
+
for (; U() === "!" && (U(2) !== "(" || U(3) === "?");) W(), I.start++, e++;
|
|
1092
|
+
return e % 2 == 0 ? !1 : (I.negated = !0, I.start++, !0);
|
|
1093
|
+
}, Y = (e) => {
|
|
1094
|
+
I[e]++, z.push(e);
|
|
1095
|
+
}, X = (e) => {
|
|
1096
|
+
I[e]--, z.pop();
|
|
1097
|
+
}, Z = (e) => {
|
|
1098
|
+
if (B.type === "globstar") {
|
|
1099
|
+
let t = I.braces > 0 && (e.type === "comma" || e.type === "brace"), n = e.extglob === !0 || L.length && (e.type === "pipe" || e.type === "paren");
|
|
1100
|
+
e.type !== "slash" && e.type !== "paren" && !t && !n && (I.output = I.output.slice(0, -B.output.length), B.type = "star", B.value = "*", B.output = F, I.output += B.output);
|
|
1101
|
+
}
|
|
1102
|
+
if (L.length && e.type !== "paren" && (L[L.length - 1].inner += e.value), (e.value || e.output) && q(e), B && B.type === "text" && e.type === "text") {
|
|
1103
|
+
B.output = (B.output || B.value) + e.value, B.value += e.value;
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
e.prev = B, g.push(e), B = e;
|
|
1107
|
+
}, Q = (e, t) => {
|
|
1108
|
+
let r = {
|
|
1109
|
+
...y[t],
|
|
1110
|
+
conditions: 1,
|
|
1111
|
+
inner: ""
|
|
1112
|
+
};
|
|
1113
|
+
r.prev = B, r.parens = I.parens, r.output = I.output;
|
|
1114
|
+
let i = (n.capture ? "(" : "") + r.open;
|
|
1115
|
+
Y("parens"), Z({
|
|
1116
|
+
type: e,
|
|
1117
|
+
value: t,
|
|
1118
|
+
output: I.output ? "" : C
|
|
1119
|
+
}), Z({
|
|
1120
|
+
type: "paren",
|
|
1121
|
+
extglob: !0,
|
|
1122
|
+
value: W(),
|
|
1123
|
+
output: i
|
|
1124
|
+
}), L.push(r);
|
|
1125
|
+
}, ee = (e) => {
|
|
1126
|
+
let r = e.close + (n.capture ? ")" : ""), i;
|
|
1127
|
+
if (e.type === "negate") {
|
|
1128
|
+
let a = F;
|
|
1129
|
+
e.inner && e.inner.length > 1 && e.inner.includes("/") && (a = M(n)), (a !== F || H() || /^\)+$/.test(G())) && (r = e.close = `)$))${a}`), e.inner.includes("*") && (i = G()) && /^\.[^\\/.]+$/.test(i) && (r = e.close = `)${f(i, {
|
|
1130
|
+
...t,
|
|
1131
|
+
fastpaths: !1
|
|
1132
|
+
}).output})${a})`), e.prev.type === "bos" && (I.negatedExtglob = !0);
|
|
1133
|
+
}
|
|
1134
|
+
Z({
|
|
1135
|
+
type: "paren",
|
|
1136
|
+
extglob: !0,
|
|
1137
|
+
value: V,
|
|
1138
|
+
output: r
|
|
1139
|
+
}), X("parens");
|
|
1140
|
+
};
|
|
1141
|
+
if (n.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(e)) {
|
|
1142
|
+
let r = !1, a = e.replace(c, ((e, t, n, i, a, o) => i === "\\" ? (r = !0, e) : i === "?" ? t ? t + i + (a ? O.repeat(a.length) : "") : o === 0 ? P + (a ? O.repeat(a.length) : "") : O.repeat(n.length) : i === "." ? b.repeat(n.length) : i === "*" ? t ? t + i + (a ? F : "") : F : t ? e : `\\${e}`));
|
|
1143
|
+
return r === !0 && (a = n.unescape === !0 ? a.replace(/\\/g, "") : a.replace(/\\+/g, ((e) => e.length % 2 == 0 ? "\\\\" : e ? "\\" : ""))), a === e && n.contains === !0 ? (I.output = e, I) : (I.output = i.wrapOutput(a, I, t), I);
|
|
1144
|
+
}
|
|
1145
|
+
for (; !H();) {
|
|
1146
|
+
if (V = W(), V === "\0") continue;
|
|
1147
|
+
if (V === "\\") {
|
|
1148
|
+
let e = U();
|
|
1149
|
+
if (e === "/" && n.bash !== !0 || e === "." || e === ";") continue;
|
|
1150
|
+
if (!e) {
|
|
1151
|
+
V += "\\", Z({
|
|
1152
|
+
type: "text",
|
|
1153
|
+
value: V
|
|
1154
|
+
});
|
|
1155
|
+
continue;
|
|
1156
|
+
}
|
|
1157
|
+
let t = /^\\+/.exec(G()), r = 0;
|
|
1158
|
+
if (t && t[0].length > 2 && (r = t[0].length, I.index += r, r % 2 != 0 && (V += "\\")), n.unescape === !0 ? V = W() : V += W(), I.brackets === 0) {
|
|
1159
|
+
Z({
|
|
1160
|
+
type: "text",
|
|
1161
|
+
value: V
|
|
1162
|
+
});
|
|
1163
|
+
continue;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
if (I.brackets > 0 && (V !== "]" || B.value === "[" || B.value === "[^")) {
|
|
1167
|
+
if (n.posix !== !1 && V === ":") {
|
|
1168
|
+
let e = B.value.slice(1);
|
|
1169
|
+
if (e.includes("[") && (B.posix = !0, e.includes(":"))) {
|
|
1170
|
+
let e = B.value.lastIndexOf("["), t = B.value.slice(0, e), n = o[B.value.slice(e + 2)];
|
|
1171
|
+
if (n) {
|
|
1172
|
+
B.value = t + n, I.backtrack = !0, W(), !h.output && g.indexOf(B) === 1 && (h.output = C);
|
|
1173
|
+
continue;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
(V === "[" && U() !== ":" || V === "-" && U() === "]") && (V = `\\${V}`), V === "]" && (B.value === "[" || B.value === "[^") && (V = `\\${V}`), n.posix === !0 && V === "!" && B.value === "[" && (V = "^"), B.value += V, q({ value: V });
|
|
1178
|
+
continue;
|
|
1179
|
+
}
|
|
1180
|
+
if (I.quotes === 1 && V !== "\"") {
|
|
1181
|
+
V = i.escapeRegex(V), B.value += V, q({ value: V });
|
|
1182
|
+
continue;
|
|
1183
|
+
}
|
|
1184
|
+
if (V === "\"") {
|
|
1185
|
+
I.quotes = I.quotes === 1 ? 0 : 1, n.keepQuotes === !0 && Z({
|
|
1186
|
+
type: "text",
|
|
1187
|
+
value: V
|
|
1188
|
+
});
|
|
1189
|
+
continue;
|
|
1190
|
+
}
|
|
1191
|
+
if (V === "(") {
|
|
1192
|
+
Y("parens"), Z({
|
|
1193
|
+
type: "paren",
|
|
1194
|
+
value: V
|
|
1195
|
+
});
|
|
1196
|
+
continue;
|
|
1197
|
+
}
|
|
1198
|
+
if (V === ")") {
|
|
1199
|
+
if (I.parens === 0 && n.strictBrackets === !0) throw SyntaxError(d("opening", "("));
|
|
1200
|
+
let e = L[L.length - 1];
|
|
1201
|
+
if (e && I.parens === e.parens + 1) {
|
|
1202
|
+
ee(L.pop());
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
Z({
|
|
1206
|
+
type: "paren",
|
|
1207
|
+
value: V,
|
|
1208
|
+
output: I.parens ? ")" : "\\)"
|
|
1209
|
+
}), X("parens");
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
if (V === "[") {
|
|
1213
|
+
if (n.nobracket === !0 || !G().includes("]")) {
|
|
1214
|
+
if (n.nobracket !== !0 && n.strictBrackets === !0) throw SyntaxError(d("closing", "]"));
|
|
1215
|
+
V = `\\${V}`;
|
|
1216
|
+
} else Y("brackets");
|
|
1217
|
+
Z({
|
|
1218
|
+
type: "bracket",
|
|
1219
|
+
value: V
|
|
1220
|
+
});
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
if (V === "]") {
|
|
1224
|
+
if (n.nobracket === !0 || B && B.type === "bracket" && B.value.length === 1) {
|
|
1225
|
+
Z({
|
|
1226
|
+
type: "text",
|
|
1227
|
+
value: V,
|
|
1228
|
+
output: `\\${V}`
|
|
1229
|
+
});
|
|
1230
|
+
continue;
|
|
1231
|
+
}
|
|
1232
|
+
if (I.brackets === 0) {
|
|
1233
|
+
if (n.strictBrackets === !0) throw SyntaxError(d("opening", "["));
|
|
1234
|
+
Z({
|
|
1235
|
+
type: "text",
|
|
1236
|
+
value: V,
|
|
1237
|
+
output: `\\${V}`
|
|
1238
|
+
});
|
|
1239
|
+
continue;
|
|
1240
|
+
}
|
|
1241
|
+
X("brackets");
|
|
1242
|
+
let e = B.value.slice(1);
|
|
1243
|
+
if (B.posix !== !0 && e[0] === "^" && !e.includes("/") && (V = `/${V}`), B.value += V, q({ value: V }), n.literalBrackets === !1 || i.hasRegexChars(e)) continue;
|
|
1244
|
+
let t = i.escapeRegex(B.value);
|
|
1245
|
+
if (I.output = I.output.slice(0, -B.value.length), n.literalBrackets === !0) {
|
|
1246
|
+
I.output += t, B.value = t;
|
|
1247
|
+
continue;
|
|
1248
|
+
}
|
|
1249
|
+
B.value = `(${_}${t}|${B.value})`, I.output += B.value;
|
|
1250
|
+
continue;
|
|
1251
|
+
}
|
|
1252
|
+
if (V === "{" && n.nobrace !== !0) {
|
|
1253
|
+
Y("braces");
|
|
1254
|
+
let e = {
|
|
1255
|
+
type: "brace",
|
|
1256
|
+
value: V,
|
|
1257
|
+
output: "(",
|
|
1258
|
+
outputIndex: I.output.length,
|
|
1259
|
+
tokensIndex: I.tokens.length
|
|
1260
|
+
};
|
|
1261
|
+
R.push(e), Z(e);
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
if (V === "}") {
|
|
1265
|
+
let e = R[R.length - 1];
|
|
1266
|
+
if (n.nobrace === !0 || !e) {
|
|
1267
|
+
Z({
|
|
1268
|
+
type: "text",
|
|
1269
|
+
value: V,
|
|
1270
|
+
output: V
|
|
1271
|
+
});
|
|
1272
|
+
continue;
|
|
1273
|
+
}
|
|
1274
|
+
let t = ")";
|
|
1275
|
+
if (e.dots === !0) {
|
|
1276
|
+
let e = g.slice(), r = [];
|
|
1277
|
+
for (let t = e.length - 1; t >= 0 && (g.pop(), e[t].type !== "brace"); t--) e[t].type !== "dots" && r.unshift(e[t].value);
|
|
1278
|
+
t = u(r, n), I.backtrack = !0;
|
|
1279
|
+
}
|
|
1280
|
+
if (e.comma !== !0 && e.dots !== !0) {
|
|
1281
|
+
let n = I.output.slice(0, e.outputIndex), r = I.tokens.slice(e.tokensIndex);
|
|
1282
|
+
e.value = e.output = "\\{", V = t = "\\}", I.output = n;
|
|
1283
|
+
for (let e of r) I.output += e.output || e.value;
|
|
1284
|
+
}
|
|
1285
|
+
Z({
|
|
1286
|
+
type: "brace",
|
|
1287
|
+
value: V,
|
|
1288
|
+
output: t
|
|
1289
|
+
}), X("braces"), R.pop();
|
|
1290
|
+
continue;
|
|
1291
|
+
}
|
|
1292
|
+
if (V === "|") {
|
|
1293
|
+
L.length > 0 && L[L.length - 1].conditions++, Z({
|
|
1294
|
+
type: "text",
|
|
1295
|
+
value: V
|
|
1296
|
+
});
|
|
1297
|
+
continue;
|
|
1298
|
+
}
|
|
1299
|
+
if (V === ",") {
|
|
1300
|
+
let e = V, t = R[R.length - 1];
|
|
1301
|
+
t && z[z.length - 1] === "braces" && (t.comma = !0, e = "|"), Z({
|
|
1302
|
+
type: "comma",
|
|
1303
|
+
value: V,
|
|
1304
|
+
output: e
|
|
1305
|
+
});
|
|
1306
|
+
continue;
|
|
1307
|
+
}
|
|
1308
|
+
if (V === "/") {
|
|
1309
|
+
if (B.type === "dot" && I.index === I.start + 1) {
|
|
1310
|
+
I.start = I.index + 1, I.consumed = "", I.output = "", g.pop(), B = h;
|
|
1311
|
+
continue;
|
|
1312
|
+
}
|
|
1313
|
+
Z({
|
|
1314
|
+
type: "slash",
|
|
1315
|
+
value: V,
|
|
1316
|
+
output: S
|
|
1317
|
+
});
|
|
1318
|
+
continue;
|
|
1319
|
+
}
|
|
1320
|
+
if (V === ".") {
|
|
1321
|
+
if (I.braces > 0 && B.type === "dot") {
|
|
1322
|
+
B.value === "." && (B.output = b);
|
|
1323
|
+
let e = R[R.length - 1];
|
|
1324
|
+
B.type = "dots", B.output += V, B.value += V, e.dots = !0;
|
|
1325
|
+
continue;
|
|
1326
|
+
}
|
|
1327
|
+
if (I.braces + I.parens === 0 && B.type !== "bos" && B.type !== "slash") {
|
|
1328
|
+
Z({
|
|
1329
|
+
type: "text",
|
|
1330
|
+
value: V,
|
|
1331
|
+
output: b
|
|
1332
|
+
});
|
|
1333
|
+
continue;
|
|
1334
|
+
}
|
|
1335
|
+
Z({
|
|
1336
|
+
type: "dot",
|
|
1337
|
+
value: V,
|
|
1338
|
+
output: b
|
|
1339
|
+
});
|
|
1340
|
+
continue;
|
|
1341
|
+
}
|
|
1342
|
+
if (V === "?") {
|
|
1343
|
+
if (!(B && B.value === "(") && n.noextglob !== !0 && U() === "(" && U(2) !== "?") {
|
|
1344
|
+
Q("qmark", V);
|
|
1345
|
+
continue;
|
|
1346
|
+
}
|
|
1347
|
+
if (B && B.type === "paren") {
|
|
1348
|
+
let e = U(), t = V;
|
|
1349
|
+
(B.value === "(" && !/[!=<:]/.test(e) || e === "<" && !/<([!=]|\w+>)/.test(G())) && (t = `\\${V}`), Z({
|
|
1350
|
+
type: "text",
|
|
1351
|
+
value: V,
|
|
1352
|
+
output: t
|
|
1353
|
+
});
|
|
1354
|
+
continue;
|
|
1355
|
+
}
|
|
1356
|
+
if (n.dot !== !0 && (B.type === "slash" || B.type === "bos")) {
|
|
1357
|
+
Z({
|
|
1358
|
+
type: "qmark",
|
|
1359
|
+
value: V,
|
|
1360
|
+
output: k
|
|
1361
|
+
});
|
|
1362
|
+
continue;
|
|
1363
|
+
}
|
|
1364
|
+
Z({
|
|
1365
|
+
type: "qmark",
|
|
1366
|
+
value: V,
|
|
1367
|
+
output: O
|
|
1368
|
+
});
|
|
1369
|
+
continue;
|
|
1370
|
+
}
|
|
1371
|
+
if (V === "!") {
|
|
1372
|
+
if (n.noextglob !== !0 && U() === "(" && (U(2) !== "?" || !/[!=<:]/.test(U(3)))) {
|
|
1373
|
+
Q("negate", V);
|
|
1374
|
+
continue;
|
|
1375
|
+
}
|
|
1376
|
+
if (n.nonegate !== !0 && I.index === 0) {
|
|
1377
|
+
J();
|
|
1378
|
+
continue;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
if (V === "+") {
|
|
1382
|
+
if (n.noextglob !== !0 && U() === "(" && U(2) !== "?") {
|
|
1383
|
+
Q("plus", V);
|
|
1384
|
+
continue;
|
|
1385
|
+
}
|
|
1386
|
+
if (B && B.value === "(" || n.regex === !1) {
|
|
1387
|
+
Z({
|
|
1388
|
+
type: "plus",
|
|
1389
|
+
value: V,
|
|
1390
|
+
output: x
|
|
1391
|
+
});
|
|
1392
|
+
continue;
|
|
1393
|
+
}
|
|
1394
|
+
if (B && (B.type === "bracket" || B.type === "paren" || B.type === "brace") || I.parens > 0) {
|
|
1395
|
+
Z({
|
|
1396
|
+
type: "plus",
|
|
1397
|
+
value: V
|
|
1398
|
+
});
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
Z({
|
|
1402
|
+
type: "plus",
|
|
1403
|
+
value: x
|
|
1404
|
+
});
|
|
1405
|
+
continue;
|
|
1406
|
+
}
|
|
1407
|
+
if (V === "@") {
|
|
1408
|
+
if (n.noextglob !== !0 && U() === "(" && U(2) !== "?") {
|
|
1409
|
+
Z({
|
|
1410
|
+
type: "at",
|
|
1411
|
+
extglob: !0,
|
|
1412
|
+
value: V,
|
|
1413
|
+
output: ""
|
|
1414
|
+
});
|
|
1415
|
+
continue;
|
|
1416
|
+
}
|
|
1417
|
+
Z({
|
|
1418
|
+
type: "text",
|
|
1419
|
+
value: V
|
|
1420
|
+
});
|
|
1421
|
+
continue;
|
|
1422
|
+
}
|
|
1423
|
+
if (V !== "*") {
|
|
1424
|
+
(V === "$" || V === "^") && (V = `\\${V}`);
|
|
1425
|
+
let e = s.exec(G());
|
|
1426
|
+
e && (V += e[0], I.index += e[0].length), Z({
|
|
1427
|
+
type: "text",
|
|
1428
|
+
value: V
|
|
1429
|
+
});
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
if (B && (B.type === "globstar" || B.star === !0)) {
|
|
1433
|
+
B.type = "star", B.star = !0, B.value += V, B.output = F, I.backtrack = !0, I.globstar = !0, K(V);
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
let t = G();
|
|
1437
|
+
if (n.noextglob !== !0 && /^\([^?]/.test(t)) {
|
|
1438
|
+
Q("star", V);
|
|
1439
|
+
continue;
|
|
1440
|
+
}
|
|
1441
|
+
if (B.type === "star") {
|
|
1442
|
+
if (n.noglobstar === !0) {
|
|
1443
|
+
K(V);
|
|
1444
|
+
continue;
|
|
1445
|
+
}
|
|
1446
|
+
let r = B.prev, i = r.prev, a = r.type === "slash" || r.type === "bos", o = i && (i.type === "star" || i.type === "globstar");
|
|
1447
|
+
if (n.bash === !0 && (!a || t[0] && t[0] !== "/")) {
|
|
1448
|
+
Z({
|
|
1449
|
+
type: "star",
|
|
1450
|
+
value: V,
|
|
1451
|
+
output: ""
|
|
1452
|
+
});
|
|
1453
|
+
continue;
|
|
1454
|
+
}
|
|
1455
|
+
let s = I.braces > 0 && (r.type === "comma" || r.type === "brace"), c = L.length && (r.type === "pipe" || r.type === "paren");
|
|
1456
|
+
if (!a && r.type !== "paren" && !s && !c) {
|
|
1457
|
+
Z({
|
|
1458
|
+
type: "star",
|
|
1459
|
+
value: V,
|
|
1460
|
+
output: ""
|
|
1461
|
+
});
|
|
1462
|
+
continue;
|
|
1463
|
+
}
|
|
1464
|
+
for (; t.slice(0, 3) === "/**";) {
|
|
1465
|
+
let n = e[I.index + 4];
|
|
1466
|
+
if (n && n !== "/") break;
|
|
1467
|
+
t = t.slice(3), K("/**", 3);
|
|
1468
|
+
}
|
|
1469
|
+
if (r.type === "bos" && H()) {
|
|
1470
|
+
B.type = "globstar", B.value += V, B.output = M(n), I.output = B.output, I.globstar = !0, K(V);
|
|
1471
|
+
continue;
|
|
1472
|
+
}
|
|
1473
|
+
if (r.type === "slash" && r.prev.type !== "bos" && !o && H()) {
|
|
1474
|
+
I.output = I.output.slice(0, -(r.output + B.output).length), r.output = `(?:${r.output}`, B.type = "globstar", B.output = M(n) + (n.strictSlashes ? ")" : "|$)"), B.value += V, I.globstar = !0, I.output += r.output + B.output, K(V);
|
|
1475
|
+
continue;
|
|
1476
|
+
}
|
|
1477
|
+
if (r.type === "slash" && r.prev.type !== "bos" && t[0] === "/") {
|
|
1478
|
+
let e = t[1] === void 0 ? "" : "|$";
|
|
1479
|
+
I.output = I.output.slice(0, -(r.output + B.output).length), r.output = `(?:${r.output}`, B.type = "globstar", B.output = `${M(n)}${S}|${S}${e})`, B.value += V, I.output += r.output + B.output, I.globstar = !0, K(V + W()), Z({
|
|
1480
|
+
type: "slash",
|
|
1481
|
+
value: "/",
|
|
1482
|
+
output: ""
|
|
1483
|
+
});
|
|
1484
|
+
continue;
|
|
1485
|
+
}
|
|
1486
|
+
if (r.type === "bos" && t[0] === "/") {
|
|
1487
|
+
B.type = "globstar", B.value += V, B.output = `(?:^|${S}|${M(n)}${S})`, I.output = B.output, I.globstar = !0, K(V + W()), Z({
|
|
1488
|
+
type: "slash",
|
|
1489
|
+
value: "/",
|
|
1490
|
+
output: ""
|
|
1491
|
+
});
|
|
1492
|
+
continue;
|
|
1493
|
+
}
|
|
1494
|
+
I.output = I.output.slice(0, -B.output.length), B.type = "globstar", B.output = M(n), B.value += V, I.output += B.output, I.globstar = !0, K(V);
|
|
1495
|
+
continue;
|
|
1496
|
+
}
|
|
1497
|
+
let r = {
|
|
1498
|
+
type: "star",
|
|
1499
|
+
value: V,
|
|
1500
|
+
output: F
|
|
1501
|
+
};
|
|
1502
|
+
if (n.bash === !0) {
|
|
1503
|
+
r.output = ".*?", (B.type === "bos" || B.type === "slash") && (r.output = N + r.output), Z(r);
|
|
1504
|
+
continue;
|
|
1505
|
+
}
|
|
1506
|
+
if (B && (B.type === "bracket" || B.type === "paren") && n.regex === !0) {
|
|
1507
|
+
r.output = V, Z(r);
|
|
1508
|
+
continue;
|
|
1509
|
+
}
|
|
1510
|
+
(I.index === I.start || B.type === "slash" || B.type === "dot") && (B.type === "dot" ? (I.output += E, B.output += E) : n.dot === !0 ? (I.output += D, B.output += D) : (I.output += N, B.output += N), U() !== "*" && (I.output += C, B.output += C)), Z(r);
|
|
1511
|
+
}
|
|
1512
|
+
for (; I.brackets > 0;) {
|
|
1513
|
+
if (n.strictBrackets === !0) throw SyntaxError(d("closing", "]"));
|
|
1514
|
+
I.output = i.escapeLast(I.output, "["), X("brackets");
|
|
1515
|
+
}
|
|
1516
|
+
for (; I.parens > 0;) {
|
|
1517
|
+
if (n.strictBrackets === !0) throw SyntaxError(d("closing", ")"));
|
|
1518
|
+
I.output = i.escapeLast(I.output, "("), X("parens");
|
|
1519
|
+
}
|
|
1520
|
+
for (; I.braces > 0;) {
|
|
1521
|
+
if (n.strictBrackets === !0) throw SyntaxError(d("closing", "}"));
|
|
1522
|
+
I.output = i.escapeLast(I.output, "{"), X("braces");
|
|
1523
|
+
}
|
|
1524
|
+
if (n.strictSlashes !== !0 && (B.type === "star" || B.type === "bracket") && Z({
|
|
1525
|
+
type: "maybe_slash",
|
|
1526
|
+
value: "",
|
|
1527
|
+
output: `${S}?`
|
|
1528
|
+
}), I.backtrack === !0) {
|
|
1529
|
+
I.output = "";
|
|
1530
|
+
for (let e of I.tokens) I.output += e.output == null ? e.value : e.output, e.suffix && (I.output += e.suffix);
|
|
1531
|
+
}
|
|
1532
|
+
return I;
|
|
1533
|
+
};
|
|
1534
|
+
f.fastpaths = (e, t) => {
|
|
1535
|
+
let n = { ...t }, o = typeof n.maxLength == "number" ? Math.min(a, n.maxLength) : a, s = e.length;
|
|
1536
|
+
if (s > o) throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);
|
|
1537
|
+
e = l[e] || e;
|
|
1538
|
+
let { DOT_LITERAL: c, SLASH_LITERAL: u, ONE_CHAR: d, DOTS_SLASH: f, NO_DOT: p, NO_DOTS: m, NO_DOTS_SLASH: h, STAR: g, START_ANCHOR: _ } = r.globChars(n.windows), v = n.dot ? m : p, y = n.dot ? h : p, b = n.capture ? "" : "?:", x = {
|
|
1539
|
+
negated: !1,
|
|
1540
|
+
prefix: ""
|
|
1541
|
+
}, S = n.bash === !0 ? ".*?" : g;
|
|
1542
|
+
n.capture && (S = `(${S})`);
|
|
1543
|
+
let C = (e) => e.noglobstar === !0 ? S : `(${b}(?:(?!${_}${e.dot ? f : c}).)*?)`, w = (e) => {
|
|
1544
|
+
switch (e) {
|
|
1545
|
+
case "*": return `${v}${d}${S}`;
|
|
1546
|
+
case ".*": return `${c}${d}${S}`;
|
|
1547
|
+
case "*.*": return `${v}${S}${c}${d}${S}`;
|
|
1548
|
+
case "*/*": return `${v}${S}${u}${d}${y}${S}`;
|
|
1549
|
+
case "**": return v + C(n);
|
|
1550
|
+
case "**/*": return `(?:${v}${C(n)}${u})?${y}${d}${S}`;
|
|
1551
|
+
case "**/*.*": return `(?:${v}${C(n)}${u})?${y}${S}${c}${d}${S}`;
|
|
1552
|
+
case "**/.*": return `(?:${v}${C(n)}${u})?${c}${d}${S}`;
|
|
1553
|
+
default: {
|
|
1554
|
+
let t = /^(.*?)\.(\w+)$/.exec(e);
|
|
1555
|
+
if (!t) return;
|
|
1556
|
+
let n = w(t[1]);
|
|
1557
|
+
return n ? n + c + t[2] : void 0;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}, T = w(i.removePrefix(e, x));
|
|
1561
|
+
return T && n.strictSlashes !== !0 && (T += `${u}?`), T;
|
|
1562
|
+
}, e.exports = f;
|
|
1563
|
+
},
|
|
1564
|
+
510: (e, t, n) => {
|
|
1565
|
+
let r = n(716), i = n(697), a = n(96), o = n(154), s = (e) => e && typeof e == "object" && !Array.isArray(e), c = (e, t, n = !1) => {
|
|
1566
|
+
if (Array.isArray(e)) {
|
|
1567
|
+
let r = e.map(((e) => c(e, t, n)));
|
|
1568
|
+
return (e) => {
|
|
1569
|
+
for (let t of r) {
|
|
1570
|
+
let n = t(e);
|
|
1571
|
+
if (n) return n;
|
|
1572
|
+
}
|
|
1573
|
+
return !1;
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
let r = s(e) && e.tokens && e.input;
|
|
1577
|
+
if (e === "" || typeof e != "string" && !r) throw TypeError("Expected pattern to be a non-empty string");
|
|
1578
|
+
let i = t || {}, a = i.windows, o = r ? c.compileRe(e, t) : c.makeRe(e, t, !1, !0), l = o.state;
|
|
1579
|
+
delete o.state;
|
|
1580
|
+
let u = () => !1;
|
|
1581
|
+
if (i.ignore) {
|
|
1582
|
+
let e = {
|
|
1583
|
+
...t,
|
|
1584
|
+
ignore: null,
|
|
1585
|
+
onMatch: null,
|
|
1586
|
+
onResult: null
|
|
1587
|
+
};
|
|
1588
|
+
u = c(i.ignore, e, n);
|
|
1589
|
+
}
|
|
1590
|
+
let d = (n, r = !1) => {
|
|
1591
|
+
let { isMatch: s, match: d, output: f } = c.test(n, o, t, {
|
|
1592
|
+
glob: e,
|
|
1593
|
+
posix: a
|
|
1594
|
+
}), p = {
|
|
1595
|
+
glob: e,
|
|
1596
|
+
state: l,
|
|
1597
|
+
regex: o,
|
|
1598
|
+
posix: a,
|
|
1599
|
+
input: n,
|
|
1600
|
+
output: f,
|
|
1601
|
+
match: d,
|
|
1602
|
+
isMatch: s
|
|
1603
|
+
};
|
|
1604
|
+
return typeof i.onResult == "function" && i.onResult(p), s === !1 ? (p.isMatch = !1, r ? p : !1) : u(n) ? (typeof i.onIgnore == "function" && i.onIgnore(p), p.isMatch = !1, r ? p : !1) : (typeof i.onMatch == "function" && i.onMatch(p), r ? p : !0);
|
|
1605
|
+
};
|
|
1606
|
+
return n && (d.state = l), d;
|
|
1607
|
+
};
|
|
1608
|
+
c.test = (e, t, n, { glob: r, posix: i } = {}) => {
|
|
1609
|
+
if (typeof e != "string") throw TypeError("Expected input to be a string");
|
|
1610
|
+
if (e === "") return {
|
|
1611
|
+
isMatch: !1,
|
|
1612
|
+
output: ""
|
|
1613
|
+
};
|
|
1614
|
+
let o = n || {}, s = o.format || (i ? a.toPosixSlashes : null), l = e === r, u = l && s ? s(e) : e;
|
|
1615
|
+
return l === !1 && (u = s ? s(e) : e, l = u === r), (l === !1 || o.capture === !0) && (l = o.matchBase === !0 || o.basename === !0 ? c.matchBase(e, t, n, i) : t.exec(u)), {
|
|
1616
|
+
isMatch: !!l,
|
|
1617
|
+
match: l,
|
|
1618
|
+
output: u
|
|
1619
|
+
};
|
|
1620
|
+
}, c.matchBase = (e, t, n) => (t instanceof RegExp ? t : c.makeRe(t, n)).test(a.basename(e)), c.isMatch = (e, t, n) => c(t, n)(e), c.parse = (e, t) => Array.isArray(e) ? e.map(((e) => c.parse(e, t))) : i(e, {
|
|
1621
|
+
...t,
|
|
1622
|
+
fastpaths: !1
|
|
1623
|
+
}), c.scan = (e, t) => r(e, t), c.compileRe = (e, t, n = !1, r = !1) => {
|
|
1624
|
+
if (n === !0) return e.output;
|
|
1625
|
+
let i = t || {}, a = i.contains ? "" : "^", o = i.contains ? "" : "$", s = `${a}(?:${e.output})${o}`;
|
|
1626
|
+
e && e.negated === !0 && (s = `^(?!${s}).*$`);
|
|
1627
|
+
let l = c.toRegex(s, t);
|
|
1628
|
+
return r === !0 && (l.state = e), l;
|
|
1629
|
+
}, c.makeRe = (e, t = {}, n = !1, r = !1) => {
|
|
1630
|
+
if (!e || typeof e != "string") throw TypeError("Expected a non-empty string");
|
|
1631
|
+
let a = {
|
|
1632
|
+
negated: !1,
|
|
1633
|
+
fastpaths: !0
|
|
1634
|
+
};
|
|
1635
|
+
return t.fastpaths !== !1 && (e[0] === "." || e[0] === "*") && (a.output = i.fastpaths(e, t)), a.output || (a = i(e, t)), c.compileRe(a, t, n, r);
|
|
1636
|
+
}, c.toRegex = (e, t) => {
|
|
1637
|
+
try {
|
|
1638
|
+
let n = t || {};
|
|
1639
|
+
return new RegExp(e, n.flags || (n.nocase ? "i" : ""));
|
|
1640
|
+
} catch (e) {
|
|
1641
|
+
if (t && t.debug === !0) throw e;
|
|
1642
|
+
return /$^/;
|
|
1643
|
+
}
|
|
1644
|
+
}, c.constants = o, e.exports = c;
|
|
1645
|
+
},
|
|
1646
|
+
716: (e, t, n) => {
|
|
1647
|
+
let r = n(96), { CHAR_ASTERISK: i, CHAR_AT: a, CHAR_BACKWARD_SLASH: o, CHAR_COMMA: s, CHAR_DOT: c, CHAR_EXCLAMATION_MARK: l, CHAR_FORWARD_SLASH: u, CHAR_LEFT_CURLY_BRACE: d, CHAR_LEFT_PARENTHESES: f, CHAR_LEFT_SQUARE_BRACKET: p, CHAR_PLUS: m, CHAR_QUESTION_MARK: h, CHAR_RIGHT_CURLY_BRACE: g, CHAR_RIGHT_PARENTHESES: _, CHAR_RIGHT_SQUARE_BRACKET: v } = n(154), y = (e) => e === u || e === o, b = (e) => {
|
|
1648
|
+
e.isPrefix !== !0 && (e.depth = e.isGlobstar ? Infinity : 1);
|
|
1649
|
+
};
|
|
1650
|
+
e.exports = (e, t) => {
|
|
1651
|
+
let n = t || {}, x = e.length - 1, S = n.parts === !0 || n.scanToEnd === !0, C = [], w = [], T = [], E = e, D = -1, O = 0, k = 0, A = !1, j = !1, M = !1, N = !1, P = !1, F = !1, I = !1, L = !1, R = !1, z = !1, B = 0, V, H, U = {
|
|
1652
|
+
value: "",
|
|
1653
|
+
depth: 0,
|
|
1654
|
+
isGlob: !1
|
|
1655
|
+
}, W = () => D >= x, G = () => E.charCodeAt(D + 1), K = () => (V = H, E.charCodeAt(++D));
|
|
1656
|
+
for (; D < x;) {
|
|
1657
|
+
H = K();
|
|
1658
|
+
let e;
|
|
1659
|
+
if (H === o) {
|
|
1660
|
+
I = U.backslashes = !0, H = K(), H === d && (F = !0);
|
|
1661
|
+
continue;
|
|
1662
|
+
}
|
|
1663
|
+
if (F === !0 || H === d) {
|
|
1664
|
+
for (B++; W() !== !0 && (H = K());) {
|
|
1665
|
+
if (H === o) {
|
|
1666
|
+
I = U.backslashes = !0, K();
|
|
1667
|
+
continue;
|
|
1668
|
+
}
|
|
1669
|
+
if (H === d) {
|
|
1670
|
+
B++;
|
|
1671
|
+
continue;
|
|
1672
|
+
}
|
|
1673
|
+
if (F !== !0 && H === c && (H = K()) === c) {
|
|
1674
|
+
if (A = U.isBrace = !0, M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
if (F !== !0 && H === s) {
|
|
1678
|
+
if (A = U.isBrace = !0, M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
if (H === g && (B--, B === 0)) {
|
|
1682
|
+
F = !1, A = U.isBrace = !0, z = !0;
|
|
1683
|
+
break;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
if (S === !0) continue;
|
|
1687
|
+
break;
|
|
1688
|
+
}
|
|
1689
|
+
if (H === u) {
|
|
1690
|
+
if (C.push(D), w.push(U), U = {
|
|
1691
|
+
value: "",
|
|
1692
|
+
depth: 0,
|
|
1693
|
+
isGlob: !1
|
|
1694
|
+
}, z === !0) continue;
|
|
1695
|
+
if (V === c && D === O + 1) {
|
|
1696
|
+
O += 2;
|
|
1697
|
+
continue;
|
|
1698
|
+
}
|
|
1699
|
+
k = D + 1;
|
|
1700
|
+
continue;
|
|
1701
|
+
}
|
|
1702
|
+
if (n.noext !== !0 && (H === m || H === a || H === i || H === h || H === l) && G() === f) {
|
|
1703
|
+
if (M = U.isGlob = !0, N = U.isExtglob = !0, z = !0, H === l && D === O && (R = !0), S === !0) {
|
|
1704
|
+
for (; W() !== !0 && (H = K());) {
|
|
1705
|
+
if (H === o) {
|
|
1706
|
+
I = U.backslashes = !0, H = K();
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
if (H === _) {
|
|
1710
|
+
M = U.isGlob = !0, z = !0;
|
|
1711
|
+
break;
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
continue;
|
|
1715
|
+
}
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
if (H === i) {
|
|
1719
|
+
if (V === i && (P = U.isGlobstar = !0), M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
1720
|
+
break;
|
|
1721
|
+
}
|
|
1722
|
+
if (H === h) {
|
|
1723
|
+
if (M = U.isGlob = !0, z = !0, S === !0) continue;
|
|
1724
|
+
break;
|
|
1725
|
+
}
|
|
1726
|
+
if (H === p) {
|
|
1727
|
+
for (; W() !== !0 && (e = K());) {
|
|
1728
|
+
if (e === o) {
|
|
1729
|
+
I = U.backslashes = !0, K();
|
|
1730
|
+
continue;
|
|
1731
|
+
}
|
|
1732
|
+
if (e === v) {
|
|
1733
|
+
j = U.isBracket = !0, M = U.isGlob = !0, z = !0;
|
|
1734
|
+
break;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
if (S === !0) continue;
|
|
1738
|
+
break;
|
|
1739
|
+
}
|
|
1740
|
+
if (n.nonegate !== !0 && H === l && D === O) {
|
|
1741
|
+
L = U.negated = !0, O++;
|
|
1742
|
+
continue;
|
|
1743
|
+
}
|
|
1744
|
+
if (n.noparen !== !0 && H === f) {
|
|
1745
|
+
if (M = U.isGlob = !0, S === !0) {
|
|
1746
|
+
for (; W() !== !0 && (H = K());) {
|
|
1747
|
+
if (H === f) {
|
|
1748
|
+
I = U.backslashes = !0, H = K();
|
|
1749
|
+
continue;
|
|
1750
|
+
}
|
|
1751
|
+
if (H === _) {
|
|
1752
|
+
z = !0;
|
|
1753
|
+
break;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
continue;
|
|
1757
|
+
}
|
|
1758
|
+
break;
|
|
1759
|
+
}
|
|
1760
|
+
if (M === !0) {
|
|
1761
|
+
if (z = !0, S === !0) continue;
|
|
1762
|
+
break;
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
n.noext === !0 && (N = !1, M = !1);
|
|
1766
|
+
let q = E, J = "", Y = "";
|
|
1767
|
+
O > 0 && (J = E.slice(0, O), E = E.slice(O), k -= O), q && M === !0 && k > 0 ? (q = E.slice(0, k), Y = E.slice(k)) : M === !0 ? (q = "", Y = E) : q = E, q && q !== "" && q !== "/" && q !== E && y(q.charCodeAt(q.length - 1)) && (q = q.slice(0, -1)), n.unescape === !0 && (Y &&= r.removeBackslashes(Y), q && I === !0 && (q = r.removeBackslashes(q)));
|
|
1768
|
+
let X = {
|
|
1769
|
+
prefix: J,
|
|
1770
|
+
input: e,
|
|
1771
|
+
start: O,
|
|
1772
|
+
base: q,
|
|
1773
|
+
glob: Y,
|
|
1774
|
+
isBrace: A,
|
|
1775
|
+
isBracket: j,
|
|
1776
|
+
isGlob: M,
|
|
1777
|
+
isExtglob: N,
|
|
1778
|
+
isGlobstar: P,
|
|
1779
|
+
negated: L,
|
|
1780
|
+
negatedExtglob: R
|
|
1781
|
+
};
|
|
1782
|
+
if (n.tokens === !0 && (X.maxDepth = 0, y(H) || w.push(U), X.tokens = w), n.parts === !0 || n.tokens === !0) {
|
|
1783
|
+
let t;
|
|
1784
|
+
for (let r = 0; r < C.length; r++) {
|
|
1785
|
+
let i = t ? t + 1 : O, a = C[r], o = e.slice(i, a);
|
|
1786
|
+
n.tokens && (r === 0 && O !== 0 ? (w[r].isPrefix = !0, w[r].value = J) : w[r].value = o, b(w[r]), X.maxDepth += w[r].depth), (r !== 0 || o !== "") && T.push(o), t = a;
|
|
1787
|
+
}
|
|
1788
|
+
if (t && t + 1 < e.length) {
|
|
1789
|
+
let r = e.slice(t + 1);
|
|
1790
|
+
T.push(r), n.tokens && (w[w.length - 1].value = r, b(w[w.length - 1]), X.maxDepth += w[w.length - 1].depth);
|
|
1791
|
+
}
|
|
1792
|
+
X.slashes = C, X.parts = T;
|
|
1793
|
+
}
|
|
1794
|
+
return X;
|
|
1795
|
+
};
|
|
1796
|
+
},
|
|
1797
|
+
96: (e, t, n) => {
|
|
1798
|
+
let { REGEX_BACKSLASH: r, REGEX_REMOVE_BACKSLASH: i, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: o } = n(154);
|
|
1799
|
+
t.isObject = (e) => typeof e == "object" && !!e && !Array.isArray(e), t.hasRegexChars = (e) => a.test(e), t.isRegexChar = (e) => e.length === 1 && t.hasRegexChars(e), t.escapeRegex = (e) => e.replace(o, "\\$1"), t.toPosixSlashes = (e) => e.replace(r, "/"), t.removeBackslashes = (e) => e.replace(i, ((e) => e === "\\" ? "" : e)), t.escapeLast = (e, n, r) => {
|
|
1800
|
+
let i = e.lastIndexOf(n, r);
|
|
1801
|
+
return i === -1 ? e : e[i - 1] === "\\" ? t.escapeLast(e, n, i - 1) : `${e.slice(0, i)}\\${e.slice(i)}`;
|
|
1802
|
+
}, t.removePrefix = (e, t = {}) => {
|
|
1803
|
+
let n = e;
|
|
1804
|
+
return n.startsWith("./") && (n = n.slice(2), t.prefix = "./"), n;
|
|
1805
|
+
}, t.wrapOutput = (e, t = {}, n = {}) => {
|
|
1806
|
+
let r = `${n.contains ? "" : "^"}(?:${e})${n.contains ? "" : "$"}`;
|
|
1807
|
+
return t.negated === !0 && (r = `(?:^(?!${r}).*$)`), r;
|
|
1808
|
+
}, t.basename = (e, { windows: t } = {}) => {
|
|
1809
|
+
let n = e.split(t ? /[\\/]/ : "/"), r = n[n.length - 1];
|
|
1810
|
+
return r === "" ? n[n.length - 2] : r;
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
}, n = {};
|
|
1814
|
+
function r(t) {
|
|
1815
|
+
var i = n[t];
|
|
1816
|
+
if (i !== void 0) return i.exports;
|
|
1817
|
+
var a = n[t] = { exports: {} }, o = !0;
|
|
1818
|
+
try {
|
|
1819
|
+
e[t](a, a.exports, r), o = !1;
|
|
1820
|
+
} finally {
|
|
1821
|
+
o && delete n[t];
|
|
1822
|
+
}
|
|
1823
|
+
return a.exports;
|
|
1824
|
+
}
|
|
1825
|
+
r !== void 0 && (r.ab = __dirname + "/"), t.exports = r(170);
|
|
1826
|
+
})();
|
|
1827
|
+
})), N = /* @__PURE__ */ c(((e) => {
|
|
1828
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1829
|
+
function t(e, t) {
|
|
1830
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
1831
|
+
enumerable: !0,
|
|
1832
|
+
get: t[n]
|
|
1833
|
+
});
|
|
1834
|
+
}
|
|
1835
|
+
t(e, {
|
|
1836
|
+
hasLocalMatch: function() {
|
|
1837
|
+
return i;
|
|
1838
|
+
},
|
|
1839
|
+
matchLocalPattern: function() {
|
|
1840
|
+
return r;
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
var n = M();
|
|
1844
|
+
function r(e, t) {
|
|
1845
|
+
return !(e.search !== void 0 && e.search !== t.search || !(0, n.makeRe)(e.pathname ?? "**", { dot: !0 }).test(t.pathname));
|
|
1846
|
+
}
|
|
1847
|
+
function i(e, t) {
|
|
1848
|
+
if (!e) return !0;
|
|
1849
|
+
let n = new URL(t, "http://n");
|
|
1850
|
+
return e.some((e) => r(e, n));
|
|
1851
|
+
}
|
|
1852
|
+
})), P = /* @__PURE__ */ c(((e) => {
|
|
1853
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1854
|
+
function t(e, t) {
|
|
1855
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
1856
|
+
enumerable: !0,
|
|
1857
|
+
get: t[n]
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
t(e, {
|
|
1861
|
+
hasRemoteMatch: function() {
|
|
1862
|
+
return i;
|
|
1863
|
+
},
|
|
1864
|
+
matchRemotePattern: function() {
|
|
1865
|
+
return r;
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
var n = M();
|
|
1869
|
+
function r(e, t) {
|
|
1870
|
+
if (e.protocol !== void 0 && e.protocol.replace(/:$/, "") !== t.protocol.replace(/:$/, "") || e.port !== void 0 && e.port !== t.port) return !1;
|
|
1871
|
+
if (e.hostname === void 0) throw Object.defineProperty(/* @__PURE__ */ Error(`Pattern should define hostname but found\n${JSON.stringify(e)}`), "__NEXT_ERROR_CODE", {
|
|
1872
|
+
value: "E410",
|
|
1873
|
+
enumerable: !1,
|
|
1874
|
+
configurable: !0
|
|
1875
|
+
});
|
|
1876
|
+
return !(!(0, n.makeRe)(e.hostname).test(t.hostname) || e.search !== void 0 && e.search !== t.search || !(0, n.makeRe)(e.pathname ?? "**", { dot: !0 }).test(t.pathname));
|
|
1877
|
+
}
|
|
1878
|
+
function i(e, t, n) {
|
|
1879
|
+
return e.some((e) => n.hostname === e) || t.some((e) => r(e, n));
|
|
1880
|
+
}
|
|
1881
|
+
})), F = /* @__PURE__ */ c(((e) => {
|
|
1882
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "default", {
|
|
1883
|
+
enumerable: !0,
|
|
1884
|
+
get: function() {
|
|
1885
|
+
return i;
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
var t = j(), n = x();
|
|
1889
|
+
function r({ config: e, src: r, width: i, quality: a }) {
|
|
1890
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1891
|
+
let e = [];
|
|
1892
|
+
if (r || e.push("src"), i || e.push("width"), e.length > 0) throw Object.defineProperty(/* @__PURE__ */ Error(`Next Image Optimization requires ${e.join(", ")} to be provided. Make sure you pass them as props to the \`next/image\` component. Received: ${JSON.stringify({
|
|
1893
|
+
src: r,
|
|
1894
|
+
width: i,
|
|
1895
|
+
quality: a
|
|
1896
|
+
})}`), "__NEXT_ERROR_CODE", {
|
|
1897
|
+
value: "E188",
|
|
1898
|
+
enumerable: !1,
|
|
1899
|
+
configurable: !0
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
let o = (0, n.getDeploymentId)();
|
|
1903
|
+
if (r.startsWith("/") && !r.startsWith("//")) {
|
|
1904
|
+
let e = r.indexOf("?");
|
|
1905
|
+
if (e !== -1) {
|
|
1906
|
+
let t = new URLSearchParams(r.slice(e + 1)), n = t.get("dpl");
|
|
1907
|
+
if (n) {
|
|
1908
|
+
o = n, t.delete("dpl");
|
|
1909
|
+
let i = t.toString();
|
|
1910
|
+
r = r.slice(0, e) + (i ? "?" + i : "");
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
if (r.startsWith("/") && r.includes("?") && e.localPatterns?.length === 1 && e.localPatterns[0].pathname === "**" && e.localPatterns[0].search === "") throw Object.defineProperty(/* @__PURE__ */ Error(`Image with src "${r}" is using a query string which is not configured in images.localPatterns.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
|
|
1915
|
+
value: "E871",
|
|
1916
|
+
enumerable: !1,
|
|
1917
|
+
configurable: !0
|
|
1918
|
+
});
|
|
1919
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1920
|
+
if (r.startsWith("//")) throw Object.defineProperty(/* @__PURE__ */ Error(`Failed to parse src "${r}" on \`next/image\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
|
|
1921
|
+
value: "E360",
|
|
1922
|
+
enumerable: !1,
|
|
1923
|
+
configurable: !0
|
|
1924
|
+
});
|
|
1925
|
+
if (r.startsWith("/") && e.localPatterns && process.env.NODE_ENV !== "test" && process.env.NEXT_RUNTIME !== "edge") {
|
|
1926
|
+
let { hasLocalMatch: t } = N();
|
|
1927
|
+
if (!t(e.localPatterns, r)) throw Object.defineProperty(/* @__PURE__ */ Error(`Invalid src prop (${r}) on \`next/image\` does not match \`images.localPatterns\` configured in your \`next.config.js\`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
|
|
1928
|
+
value: "E426",
|
|
1929
|
+
enumerable: !1,
|
|
1930
|
+
configurable: !0
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
if (!r.startsWith("/") && (e.domains || e.remotePatterns)) {
|
|
1934
|
+
let t;
|
|
1935
|
+
try {
|
|
1936
|
+
t = new URL(r);
|
|
1937
|
+
} catch (e) {
|
|
1938
|
+
throw console.error(e), Object.defineProperty(/* @__PURE__ */ Error(`Failed to parse src "${r}" on \`next/image\`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
|
|
1939
|
+
value: "E63",
|
|
1940
|
+
enumerable: !1,
|
|
1941
|
+
configurable: !0
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
if (process.env.NODE_ENV !== "test" && process.env.NEXT_RUNTIME !== "edge") {
|
|
1945
|
+
let { hasRemoteMatch: n } = P();
|
|
1946
|
+
if (!n(e.domains, e.remotePatterns, t)) throw Object.defineProperty(/* @__PURE__ */ Error(`Invalid src prop (${r}) on \`next/image\`, hostname "${t.hostname}" is not configured under images in your \`next.config.js\`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host`), "__NEXT_ERROR_CODE", {
|
|
1947
|
+
value: "E231",
|
|
1948
|
+
enumerable: !1,
|
|
1949
|
+
configurable: !0
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
let s = (0, t.findClosestQuality)(a, e);
|
|
1955
|
+
return `${e.path}?url=${encodeURIComponent(r)}&w=${i}&q=${s}${r.startsWith("/") && o ? `&dpl=${o}` : ""}`;
|
|
1956
|
+
}
|
|
1957
|
+
r.__next_img_default = !0;
|
|
1958
|
+
var i = r;
|
|
1959
|
+
})), I = /* @__PURE__ */ c(((e, t) => {
|
|
1960
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "useMergedRef", {
|
|
1961
|
+
enumerable: !0,
|
|
1962
|
+
get: function() {
|
|
1963
|
+
return r;
|
|
1964
|
+
}
|
|
1965
|
+
});
|
|
1966
|
+
var n = d("react");
|
|
1967
|
+
function r(e, t) {
|
|
1968
|
+
let r = (0, n.useRef)(null), a = (0, n.useRef)(null);
|
|
1969
|
+
return (0, n.useCallback)((n) => {
|
|
1970
|
+
if (n === null) {
|
|
1971
|
+
let e = r.current;
|
|
1972
|
+
e && (r.current = null, e());
|
|
1973
|
+
let t = a.current;
|
|
1974
|
+
t && (a.current = null, t());
|
|
1975
|
+
} else e && (r.current = i(e, n)), t && (a.current = i(t, n));
|
|
1976
|
+
}, [e, t]);
|
|
1977
|
+
}
|
|
1978
|
+
function i(e, t) {
|
|
1979
|
+
if (typeof e == "function") {
|
|
1980
|
+
let n = e(t);
|
|
1981
|
+
return typeof n == "function" ? n : () => e(null);
|
|
1982
|
+
} else return e.current = t, () => {
|
|
1983
|
+
e.current = null;
|
|
1984
|
+
};
|
|
1985
|
+
}
|
|
1986
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && e.default.__esModule === void 0 && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1987
|
+
})), L = /* @__PURE__ */ c(((e, t) => {
|
|
1988
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "Image", {
|
|
1989
|
+
enumerable: !0,
|
|
1990
|
+
get: function() {
|
|
1991
|
+
return D;
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1994
|
+
var n = y(), r = T(), i = m(), a = /* @__PURE__ */ r._(d("react")), o = /* @__PURE__ */ n._(d("react-dom")), s = /* @__PURE__ */ n._(O()), c = w(), l = C(), u = k(), f = b(), p = A(), h = /* @__PURE__ */ n._(F()), g = I(), _ = process.env.__NEXT_IMAGE_OPTS;
|
|
1995
|
+
typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
|
|
1996
|
+
function v(e, t, n, r, i, a, o) {
|
|
1997
|
+
let s = e?.src;
|
|
1998
|
+
!e || e["data-loaded-src"] === s || (e["data-loaded-src"] = s, ("decode" in e ? e.decode() : Promise.resolve()).catch(() => {}).then(() => {
|
|
1999
|
+
if (!(!e.parentElement || !e.isConnected)) {
|
|
2000
|
+
if (t !== "empty" && i(!0), n?.current) {
|
|
2001
|
+
let t = new Event("load");
|
|
2002
|
+
Object.defineProperty(t, "target", {
|
|
2003
|
+
writable: !1,
|
|
2004
|
+
value: e
|
|
2005
|
+
});
|
|
2006
|
+
let r = !1, i = !1;
|
|
2007
|
+
n.current({
|
|
2008
|
+
...t,
|
|
2009
|
+
nativeEvent: t,
|
|
2010
|
+
currentTarget: e,
|
|
2011
|
+
target: e,
|
|
2012
|
+
isDefaultPrevented: () => r,
|
|
2013
|
+
isPropagationStopped: () => i,
|
|
2014
|
+
persist: () => {},
|
|
2015
|
+
preventDefault: () => {
|
|
2016
|
+
r = !0, t.preventDefault();
|
|
2017
|
+
},
|
|
2018
|
+
stopPropagation: () => {
|
|
2019
|
+
i = !0, t.stopPropagation();
|
|
2020
|
+
}
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
if (r?.current && r.current(e), process.env.NODE_ENV !== "production") {
|
|
2024
|
+
let t = new URL(s, "http://n").searchParams.get("url") || s;
|
|
2025
|
+
if (e.getAttribute("data-nimg") === "fill") {
|
|
2026
|
+
if (!a && (!o || o === "100vw") && e.getBoundingClientRect().width / window.innerWidth < .6 && (o === "100vw" ? (0, f.warnOnce)(`Image with src "${t}" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`) : (0, f.warnOnce)(`Image with src "${t}" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`)), e.parentElement) {
|
|
2027
|
+
let { position: n } = window.getComputedStyle(e.parentElement), r = [
|
|
2028
|
+
"absolute",
|
|
2029
|
+
"fixed",
|
|
2030
|
+
"relative"
|
|
2031
|
+
];
|
|
2032
|
+
r.includes(n) || (0, f.warnOnce)(`Image with src "${t}" has "fill" and parent element with invalid "position". Provided "${n}" should be one of ${r.map(String).join(",")}.`);
|
|
2033
|
+
}
|
|
2034
|
+
e.height === 0 && (0, f.warnOnce)(`Image with src "${t}" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.`);
|
|
2035
|
+
}
|
|
2036
|
+
let n = e.height.toString() !== e.getAttribute("height"), r = e.width.toString() !== e.getAttribute("width");
|
|
2037
|
+
(n && !r || !n && r) && (0, f.warnOnce)(`Image with src "${t}" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}));
|
|
2041
|
+
}
|
|
2042
|
+
function x(e) {
|
|
2043
|
+
return a.use ? { fetchPriority: e } : { fetchpriority: e };
|
|
2044
|
+
}
|
|
2045
|
+
var S = /* @__PURE__ */ (0, a.forwardRef)(({ src: e, srcSet: t, sizes: n, height: r, width: o, decoding: s, className: c, style: l, fetchPriority: u, placeholder: d, loading: f, unoptimized: p, fill: m, onLoadRef: h, onLoadingCompleteRef: _, setBlurComplete: y, setShowAltText: b, sizesInput: S, onLoad: C, onError: w, ...T }, E) => {
|
|
2046
|
+
let D = (0, a.useCallback)((t) => {
|
|
2047
|
+
t && (w && (t.src = t.src), process.env.NODE_ENV !== "production" && (e || console.error("Image is missing required \"src\" property:", t), t.getAttribute("alt") === null && console.error("Image is missing required \"alt\" property. Please add Alternative Text to describe the image for screen readers and search engines.")), t.complete && v(t, d, h, _, y, p, S));
|
|
2048
|
+
}, [
|
|
2049
|
+
e,
|
|
2050
|
+
d,
|
|
2051
|
+
h,
|
|
2052
|
+
_,
|
|
2053
|
+
y,
|
|
2054
|
+
w,
|
|
2055
|
+
p,
|
|
2056
|
+
S
|
|
2057
|
+
]), O = (0, g.useMergedRef)(E, D);
|
|
2058
|
+
return /* @__PURE__ */ (0, i.jsx)("img", {
|
|
2059
|
+
...T,
|
|
2060
|
+
...x(u),
|
|
2061
|
+
loading: f,
|
|
2062
|
+
width: o,
|
|
2063
|
+
height: r,
|
|
2064
|
+
decoding: s,
|
|
2065
|
+
"data-nimg": m ? "fill" : "1",
|
|
2066
|
+
className: c,
|
|
2067
|
+
style: l,
|
|
2068
|
+
sizes: n,
|
|
2069
|
+
srcSet: t,
|
|
2070
|
+
src: e,
|
|
2071
|
+
ref: O,
|
|
2072
|
+
onLoad: (e) => {
|
|
2073
|
+
let t = e.currentTarget;
|
|
2074
|
+
v(t, d, h, _, y, p, S);
|
|
2075
|
+
},
|
|
2076
|
+
onError: (e) => {
|
|
2077
|
+
b(!0), d !== "empty" && y(!0), w && w(e);
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
});
|
|
2081
|
+
function E({ isAppRouter: e, imgAttributes: t }) {
|
|
2082
|
+
let n = {
|
|
2083
|
+
as: "image",
|
|
2084
|
+
imageSrcSet: t.srcSet,
|
|
2085
|
+
imageSizes: t.sizes,
|
|
2086
|
+
crossOrigin: t.crossOrigin,
|
|
2087
|
+
referrerPolicy: t.referrerPolicy,
|
|
2088
|
+
...x(t.fetchPriority)
|
|
2089
|
+
};
|
|
2090
|
+
return e && o.default.preload ? (o.default.preload(t.src, n), null) : /* @__PURE__ */ (0, i.jsx)(s.default, { children: /* @__PURE__ */ (0, i.jsx)("link", {
|
|
2091
|
+
rel: "preload",
|
|
2092
|
+
href: t.srcSet ? void 0 : t.src,
|
|
2093
|
+
...n
|
|
2094
|
+
}, "__nimg-" + t.src + t.srcSet + t.sizes) });
|
|
2095
|
+
}
|
|
2096
|
+
var D = /* @__PURE__ */ (0, a.forwardRef)((e, t) => {
|
|
2097
|
+
let n = !(0, a.useContext)(p.RouterContext), r = (0, a.useContext)(u.ImageConfigContext), o = (0, a.useMemo)(() => {
|
|
2098
|
+
let e = _ || r || l.imageConfigDefault, t = [...e.deviceSizes, ...e.imageSizes].sort((e, t) => e - t), n = e.deviceSizes.sort((e, t) => e - t), i = e.qualities?.sort((e, t) => e - t);
|
|
2099
|
+
return {
|
|
2100
|
+
...e,
|
|
2101
|
+
allSizes: t,
|
|
2102
|
+
deviceSizes: n,
|
|
2103
|
+
qualities: i,
|
|
2104
|
+
localPatterns: typeof window > "u" ? r?.localPatterns : e.localPatterns
|
|
2105
|
+
};
|
|
2106
|
+
}, [r]), { onLoad: s, onLoadingComplete: d } = e, f = (0, a.useRef)(s);
|
|
2107
|
+
(0, a.useEffect)(() => {
|
|
2108
|
+
f.current = s;
|
|
2109
|
+
}, [s]);
|
|
2110
|
+
let m = (0, a.useRef)(d);
|
|
2111
|
+
(0, a.useEffect)(() => {
|
|
2112
|
+
m.current = d;
|
|
2113
|
+
}, [d]);
|
|
2114
|
+
let [g, v] = (0, a.useState)(!1), [y, b] = (0, a.useState)(!1), { props: x, meta: C } = (0, c.getImgProps)(e, {
|
|
2115
|
+
defaultLoader: h.default,
|
|
2116
|
+
imgConf: o,
|
|
2117
|
+
blurComplete: g,
|
|
2118
|
+
showAltText: y
|
|
2119
|
+
});
|
|
2120
|
+
return /* @__PURE__ */ (0, i.jsxs)(i.Fragment, { children: [/* @__PURE__ */ (0, i.jsx)(S, {
|
|
2121
|
+
...x,
|
|
2122
|
+
unoptimized: C.unoptimized,
|
|
2123
|
+
placeholder: C.placeholder,
|
|
2124
|
+
fill: C.fill,
|
|
2125
|
+
onLoadRef: f,
|
|
2126
|
+
onLoadingCompleteRef: m,
|
|
2127
|
+
setBlurComplete: v,
|
|
2128
|
+
setShowAltText: b,
|
|
2129
|
+
sizesInput: e.sizes,
|
|
2130
|
+
ref: t
|
|
2131
|
+
}), C.preload ? /* @__PURE__ */ (0, i.jsx)(E, {
|
|
2132
|
+
isAppRouter: n,
|
|
2133
|
+
imgAttributes: x
|
|
2134
|
+
}) : null] });
|
|
2135
|
+
});
|
|
2136
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && e.default.__esModule === void 0 && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2137
|
+
})), R = /* @__PURE__ */ c(((e) => {
|
|
2138
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2139
|
+
function t(e, t) {
|
|
2140
|
+
for (var n in t) Object.defineProperty(e, n, {
|
|
2141
|
+
enumerable: !0,
|
|
2142
|
+
get: t[n]
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
t(e, {
|
|
2146
|
+
default: function() {
|
|
2147
|
+
return s;
|
|
2148
|
+
},
|
|
2149
|
+
getImageProps: function() {
|
|
2150
|
+
return o;
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
var n = y(), r = w(), i = L(), a = /* @__PURE__ */ n._(F());
|
|
2154
|
+
function o(e) {
|
|
2155
|
+
let { props: t } = (0, r.getImgProps)(e, {
|
|
2156
|
+
defaultLoader: a.default,
|
|
2157
|
+
imgConf: process.env.__NEXT_IMAGE_OPTS
|
|
2158
|
+
});
|
|
2159
|
+
for (let [e, n] of Object.entries(t)) n === void 0 && delete t[e];
|
|
2160
|
+
return { props: t };
|
|
2161
|
+
}
|
|
2162
|
+
var s = i.Image;
|
|
2163
|
+
})), z = /* @__PURE__ */ u((/* @__PURE__ */ c(((e, t) => {
|
|
2164
|
+
t.exports = R();
|
|
2165
|
+
})))()), B = ({ children: e }) => /* @__PURE__ */ (0, h.jsx)("footer", {
|
|
2166
|
+
className: "\r\n w-full\r\n bg-gray\r\n text-white\r\n ",
|
|
2167
|
+
children: /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2168
|
+
className: "\r\n mx-auto\r\n max-w-7xl\r\n grid\r\n grid-cols-1\r\n gap-8\r\n px-6\r\n py-10\r\n md:grid-cols-3\r\n ",
|
|
2169
|
+
children: e
|
|
2170
|
+
})
|
|
2171
|
+
}), V = ({ children: e, description: t }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2172
|
+
className: "flex flex-col gap-4",
|
|
2173
|
+
children: [e, /* @__PURE__ */ (0, h.jsx)("p", {
|
|
2174
|
+
className: "\r\n max-w-sm\r\n text-sm\r\n text-white\r\n ",
|
|
2175
|
+
children: t
|
|
2176
|
+
})]
|
|
2177
|
+
}), H = ({ copyright: e }) => /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2178
|
+
className: "\r\n bg-gray\r\n text-light-gray\r\n\r\n border-t\r\n border-gray\r\n\r\n py-4\r\n\r\n text-center\r\n text-sm\r\n ",
|
|
2179
|
+
children: e
|
|
2180
|
+
}), U = ({ email: e, phone: t, socials: n }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2181
|
+
className: "text-white",
|
|
2182
|
+
children: [
|
|
2183
|
+
/* @__PURE__ */ (0, h.jsx)("h3", {
|
|
2184
|
+
className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
|
|
2185
|
+
children: "Contact"
|
|
2186
|
+
}),
|
|
2187
|
+
/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2188
|
+
className: "flex flex-col gap-2",
|
|
2189
|
+
children: [/* @__PURE__ */ (0, h.jsx)("p", { children: e }), /* @__PURE__ */ (0, h.jsx)("p", { children: t })]
|
|
2190
|
+
}),
|
|
2191
|
+
/* @__PURE__ */ (0, h.jsx)("h4", {
|
|
2192
|
+
className: "\r\n mt-5\r\n mb-2\r\n font-medium\r\n ",
|
|
2193
|
+
children: "Follow Us"
|
|
2194
|
+
}),
|
|
2195
|
+
/* @__PURE__ */ (0, h.jsx)("div", {
|
|
2196
|
+
className: "flex flex-wrap gap-3",
|
|
2197
|
+
children: n.map((e) => /* @__PURE__ */ (0, h.jsx)("a", {
|
|
2198
|
+
href: e.href,
|
|
2199
|
+
className: "hover:underline",
|
|
2200
|
+
children: e.label
|
|
2201
|
+
}, e.id))
|
|
2202
|
+
})
|
|
2203
|
+
]
|
|
2204
|
+
}), W = ({ title: e, links: t, onItemClick: n }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2205
|
+
className: "text-white",
|
|
2206
|
+
children: [/* @__PURE__ */ (0, h.jsx)("h3", {
|
|
2207
|
+
className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
|
|
2208
|
+
children: e
|
|
2209
|
+
}), /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2210
|
+
className: "flex flex-col gap-2",
|
|
2211
|
+
children: t.map((e) => /* @__PURE__ */ (0, h.jsx)("a", {
|
|
2212
|
+
href: e.href,
|
|
2213
|
+
onClick: () => n?.(e.label),
|
|
2214
|
+
className: "hover:underline",
|
|
2215
|
+
children: e.label
|
|
2216
|
+
}, e.id))
|
|
2217
|
+
})]
|
|
2218
|
+
}), G = ({ children: e }) => /* @__PURE__ */ (0, h.jsx)("form", {
|
|
2219
|
+
className: "w-full max-w-sm",
|
|
2220
|
+
children: /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2221
|
+
className: "flex flex-col gap-1 ",
|
|
2222
|
+
children: e
|
|
2223
|
+
})
|
|
2224
|
+
}), K = ({ children: e, style: t }) => /* @__PURE__ */ (0, h.jsx)("header", {
|
|
2225
|
+
className: `w-full bg-white border-b border-light-gray shadow-sm ${t}`,
|
|
2226
|
+
children: /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2227
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
2228
|
+
children: e
|
|
2229
|
+
})
|
|
2230
|
+
}), q = ({ logo: e = "/logo.svg", title: t = "my Company", style: n, alt: r = "" }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2231
|
+
className: `
|
|
2232
|
+
flex
|
|
2233
|
+
items-center
|
|
2234
|
+
|
|
2235
|
+
gap-2
|
|
2236
|
+
sm:gap-3
|
|
2237
|
+
|
|
2238
|
+
shrink-0
|
|
2239
|
+
|
|
2240
|
+
${n || ""}
|
|
2241
|
+
`,
|
|
2242
|
+
children: [/* @__PURE__ */ (0, h.jsx)(z.default, {
|
|
2243
|
+
src: e,
|
|
2244
|
+
alt: r,
|
|
2245
|
+
width: 40,
|
|
2246
|
+
height: 40,
|
|
2247
|
+
className: "\r\n h-8\r\n w-8\r\n\r\n sm:h-10\r\n sm:w-10\r\n\r\n object-contain\r\n "
|
|
2248
|
+
}), /* @__PURE__ */ (0, h.jsx)("h1", {
|
|
2249
|
+
className: "\r\n text-sm\r\n sm:text-lg\r\n\r\n font-bold\r\n text-blue\r\n ",
|
|
2250
|
+
children: t
|
|
2251
|
+
})]
|
|
2252
|
+
}), J = ({ navDrawer: e = [], style: n, onItemClick: r }) => {
|
|
2253
|
+
let [i, a] = t(!1);
|
|
2254
|
+
return /* @__PURE__ */ (0, h.jsxs)(h.Fragment, { children: [
|
|
2255
|
+
/* @__PURE__ */ (0, h.jsx)("button", {
|
|
2256
|
+
onClick: () => a(!0),
|
|
2257
|
+
className: " flex md:hidden items-center justify-center h-10 w-10 rounded-md hover:bg-gray-100",
|
|
2258
|
+
children: /* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2259
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2260
|
+
viewBox: "0 0 24 24",
|
|
2261
|
+
fill: "currentColor",
|
|
2262
|
+
className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
|
|
2263
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2264
|
+
fillRule: "evenodd",
|
|
2265
|
+
d: "M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",
|
|
2266
|
+
clipRule: "evenodd"
|
|
2267
|
+
})
|
|
2268
|
+
})
|
|
2269
|
+
}),
|
|
2270
|
+
i && /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2271
|
+
onClick: () => a(!1),
|
|
2272
|
+
className: "fixed inset-0 z-40 bg-black/40 md:hidden"
|
|
2273
|
+
}),
|
|
2274
|
+
/* @__PURE__ */ (0, h.jsxs)("aside", {
|
|
2275
|
+
className: `
|
|
2276
|
+
fixed top-0
|
|
2277
|
+
left-0 z-50
|
|
2278
|
+
h-screen w-65
|
|
2279
|
+
bg-white
|
|
2280
|
+
shadow-lg
|
|
2281
|
+
transition-transform duration-300
|
|
2282
|
+
|
|
2283
|
+
${i ? "translate-x-0" : "-translate-x-full"}
|
|
2284
|
+
|
|
2285
|
+
md:hidden
|
|
2286
|
+
|
|
2287
|
+
${n || ""}
|
|
2288
|
+
`,
|
|
2289
|
+
children: [/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2290
|
+
className: "\r\n flex\r\n items-center\r\n justify-between\r\n\r\n border-b\r\n border-light-gray\r\n\r\n px-5\r\n py-4\r\n ",
|
|
2291
|
+
children: [/* @__PURE__ */ (0, h.jsx)("h2", {
|
|
2292
|
+
className: "text-lg font-semibold",
|
|
2293
|
+
children: "Menu"
|
|
2294
|
+
}), /* @__PURE__ */ (0, h.jsx)("button", {
|
|
2295
|
+
onClick: () => a(!1),
|
|
2296
|
+
className: "\r\n flex\r\n items-center\r\n justify-center\r\n\r\n h-10\r\n w-10\r\n\r\n rounded-md\r\n\r\n hover:bg-gray-100\r\n ",
|
|
2297
|
+
children: /* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2298
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2299
|
+
viewBox: "0 0 24 24",
|
|
2300
|
+
fill: "currentColor",
|
|
2301
|
+
className: "\r\n h-6\r\n w-6\r\n\r\n text-gray-700\r\n ",
|
|
2302
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2303
|
+
fillRule: "evenodd",
|
|
2304
|
+
d: "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 01-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06Z",
|
|
2305
|
+
clipRule: "evenodd"
|
|
2306
|
+
})
|
|
2307
|
+
})
|
|
2308
|
+
})]
|
|
2309
|
+
}), /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2310
|
+
className: "flex flex-col p-4",
|
|
2311
|
+
children: e.map((e) => /* @__PURE__ */ (0, h.jsx)("a", {
|
|
2312
|
+
href: e.href || "#",
|
|
2313
|
+
onClick: () => {
|
|
2314
|
+
r?.(e.label), a(!1);
|
|
2315
|
+
},
|
|
2316
|
+
className: "\r\n rounded-md\r\n px-4\r\n py-3\r\n hover:bg-gray-100\r\n ",
|
|
2317
|
+
children: e.label
|
|
2318
|
+
}, e.id))
|
|
2319
|
+
})]
|
|
2320
|
+
})
|
|
2321
|
+
] });
|
|
2322
|
+
}, Y = ({ isOpen: e, onClose: t, title: n, children: r }) => e ? /* @__PURE__ */ (0, h.jsxs)(h.Fragment, { children: [/* @__PURE__ */ (0, h.jsx)("div", {
|
|
2323
|
+
className: "fixed inset-0 z-40 bg-black/40",
|
|
2324
|
+
onClick: t
|
|
2325
|
+
}), /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2326
|
+
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
2327
|
+
children: /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2328
|
+
className: "w-full max-w-md bg-white shadow-lg",
|
|
2329
|
+
role: "dialog",
|
|
2330
|
+
"aria-modal": "true",
|
|
2331
|
+
children: [/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2332
|
+
className: "flex items-center justify-between border-b border-gray-200 px-5 py-4",
|
|
2333
|
+
children: [/* @__PURE__ */ (0, h.jsx)("h2", {
|
|
2334
|
+
className: "text-lg font-semibold",
|
|
2335
|
+
children: n
|
|
2336
|
+
}), /* @__PURE__ */ (0, h.jsx)("button", {
|
|
2337
|
+
onClick: t,
|
|
2338
|
+
className: "flex h-10 w-10 items-center justify-center hover:bg-gray-100 rounded-md",
|
|
2339
|
+
"aria-label": "Close modal",
|
|
2340
|
+
children: /* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2341
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2342
|
+
fill: "none",
|
|
2343
|
+
viewBox: "0 0 24 24",
|
|
2344
|
+
strokeWidth: 2,
|
|
2345
|
+
stroke: "currentColor",
|
|
2346
|
+
className: "h-5 w-5",
|
|
2347
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2348
|
+
strokeLinecap: "round",
|
|
2349
|
+
strokeLinejoin: "round",
|
|
2350
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
2351
|
+
})
|
|
2352
|
+
})
|
|
2353
|
+
})]
|
|
2354
|
+
}), /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2355
|
+
className: "p-5",
|
|
2356
|
+
children: r
|
|
2357
|
+
})]
|
|
2358
|
+
})
|
|
2359
|
+
})] }) : null, X = ({ placeholder: e = "Search...", style: n, children: r }) => {
|
|
2360
|
+
let [i, a] = t(!1);
|
|
2361
|
+
return /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2362
|
+
className: `relative ${n || ""}`,
|
|
2363
|
+
children: [
|
|
2364
|
+
/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2365
|
+
className: "hidden md:block relative",
|
|
2366
|
+
children: [/* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2367
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2368
|
+
fill: "none",
|
|
2369
|
+
viewBox: "0 0 24 24",
|
|
2370
|
+
stroke: "currentColor",
|
|
2371
|
+
strokeWidth: 2,
|
|
2372
|
+
className: "\r\n absolute\r\n left-3\r\n top-1/2\r\n h-4\r\n w-4\r\n -translate-y-1/2\r\n text-gray-400\r\n ",
|
|
2373
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2374
|
+
strokeLinecap: "round",
|
|
2375
|
+
strokeLinejoin: "round",
|
|
2376
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
2377
|
+
})
|
|
2378
|
+
}), /* @__PURE__ */ (0, h.jsx)("input", {
|
|
2379
|
+
type: "text",
|
|
2380
|
+
placeholder: e,
|
|
2381
|
+
className: "\r\n w-27.5\r\n sm:w-40\r\n md:w-50\r\n lg:w-60\r\n rounded-md\r\n border\r\n border-light-gray\r\n bg-white\r\n px-3\r\n py-2\r\n pl-9\r\n text-xs\r\n sm:text-sm\r\n focus:outline-none\r\n focus:ring-2\r\n focus:ring-blue\r\n "
|
|
2382
|
+
})]
|
|
2383
|
+
}),
|
|
2384
|
+
/* @__PURE__ */ (0, h.jsx)("button", {
|
|
2385
|
+
onClick: () => a(!0),
|
|
2386
|
+
className: "\r\n flex\r\n md:hidden\r\n items-center\r\n justify-center\r\n h-10\r\n w-10\r\n rounded-md\r\n hover:bg-gray-100\r\n ",
|
|
2387
|
+
children: /* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2388
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2389
|
+
fill: "none",
|
|
2390
|
+
viewBox: "0 0 24 24",
|
|
2391
|
+
stroke: "currentColor",
|
|
2392
|
+
strokeWidth: 2,
|
|
2393
|
+
className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
|
|
2394
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2395
|
+
strokeLinecap: "round",
|
|
2396
|
+
strokeLinejoin: "round",
|
|
2397
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
2398
|
+
})
|
|
2399
|
+
})
|
|
2400
|
+
}),
|
|
2401
|
+
/* @__PURE__ */ (0, h.jsx)(Y, {
|
|
2402
|
+
isOpen: i,
|
|
2403
|
+
title: "Search",
|
|
2404
|
+
onClose: () => a(!1),
|
|
2405
|
+
children: r || /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2406
|
+
className: "relative",
|
|
2407
|
+
children: [/* @__PURE__ */ (0, h.jsx)("svg", {
|
|
2408
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2409
|
+
fill: "none",
|
|
2410
|
+
viewBox: "0 0 24 24",
|
|
2411
|
+
stroke: "currentColor",
|
|
2412
|
+
strokeWidth: 2,
|
|
2413
|
+
className: "\r\n absolute\r\n left-3\r\n top-1/2\r\n h-4\r\n w-4\r\n -translate-y-1/2\r\n text-gray-400\r\n ",
|
|
2414
|
+
children: /* @__PURE__ */ (0, h.jsx)("path", {
|
|
2415
|
+
strokeLinecap: "round",
|
|
2416
|
+
strokeLinejoin: "round",
|
|
2417
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
2418
|
+
})
|
|
2419
|
+
}), /* @__PURE__ */ (0, h.jsx)("input", {
|
|
2420
|
+
autoFocus: !0,
|
|
2421
|
+
type: "text",
|
|
2422
|
+
placeholder: e,
|
|
2423
|
+
className: "\r\n w-full\r\n rounded-md\r\n border\r\n border-light-gray\r\n bg-white\r\n px-3\r\n py-2\r\n pl-9\r\n text-sm\r\n focus:outline-none\r\n focus:ring-2\r\n focus:ring-blue\r\n "
|
|
2424
|
+
})]
|
|
2425
|
+
})
|
|
2426
|
+
})
|
|
2427
|
+
]
|
|
2428
|
+
});
|
|
2429
|
+
}, Z = ({ navBar: e = [], style: t, onItemClick: n }) => /* @__PURE__ */ (0, h.jsx)("nav", {
|
|
2430
|
+
className: `
|
|
2431
|
+
hidden
|
|
2432
|
+
md:flex
|
|
2433
|
+
gap-12
|
|
2434
|
+
justify-center
|
|
2435
|
+
items-center
|
|
2436
|
+
absolute
|
|
2437
|
+
left-1/2
|
|
2438
|
+
-translate-x-1/2
|
|
2439
|
+
${t || ""}
|
|
2440
|
+
`,
|
|
2441
|
+
children: e.map((e) => /* @__PURE__ */ (0, h.jsx)("a", {
|
|
2442
|
+
href: e.href || "#",
|
|
2443
|
+
onClick: () => n?.(e.label),
|
|
2444
|
+
className: "\r\n text-lg\r\n font-bold\r\n text-black\r\n hover:text-green\r\n cursor-pointer\r\n ",
|
|
2445
|
+
children: e.label
|
|
2446
|
+
}, e.id))
|
|
2447
|
+
}), Q = "border-red", ee = "text-red", te = "border-gray", ne = ({ id: e, labelText: t, placeholder: n, type: r, error: i, helperText: a }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2448
|
+
className: "flex flex-col gap-1",
|
|
2449
|
+
children: [
|
|
2450
|
+
/* @__PURE__ */ (0, h.jsx)("label", {
|
|
2451
|
+
htmlFor: e,
|
|
2452
|
+
className: "text-sm font-medium text-gray",
|
|
2453
|
+
children: t
|
|
2454
|
+
}),
|
|
2455
|
+
/* @__PURE__ */ (0, h.jsx)("input", {
|
|
2456
|
+
id: e,
|
|
2457
|
+
placeholder: n,
|
|
2458
|
+
type: r,
|
|
2459
|
+
className: `block w-full px-3 py-2.5 bg-neutral-secondary-medium border ${i ? Q : te} text-heading text-sm rounded-base shadow-xs placeholder:text-body focus:ring-brand focus:border-brand`
|
|
2460
|
+
}),
|
|
2461
|
+
a && /* @__PURE__ */ (0, h.jsx)("p", {
|
|
2462
|
+
className: `${i ? ee : "text-light-gray"} text-xs`,
|
|
2463
|
+
children: a
|
|
2464
|
+
})
|
|
2465
|
+
]
|
|
2466
|
+
}), $ = ({ id: e, label: n, required: r, disabled: i, defaultChecked: a, error: o, helperText: s }) => {
|
|
2467
|
+
let [c, l] = t(a || !1);
|
|
2468
|
+
return /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2469
|
+
className: "flex flex-col gap-1",
|
|
2470
|
+
children: [/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2471
|
+
className: "flex items-center gap-2",
|
|
2472
|
+
children: [/* @__PURE__ */ (0, h.jsx)("input", {
|
|
2473
|
+
id: e,
|
|
2474
|
+
type: "checkbox",
|
|
2475
|
+
checked: c,
|
|
2476
|
+
onChange: (e) => {
|
|
2477
|
+
let t = e.target.checked;
|
|
2478
|
+
l(t);
|
|
2479
|
+
},
|
|
2480
|
+
disabled: i,
|
|
2481
|
+
className: `
|
|
2482
|
+
w-4 h-4 border rounded-xs
|
|
2483
|
+
bg-neutral-secondary-medium
|
|
2484
|
+
focus:ring-2 focus:ring-brand-soft
|
|
2485
|
+
${i ? "border-light cursor-not-allowed" : "border-default-medium hover:cursor-pointer"}
|
|
2486
|
+
`
|
|
2487
|
+
}), /* @__PURE__ */ (0, h.jsxs)("label", {
|
|
2488
|
+
htmlFor: e,
|
|
2489
|
+
className: `
|
|
2490
|
+
select-none ms-2 text-sm font-medium
|
|
2491
|
+
${i ? "text-fg-disabled text-light-gray" : "text-heading"}
|
|
2492
|
+
`,
|
|
2493
|
+
children: [
|
|
2494
|
+
n,
|
|
2495
|
+
" ",
|
|
2496
|
+
r && /* @__PURE__ */ (0, h.jsx)("span", {
|
|
2497
|
+
className: "text-red",
|
|
2498
|
+
children: "*"
|
|
2499
|
+
})
|
|
2500
|
+
]
|
|
2501
|
+
})]
|
|
2502
|
+
}), /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2503
|
+
className: o ? "text-red text-sm font-medium" : "text-gray text-sm font-medium",
|
|
2504
|
+
children: s
|
|
2505
|
+
})]
|
|
2506
|
+
});
|
|
2507
|
+
}, re = ({ label: e, options: t, required: n, disabled: r, helperText: i, error: a, value: o, onChange: s }) => /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2508
|
+
className: "w-full flex flex-col gap-1",
|
|
2509
|
+
children: [
|
|
2510
|
+
/* @__PURE__ */ (0, h.jsxs)("label", {
|
|
2511
|
+
className: "text-sm font-medium text-gray",
|
|
2512
|
+
children: [
|
|
2513
|
+
e,
|
|
2514
|
+
" ",
|
|
2515
|
+
n && "*"
|
|
2516
|
+
]
|
|
2517
|
+
}),
|
|
2518
|
+
/* @__PURE__ */ (0, h.jsx)("select", {
|
|
2519
|
+
className: `h-10 border-r-8 border-transparent px-4 outline outline-neutral-700 block w-full p-2 bg-neutral-secondary-medium
|
|
2520
|
+
border border-default-medium text-heading text-sm font-normal rounded-base focus:ring-brand focus:border-brand shadow-xs
|
|
2521
|
+
placeholder:text-body
|
|
2522
|
+
${r ? "cursor-not-allowed" : "hover:cursor-pointer"}`,
|
|
2523
|
+
disabled: r,
|
|
2524
|
+
onChange: (e) => {
|
|
2525
|
+
s && s(e.target.value);
|
|
2526
|
+
},
|
|
2527
|
+
value: o,
|
|
2528
|
+
children: t.map((e) => /* @__PURE__ */ (0, h.jsx)("option", {
|
|
2529
|
+
value: e.name,
|
|
2530
|
+
children: e.value
|
|
2531
|
+
}, e.key))
|
|
2532
|
+
}),
|
|
2533
|
+
i && a && /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2534
|
+
className: "text-red text-sm font-normal",
|
|
2535
|
+
children: i
|
|
2536
|
+
})
|
|
2537
|
+
]
|
|
2538
|
+
}), ie = ({ id: e, title: t, children: n, style: r }) => /* @__PURE__ */ (0, h.jsx)("section", {
|
|
2539
|
+
id: e,
|
|
2540
|
+
className: `
|
|
2541
|
+
min-h-screen
|
|
2542
|
+
w-full
|
|
2543
|
+
px-6
|
|
2544
|
+
py-6
|
|
2545
|
+
scroll-mt-32
|
|
2546
|
+
md:px-10
|
|
2547
|
+
lg:px-16
|
|
2548
|
+
|
|
2549
|
+
${r || ""}
|
|
2550
|
+
`,
|
|
2551
|
+
children: /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2552
|
+
className: "mx-auto flex w-full max-w-7xl flex-col gap-10",
|
|
2553
|
+
children: [t && /* @__PURE__ */ (0, h.jsx)("h2", {
|
|
2554
|
+
className: "\r\n text-3xl\r\n font-bold\r\n md:text-4xl\r\n ",
|
|
2555
|
+
children: t
|
|
2556
|
+
}), n]
|
|
2557
|
+
})
|
|
2558
|
+
}), ae = ({ items: e }) => /* @__PURE__ */ (0, h.jsx)("nav", {
|
|
2559
|
+
"aria-label": "Breadcrumb",
|
|
2560
|
+
children: /* @__PURE__ */ (0, h.jsx)("ol", {
|
|
2561
|
+
className: "\r\n flex\r\n flex-wrap\r\n items-center\r\n gap-2\r\n text-sm\r\n ",
|
|
2562
|
+
children: e.map((t, n) => {
|
|
2563
|
+
let r = n === e.length - 1;
|
|
2564
|
+
return /* @__PURE__ */ (0, h.jsxs)("li", {
|
|
2565
|
+
className: "\r\n flex\r\n items-center\r\n gap-2\r\n ",
|
|
2566
|
+
children: [r ? /* @__PURE__ */ (0, h.jsx)("span", {
|
|
2567
|
+
className: "\r\n font-semibold\r\n text-gray-900\r\n ",
|
|
2568
|
+
children: t.label
|
|
2569
|
+
}) : /* @__PURE__ */ (0, h.jsx)("a", {
|
|
2570
|
+
href: t.href,
|
|
2571
|
+
className: "\r\n text-gray-600\r\n transition-colors\r\n hover:text-blue-600\r\n hover:underline\r\n ",
|
|
2572
|
+
children: t.label
|
|
2573
|
+
}), !r && /* @__PURE__ */ (0, h.jsx)("span", {
|
|
2574
|
+
className: "text-gray-400",
|
|
2575
|
+
children: ">"
|
|
2576
|
+
})]
|
|
2577
|
+
}, t.id);
|
|
2578
|
+
})
|
|
2579
|
+
})
|
|
2580
|
+
}), oe = ({ children: t }) => {
|
|
2581
|
+
let [n, r] = e.useState("Home"), i = [
|
|
2582
|
+
{
|
|
2583
|
+
id: 1,
|
|
2584
|
+
href: "#home",
|
|
2585
|
+
label: "Home"
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
id: 2,
|
|
2589
|
+
href: "#about",
|
|
2590
|
+
label: "About"
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
id: 3,
|
|
2594
|
+
href: "#services",
|
|
2595
|
+
label: "Services"
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
id: 4,
|
|
2599
|
+
href: "#contact",
|
|
2600
|
+
label: "Contact"
|
|
2601
|
+
}
|
|
2602
|
+
];
|
|
2603
|
+
return /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2604
|
+
className: "w-full scroll-smooth",
|
|
2605
|
+
children: [
|
|
2606
|
+
/* @__PURE__ */ (0, h.jsx)("div", {
|
|
2607
|
+
className: "sticky top-0 z-50 bg-white",
|
|
2608
|
+
children: /* @__PURE__ */ (0, h.jsxs)(K, { children: [/* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2609
|
+
className: "flex items-center gap-4 lg:gap-10",
|
|
2610
|
+
children: [/* @__PURE__ */ (0, h.jsx)(q, {
|
|
2611
|
+
logo: "/icon.svg",
|
|
2612
|
+
title: "QTEK"
|
|
2613
|
+
}), /* @__PURE__ */ (0, h.jsx)(Z, {
|
|
2614
|
+
navBar: i,
|
|
2615
|
+
onItemClick: r
|
|
2616
|
+
})]
|
|
2617
|
+
}), /* @__PURE__ */ (0, h.jsxs)("div", {
|
|
2618
|
+
className: "flex shrink-0 items-center gap-2 sm:gap-3",
|
|
2619
|
+
children: [/* @__PURE__ */ (0, h.jsx)(X, {}), /* @__PURE__ */ (0, h.jsx)(J, {
|
|
2620
|
+
navDrawer: i,
|
|
2621
|
+
onItemClick: r
|
|
2622
|
+
})]
|
|
2623
|
+
})] })
|
|
2624
|
+
}),
|
|
2625
|
+
/* @__PURE__ */ (0, h.jsx)("div", {
|
|
2626
|
+
className: " \r\n mx-auto\r\n max-w-full\r\n px-6\r\n py-4\r\n sticky\r\n z-40\r\n top-16\r\n bg-light-gray",
|
|
2627
|
+
children: /* @__PURE__ */ (0, h.jsx)(ae, { items: [{
|
|
2628
|
+
id: 1,
|
|
2629
|
+
label: n,
|
|
2630
|
+
href: "#"
|
|
2631
|
+
}] })
|
|
2632
|
+
}),
|
|
2633
|
+
t,
|
|
2634
|
+
/* @__PURE__ */ (0, h.jsxs)(B, { children: [
|
|
2635
|
+
/* @__PURE__ */ (0, h.jsx)(V, {
|
|
2636
|
+
description: "Building modern and scalable digital solutions.",
|
|
2637
|
+
children: /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2638
|
+
className: "scale-150 origin-left",
|
|
2639
|
+
children: /* @__PURE__ */ (0, h.jsx)(q, {
|
|
2640
|
+
logo: "/icon.svg",
|
|
2641
|
+
title: "QTEK"
|
|
2642
|
+
})
|
|
2643
|
+
})
|
|
2644
|
+
}),
|
|
2645
|
+
/* @__PURE__ */ (0, h.jsx)(W, {
|
|
2646
|
+
title: "Quick Links",
|
|
2647
|
+
links: i,
|
|
2648
|
+
onItemClick: r
|
|
2649
|
+
}),
|
|
2650
|
+
/* @__PURE__ */ (0, h.jsx)(U, {
|
|
2651
|
+
email: "hello@qtek.com",
|
|
2652
|
+
phone: "+63 900 000 0000",
|
|
2653
|
+
socials: [
|
|
2654
|
+
{
|
|
2655
|
+
id: 1,
|
|
2656
|
+
label: "Facebook",
|
|
2657
|
+
href: "#"
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
id: 2,
|
|
2661
|
+
label: "LinkedIn",
|
|
2662
|
+
href: "#"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
id: 3,
|
|
2666
|
+
label: "GitHub",
|
|
2667
|
+
href: "#"
|
|
2668
|
+
}
|
|
2669
|
+
]
|
|
2670
|
+
}),
|
|
2671
|
+
/* @__PURE__ */ (0, h.jsx)(H, { copyright: "© 2026 QTEK. All rights reserved." })
|
|
2672
|
+
] })
|
|
2673
|
+
]
|
|
2674
|
+
});
|
|
2675
|
+
}, se = ({ children: e, style: t, maxRows: n = 5 }) => /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2676
|
+
className: `
|
|
2677
|
+
w-full
|
|
2678
|
+
overflow-hidden
|
|
2679
|
+
rounded-md
|
|
2680
|
+
bg-white
|
|
2681
|
+
shadow-lg
|
|
2682
|
+
${t || ""}
|
|
2683
|
+
`,
|
|
2684
|
+
children: /* @__PURE__ */ (0, h.jsx)("div", {
|
|
2685
|
+
className: "overflow-auto",
|
|
2686
|
+
style: { maxHeight: `${n * 56}px` },
|
|
2687
|
+
children: /* @__PURE__ */ (0, h.jsx)("table", {
|
|
2688
|
+
className: "w-full border-separate border-spacing-0",
|
|
2689
|
+
children: e
|
|
2690
|
+
})
|
|
2691
|
+
})
|
|
2692
|
+
}), ce = {
|
|
2693
|
+
left: "text-left",
|
|
2694
|
+
center: "text-center",
|
|
2695
|
+
right: "text-right"
|
|
2696
|
+
}, le = ({ rowData: e }) => /* @__PURE__ */ (0, h.jsx)("thead", { children: /* @__PURE__ */ (0, h.jsx)("tr", {
|
|
2697
|
+
className: "\r\n sticky\r\n top-0\r\n z-10\r\n bg-white\r\n ",
|
|
2698
|
+
children: e.map((e) => /* @__PURE__ */ (0, h.jsx)("th", {
|
|
2699
|
+
className: `
|
|
2700
|
+
px-3 sm:px-4 md:px-6
|
|
2701
|
+
py-2 md:py-4
|
|
2702
|
+
text-xs sm:text-sm
|
|
2703
|
+
text-gray
|
|
2704
|
+
font-semibold
|
|
2705
|
+
|
|
2706
|
+
border-b
|
|
2707
|
+
border-light-gray
|
|
2708
|
+
${ce[e.align || "left"]}
|
|
2709
|
+
${e.style || ""}
|
|
2710
|
+
`,
|
|
2711
|
+
children: e.value
|
|
2712
|
+
}, e.key))
|
|
2713
|
+
}) }), ue = ({ children: e, style: t }) => /* @__PURE__ */ (0, h.jsx)("tbody", {
|
|
2714
|
+
className: t,
|
|
2715
|
+
children: e
|
|
2716
|
+
}), de = ({ rowData: e, style: t }) => /* @__PURE__ */ (0, h.jsx)("tr", {
|
|
2717
|
+
className: `
|
|
2718
|
+
|
|
2719
|
+
transition-colors
|
|
2720
|
+
hover:bg-gray-50
|
|
2721
|
+
[&:last-child_td]:border-b-0
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
${t || ""}
|
|
2725
|
+
`,
|
|
2726
|
+
children: e.map((e) => /* @__PURE__ */ (0, h.jsx)("td", {
|
|
2727
|
+
className: `
|
|
2728
|
+
px-3 sm:px-4 md:px-6
|
|
2729
|
+
py-2 md:py-4
|
|
2730
|
+
text-xs sm:text-sm
|
|
2731
|
+
text-gray
|
|
2732
|
+
whitespace-nowrap
|
|
2733
|
+
|
|
2734
|
+
border-b
|
|
2735
|
+
border-light-gray
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
${ce[e.align || "left"]}
|
|
2740
|
+
${e.style || ""}
|
|
2741
|
+
`,
|
|
2742
|
+
children: e.value
|
|
2743
|
+
}, e.key))
|
|
2744
|
+
}), fe = ({ children: e, align: t = "left", style: n }) => /* @__PURE__ */ (0, h.jsx)("td", {
|
|
2745
|
+
className: `
|
|
2746
|
+
px-4
|
|
2747
|
+
py-3
|
|
2748
|
+
text-sm
|
|
2749
|
+
${t === "center" ? "text-center" : ""}
|
|
2750
|
+
${t === "right" ? "text-right" : ""}
|
|
2751
|
+
${t === "left" ? "text-left" : ""}
|
|
2752
|
+
${n || ""}
|
|
2753
|
+
`,
|
|
2754
|
+
children: e
|
|
2755
|
+
});
|
|
2756
|
+
//#endregion
|
|
2757
|
+
export { ae as Breadcrumbs, _ as Button, v as Card, B as Cfooter, G as Cform, K as Cheader, $ as CheckBox, se as Ctable, J as Drawer, H as FooterBottom, U as FooterContact, V as FooterIcon, q as Icon, oe as LandingLayout, g as Loader, Y as Modal, Z as NavBar, W as QuickLink, X as SearchBar, ie as Section, re as Select, ue as TableBody, fe as TableCell, le as TableHead, de as TableRow, ne as TextField };
|