@wix/blog 1.0.709 → 1.0.711

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.
@@ -20,10 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // context-related-posts.ts
21
21
  var context_related_posts_exports = {};
22
22
  __export(context_related_posts_exports, {
23
- RelatedPostsProvider: () => yu,
24
- default: () => yu,
25
- injectAccessTokenGetter: () => bu,
26
- useRelatedPostsContext: () => su
23
+ RelatedPostsProvider: () => bu,
24
+ default: () => bu,
25
+ injectAccessTokenGetter: () => xu,
26
+ useRelatedPostsContext: () => cu
27
27
  });
28
28
  module.exports = __toCommonJS(context_related_posts_exports);
29
29
 
@@ -33,16 +33,17 @@ var import_services_manager_react = require("@wix/services-manager-react");
33
33
  var import_jsx_runtime = require("react/jsx-runtime");
34
34
  var import_meta = {};
35
35
  var h = Object.defineProperty;
36
- var g = (e6, t2) => {
36
+ var g = (e6, t2) => () => (t2 || (e6((t2 = { exports: {} }).exports, t2, t2.exports), e6 = null), t2.exports);
37
+ var _ = (e6, t2) => {
37
38
  let n2 = {};
38
39
  for (var r2 in e6) h(n2, r2, { get: e6[r2], enumerable: true });
39
40
  return t2 || h(n2, Symbol.toStringTag, { value: `Module` }), n2;
40
41
  };
41
- var _ = {};
42
- function v(e6, t2 = false, n2 = (e7) => e7) {
42
+ var v = {};
43
+ function y(e6, t2 = false, n2 = (e7) => e7) {
43
44
  return () => ({ __type: `event-definition`, type: e6, isDomainEvent: t2, transformations: n2 });
44
45
  }
45
- var y = (e6) => {
46
+ var b = (e6) => {
46
47
  switch (e6) {
47
48
  case `get`:
48
49
  case `GET`:
@@ -69,11 +70,11 @@ var y = (e6) => {
69
70
  throw Error(`Unknown method: ${e6}`);
70
71
  }
71
72
  };
72
- var b = (e6) => (t2) => async (n2) => {
73
+ var x = (e6) => (t2) => async (n2) => {
73
74
  let r2, i2 = (t3) => {
74
75
  if (r2 = e6(n2)(t3), r2.url === void 0) throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);
75
76
  let { method: i3, url: a2, params: o2 } = r2;
76
- return { ...r2, method: y(i3), url: a2, data: r2.data, params: o2 };
77
+ return { ...r2, method: b(i3), url: a2, data: r2.data, params: o2 };
77
78
  };
78
79
  try {
79
80
  let e7 = await t2.request(i2);
@@ -86,10 +87,10 @@ var b = (e6) => (t2) => async (n2) => {
86
87
  throw typeof e7 == `object` && e7 && `response` in e7 && typeof e7.response == `object` && e7.response !== null && `data` in e7.response ? e7.response.data : e7;
87
88
  }
88
89
  };
89
- var x = (e6) => e6.__isAmbassador ? true : !!e6().__isAmbassador;
90
- var S = `__metadata`;
91
- var C = `edge.wixapis.com`;
92
- var ee = class extends Error {
90
+ var S = (e6) => e6.__isAmbassador ? true : !!e6().__isAmbassador;
91
+ var C = `__metadata`;
92
+ var ee = `edge.wixapis.com`;
93
+ var w = class extends Error {
93
94
  message;
94
95
  response;
95
96
  constructor(e6, t2) {
@@ -97,108 +98,108 @@ var ee = class extends Error {
97
98
  }
98
99
  async details() {
99
100
  let e6 = await this.response.json();
100
- return w(this.response.status, e6?.message, e6?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e6 });
101
+ return T(this.response.status, e6?.message, e6?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e6 });
101
102
  }
102
103
  };
103
- var w = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
104
- var T = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
105
- var te = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
106
- var ne = (e6) => e6.__type === `host`;
107
- function re(e6, t2) {
104
+ var T = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
105
+ var te = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
106
+ var ne = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
107
+ var re = (e6) => e6.__type === `host`;
108
+ function ie(e6, t2) {
108
109
  return e6.create(t2);
109
110
  }
110
- var ie = `x-wix-bi-gateway`;
111
- function ae(e6, t2, n2) {
112
- return { [ie]: oe({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e6.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e6.methodFqn, entity: e6.entityFqdn }) };
111
+ var ae = `x-wix-bi-gateway`;
112
+ function oe(e6, t2, n2) {
113
+ return { [ae]: se({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e6.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e6.methodFqn, entity: e6.entityFqdn }) };
113
114
  }
114
- function oe(e6) {
115
+ function se(e6) {
115
116
  return Object.entries(e6).filter(([e7, t2]) => !!t2).map(([e7, t2]) => `${e7}=${t2}`).join(`,`);
116
117
  }
117
- function se(e6) {
118
- let t2 = globalThis.__wix_context__, n2 = { client: _.client, elevatedClient: _.elevatedClient }, r2;
119
- globalThis.__wix_context__ = void 0, _.client = void 0, _.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
118
+ function ce(e6) {
119
+ let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
120
+ globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
120
121
  try {
121
122
  return e6();
122
123
  } finally {
123
- globalThis.__wix_context__ = t2, _.client = n2.client, _.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
124
+ globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
124
125
  }
125
126
  }
126
- var ce = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
127
- function le(e6) {
128
- return me(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
127
+ var le = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
128
+ function ue(e6) {
129
+ return he(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
129
130
  }
130
- var ue = /([\p{Ll}\d])(\p{Lu})/gu;
131
- var de = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
132
- var fe = `$1\0$2`;
133
- var pe = /[^\p{L}\d]+/giu;
134
- function me(e6) {
131
+ var de = /([\p{Ll}\d])(\p{Lu})/gu;
132
+ var fe = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
133
+ var pe = `$1\0$2`;
134
+ var me = /[^\p{L}\d]+/giu;
135
+ function he(e6) {
135
136
  let t2 = e6.trim();
136
- t2 = t2.replace(ue, fe).replace(de, fe), t2 = t2.replace(pe, `\0`);
137
+ t2 = t2.replace(de, pe).replace(fe, pe), t2 = t2.replace(me, `\0`);
137
138
  let n2 = 0, r2 = t2.length;
138
139
  for (; t2.charAt(n2) === `\0`; ) n2++;
139
140
  if (n2 === r2) return [];
140
141
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
141
142
  return t2.slice(n2, r2).split(/\0/g);
142
143
  }
143
- var he = (e6) => `validationError` in (e6.response?.data?.details ?? {});
144
- var ge = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
145
- var _e = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
146
- function ve(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
144
+ var ge = (e6) => `validationError` in (e6.response?.data?.details ?? {});
145
+ var _e = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
146
+ var ve = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
147
+ function ye(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
147
148
  if (typeof e6 != `object` || !e6) throw e6;
148
- if (he(e6)) return ye(e6, t2, n2);
149
- if (ge(e6)) return xe(e6);
150
- if (_e(e6)) {
151
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: le(n3), data: {} }, requestId: e6.requestId };
152
- return be(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
149
+ if (ge(e6)) return be(e6, t2, n2);
150
+ if (_e(e6)) return Se(e6);
151
+ if (ve(e6)) {
152
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ue(n3), data: {} }, requestId: e6.requestId };
153
+ return xe(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
153
154
  }
154
- return Se(e6);
155
+ return Ce(e6);
155
156
  }
156
- var ye = (e6, t2, n2) => {
157
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Ce(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
158
- return be(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
157
+ var be = (e6, t2, n2) => {
158
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = we(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
159
+ return xe(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
159
160
  };
160
- var be = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
161
- var xe = (e6) => {
162
- let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? le(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
163
- return be(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
161
+ var xe = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
162
+ var Se = (e6) => {
163
+ let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? ue(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
164
+ return xe(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
164
165
  };
165
- var Se = (e6) => be(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: le(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
166
- var Ce = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
166
+ var Ce = (e6) => xe(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: ue(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
167
+ var we = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
167
168
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
168
169
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
169
170
  let r3 = t2[e7.field];
170
- if (r3) return { ...e7, field: we(r3, i2) };
171
+ if (r3) return { ...e7, field: Te(r3, i2) };
171
172
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
172
173
  if (s2) {
173
174
  let t3 = a2[s2];
174
- if (t3) return { ...e7, field: e7.field.replace(s2, we(t3, i2)) };
175
+ if (t3) return { ...e7, field: e7.field.replace(s2, Te(t3, i2)) };
175
176
  }
176
177
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
177
178
  });
178
179
  };
179
- var we = (e6, t2) => {
180
- let n2 = Te(e6);
180
+ var Te = (e6, t2) => {
181
+ let n2 = Ee(e6);
181
182
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
182
183
  };
183
- var Te = (e6) => {
184
+ var Ee = (e6) => {
184
185
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
185
186
  return t2 && t2.groups && Number(t2.groups.argIndex);
186
187
  };
187
- function Ee(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
188
- return se(() => e6({ request: async (e7) => {
188
+ function De(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
189
+ return ce(() => e6({ request: async (e7) => {
189
190
  let i3 = e7({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
190
191
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
191
- let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? C : o3}${a3.url}`;
192
+ let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? ee : o3}${a3.url}`;
192
193
  a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
193
194
  try {
194
- let e8 = ae(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e8 } }, s3 = await n2(u3, o4);
195
+ let e8 = oe(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e8 } }, s3 = await n2(u3, o4);
195
196
  if (s3.status !== 200) {
196
197
  let e9 = null;
197
198
  try {
198
199
  e9 = await s3.json();
199
200
  } catch {
200
201
  }
201
- let t3 = Oe(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ve(t3);
202
+ let t3 = ke(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ye(t3);
202
203
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
203
204
  }
204
205
  let l3 = await s3.json();
@@ -208,18 +209,18 @@ function Ee(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
208
209
  }
209
210
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
210
211
  }
211
- var De = class extends Error {
212
+ var Oe = class extends Error {
212
213
  response;
213
214
  requestId;
214
215
  constructor(e6) {
215
216
  super(), this.response = e6.response, this.requestId = e6.requestId;
216
217
  }
217
218
  };
218
- var Oe = (e6, t2, n2, r2) => new De({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
219
- var ke = `.`;
220
- function Ae(e6, t2, n2) {
219
+ var ke = (e6, t2, n2, r2) => new Oe({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
220
+ var Ae = `.`;
221
+ function je(e6, t2, n2) {
221
222
  if (e6 == null) throw Error(`Cannot set value on null or undefined`);
222
- let r2 = je(t2), i2 = e6;
223
+ let r2 = Me(t2), i2 = e6;
223
224
  for (let e7 = 0; e7 < r2.length; e7++) {
224
225
  let t3 = r2[e7];
225
226
  if (e7 === r2.length - 1) {
@@ -231,21 +232,21 @@ function Ae(e6, t2, n2) {
231
232
  }
232
233
  return e6;
233
234
  }
234
- function je(e6) {
235
- return Array.isArray(e6) ? e6 : e6.split(ke).map((e7) => Me(e7) ? Number(e7) : e7);
236
- }
237
235
  function Me(e6) {
238
- return /^\d+$/.test(e6);
236
+ return Array.isArray(e6) ? e6 : e6.split(Ae).map((e7) => Ne(e7) ? Number(e7) : e7);
239
237
  }
240
238
  function Ne(e6) {
239
+ return /^\d+$/.test(e6);
240
+ }
241
+ function Pe(e6) {
241
242
  let t2 = {};
242
- for (let [n2, r2] of Object.entries(e6)) Pe(n2) || Ae(t2, je(n2), r2);
243
+ for (let [n2, r2] of Object.entries(e6)) Fe(n2) || je(t2, Me(n2), r2);
243
244
  return t2;
244
245
  }
245
- function Pe(e6) {
246
+ function Fe(e6) {
246
247
  return e6 === `__proto__` || e6 === `constructor` || e6 === `prototype`;
247
248
  }
248
- var Fe = class {
249
+ var Ie = class {
249
250
  BRACKET_PATTERN = /\[(\d+)\]/g;
250
251
  NUMERIC_PATTERN = /^\d+$/;
251
252
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -268,7 +269,7 @@ var Fe = class {
268
269
  return e6.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
269
270
  }
270
271
  unflatten() {
271
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Ne(this.cleanedModifiedFields);
272
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Pe(this.cleanedModifiedFields);
272
273
  }
273
274
  flatten(e6) {
274
275
  let t2 = {};
@@ -288,12 +289,12 @@ var Fe = class {
288
289
  if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
289
290
  r2.push(`[${e7}]`), n2 = n2[parseInt(e7, 10)];
290
291
  }, a2 = (e7, t3) => {
291
- let i3 = e7 in ce ? ce[e7] : void 0;
292
+ let i3 = e7 in le ? le[e7] : void 0;
292
293
  if (i3 && i3 in t3) {
293
294
  r2.push(i3), n2 = t3[i3];
294
295
  return;
295
296
  }
296
- let a3 = ze(e7);
297
+ let a3 = Be(e7);
297
298
  if (a3 && a3 in t3) r2.push(a3), n2 = t3[a3];
298
299
  else throw Error(`Cannot find key '${e7}' or its transformations at path ${this.buildPathString(r2)}`);
299
300
  }, o2 = (e7, t3) => {
@@ -317,28 +318,28 @@ var Fe = class {
317
318
  return e6.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e6[r2 - 1] === `\\` ? t2 : `.` + n2);
318
319
  }
319
320
  };
320
- function Ie(e6, t2) {
321
+ function Le(e6, t2) {
321
322
  let n2 = e6?.modifiedFields;
322
323
  if (!n2) return null;
323
- let r2 = Le(n2);
324
+ let r2 = Re(n2);
324
325
  if (!r2) return null;
325
326
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
326
327
  e6 = { ...e6, modifiedFields: i2 };
327
328
  let o2 = t2(e6), s2 = o2?.modifiedFields;
328
329
  if (!s2) return null;
329
- let c2 = Re(s2, a2);
330
+ let c2 = ze(s2, a2);
330
331
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
331
332
  }
332
- function Le(e6) {
333
+ function Re(e6) {
333
334
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
334
- let t2 = new Fe(e6);
335
+ let t2 = new Ie(e6);
335
336
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
336
337
  } catch {
337
338
  return null;
338
339
  }
339
340
  return null;
340
341
  }
341
- function Re(e6, t2) {
342
+ function ze(e6, t2) {
342
343
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
343
344
  return t2.flatten(e6);
344
345
  } catch {
@@ -346,10 +347,10 @@ function Re(e6, t2) {
346
347
  }
347
348
  return null;
348
349
  }
349
- function ze(e6) {
350
+ function Be(e6) {
350
351
  return e6.replace(/[-_\s]+(.)?/g, (e7, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e7) => e7.toLowerCase());
351
352
  }
352
- function Be() {
353
+ function Ve() {
353
354
  return { emit(e6, ...t2) {
354
355
  for (let n2 = 0, r2 = this.events[e6] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
355
356
  }, events: {}, on(e6, t2) {
@@ -358,8 +359,8 @@ function Be() {
358
359
  };
359
360
  } };
360
361
  }
361
- var Ve = (e6) => e6.__type === `event-definition`;
362
- function He(e6, t2, n2, r2) {
362
+ var He = (e6) => e6.__type === `event-definition`;
363
+ function Ue(e6, t2, n2, r2) {
363
364
  let i2;
364
365
  if (e6.isDomainEvent) {
365
366
  let { deletedEvent: e7, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -370,14 +371,14 @@ function He(e6, t2, n2, r2) {
370
371
  let e7 = s2.modifiedFields;
371
372
  if (typeof e7 == `object` && e7 && !Array.isArray(e7)) {
372
373
  o2 = structuredClone(i2);
373
- let e8 = Ie(s2, a2);
374
+ let e8 = Le(s2, a2);
374
375
  if (e8) return t2(e8);
375
376
  }
376
377
  }
377
378
  return t2(a2(o2));
378
379
  }
379
- function Ue(e6) {
380
- let t2 = /* @__PURE__ */ new Map(), n2 = Be();
380
+ function We(e6) {
381
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ve();
381
382
  return { initModule(e7) {
382
383
  return (r2) => {
383
384
  let i2 = t2.get(e7.type) ?? [];
@@ -387,7 +388,7 @@ function Ue(e6) {
387
388
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e7), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e8) => ({ type: e8 }))];
388
389
  if (c2.length > 0 && !c2.some(({ type: e8 }) => e8 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e8) => e8.type).join(`, `)}`);
389
390
  let l2 = t2.get(r2) ?? [];
390
- return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => He(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
391
+ return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => Ue(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
391
392
  }, async processRequest(e7, t3) {
392
393
  let n3 = await e7.text();
393
394
  return this.process(n3, t3);
@@ -406,12 +407,12 @@ function Ue(e6) {
406
407
  let n3 = Array.from(t2.keys()).map((e8) => ({ type: e8 }));
407
408
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e7.eventType)) throw Error(`Unexpected event type: ${e7.eventType}. Expected one of: ${n3.map((e8) => e8.type).join(`, `)}`);
408
409
  let r2 = t2.get(e7.eventType) ?? [];
409
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => He(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
410
- }, apps: { AppInstalled: v(`AppInstalled`)(), AppRemoved: v(`AppRemoved`)() } } };
410
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ue(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
411
+ }, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
411
412
  }
412
- var We = (e6) => e6.__type === `service-plugin-definition`;
413
- function Ge(e6) {
414
- let t2 = /* @__PURE__ */ new Map(), n2 = Be();
413
+ var Ge = (e6) => e6.__type === `service-plugin-definition`;
414
+ function Ke(e6) {
415
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ve();
415
416
  return { initModule(e7) {
416
417
  return (r2) => {
417
418
  let i2 = t2.get(e7.componentType.toLowerCase()) ?? [];
@@ -453,42 +454,42 @@ function Ge(e6) {
453
454
  } } };
454
455
  }
455
456
  var E = `X-Wix-Consistent`;
456
- function Ke(e6) {
457
+ function qe(e6) {
457
458
  let t2 = e6.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e7) => Promise.resolve({ headers: {} }) }, r2 = e6.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e6.host), o2 = () => e6.fetch ?? fetch, s2 = async (n3, r3) => {
458
459
  let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} }, l3 = e6.host?.getErrorHandler?.();
459
460
  try {
460
461
  if (typeof n3 == `string` || n3 instanceof URL) {
461
462
  let e7 = await i3(n3, { ...r3, headers: c3 });
462
463
  l3?.handleError(e7, { requestOptions: { url: n3.toString(), method: r3?.method } });
463
- let a3 = qe(e7);
464
+ let a3 = Je(e7);
464
465
  return a3 && (t2[E] = a3), e7;
465
466
  }
466
467
  {
467
468
  for (let [e8, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e8, t3);
468
469
  let e7 = await i3(n3, r3);
469
470
  l3?.handleError(e7, { requestOptions: { url: n3.url, method: r3?.method } });
470
- let a3 = qe(e7);
471
+ let a3 = Je(e7);
471
472
  return a3 && (t2[E] = a3), e7;
472
473
  }
473
474
  } catch (e7) {
474
475
  throw l3?.handleError(e7, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e7;
475
476
  }
476
- }, { client: c2, initModule: l2 } = Ge(i2), { client: u2, initModule: d2 } = Ue(i2), f2 = async (n3, r3) => {
477
- let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} } }), u3 = qe(l3);
477
+ }, { client: c2, initModule: l2 } = Ke(i2), { client: u2, initModule: d2 } = We(i2), f2 = async (n3, r3) => {
478
+ let i3 = o2(), s3 = await a2(), c3 = te(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} } }), u3 = Je(l3);
478
479
  return u3 && (t2[E] = u3), l3;
479
480
  }, p2 = (t3, n3) => {
480
- if (Ve(t3)) return d2(t3);
481
- if (We(t3)) return l2(t3);
482
- if (ne(t3) && e6.host) return re(t3, e6.host);
481
+ if (He(t3)) return d2(t3);
482
+ if (Ge(t3)) return l2(t3);
483
+ if (re(t3) && e6.host) return ie(t3, e6.host);
483
484
  if (typeof t3 == `function`) {
484
485
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
485
486
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
486
- return Ee(se(() => x(t3)) ? b(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
487
+ return De(ce(() => S(t3)) ? x(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
487
488
  let n4 = new URL(e7, `https://${r3}`);
488
489
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
489
490
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
490
491
  }
491
- return te(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[S])])) : t3;
492
+ return ne(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[C])])) : t3;
492
493
  }, m2 = (e7) => {
493
494
  for (let n3 in e7) t2[n3] = e7[n3];
494
495
  };
@@ -496,33 +497,33 @@ function Ke(e6) {
496
497
  let t3 = i2();
497
498
  return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e6.host), t3;
498
499
  }, setHeaders: m2, use: p2, enableContext(e7, t3 = { elevated: false }) {
499
- e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? _.elevatedClient = this : _.client = this;
500
+ e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? v.elevatedClient = this : v.client = this;
500
501
  }, fetch: (t3, n3) => {
501
502
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
502
503
  return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
503
504
  }, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
504
505
  let i3 = e6?.host?.apiBaseUrl ?? `www.wixapis.com`, a3 = await f2(`https://${i3}/graphql/${r3.apiVersion}`, { method: `POST`, headers: { "Content-Type": `application/json` }, body: JSON.stringify({ query: t3, variables: n3 }) });
505
- if (a3.status !== 200) throw new ee(`GraphQL request failed with status ${a3.status}`, a3);
506
+ if (a3.status !== 200) throw new w(`GraphQL request failed with status ${a3.status}`, a3);
506
507
  let { data: o3, errors: s3 } = await a3.json();
507
508
  return { data: o3 ?? {}, errors: s3 };
508
509
  }, webhooks: u2, servicePlugins: c2 };
509
510
  }
510
- function qe(e6) {
511
+ function Je(e6) {
511
512
  return e6.headers?.get(`X-Wix-Consistent`) ?? e6.headers?.get(`x-wix-consistent`);
512
513
  }
513
- var Je = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
514
- var Ye = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
515
- var Xe = `items`;
516
- var Ze = `pagingMetadata`;
517
- var Qe = Je;
518
- function $e(e6, t2) {
514
+ var Ye = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
515
+ var Xe = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
516
+ var Ze = `items`;
517
+ var Qe = `pagingMetadata`;
518
+ var $e = Ye;
519
+ function et(e6, t2) {
519
520
  return e6?.split(`.`).map((e7) => t2?.[e7] ?? e7).join(`.`);
520
521
  }
521
- var et = `sort.fieldName`;
522
- function tt(e6, t2, n2) {
523
- return (e6 === et || e6.endsWith(`.${et}`)) && typeof t2 == `string` ? $e(t2, n2) : t2;
524
- }
522
+ var tt = `sort.fieldName`;
525
523
  function nt(e6, t2, n2) {
524
+ return (e6 === tt || e6.endsWith(`.${tt}`)) && typeof t2 == `string` ? et(t2, n2) : t2;
525
+ }
526
+ function rt(e6, t2, n2) {
526
527
  let r2 = (e7) => n2.includes(e7), i2 = (e7, n3) => {
527
528
  if (Array.isArray(e7)) e7.forEach((e8) => {
528
529
  i2(e8, n3);
@@ -532,157 +533,157 @@ function nt(e6, t2, n2) {
532
533
  Object.keys(a2).forEach((e8) => {
533
534
  let o2 = n3 === `` ? e8 : `${n3}.${e8}`;
534
535
  if (r2(o2)) return;
535
- let s2 = rt(e8, t2);
536
- s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = tt(o2, a2[s2], t2), i2(a2[s2], o2);
536
+ let s2 = it(e8, t2);
537
+ s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = nt(o2, a2[s2], t2), i2(a2[s2], o2);
537
538
  });
538
539
  }
539
540
  };
540
541
  return i2(e6, ``), e6;
541
542
  }
542
- function rt(e6, t2) {
543
+ function it(e6, t2) {
543
544
  let n2;
544
545
  return n2 = e6.includes(`.`) ? e6.split(`.`).map((e7) => t2[e7] ?? e7).join(`.`) : t2[e6] ?? e6, n2;
545
546
  }
546
547
  function D(e6, t2 = []) {
547
- return nt(e6, Je, t2);
548
+ return rt(e6, Ye, t2);
548
549
  }
549
550
  function O(e6, t2 = []) {
550
- return nt(e6, Ye, t2);
551
+ return rt(e6, Xe, t2);
551
552
  }
552
553
  function k(e6) {
553
554
  return e6 ? new Date(e6) : void 0;
554
555
  }
555
- var it = /* @__PURE__ */ new WeakMap();
556
- function at() {
556
+ var at = /* @__PURE__ */ new WeakMap();
557
+ function ot() {
557
558
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
558
559
  }
559
- function ot(e6, t2) {
560
+ function st(e6, t2) {
560
561
  let n2 = e6.get(t2);
561
- return n2 || (n2 = at(), e6.set(t2, n2)), n2;
562
+ return n2 || (n2 = ot(), e6.set(t2, n2)), n2;
562
563
  }
563
- function st(e6, t2) {
564
- return t2 === `*` ? (e6.anyField ??= at(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), ot(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), ot(e6.fields, t2));
564
+ function ct(e6, t2) {
565
+ return t2 === `*` ? (e6.anyField ??= ot(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), st(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), st(e6.fields, t2));
565
566
  }
566
- function ct(e6) {
567
- let t2 = at();
567
+ function lt(e6) {
568
+ let t2 = ot();
568
569
  for (let n2 of e6) {
569
- let e7 = n2.path.split(`.`).reduce(st, t2);
570
+ let e7 = n2.path.split(`.`).reduce(ct, t2);
570
571
  e7.leaves ??= [], e7.leaves.push(n2);
571
572
  }
572
573
  return t2;
573
574
  }
574
- function lt(e6) {
575
- let t2 = it.get(e6);
576
- return t2 || (t2 = ct(e6), it.set(e6, t2)), t2;
577
- }
578
575
  function ut(e6) {
579
- return typeof e6 == `object` && !!e6;
576
+ let t2 = at.get(e6);
577
+ return t2 || (t2 = lt(e6), at.set(e6, t2)), t2;
580
578
  }
581
- function dt(e6, { isRepeated: t2, isMap: n2 }, r2) {
582
- return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? ut(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
579
+ function dt(e6) {
580
+ return typeof e6 == `object` && !!e6;
583
581
  }
584
- function ft(e6, t2, n2) {
585
- ut(e6) && ht(e6, t2, n2);
582
+ function ft(e6, { isRepeated: t2, isMap: n2 }, r2) {
583
+ return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? dt(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
586
584
  }
587
585
  function pt(e6, t2, n2) {
586
+ dt(e6) && gt(e6, t2, n2);
587
+ }
588
+ function mt(e6, t2, n2) {
588
589
  for (let [r2, i2] of t2) {
589
590
  if (!(r2 in e6)) continue;
590
- if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = dt(e6[r2], t4, n2);
591
+ if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = ft(e6[r2], t4, n2);
591
592
  let t3 = e6[r2];
592
- Array.isArray(t3) ? t3.forEach((e7) => ft(e7, i2, n2)) : ft(t3, i2, n2);
593
+ Array.isArray(t3) ? t3.forEach((e7) => pt(e7, i2, n2)) : pt(t3, i2, n2);
593
594
  }
594
595
  }
595
- function mt(e6, t2, n2) {
596
+ function ht(e6, t2, n2) {
596
597
  for (let [r2, i2] of t2) {
597
598
  let t3 = e6[r2];
598
- ut(t3) && Object.values(t3).forEach((e7) => ft(e7, i2, n2));
599
+ dt(t3) && Object.values(t3).forEach((e7) => pt(e7, i2, n2));
599
600
  }
600
601
  }
601
- function ht(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
602
- t2 && pt(e6, t2, i2), n2 && mt(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => ft(e7, r2, i2));
602
+ function gt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
603
+ t2 && mt(e6, t2, i2), n2 && ht(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => pt(e7, r2, i2));
603
604
  }
604
605
  function A(e6, t2) {
605
- if (!ut(e6)) return e6;
606
- for (let { paths: n2, transformFn: r2 } of t2) ht(e6, lt(n2), r2);
606
+ if (!dt(e6)) return e6;
607
+ for (let { paths: n2, transformFn: r2 } of t2) gt(e6, ut(n2), r2);
607
608
  return e6;
608
609
  }
609
- function gt(e6) {
610
- return xt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
610
+ function _t(e6) {
611
+ return St(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
611
612
  }
612
- var _t = /([\p{Ll}\d])(\p{Lu})/gu;
613
- var vt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
614
- var yt = `$1\0$2`;
615
- var bt = /[^\p{L}\d]+/giu;
616
- function xt(e6) {
613
+ var vt = /([\p{Ll}\d])(\p{Lu})/gu;
614
+ var yt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
615
+ var bt = `$1\0$2`;
616
+ var xt = /[^\p{L}\d]+/giu;
617
+ function St(e6) {
617
618
  let t2 = e6.trim();
618
- t2 = t2.replace(_t, yt).replace(vt, yt), t2 = t2.replace(bt, `\0`);
619
+ t2 = t2.replace(vt, bt).replace(yt, bt), t2 = t2.replace(xt, `\0`);
619
620
  let n2 = 0, r2 = t2.length;
620
621
  for (; t2.charAt(n2) === `\0`; ) n2++;
621
622
  if (n2 === r2) return [];
622
623
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
623
624
  return t2.slice(n2, r2).split(/\0/g);
624
625
  }
625
- var St = (e6) => `validationError` in (e6.response?.data?.details ?? {});
626
- var Ct = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
627
- var wt = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
626
+ var Ct = (e6) => `validationError` in (e6.response?.data?.details ?? {});
627
+ var wt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
628
+ var Tt = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
628
629
  function j(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
629
630
  if (typeof e6 != `object` || !e6) throw e6;
630
- if (St(e6)) return Tt(e6, t2, n2);
631
- if (Ct(e6)) return Dt(e6);
632
- if (wt(e6)) {
633
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: gt(n3), data: {} }, requestId: e6.requestId };
634
- return Et(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
631
+ if (Ct(e6)) return Et(e6, t2, n2);
632
+ if (wt(e6)) return Ot(e6);
633
+ if (Tt(e6)) {
634
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: _t(n3), data: {} }, requestId: e6.requestId };
635
+ return Dt(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
635
636
  }
636
- return Ot(e6);
637
+ return kt(e6);
637
638
  }
638
- var Tt = (e6, t2, n2) => {
639
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = kt(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
640
- return Et(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
639
+ var Et = (e6, t2, n2) => {
640
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = At(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
641
+ return Dt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
641
642
  };
642
- var Et = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
643
- var Dt = (e6) => {
644
- let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? gt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
645
- return Et(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
643
+ var Dt = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
644
+ var Ot = (e6) => {
645
+ let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? _t(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
646
+ return Dt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
646
647
  };
647
- var Ot = (e6) => Et(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: gt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
648
- var kt = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
648
+ var kt = (e6) => Dt(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: _t(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
649
+ var At = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
649
650
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
650
651
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
651
652
  let r3 = t2[e7.field];
652
- if (r3) return { ...e7, field: At(r3, i2) };
653
+ if (r3) return { ...e7, field: jt(r3, i2) };
653
654
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
654
655
  if (s2) {
655
656
  let t3 = a2[s2];
656
- if (t3) return { ...e7, field: e7.field.replace(s2, At(t3, i2)) };
657
+ if (t3) return { ...e7, field: e7.field.replace(s2, jt(t3, i2)) };
657
658
  }
658
659
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
659
660
  });
660
661
  };
661
- var At = (e6, t2) => {
662
- let n2 = jt(e6);
662
+ var jt = (e6, t2) => {
663
+ let n2 = Mt(e6);
663
664
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
664
665
  };
665
- var jt = (e6) => {
666
+ var Mt = (e6) => {
666
667
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
667
668
  return t2 && t2.groups && Number(t2.groups.argIndex);
668
669
  };
669
- function Mt() {
670
+ function Nt() {
670
671
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
671
672
  if (e6) return { initWixModules(t3, n3) {
672
- return Nt(() => e6(t3, n3));
673
+ return Pt(() => e6(t3, n3));
673
674
  }, fetchWithAuth() {
674
675
  throw Error(`fetchWithAuth is not available in this context`);
675
676
  }, graphql() {
676
677
  throw Error(`graphql is not available in this context`);
677
678
  } };
678
- let t2 = typeof $wixContext < `u` ? $wixContext.client : _.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : _.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : _.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : _.elevatedClient;
679
+ let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
679
680
  if (t2 || n2) return { initWixModules(e7, r2) {
680
681
  if (r2) {
681
682
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
682
- return Nt(() => n2.use(e7));
683
+ return Pt(() => n2.use(e7));
683
684
  }
684
685
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
685
- return Nt(() => t2.use(e7));
686
+ return Pt(() => t2.use(e7));
686
687
  }, fetchWithAuth: (e7, n3) => {
687
688
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
688
689
  return t2.fetchWithAuth(e7, n3);
@@ -694,110 +695,110 @@ function Mt() {
694
695
  return t2.graphql(e7, n3, r2);
695
696
  } };
696
697
  }
697
- function Nt(e6) {
698
- let t2 = globalThis.__wix_context__, n2 = { client: _.client, elevatedClient: _.elevatedClient }, r2;
699
- globalThis.__wix_context__ = void 0, _.client = void 0, _.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
698
+ function Pt(e6) {
699
+ let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
700
+ globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
700
701
  try {
701
702
  return e6();
702
703
  } finally {
703
- globalThis.__wix_context__ = t2, _.client = n2.client, _.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
704
+ globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
704
705
  }
705
706
  }
706
- function Pt(e6, t2) {
707
+ function Ft(e6, t2) {
707
708
  return (...n2) => {
708
- let r2 = Mt();
709
+ let r2 = Nt();
709
710
  return r2 ? r2.initWixModules(e6, t2).apply(void 0, n2) : e6.apply(void 0, n2);
710
711
  };
711
712
  }
712
713
  function M(e6, t2 = false) {
713
- return Pt(e6, t2);
714
+ return Ft(e6, t2);
714
715
  }
715
- function Ft(e6, t2) {
716
- let n2 = Lt(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
717
- return t2 && r2 ? new URLSearchParams({ ".r": zt(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
716
+ function It(e6, t2) {
717
+ let n2 = Rt(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
718
+ return t2 && r2 ? new URLSearchParams({ ".r": Bt(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
718
719
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e7.append(t3, r3);
719
720
  }), e7), new URLSearchParams());
720
721
  }
721
- function It(e6) {
722
- let t2 = Qt(Xt(e6.host), e6.domainToMappings);
723
- return cn(an(e6.protoPath, e6.data || {}), t2);
722
+ function Lt(e6) {
723
+ let t2 = $t(Zt(e6.host), e6.domainToMappings);
724
+ return ln(on(e6.protoPath, e6.data || {}), t2);
724
725
  }
725
- function Lt(e6, t2 = ``) {
726
+ function Rt(e6, t2 = ``) {
726
727
  let n2 = {};
727
728
  return Object.entries(e6).forEach(([e7, r2]) => {
728
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Rt(t2, e7);
729
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = zt(t2, e7);
729
730
  if (i2) {
730
- let e8 = Lt(r2, a2);
731
+ let e8 = Rt(r2, a2);
731
732
  Object.assign(n2, e8);
732
733
  } else n2[a2] = r2;
733
734
  }), n2;
734
735
  }
735
- function Rt(e6, t2) {
736
+ function zt(e6, t2) {
736
737
  return `${e6}${e6 ? `.` : ``}${t2}`;
737
738
  }
738
- var zt = (e6) => {
739
+ var Bt = (e6) => {
739
740
  let t2 = new TextEncoder().encode(e6);
740
741
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e6, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
741
742
  };
742
- var Bt = [`wix.com`, `editorx.com`];
743
- var Vt = `_`;
744
- var Ht = `*.`;
745
- var Ut = RegExp(`\\.(${Bt.join(`|`)})$`);
746
- var Wt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
747
- var Gt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
748
- var Kt = `dev.wix-code.com`;
749
- var qt = /{(.*)}/;
750
- var Jt = RegExp(`\\.(${Wt.join(`|`)})$`);
751
- var Yt = RegExp(`.*\\.${Kt}$`);
752
- function Xt(e6) {
753
- return Zt(e6).replace(Ut, `._base_domain_`).replace(Jt, `._api_base_domain_`).replace(Yt, `*.dev.wix-code.com`);
754
- }
743
+ var Vt = [`wix.com`, `editorx.com`];
744
+ var Ht = `_`;
745
+ var Ut = `*.`;
746
+ var Wt = RegExp(`\\.(${Vt.join(`|`)})$`);
747
+ var Gt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
748
+ var Kt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
749
+ var qt = `dev.wix-code.com`;
750
+ var Jt = /{(.*)}/;
751
+ var Yt = RegExp(`\\.(${Gt.join(`|`)})$`);
752
+ var Xt = RegExp(`.*\\.${qt}$`);
755
753
  function Zt(e6) {
756
- return Gt[e6] ?? e6;
754
+ return Qt(e6).replace(Wt, `._base_domain_`).replace(Yt, `._api_base_domain_`).replace(Xt, `*.dev.wix-code.com`);
755
+ }
756
+ function Qt(e6) {
757
+ return Kt[e6] ?? e6;
757
758
  }
758
- function Qt(e6, t2) {
759
+ function $t(e6, t2) {
759
760
  let n2 = t2[e6];
760
761
  if (n2) return n2;
761
- let r2 = $t(e6, t2) ?? en(e6, t2);
762
+ let r2 = en(e6, t2) ?? tn(e6, t2);
762
763
  if (!r2) {
763
- if (nn(e6)) {
764
- let e7 = t2[rn];
764
+ if (rn(e6)) {
765
+ let e7 = t2[an];
765
766
  if (e7) return e7;
766
767
  }
767
- let n3 = t2[Vt];
768
+ let n3 = t2[Ht];
768
769
  if (n3) return n3;
769
770
  }
770
771
  return r2 ?? [];
771
772
  }
772
- function $t(e6, t2) {
773
+ function en(e6, t2) {
773
774
  return Object.entries(t2).find(([t3]) => {
774
775
  let [, ...n2] = e6.split(`.`);
775
776
  return n2.join(`.`) === t3;
776
777
  })?.[1];
777
778
  }
778
- function en(e6, t2) {
779
- let [n2] = Object.entries(t2).filter(([t3]) => tn(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
779
+ function tn(e6, t2) {
780
+ let [n2] = Object.entries(t2).filter(([t3]) => nn(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
780
781
  if (!n2) return;
781
782
  let [, r2] = n2;
782
783
  return r2;
783
784
  }
784
- function tn(e6, t2) {
785
- if (!t2.startsWith(Ht)) return false;
785
+ function nn(e6, t2) {
786
+ if (!t2.startsWith(Ut)) return false;
786
787
  let n2 = t2.slice(1);
787
788
  return e6.length > n2.length && e6.endsWith(n2);
788
789
  }
789
- function nn(e6) {
790
+ function rn(e6) {
790
791
  return !!e6.match(/\._base_domain_$/);
791
792
  }
792
- var rn = `www._base_domain_`;
793
- function an(e6, t2) {
794
- return e6.split(`/`).map((e7) => on(e7, t2)).join(`/`);
795
- }
793
+ var an = `www._base_domain_`;
796
794
  function on(e6, t2) {
797
- let n2 = e6.match(qt) || [], r2 = n2[1];
798
- return r2 ? sn(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
795
+ return e6.split(`/`).map((e7) => sn(e7, t2)).join(`/`);
796
+ }
797
+ function sn(e6, t2) {
798
+ let n2 = e6.match(Jt) || [], r2 = n2[1];
799
+ return r2 ? cn(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
799
800
  }
800
- function sn(e6, t2, n2, r2) {
801
+ function cn(e6, t2, n2, r2) {
801
802
  let i2 = e6;
802
803
  for (let e7 of t2.split(`.`)) {
803
804
  if (!i2) return n2;
@@ -805,28 +806,28 @@ function sn(e6, t2, n2, r2) {
805
806
  }
806
807
  return `${i2}${r2}`;
807
808
  }
808
- function cn(e6, t2) {
809
+ function ln(e6, t2) {
809
810
  let n2 = t2?.find((t3) => e6.startsWith(t3.destPath));
810
811
  return n2 ? n2.srcPath + e6.slice(n2.destPath.length) : e6;
811
812
  }
812
- function ln(e6) {
813
+ function un(e6) {
813
814
  return isFinite(e6) ? e6 : e6.toString();
814
815
  }
815
- function N(e6) {
816
+ function dn(e6) {
816
817
  return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
817
818
  }
818
- function un(e6) {
819
+ function fn(e6) {
819
820
  return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
820
821
  }
821
- var dn = `modulepreload`;
822
- var fn = function(e6, t2) {
822
+ var pn = `modulepreload`;
823
+ var mn = function(e6, t2) {
823
824
  return new URL(e6, t2).href;
824
825
  };
825
- var pn = {};
826
- var mn = function(e6) {
826
+ var hn = {};
827
+ var gn = function(e6) {
827
828
  return e6.pathname.endsWith(`.css`);
828
829
  };
829
- var hn = function(e6, t2, n2) {
830
+ var _n = function(e6, t2, n2) {
830
831
  if (t2 in e6) return e6[t2];
831
832
  let r2 = n2();
832
833
  if (!r2) {
@@ -840,7 +841,7 @@ var hn = function(e6, t2, n2) {
840
841
  });
841
842
  return e6[t2] = i2, i2;
842
843
  };
843
- var gn = function(e6, t2, n2) {
844
+ var vn = function(e6, t2, n2) {
844
845
  let r2 = Promise.resolve();
845
846
  if (t2 && t2.length > 0) {
846
847
  let o3 = function(e8) {
@@ -851,9 +852,9 @@ var gn = function(e6, t2, n2) {
851
852
  var o2 = o3, s2 = s3;
852
853
  let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
853
854
  r2 = o3(t2.map((t3) => {
854
- t3 = fn(t3, n2);
855
- let r3 = s3(t3), i4 = mn(r3);
856
- return hn(pn, r3.href, () => {
855
+ t3 = mn(t3, n2);
856
+ let r3 = s3(t3), i4 = gn(r3);
857
+ return _n(hn, r3.href, () => {
857
858
  if (e7 === void 0) {
858
859
  e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
859
860
  let t5 = document.getElementsByTagName(`link`);
@@ -864,7 +865,7 @@ var gn = function(e6, t2, n2) {
864
865
  }
865
866
  if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
866
867
  let t4 = document.createElement(`link`);
867
- if (t4.rel = i4 ? `stylesheet` : dn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
868
+ if (t4.rel = i4 ? `stylesheet` : pn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
868
869
  t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
869
870
  });
870
871
  });
@@ -879,30 +880,30 @@ var gn = function(e6, t2, n2) {
879
880
  return e6().catch(i2);
880
881
  });
881
882
  };
882
- var _n = `x-wix-linguist`;
883
- var vn = `00000000-0000-0000-0000-000000000000`;
884
- var yn = `false`;
885
- var bn = () => {
886
- let e6 = Cn(`language`), t2 = Cn(`locale`);
887
- if (e6) return { [_n]: [e6, t2 || e6, yn, vn].join(`|`) };
883
+ var yn = `x-wix-linguist`;
884
+ var bn = `00000000-0000-0000-0000-000000000000`;
885
+ var xn = `false`;
886
+ var Sn = () => {
887
+ let e6 = Tn(`language`), t2 = Tn(`locale`);
888
+ if (e6) return { [yn]: [e6, t2 || e6, xn, bn].join(`|`) };
888
889
  };
889
- function xn() {
890
+ function Cn() {
890
891
  let e6 = null, t2 = null;
891
892
  return { promise: new Promise((n2, r2) => {
892
893
  e6 = n2, t2 = r2;
893
894
  }), resolve: e6, reject: t2 };
894
895
  }
895
- var Sn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
896
- var Cn = (e6) => Sn()?.[e6];
897
- var wn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
898
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = En();
899
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Cn(`language`), locale: Cn(`locale`), get passThroughHeaders() {
900
- return bn();
896
+ var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
897
+ var Tn = (e6) => wn()?.[e6];
898
+ var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
899
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = On();
900
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
901
+ return Sn();
901
902
  } } };
902
903
  }, auth: (e7) => {
903
904
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
904
- !e7 && Tn() && (e7 = t2?.getAccessTokenFunction?.());
905
- let n2 = false, { resolve: r2, promise: i2 } = xn();
905
+ !e7 && Dn() && (e7 = t2?.getAccessTokenFunction?.());
906
+ let n2 = false, { resolve: r2, promise: i2 } = Cn();
906
907
  return { getAuthHeaders: async () => {
907
908
  if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
908
909
  return { headers: { Authorization: await e7() } };
@@ -910,50 +911,50 @@ var wn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
910
911
  r2(e8);
911
912
  }) };
912
913
  } });
913
- function Tn() {
914
+ function Dn() {
914
915
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
915
916
  }
916
- function En() {
917
+ function On() {
917
918
  let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
918
919
  if (!e6) return;
919
920
  let t2 = new URL(e6);
920
921
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
921
922
  }
922
- var Dn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
923
+ var kn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
923
924
  if (!e6) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
924
925
  return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
925
926
  }, getAccessToken: () => {
926
927
  throw Error(`Not implemented`);
927
928
  }, observeState: () => ({ disconnect: () => {
928
929
  } }) });
929
- var On = wn({ createHost: function(e6) {
930
+ var An = En({ createHost: function(e6) {
930
931
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
931
932
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
932
- return { channel: Dn({ clientSdk: t2, applicationId: n2 }), close: () => {
933
+ return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
933
934
  } };
934
935
  } });
935
- var kn = (e6, t2) => {
936
- let n2 = On.host({ applicationId: e6, componentId: t2 }), r2 = On.auth();
937
- return Ke({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
936
+ var jn = (e6, t2) => {
937
+ let n2 = An.host({ applicationId: e6, componentId: t2 }), r2 = An.auth();
938
+ return qe({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
938
939
  };
939
- var An = (e6) => kn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
940
- function jn() {
940
+ var Mn = (e6) => jn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
941
+ function Nn() {
941
942
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
942
943
  if (e6) return { initWixModules(t3, n3) {
943
- return Mn(() => e6(t3, n3));
944
+ return Pn(() => e6(t3, n3));
944
945
  }, fetchWithAuth() {
945
946
  throw Error(`fetchWithAuth is not available in this context`);
946
947
  }, graphql() {
947
948
  throw Error(`graphql is not available in this context`);
948
949
  } };
949
- let t2 = typeof $wixContext < `u` ? $wixContext.client : _.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : _.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : _.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : _.elevatedClient;
950
+ let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
950
951
  if (t2 || n2) return { initWixModules(e7, r2) {
951
952
  if (r2) {
952
953
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
953
- return Mn(() => n2.use(e7));
954
+ return Pn(() => n2.use(e7));
954
955
  }
955
956
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
956
- return Mn(() => t2.use(e7));
957
+ return Pn(() => t2.use(e7));
957
958
  }, fetchWithAuth: (e7, n3) => {
958
959
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
959
960
  return t2.fetchWithAuth(e7, n3);
@@ -965,26 +966,26 @@ function jn() {
965
966
  return t2.graphql(e7, n3, r2);
966
967
  } };
967
968
  }
968
- function Mn(e6) {
969
- let t2 = globalThis.__wix_context__, n2 = { client: _.client, elevatedClient: _.elevatedClient }, r2;
970
- globalThis.__wix_context__ = void 0, _.client = void 0, _.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
969
+ function Pn(e6) {
970
+ let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
971
+ globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
971
972
  try {
972
973
  return e6();
973
974
  } finally {
974
- globalThis.__wix_context__ = t2, _.client = n2.client, _.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
975
+ globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
975
976
  }
976
977
  }
977
- function Nn(e6, t2) {
978
+ function Fn(e6, t2) {
978
979
  return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
979
- let r2 = jn();
980
+ let r2 = Nn();
980
981
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
981
982
  return r2.initWixModules(e6)[t3].apply(void 0, n2);
982
983
  }])) };
983
984
  }
984
- function Pn(e6) {
985
- return Nn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
985
+ function In(e6) {
986
+ return Fn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
986
987
  }
987
- var Fn = class {
988
+ var Ln = class {
988
989
  constructor(e6) {
989
990
  this.message = e6, this.captureException = () => {
990
991
  console.error(this.message);
@@ -999,13 +1000,13 @@ var Fn = class {
999
1000
  };
1000
1001
  }
1001
1002
  };
1002
- var In = (e6) => new Fn(e6);
1003
- var Ln = Pn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : In(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1004
- function Rn(e6) {
1003
+ var Rn = (e6) => new Ln(e6);
1004
+ var zn = In({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Rn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1005
+ function Bn(e6) {
1005
1006
  let t2 = Promise.resolve(e6);
1006
1007
  return t2.status = `fulfilled`, t2.value = e6, t2;
1007
1008
  }
1008
- function zn(e6) {
1009
+ function Vn(e6) {
1009
1010
  if (e6.status === `fulfilled`) return e6.value;
1010
1011
  throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
1011
1012
  e6.status = `fulfilled`, e6.value = t2;
@@ -1013,17 +1014,17 @@ function zn(e6) {
1013
1014
  e6.status = `rejected`, e6.reason = t2;
1014
1015
  })), e6);
1015
1016
  }
1016
- var Bn = /* @__PURE__ */ new WeakMap();
1017
- function Vn(e6, t2, n2) {
1018
- let r2 = Bn.get(e6);
1019
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), Bn.set(e6, r2));
1017
+ var Hn = /* @__PURE__ */ new WeakMap();
1018
+ function Un(e6, t2, n2) {
1019
+ let r2 = Hn.get(e6);
1020
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Hn.set(e6, r2));
1020
1021
  let i2 = r2.get(t2);
1021
1022
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
1022
1023
  let a2 = i2.get(n2);
1023
1024
  if (!a2) {
1024
- if (e6.status === `fulfilled`) a2 = Rn(t2(e6.value));
1025
+ if (e6.status === `fulfilled`) a2 = Bn(t2(e6.value));
1025
1026
  else if (e6.status === `rejected`) try {
1026
- a2 = Rn(n2(e6.reason));
1027
+ a2 = Bn(n2(e6.reason));
1027
1028
  } catch {
1028
1029
  a2 = e6.then(t2, n2);
1029
1030
  }
@@ -1032,45 +1033,45 @@ function Vn(e6, t2, n2) {
1032
1033
  }
1033
1034
  return a2;
1034
1035
  }
1035
- var Hn = 1e4;
1036
- function Un(e6) {
1036
+ var Wn = 1e4;
1037
+ function Gn(e6) {
1037
1038
  let [t2, n2] = (0, import_react.useState)(void 0);
1038
1039
  return (0, import_react.useEffect)(() => {
1039
1040
  let t3 = Date.now();
1040
- t3 - e6 > Hn && (0, import_react.startTransition)(() => n2(t3));
1041
+ t3 - e6 > Wn && (0, import_react.startTransition)(() => n2(t3));
1041
1042
  }, []), t2 ?? e6;
1042
1043
  }
1043
- function P(e6) {
1044
+ function N(e6) {
1044
1045
  return e6;
1045
1046
  }
1046
- var Wn = P(`@wix/site-service-rendering-context`);
1047
- var Gn = () => {
1047
+ var Kn = N(`@wix/site-service-rendering-context`);
1048
+ var qn = () => {
1048
1049
  try {
1049
- return (0, import_services_manager_react.useService)(Wn).SSR;
1050
+ return (0, import_services_manager_react.useService)(Kn).SSR;
1050
1051
  } catch {
1051
1052
  return false;
1052
1053
  }
1053
1054
  };
1054
- var Kn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1055
- function qn(e6, t2) {
1055
+ var Jn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1056
+ function Yn(e6, t2) {
1056
1057
  let [n2, r2] = (0, import_react.useState)(() => ({ deps: t2, value: e6() }));
1057
1058
  return (0, import_react.useEffect)(() => {
1058
- if (Kn(n2.deps, t2)) return;
1059
+ if (Jn(n2.deps, t2)) return;
1059
1060
  let a2 = e6();
1060
1061
  (0, import_react.startTransition)(() => r2({ deps: t2, value: a2 }));
1061
1062
  }, t2), n2.value;
1062
1063
  }
1063
- var Jn = P(`@wix/site-service-url`);
1064
- var Yn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1065
- var Xn = `post`;
1066
- var Zn = `builder-post`;
1067
- var Qn = `__blog_unknown_section__`;
1068
- var $n = (e6) => {
1064
+ var Xn = N(`@wix/site-service-url`);
1065
+ var Zn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1066
+ var Qn = `post`;
1067
+ var $n = `builder-post`;
1068
+ var er = `__blog_unknown_section__`;
1069
+ var tr = (e6) => {
1069
1070
  let t2;
1070
1071
  try {
1071
- let n3 = e6.appSectionRelativeUrl(Yn, Zn);
1072
- if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, Qn) && !n3?.endsWith(`/post-page`)) return;
1073
- t2 = e6.appSectionRelativeUrl(Yn, Zn, true);
1072
+ let n3 = e6.appSectionRelativeUrl(Zn, $n);
1073
+ if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, er) && !n3?.endsWith(`/post-page`)) return;
1074
+ t2 = e6.appSectionRelativeUrl(Zn, $n, true);
1074
1075
  } catch {
1075
1076
  return;
1076
1077
  }
@@ -1078,12 +1079,12 @@ var $n = (e6) => {
1078
1079
  let n2 = t2.split(`/`).filter(Boolean);
1079
1080
  return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
1080
1081
  };
1081
- var er = (e6) => `${e6}/${Xn}`;
1082
- var tr = (e6) => {
1083
- let t2 = $n(e6);
1084
- if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${er(t2)}`;
1082
+ var nr = (e6) => `${e6}/${Qn}`;
1083
+ var rr = (e6) => {
1084
+ let t2 = tr(e6);
1085
+ if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${nr(t2)}`;
1085
1086
  };
1086
- var nr = (e6, t2) => {
1087
+ var ir = (e6, t2) => {
1087
1088
  if (!e6 || !t2) return;
1088
1089
  let n2;
1089
1090
  try {
@@ -1097,14 +1098,14 @@ var nr = (e6, t2) => {
1097
1098
  if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
1098
1099
  }
1099
1100
  };
1100
- var rr = (e6) => {
1101
+ var ar = (e6) => {
1101
1102
  if (!e6) return;
1102
1103
  if (typeof e6 == `string`) return e6;
1103
1104
  let { base: t2, path: n2 } = e6;
1104
1105
  return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
1105
1106
  };
1106
- var ir = (e6, t2) => {
1107
- let n2 = rr(e6.url), r2 = `/${Xn}`;
1107
+ var or = (e6, t2) => {
1108
+ let n2 = ar(e6.url), r2 = `/${Qn}`;
1108
1109
  if (!n2 || !t2?.endsWith(r2)) return;
1109
1110
  let i2, a2;
1110
1111
  try {
@@ -1115,23 +1116,23 @@ var ir = (e6, t2) => {
1115
1116
  let o2 = a2.slice(0, -r2.length);
1116
1117
  return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1117
1118
  };
1118
- var ar = (e6, t2) => {
1119
- let n2 = ir(e6, t2);
1119
+ var sr = (e6, t2) => {
1120
+ let n2 = or(e6, t2);
1120
1121
  if (n2) return { href: n2, target: `_self` };
1121
1122
  if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
1122
- let r2 = rr(e6.url);
1123
+ let r2 = ar(e6.url);
1123
1124
  return r2 ? { href: r2, target: `_self` } : void 0;
1124
1125
  };
1125
- var or = (e6) => {
1126
+ var cr = (e6) => {
1126
1127
  let t2;
1127
1128
  try {
1128
- t2 = (0, import_services_manager_react.useService)(Jn);
1129
+ t2 = (0, import_services_manager_react.useService)(Xn);
1129
1130
  } catch {
1130
1131
  return;
1131
1132
  }
1132
- return tr(t2) ?? nr(t2.currentUrl, e6);
1133
+ return rr(t2) ?? ir(t2.currentUrl, e6);
1133
1134
  };
1134
- var sr = (e6, t2) => {
1135
+ var lr = (e6, t2) => {
1135
1136
  let n2;
1136
1137
  try {
1137
1138
  n2 = new URL(e6).pathname.split(`/`).filter(Boolean);
@@ -1151,54 +1152,54 @@ var sr = (e6, t2) => {
1151
1152
  return i2;
1152
1153
  }
1153
1154
  };
1154
- var cr = () => {
1155
+ var ur = () => {
1155
1156
  let e6;
1156
1157
  try {
1157
- e6 = (0, import_services_manager_react.useService)(Jn);
1158
+ e6 = (0, import_services_manager_react.useService)(Xn);
1158
1159
  } catch {
1159
1160
  return;
1160
1161
  }
1161
1162
  if (!e6.currentUrl) return;
1162
- let t2 = $n(e6);
1163
- return sr(e6.currentUrl, t2 && er(t2));
1163
+ let t2 = tr(e6);
1164
+ return lr(e6.currentUrl, t2 && nr(t2));
1164
1165
  };
1165
- var lr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1166
- var ur = (e6) => `${e6} rendered`;
1167
- var dr = (e6, t2, n2) => {
1166
+ var dr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1167
+ var fr = (e6) => `${e6} rendered`;
1168
+ var pr = (e6, t2, n2) => {
1168
1169
  (0, import_react.useEffect)(() => {
1169
1170
  if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
1170
- performance.mark(ur(e6), { detail: { state: t2, compId: n2 } });
1171
+ performance.mark(fr(e6), { detail: { state: t2, compId: n2 } });
1171
1172
  } catch {
1172
1173
  }
1173
1174
  }, [e6, t2, n2]);
1174
1175
  };
1175
- var fr = P(`@wix/site-service-locale`);
1176
- var pr = P(`@wix/site-service-renderer-configuration`);
1177
- var mr = () => {
1176
+ var mr = N(`@wix/site-service-locale`);
1177
+ var hr = N(`@wix/site-service-renderer-configuration`);
1178
+ var gr = () => {
1178
1179
  let e6, t2;
1179
1180
  try {
1180
- e6 = (0, import_services_manager_react.useService)(pr).languageCode;
1181
+ e6 = (0, import_services_manager_react.useService)(hr).languageCode;
1181
1182
  } catch {
1182
1183
  }
1183
1184
  try {
1184
- t2 = (0, import_services_manager_react.useService)(fr).language;
1185
+ t2 = (0, import_services_manager_react.useService)(mr).language;
1185
1186
  } catch {
1186
1187
  }
1187
1188
  return e6 || t2;
1188
1189
  };
1189
- var hr = () => {
1190
+ var _r = () => {
1190
1191
  try {
1191
- let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(fr);
1192
+ let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(mr);
1192
1193
  return e6 || t2;
1193
1194
  } catch {
1194
1195
  return;
1195
1196
  }
1196
1197
  };
1197
- var gr = P(`@wix/site-service-warmup-data`);
1198
- function _r() {
1199
- let e6 = Gn(), t2 = null;
1198
+ var vr = N(`@wix/site-service-warmup-data`);
1199
+ function yr() {
1200
+ let e6 = qn(), t2 = null;
1200
1201
  try {
1201
- t2 = (0, import_services_manager_react.useGetService)()(gr);
1202
+ t2 = (0, import_services_manager_react.useGetService)()(vr);
1202
1203
  } catch {
1203
1204
  }
1204
1205
  return (0, import_react.useMemo)(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
@@ -1215,13 +1216,13 @@ function _r() {
1215
1216
  }
1216
1217
  } }), [e6, t2]);
1217
1218
  }
1218
- var vr = () => {
1219
+ var br = () => {
1219
1220
  let e6 = /* @__PURE__ */ new Map();
1220
1221
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1221
1222
  e6.delete(t2);
1222
1223
  })), e6.get(t2)) };
1223
1224
  };
1224
- var yr = async (e6) => {
1225
+ var xr = async (e6) => {
1225
1226
  try {
1226
1227
  let { default: t2 } = await e6();
1227
1228
  return t2;
@@ -1229,9 +1230,9 @@ var yr = async (e6) => {
1229
1230
  return;
1230
1231
  }
1231
1232
  };
1232
- var br = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1233
- let r2 = vr(), i2 = async (r3) => {
1234
- let [i3, a2] = await Promise.all([yr(() => t2(r3)), !e6 || !n2 ? void 0 : yr(() => n2(r3))]);
1233
+ var Sr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1234
+ let r2 = br(), i2 = async (r3) => {
1235
+ let [i3, a2] = await Promise.all([xr(() => t2(r3)), !e6 || !n2 ? void 0 : xr(() => n2(r3))]);
1235
1236
  if (i3 && a2) return { ...i3, ...a2 };
1236
1237
  if (i3) return i3;
1237
1238
  if (a2) return a2;
@@ -1239,47 +1240,47 @@ var br = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1239
1240
  };
1240
1241
  return (e7) => r2.getOrInsert(e7, () => i2(e7));
1241
1242
  };
1242
- var F = (e6) => typeof e6 == `string`;
1243
- var xr = () => {
1243
+ var P = (e6) => typeof e6 == `string`;
1244
+ var F = () => {
1244
1245
  let e6, t2, n2 = new Promise((n3, r2) => {
1245
1246
  e6 = n3, t2 = r2;
1246
1247
  });
1247
1248
  return n2.resolve = e6, n2.reject = t2, n2;
1248
1249
  };
1249
- var Sr = (e6) => e6 == null ? `` : String(e6);
1250
- var Cr = (e6, t2, n2) => {
1250
+ var Cr = (e6) => e6 == null ? `` : String(e6);
1251
+ var wr = (e6, t2, n2) => {
1251
1252
  e6.forEach((e7) => {
1252
1253
  t2[e7] && (n2[e7] = t2[e7]);
1253
1254
  });
1254
1255
  };
1255
- var wr = /###/g;
1256
- var Tr = (e6) => e6 && e6.includes(`###`) ? e6.replace(wr, `.`) : e6;
1257
- var Er = (e6) => !e6 || F(e6);
1258
- var Dr = (e6, t2, n2) => {
1259
- let r2 = F(t2) ? t2.split(`.`) : t2, i2 = 0;
1256
+ var Tr = /###/g;
1257
+ var Er = (e6) => e6 && e6.includes(`###`) ? e6.replace(Tr, `.`) : e6;
1258
+ var Dr = (e6) => !e6 || P(e6);
1259
+ var I = (e6, t2, n2) => {
1260
+ let r2 = P(t2) ? t2.split(`.`) : t2, i2 = 0;
1260
1261
  for (; i2 < r2.length - 1; ) {
1261
- if (Er(e6)) return {};
1262
- let t3 = Tr(r2[i2]);
1262
+ if (Dr(e6)) return {};
1263
+ let t3 = Er(r2[i2]);
1263
1264
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1264
1265
  }
1265
- return Er(e6) ? {} : { obj: e6, k: Tr(r2[i2]) };
1266
+ return Dr(e6) ? {} : { obj: e6, k: Er(r2[i2]) };
1266
1267
  };
1267
1268
  var Or = (e6, t2, n2) => {
1268
- let { obj: r2, k: i2 } = Dr(e6, t2, Object);
1269
+ let { obj: r2, k: i2 } = I(e6, t2, Object);
1269
1270
  if (r2 !== void 0 || t2.length === 1) {
1270
1271
  r2[i2] = n2;
1271
1272
  return;
1272
1273
  }
1273
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Dr(e6, o2, Object);
1274
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Dr(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1274
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = I(e6, o2, Object);
1275
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = I(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1275
1276
  s2.obj[`${s2.k}.${a2}`] = n2;
1276
1277
  };
1277
1278
  var kr = (e6, t2, n2, r2) => {
1278
- let { obj: i2, k: a2 } = Dr(e6, t2, Object);
1279
+ let { obj: i2, k: a2 } = I(e6, t2, Object);
1279
1280
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1280
1281
  };
1281
1282
  var Ar = (e6, t2) => {
1282
- let { obj: n2, k: r2 } = Dr(e6, t2);
1283
+ let { obj: n2, k: r2 } = I(e6, t2);
1283
1284
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1284
1285
  };
1285
1286
  var jr = (e6, t2, n2) => {
@@ -1287,12 +1288,12 @@ var jr = (e6, t2, n2) => {
1287
1288
  return r2 === void 0 ? Ar(t2, n2) : r2;
1288
1289
  };
1289
1290
  var Mr = (e6, t2, n2) => {
1290
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? F(e6[r2]) || e6[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Mr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1291
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? P(e6[r2]) || e6[r2] instanceof String || P(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Mr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1291
1292
  return e6;
1292
1293
  };
1293
- var I = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1294
+ var L = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1294
1295
  var Nr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1295
- var Pr = (e6) => F(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Nr[e7]) : e6;
1296
+ var Pr = (e6) => P(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Nr[e7]) : e6;
1296
1297
  var Fr = class {
1297
1298
  constructor(e6) {
1298
1299
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
@@ -1333,7 +1334,7 @@ var zr = (e6, t2, n2 = `.`) => {
1333
1334
  }
1334
1335
  return i2;
1335
1336
  };
1336
- var L = (e6) => e6?.replace(/_/g, `-`);
1337
+ var R = (e6) => e6?.replace(/_/g, `-`);
1337
1338
  var Br = { type: `logger`, log(e6) {
1338
1339
  this.output(`log`, e6);
1339
1340
  }, warn(e6) {
@@ -1343,7 +1344,7 @@ var Br = { type: `logger`, log(e6) {
1343
1344
  }, output(e6, t2) {
1344
1345
  console?.[e6]?.apply?.(console, t2);
1345
1346
  } };
1346
- var R = new class e2 {
1347
+ var z = new class e2 {
1347
1348
  constructor(e6, t2 = {}) {
1348
1349
  this.init(e6, t2);
1349
1350
  }
@@ -1363,7 +1364,7 @@ var R = new class e2 {
1363
1364
  return this.forward(e6, `warn`, `WARNING DEPRECATED: `, true);
1364
1365
  }
1365
1366
  forward(e6, t2, n2, r2) {
1366
- return r2 && !this.debug ? null : (e6 = e6.map((e7) => F(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), F(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1367
+ return r2 && !this.debug ? null : (e6 = e6.map((e7) => P(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), P(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1367
1368
  }
1368
1369
  create(t2) {
1369
1370
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1414,16 +1415,16 @@ var Ur = class extends Vr {
1414
1415
  }
1415
1416
  getResource(e6, t2, n2, r2 = {}) {
1416
1417
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1417
- e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : F(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1418
+ e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : P(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1418
1419
  let s2 = Ar(this.data, o2);
1419
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : zr(this.data?.[e6]?.[t2], n2, i2);
1420
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !P(n2) ? s2 : zr(this.data?.[e6]?.[t2], n2, i2);
1420
1421
  }
1421
1422
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1422
1423
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1423
1424
  n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Or(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1424
1425
  }
1425
1426
  addResources(e6, t2, n2, r2 = { silent: false }) {
1426
- for (let r3 in n2) (F(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1427
+ for (let r3 in n2) (P(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1427
1428
  r2.silent || this.emit(`added`, e6, t2, n2);
1428
1429
  }
1429
1430
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
@@ -1467,7 +1468,7 @@ function Kr() {
1467
1468
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1468
1469
  return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Gr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1469
1470
  }
1470
- function z(e6, t2) {
1471
+ function B(e6, t2) {
1471
1472
  let { [Gr]: n2 } = e6(Kr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1472
1473
  if (n2.length > 1 && i2) {
1473
1474
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
@@ -1475,10 +1476,10 @@ function z(e6, t2) {
1475
1476
  }
1476
1477
  return n2.join(r2);
1477
1478
  }
1478
- var qr = (e6) => !F(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1479
+ var qr = (e6) => !P(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1479
1480
  var Jr = class e3 extends Vr {
1480
1481
  constructor(e6, t2 = {}) {
1481
- super(), Cr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = R.create(`translator`), this.checkedLoadedFor = {};
1482
+ super(), wr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = z.create(`translator`), this.checkedLoadedFor = {};
1482
1483
  }
1483
1484
  changeLanguage(e6) {
1484
1485
  e6 && (this.language = e6);
@@ -1497,24 +1498,24 @@ var Jr = class e3 extends Vr {
1497
1498
  let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Rr(e6, n2, r2);
1498
1499
  if (a2 && !o2) {
1499
1500
  let t3 = e6.match(this.interpolator.nestingRegexp);
1500
- if (t3 && t3.length > 0) return { key: e6, namespaces: F(i2) ? [i2] : i2 };
1501
+ if (t3 && t3.length > 0) return { key: e6, namespaces: P(i2) ? [i2] : i2 };
1501
1502
  let a3 = e6.split(n2);
1502
1503
  (n2 !== r2 || n2 === r2 && this.options.ns.includes(a3[0])) && (i2 = a3.shift()), e6 = a3.join(r2);
1503
1504
  }
1504
- return { key: e6, namespaces: F(i2) ? [i2] : i2 };
1505
+ return { key: e6, namespaces: P(i2) ? [i2] : i2 };
1505
1506
  }
1506
1507
  translate(t2, n2, r2) {
1507
1508
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1508
1509
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1509
- typeof t2 == `function` && (t2 = z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? z(e6, { ...this.options, ...i2 }) : String(e6));
1510
+ typeof t2 == `function` && (t2 = B(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? B(e6, { ...this.options, ...i2 }) : String(e6));
1510
1511
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1511
1512
  u2 === void 0 && (u2 = `:`);
1512
1513
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1513
1514
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1514
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !F(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1515
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !P(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1515
1516
  y2 && !m2 && x2 && (T2 = w2);
1516
1517
  let te2 = qr(T2), ne2 = Object.prototype.toString.apply(T2);
1517
- if (y2 && T2 && te2 && !_2.includes(ne2) && !(F(v2) && Array.isArray(T2))) {
1518
+ if (y2 && T2 && te2 && !_2.includes(ne2) && !(P(v2) && Array.isArray(T2))) {
1518
1519
  if (!i2.returnObjects && !this.options.returnObjects) {
1519
1520
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1520
1521
  let e6 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, T2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1528,7 +1529,7 @@ var Jr = class e3 extends Vr {
1528
1529
  }
1529
1530
  m2 = t3;
1530
1531
  }
1531
- } else if (y2 && F(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1532
+ } else if (y2 && P(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1532
1533
  else {
1533
1534
  let e6 = false, n3 = false;
1534
1535
  !this.isValidLookup(m2) && x2 && (e6 = true, m2 = w2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1560,30 +1561,30 @@ var Jr = class e3 extends Vr {
1560
1561
  if (this.i18nFormat?.parse) e6 = this.i18nFormat.parse(e6, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1561
1562
  else if (!n2.skipInterpolation) {
1562
1563
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1563
- let a3 = F(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1564
+ let a3 = P(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1564
1565
  if (a3) {
1565
1566
  let t3 = e6.match(this.interpolator.nestingRegexp);
1566
1567
  o3 = t3 && t3.length;
1567
1568
  }
1568
- let s2 = n2.replace && !F(n2.replace) ? n2.replace : n2;
1569
+ let s2 = n2.replace && !P(n2.replace) ? n2.replace : n2;
1569
1570
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e6 = this.interpolator.interpolate(e6, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1570
1571
  let t3 = e6.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1571
1572
  o3 < r3 && (n2.nest = false);
1572
1573
  }
1573
1574
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
1574
1575
  }
1575
- let a2 = n2.postProcess || this.options.postProcess, o2 = F(a2) ? [a2] : a2;
1576
+ let a2 = n2.postProcess || this.options.postProcess, o2 = P(a2) ? [a2] : a2;
1576
1577
  return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Wr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1577
1578
  }
1578
1579
  resolve(e6, t2 = {}) {
1579
1580
  let n2, r2, i2, a2, o2;
1580
- return F(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? z(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1581
+ return P(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? B(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1581
1582
  if (this.isValidLookup(n2)) return;
1582
1583
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1583
1584
  r2 = c2;
1584
1585
  let l2 = s2.namespaces;
1585
1586
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1586
- let u2 = t2.count !== void 0 && !F(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (F(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1587
+ let u2 = t2.count !== void 0 && !P(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (P(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1587
1588
  l2.forEach((e8) => {
1588
1589
  this.isValidLookup(n2) || (o2 = e8, !this.checkedLoadedFor[`${p2[0]}-${e8}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (this.checkedLoadedFor[`${p2[0]}-${e8}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1589
1590
  if (this.isValidLookup(n2)) return;
@@ -1612,7 +1613,7 @@ var Jr = class e3 extends Vr {
1612
1613
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e6, t2, n2, r2) : this.resourceStore.getResource(e6, t2, n2, r2);
1613
1614
  }
1614
1615
  getUsedParamsDetails(e6 = {}) {
1615
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !F(e6.replace), r2 = n2 ? e6.replace : e6;
1616
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !P(e6.replace), r2 = n2 ? e6.replace : e6;
1616
1617
  if (n2 && e6.count !== void 0 && (r2 = { ...r2, count: e6.count }), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1617
1618
  r2 = { ...r2 };
1618
1619
  for (let e7 of t2) delete r2[e7];
@@ -1626,23 +1627,23 @@ var Jr = class e3 extends Vr {
1626
1627
  };
1627
1628
  var Yr = class {
1628
1629
  constructor(e6) {
1629
- this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = R.create(`languageUtils`), this.resolveHierarchyCache = {};
1630
+ this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = z.create(`languageUtils`), this.resolveHierarchyCache = {};
1630
1631
  }
1631
1632
  clearCache() {
1632
1633
  this.resolveHierarchyCache = {};
1633
1634
  }
1634
1635
  getScriptPartFromCode(e6) {
1635
- if (e6 = L(e6), !e6 || !e6.includes(`-`)) return null;
1636
+ if (e6 = R(e6), !e6 || !e6.includes(`-`)) return null;
1636
1637
  let t2 = e6.split(`-`);
1637
1638
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1638
1639
  }
1639
1640
  getLanguagePartFromCode(e6) {
1640
- if (e6 = L(e6), !e6 || !e6.includes(`-`)) return e6;
1641
+ if (e6 = R(e6), !e6 || !e6.includes(`-`)) return e6;
1641
1642
  let t2 = e6.split(`-`);
1642
1643
  return this.formatLanguageCode(t2[0]);
1643
1644
  }
1644
1645
  formatLanguageCode(e6) {
1645
- if (F(e6) && e6.includes(`-`)) {
1646
+ if (P(e6) && e6.includes(`-`)) {
1646
1647
  let t2;
1647
1648
  try {
1648
1649
  t2 = Intl.getCanonicalLocales(e6)[0];
@@ -1673,7 +1674,7 @@ var Yr = class {
1673
1674
  }
1674
1675
  getFallbackCodes(e6, t2) {
1675
1676
  if (!e6) return [];
1676
- if (typeof e6 == `function` && (e6 = e6(t2)), F(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1677
+ if (typeof e6 == `function` && (e6 = e6(t2)), P(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1677
1678
  if (!t2) return e6.default || [];
1678
1679
  let n2 = e6[t2];
1679
1680
  return n2 ||= e6[this.getScriptPartFromCode(t2)], n2 ||= e6[this.formatLanguageCode(t2)], n2 ||= e6[this.getLanguagePartFromCode(t2)], n2 ||= e6.default, n2 || [];
@@ -1681,7 +1682,7 @@ var Yr = class {
1681
1682
  toResolveHierarchy(e6, t2) {
1682
1683
  let n2 = this.options.fallbackLng, r2 = Array.isArray(n2) ? n2.join(`|`) : n2;
1683
1684
  r2 !== this._cachedFallbackLng && (this.resolveHierarchyCache = {}, this._cachedFallbackLng = r2);
1684
- let i2 = t2 === void 0 || t2 === false || F(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = F(e6) && i2 && !a2, s2 = null;
1685
+ let i2 = t2 === void 0 || t2 === false || P(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = P(e6) && i2 && !a2, s2 = null;
1685
1686
  if (o2) {
1686
1687
  let n3;
1687
1688
  n3 = t2 === void 0 ? `undefined` : t2 === false ? `boolean:false` : `string:${t2}`, s2 = `${e6.length}:${e6}|${n3}`;
@@ -1693,7 +1694,7 @@ var Yr = class {
1693
1694
  let c2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e6), l2 = [], u2 = (e7) => {
1694
1695
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1695
1696
  };
1696
- return F(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : F(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1697
+ return P(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : P(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1697
1698
  let t3 = this.formatLanguageCode(e7);
1698
1699
  l2.includes(t3) || u2(t3);
1699
1700
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
@@ -1703,13 +1704,13 @@ var Xr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1703
1704
  var Zr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1704
1705
  var Qr = class {
1705
1706
  constructor(e6, t2 = {}) {
1706
- this.languageUtils = e6, this.options = t2, this.logger = R.create(`pluralResolver`), this.pluralRulesCache = {};
1707
+ this.languageUtils = e6, this.options = t2, this.logger = z.create(`pluralResolver`), this.pluralRulesCache = {};
1707
1708
  }
1708
1709
  clearCache() {
1709
1710
  this.pluralRulesCache = {};
1710
1711
  }
1711
1712
  getRule(e6, t2 = {}) {
1712
- let n2 = L(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1713
+ let n2 = R(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1713
1714
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1714
1715
  let a2;
1715
1716
  try {
@@ -1740,17 +1741,17 @@ var Qr = class {
1740
1741
  };
1741
1742
  var $r = (e6, t2, n2, r2 = `.`, i2 = true) => {
1742
1743
  let a2 = jr(e6, t2, n2);
1743
- return !a2 && i2 && F(n2) && (a2 = zr(e6, n2, r2), a2 === void 0 && (a2 = zr(t2, n2, r2))), a2;
1744
+ return !a2 && i2 && P(n2) && (a2 = zr(e6, n2, r2), a2 === void 0 && (a2 = zr(t2, n2, r2))), a2;
1744
1745
  };
1745
1746
  var ei = (e6) => e6.replace(/\$/g, `$$$$`);
1746
1747
  var ti = class {
1747
1748
  constructor(e6 = {}) {
1748
- this.logger = R.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1749
+ this.logger = z.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1749
1750
  }
1750
1751
  init(e6 = {}) {
1751
1752
  e6.interpolation ||= { escapeValue: true };
1752
1753
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
1753
- this.escape = t2 === void 0 ? Pr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? I(i2) : a2 || `{{`, this.suffix = o2 ? I(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? I(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? I(l2) : ``, this.nestingPrefix = d2 ? I(d2) : f2 || I(`$t(`), this.nestingSuffix = p2 ? I(p2) : m2 || I(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1754
+ this.escape = t2 === void 0 ? Pr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? L(i2) : a2 || `{{`, this.suffix = o2 ? L(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? L(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? L(l2) : ``, this.nestingPrefix = d2 ? L(d2) : f2 || L(`$t(`), this.nestingSuffix = p2 ? L(p2) : m2 || L(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1754
1755
  }
1755
1756
  reset() {
1756
1757
  this.options && this.init(this.options);
@@ -1776,13 +1777,13 @@ var ti = class {
1776
1777
  if (a2 = c2(n3), a2 === void 0) {
1777
1778
  if (typeof l2 == `function`) {
1778
1779
  let t4 = l2(e6, i2, r2);
1779
- a2 = F(t4) ? t4 : ``;
1780
+ a2 = P(t4) ? t4 : ``;
1780
1781
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1781
1782
  else if (u2) {
1782
1783
  a2 = i2[0];
1783
1784
  continue;
1784
1785
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1785
- } else !F(a2) && !this.useRawValueToEscape && (a2 = Sr(a2));
1786
+ } else !P(a2) && !this.useRawValueToEscape && (a2 = Cr(a2));
1786
1787
  let s3 = t3.safeValue(a2);
1787
1788
  if (e6 = e6.replace(i2[0], ei(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1788
1789
  }
@@ -1792,7 +1793,7 @@ var ti = class {
1792
1793
  let r2, i2, a2, o2 = (e7, t3) => {
1793
1794
  let n3 = this.nestingOptionsSeparator;
1794
1795
  if (!e7.includes(n3)) return e7;
1795
- let r3 = e7.split(RegExp(`${I(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1796
+ let r3 = e7.split(RegExp(`${L(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1796
1797
  e7 = r3[0], i3 = this.interpolate(i3, a2);
1797
1798
  let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
1798
1799
  ((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1805,10 +1806,10 @@ var ti = class {
1805
1806
  }, s2 = new RegExp(this.nestingRegexp), c2 = ``, l2 = 0;
1806
1807
  for (; r2 = s2.exec(e6); ) {
1807
1808
  let u2 = [];
1808
- a2 = { ...n2 }, a2 = a2.replace && !F(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1809
+ a2 = { ...n2 }, a2 = a2.replace && !P(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1809
1810
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1810
- if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !F(i2)) return i2;
1811
- F(i2) || (i2 = Sr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Sr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1811
+ if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !P(i2)) return i2;
1812
+ P(i2) || (i2 = Cr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Cr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1812
1813
  }
1813
1814
  return l2 ? c2 + e6.slice(l2) : e6;
1814
1815
  }
@@ -1834,13 +1835,13 @@ var ri = (e6) => {
1834
1835
  let a2 = i2;
1835
1836
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1836
1837
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1837
- return s2 || (s2 = e6(L(r2), i2), t2[o2] = s2), s2(n2);
1838
+ return s2 || (s2 = e6(R(r2), i2), t2[o2] = s2), s2(n2);
1838
1839
  };
1839
1840
  };
1840
- var ii = (e6) => (t2, n2, r2) => e6(L(n2), r2)(t2);
1841
+ var ii = (e6) => (t2, n2, r2) => e6(R(n2), r2)(t2);
1841
1842
  var ai = class {
1842
1843
  constructor(e6 = {}) {
1843
- this.logger = R.create(`formatter`), this.options = e6, this.init(e6);
1844
+ this.logger = z.create(`formatter`), this.options = e6, this.init(e6);
1844
1845
  }
1845
1846
  init(e6, t2 = { interpolation: {} }) {
1846
1847
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
@@ -1897,7 +1898,7 @@ var oi = (e6, t2) => {
1897
1898
  };
1898
1899
  var si = class extends Vr {
1899
1900
  constructor(e6, t2, n2, r2 = {}) {
1900
- super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = R.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1901
+ super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = z.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1901
1902
  }
1902
1903
  queueLoad(e6, t2, n2, r2) {
1903
1904
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1949,7 +1950,7 @@ var si = class extends Vr {
1949
1950
  }
1950
1951
  prepareLoading(e6, t2, n2 = {}, r2) {
1951
1952
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1952
- F(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), F(t2) && (t2 = [t2]);
1953
+ P(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), P(t2) && (t2 = [t2]);
1953
1954
  let i2 = this.queueLoad(e6, t2, n2, r2);
1954
1955
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1955
1956
  i2.toLoad.forEach((e7) => {
@@ -1988,7 +1989,7 @@ var si = class extends Vr {
1988
1989
  };
1989
1990
  var ci = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
1990
1991
  let t2 = {};
1991
- if (typeof e6[1] == `object` && (t2 = e6[1]), F(e6[1]) && (t2.defaultValue = e6[1]), F(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1992
+ if (typeof e6[1] == `object` && (t2 = e6[1]), P(e6[1]) && (t2.defaultValue = e6[1]), P(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1992
1993
  let n2 = e6[3] || e6[2];
1993
1994
  Object.keys(n2).forEach((e7) => {
1994
1995
  t2[e7] = n2[e7];
@@ -1996,7 +1997,7 @@ var ci = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1996
1997
  }
1997
1998
  return t2;
1998
1999
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1999
- var li = (e6) => (F(e6.ns) && (e6.ns = [e6.ns]), F(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), F(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2000
+ var li = (e6) => (P(e6.ns) && (e6.ns = [e6.ns]), P(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), P(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2000
2001
  var ui = () => {
2001
2002
  };
2002
2003
  var di = (e6) => {
@@ -2004,9 +2005,9 @@ var di = (e6) => {
2004
2005
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
2005
2006
  });
2006
2007
  };
2007
- var B = class e4 extends Vr {
2008
+ var V = class e4 extends Vr {
2008
2009
  constructor(e6 = {}, t2) {
2009
- if (super(), this.options = li(e6), this.services = {}, this.logger = R, this.modules = { external: [] }, di(this), t2 && !this.isInitialized && !e6.isClone) {
2010
+ if (super(), this.options = li(e6), this.services = {}, this.logger = z, this.modules = { external: [] }, di(this), t2 && !this.isInitialized && !e6.isClone) {
2010
2011
  if (!this.options.initAsync) return this.init(e6, t2), this;
2011
2012
  setTimeout(() => {
2012
2013
  this.init(e6, t2);
@@ -2014,18 +2015,18 @@ var B = class e4 extends Vr {
2014
2015
  }
2015
2016
  }
2016
2017
  init(e6 = {}, t2) {
2017
- this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (F(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2018
+ this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (P(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2018
2019
  let n2 = ci();
2019
2020
  this.options = { ...n2, ...this.options, ...li(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2020
2021
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
2021
2022
  if (!this.options.isClone) {
2022
- this.modules.logger ? R.init(r2(this.modules.logger), this.options) : R.init(null, this.options);
2023
+ this.modules.logger ? z.init(r2(this.modules.logger), this.options) : z.init(null, this.options);
2023
2024
  let e7;
2024
2025
  e7 = this.modules.formatter ? this.modules.formatter : ai;
2025
2026
  let t3 = new Yr(this.options);
2026
2027
  this.store = new Ur(this.options.resources, this.options);
2027
2028
  let n3 = this.services;
2028
- n3.logger = R, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Qr(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new ti(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new si(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2029
+ n3.logger = z, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Qr(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new ti(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new si(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2029
2030
  this.emit(e8, ...t4);
2030
2031
  }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new Jr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2031
2032
  this.emit(e8, ...t4);
@@ -2042,7 +2043,7 @@ var B = class e4 extends Vr {
2042
2043
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
2043
2044
  this[e7] = (...t3) => (this.store[e7](...t3), this);
2044
2045
  });
2045
- let i2 = xr(), a2 = () => {
2046
+ let i2 = F(), a2 = () => {
2046
2047
  let e7 = (e8, n3) => {
2047
2048
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e8, n3);
2048
2049
  };
@@ -2052,7 +2053,7 @@ var B = class e4 extends Vr {
2052
2053
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2053
2054
  }
2054
2055
  loadResources(e6, t2 = ui) {
2055
- let n2 = t2, r2 = F(e6) ? e6 : this.language;
2056
+ let n2 = t2, r2 = P(e6) ? e6 : this.language;
2056
2057
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2057
2058
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
2058
2059
  let e7 = [], t3 = (t4) => {
@@ -2066,7 +2067,7 @@ var B = class e4 extends Vr {
2066
2067
  } else n2(null);
2067
2068
  }
2068
2069
  reloadResources(e6, t2, n2) {
2069
- let r2 = xr();
2070
+ let r2 = F();
2070
2071
  return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= ui, this.services.backendConnector.reload(e6, t2, (e7) => {
2071
2072
  r2.resolve(), n2(e7);
2072
2073
  }), r2;
@@ -2090,7 +2091,7 @@ var B = class e4 extends Vr {
2090
2091
  }
2091
2092
  changeLanguage(e6, t2) {
2092
2093
  this.isLanguageChangingTo = e6;
2093
- let n2 = xr();
2094
+ let n2 = F();
2094
2095
  this.emit(`languageChanging`, e6);
2095
2096
  let r2 = (e7) => {
2096
2097
  this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
@@ -2098,7 +2099,7 @@ var B = class e4 extends Vr {
2098
2099
  a3 ? this.isLanguageChangingTo === e6 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e7) => this.t(...e7)), t2 && t2(i3, (...e7) => this.t(...e7));
2099
2100
  }, a2 = (t3) => {
2100
2101
  !e6 && !t3 && this.services.languageDetector && (t3 = []);
2101
- let n3 = F(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(F(t3) ? [t3] : t3);
2102
+ let n3 = P(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(P(t3) ? [t3] : t3);
2102
2103
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e7) => {
2103
2104
  i2(e7, a3);
2104
2105
  });
@@ -2112,11 +2113,11 @@ var B = class e4 extends Vr {
2112
2113
  let s2 = o2.ns !== void 0 && o2.ns !== null;
2113
2114
  o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
2114
2115
  let c2 = { ...this.options, ...o2 };
2115
- Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = z(o2.keyPrefix, c2));
2116
+ Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = B(o2.keyPrefix, c2));
2116
2117
  let l2 = this.options.keySeparator || `.`, u2;
2117
- return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = z(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = z(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2118
+ return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = B(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = B(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2118
2119
  };
2119
- return F(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2120
+ return P(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2120
2121
  }
2121
2122
  t(...e6) {
2122
2123
  return this.translator?.translate(...e6);
@@ -2145,16 +2146,16 @@ var B = class e4 extends Vr {
2145
2146
  return !(s2 && !a2(s2, e6) || r2 && !a2(i2, e6));
2146
2147
  }
2147
2148
  loadNamespaces(e6, t2) {
2148
- let n2 = xr();
2149
- return this.options.ns ? (F(e6) && (e6 = [e6]), e6.forEach((e7) => {
2149
+ let n2 = F();
2150
+ return this.options.ns ? (P(e6) && (e6 = [e6]), e6.forEach((e7) => {
2150
2151
  this.options.ns.includes(e7) || this.options.ns.push(e7);
2151
2152
  }), this.loadResources((e7) => {
2152
2153
  n2.resolve(), t2 && t2(e7);
2153
2154
  }), n2) : (t2 && t2(), Promise.resolve());
2154
2155
  }
2155
2156
  loadLanguages(e6, t2) {
2156
- let n2 = xr();
2157
- F(e6) && (e6 = [e6]);
2157
+ let n2 = F();
2158
+ P(e6) && (e6 = [e6]);
2158
2159
  let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
2159
2160
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
2160
2161
  n2.resolve(), t2 && t2(e7);
@@ -2195,9 +2196,9 @@ var B = class e4 extends Vr {
2195
2196
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
2196
2197
  }
2197
2198
  }.createInstance();
2198
- B.createInstance, B.dir, B.init, B.loadResources, B.reloadResources, B.use, B.changeLanguage, B.getFixedT, B.t, B.exists, B.setDefaultNamespace, B.hasLoadedNamespace, B.loadNamespaces, B.loadLanguages;
2199
+ V.createInstance, V.dir, V.init, V.loadResources, V.reloadResources, V.use, V.changeLanguage, V.getFixedT, V.t, V.exists, V.setDefaultNamespace, V.hasLoadedNamespace, V.loadNamespaces, V.loadLanguages;
2199
2200
  var fi = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2200
- let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = B.createInstance(i2 ? s2 : void 0);
2201
+ let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = V.createInstance(i2 ? s2 : void 0);
2201
2202
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2202
2203
  try {
2203
2204
  return r3(null, await t2(e7));
@@ -2554,7 +2555,7 @@ function Xi(e6) {
2554
2555
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2555
2556
  }
2556
2557
  var Zi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2557
- var V = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2558
+ var H = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2558
2559
  function Qi(e6, t2) {
2559
2560
  let n2 = ``;
2560
2561
  for (let r2 = 0; r2 < e6.length; r2++) {
@@ -2588,11 +2589,11 @@ function $i(e6) {
2588
2589
  throw Error(`Invalid hourCycle`);
2589
2590
  }
2590
2591
  let n2 = e6.language, r2;
2591
- return n2 !== `root` && (r2 = e6.maximize().region), (V[`${n2}-${r2}`] || V[r2 || ``] || V[n2 || ``] || V[`${n2}-001`] || V[`001`])[0].charAt(0);
2592
+ return n2 !== `root` && (r2 = e6.maximize().region), (H[`${n2}-${r2}`] || H[r2 || ``] || H[n2 || ``] || H[`${n2}-001`] || H[`001`])[0].charAt(0);
2592
2593
  }
2593
2594
  var ea = RegExp(`^${Zi.source}*`);
2594
2595
  var ta = RegExp(`${Zi.source}*$`);
2595
- function H(e6, t2) {
2596
+ function U(e6, t2) {
2596
2597
  return { start: e6, end: t2 };
2597
2598
  }
2598
2599
  var na = !!Object.fromEntries;
@@ -2650,7 +2651,7 @@ var da = class {
2650
2651
  let e7 = ua(this.message);
2651
2652
  if (e7) {
2652
2653
  let t2 = this.clonePosition();
2653
- return this.position = e7, { val: [{ type: 0, value: this.message, location: H(t2, this.clonePosition()) }], err: null };
2654
+ return this.position = e7, { val: [{ type: 0, value: this.message, location: U(t2, this.clonePosition()) }], err: null };
2654
2655
  }
2655
2656
  }
2656
2657
  }
@@ -2667,10 +2668,10 @@ var da = class {
2667
2668
  } else if (i2 === 125 && e6 > 0) break;
2668
2669
  else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
2669
2670
  let e7 = this.clonePosition();
2670
- this.bump(), r2.push({ type: 7, location: H(e7, this.clonePosition()) });
2671
+ this.bump(), r2.push({ type: 7, location: U(e7, this.clonePosition()) });
2671
2672
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2672
2673
  if (n2) break;
2673
- return this.error(26, H(this.clonePosition(), this.clonePosition()));
2674
+ return this.error(26, U(this.clonePosition(), this.clonePosition()));
2674
2675
  } else if (i2 === 60 && !this.ignoreTag && fa(this.peek() || 0)) {
2675
2676
  let n3 = this.parseTag(e6, t2);
2676
2677
  if (n3.err) return n3;
@@ -2687,19 +2688,19 @@ var da = class {
2687
2688
  let n2 = this.clonePosition();
2688
2689
  this.bump();
2689
2690
  let r2 = this.parseTagName();
2690
- if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: H(n2, this.clonePosition()) }, err: null };
2691
+ if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: U(n2, this.clonePosition()) }, err: null };
2691
2692
  if (this.bumpIf(`>`)) {
2692
2693
  let i2 = this.parseMessage(e6 + 1, t2, true);
2693
2694
  if (i2.err) return i2;
2694
2695
  let a2 = i2.val, o2 = this.clonePosition();
2695
2696
  if (this.bumpIf(`</`)) {
2696
- if (this.isEOF() || !fa(this.char())) return this.error(23, H(o2, this.clonePosition()));
2697
+ if (this.isEOF() || !fa(this.char())) return this.error(23, U(o2, this.clonePosition()));
2697
2698
  let e7 = this.clonePosition();
2698
- return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: H(n2, this.clonePosition()) }, err: null } : this.error(23, H(o2, this.clonePosition()))) : this.error(26, H(e7, this.clonePosition()));
2699
+ return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: U(n2, this.clonePosition()) }, err: null } : this.error(23, U(o2, this.clonePosition()))) : this.error(26, U(e7, this.clonePosition()));
2699
2700
  }
2700
- return this.error(27, H(n2, this.clonePosition()));
2701
+ return this.error(27, U(n2, this.clonePosition()));
2701
2702
  }
2702
- return this.error(23, H(n2, this.clonePosition()));
2703
+ return this.error(23, U(n2, this.clonePosition()));
2703
2704
  }
2704
2705
  parseTagName() {
2705
2706
  let e6 = this.offset();
@@ -2723,7 +2724,7 @@ var da = class {
2723
2724
  if (a2) r2 += a2;
2724
2725
  else break;
2725
2726
  }
2726
- let i2 = H(n2, this.clonePosition());
2727
+ let i2 = U(n2, this.clonePosition());
2727
2728
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2728
2729
  }
2729
2730
  tryParseLeftAngleBracket() {
@@ -2767,29 +2768,29 @@ var da = class {
2767
2768
  }
2768
2769
  parseArgument(e6, t2) {
2769
2770
  let n2 = this.clonePosition();
2770
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
2771
- if (this.char() === 125) return this.bump(), this.error(2, H(n2, this.clonePosition()));
2771
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, U(n2, this.clonePosition()));
2772
+ if (this.char() === 125) return this.bump(), this.error(2, U(n2, this.clonePosition()));
2772
2773
  let r2 = this.parseIdentifierIfPossible().value;
2773
- if (!r2) return this.error(3, H(n2, this.clonePosition()));
2774
- if (this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
2774
+ if (!r2) return this.error(3, U(n2, this.clonePosition()));
2775
+ if (this.bumpSpace(), this.isEOF()) return this.error(1, U(n2, this.clonePosition()));
2775
2776
  switch (this.char()) {
2776
2777
  case 125:
2777
- return this.bump(), { val: { type: 1, value: r2, location: H(n2, this.clonePosition()) }, err: null };
2778
+ return this.bump(), { val: { type: 1, value: r2, location: U(n2, this.clonePosition()) }, err: null };
2778
2779
  case 44:
2779
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, H(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2780
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, U(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2780
2781
  default:
2781
- return this.error(3, H(n2, this.clonePosition()));
2782
+ return this.error(3, U(n2, this.clonePosition()));
2782
2783
  }
2783
2784
  }
2784
2785
  parseIdentifierIfPossible() {
2785
2786
  let e6 = this.clonePosition(), t2 = this.offset(), n2 = la(this.message, t2), r2 = t2 + n2.length;
2786
- return this.bumpTo(r2), { value: n2, location: H(e6, this.clonePosition()) };
2787
+ return this.bumpTo(r2), { value: n2, location: U(e6, this.clonePosition()) };
2787
2788
  }
2788
2789
  parseArgumentOptions(e6, t2, n2, r2) {
2789
2790
  let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
2790
2791
  switch (a2) {
2791
2792
  case ``:
2792
- return this.error(4, H(i2, o2));
2793
+ return this.error(4, U(i2, o2));
2793
2794
  case `number`:
2794
2795
  case `date`:
2795
2796
  case `time`: {
@@ -2800,12 +2801,12 @@ var da = class {
2800
2801
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2801
2802
  if (n3.err) return n3;
2802
2803
  let r3 = sa(n3.val);
2803
- if (r3.length === 0) return this.error(6, H(this.clonePosition(), this.clonePosition()));
2804
- e7 = { style: r3, styleLocation: H(t4, this.clonePosition()) };
2804
+ if (r3.length === 0) return this.error(6, U(this.clonePosition(), this.clonePosition()));
2805
+ e7 = { style: r3, styleLocation: U(t4, this.clonePosition()) };
2805
2806
  }
2806
2807
  let t3 = this.tryParseArgumentClose(r2);
2807
2808
  if (t3.err) return t3;
2808
- let i3 = H(r2, this.clonePosition());
2809
+ let i3 = U(r2, this.clonePosition());
2809
2810
  if (e7 && e7.style.startsWith(`::`)) {
2810
2811
  let t4 = oa(e7.style.slice(2));
2811
2812
  if (a2 === `number`) {
@@ -2826,11 +2827,11 @@ var da = class {
2826
2827
  case `selectordinal`:
2827
2828
  case `select`: {
2828
2829
  let i3 = this.clonePosition();
2829
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, H(i3, { ...i3 }));
2830
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, U(i3, { ...i3 }));
2830
2831
  this.bumpSpace();
2831
2832
  let o3 = this.parseIdentifierIfPossible(), s2 = 0;
2832
2833
  if (a2 !== `select` && o3.value === `offset`) {
2833
- if (!this.bumpIf(`:`)) return this.error(13, H(this.clonePosition(), this.clonePosition()));
2834
+ if (!this.bumpIf(`:`)) return this.error(13, U(this.clonePosition(), this.clonePosition()));
2834
2835
  this.bumpSpace();
2835
2836
  let e7 = this.tryParseDecimalInteger(13, 14);
2836
2837
  if (e7.err) return e7;
@@ -2840,15 +2841,15 @@ var da = class {
2840
2841
  if (c2.err) return c2;
2841
2842
  let l2 = this.tryParseArgumentClose(r2);
2842
2843
  if (l2.err) return l2;
2843
- let u2 = H(r2, this.clonePosition());
2844
+ let u2 = U(r2, this.clonePosition());
2844
2845
  return a2 === `select` ? { val: { type: 5, value: n2, options: aa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: aa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2845
2846
  }
2846
2847
  default:
2847
- return this.error(5, H(i2, o2));
2848
+ return this.error(5, U(i2, o2));
2848
2849
  }
2849
2850
  }
2850
2851
  tryParseArgumentClose(e6) {
2851
- return this.isEOF() || this.char() !== 125 ? this.error(1, H(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2852
+ return this.isEOF() || this.char() !== 125 ? this.error(1, U(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2852
2853
  }
2853
2854
  parseSimpleArgStyleIfPossible() {
2854
2855
  let e6 = 0, t2 = this.clonePosition();
@@ -2856,7 +2857,7 @@ var da = class {
2856
2857
  case 39: {
2857
2858
  this.bump();
2858
2859
  let e7 = this.clonePosition();
2859
- if (!this.bumpUntil(`'`)) return this.error(11, H(e7, this.clonePosition()));
2860
+ if (!this.bumpUntil(`'`)) return this.error(11, U(e7, this.clonePosition()));
2860
2861
  this.bump();
2861
2862
  break;
2862
2863
  }
@@ -2889,20 +2890,20 @@ var da = class {
2889
2890
  if (t2 !== `select` && this.bumpIf(`=`)) {
2890
2891
  let t3 = this.tryParseDecimalInteger(16, 19);
2891
2892
  if (t3.err) return t3;
2892
- c2 = H(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2893
+ c2 = U(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2893
2894
  } else break;
2894
2895
  }
2895
2896
  if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
2896
2897
  s2 === `other` && (i2 = true), this.bumpSpace();
2897
2898
  let r3 = this.clonePosition();
2898
- if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, H(this.clonePosition(), this.clonePosition()));
2899
+ if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, U(this.clonePosition(), this.clonePosition()));
2899
2900
  let l2 = this.parseMessage(e6 + 1, t2, n2);
2900
2901
  if (l2.err) return l2;
2901
2902
  let u2 = this.tryParseArgumentClose(r3);
2902
2903
  if (u2.err) return u2;
2903
- a2.push([s2, { value: l2.val, location: H(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2904
+ a2.push([s2, { value: l2.val, location: U(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2904
2905
  }
2905
- return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, H(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2906
+ return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, U(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, U(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2906
2907
  }
2907
2908
  tryParseDecimalInteger(e6, t2) {
2908
2909
  let n2 = 1, r2 = this.clonePosition();
@@ -2913,7 +2914,7 @@ var da = class {
2913
2914
  if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
2914
2915
  else break;
2915
2916
  }
2916
- let o2 = H(r2, this.clonePosition());
2917
+ let o2 = U(r2, this.clonePosition());
2917
2918
  return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
2918
2919
  }
2919
2920
  offset() {
@@ -3256,25 +3257,25 @@ function Ka(e6, t2, n2) {
3256
3257
  }
3257
3258
  function qa(e6) {
3258
3259
  var t2 = Ja(e6, `string`);
3259
- return U(t2) == `symbol` ? t2 : t2 + ``;
3260
+ return W(t2) == `symbol` ? t2 : t2 + ``;
3260
3261
  }
3261
3262
  function Ja(e6, t2) {
3262
- if (U(e6) != `object` || !e6) return e6;
3263
+ if (W(e6) != `object` || !e6) return e6;
3263
3264
  var n2 = e6[Symbol.toPrimitive];
3264
3265
  if (n2 !== void 0) {
3265
3266
  var r2 = n2.call(e6, t2 || `default`);
3266
- if (U(r2) != `object`) return r2;
3267
+ if (W(r2) != `object`) return r2;
3267
3268
  throw TypeError(`@@toPrimitive must return a primitive value.`);
3268
3269
  }
3269
3270
  return (t2 === `string` ? String : Number)(e6);
3270
3271
  }
3271
- function U(e6) {
3272
+ function W(e6) {
3272
3273
  "@babel/helpers - typeof";
3273
- return U = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3274
+ return W = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3274
3275
  return typeof e7;
3275
3276
  } : function(e7) {
3276
3277
  return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3277
- }, U(e6);
3278
+ }, W(e6);
3278
3279
  }
3279
3280
  var Ya = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3280
3281
  var Xa = [`zero`, `one`, `two`, `few`, `many`, `other`];
@@ -3286,7 +3287,7 @@ function Za() {
3286
3287
  }, escapeVariables: false };
3287
3288
  }
3288
3289
  function Qa(e6, t2, n2, r2) {
3289
- return n2 && t2 && U(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3290
+ return n2 && t2 && W(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3290
3291
  }
3291
3292
  var $a = function() {
3292
3293
  function e6(t2) {
@@ -3312,7 +3313,7 @@ var $a = function() {
3312
3313
  }
3313
3314
  try {
3314
3315
  c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new ka(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Ma(this.mem, s2, { res: e7, fc: c2 }));
3315
- var u2 = t2 && t2.replace && U(t2.replace) === `object` ? Ha(Ha({}, t2), t2.replace) : t2;
3316
+ var u2 = t2 && t2.replace && W(t2.replace) === `object` ? Ha(Ha({}, t2), t2.replace) : t2;
3316
3317
  return c2.format(this.escapeVariableValues(u2));
3317
3318
  } catch (a3) {
3318
3319
  return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(Qa(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
@@ -3340,7 +3341,7 @@ var $a = function() {
3340
3341
  } }, { key: `clearCache`, value: function() {
3341
3342
  this.mem = {};
3342
3343
  } }, { key: `escapeVariableValues`, value: function(e7) {
3343
- if (!this.options.escapeVariables || !e7 || U(e7) !== `object`) return e7;
3344
+ if (!this.options.escapeVariables || !e7 || W(e7) !== `object`) return e7;
3344
3345
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3345
3346
  var i2 = Fa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3346
3347
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
@@ -3356,11 +3357,11 @@ function eo({ icuOptions: e6 = {}, ...t2 }) {
3356
3357
  var to = (e6, t2, n2, r2) => {
3357
3358
  let i2 = [n2, { code: t2, ...r2 || {} }];
3358
3359
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3359
- W(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3360
+ G(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3360
3361
  };
3361
3362
  var no = {};
3362
3363
  var ro = (e6, t2, n2, r2) => {
3363
- W(n2) && no[n2] || (W(n2) && (no[n2] = /* @__PURE__ */ new Date()), to(e6, t2, n2, r2));
3364
+ G(n2) && no[n2] || (G(n2) && (no[n2] = /* @__PURE__ */ new Date()), to(e6, t2, n2, r2));
3364
3365
  };
3365
3366
  var io = (e6, t2) => () => {
3366
3367
  if (e6.isInitialized) t2();
@@ -3377,7 +3378,7 @@ var ao = (e6, t2, n2) => {
3377
3378
  e6.loadNamespaces(t2, io(e6, n2));
3378
3379
  };
3379
3380
  var oo = (e6, t2, n2, r2) => {
3380
- if (W(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return ao(e6, n2, r2);
3381
+ if (G(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return ao(e6, n2, r2);
3381
3382
  n2.forEach((t3) => {
3382
3383
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3383
3384
  }), e6.loadLanguages(t2, io(e6, r2));
@@ -3385,7 +3386,7 @@ var oo = (e6, t2, n2, r2) => {
3385
3386
  var so = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (ro(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3386
3387
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3387
3388
  } });
3388
- var W = (e6) => typeof e6 == `string`;
3389
+ var G = (e6) => typeof e6 == `string`;
3389
3390
  var co = (e6) => typeof e6 == `object` && !!e6;
3390
3391
  var lo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3391
3392
  var uo = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
@@ -3420,12 +3421,12 @@ var So = (e6, t2 = {}) => {
3420
3421
  let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(_o) || {}, a2 = n2 || r2 || go();
3421
3422
  if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new vo()), !a2) {
3422
3423
  ro(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3423
- let e7 = (e8, t4) => W(t4) ? t4 : co(t4) && W(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3424
+ let e7 = (e8, t4) => G(t4) ? t4 : co(t4) && G(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3424
3425
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3425
3426
  }
3426
3427
  a2.options.react?.wait && ro(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3427
3428
  let c2 = { ...mo(), ...a2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = c2, p2 = e6 || i2 || a2.options?.defaultNS;
3428
- p2 = W(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3429
+ p2 = G(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3429
3430
  let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => so(e7, a2, c2)), h2 = xo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => bo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
3430
3431
  t2.lng && (b2 = `${t2.lng}${b2}`);
3431
3432
  let x2 = yo(b2), S2 = (0, import_react.useRef)(true);
@@ -3482,7 +3483,7 @@ function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3482
3483
  if (a2) return a2.promise;
3483
3484
  let o2 = Eo(e6);
3484
3485
  if (o2 !== void 0) {
3485
- let t3 = Rn(o2);
3486
+ let t3 = Bn(o2);
3486
3487
  return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3487
3488
  }
3488
3489
  let s2 = (async () => await t2.get(e6) ?? n2())();
@@ -3520,26 +3521,26 @@ var Bo = (e6, t2, n2) => {
3520
3521
  });
3521
3522
  };
3522
3523
  var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3523
- br({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => gn(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3524
+ Sr({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => vn(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3524
3525
  var Ho = /* @__PURE__ */ new WeakMap();
3525
3526
  function Uo(e6) {
3526
3527
  let t2 = Ho.get(e6);
3527
3528
  return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3528
3529
  }
3529
3530
  function Wo({ i18n: e6, locale: t2 }) {
3530
- let n2 = Gn(), r2 = _r();
3531
+ let n2 = qn(), r2 = yr();
3531
3532
  if (!n2) return null;
3532
3533
  if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3533
3534
  let i2 = zo(e6, t2);
3534
3535
  return i2 && r2.set(No, { locale: t2, messages: i2 }), null;
3535
3536
  }
3536
3537
  function Go(e6) {
3537
- let t2 = mr(), n2 = Fo()?.locale ?? t2 ?? `en`;
3538
+ let t2 = gr(), n2 = Fo()?.locale ?? t2 ?? `en`;
3538
3539
  return { i18n: Lo(n2, e6), locale: n2 };
3539
3540
  }
3540
- var Ko = g({ default: () => qo });
3541
+ var Ko = _({ default: () => qo });
3541
3542
  var qo = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3542
- var Jo = g({ default: () => Xo, title: () => Yo });
3543
+ var Jo = _({ default: () => Xo, title: () => Yo });
3543
3544
  var Yo = `My App`;
3544
3545
  var Xo = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: Yo, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3545
3546
  var Zo = Object.assign({ "../assets/locale/messages_en.dev.json": Ko, "../assets/locale/messages_en.json": Jo });
@@ -3547,12 +3548,12 @@ var Qo = (e6, t2) => {
3547
3548
  let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3548
3549
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3549
3550
  };
3550
- var $o = br({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3551
+ var $o = Sr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3551
3552
  var es = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
3552
- var G = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
3553
+ var K = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
3553
3554
  var ts = (e6, t2) => {
3554
3555
  let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: es(r2, `full`, t2) });
3555
- return { timeToRead: (t3) => e6(G.timeToRead, { count: t3 }), viewCount: n2(G.viewCount), commentCount: n2(G.commentCount), likeCount: n2(G.likeCount), noPostsEmptyState: () => ({ title: e6(G.noPostsTitle), description: e6(G.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(G.noRelatedPostsTitle), description: e6(G.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(G.canvasPostTitle), authorName: () => e6(G.canvasAuthorName), excerpt: () => e6(G.canvasExcerpt), content: () => e6(G.canvasContent), category: () => e6(G.canvasCategory), categoryNumbered: (t3) => e6(G.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(G.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(G.canvasCoverAlt), authorPhotoAlt: () => e6(G.canvasAuthorPhotoAlt) } };
3556
+ return { timeToRead: (t3) => e6(K.timeToRead, { count: t3 }), viewCount: n2(K.viewCount), commentCount: n2(K.commentCount), likeCount: n2(K.likeCount), noPostsEmptyState: () => ({ title: e6(K.noPostsTitle), description: e6(K.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(K.noRelatedPostsTitle), description: e6(K.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(K.canvasPostTitle), authorName: () => e6(K.canvasAuthorName), excerpt: () => e6(K.canvasExcerpt), content: () => e6(K.canvasContent), category: () => e6(K.canvasCategory), categoryNumbered: (t3) => e6(K.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(K.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(K.canvasCoverAlt), authorPhotoAlt: () => e6(K.canvasAuthorPhotoAlt) } };
3556
3557
  };
3557
3558
  function ns(e6) {
3558
3559
  return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
@@ -3563,7 +3564,7 @@ function rs(e6) {
3563
3564
  function is(e6) {
3564
3565
  return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
3565
3566
  }
3566
- function K(e6, t2) {
3567
+ function q(e6, t2) {
3567
3568
  return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ns(e6) ? e6.$and : [e6], ...ns(t2) ? t2.$and : [t2]] };
3568
3569
  }
3569
3570
  function as(e6, t2) {
@@ -3642,7 +3643,7 @@ var ls = class extends ss {
3642
3643
  function us(e6) {
3643
3644
  let t2 = (n2) => ({ query: n2, async find() {
3644
3645
  try {
3645
- let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Xe]: a2, [Ze]: o2 } = e6.responseTransformer(i2);
3646
+ let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Ze]: a2, [Qe]: o2 } = e6.responseTransformer(i2);
3646
3647
  if (e6.pagingMethod === `OFFSET`) {
3647
3648
  let e7 = n2;
3648
3649
  return new ls({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
@@ -3655,60 +3656,60 @@ function us(e6) {
3655
3656
  }, skipTo(e7) {
3656
3657
  return t2({ ...n2, cursorPaging: { cursor: e7, limit: n2.cursorPaging.limit } });
3657
3658
  }, eq(r2, i2) {
3658
- let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: a2 };
3659
- return t2({ ...n2, filter: K(n2.filter, o2) });
3659
+ let a2 = i2 === void 0 ? null : i2, o2 = { [J(e6.transformationPaths, r2)]: a2 };
3660
+ return t2({ ...n2, filter: q(n2.filter, o2) });
3660
3661
  }, ne(r2, i2) {
3661
- let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: { $ne: a2 } };
3662
- return t2({ ...n2, filter: K(n2.filter, o2) });
3662
+ let a2 = i2 === void 0 ? null : i2, o2 = { [J(e6.transformationPaths, r2)]: { $ne: a2 } };
3663
+ return t2({ ...n2, filter: q(n2.filter, o2) });
3663
3664
  }, ge(r2, i2) {
3664
- let a2 = { [q(e6.transformationPaths, r2)]: { $gte: i2 } };
3665
- return t2({ ...n2, filter: K(n2.filter, a2) });
3665
+ let a2 = { [J(e6.transformationPaths, r2)]: { $gte: i2 } };
3666
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3666
3667
  }, gt(r2, i2) {
3667
- let a2 = { [q(e6.transformationPaths, r2)]: { $gt: i2 } };
3668
- return t2({ ...n2, filter: K(n2.filter, a2) });
3668
+ let a2 = { [J(e6.transformationPaths, r2)]: { $gt: i2 } };
3669
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3669
3670
  }, le(r2, i2) {
3670
- let a2 = { [q(e6.transformationPaths, r2)]: { $lte: i2 } };
3671
- return t2({ ...n2, filter: K(n2.filter, a2) });
3671
+ let a2 = { [J(e6.transformationPaths, r2)]: { $lte: i2 } };
3672
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3672
3673
  }, lt(r2, i2) {
3673
- let a2 = { [q(e6.transformationPaths, r2)]: { $lt: i2 } };
3674
- return t2({ ...n2, filter: K(n2.filter, a2) });
3674
+ let a2 = { [J(e6.transformationPaths, r2)]: { $lt: i2 } };
3675
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3675
3676
  }, isNotEmpty(e7) {
3676
3677
  return this.ne(e7, null);
3677
3678
  }, isEmpty(e7) {
3678
3679
  return this.eq(e7, null);
3679
3680
  }, startsWith(r2, i2) {
3680
- let a2 = { [q(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3681
- return t2({ ...n2, filter: K(n2.filter, a2) });
3681
+ let a2 = { [J(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3682
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3682
3683
  }, endsWith(r2, i2) {
3683
- let a2 = { [q(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3684
- return t2({ ...n2, filter: K(n2.filter, a2) });
3684
+ let a2 = { [J(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3685
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3685
3686
  }, contains(r2, i2) {
3686
- let a2 = { [q(e6.transformationPaths, r2)]: { $contains: i2 } };
3687
- return t2({ ...n2, filter: K(n2.filter, a2) });
3687
+ let a2 = { [J(e6.transformationPaths, r2)]: { $contains: i2 } };
3688
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3688
3689
  }, hasSome(r2, ...i2) {
3689
- let a2 = { [q(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3690
- return t2({ ...n2, filter: K(n2.filter, a2) });
3690
+ let a2 = { [J(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3691
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3691
3692
  }, hasAll(r2, ...i2) {
3692
- let a2 = { [q(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3693
- return t2({ ...n2, filter: K(n2.filter, a2) });
3693
+ let a2 = { [J(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3694
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3694
3695
  }, between(e7, t3, n3) {
3695
3696
  return this.ge(e7, t3).lt(e7, n3);
3696
3697
  }, in(r2, i2) {
3697
- let a2 = { [q(e6.transformationPaths, r2)]: { $in: i2 } };
3698
- return t2({ ...n2, filter: K(n2.filter, a2) });
3698
+ let a2 = { [J(e6.transformationPaths, r2)]: { $in: i2 } };
3699
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3699
3700
  }, exists(r2, i2 = true) {
3700
- let a2 = { [q(e6.transformationPaths, r2)]: { $exists: i2 } };
3701
- return t2({ ...n2, filter: K(n2.filter, a2) });
3701
+ let a2 = { [J(e6.transformationPaths, r2)]: { $exists: i2 } };
3702
+ return t2({ ...n2, filter: q(n2.filter, a2) });
3702
3703
  }, or(e7) {
3703
3704
  return t2({ ...n2, filter: as(n2.filter, e7.query.filter) });
3704
3705
  }, and(e7) {
3705
- return t2({ ...n2, filter: K(n2.filter, e7.query.filter) });
3706
+ return t2({ ...n2, filter: q(n2.filter, e7.query.filter) });
3706
3707
  }, not(e7) {
3707
3708
  return t2({ ...n2, filter: os(e7.query.filter) });
3708
3709
  }, ascending(...r2) {
3709
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `ASC` }))] });
3710
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e6.transformationPaths, t3), order: `ASC` }))] });
3710
3711
  }, descending(...r2) {
3711
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `DESC` }))] });
3712
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e6.transformationPaths, t3), order: `DESC` }))] });
3712
3713
  }, skip(e7) {
3713
3714
  return t2({ ...n2, paging: { offset: e7, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
3714
3715
  }, limit(r2) {
@@ -3721,9 +3722,9 @@ function us(e6) {
3721
3722
  } });
3722
3723
  return t2({ filter: {}, ...e6.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
3723
3724
  }
3724
- function q(e6, t2) {
3725
+ function J(e6, t2) {
3725
3726
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
3726
- return n2 ? t2.replace(n2, e6[n2]) : $e(t2, { ...e6, ...Qe });
3727
+ return n2 ? t2.replace(n2, e6[n2]) : et(t2, { ...e6, ...$e });
3727
3728
  }
3728
3729
  var ds = `filter`;
3729
3730
  var fs = `sort`;
@@ -3759,23 +3760,23 @@ function Ss(e6, t2) {
3759
3760
  return t2.typedQueryFunction(e6[0], e6[1]);
3760
3761
  }
3761
3762
  }
3762
- function J(e6) {
3763
+ function Y(e6) {
3763
3764
  if (!e6) return;
3764
3765
  let t2 = ``;
3765
3766
  return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
3766
3767
  }
3767
- function Y(e6) {
3768
+ function X(e6) {
3768
3769
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3769
3770
  }
3770
3771
  var Cs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3771
3772
  var ws = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3772
3773
  function Ts(e6) {
3773
- return It(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
3774
+ return Lt(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
3774
3775
  }
3775
3776
  var Es = `@wix/auto_sdk_blog_categories`;
3776
3777
  function Ds(e6) {
3777
3778
  function t2({ host: t3 }) {
3778
- return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Es, migrationOptions: { optInTransformResponse: true }, url: Ts({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Cs }, { transformFn: N, paths: ws }]) };
3779
+ return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Es, migrationOptions: { optInTransformResponse: true }, url: Ts({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: It(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Cs }, { transformFn: dn, paths: ws }]) };
3779
3780
  }
3780
3781
  return t2;
3781
3782
  }
@@ -3786,7 +3787,7 @@ async function As(e6) {
3786
3787
  n2?.onSiteCall?.();
3787
3788
  try {
3788
3789
  let e7 = await t2.request(r2);
3789
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Os }, { transformFn: J, paths: ks }]));
3790
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Os }, { transformFn: Y, paths: ks }]));
3790
3791
  } catch (e7) {
3791
3792
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3792
3793
  throw n2?.onError?.(e7), t3;
@@ -3796,7 +3797,7 @@ function js(e6) {
3796
3797
  return (t2) => As(t2, { httpClient: e6 });
3797
3798
  }
3798
3799
  var Ms = M(js);
3799
- function X(e6) {
3800
+ function Ns(e6) {
3800
3801
  if (!e6) return;
3801
3802
  let t2 = ``;
3802
3803
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3811,69 +3812,69 @@ function X(e6) {
3811
3812
  }
3812
3813
  return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
3813
3814
  }
3814
- var Ns = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3815
- var Ps = [{ path: `post.richContentCompressed` }];
3816
- var Fs = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3817
- var Is = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3818
- var Ls = [{ path: `posts.richContentCompressed` }];
3819
- var Rs = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3820
- var zs = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3821
- function Bs(e6) {
3822
- return It(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
3823
- }
3824
- var Vs = `@wix/auto_sdk_blog_posts`;
3825
- function Hs(e6) {
3815
+ var Ps = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3816
+ var Fs = [{ path: `post.richContentCompressed` }];
3817
+ var Is = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3818
+ var Ls = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3819
+ var Rs = [{ path: `posts.richContentCompressed` }];
3820
+ var zs = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3821
+ var Bs = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3822
+ function Vs(e6) {
3823
+ return Lt(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
3824
+ }
3825
+ var Hs = `@wix/auto_sdk_blog_posts`;
3826
+ function Us(e6) {
3826
3827
  function t2({ host: t3 }) {
3827
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug`, packageName: Vs, migrationOptions: { optInTransformResponse: true }, url: Bs({ protoPath: `/v3/posts/slugs/{slug}`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ns }, { transformFn: un, paths: Ps }, { transformFn: N, paths: Fs }]) };
3828
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug`, packageName: Hs, migrationOptions: { optInTransformResponse: true }, url: Vs({ protoPath: `/v3/posts/slugs/{slug}`, data: e6, host: t3 }), params: It(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ps }, { transformFn: fn, paths: Fs }, { transformFn: dn, paths: Is }]) };
3828
3829
  }
3829
3830
  return t2;
3830
3831
  }
3831
- function Us(e6) {
3832
+ function Ws(e6) {
3832
3833
  function t2({ host: t3 }) {
3833
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: Vs, migrationOptions: { optInTransformResponse: true }, url: Bs({ protoPath: `/v3/posts`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Is }, { transformFn: un, paths: Ls }, { transformFn: N, paths: Rs }]) };
3834
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: Hs, migrationOptions: { optInTransformResponse: true }, url: Vs({ protoPath: `/v3/posts`, data: e6, host: t3 }), params: It(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ls }, { transformFn: fn, paths: Rs }, { transformFn: dn, paths: zs }]) };
3834
3835
  }
3835
3836
  return t2;
3836
3837
  }
3837
- function Ws(e6) {
3838
+ function Gs(e6) {
3838
3839
  function t2({ host: t3 }) {
3839
- let n2 = A(e6, [{ transformFn: ln, paths: zs }]);
3840
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Vs, migrationOptions: { optInTransformResponse: true }, url: Bs({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Is }, { transformFn: un, paths: Ls }, { transformFn: N, paths: Rs }]) };
3840
+ let n2 = A(e6, [{ transformFn: un, paths: Bs }]);
3841
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Hs, migrationOptions: { optInTransformResponse: true }, url: Vs({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ls }, { transformFn: fn, paths: Rs }, { transformFn: dn, paths: zs }]) };
3841
3842
  }
3842
3843
  return t2;
3843
3844
  }
3844
- var Gs = [{ path: `post.url` }, { path: `post.translations.url` }];
3845
- var Ks = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3846
- var qs = [{ path: `post.media.wixMedia.videoV2` }];
3847
- var Js = [{ path: `posts.url` }, { path: `posts.translations.url` }];
3848
- var Ys = [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }];
3849
- var Xs = [{ path: `posts.media.wixMedia.videoV2` }];
3845
+ var Ks = [{ path: `post.url` }, { path: `post.translations.url` }];
3846
+ var qs = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3847
+ var Js = [{ path: `post.media.wixMedia.videoV2` }];
3848
+ var Ys = [{ path: `posts.url` }, { path: `posts.translations.url` }];
3849
+ var Xs = [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }];
3850
+ var Zs = [{ path: `posts.media.wixMedia.videoV2` }];
3850
3851
  var Z = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(Z || {});
3851
- async function Zs(e6, t2) {
3852
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Hs(D({ slug: e6, fieldsets: t2?.fieldsets, language: t2?.language }, []));
3852
+ async function Qs(e6, t2) {
3853
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Us(D({ slug: e6, fieldsets: t2?.fieldsets, language: t2?.language }, []));
3853
3854
  r2?.onSiteCall?.();
3854
3855
  try {
3855
3856
  let e7 = await n2.request(i2);
3856
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Gs }, { transformFn: J, paths: Ks }, { transformFn: X, paths: qs }]), [`post.richContent`, `post.rich_content`]);
3857
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Ks }, { transformFn: Y, paths: qs }, { transformFn: Ns, paths: Js }]), [`post.richContent`, `post.rich_content`]);
3857
3858
  } catch (e7) {
3858
3859
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
3859
3860
  throw r2?.onError?.(e7), t3;
3860
3861
  }
3861
3862
  }
3862
- async function Qs(e6) {
3863
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Us(D({ featured: e6?.featured, hashtags: e6?.hashtags, categoryIds: e6?.categoryIds, tagIds: e6?.tagIds, sort: e6?.sort, paging: e6?.paging, language: e6?.language, memberId: e6?.memberId, fieldsets: e6?.fieldsets }, []));
3863
+ async function $s(e6) {
3864
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ws(D({ featured: e6?.featured, hashtags: e6?.hashtags, categoryIds: e6?.categoryIds, tagIds: e6?.tagIds, sort: e6?.sort, paging: e6?.paging, language: e6?.language, memberId: e6?.memberId, fieldsets: e6?.fieldsets }, []));
3864
3865
  n2?.onSiteCall?.();
3865
3866
  try {
3866
3867
  let e7 = await t2.request(r2);
3867
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3868
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Ys }, { transformFn: Y, paths: Xs }, { transformFn: Ns, paths: Zs }]), [`posts.richContent`, `posts.rich_content`]);
3868
3869
  } catch (e7) {
3869
3870
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { featured: `$[0].featured`, hashtags: `$[0].hashtags`, categoryIds: `$[0].categoryIds`, tagIds: `$[0].tagIds`, sort: `$[0].sort`, paging: `$[0].paging`, language: `$[0].language`, memberId: `$[0].memberId`, fieldsets: `$[0].fieldsets` }, singleArgumentUnchanged: false }, [`options`]);
3870
3871
  throw n2?.onError?.(e7), t3;
3871
3872
  }
3872
3873
  }
3873
- function $s(e6) {
3874
+ function ec(e6) {
3874
3875
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3875
3876
  return us({ func: async (r2) => {
3876
- let i2 = Ws({ ...r2, ...e6 ?? {} });
3877
+ let i2 = Gs({ ...r2, ...e6 ?? {} });
3877
3878
  n2?.onSiteCall?.();
3878
3879
  try {
3879
3880
  let e7 = await t2.request(i2);
@@ -3885,76 +3886,76 @@ function $s(e6) {
3885
3886
  let n3 = [t3, e6];
3886
3887
  return D({ ...n3?.[1], query: n3?.[0] }, []);
3887
3888
  }, responseTransformer: ({ data: e7 }) => {
3888
- let t3 = O(A(e7, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3889
+ let t3 = O(A(e7, [{ transformFn: X, paths: Ys }, { transformFn: Y, paths: Xs }, { transformFn: Ns, paths: Zs }]), [`posts.richContent`, `posts.rich_content`]);
3889
3890
  return { items: t3?.posts, pagingMetadata: t3?.pagingMetadata };
3890
3891
  }, errorTransformer: (e7) => {
3891
3892
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3892
3893
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3893
3894
  }
3894
- async function ec(e6, t2) {
3895
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ws(D({ query: e6, ...t2 }, []));
3895
+ async function tc(e6, t2) {
3896
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Gs(D({ query: e6, ...t2 }, []));
3896
3897
  r2?.onSiteCall?.();
3897
3898
  try {
3898
3899
  let e7 = await n2.request(i2);
3899
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3900
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Ys }, { transformFn: Y, paths: Xs }, { transformFn: Ns, paths: Zs }]), [`posts.richContent`, `posts.rich_content`]);
3900
3901
  } catch (e7) {
3901
3902
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3902
3903
  throw r2?.onError?.(e7), t3;
3903
3904
  }
3904
3905
  }
3905
- function tc(e6) {
3906
- return (t2, n2) => Zs(t2, n2, { httpClient: e6 });
3907
- }
3908
3906
  function nc(e6) {
3909
- return (t2) => Qs(t2, { httpClient: e6 });
3907
+ return (t2, n2) => Qs(t2, n2, { httpClient: e6 });
3910
3908
  }
3911
3909
  function rc(e6) {
3912
3910
  return (t2) => $s(t2, { httpClient: e6 });
3913
3911
  }
3914
3912
  function ic(e6) {
3915
- return (t2, n2) => ec(t2, n2, { httpClient: e6 });
3913
+ return (t2) => ec(t2, { httpClient: e6 });
3916
3914
  }
3917
3915
  function ac(e6) {
3918
- let t2 = bs({ builderQueryFunction: (t3) => rc(e6)(t3), typedQueryFunction: (t3, n3) => ic(e6)(t3, n3), hasOptionsParameter: true });
3916
+ return (t2, n2) => tc(t2, n2, { httpClient: e6 });
3917
+ }
3918
+ function oc(e6) {
3919
+ let t2 = bs({ builderQueryFunction: (t3) => ic(e6)(t3), typedQueryFunction: (t3, n3) => ac(e6)(t3, n3), hasOptionsParameter: true });
3919
3920
  function n2(e7, n3) {
3920
3921
  return t2(...arguments);
3921
3922
  }
3922
3923
  return n2;
3923
3924
  }
3924
- var oc = M(tc);
3925
3925
  var sc = M(nc);
3926
- var cc = M(ac);
3927
- var lc = (e6) => O(A(e6, [{ transformFn: Y, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: J, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: X, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
3928
- var uc = `https://blog.wixsite.com/blog-demo-posts`;
3929
- var dc = M((e6) => async (t2) => {
3930
- let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${Ft(t2)}`);
3926
+ var cc = M(rc);
3927
+ var lc = M(oc);
3928
+ var uc = (e6) => O(A(e6, [{ transformFn: X, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: Y, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: Ns, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
3929
+ var dc = `https://blog.wixsite.com/blog-demo-posts`;
3930
+ var fc = M((e6) => async (t2) => {
3931
+ let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${It(t2)}`);
3931
3932
  if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
3932
- return lc(await n2.json()).filter((e7) => !e7.url?.startsWith(uc));
3933
+ return uc(await n2.json()).filter((e7) => !e7.url?.startsWith(dc));
3933
3934
  });
3934
- var fc = async (e6) => {
3935
+ var pc = async (e6) => {
3935
3936
  try {
3936
- return await dc(e6);
3937
+ return await fc(e6);
3937
3938
  } catch (e7) {
3938
3939
  return console.info(`[blog demo posts]`, `read failed`, e7), [];
3939
3940
  }
3940
3941
  };
3941
- var pc = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
3942
- var mc = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
3943
- function hc(e6) {
3944
- return It(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
3942
+ var mc = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
3943
+ var hc = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
3944
+ function gc(e6) {
3945
+ return Lt(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
3945
3946
  }
3946
- var gc = `@wix/auto_sdk_members_members`;
3947
- function _c(e6) {
3947
+ var _c = `@wix/auto_sdk_members_members`;
3948
+ function vc(e6) {
3948
3949
  function t2({ host: t3 }) {
3949
- let n2 = A(e6, [{ transformFn: ln, paths: mc }]);
3950
- return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: gc, migrationOptions: { optInTransformResponse: true }, url: hc({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: pc }]) };
3950
+ let n2 = A(e6, [{ transformFn: un, paths: hc }]);
3951
+ return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: _c, migrationOptions: { optInTransformResponse: true }, url: gc({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: mc }]) };
3951
3952
  }
3952
3953
  return t2;
3953
3954
  }
3954
- function vc(e6) {
3955
+ function yc(e6) {
3955
3956
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3956
3957
  return us({ func: async (r2) => {
3957
- let i2 = _c({ ...r2, ...e6 ?? {} });
3958
+ let i2 = vc({ ...r2, ...e6 ?? {} });
3958
3959
  n2?.onSiteCall?.();
3959
3960
  try {
3960
3961
  let e7 = await t2.request(i2);
@@ -3972,8 +3973,8 @@ function vc(e6) {
3972
3973
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3973
3974
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
3974
3975
  }
3975
- async function yc(e6, t2) {
3976
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = _c(D({ query: e6, ...t2 }));
3976
+ async function bc(e6, t2) {
3977
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = vc(D({ query: e6, ...t2 }));
3977
3978
  r2?.onSiteCall?.();
3978
3979
  try {
3979
3980
  let e7 = await n2.request(i2);
@@ -3983,25 +3984,25 @@ async function yc(e6, t2) {
3983
3984
  throw r2?.onError?.(e7), t3;
3984
3985
  }
3985
3986
  }
3986
- function bc(e6) {
3987
- return (t2) => vc(t2, { httpClient: e6 });
3988
- }
3989
3987
  function xc(e6) {
3990
- return (t2, n2) => yc(t2, n2, { httpClient: e6 });
3988
+ return (t2) => yc(t2, { httpClient: e6 });
3991
3989
  }
3992
3990
  function Sc(e6) {
3993
- let t2 = bs({ builderQueryFunction: (t3) => bc(e6)(t3), typedQueryFunction: (t3, n3) => xc(e6)(t3, n3), hasOptionsParameter: true });
3991
+ return (t2, n2) => bc(t2, n2, { httpClient: e6 });
3992
+ }
3993
+ function Cc(e6) {
3994
+ let t2 = bs({ builderQueryFunction: (t3) => xc(e6)(t3), typedQueryFunction: (t3, n3) => Sc(e6)(t3, n3), hasOptionsParameter: true });
3994
3995
  function n2(e7, n3) {
3995
3996
  return t2(...arguments);
3996
3997
  }
3997
3998
  return n2;
3998
3999
  }
3999
- var Cc = M(Sc);
4000
- var wc = async (e6) => {
4000
+ var wc = M(Cc);
4001
+ var Tc = async (e6) => {
4001
4002
  let t2 = [...new Set(e6.filter((e7) => !!e7))];
4002
4003
  if (t2.length === 0) return {};
4003
4004
  try {
4004
- let { items: e7 } = await Cc({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
4005
+ let { items: e7 } = await wc({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
4005
4006
  return Object.fromEntries(e7.flatMap((e8) => {
4006
4007
  let { _id: t3 } = e8;
4007
4008
  return t3 ? [[t3, e8]] : [];
@@ -4010,32 +4011,32 @@ var wc = async (e6) => {
4010
4011
  return {};
4011
4012
  }
4012
4013
  };
4013
- var Tc = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4014
- var Ec = [{ path: `posts.richContentCompressed` }];
4015
- var Dc = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4016
- var Oc = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4017
- function kc(e6) {
4018
- return It(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
4014
+ var Ec = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4015
+ var Dc = [{ path: `posts.richContentCompressed` }];
4016
+ var Oc = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4017
+ var kc = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4018
+ function Ac(e6) {
4019
+ return Lt(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
4019
4020
  }
4020
- var Ac = `@wix/auto_sdk_blog_posts`;
4021
- function jc(e6) {
4021
+ var jc = `@wix/auto_sdk_blog_posts`;
4022
+ function Mc(e6) {
4022
4023
  function t2({ host: t3 }) {
4023
- let n2 = A(e6, [{ transformFn: ln, paths: Oc }]);
4024
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Ac, migrationOptions: { optInTransformResponse: true }, url: kc({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }, { transformFn: un, paths: Ec }, { transformFn: N, paths: Dc }]) };
4024
+ let n2 = A(e6, [{ transformFn: un, paths: kc }]);
4025
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: jc, migrationOptions: { optInTransformResponse: true }, url: Ac({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ec }, { transformFn: fn, paths: Dc }, { transformFn: dn, paths: Oc }]) };
4025
4026
  }
4026
4027
  return t2;
4027
4028
  }
4028
- function Mc() {
4029
- let e6 = jc({});
4029
+ function Nc() {
4030
+ let e6 = Mc({});
4030
4031
  return { getUrl: (t2) => {
4031
4032
  let { url: n2 } = e6(t2);
4032
4033
  return n2;
4033
4034
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4034
4035
  }
4035
- var Nc = Mc();
4036
- var Pc = (e6) => (t2) => ({ method: `POST`, url: Nc.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4037
- var Fc = M((e6) => async (t2) => {
4038
- let { data: n2 } = await e6.request(Pc(t2)), r2 = {};
4036
+ var Pc = Nc();
4037
+ var Fc = (e6) => (t2) => ({ method: `POST`, url: Pc.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4038
+ var Ic = M((e6) => async (t2) => {
4039
+ let { data: n2 } = await e6.request(Fc(t2)), r2 = {};
4039
4040
  for (let e7 of n2.posts ?? []) {
4040
4041
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4041
4042
  if (!t3 || !n3?.length) continue;
@@ -4044,157 +4045,184 @@ var Fc = M((e6) => async (t2) => {
4044
4045
  }
4045
4046
  return r2;
4046
4047
  });
4047
- var Ic = async (e6) => {
4048
+ var Lc = async (e6) => {
4048
4049
  if (e6.length === 0) return {};
4049
4050
  try {
4050
- return await Fc(e6);
4051
+ return await Ic(e6);
4051
4052
  } catch {
4052
4053
  return {};
4053
4054
  }
4054
4055
  };
4055
- var Lc = class extends Error {
4056
+ var Rc = class extends Error {
4056
4057
  constructor(e6, t2) {
4057
4058
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
4058
4059
  }
4059
4060
  };
4060
- var Rc = (e6, t2, n2) => {
4061
+ var zc = (e6, t2, n2) => {
4061
4062
  let r2, i2 = new Promise((e7, i3) => {
4062
- r2 = setTimeout(() => i3(new Lc(n2, t2)), t2);
4063
+ r2 = setTimeout(() => i3(new Rc(n2, t2)), t2);
4063
4064
  });
4064
4065
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
4065
4066
  };
4066
4067
  Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT, Z.RICH_CONTENT, Z.URL;
4067
- var zc = [Z.URL, Z.METRICS];
4068
- var Bc = (e6) => {
4068
+ var Bc = [Z.URL, Z.METRICS];
4069
+ var Vc = (e6) => {
4069
4070
  let { status: t2, details: n2 } = e6 ?? {};
4070
4071
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4071
4072
  };
4072
- var Vc = (e6, t2) => {
4073
- if (t2 && !Bc(e6)) throw e6;
4073
+ var Hc = (e6, t2) => {
4074
+ if (t2 && !Vc(e6)) throw e6;
4074
4075
  };
4075
- var Hc = (e6) => wc(e6.map(({ memberId: e7 }) => e7));
4076
- var Uc = (e6) => Ic(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4077
- var Wc = async (e6, t2, n2 = false, r2) => {
4076
+ var Uc = (e6) => Tc(e6.map(({ memberId: e7 }) => e7));
4077
+ var Wc = (e6) => Lc(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4078
+ var Gc = async (e6, t2, n2 = false, r2) => {
4078
4079
  try {
4079
- let { post: n3 } = await oc(e6, { ...t2 && { fieldsets: t2 }, ...r2 && { language: r2 } });
4080
+ let { post: n3 } = await sc(e6, { ...t2 && { fieldsets: t2 }, ...r2 && { language: r2 } });
4080
4081
  if (n3) return n3;
4081
4082
  } catch (e7) {
4082
- Vc(e7, n2);
4083
+ Hc(e7, n2);
4083
4084
  }
4084
4085
  try {
4085
- let { items: n3 } = await cc(t2 ? { fieldsets: t2 } : void 0).eq(`slug`, e6).limit(1).find();
4086
+ let { items: n3 } = await lc(t2 ? { fieldsets: t2 } : void 0).eq(`slug`, e6).limit(1).find();
4086
4087
  return n3[0];
4087
4088
  } catch (e7) {
4088
- Vc(e7, n2);
4089
+ Hc(e7, n2);
4089
4090
  return;
4090
4091
  }
4091
4092
  };
4092
- var Gc = async (e6, t2 = false, n2) => {
4093
+ var Kc = async (e6, t2 = false, n2) => {
4093
4094
  try {
4094
4095
  let t3 = async (t4) => {
4095
- let { posts: r2 } = await sc({ paging: { limit: 1 }, ...e6 && { fieldsets: e6 }, ...t4 && n2 && { language: n2 } });
4096
+ let { posts: r2 } = await cc({ paging: { limit: 1 }, ...e6 && { fieldsets: e6 }, ...t4 && n2 && { language: n2 } });
4096
4097
  return r2?.[0];
4097
4098
  };
4098
4099
  return await t3(true) ?? (n2 ? await t3(false) : void 0);
4099
4100
  } catch (e7) {
4100
- Vc(e7, t2);
4101
+ Hc(e7, t2);
4101
4102
  return;
4102
4103
  }
4103
4104
  };
4104
- var Kc = 100;
4105
- var qc = async () => {
4105
+ var qc = 100;
4106
+ var Jc = async () => {
4106
4107
  try {
4107
- let { categories: e6 } = await Ms({ paging: { limit: Kc } });
4108
+ let { categories: e6 } = await Ms({ paging: { limit: qc } });
4108
4109
  return e6 ?? [];
4109
4110
  } catch {
4110
4111
  return [];
4111
4112
  }
4112
4113
  };
4113
- var Jc = (e6, t2) => {
4114
+ var Yc = (e6, t2) => {
4114
4115
  let { categoryIds: n2 } = e6 ?? {};
4115
4116
  if (!n2?.length) return [];
4116
4117
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4117
4118
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4118
4119
  };
4119
- var Yc = (e6, t2) => {
4120
+ var Xc = (e6, t2) => {
4120
4121
  let n2 = {};
4121
- for (let r2 of e6) for (let { _id: e7, label: i2 } of Jc(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4122
+ for (let r2 of e6) for (let { _id: e7, label: i2 } of Yc(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4122
4123
  return n2;
4123
4124
  };
4124
- var Xc = async (e6, t2) => {
4125
- let n2 = e6 ? await Wc(e6, void 0, false, t2) : void 0, { _id: r2, categoryIds: i2, relatedPostIds: a2 } = n2 ?? await Gc(void 0, false, t2) ?? {};
4125
+ var Zc = async (e6, t2) => {
4126
+ let n2 = e6 ? await Gc(e6, void 0, false, t2) : void 0, { _id: r2, categoryIds: i2, relatedPostIds: a2 } = n2 ?? await Kc(void 0, false, t2) ?? {};
4126
4127
  return { currentPostId: r2 ?? void 0, categoryIds: i2, relatedPostIds: n2 ? a2 : void 0 };
4127
4128
  };
4128
- var Zc = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4129
- let { items: r2 } = await cc({ fieldsets: zc }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4129
+ var Qc = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4130
+ let { items: r2 } = await lc({ fieldsets: Bc }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4130
4131
  let { _id: t3 } = e7;
4131
4132
  return [t3, e7];
4132
4133
  }));
4133
4134
  return e6.filter((e7) => e7 !== t2).map((e7) => i2.get(e7)).filter((e7) => e7 !== void 0).slice(0, n2);
4134
4135
  };
4135
- var Qc = async ({ currentPostId: e6, categoryIds: t2, language: n2, limit: r2 }) => {
4136
- let i2 = cc({ fieldsets: zc }).ne(`_id`, e6).descending(`firstPublishedDate`).limit(r2);
4136
+ var $c = async ({ currentPostId: e6, categoryIds: t2, language: n2, limit: r2 }) => {
4137
+ let i2 = lc({ fieldsets: Bc }).ne(`_id`, e6).descending(`firstPublishedDate`).limit(r2);
4137
4138
  t2?.length && (i2 = i2.hasSome(`categoryIds`, t2)), n2 && (i2 = i2.eq(`language`, n2));
4138
4139
  let { items: a2 } = await i2.find();
4139
4140
  return a2;
4140
4141
  };
4141
- var $c = async ({ slug: e6, language: t2, limit: n2 = 3, propagateErrors: r2 = false, source: i2, sourcePromise: a2 }) => {
4142
- let o2 = qc();
4142
+ var el = async ({ slug: e6, language: t2, limit: n2 = 3, propagateErrors: r2 = false, source: i2, sourcePromise: a2 }) => {
4143
+ let o2 = Jc();
4143
4144
  try {
4144
- let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await Xc(e6, t2));
4145
+ let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await Zc(e6, t2));
4145
4146
  if (!r3) return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
4146
- let l2 = c2?.length ? await Zc({ ids: c2, currentPostId: r3, limit: n2 }) : [], u2 = l2.length > 0 ? l2 : await Qc({ currentPostId: r3, categoryIds: s2, language: t2, limit: n2 }), [d2, f2, p2] = await Promise.all([Hc(u2), o2, Uc(u2)]);
4147
- return { posts: u2, authorsByMemberId: d2, categoryLabelsById: Yc(u2, f2), videoSourcesByPostId: p2 };
4147
+ let l2 = c2?.length ? await Qc({ ids: c2, currentPostId: r3, limit: n2 }) : [], u2 = l2.length > 0 ? l2 : await $c({ currentPostId: r3, categoryIds: s2, language: t2, limit: n2 }), [d2, f2, p2] = await Promise.all([Uc(u2), o2, Wc(u2)]);
4148
+ return { posts: u2, authorsByMemberId: d2, categoryLabelsById: Xc(u2, f2), videoSourcesByPostId: p2 };
4148
4149
  } catch (e7) {
4149
4150
  if (r2) throw e7;
4150
4151
  return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
4151
4152
  }
4152
4153
  };
4153
- var el = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
4154
- var tl = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await fc({ paging: { limit: t2, offset: n2 }, fieldsets: zc, ...r2 && { language: r2 }, ...i2 && { sort: el[i2] } }) };
4155
- var nl = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4156
- var rl = () => (0, import_react.useContext)(nl);
4157
- var il = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4158
- var al = () => {
4154
+ var tl = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
4155
+ var nl = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await pc({ paging: { limit: t2, offset: n2 }, fieldsets: Bc, ...r2 && { language: r2 }, ...i2 && { sort: tl[i2] } }) };
4156
+ var rl = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4157
+ var il = () => (0, import_react.useContext)(rl);
4158
+ var al = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4159
+ var ol = () => {
4159
4160
  try {
4160
- let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Wn);
4161
+ let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Kn);
4161
4162
  return e6 || t2;
4162
4163
  } catch {
4163
4164
  return false;
4164
4165
  }
4165
4166
  };
4166
- var ol = () => {
4167
- let e6 = al();
4168
- return il(rl()) && !e6;
4167
+ var sl = () => {
4168
+ let e6 = ol();
4169
+ return al(il()) && !e6;
4169
4170
  };
4170
- var sl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4171
- var cl = (e6) => {
4171
+ g((e6, t2) => {
4172
+ (function() {
4173
+ var e7 = {}.hasOwnProperty;
4174
+ function n2() {
4175
+ for (var e8 = ``, t3 = 0; t3 < arguments.length; t3++) {
4176
+ var n3 = arguments[t3];
4177
+ n3 && (e8 = i2(e8, r2(n3)));
4178
+ }
4179
+ return e8;
4180
+ }
4181
+ function r2(t3) {
4182
+ if (typeof t3 == `string` || typeof t3 == `number`) return t3;
4183
+ if (typeof t3 != `object`) return ``;
4184
+ if (Array.isArray(t3)) return n2.apply(null, t3);
4185
+ if (t3.toString !== Object.prototype.toString && !t3.toString.toString().includes(`[native code]`)) return t3.toString();
4186
+ var r3 = ``;
4187
+ for (var a2 in t3) e7.call(t3, a2) && t3[a2] && (r3 = i2(r3, a2));
4188
+ return r3;
4189
+ }
4190
+ function i2(e8, t3) {
4191
+ return t3 ? e8 ? e8 + ` ` + t3 : e8 + t3 : e8;
4192
+ }
4193
+ t2 !== void 0 && t2.exports ? (n2.default = n2, t2.exports = n2) : typeof define == `function` && typeof define.amd == `object` && define.amd ? define(`classnames`, [], function() {
4194
+ return n2;
4195
+ }) : window.classNames = n2;
4196
+ })();
4197
+ })();
4198
+ var cl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4199
+ var ll = (e6) => {
4172
4200
  try {
4173
4201
  return e6.getMonitoringClient?.() ?? null;
4174
4202
  } catch {
4175
4203
  return null;
4176
4204
  }
4177
4205
  };
4178
- var ll = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4179
- function ul(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4180
- let o2 = ll(e6, `captureException`);
4181
- if (!o2) return;
4182
- let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4183
- o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4206
+ var ul = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4207
+ function dl(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
4208
+ let s2 = ul(e6, `captureException`);
4209
+ if (!s2) return;
4210
+ let c2 = t2 instanceof Error ? t2 : Error(String(t2));
4211
+ s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
4184
4212
  }
4185
- function dl(e6, t2, { feature: n2, tags: r2 }, i2) {
4186
- let a2 = ll(e6, `startSpanManual`);
4213
+ function fl(e6, t2, { feature: n2, tags: r2 }, i2) {
4214
+ let a2 = ul(e6, `startSpanManual`);
4187
4215
  if (!a2) return i2;
4188
4216
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4189
4217
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4190
4218
  }
4191
- var fl = class extends import_react.Component {
4219
+ var pl = class extends import_react.Component {
4192
4220
  state = { error: void 0 };
4193
4221
  static getDerivedStateFromError(e6) {
4194
4222
  return { error: e6 ?? Error(`Unknown render error`) };
4195
4223
  }
4196
4224
  componentDidCatch(e6, t2) {
4197
- ul(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4225
+ dl(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, tags: this.props.component ? { component: this.props.component } : void 0, contexts: { react: { componentStack: t2.componentStack } } });
4198
4226
  }
4199
4227
  render() {
4200
4228
  if (this.state.error === void 0) return this.props.children;
@@ -4202,201 +4230,201 @@ var fl = class extends import_react.Component {
4202
4230
  return this.props.fallback;
4203
4231
  }
4204
4232
  };
4205
- var pl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4206
- var ml = (0, import_react.createContext)(void 0);
4207
- function hl() {
4208
- return (0, import_react.useContext)(ml);
4233
+ var ml = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4234
+ var hl = (0, import_react.createContext)(void 0);
4235
+ function gl() {
4236
+ return (0, import_react.useContext)(hl);
4209
4237
  }
4210
- var gl = (0, import_react.createContext)(void 0);
4211
- function _l() {
4212
- return (0, import_react.useContext)(gl);
4238
+ var _l = (0, import_react.createContext)(void 0);
4239
+ function vl() {
4240
+ return (0, import_react.useContext)(_l);
4213
4241
  }
4214
- var vl = 6e4;
4215
- var yl = vl * 60;
4216
- var bl = yl * 24;
4217
- var xl = bl * 7;
4218
- var Sl = (e6) => e6 < vl ? [`second`, e6 / 1e3] : e6 < yl ? [`minute`, e6 / vl] : e6 < bl ? [`hour`, e6 / yl] : [`day`, e6 / bl];
4219
- var Cl = (e6, t2, n2 = Date.now()) => {
4242
+ var yl = 6e4;
4243
+ var bl = yl * 60;
4244
+ var xl = bl * 24;
4245
+ var Sl = xl * 7;
4246
+ var Cl = (e6) => e6 < yl ? [`second`, e6 / 1e3] : e6 < bl ? [`minute`, e6 / yl] : e6 < xl ? [`hour`, e6 / bl] : [`day`, e6 / xl];
4247
+ var wl = (e6, t2, n2 = Date.now()) => {
4220
4248
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4221
- if (i2 >= 0 && i2 < xl) {
4222
- let [e7, n3] = Sl(i2);
4249
+ if (i2 >= 0 && i2 < Sl) {
4250
+ let [e7, n3] = Cl(i2);
4223
4251
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4224
4252
  }
4225
4253
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4226
4254
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4227
4255
  };
4228
- var wl = `https://static.wixstatic.com/media/`;
4229
- var Tl = 100;
4230
- var El = (e6, t2 = ``) => {
4256
+ var Tl = `https://static.wixstatic.com/media/`;
4257
+ var El = 100;
4258
+ var Dl = (e6, t2 = ``) => {
4231
4259
  let n2 = e6?.profile?.photo;
4232
4260
  if (!n2?.url) return;
4233
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(wl) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4234
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Tl, height: n2.height || Tl, alt: r2 ?? t2 };
4235
- };
4236
- var Dl = `https://static.wixstatic.com/media/`;
4237
- var Ol = `wix:image://`;
4238
- var kl = 1200;
4239
- var Al = 800;
4240
- var jl = (e6) => {
4261
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(Tl) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4262
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || El, height: n2.height || El, alt: r2 ?? t2 };
4263
+ };
4264
+ var Ol = `https://static.wixstatic.com/media/`;
4265
+ var kl = `wix:image://`;
4266
+ var Al = 1200;
4267
+ var jl = 800;
4268
+ var Ml = (e6) => {
4241
4269
  if (!e6) return;
4242
4270
  let t2 = Number.parseInt(e6, 10);
4243
4271
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4244
4272
  };
4245
- var Ml = (e6) => {
4246
- if (!e6.startsWith(Ol)) {
4273
+ var Nl = (e6) => {
4274
+ if (!e6.startsWith(kl)) {
4247
4275
  let t3 = e6.split(/[?#]/)[0];
4248
4276
  return t3 ? { uri: t3 } : void 0;
4249
4277
  }
4250
4278
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4251
4279
  if (!r2) return;
4252
4280
  let a2 = new URLSearchParams(n2 ?? ``);
4253
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: jl(a2.get(`originWidth`)), height: jl(a2.get(`originHeight`)) };
4281
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Ml(a2.get(`originWidth`)), height: Ml(a2.get(`originHeight`)) };
4254
4282
  };
4255
- var Nl = (e6, t2) => {
4283
+ var Pl = (e6, t2) => {
4256
4284
  if (!e6) return;
4257
- let n2 = Ml(e6);
4285
+ let n2 = Nl(e6);
4258
4286
  if (!n2) return;
4259
4287
  let r2 = n2.name ?? n2.uri;
4260
- return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: t2 ?? r2 };
4288
+ return { uri: n2.uri, url: `${Ol}${n2.uri}`, name: r2, width: n2.width ?? Al, height: n2.height ?? jl, alt: t2 ?? r2 };
4261
4289
  };
4262
- var Pl = (e6) => {
4290
+ var Fl = (e6) => {
4263
4291
  let t2 = e6?.media?.wixMedia?.image;
4264
4292
  if (!t2) return;
4265
- let n2 = Ml(t2);
4293
+ let n2 = Nl(t2);
4266
4294
  if (!n2) return;
4267
4295
  let r2 = n2.name ?? n2.uri;
4268
- return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4296
+ return { uri: n2.uri, url: `${Ol}${n2.uri}`, name: r2, width: n2.width ?? Al, height: n2.height ?? jl, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4269
4297
  };
4270
- var Fl = `https://static.wixstatic.com/media/`;
4271
- var Il = `wix:video://`;
4272
- var Ll = (e6) => {
4298
+ var Il = `https://static.wixstatic.com/media/`;
4299
+ var Ll = `wix:video://`;
4300
+ var Rl = (e6) => {
4273
4301
  if (!e6) return;
4274
4302
  let t2 = Number.parseInt(e6, 10);
4275
4303
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4276
4304
  };
4277
- var Rl = (e6) => {
4278
- if (!e6.startsWith(Il)) return;
4305
+ var zl = (e6) => {
4306
+ if (!e6.startsWith(Ll)) return;
4279
4307
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4280
4308
  if (!r2) return;
4281
4309
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4282
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Fl}${a2}` : void 0, posterWidth: Ll(i2.get(`posterWidth`)), posterHeight: Ll(i2.get(`posterHeight`)) };
4310
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Il}${a2}` : void 0, posterWidth: Rl(i2.get(`posterWidth`)), posterHeight: Rl(i2.get(`posterHeight`)) };
4283
4311
  };
4284
- var zl = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4285
- var Bl = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4286
- var Vl = (e6, t2) => {
4312
+ var Bl = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4313
+ var Vl = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4314
+ var Hl = (e6, t2) => {
4287
4315
  for (let n2 of e6) {
4288
4316
  let e7 = n2.exec(t2);
4289
4317
  if (e7) return e7[1];
4290
4318
  }
4291
4319
  };
4292
- var Hl = (e6) => {
4293
- let t2 = Vl(zl, e6);
4320
+ var Ul = (e6) => {
4321
+ let t2 = Hl(Bl, e6);
4294
4322
  if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4295
- let n2 = Vl(Bl, e6);
4323
+ let n2 = Hl(Vl, e6);
4296
4324
  return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4297
4325
  };
4298
- var Ul = (e6, t2 = []) => {
4326
+ var Wl = (e6, t2 = []) => {
4299
4327
  let n2 = e6?.media;
4300
4328
  if (!n2 || n2.displayed === false) return;
4301
- let r2 = Pl(e6);
4329
+ let r2 = Fl(e6);
4302
4330
  if (r2) return { kind: `image`, image: r2 };
4303
- let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Rl(n2.wixMedia.videoV2) : void 0;
4331
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? zl(n2.wixMedia.videoV2) : void 0;
4304
4332
  if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4305
4333
  let o2 = n2.embedMedia?.video?.url;
4306
4334
  if (o2) {
4307
4335
  let { thumbnail: e7 } = n2.embedMedia ?? {};
4308
- return { kind: `embed`, videoUrl: o2, ...Hl(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4336
+ return { kind: `embed`, videoUrl: o2, ...Ul(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4309
4337
  }
4310
4338
  };
4311
- var Wl = (e6) => {
4312
- let t2 = Pl(e6), n2 = e6?.media?.wixMedia?.videoV2;
4339
+ var Gl = (e6) => {
4340
+ let t2 = Fl(e6), n2 = e6?.media?.wixMedia?.videoV2;
4313
4341
  if (t2 || !n2) return t2;
4314
- let r2 = Rl(n2), i2 = Nl(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4342
+ let r2 = zl(n2), i2 = Pl(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4315
4343
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4316
4344
  };
4317
- var Gl = `2026-05-12T12:00:00.000Z`;
4318
- var Kl = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4319
- var ql = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4320
- var Jl = (e6) => {
4345
+ var Kl = `2026-05-12T12:00:00.000Z`;
4346
+ var ql = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4347
+ var Jl = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4348
+ var Yl = (e6) => {
4321
4349
  if (!e6) return;
4322
4350
  let t2 = e6 instanceof Date ? e6 : new Date(e6);
4323
4351
  return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4324
4352
  };
4325
- var Yl = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4326
- var Xl = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4327
- var Q = (e6) => ({ text: e6, html: `<p>${Xl(e6)}</p>`, linkList: [] });
4353
+ var Xl = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4354
+ var Zl = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4355
+ var Q = (e6) => ({ text: e6, html: `<p>${Zl(e6)}</p>`, linkList: [] });
4328
4356
  var $ = { minutesToRead: 5, views: 120, comments: 4 };
4329
- var Zl = (e6) => {
4357
+ var Ql = (e6) => {
4330
4358
  let { metrics: t2 } = e6;
4331
4359
  return { views: typeof t2?.views == `number` ? t2.views : void 0, comments: typeof t2?.comments == `number` ? t2.comments : void 0 };
4332
4360
  };
4333
- var Ql = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4334
- var $l = (e6, t2, n2, r2) => {
4361
+ var $l = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4362
+ var eu = (e6, t2, n2, r2) => {
4335
4363
  let i2 = e6.categoryIds?.map((e7) => t2[e7]).find(Boolean);
4336
4364
  return Q(i2 ?? (n2 ? r2.canvas.category() : ``));
4337
4365
  };
4338
- var eu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4339
- let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Zl(e6);
4340
- return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Wl(e6), itemCoverMedia: Ul(e6, s2[l2 ?? ``] ?? []), itemLink: ar(e6, r2), itemPublishedDate: Q(Cl(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Jl(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Yl(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: El(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Ql(f2.views, $.views, o2, t2.viewCount), commentCount: Ql(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: $l(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4341
- };
4342
- var tu = 3;
4343
- var nu = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4344
- var ru = (e6, t2) => {
4345
- let { uri: n2, width: r2, height: i2 } = nu[e6 % nu.length];
4346
- return { uri: n2, url: ql(n2), name: n2, width: r2, height: i2, alt: t2 };
4366
+ var tu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4367
+ let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Ql(e6);
4368
+ return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Gl(e6), itemCoverMedia: Wl(e6, s2[l2 ?? ``] ?? []), itemLink: sr(e6, r2), itemPublishedDate: Q(wl(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Yl(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Xl(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: Dl(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: $l(f2.views, $.views, o2, t2.viewCount), commentCount: $l(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: eu(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4347
4369
  };
4370
+ var nu = 3;
4371
+ var ru = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4348
4372
  var iu = (e6, t2) => {
4349
- let { uri: n2 } = nu[(e6 + 1) % nu.length];
4350
- return { uri: n2, url: ql(n2), name: n2, width: 100, height: 100, alt: t2 };
4373
+ let { uri: n2, width: r2, height: i2 } = ru[e6 % ru.length];
4374
+ return { uri: n2, url: Jl(n2), name: n2, width: r2, height: i2, alt: t2 };
4375
+ };
4376
+ var au = (e6, t2) => {
4377
+ let { uri: n2 } = ru[(e6 + 1) % ru.length];
4378
+ return { uri: n2, url: Jl(n2), name: n2, width: 100, height: 100, alt: t2 };
4351
4379
  };
4352
- var au = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: tu }, (i2, a2) => {
4353
- let o2 = e6.canvas.postTitle(), s2 = ru(a2, e6.canvas.coverAlt());
4354
- return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Kl(n2), itemPublishedDate: Q(Cl(new Date(r2), t2, r2)), publishedDateValue: Gl, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: iu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4380
+ var ou = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: nu }, (i2, a2) => {
4381
+ let o2 = e6.canvas.postTitle(), s2 = iu(a2, e6.canvas.coverAlt());
4382
+ return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: ql(n2), itemPublishedDate: Q(wl(new Date(r2), t2, r2)), publishedDateValue: Kl, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: au(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4355
4383
  });
4356
- var ou = (0, import_react.createContext)(void 0);
4357
- function su() {
4358
- let e6 = (0, import_react.useContext)(ou);
4384
+ var su = (0, import_react.createContext)(void 0);
4385
+ function cu() {
4386
+ let e6 = (0, import_react.useContext)(su);
4359
4387
  if (!e6) throw Error(`useRelatedPostsContext must be used within a RelatedPostsProvider`);
4360
4388
  return e6;
4361
4389
  }
4362
- var cu = 3;
4363
- var lu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 12) : cu;
4364
- var uu = 2e3;
4365
- var du = /* @__PURE__ */ new WeakMap();
4366
- var fu = (e6, t2, n2) => {
4390
+ var lu = 3;
4391
+ var uu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 12) : lu;
4392
+ var du = 2e3;
4393
+ var fu = /* @__PURE__ */ new WeakMap();
4394
+ var pu = (e6, t2, n2) => {
4367
4395
  if (!e6) return n2();
4368
- let r2 = du.get(e6);
4369
- r2 || (r2 = /* @__PURE__ */ new Map(), du.set(e6, r2));
4396
+ let r2 = fu.get(e6);
4397
+ r2 || (r2 = /* @__PURE__ */ new Map(), fu.set(e6, r2));
4370
4398
  let i2 = r2.get(t2);
4371
4399
  if (i2) return i2;
4372
4400
  let a2 = n2();
4373
4401
  return r2.set(t2, a2), a2;
4374
4402
  };
4375
- var pu = { relatedPosts: [], emptyState: null, isLoadingRelatedPosts: true, hasError: false, hasRelatedPosts: false };
4376
- var mu = { ...pu, isLoadingRelatedPosts: false, hasError: true };
4377
- var hu = (e6) => ({ strip: e6, hasError: false });
4378
- var gu = () => ({ strip: { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {}, fetchedAt: Date.now() }, hasError: true });
4379
- var _u = (e6) => {
4403
+ var mu = { relatedPosts: [], emptyState: null, isLoadingRelatedPosts: true, hasError: false, hasRelatedPosts: false };
4404
+ var hu = { ...mu, isLoadingRelatedPosts: false, hasError: true };
4405
+ var gu = (e6) => ({ strip: e6, hasError: false });
4406
+ var _u = () => ({ strip: { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {}, fetchedAt: Date.now() }, hasError: true });
4407
+ var vu = (e6) => {
4380
4408
  throw e6;
4381
4409
  };
4382
- var vu = ({ children: e6, stripLoadPromise: t2, slug: n2, language: r2 }) => {
4383
- let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2, demoPosts: u2 }, hasError: d2 } = zn(t2), f2 = Un(l2), m2 = ol(), h2 = or(n2), { t: g2 } = So(), _2 = hr(), v2 = (0, import_react.useMemo)(() => ts(g2, _2), [g2, _2]), y2 = (0, import_react.useMemo)(() => {
4384
- let e7 = (i2.length === 0 && m2 ? u2 ?? [] : i2).map((e8) => eu(e8, v2, _2, h2, a2, o2, m2, s2, f2)), t3 = e7.length === 0 && m2 ? au(v2, _2, h2, f2) : e7;
4410
+ var yu = ({ children: e6, stripLoadPromise: t2, slug: n2, language: r2 }) => {
4411
+ let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2, demoPosts: u2 }, hasError: d2 } = Vn(t2), f2 = Gn(l2), m2 = sl(), h2 = cr(n2), { t: g2 } = So(), _2 = _r(), v2 = (0, import_react.useMemo)(() => ts(g2, _2), [g2, _2]), y2 = (0, import_react.useMemo)(() => {
4412
+ let e7 = (i2.length === 0 && m2 ? u2 ?? [] : i2).map((e8) => tu(e8, v2, _2, h2, a2, o2, m2, s2, f2)), t3 = e7.length === 0 && m2 ? ou(v2, _2, h2, f2) : e7;
4385
4413
  return { relatedPosts: t3, emptyState: i2.length === 0 && !d2 ? v2.noRelatedPostsEmptyState() : null, isLoadingRelatedPosts: false, hasError: d2, hasRelatedPosts: t3.length > 0 };
4386
4414
  }, [i2, u2, a2, o2, s2, v2, _2, r2, h2, m2, f2, d2]);
4387
- return dr(lr.relatedPostsProvider, d2 ? `error` : i2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(ou.Provider, { value: y2, children: e6 });
4415
+ return pr(dr.relatedPostsProvider, d2 ? `error` : i2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(su.Provider, { value: y2, children: e6 });
4388
4416
  };
4389
- function yu({ children: e6, postsCount: n2 }) {
4390
- let r2 = cr(), i2 = mr(), a2 = Gn(), o2 = lu(n2), s2 = ol(), l2 = hl(), u2 = _l(), d2 = _r(), f2 = (0, import_react.useMemo)(() => cl(Ln), []), { i18n: h2, locale: g2 } = Go($o), _2 = qn(() => {
4417
+ function bu({ children: e6, postsCount: n2 }) {
4418
+ let r2 = ur(), i2 = gr(), a2 = qn(), o2 = uu(n2), s2 = sl(), l2 = gl(), u2 = vl(), d2 = yr(), f2 = (0, import_react.useMemo)(() => ll(zn), []), { i18n: h2, locale: g2 } = Go($o), _2 = Yn(() => {
4391
4419
  let e7 = `blog-builder:related:${JSON.stringify({ slug: r2 ?? ``, language: i2 ?? ``, limit: o2, ...u2 && { postId: u2 } })}`;
4392
- return { slug: r2, language: i2, stripLoadPromise: Vn(fu(l2, e7, () => Mo({ key: e7, warmupData: d2, fetchData: () => {
4393
- let e8 = $c({ slug: r2, language: i2, limit: o2, propagateErrors: true, sourcePromise: l2 }).then((e9) => s2 ? tl(e9, { limit: o2, language: i2 }) : e9);
4394
- return pl(dl(f2, `related-posts-read`, { feature: sl.relatedPosts, tags: { limit: o2 } }, a2 ? Rc(e8, uu, `related-posts`) : e8));
4395
- } })), hu, a2 ? _u : gu) };
4420
+ return { slug: r2, language: i2, stripLoadPromise: Un(pu(l2, e7, () => Mo({ key: e7, warmupData: d2, fetchData: () => {
4421
+ let e8 = el({ slug: r2, language: i2, limit: o2, propagateErrors: true, sourcePromise: l2 }).then((e9) => s2 ? nl(e9, { limit: o2, language: i2 }) : e9);
4422
+ return ml(fl(f2, `related-posts-read`, { feature: cl.relatedPosts, tags: { limit: o2 } }, a2 ? zc(e8, du, `related-posts`) : e8));
4423
+ } })), gu, a2 ? vu : _u) };
4396
4424
  }, [r2, i2, a2, s2, l2, d2, o2, f2, u2]);
4397
- return (0, import_jsx_runtime.jsx)(Co, { i18n: h2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(ou.Provider, { value: pu, children: e6 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: h2, locale: g2 }), (0, import_jsx_runtime.jsx)(fl, { fallback: (0, import_jsx_runtime.jsx)(ou.Provider, { value: mu, children: e6 }), feature: sl.relatedPosts, monitoringClient: f2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(vu, { stripLoadPromise: _2.stripLoadPromise, slug: _2.slug, language: _2.language, children: e6 }, `${_2.language ?? ``}|${_2.slug ?? ``}`) })] }) });
4425
+ return (0, import_jsx_runtime.jsx)(Co, { i18n: h2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(su.Provider, { value: mu, children: e6 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: h2, locale: g2 }), (0, import_jsx_runtime.jsx)(pl, { fallback: (0, import_jsx_runtime.jsx)(su.Provider, { value: hu, children: e6 }), feature: cl.relatedPosts, monitoringClient: f2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(yu, { stripLoadPromise: _2.stripLoadPromise, slug: _2.slug, language: _2.language, children: e6 }, `${_2.language ?? ``}|${_2.slug ?? ``}`) })] }) });
4398
4426
  }
4399
- var bu = An(`7d10ae29-fb0a-4361-8bc0-c3b8a3b96e34`);
4427
+ var xu = Mn(`7d10ae29-fb0a-4361-8bc0-c3b8a3b96e34`);
4400
4428
  // Annotate the CommonJS export names for ESM import in node:
4401
4429
  0 && (module.exports = {
4402
4430
  RelatedPostsProvider,