adminizer 5.0.0-build.4 → 5.0.0-build.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{add-CoMADTQn.js → add-Brb-cV33.js} +1 -1
- package/assets/{add-group-CpYh05Gr.js → add-group-DY9pHQwo.js} +1 -1
- package/assets/{add-user-Z9WpJ_d_.js → add-user-DIuPWMB5.js} +1 -1
- package/assets/{app-layout-DVX2PU-T.js → app-layout-DPewS6HJ.js} +1 -1
- package/assets/app.js +33 -33
- package/assets/{catalog-KxmfEHFZ.js → catalog-BuJwUNfR.js} +1 -1
- package/assets/controls/ckeditor.es.js +267 -264
- package/assets/controls/jsoneditor.es.js +12955 -12879
- package/assets/controls/leaflet.es.js +1023 -1004
- package/assets/controls/toast-ui.es.js +1825 -1817
- package/assets/{dashboard-Fo2hkzUo.js → dashboard-1Qh1ZTlj.js} +1 -1
- package/assets/{history-BdY803dB.js → history-BG_35eEy.js} +1 -1
- package/assets/{list-CvvdHVTu.js → list-ChGmUbv1.js} +1 -1
- package/assets/manifest.json +24 -24
- package/assets/{module-CVMNuMJk.js → module-Ct-bvNzt.js} +1 -1
- package/assets/{notification-Bj9-bA_4.js → notification-DvCi_Ivk.js} +1 -1
- package/assets/{user-filters-list-Bxa5sRQ1.js → user-filters-list-CLQDcsCD.js} +1 -1
- package/assets/{welcome-Cv9aMbZo.js → welcome-CL4Z7ey_.js} +1 -1
- package/controllers/catalog/FrontendCatalogAdapter.d.ts +1 -1
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +1 -1
- package/controllers/feedback/feedbackController.d.ts +1 -1
- package/controllers/history-actions/HistoryController.d.ts +1 -1
- package/controllers/media-manager/mediaManagerAdapter.d.ts +1 -1
- package/helpers/accessRightsHelper.d.ts +3 -3
- package/helpers/configHelper.d.ts +3 -3
- package/helpers/controllerHelper.d.ts +2 -2
- package/helpers/fieldsHelper.d.ts +2 -2
- package/helpers/filterDatetimeHelper.d.ts +1 -1
- package/helpers/inertiaActionsHelper.d.ts +2 -2
- package/helpers/inertiaAddHelper.d.ts +4 -4
- package/helpers/inertiaGroupHelper.d.ts +3 -3
- package/helpers/inertiaListHelper.d.ts +3 -3
- package/helpers/inertiaMenuHelper.d.ts +2 -2
- package/helpers/inertiaUserHelper.d.ts +3 -3
- package/helpers/menuHelper.d.ts +2 -2
- package/helpers/translationHelper.d.ts +2 -2
- package/index.d.ts +58 -58
- package/interfaces/adminpanelConfig.d.ts +4 -4
- package/interfaces/global.d.ts +6 -6
- package/interfaces/internalModelAccess.d.ts +1 -1
- package/interfaces/listQueryBuilder.d.ts +1 -1
- package/interfaces/types.d.ts +2 -2
- package/lib/Adminizer.d.ts +38 -26
- package/lib/Adminizer.js +19 -1
- package/lib/DataAccessor.d.ts +6 -6
- package/lib/MiddlewareManager.d.ts +1 -1
- package/lib/access-rights/AccessRightsHandler.d.ts +2 -2
- package/lib/ai-assistant/AbstractAiModelService.d.ts +2 -2
- package/lib/ai-assistant/AiAssistantHandler.d.ts +15 -5
- package/lib/ai-assistant/AiAssistantHandler.js +31 -1
- package/lib/app-manager/AdminizerApp.d.ts +10 -10
- package/lib/app-manager/AppManager.d.ts +2 -2
- package/lib/app-manager/AppManager.js +11 -8
- package/lib/app-manager/AssetHandler.d.ts +2 -2
- package/lib/app-manager/ConfigLayerHandler.d.ts +2 -2
- package/lib/app-manager/ControllerHandler.d.ts +2 -2
- package/lib/catalog/AbstractCatalog.d.ts +1 -1
- package/lib/catalog/CatalogHandler.d.ts +1 -1
- package/lib/controls/ControlsHandler.d.ts +1 -1
- package/lib/controls/codeEditor/MonacoEditor.d.ts +1 -1
- package/lib/controls/geojsoneditor/GeoEditor.d.ts +1 -1
- package/lib/controls/jsoneditor/JsonEditor.d.ts +1 -1
- package/lib/controls/markdown/ToastUiEditor.d.ts +1 -1
- package/lib/controls/table/Handsontable.d.ts +1 -1
- package/lib/controls/wysiwyg/CKeditor.d.ts +1 -1
- package/lib/feedback/FeedbackHandler.d.ts +2 -2
- package/lib/filters/ConditionValidator.d.ts +1 -1
- package/lib/filters/FilterCustomFieldHandler.d.ts +2 -2
- package/lib/filters/FilterService.d.ts +4 -4
- package/lib/filters/index.d.ts +6 -6
- package/lib/history-actions/AbstractHistoryAdapter.d.ts +6 -6
- package/lib/history-actions/DefaultHistoryAdapter.d.ts +4 -4
- package/lib/history-actions/HistoryHandler.d.ts +1 -1
- package/lib/list-query-builder/ListQueryBuilder.d.ts +7 -7
- package/lib/media-manager/AbstractMediaManager.d.ts +2 -2
- package/lib/media-manager/MediaManagerHandler.d.ts +1 -1
- package/lib/media-manager/Thumb.d.ts +1 -1
- package/lib/media-manager/helpers/MediaManagerHelper.d.ts +5 -5
- package/lib/model/AbstractModel.d.ts +3 -3
- package/lib/model/InternalModelAccessFactory.d.ts +2 -2
- package/lib/model/ModelHandler.d.ts +3 -3
- package/lib/model/adapter/sequelize.d.ts +2 -2
- package/lib/model/adapter/typeorm.d.ts +2 -2
- package/lib/model/internalModelRepository.d.ts +2 -2
- package/lib/notifications/AbstractNotificationService.d.ts +4 -4
- package/lib/notifications/GeneralNotificationService.d.ts +2 -2
- package/lib/notifications/NotificationHandler.d.ts +2 -2
- package/lib/notifications/SystemNotificationService.d.ts +2 -2
- package/lib/requestProcessor.d.ts +1 -1
- package/lib/widgets/abstractAction.d.ts +1 -1
- package/lib/widgets/abstractCustom.d.ts +2 -2
- package/lib/widgets/abstractInfo.d.ts +1 -1
- package/lib/widgets/abstractLink.d.ts +2 -2
- package/lib/widgets/abstractSwitch.d.ts +1 -1
- package/lib/widgets/abstractWidgetBase.d.ts +1 -1
- package/lib/widgets/widgetHandler.d.ts +9 -9
- package/models/Filter.d.ts +1 -1
- package/models/FilterColumn.d.ts +1 -1
- package/models/Group.d.ts +1 -1
- package/models/HistoryActions.d.ts +1 -1
- package/models/MediaManagerAP.d.ts +2 -2
- package/models/MediaManagerAssociationsAP.d.ts +1 -1
- package/models/MediaManagerMetaAP.d.ts +1 -1
- package/models/User.d.ts +2 -2
- package/models/UserNotification.d.ts +1 -1
- package/package.json +1 -1
- package/services/FeedService.d.ts +3 -3
- package/system/Router.d.ts +1 -1
- package/system/bindAccessRights.d.ts +1 -1
- package/system/bindAuthorization.d.ts +1 -1
- package/system/bindControls.d.ts +1 -1
- package/system/bindCors.d.ts +1 -1
- package/system/bindCustomFilterHandlers.d.ts +1 -1
- package/system/bindDashboardWidgets.d.ts +1 -1
- package/system/bindDev.d.ts +1 -1
- package/system/bindHistory.d.ts +1 -1
- package/system/bindInertia.d.ts +1 -1
- package/system/bindMediaManager.d.ts +1 -1
- package/system/bindNotifications.d.ts +1 -1
- package/system/bindReqFunctions.d.ts +1 -1
- package/system/bindTranslations.d.ts +1 -1
- package/system/buildInternalModelAccess.d.ts +3 -3
- package/system/defaults.d.ts +1 -1
- package/system/routePolicies.d.ts +1 -1
- package/system/systemModelContracts.d.ts +1 -1
- package/system/validateSystemModels.d.ts +1 -1
|
@@ -68895,13 +68895,16 @@ function ry(i) {
|
|
|
68895
68895
|
}
|
|
68896
68896
|
return r && e.push(r), e;
|
|
68897
68897
|
}
|
|
68898
|
+
const n$ = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
|
|
68898
68899
|
function V2(i) {
|
|
68899
68900
|
switch (typeof i) {
|
|
68900
68901
|
case "number":
|
|
68901
68902
|
case "symbol":
|
|
68902
68903
|
return !1;
|
|
68903
68904
|
case "string":
|
|
68904
|
-
return i
|
|
68905
|
+
return i === "" || i.startsWith(".") || i.endsWith(".") ? !1 : n$.test(i);
|
|
68906
|
+
default:
|
|
68907
|
+
return !1;
|
|
68905
68908
|
}
|
|
68906
68909
|
}
|
|
68907
68910
|
function vt(i, e, t) {
|
|
@@ -68919,14 +68922,14 @@ function vt(i, e, t) {
|
|
|
68919
68922
|
return n === void 0 ? t : n;
|
|
68920
68923
|
}
|
|
68921
68924
|
default: {
|
|
68922
|
-
if (Array.isArray(e)) return
|
|
68925
|
+
if (Array.isArray(e)) return r$(i, e, t);
|
|
68923
68926
|
if (Object.is(e?.valueOf(), -0) ? e = "-0" : e = String(e), Uc(e)) return t;
|
|
68924
68927
|
const n = i[e];
|
|
68925
68928
|
return n === void 0 ? t : n;
|
|
68926
68929
|
}
|
|
68927
68930
|
}
|
|
68928
68931
|
}
|
|
68929
|
-
function
|
|
68932
|
+
function r$(i, e, t) {
|
|
68930
68933
|
if (e.length === 0) return t;
|
|
68931
68934
|
let n = i;
|
|
68932
68935
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -68938,7 +68941,7 @@ function n$(i, e, t) {
|
|
|
68938
68941
|
function HT(i) {
|
|
68939
68942
|
return i !== null && (typeof i == "object" || typeof i == "function");
|
|
68940
68943
|
}
|
|
68941
|
-
function
|
|
68944
|
+
function s$(i, e) {
|
|
68942
68945
|
return QW(i, (t, n, r, s) => {
|
|
68943
68946
|
if (typeof i == "object") {
|
|
68944
68947
|
if (Fc(i) === "[object Object]" && typeof i.constructor != "function") {
|
|
@@ -68963,12 +68966,12 @@ function r$(i, e) {
|
|
|
68963
68966
|
});
|
|
68964
68967
|
}
|
|
68965
68968
|
function qT(i) {
|
|
68966
|
-
return
|
|
68969
|
+
return s$(i);
|
|
68967
68970
|
}
|
|
68968
68971
|
function xb(i) {
|
|
68969
68972
|
return i !== null && typeof i == "object" && Fc(i) === "[object Arguments]";
|
|
68970
68973
|
}
|
|
68971
|
-
const
|
|
68974
|
+
const o$ = /^(?:0|[1-9]\d*)$/;
|
|
68972
68975
|
function F2(i, e = Number.MAX_SAFE_INTEGER) {
|
|
68973
68976
|
switch (typeof i) {
|
|
68974
68977
|
case "number":
|
|
@@ -68976,12 +68979,12 @@ function F2(i, e = Number.MAX_SAFE_INTEGER) {
|
|
|
68976
68979
|
case "symbol":
|
|
68977
68980
|
return !1;
|
|
68978
68981
|
case "string":
|
|
68979
|
-
return
|
|
68982
|
+
return o$.test(i);
|
|
68980
68983
|
}
|
|
68981
68984
|
}
|
|
68982
68985
|
function Rb(i, e) {
|
|
68983
68986
|
let t;
|
|
68984
|
-
if (Array.isArray(e) ? t = e : typeof e == "string" && V2(e) &&
|
|
68987
|
+
if (Array.isArray(e) ? t = e : typeof e == "string" && V2(e) && !(e in Object(i)) ? t = ry(e) : t = [e], t.length === 0) return !1;
|
|
68985
68988
|
let n = i;
|
|
68986
68989
|
for (let r = 0; r < t.length; r++) {
|
|
68987
68990
|
const s = t[r];
|
|
@@ -68994,24 +68997,27 @@ function Rb(i, e) {
|
|
|
68994
68997
|
function Pb(i) {
|
|
68995
68998
|
return typeof i == "object" && i !== null;
|
|
68996
68999
|
}
|
|
68997
|
-
function
|
|
69000
|
+
function a$(i) {
|
|
68998
69001
|
return Pb(i) && i$(i);
|
|
68999
69002
|
}
|
|
69000
|
-
function
|
|
69003
|
+
function l$(i) {
|
|
69001
69004
|
return typeof i == "symbol" || i instanceof Symbol;
|
|
69002
69005
|
}
|
|
69003
|
-
const
|
|
69004
|
-
function
|
|
69005
|
-
return Array.isArray(i) ? !1 : typeof i == "number" || typeof i == "boolean" || i == null ||
|
|
69006
|
+
const c$ = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, u$ = /^\w*$/;
|
|
69007
|
+
function d$(i, e) {
|
|
69008
|
+
return Array.isArray(i) ? !1 : typeof i == "number" || typeof i == "boolean" || i == null || l$(i) ? !0 : typeof i == "string" && (u$.test(i) || !c$.test(i)) || e != null && Object.hasOwn(e, i);
|
|
69009
|
+
}
|
|
69010
|
+
function Sp(i) {
|
|
69011
|
+
return Jw(i);
|
|
69006
69012
|
}
|
|
69007
|
-
const
|
|
69013
|
+
const h$ = (i, e, t) => {
|
|
69008
69014
|
const n = i[e];
|
|
69009
69015
|
(!(Object.hasOwn(i, e) && D2(n, t)) || t === void 0 && !(e in i)) && (i[e] = t);
|
|
69010
69016
|
};
|
|
69011
|
-
function
|
|
69017
|
+
function f$(i, e, t, n) {
|
|
69012
69018
|
if (i == null && !HT(i)) return i;
|
|
69013
69019
|
let r;
|
|
69014
|
-
|
|
69020
|
+
d$(e, i) ? r = [e] : Array.isArray(e) ? r = e : r = ry(e);
|
|
69015
69021
|
const s = t(vt(i, r));
|
|
69016
69022
|
let a = i;
|
|
69017
69023
|
for (let c = 0; c < r.length && a != null; c++) {
|
|
@@ -69023,15 +69029,15 @@ function h$(i, e, t, n) {
|
|
|
69023
69029
|
const m = a[u], p = n?.(m, u, i);
|
|
69024
69030
|
h = p !== void 0 ? p : HT(m) ? m : F2(r[c + 1]) ? [] : {};
|
|
69025
69031
|
}
|
|
69026
|
-
|
|
69032
|
+
h$(a, u, h), a = a[u];
|
|
69027
69033
|
}
|
|
69028
69034
|
return i;
|
|
69029
69035
|
}
|
|
69030
69036
|
function Oi(i, e, t) {
|
|
69031
|
-
return
|
|
69037
|
+
return f$(i, e, () => t, () => {
|
|
69032
69038
|
});
|
|
69033
69039
|
}
|
|
69034
|
-
function
|
|
69040
|
+
function m$(i, e = 0, t = {}) {
|
|
69035
69041
|
typeof t != "object" && (t = {});
|
|
69036
69042
|
const { leading: n = !1, trailing: r = !0, maxWait: s } = t, a = Array(2);
|
|
69037
69043
|
n && (a[0] = "leading"), r && (a[1] = "trailing");
|
|
@@ -69043,10 +69049,7 @@ function f$(i, e = 0, t = {}) {
|
|
|
69043
69049
|
}, p = () => (h.flush(), c);
|
|
69044
69050
|
return m.cancel = h.cancel, m.flush = p, m;
|
|
69045
69051
|
}
|
|
69046
|
-
function
|
|
69047
|
-
return Jw(i);
|
|
69048
|
-
}
|
|
69049
|
-
function m$(i, ...e) {
|
|
69052
|
+
function g$(i, ...e) {
|
|
69050
69053
|
const t = e.slice(0, -1), n = e[e.length - 1];
|
|
69051
69054
|
let r = i;
|
|
69052
69055
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -69074,7 +69077,7 @@ function oh(i, e, t, n) {
|
|
|
69074
69077
|
m[y] = u[y];
|
|
69075
69078
|
}
|
|
69076
69079
|
u = m;
|
|
69077
|
-
} else if (
|
|
69080
|
+
} else if (a$(u)) {
|
|
69078
69081
|
const m = [];
|
|
69079
69082
|
for (let p = 0; p < u.length; p++) m[p] = u[p];
|
|
69080
69083
|
u = m;
|
|
@@ -69085,7 +69088,7 @@ function oh(i, e, t, n) {
|
|
|
69085
69088
|
return i;
|
|
69086
69089
|
}
|
|
69087
69090
|
function Zh(i, ...e) {
|
|
69088
|
-
return
|
|
69091
|
+
return g$(i, ...e, w2);
|
|
69089
69092
|
}
|
|
69090
69093
|
const sy = (i) => typeof File < "u" && i instanceof File || i instanceof Blob || typeof FileList < "u" && i instanceof FileList && i.length > 0, kf = (i) => i instanceof FormData ? !0 : sy(i) || typeof i == "object" && i !== null && Object.values(i).some((e) => kf(e));
|
|
69091
69094
|
let Yh = class extends Error {
|
|
@@ -69097,25 +69100,25 @@ let Yh = class extends Error {
|
|
|
69097
69100
|
constructor(e = "Request was cancelled") {
|
|
69098
69101
|
super(e), this.name = "HttpCancelledError";
|
|
69099
69102
|
}
|
|
69100
|
-
},
|
|
69103
|
+
}, p$ = class extends Error {
|
|
69101
69104
|
constructor(e = "Network error") {
|
|
69102
69105
|
super(e), this.name = "HttpNetworkError";
|
|
69103
69106
|
}
|
|
69104
69107
|
};
|
|
69105
|
-
function
|
|
69108
|
+
function b$(i) {
|
|
69106
69109
|
const e = new URLSearchParams();
|
|
69107
69110
|
return Object.entries(i).forEach(([t, n]) => {
|
|
69108
69111
|
n != null && (Array.isArray(n) ? n.forEach((r) => e.append(`${t}[]`, String(r))) : typeof n == "object" ? e.append(t, JSON.stringify(n)) : e.append(t, String(n)));
|
|
69109
69112
|
}), e.toString();
|
|
69110
69113
|
}
|
|
69111
|
-
function
|
|
69114
|
+
function w$(i, e, t) {
|
|
69112
69115
|
if (e && !i.startsWith("http://") && !i.startsWith("https://") && (i = e.replace(/\/$/, "") + "/" + i.replace(/^\//, "")), t && Object.keys(t).length > 0) {
|
|
69113
|
-
const n =
|
|
69116
|
+
const n = b$(t);
|
|
69114
69117
|
n && (i += (i.includes("?") ? "&" : "?") + n);
|
|
69115
69118
|
}
|
|
69116
69119
|
return i;
|
|
69117
69120
|
}
|
|
69118
|
-
function
|
|
69121
|
+
function y$() {
|
|
69119
69122
|
return typeof window > "u" ? null : window.axios?.defaults?.headers?.common?.["X-Requested-With"] ?? null;
|
|
69120
69123
|
}
|
|
69121
69124
|
function H2(i, e = new FormData(), t = null) {
|
|
@@ -69142,17 +69145,17 @@ function q2(i, e, t) {
|
|
|
69142
69145
|
return i.append(e, "");
|
|
69143
69146
|
H2(t, i, e);
|
|
69144
69147
|
}
|
|
69145
|
-
function
|
|
69148
|
+
function v$(i, e) {
|
|
69146
69149
|
if (i != null)
|
|
69147
69150
|
return i instanceof FormData ? i : typeof i == "object" && kf(i) ? H2(i) : typeof i == "object" || e["Content-Type"]?.includes("application/json") ? JSON.stringify(i) : String(i);
|
|
69148
69151
|
}
|
|
69149
|
-
function
|
|
69152
|
+
function _$(i) {
|
|
69150
69153
|
const e = {};
|
|
69151
69154
|
return i.forEach((t, n) => {
|
|
69152
69155
|
e[n.toLowerCase()] = t;
|
|
69153
69156
|
}), e;
|
|
69154
69157
|
}
|
|
69155
|
-
function
|
|
69158
|
+
function k$(i = {}) {
|
|
69156
69159
|
let e = i.xsrfCookieName ?? "XSRF-TOKEN", t = i.xsrfHeaderName ?? "X-XSRF-TOKEN";
|
|
69157
69160
|
function n() {
|
|
69158
69161
|
if (typeof document > "u")
|
|
@@ -69168,7 +69171,7 @@ function _$(i = {}) {
|
|
|
69168
69171
|
t = r;
|
|
69169
69172
|
},
|
|
69170
69173
|
async request(r) {
|
|
69171
|
-
const s =
|
|
69174
|
+
const s = w$(r.url, r.baseURL, r.params), a = r.method.toUpperCase(), c = {}, u = y$();
|
|
69172
69175
|
u && (c["X-Requested-With"] = u), r.data !== void 0 && !["GET", "DELETE"].includes(a) && !(r.data instanceof FormData) && !kf(r.data) && (c["Content-Type"] = "application/json"), r.headers && Object.entries(r.headers).forEach(([_, C]) => {
|
|
69173
69176
|
C !== void 0 && (c[_] = String(C));
|
|
69174
69177
|
});
|
|
@@ -69180,7 +69183,7 @@ function _$(i = {}) {
|
|
|
69180
69183
|
const _ = new AbortController();
|
|
69181
69184
|
m = _.signal, p = setTimeout(() => _.abort(), w);
|
|
69182
69185
|
}
|
|
69183
|
-
const y = ["GET", "DELETE"].includes(a) ? void 0 :
|
|
69186
|
+
const y = ["GET", "DELETE"].includes(a) ? void 0 : v$(r.data, c);
|
|
69184
69187
|
y instanceof FormData && delete c["Content-Type"];
|
|
69185
69188
|
try {
|
|
69186
69189
|
const _ = await fetch(s, {
|
|
@@ -69196,18 +69199,18 @@ function _$(i = {}) {
|
|
|
69196
69199
|
const L = {
|
|
69197
69200
|
status: _.status,
|
|
69198
69201
|
data: C,
|
|
69199
|
-
headers:
|
|
69202
|
+
headers: _$(_.headers)
|
|
69200
69203
|
};
|
|
69201
69204
|
if (!_.ok)
|
|
69202
69205
|
throw new Yh(L);
|
|
69203
69206
|
return L;
|
|
69204
69207
|
} catch (_) {
|
|
69205
|
-
throw p && clearTimeout(p), _ instanceof Yh ? _ : _ instanceof DOMException && _.name === "AbortError" ? new U2() : _ instanceof TypeError ? new
|
|
69208
|
+
throw p && clearTimeout(p), _ instanceof Yh ? _ : _ instanceof DOMException && _.name === "AbortError" ? new U2() : _ instanceof TypeError ? new p$(_.message) : _;
|
|
69206
69209
|
}
|
|
69207
69210
|
}
|
|
69208
69211
|
};
|
|
69209
69212
|
}
|
|
69210
|
-
const Ib =
|
|
69213
|
+
const Ib = k$();
|
|
69211
69214
|
let oy = Ib, ay, j2, W2 = "same-origin", $2 = (i) => `${i.method}:${i.baseURL ?? ay ?? ""}${i.url}`, G2 = (i) => i.status === 204 && i.headers["precognition-success"] === "true";
|
|
69212
69215
|
const Xh = {}, mi = {
|
|
69213
69216
|
get: (i, e = {}, t = {}) => Zl(Kl("get", i, e, t)),
|
|
@@ -69250,9 +69253,9 @@ const Xh = {}, mi = {
|
|
|
69250
69253
|
}
|
|
69251
69254
|
}), Zl = (i = {}) => {
|
|
69252
69255
|
const e = [
|
|
69253
|
-
|
|
69254
|
-
|
|
69255
|
-
|
|
69256
|
+
C$,
|
|
69257
|
+
E$,
|
|
69258
|
+
L$
|
|
69256
69259
|
].reduce((t, n) => n(t), i);
|
|
69257
69260
|
return (e.onBefore ?? (() => !0))() === !1 ? Promise.resolve(null) : ((e.onStart ?? (() => null))(), oy.request({
|
|
69258
69261
|
method: e.method,
|
|
@@ -69268,14 +69271,14 @@ const Xh = {}, mi = {
|
|
|
69268
69271
|
e.precognitive && jT(t);
|
|
69269
69272
|
const n = t.status;
|
|
69270
69273
|
let r = t;
|
|
69271
|
-
return e.precognitive && e.onPrecognitionSuccess && G2(t) && (r = await Promise.resolve(e.onPrecognitionSuccess(t) ?? r)), e.onSuccess &&
|
|
69274
|
+
return e.precognitive && e.onPrecognitionSuccess && G2(t) && (r = await Promise.resolve(e.onPrecognitionSuccess(t) ?? r)), e.onSuccess && T$(n) && (r = await Promise.resolve(e.onSuccess(r) ?? r)), (WT(e, n) ?? ((a) => a))(r) ?? r;
|
|
69272
69275
|
}, (t) => {
|
|
69273
|
-
if (
|
|
69276
|
+
if (S$(t))
|
|
69274
69277
|
return Promise.reject(t);
|
|
69275
69278
|
const n = t;
|
|
69276
69279
|
return e.precognitive && jT(n.response), (WT(e, n.response.status) ?? ((s, a) => Promise.reject(a)))(n.response, n);
|
|
69277
69280
|
}).finally(e.onFinish ?? (() => null)));
|
|
69278
|
-
},
|
|
69281
|
+
}, C$ = (i) => {
|
|
69279
69282
|
const e = i.only ?? i.validate;
|
|
69280
69283
|
return {
|
|
69281
69284
|
...i,
|
|
@@ -69285,7 +69288,7 @@ const Xh = {}, mi = {
|
|
|
69285
69288
|
headers: {
|
|
69286
69289
|
...i.headers,
|
|
69287
69290
|
Accept: "application/json",
|
|
69288
|
-
"Content-Type":
|
|
69291
|
+
"Content-Type": A$(i),
|
|
69289
69292
|
...i.precognitive !== !1 ? {
|
|
69290
69293
|
Precognition: !0
|
|
69291
69294
|
} : {},
|
|
@@ -69294,20 +69297,20 @@ const Xh = {}, mi = {
|
|
|
69294
69297
|
} : {}
|
|
69295
69298
|
}
|
|
69296
69299
|
};
|
|
69297
|
-
},
|
|
69300
|
+
}, T$ = (i) => i >= 200 && i < 300, E$ = (i) => (typeof i.fingerprint != "string" || (Xh[i.fingerprint]?.abort(), delete Xh[i.fingerprint]), i), L$ = (i) => typeof i.fingerprint != "string" || i.signal || !i.precognitive ? i : (Xh[i.fingerprint] = new AbortController(), {
|
|
69298
69301
|
...i,
|
|
69299
69302
|
signal: Xh[i.fingerprint].signal
|
|
69300
69303
|
}), jT = (i) => {
|
|
69301
69304
|
if (i.headers?.precognition !== "true")
|
|
69302
69305
|
throw Error("Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.");
|
|
69303
|
-
},
|
|
69306
|
+
}, S$ = (i) => !(i instanceof Yh) || typeof i.response?.status != "number", WT = (i, e) => ({
|
|
69304
69307
|
401: i.onUnauthorized,
|
|
69305
69308
|
403: i.onForbidden,
|
|
69306
69309
|
404: i.onNotFound,
|
|
69307
69310
|
409: i.onConflict,
|
|
69308
69311
|
422: i.onValidationError,
|
|
69309
69312
|
423: i.onLocked
|
|
69310
|
-
})[e],
|
|
69313
|
+
})[e], A$ = (i) => i.headers?.["Content-Type"] ?? i.headers?.["Content-type"] ?? i.headers?.["content-type"] ?? (kf(i.data) ? "multipart/form-data" : "application/json"), x$ = (i, e) => {
|
|
69311
69314
|
if (!i.includes("*"))
|
|
69312
69315
|
return [i];
|
|
69313
69316
|
const t = i.split(".");
|
|
@@ -69328,7 +69331,7 @@ const Xh = {}, mi = {
|
|
|
69328
69331
|
} else
|
|
69329
69332
|
n = n.map((s) => s ? `${s}.${r}` : r);
|
|
69330
69333
|
return n;
|
|
69331
|
-
},
|
|
69334
|
+
}, R$ = (i, e) => e.includes("*") ? new RegExp("^" + e.replace(/\./g, "\\.").replace(/\*/g, "[^.]+") + "$").test(i) : i === e, $T = (i, e) => Object.fromEntries(Object.entries(i).filter(([t]) => !e.some((n) => R$(t, n)))), P$ = (i, e = {}) => {
|
|
69332
69335
|
const t = {
|
|
69333
69336
|
errorsChanged: [],
|
|
69334
69337
|
touchedChanged: [],
|
|
@@ -69349,7 +69352,7 @@ const Xh = {}, mi = {
|
|
|
69349
69352
|
};
|
|
69350
69353
|
let p = {};
|
|
69351
69354
|
const w = (W) => {
|
|
69352
|
-
const j =
|
|
69355
|
+
const j = M$(W);
|
|
69353
69356
|
return bs(p, j) ? [] : (p = j, t.errorsChanged);
|
|
69354
69357
|
}, y = (W) => {
|
|
69355
69358
|
const j = { ...p };
|
|
@@ -69360,7 +69363,7 @@ const Xh = {}, mi = {
|
|
|
69360
69363
|
C = W, z.cancel(), z = me();
|
|
69361
69364
|
};
|
|
69362
69365
|
let L = e, U = null, J = [], ie = null;
|
|
69363
|
-
const me = () =>
|
|
69366
|
+
const me = () => m$((W) => {
|
|
69364
69367
|
i({
|
|
69365
69368
|
get: (j, ee = {}, oe = {}) => mi.get(j, K(ee), G(oe, W, ee)),
|
|
69366
69369
|
post: (j, ee = {}, oe = {}) => mi.post(j, K(ee), G(oe, W, ee)),
|
|
@@ -69390,7 +69393,7 @@ const Xh = {}, mi = {
|
|
|
69390
69393
|
...w($T({ ...p }, Re))
|
|
69391
69394
|
].forEach(($) => $()), oe.onPrecognitionSuccess ? oe.onPrecognitionSuccess(x) : x),
|
|
69392
69395
|
onBefore: () => {
|
|
69393
|
-
const x = h.some((re) => re.includes("*")), $ = x ? [...new Set(h.flatMap((re) =>
|
|
69396
|
+
const x = h.some((re) => re.includes("*")), $ = x ? [...new Set(h.flatMap((re) => x$(re, ee)))] : h;
|
|
69394
69397
|
return oe.onBeforeValidation && oe.onBeforeValidation({ data: ee, touched: $ }, { data: L, touched: J }) === !1 || (oe.onBefore || (() => !0))() === !1 ? !1 : (x && m($).forEach((re) => re()), ie = h, U = ee, !0);
|
|
69395
69398
|
},
|
|
69396
69399
|
onStart: () => {
|
|
@@ -69458,10 +69461,10 @@ const Xh = {}, mi = {
|
|
|
69458
69461
|
}
|
|
69459
69462
|
};
|
|
69460
69463
|
return Y;
|
|
69461
|
-
},
|
|
69464
|
+
}, I$ = (i) => Object.keys(i).reduce((e, t) => ({
|
|
69462
69465
|
...e,
|
|
69463
69466
|
[t]: Array.isArray(i[t]) ? i[t][0] : i[t]
|
|
69464
|
-
}), {}),
|
|
69467
|
+
}), {}), M$ = (i) => Object.keys(i).reduce((e, t) => ({
|
|
69465
69468
|
...e,
|
|
69466
69469
|
[t]: typeof i[t] == "string" ? [i[t]] : i[t]
|
|
69467
69470
|
}), {}), _c = (i) => typeof i != "string" ? i.target.name : i, Mb = (i) => {
|
|
@@ -69484,7 +69487,7 @@ const Xh = {}, mi = {
|
|
|
69484
69487
|
}
|
|
69485
69488
|
}), e;
|
|
69486
69489
|
};
|
|
69487
|
-
var
|
|
69490
|
+
var O$ = class {
|
|
69488
69491
|
config = {};
|
|
69489
69492
|
defaults;
|
|
69490
69493
|
constructor(i) {
|
|
@@ -69504,7 +69507,7 @@ var M$ = class {
|
|
|
69504
69507
|
Oi(this.config, t, n);
|
|
69505
69508
|
});
|
|
69506
69509
|
}
|
|
69507
|
-
}, no = new
|
|
69510
|
+
}, no = new O$({
|
|
69508
69511
|
form: {
|
|
69509
69512
|
recentlySuccessfulDuration: 2e3,
|
|
69510
69513
|
forceIndicesArrayFormatInFormData: !0,
|
|
@@ -69524,7 +69527,7 @@ function Qh(i, e) {
|
|
|
69524
69527
|
function vi(i, e) {
|
|
69525
69528
|
return document.dispatchEvent(new CustomEvent(`inertia:${i}`, e));
|
|
69526
69529
|
}
|
|
69527
|
-
var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }),
|
|
69530
|
+
var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), B$ = (i, { page: e, visitId: t } = {}) => vi("error", { detail: { errors: i, page: e, visitId: t } }), z$ = (i) => vi("networkError", { cancelable: !0, detail: { error: i } }), D$ = (i) => vi("finish", { detail: { visit: i } }), KT = (i) => vi("httpException", { cancelable: !0, detail: { response: i } }), N$ = (i) => vi("beforeUpdate", { detail: { page: i } }), Jh = (i, { cached: e = !1, visitId: t } = {}) => vi("navigate", { detail: { page: i, cached: e, visitId: t } }), V$ = (i, { replace: e, visitId: t }) => vi("clientVisit", { detail: { page: i, replace: e, visitId: t } }), F$ = (i) => vi("progress", { detail: { progress: i } }), U$ = (i) => vi("start", { detail: { visit: i } }), H$ = (i, { visitId: e } = {}) => vi("success", { detail: { page: i, visitId: e } }), q$ = (i, e) => vi("prefetched", { detail: { fetchedAt: Date.now(), response: i, visit: e } }), j$ = (i) => vi("prefetching", { detail: { visit: i } }), ef = (i) => vi("flash", { detail: { flash: i } }), W$ = (i, e) => vi("location", { cancelable: !0, detail: { url: i, versionChange: e } }), Ii = class {
|
|
69528
69531
|
static locationVisitKey = "inertiaLocationVisit";
|
|
69529
69532
|
static set(i, e) {
|
|
69530
69533
|
typeof window < "u" && window.sessionStorage.setItem(i, JSON.stringify(e));
|
|
@@ -69554,22 +69557,22 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69554
69557
|
static clear() {
|
|
69555
69558
|
typeof window < "u" && window.sessionStorage.clear();
|
|
69556
69559
|
}
|
|
69557
|
-
},
|
|
69560
|
+
}, $$ = async (i) => {
|
|
69558
69561
|
if (typeof window > "u")
|
|
69559
69562
|
throw new Error("Unable to encrypt history");
|
|
69560
|
-
const e = K2(), t = await Z2(), n = await
|
|
69563
|
+
const e = K2(), t = await Z2(), n = await Q$(t);
|
|
69561
69564
|
if (!n)
|
|
69562
69565
|
throw new Error("Unable to encrypt history");
|
|
69563
|
-
return await
|
|
69566
|
+
return await K$(e, n, i);
|
|
69564
69567
|
}, Ba = {
|
|
69565
69568
|
key: "historyKey",
|
|
69566
69569
|
iv: "historyIv"
|
|
69567
|
-
},
|
|
69570
|
+
}, G$ = async (i) => {
|
|
69568
69571
|
const e = K2(), t = await Z2();
|
|
69569
69572
|
if (!t)
|
|
69570
69573
|
throw new Error("Unable to decrypt history");
|
|
69571
|
-
return await
|
|
69572
|
-
},
|
|
69574
|
+
return await Z$(e, t, i);
|
|
69575
|
+
}, K$ = async (i, e, t) => {
|
|
69573
69576
|
if (typeof window > "u")
|
|
69574
69577
|
throw new Error("Unable to encrypt history");
|
|
69575
69578
|
if (typeof window.crypto.subtle > "u")
|
|
@@ -69583,7 +69586,7 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69583
69586
|
e,
|
|
69584
69587
|
s.subarray(0, a.written)
|
|
69585
69588
|
);
|
|
69586
|
-
},
|
|
69589
|
+
}, Z$ = async (i, e, t) => {
|
|
69587
69590
|
if (typeof window.crypto.subtle > "u")
|
|
69588
69591
|
return console.warn("Decryption is not supported in this environment. SSL is required."), Promise.resolve(t);
|
|
69589
69592
|
const n = await window.crypto.subtle.decrypt(
|
|
@@ -69601,23 +69604,23 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69601
69604
|
return new Uint8Array(i);
|
|
69602
69605
|
const e = window.crypto.getRandomValues(new Uint8Array(12));
|
|
69603
69606
|
return Ii.set(Ba.iv, Array.from(e)), e;
|
|
69604
|
-
},
|
|
69607
|
+
}, Y$ = async () => typeof window.crypto.subtle > "u" ? (console.warn("Encryption is not supported in this environment. SSL is required."), Promise.resolve(null)) : window.crypto.subtle.generateKey(
|
|
69605
69608
|
{
|
|
69606
69609
|
name: "AES-GCM",
|
|
69607
69610
|
length: 256
|
|
69608
69611
|
},
|
|
69609
69612
|
!0,
|
|
69610
69613
|
["encrypt", "decrypt"]
|
|
69611
|
-
),
|
|
69614
|
+
), X$ = async (i) => {
|
|
69612
69615
|
if (typeof window.crypto.subtle > "u")
|
|
69613
69616
|
return console.warn("Encryption is not supported in this environment. SSL is required."), Promise.resolve();
|
|
69614
69617
|
const e = await window.crypto.subtle.exportKey("raw", i);
|
|
69615
69618
|
Ii.set(Ba.key, Array.from(new Uint8Array(e)));
|
|
69616
|
-
},
|
|
69619
|
+
}, Q$ = async (i) => {
|
|
69617
69620
|
if (i)
|
|
69618
69621
|
return i;
|
|
69619
|
-
const e = await
|
|
69620
|
-
return e ? (await
|
|
69622
|
+
const e = await Y$();
|
|
69623
|
+
return e ? (await X$(e), e) : null;
|
|
69621
69624
|
}, Z2 = async () => {
|
|
69622
69625
|
const i = Ii.get(Ba.key);
|
|
69623
69626
|
return i ? await window.crypto.subtle.importKey(
|
|
@@ -69639,13 +69642,13 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69639
69642
|
if (i === e)
|
|
69640
69643
|
return !0;
|
|
69641
69644
|
for (const n in i)
|
|
69642
|
-
if (!t.includes(n) && i[n] !== e[n] && !
|
|
69645
|
+
if (!t.includes(n) && i[n] !== e[n] && !J$(i[n], e[n]))
|
|
69643
69646
|
return !1;
|
|
69644
69647
|
for (const n in e)
|
|
69645
69648
|
if (!t.includes(n) && !(n in i))
|
|
69646
69649
|
return !1;
|
|
69647
69650
|
return !0;
|
|
69648
|
-
},
|
|
69651
|
+
}, J$ = (i, e) => {
|
|
69649
69652
|
switch (typeof i) {
|
|
69650
69653
|
case "object":
|
|
69651
69654
|
return Y2(i, e, []);
|
|
@@ -69654,7 +69657,7 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69654
69657
|
default:
|
|
69655
69658
|
return i === e;
|
|
69656
69659
|
}
|
|
69657
|
-
},
|
|
69660
|
+
}, eG = {
|
|
69658
69661
|
ms: 1,
|
|
69659
69662
|
s: 1e3,
|
|
69660
69663
|
m: 1e3 * 60,
|
|
@@ -69663,11 +69666,11 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69663
69666
|
}, YT = (i) => {
|
|
69664
69667
|
if (typeof i == "number")
|
|
69665
69668
|
return i;
|
|
69666
|
-
for (const [e, t] of Object.entries(
|
|
69669
|
+
for (const [e, t] of Object.entries(eG))
|
|
69667
69670
|
if (i.endsWith(e))
|
|
69668
69671
|
return parseFloat(i) * t;
|
|
69669
69672
|
return parseInt(i);
|
|
69670
|
-
},
|
|
69673
|
+
}, tG = class {
|
|
69671
69674
|
cached = [];
|
|
69672
69675
|
inFlightRequests = [];
|
|
69673
69676
|
removalTimers = [];
|
|
@@ -69851,12 +69854,12 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69851
69854
|
const e = Object.values(i.onceProps ?? {}).map((t) => t.expiresAt).filter((t) => !!t);
|
|
69852
69855
|
return e.length === 0 ? null : Math.min(...e) - Date.now();
|
|
69853
69856
|
}
|
|
69854
|
-
}, jn = new
|
|
69857
|
+
}, jn = new tG(), Ap = (i) => {
|
|
69855
69858
|
if (i.offsetParent === null)
|
|
69856
69859
|
return !1;
|
|
69857
69860
|
const e = i.getBoundingClientRect(), t = e.top < window.innerHeight && e.bottom >= 0, n = e.left < window.innerWidth && e.right >= 0;
|
|
69858
69861
|
return t && n;
|
|
69859
|
-
},
|
|
69862
|
+
}, iG = (i) => {
|
|
69860
69863
|
const e = (a) => {
|
|
69861
69864
|
const c = window.getComputedStyle(a);
|
|
69862
69865
|
return c.overflowY === "scroll" ? !0 : c.overflowY !== "auto" ? !1 : ["visible", "clip"].includes(c.overflowX) ? !0 : n(c.maxHeight, a.style.height) || r(a, "height");
|
|
@@ -69905,7 +69908,7 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69905
69908
|
window.requestAnimationFrame(() => {
|
|
69906
69909
|
e > 1 ? kc(i, e - 1) : i();
|
|
69907
69910
|
});
|
|
69908
|
-
}, oc = typeof window > "u",
|
|
69911
|
+
}, oc = typeof window > "u", nG = !oc && /Firefox/i.test(window.navigator.userAgent), Mi = class {
|
|
69909
69912
|
static save() {
|
|
69910
69913
|
Me.saveScrollPositions(this.getScrollRegions());
|
|
69911
69914
|
}
|
|
@@ -69919,7 +69922,7 @@ var GT = (i) => vi("before", { cancelable: !0, detail: { visit: i } }), O$ = (i,
|
|
|
69919
69922
|
return document.querySelectorAll("[scroll-region]");
|
|
69920
69923
|
}
|
|
69921
69924
|
static scrollToTop() {
|
|
69922
|
-
if (
|
|
69925
|
+
if (nG && getComputedStyle(document.documentElement).scrollBehavior === "smooth")
|
|
69923
69926
|
return kc(() => window.scrollTo(0, 0), 2);
|
|
69924
69927
|
window.scrollTo(0, 0);
|
|
69925
69928
|
}
|
|
@@ -69995,31 +69998,31 @@ function eR(i, e, t, n) {
|
|
|
69995
69998
|
return i.append(e, "");
|
|
69996
69999
|
Q2(t, i, e, n);
|
|
69997
70000
|
}
|
|
69998
|
-
function
|
|
70001
|
+
function rG(i) {
|
|
69999
70002
|
return /\[\d+\]/.test(decodeURIComponent(i.search));
|
|
70000
70003
|
}
|
|
70001
|
-
function
|
|
70004
|
+
function sG(i) {
|
|
70002
70005
|
if (!i || i === "?")
|
|
70003
70006
|
return {};
|
|
70004
70007
|
const e = {};
|
|
70005
70008
|
return i.replace(/^\?/, "").split("&").filter(Boolean).forEach((t) => {
|
|
70006
|
-
const [n, r] =
|
|
70007
|
-
|
|
70009
|
+
const [n, r] = aG(t);
|
|
70010
|
+
lG(e, XT(n), XT(r));
|
|
70008
70011
|
}), e;
|
|
70009
70012
|
}
|
|
70010
|
-
function
|
|
70013
|
+
function oG(i, e) {
|
|
70011
70014
|
const t = [];
|
|
70012
70015
|
return zb(i, "", t, e), t.length ? "?" + t.join("&") : "";
|
|
70013
70016
|
}
|
|
70014
|
-
function
|
|
70017
|
+
function aG(i) {
|
|
70015
70018
|
const e = i.indexOf("=");
|
|
70016
70019
|
return e === -1 ? [i, ""] : [i.substring(0, e), i.substring(e + 1)];
|
|
70017
70020
|
}
|
|
70018
70021
|
function XT(i) {
|
|
70019
70022
|
return decodeURIComponent(i.replace(/\+/g, " "));
|
|
70020
70023
|
}
|
|
70021
|
-
function
|
|
70022
|
-
const n =
|
|
70024
|
+
function lG(i, e, t) {
|
|
70025
|
+
const n = cG(e);
|
|
70023
70026
|
if (n.some((a) => a === "__proto__"))
|
|
70024
70027
|
return;
|
|
70025
70028
|
let r = i;
|
|
@@ -70030,7 +70033,7 @@ function aG(i, e, t) {
|
|
|
70030
70033
|
const s = n.shift();
|
|
70031
70034
|
s === "" && Array.isArray(r) ? r.push(t) : r[s] = t;
|
|
70032
70035
|
}
|
|
70033
|
-
function
|
|
70036
|
+
function cG(i) {
|
|
70034
70037
|
const e = [], t = i.split("[")[0];
|
|
70035
70038
|
t && e.push(t);
|
|
70036
70039
|
let n;
|
|
@@ -70064,7 +70067,7 @@ function zb(i, e, t, n) {
|
|
|
70064
70067
|
function yn(i) {
|
|
70065
70068
|
return new URL(i.toString(), typeof window > "u" ? void 0 : window.location.toString());
|
|
70066
70069
|
}
|
|
70067
|
-
var
|
|
70070
|
+
var uG = (i, e, t, n, r) => {
|
|
70068
70071
|
let s = typeof i == "string" ? yn(i) : i;
|
|
70069
70072
|
if ((Ob(e) || n) && !Bb(e) && (no.get("form.forceIndicesArrayFormatInFormData") && (r = "indices"), e = Q2(e, new FormData(), null, r)), Bb(e))
|
|
70070
70073
|
return [s, e];
|
|
@@ -70074,8 +70077,8 @@ var cG = (i, e, t, n, r) => {
|
|
|
70074
70077
|
function Cf(i, e, t, n = "brackets") {
|
|
70075
70078
|
const r = i === "get" && !Bb(t) && Object.keys(t).length > 0, s = iR(e.toString()), a = s || e.toString().startsWith("/") || e.toString() === "", c = !a && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = /^[.]{1,2}([/]|$)/.test(e.toString()), h = e.toString().includes("?") || r, m = e.toString().includes("#"), p = new URL(e.toString(), typeof window > "u" ? "http://localhost" : window.location.toString());
|
|
70076
70079
|
if (r) {
|
|
70077
|
-
const w =
|
|
70078
|
-
p.search =
|
|
70080
|
+
const w = rG(p) ? "indices" : n;
|
|
70081
|
+
p.search = oG({ ...sG(p.search), ...t }, w);
|
|
70079
70082
|
}
|
|
70080
70083
|
return [
|
|
70081
70084
|
[
|
|
@@ -70093,7 +70096,7 @@ function tf(i) {
|
|
|
70093
70096
|
}
|
|
70094
70097
|
var QT = (i, e) => {
|
|
70095
70098
|
i.hash && !e.hash && tf(i).href === e.href && (e.hash = i.hash);
|
|
70096
|
-
}, nf = (i, e) => tf(i).href === tf(e).href,
|
|
70099
|
+
}, nf = (i, e) => tf(i).href === tf(e).href, dG = (i, e) => i.origin === e.origin && i.pathname === e.pathname;
|
|
70097
70100
|
function Mn(i) {
|
|
70098
70101
|
return i !== null && typeof i == "object" && i !== void 0 && "url" in i && "method" in i;
|
|
70099
70102
|
}
|
|
@@ -70105,11 +70108,11 @@ function tR(i) {
|
|
|
70105
70108
|
function iR(i) {
|
|
70106
70109
|
return /^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(i);
|
|
70107
70110
|
}
|
|
70108
|
-
function
|
|
70111
|
+
function hG(i, e) {
|
|
70109
70112
|
const t = typeof i == "string" ? yn(i) : i;
|
|
70110
70113
|
return e ? `${t.protocol}//${t.host}${t.pathname}${t.search}${t.hash}` : `${t.pathname}${t.search}${t.hash}`;
|
|
70111
70114
|
}
|
|
70112
|
-
var
|
|
70115
|
+
var fG = class {
|
|
70113
70116
|
page;
|
|
70114
70117
|
swapComponent;
|
|
70115
70118
|
resolveComponent;
|
|
@@ -70284,7 +70287,7 @@ var hG = class {
|
|
|
70284
70287
|
r !== void 0 && (e || vt(i.props, n.prop) === void 0) && (Oi(i.props, n.prop, vt(this.page.props, r.prop)), i.onceProps[t].expiresAt = r.expiresAt);
|
|
70285
70288
|
});
|
|
70286
70289
|
}
|
|
70287
|
-
}, Z = new
|
|
70290
|
+
}, Z = new fG(), Tf = class {
|
|
70288
70291
|
items = [];
|
|
70289
70292
|
processingPromise = null;
|
|
70290
70293
|
add(i) {
|
|
@@ -70299,7 +70302,7 @@ var hG = class {
|
|
|
70299
70302
|
const i = this.items.shift();
|
|
70300
70303
|
return i ? Promise.resolve(i()).then(() => this.processNext()) : Promise.resolve();
|
|
70301
70304
|
}
|
|
70302
|
-
}, wa = typeof window > "u", Yl = new Tf(), JT = !wa && /CriOS/.test(window.navigator.userAgent),
|
|
70305
|
+
}, wa = typeof window > "u", Yl = new Tf(), JT = !wa && /CriOS/.test(window.navigator.userAgent), mG = class {
|
|
70303
70306
|
rememberedState = "rememberedState";
|
|
70304
70307
|
scrollRegions = "scrollRegions";
|
|
70305
70308
|
preserveUrl = !1;
|
|
@@ -70345,7 +70348,7 @@ var hG = class {
|
|
|
70345
70348
|
}
|
|
70346
70349
|
getPageData(i) {
|
|
70347
70350
|
const e = this.clonePageProps(i);
|
|
70348
|
-
return new Promise((t) => i.encryptHistory ?
|
|
70351
|
+
return new Promise((t) => i.encryptHistory ? $$(e).then(t) : t(e));
|
|
70349
70352
|
}
|
|
70350
70353
|
processQueue() {
|
|
70351
70354
|
return Yl.process();
|
|
@@ -70361,7 +70364,7 @@ var hG = class {
|
|
|
70361
70364
|
});
|
|
70362
70365
|
}
|
|
70363
70366
|
decryptPageData(i) {
|
|
70364
|
-
return i instanceof ArrayBuffer ?
|
|
70367
|
+
return i instanceof ArrayBuffer ? G$(i) : Promise.resolve(i);
|
|
70365
70368
|
}
|
|
70366
70369
|
saveScrollPositions(i) {
|
|
70367
70370
|
Yl.add(() => Promise.resolve().then(() => {
|
|
@@ -70473,7 +70476,7 @@ var hG = class {
|
|
|
70473
70476
|
}
|
|
70474
70477
|
};
|
|
70475
70478
|
typeof window < "u" && window.history.scrollRestoration && (window.history.scrollRestoration = "manual");
|
|
70476
|
-
var Me = new
|
|
70479
|
+
var Me = new mG(), gG = class {
|
|
70477
70480
|
internalListeners = [];
|
|
70478
70481
|
init() {
|
|
70479
70482
|
typeof window < "u" && (window.addEventListener("popstate", this.handlePopstateEvent.bind(this)), window.addEventListener("pageshow", this.handlePageshowEvent.bind(this)), window.addEventListener("scroll", Qh(Mi.onWindowScroll.bind(Mi), 100), !0)), typeof document < "u" && document.addEventListener("scroll", Qh(Mi.onScroll.bind(Mi), 100), !0);
|
|
@@ -70532,7 +70535,7 @@ var Me = new fG(), mG = class {
|
|
|
70532
70535
|
this.onMissingHistoryItem();
|
|
70533
70536
|
});
|
|
70534
70537
|
}
|
|
70535
|
-
}, $n = new
|
|
70538
|
+
}, $n = new gG(), pG = class {
|
|
70536
70539
|
type;
|
|
70537
70540
|
constructor() {
|
|
70538
70541
|
this.type = this.resolveType();
|
|
@@ -70549,7 +70552,7 @@ var Me = new fG(), mG = class {
|
|
|
70549
70552
|
isReload() {
|
|
70550
70553
|
return this.type === "reload";
|
|
70551
70554
|
}
|
|
70552
|
-
}, xp = new
|
|
70555
|
+
}, xp = new pG();
|
|
70553
70556
|
function ah() {
|
|
70554
70557
|
const i = typeof window < "u" ? window.crypto : void 0;
|
|
70555
70558
|
if (i?.randomUUID)
|
|
@@ -70560,7 +70563,7 @@ function ah() {
|
|
|
70560
70563
|
(t) => (+t ^ e() & 15 >> +t / 4).toString(16)
|
|
70561
70564
|
);
|
|
70562
70565
|
}
|
|
70563
|
-
var
|
|
70566
|
+
var bG = class {
|
|
70564
70567
|
static handle() {
|
|
70565
70568
|
this.clearRememberedStateOnReload(), [this.handleBackForward, this.handleLocation, this.handleDefault].find((e) => e.bind(this)());
|
|
70566
70569
|
}
|
|
@@ -70611,7 +70614,7 @@ var pG = class {
|
|
|
70611
70614
|
const e = Z.get();
|
|
70612
70615
|
Jh(e, { visitId: i }), Object.keys(e.flash).length > 0 && queueMicrotask(() => ef(e.flash));
|
|
70613
70616
|
}
|
|
70614
|
-
},
|
|
70617
|
+
}, wG = class {
|
|
70615
70618
|
intervalId = null;
|
|
70616
70619
|
timeoutId = null;
|
|
70617
70620
|
throttle = !1;
|
|
@@ -70662,7 +70665,7 @@ var pG = class {
|
|
|
70662
70665
|
}
|
|
70663
70666
|
});
|
|
70664
70667
|
}
|
|
70665
|
-
},
|
|
70668
|
+
}, yG = class {
|
|
70666
70669
|
polls = [];
|
|
70667
70670
|
constructor() {
|
|
70668
70671
|
this.setupVisibilityListener();
|
|
@@ -70671,7 +70674,7 @@ var pG = class {
|
|
|
70671
70674
|
return this.polls.length;
|
|
70672
70675
|
}
|
|
70673
70676
|
add(i, e, t) {
|
|
70674
|
-
const n = new
|
|
70677
|
+
const n = new wG(i, e, t);
|
|
70675
70678
|
return this.polls.push(n), {
|
|
70676
70679
|
stop: () => n.stop(),
|
|
70677
70680
|
start: () => n.start(),
|
|
@@ -70692,7 +70695,7 @@ var pG = class {
|
|
|
70692
70695
|
!1
|
|
70693
70696
|
);
|
|
70694
70697
|
}
|
|
70695
|
-
}, eE = new
|
|
70698
|
+
}, eE = new yG(), vG = class {
|
|
70696
70699
|
requestHandlers = [];
|
|
70697
70700
|
responseHandlers = [];
|
|
70698
70701
|
errorHandlers = [];
|
|
@@ -70727,7 +70730,7 @@ var pG = class {
|
|
|
70727
70730
|
for (const e of this.errorHandlers)
|
|
70728
70731
|
await e(i);
|
|
70729
70732
|
}
|
|
70730
|
-
}, fi = new
|
|
70733
|
+
}, fi = new vG(), cy = class extends Error {
|
|
70731
70734
|
code;
|
|
70732
70735
|
url;
|
|
70733
70736
|
constructor(i, e, t) {
|
|
@@ -70748,11 +70751,11 @@ var pG = class {
|
|
|
70748
70751
|
super(i, "ERR_NETWORK", e), this.name = "HttpNetworkError", this.cause = t;
|
|
70749
70752
|
}
|
|
70750
70753
|
};
|
|
70751
|
-
function
|
|
70754
|
+
function _G(i) {
|
|
70752
70755
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + i + ")=([^;]*)"));
|
|
70753
70756
|
return e ? decodeURIComponent(e[3]) : null;
|
|
70754
70757
|
}
|
|
70755
|
-
function
|
|
70758
|
+
function kG(i) {
|
|
70756
70759
|
const e = {};
|
|
70757
70760
|
return i.getAllResponseHeaders().split(`\r
|
|
70758
70761
|
`).forEach((t) => {
|
|
@@ -70763,10 +70766,10 @@ function _G(i) {
|
|
|
70763
70766
|
function nR(i) {
|
|
70764
70767
|
return typeof FormData < "u" && i instanceof FormData;
|
|
70765
70768
|
}
|
|
70766
|
-
function
|
|
70769
|
+
function CG(i) {
|
|
70767
70770
|
return typeof i == "string" || nR(i) || typeof Blob < "u" && i instanceof Blob || typeof ArrayBuffer < "u" && i instanceof ArrayBuffer || typeof ArrayBuffer < "u" && ArrayBuffer.isView(i) || typeof URLSearchParams < "u" && i instanceof URLSearchParams;
|
|
70768
70771
|
}
|
|
70769
|
-
function
|
|
70772
|
+
function TG(i, e) {
|
|
70770
70773
|
if (!e.headers)
|
|
70771
70774
|
return;
|
|
70772
70775
|
const t = nR(e.data);
|
|
@@ -70774,7 +70777,7 @@ function CG(i, e) {
|
|
|
70774
70777
|
(n.toLowerCase() !== "content-type" || !t) && i.setRequestHeader(n, String(r));
|
|
70775
70778
|
});
|
|
70776
70779
|
}
|
|
70777
|
-
function
|
|
70780
|
+
function EG(i, e) {
|
|
70778
70781
|
if (!e || Object.keys(e).length === 0)
|
|
70779
70782
|
return i;
|
|
70780
70783
|
const [t] = Cf("get", i, e);
|
|
@@ -70797,14 +70800,14 @@ var rR = class {
|
|
|
70797
70800
|
}
|
|
70798
70801
|
doRequest(i) {
|
|
70799
70802
|
return new Promise((e, t) => {
|
|
70800
|
-
const n = new XMLHttpRequest(), r =
|
|
70803
|
+
const n = new XMLHttpRequest(), r = EG(i.url, i.params);
|
|
70801
70804
|
n.open(i.method.toUpperCase(), r, !0);
|
|
70802
|
-
const s =
|
|
70805
|
+
const s = _G(this.xsrfCookieName);
|
|
70803
70806
|
s && n.setRequestHeader(this.xsrfHeaderName, s), Object.keys(i.headers ?? {}).some(
|
|
70804
70807
|
(u) => u.toLowerCase() === "x-requested-with"
|
|
70805
70808
|
) || n.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
|
70806
70809
|
let c = null;
|
|
70807
|
-
i.data !== null && i.data !== void 0 && (
|
|
70810
|
+
i.data !== null && i.data !== void 0 && (CG(i.data) ? c = i.data : typeof i.data == "object" ? (c = JSON.stringify(i.data), !i.headers?.["Content-Type"] && !i.headers?.["content-type"] && n.setRequestHeader("Content-Type", "application/json")) : c = String(i.data)), TG(n, i), i.onUploadProgress && (n.upload.onprogress = (u) => {
|
|
70808
70811
|
const h = u.lengthComputable ? u.loaded / u.total : void 0;
|
|
70809
70812
|
i.onUploadProgress({
|
|
70810
70813
|
progress: h,
|
|
@@ -70816,14 +70819,14 @@ var rR = class {
|
|
|
70816
70819
|
const u = {
|
|
70817
70820
|
status: n.status,
|
|
70818
70821
|
data: n.responseText,
|
|
70819
|
-
headers:
|
|
70822
|
+
headers: kG(n)
|
|
70820
70823
|
};
|
|
70821
70824
|
n.status >= 400 ? t(new Db(`Request failed with status ${n.status}`, u, i.url)) : e(u);
|
|
70822
70825
|
}, n.send(c);
|
|
70823
70826
|
});
|
|
70824
70827
|
}
|
|
70825
|
-
},
|
|
70826
|
-
function
|
|
70828
|
+
}, LG = new rR(), Rp = LG;
|
|
70829
|
+
function SG(i) {
|
|
70827
70830
|
return !("request" in i);
|
|
70828
70831
|
}
|
|
70829
70832
|
var sR = {
|
|
@@ -70837,7 +70840,7 @@ var sR = {
|
|
|
70837
70840
|
* Set the HTTP client to use for all Inertia requests
|
|
70838
70841
|
*/
|
|
70839
70842
|
setClient(i) {
|
|
70840
|
-
if (!
|
|
70843
|
+
if (!SG(i)) {
|
|
70841
70844
|
Rp = i;
|
|
70842
70845
|
return;
|
|
70843
70846
|
}
|
|
@@ -70870,7 +70873,7 @@ var sR = {
|
|
|
70870
70873
|
* For use by custom HttpClient implementations.
|
|
70871
70874
|
*/
|
|
70872
70875
|
processError: fi.processError.bind(fi)
|
|
70873
|
-
},
|
|
70876
|
+
}, AG = class {
|
|
70874
70877
|
requestHandlers = [];
|
|
70875
70878
|
responseHandlers = [];
|
|
70876
70879
|
onVisitRequest(i) {
|
|
@@ -70895,7 +70898,7 @@ var sR = {
|
|
|
70895
70898
|
t = await n(i, t);
|
|
70896
70899
|
return t;
|
|
70897
70900
|
}
|
|
70898
|
-
}, oR = new
|
|
70901
|
+
}, oR = new AG(), lh = class ch {
|
|
70899
70902
|
callbacks = [];
|
|
70900
70903
|
params;
|
|
70901
70904
|
constructor(e) {
|
|
@@ -71014,7 +71017,7 @@ var sR = {
|
|
|
71014
71017
|
static resolvePreserveOption(e, t) {
|
|
71015
71018
|
return typeof e == "function" ? e(t) : e === "errors" ? Object.keys(t.props.errors || {}).length > 0 : e;
|
|
71016
71019
|
}
|
|
71017
|
-
},
|
|
71020
|
+
}, xG = {
|
|
71018
71021
|
createIframeAndPage(i) {
|
|
71019
71022
|
typeof i == "object" && (i = `All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>${JSON.stringify(
|
|
71020
71023
|
i
|
|
@@ -71053,10 +71056,10 @@ var sR = {
|
|
|
71053
71056
|
r.remove(), n.remove();
|
|
71054
71057
|
}), n.appendChild(e), document.body.prepend(n), n.showModal(), n.focus(), e.srcdoc = t.outerHTML;
|
|
71055
71058
|
}
|
|
71056
|
-
}, iE = (i, e) => i === e || i.startsWith(`${e}.`),
|
|
71059
|
+
}, iE = (i, e) => i === e || i.startsWith(`${e}.`), RG = (i, e) => {
|
|
71057
71060
|
const { only: t, except: n } = i;
|
|
71058
71061
|
return !(t.length === 0 && n.length === 0 || t.length > 0 && !t.some((r) => iE(e, r)) || n.length > 0 && n.some((r) => iE(e, r)));
|
|
71059
|
-
},
|
|
71062
|
+
}, PG = new Tf(), nE = class aR {
|
|
71060
71063
|
constructor(e, t, n) {
|
|
71061
71064
|
this.requestParams = e, this.response = t, this.originatingPage = n;
|
|
71062
71065
|
}
|
|
@@ -71075,11 +71078,11 @@ var sR = {
|
|
|
71075
71078
|
nf(this.requestParams.all().url, window.location) && this.handle();
|
|
71076
71079
|
}
|
|
71077
71080
|
async handle() {
|
|
71078
|
-
return
|
|
71081
|
+
return PG.add(() => this.process());
|
|
71079
71082
|
}
|
|
71080
71083
|
async process() {
|
|
71081
71084
|
if (this.requestParams.all().prefetch)
|
|
71082
|
-
return this.wasPrefetched = !0, this.requestParams.all().prefetch = !1, this.requestParams.all().onPrefetched(this.response, this.requestParams.all()),
|
|
71085
|
+
return this.wasPrefetched = !0, this.requestParams.all().prefetch = !1, this.requestParams.all().onPrefetched(this.response, this.requestParams.all()), q$(this.response, this.requestParams.all()), Promise.resolve();
|
|
71083
71086
|
if (this.requestParams.runCallbacks(), this.processed = !0, !this.isInertiaResponse())
|
|
71084
71087
|
return this.handleNonInertiaResponse();
|
|
71085
71088
|
if (this.isHttpException()) {
|
|
@@ -71096,9 +71099,9 @@ var sR = {
|
|
|
71096
71099
|
const t = Z.get().props.errors || {};
|
|
71097
71100
|
if (Object.keys(t).length > 0) {
|
|
71098
71101
|
const n = this.getScopedErrors(t);
|
|
71099
|
-
return
|
|
71102
|
+
return B$(n, { page: Z.get(), visitId: this.requestParams.all().id }), this.requestParams.all().onError(n);
|
|
71100
71103
|
}
|
|
71101
|
-
_t.flushByCacheTags(this.requestParams.all().invalidateCacheTags || []), this.wasPrefetched || _t.flush(Z.get().url),
|
|
71104
|
+
_t.flushByCacheTags(this.requestParams.all().invalidateCacheTags || []), this.wasPrefetched || _t.flush(Z.get().url), H$(Z.get(), { visitId: this.requestParams.all().id }), await this.requestParams.all().onSuccess(Z.get()), Me.preserveUrl = !1;
|
|
71102
71105
|
}
|
|
71103
71106
|
mergeParams(e) {
|
|
71104
71107
|
this.requestParams.merge(e);
|
|
@@ -71125,7 +71128,7 @@ var sR = {
|
|
|
71125
71128
|
data: this.getDataFromResponse(this.response.data)
|
|
71126
71129
|
};
|
|
71127
71130
|
if (this.requestParams.all().onHttpException(e) !== !1 && KT(e))
|
|
71128
|
-
return
|
|
71131
|
+
return xG.show(e.data);
|
|
71129
71132
|
}
|
|
71130
71133
|
isInertiaResponse() {
|
|
71131
71134
|
return this.hasHeader("x-inertia");
|
|
@@ -71156,7 +71159,7 @@ var sR = {
|
|
|
71156
71159
|
if (typeof window > "u")
|
|
71157
71160
|
return;
|
|
71158
71161
|
const t = this.getHeader("x-inertia-version"), n = !!t && t !== Z.get().version;
|
|
71159
|
-
if (!
|
|
71162
|
+
if (!W$(e, n) || n && this.requestParams.all().async)
|
|
71160
71163
|
return;
|
|
71161
71164
|
Ii.set(Ii.locationVisitKey, {
|
|
71162
71165
|
preserveScroll: this.requestParams.all().preserveScroll === !0
|
|
@@ -71167,7 +71170,7 @@ var sR = {
|
|
|
71167
71170
|
}
|
|
71168
71171
|
async setPage() {
|
|
71169
71172
|
const e = this.getPageResponse();
|
|
71170
|
-
return this.shouldSetPage(e) ? (this.response = await oR.processResponse(this.requestParams.all(), this.response), this.mergeProps(e), Z.mergeOncePropsIntoResponse(e), this.preserveOptimisticProps(e), this.preserveEqualProps(e), await this.setRememberedState(e), this.requestParams.setPreserveOptions(e), e.url = Me.preserveUrl ? Z.get().url : this.pageUrl(e), this.requestParams.all().onBeforeUpdate(e),
|
|
71173
|
+
return this.shouldSetPage(e) ? (this.response = await oR.processResponse(this.requestParams.all(), this.response), this.mergeProps(e), Z.mergeOncePropsIntoResponse(e), this.preserveOptimisticProps(e), this.preserveEqualProps(e), await this.setRememberedState(e), this.requestParams.setPreserveOptions(e), e.url = Me.preserveUrl ? Z.get().url : this.pageUrl(e), this.requestParams.all().onBeforeUpdate(e), N$(e), Z.set(e, {
|
|
71171
71174
|
replace: this.requestParams.all().replace,
|
|
71172
71175
|
preserveScroll: this.requestParams.all().preserveScroll,
|
|
71173
71176
|
preserveState: this.requestParams.all().preserveState,
|
|
@@ -71258,7 +71261,7 @@ var sR = {
|
|
|
71258
71261
|
}
|
|
71259
71262
|
mergeRescuedProps(e) {
|
|
71260
71263
|
const t = Z.get().rescuedProps ?? [], n = e.rescuedProps ?? [], r = new Set(
|
|
71261
|
-
t.filter((s) => !
|
|
71264
|
+
t.filter((s) => !RG(this.requestParams.all(), s))
|
|
71262
71265
|
);
|
|
71263
71266
|
return n.forEach((s) => r.add(s)), Array.from(r);
|
|
71264
71267
|
}
|
|
@@ -71340,7 +71343,7 @@ var sR = {
|
|
|
71340
71343
|
return this.isOptimistic() && (!this.response || !this.response.isProcessed());
|
|
71341
71344
|
}
|
|
71342
71345
|
async send() {
|
|
71343
|
-
this.requestParams.onCancelToken(() => this.cancel({ cancelled: !0 })),
|
|
71346
|
+
this.requestParams.onCancelToken(() => this.cancel({ cancelled: !0 })), U$(this.requestParams.all()), this.requestParams.onStart(), this.requestParams.all().prefetch && (this.requestParams.onPrefetching(), j$(this.requestParams.all()));
|
|
71344
71347
|
const e = this.requestParams.all().prefetch, t = {
|
|
71345
71348
|
method: this.requestParams.all().method,
|
|
71346
71349
|
url: tf(this.requestParams.all().url).href,
|
|
@@ -71350,7 +71353,7 @@ var sR = {
|
|
|
71350
71353
|
onUploadProgress: this.onProgress.bind(this)
|
|
71351
71354
|
}, n = await oR.processRequest(this.requestParams.all(), t);
|
|
71352
71355
|
return sR.getClient().request(n).then((r) => (this.response = nE.create(this.requestParams, r, this.page), this.response.handle())).catch((r) => r instanceof Db ? (this.response = nE.create(this.requestParams, r.response, this.page), this.response.handle()) : Promise.reject(r)).catch((r) => {
|
|
71353
|
-
if (!(r instanceof Nb) && this.requestParams.all().onNetworkError(r) !== !1 &&
|
|
71356
|
+
if (!(r instanceof Nb) && this.requestParams.all().onNetworkError(r) !== !1 && z$(r))
|
|
71354
71357
|
return e && this.requestParams.onPrefetchError(r), Promise.reject(r);
|
|
71355
71358
|
}).finally(() => {
|
|
71356
71359
|
this.finish(), e && this.response && this.requestParams.onPrefetchResponse(this.response);
|
|
@@ -71360,13 +71363,13 @@ var sR = {
|
|
|
71360
71363
|
this.requestParams.wasCancelledAtAll() || (this.requestParams.markAsFinished(), this.fireFinishEvents());
|
|
71361
71364
|
}
|
|
71362
71365
|
fireFinishEvents() {
|
|
71363
|
-
this.requestHasFinished || (this.requestHasFinished = !0,
|
|
71366
|
+
this.requestHasFinished || (this.requestHasFinished = !0, D$(this.requestParams.all()), this.requestParams.onFinish());
|
|
71364
71367
|
}
|
|
71365
71368
|
cancel({ cancelled: e = !1, interrupted: t = !1 }) {
|
|
71366
71369
|
this.requestHasFinished || (this.cancelToken.abort(), this.requestParams.markAsCancelled({ cancelled: e, interrupted: t }), this.fireFinishEvents());
|
|
71367
71370
|
}
|
|
71368
71371
|
onProgress(e) {
|
|
71369
|
-
this.requestParams.data() instanceof FormData && (
|
|
71372
|
+
this.requestParams.data() instanceof FormData && (F$(e), this.requestParams.all().onProgress(e));
|
|
71370
71373
|
}
|
|
71371
71374
|
getHeaders() {
|
|
71372
71375
|
const e = {
|
|
@@ -71409,7 +71412,7 @@ var sR = {
|
|
|
71409
71412
|
return this.requests.some((i) => i.isPendingOptimistic());
|
|
71410
71413
|
}
|
|
71411
71414
|
}, Ai = () => {
|
|
71412
|
-
},
|
|
71415
|
+
}, IG = class {
|
|
71413
71416
|
syncRequestStream = new sE({
|
|
71414
71417
|
maxConcurrent: 1,
|
|
71415
71418
|
interruptible: !0
|
|
@@ -71431,7 +71434,7 @@ var sR = {
|
|
|
71431
71434
|
resolveComponent: e,
|
|
71432
71435
|
swapComponent: t,
|
|
71433
71436
|
onFlash: n
|
|
71434
|
-
}),
|
|
71437
|
+
}), bG.handle(), $n.init(), $n.on("missingHistoryItem", () => {
|
|
71435
71438
|
typeof window < "u" && this.visit(window.location.href, { preserveState: !0, preserveScroll: !0, replace: !0 });
|
|
71436
71439
|
}), $n.on("loadDeferredProps", (r) => {
|
|
71437
71440
|
this.loadDeferredProps(r);
|
|
@@ -71532,7 +71535,7 @@ var sR = {
|
|
|
71532
71535
|
if (n.onBefore(t) === !1 || !GT(t))
|
|
71533
71536
|
return;
|
|
71534
71537
|
const r = yn(Z.get().url);
|
|
71535
|
-
(t.only.length > 0 || t.except.length > 0 || t.reset.length > 0 ?
|
|
71538
|
+
(t.only.length > 0 || t.except.length > 0 || t.reset.length > 0 ? dG(t.url, r) : nf(t.url, r)) || this.asyncRequestStream.cancelInFlight({ prefetch: !1, optimistic: !1 }), t.async || this.syncRequestStream.interruptInFlight(), e.optimistic && this.applyOptimisticUpdate(e.optimistic, n), !Z.isCleared() && !t.preserveUrl && Mi.save();
|
|
71536
71539
|
const c = {
|
|
71537
71540
|
...t,
|
|
71538
71541
|
...n
|
|
@@ -71683,7 +71686,7 @@ var sR = {
|
|
|
71683
71686
|
viewTransition: a,
|
|
71684
71687
|
visitId: C
|
|
71685
71688
|
}).then(() => {
|
|
71686
|
-
|
|
71689
|
+
V$(Z.get(), { replace: e, visitId: C });
|
|
71687
71690
|
const A = Z.get().flash;
|
|
71688
71691
|
Object.keys(A).length > 0 && (ef(A), h?.(A));
|
|
71689
71692
|
const L = Z.get().props.errors || {};
|
|
@@ -71767,7 +71770,7 @@ var sR = {
|
|
|
71767
71770
|
cached: !1,
|
|
71768
71771
|
...ZT(e),
|
|
71769
71772
|
...ZT(n)
|
|
71770
|
-
}, [s, a] =
|
|
71773
|
+
}, [s, a] = uG(
|
|
71771
71774
|
i,
|
|
71772
71775
|
r.data,
|
|
71773
71776
|
r.method,
|
|
@@ -71905,26 +71908,26 @@ var sR = {
|
|
|
71905
71908
|
return i && typeof i == "object" && !("target" in i) ? i = n(i) : e && typeof e == "object" ? e = n(e) : typeof i == "string" ? e = n(e ?? {}) : i = n(i ?? {}), [i, e];
|
|
71906
71909
|
}
|
|
71907
71910
|
};
|
|
71908
|
-
function
|
|
71911
|
+
function MG(i) {
|
|
71909
71912
|
if (!i.includes("."))
|
|
71910
71913
|
return i;
|
|
71911
71914
|
const e = (t) => t.startsWith("[") && t.endsWith("]") ? t : t.split(".").reduce((n, r, s) => s === 0 ? r : `${n}[${r}]`);
|
|
71912
71915
|
return i.replace(/\\\./g, "__ESCAPED_DOT__").split(/(\[[^\]]*\])/).filter(Boolean).map(e).join("").replace(/__ESCAPED_DOT__/g, ".");
|
|
71913
71916
|
}
|
|
71914
|
-
function
|
|
71917
|
+
function OG(i) {
|
|
71915
71918
|
const e = [], t = /([^\[\]]+)|\[(\d*)\]/g;
|
|
71916
71919
|
let n;
|
|
71917
71920
|
for (; (n = t.exec(i)) !== null; )
|
|
71918
71921
|
n[1] !== void 0 ? e.push(n[1]) : n[2] !== void 0 && e.push(n[2] === "" ? "" : Number(n[2]));
|
|
71919
71922
|
return e;
|
|
71920
71923
|
}
|
|
71921
|
-
function
|
|
71924
|
+
function BG(i, e, t) {
|
|
71922
71925
|
let n = i;
|
|
71923
71926
|
for (let r = 0; r < e.length - 1; r++)
|
|
71924
71927
|
e[r] in n || (n[e[r]] = {}), n = n[e[r]];
|
|
71925
71928
|
n[e[e.length - 1]] = t;
|
|
71926
71929
|
}
|
|
71927
|
-
function
|
|
71930
|
+
function zG(i) {
|
|
71928
71931
|
const e = Object.keys(i), t = e.filter((n) => /^\d+$/.test(n)).map(Number).sort((n, r) => n - r);
|
|
71929
71932
|
return e.length === t.length && t.length > 0 && t[0] === 0 && t.every((n, r) => n === r);
|
|
71930
71933
|
}
|
|
@@ -71933,7 +71936,7 @@ function uh(i) {
|
|
|
71933
71936
|
return i.map(uh);
|
|
71934
71937
|
if (typeof i != "object" || i === null || ly(i))
|
|
71935
71938
|
return i;
|
|
71936
|
-
if (
|
|
71939
|
+
if (zG(i)) {
|
|
71937
71940
|
const t = [];
|
|
71938
71941
|
for (let n = 0; n < Object.keys(i).length; n++)
|
|
71939
71942
|
t[n] = uh(i[n]);
|
|
@@ -71949,7 +71952,7 @@ function oE(i) {
|
|
|
71949
71952
|
for (const [t, n] of i.entries()) {
|
|
71950
71953
|
if (n instanceof File && n.size === 0 && n.name === "")
|
|
71951
71954
|
continue;
|
|
71952
|
-
const r = MG(
|
|
71955
|
+
const r = OG(MG(t));
|
|
71953
71956
|
if (r[r.length - 1] === "") {
|
|
71954
71957
|
const s = r.slice(0, -1), a = vt(e, s);
|
|
71955
71958
|
if (Array.isArray(a))
|
|
@@ -71961,11 +71964,11 @@ function oE(i) {
|
|
|
71961
71964
|
Oi(e, s, [n]);
|
|
71962
71965
|
continue;
|
|
71963
71966
|
}
|
|
71964
|
-
|
|
71967
|
+
BG(e, r.map(String), n);
|
|
71965
71968
|
}
|
|
71966
71969
|
return uh(e);
|
|
71967
71970
|
}
|
|
71968
|
-
var
|
|
71971
|
+
var DG = "X-Inertia-Infinite-Scroll-Merge-Intent", NG = (i) => {
|
|
71969
71972
|
const e = () => {
|
|
71970
71973
|
const L = Z.get().scrollProps?.[i.getPropName()];
|
|
71971
71974
|
if (L)
|
|
@@ -72013,7 +72016,7 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72013
72016
|
preserveUrl: !0,
|
|
72014
72017
|
// we handle URL updates manually via useInfiniteScrollQueryString()
|
|
72015
72018
|
headers: {
|
|
72016
|
-
[
|
|
72019
|
+
[DG]: L === "previous" ? "prepend" : "append",
|
|
72017
72020
|
...U.headers
|
|
72018
72021
|
},
|
|
72019
72022
|
onBefore: (ie) => {
|
|
@@ -72042,7 +72045,7 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72042
72045
|
fetchPrevious: (L) => p("previous", L),
|
|
72043
72046
|
removeEventListener: s
|
|
72044
72047
|
};
|
|
72045
|
-
},
|
|
72048
|
+
}, VG = () => {
|
|
72046
72049
|
const i = [];
|
|
72047
72050
|
return {
|
|
72048
72051
|
new: (n, r = {}) => {
|
|
@@ -72056,8 +72059,8 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72056
72059
|
i.forEach((n) => n.disconnect()), i.length = 0;
|
|
72057
72060
|
}
|
|
72058
72061
|
};
|
|
72059
|
-
}, dh = "infiniteScrollPage", Pp = "infiniteScrollIgnore", cR = (i) => i.dataset[dh],
|
|
72060
|
-
const e =
|
|
72062
|
+
}, dh = "infiniteScrollPage", Pp = "infiniteScrollIgnore", cR = (i) => i.dataset[dh], FG = (i) => {
|
|
72063
|
+
const e = VG();
|
|
72061
72064
|
let t, n, r, s, a = !1;
|
|
72062
72065
|
const c = () => {
|
|
72063
72066
|
s = new MutationObserver((G) => {
|
|
@@ -72143,10 +72146,10 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72143
72146
|
processManuallyAddedElements: _,
|
|
72144
72147
|
processServerLoadedElements: L
|
|
72145
72148
|
};
|
|
72146
|
-
},
|
|
72149
|
+
}, UG = new Tf(), ua, os, Vd = null, HG = (i) => {
|
|
72147
72150
|
let e = !0;
|
|
72148
72151
|
const t = (r) => {
|
|
72149
|
-
|
|
72152
|
+
UG.add(() => new Promise((s) => {
|
|
72150
72153
|
if (!e)
|
|
72151
72154
|
return ua = os = null, s();
|
|
72152
72155
|
if (!ua || !os) {
|
|
@@ -72157,7 +72160,7 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72157
72160
|
r === "1" ? c.delete(a) : c.set(a, r), setTimeout(() => s());
|
|
72158
72161
|
})).finally(() => {
|
|
72159
72162
|
e && ua && os && ua.href !== os.href && Vd !== null && _t.replace({
|
|
72160
|
-
url:
|
|
72163
|
+
url: hG(os, Vd),
|
|
72161
72164
|
preserveScroll: !0,
|
|
72162
72165
|
preserveState: !0
|
|
72163
72166
|
}), ua = os = Vd = null;
|
|
@@ -72178,7 +72181,7 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72178
72181
|
}, 250),
|
|
72179
72182
|
cancel: () => e = !1
|
|
72180
72183
|
};
|
|
72181
|
-
},
|
|
72184
|
+
}, qG = (i) => ({
|
|
72182
72185
|
createCallbacks: () => {
|
|
72183
72186
|
let t, n = null, r = 0;
|
|
72184
72187
|
return {
|
|
@@ -72211,14 +72214,14 @@ var zG = "X-Inertia-Infinite-Scroll-Merge-Intent", DG = (i) => {
|
|
|
72211
72214
|
};
|
|
72212
72215
|
}
|
|
72213
72216
|
});
|
|
72214
|
-
function
|
|
72215
|
-
const e =
|
|
72217
|
+
function jG(i) {
|
|
72218
|
+
const e = HG({ ...i, getPageName: () => r.getPageName() }), t = qG(i), n = FG({
|
|
72216
72219
|
...i,
|
|
72217
72220
|
// As items enter viewport, update URL to reflect the most visible page
|
|
72218
72221
|
onItemIntersected: e.onItemIntersected,
|
|
72219
72222
|
onPreviousTriggered: () => r.fetchPrevious(),
|
|
72220
72223
|
onNextTriggered: () => r.fetchNext()
|
|
72221
|
-
}), r =
|
|
72224
|
+
}), r = NG({
|
|
72222
72225
|
...i,
|
|
72223
72226
|
// Before updating page data, tag any manually added DOM elements
|
|
72224
72227
|
// so they don't get confused with server-loaded content
|
|
@@ -72289,13 +72292,13 @@ var Bt = "nprogress", ro, Et, pi = {
|
|
|
72289
72292
|
'<div class="spinner-icon"></div>',
|
|
72290
72293
|
"</div>"
|
|
72291
72294
|
].join("")
|
|
72292
|
-
}, vs = null, sf = !1,
|
|
72293
|
-
Object.assign(pi, i), ro = pi.popover ?? "popover" in HTMLElement.prototype, pi.includeCSS &&
|
|
72295
|
+
}, vs = null, sf = !1, WG = (i) => {
|
|
72296
|
+
Object.assign(pi, i), ro = pi.popover ?? "popover" in HTMLElement.prototype, pi.includeCSS && YG(pi.color), Et = document.createElement("div"), Et.id = Bt, Et.setAttribute("aria-hidden", "true"), Et.innerHTML = pi.template, ro && (Et.popover = "manual");
|
|
72294
72297
|
}, Ef = (i) => {
|
|
72295
72298
|
const e = dR();
|
|
72296
72299
|
i = pR(i, pi.minimum, 1), vs = i === 1 ? null : i;
|
|
72297
|
-
const t =
|
|
72298
|
-
t.offsetWidth,
|
|
72300
|
+
const t = GG(!e), n = t.querySelector(pi.barSelector), r = pi.speed, s = pi.easing;
|
|
72301
|
+
t.offsetWidth, ZG((a) => {
|
|
72299
72302
|
const c = {
|
|
72300
72303
|
transition: `all ${r}ms ${s}`,
|
|
72301
72304
|
transform: `translate3d(${bR(i)}%,0,0)`
|
|
@@ -72318,7 +72321,7 @@ var Bt = "nprogress", ro, Et, pi = {
|
|
|
72318
72321
|
}, pi.trickleSpeed);
|
|
72319
72322
|
};
|
|
72320
72323
|
pi.trickle && i();
|
|
72321
|
-
},
|
|
72324
|
+
}, $G = (i) => {
|
|
72322
72325
|
!i && !vs || (fR(0.3 + 0.5 * Math.random()), Ef(1));
|
|
72323
72326
|
}, fR = (i) => {
|
|
72324
72327
|
const e = vs;
|
|
@@ -72337,8 +72340,8 @@ var Bt = "nprogress", ro, Et, pi = {
|
|
|
72337
72340
|
return parseFloat(n);
|
|
72338
72341
|
return 0;
|
|
72339
72342
|
})(), Ef(pR(e + i, 0, 0.994));
|
|
72340
|
-
},
|
|
72341
|
-
if (
|
|
72343
|
+
}, GG = (i) => {
|
|
72344
|
+
if (KG())
|
|
72342
72345
|
return document.getElementById(Bt);
|
|
72343
72346
|
document.documentElement.classList.add(`${Bt}-busy`);
|
|
72344
72347
|
const e = Et.querySelector(pi.barSelector), t = i ? "-100" : bR(vs || 0);
|
|
@@ -72356,11 +72359,11 @@ var Bt = "nprogress", ro, Et, pi = {
|
|
|
72356
72359
|
} catch {
|
|
72357
72360
|
}
|
|
72358
72361
|
ro || mR().classList.remove(`${Bt}-custom-parent`), Et?.remove();
|
|
72359
|
-
},
|
|
72362
|
+
}, KG = () => document.getElementById(Bt) !== null;
|
|
72360
72363
|
function pR(i, e, t) {
|
|
72361
72364
|
return i < e ? e : i > t ? t : i;
|
|
72362
72365
|
}
|
|
72363
|
-
var bR = (i) => (-1 + i) * 100,
|
|
72366
|
+
var bR = (i) => (-1 + i) * 100, ZG = /* @__PURE__ */ (() => {
|
|
72364
72367
|
const i = [], e = () => {
|
|
72365
72368
|
const t = i.shift();
|
|
72366
72369
|
t && t(e);
|
|
@@ -72368,7 +72371,7 @@ var bR = (i) => (-1 + i) * 100, KG = /* @__PURE__ */ (() => {
|
|
|
72368
72371
|
return (t) => {
|
|
72369
72372
|
i.push(t), i.length === 1 && e();
|
|
72370
72373
|
};
|
|
72371
|
-
})(),
|
|
72374
|
+
})(), YG = (i) => {
|
|
72372
72375
|
const e = document.createElement("style"), t = no.get("nonce");
|
|
72373
72376
|
t && (e.nonce = t), e.textContent = `
|
|
72374
72377
|
#${Bt} {
|
|
@@ -72450,7 +72453,7 @@ var bR = (i) => (-1 + i) * 100, KG = /* @__PURE__ */ (() => {
|
|
|
72450
72453
|
100% { transform: rotate(360deg); }
|
|
72451
72454
|
}
|
|
72452
72455
|
`, document.head.appendChild(e);
|
|
72453
|
-
},
|
|
72456
|
+
}, XG = () => {
|
|
72454
72457
|
if (sf = !1, !!Et?.isConnected)
|
|
72455
72458
|
if (ro)
|
|
72456
72459
|
try {
|
|
@@ -72459,7 +72462,7 @@ var bR = (i) => (-1 + i) * 100, KG = /* @__PURE__ */ (() => {
|
|
|
72459
72462
|
}
|
|
72460
72463
|
else
|
|
72461
72464
|
Et.style.display = "";
|
|
72462
|
-
},
|
|
72465
|
+
}, QG = () => {
|
|
72463
72466
|
if (sf = !0, !!Et?.isConnected)
|
|
72464
72467
|
if (ro)
|
|
72465
72468
|
try {
|
|
@@ -72469,16 +72472,16 @@ var bR = (i) => (-1 + i) * 100, KG = /* @__PURE__ */ (() => {
|
|
|
72469
72472
|
else
|
|
72470
72473
|
Et.style.display = "none";
|
|
72471
72474
|
}, Hn = {
|
|
72472
|
-
configure:
|
|
72475
|
+
configure: WG,
|
|
72473
72476
|
isStarted: dR,
|
|
72474
|
-
done:
|
|
72477
|
+
done: $G,
|
|
72475
72478
|
set: Ef,
|
|
72476
72479
|
remove: gR,
|
|
72477
72480
|
start: hR,
|
|
72478
72481
|
status: vs,
|
|
72479
|
-
show:
|
|
72480
|
-
hide:
|
|
72481
|
-
},
|
|
72482
|
+
show: XG,
|
|
72483
|
+
hide: QG
|
|
72484
|
+
}, JG = class {
|
|
72482
72485
|
hideCount = 0;
|
|
72483
72486
|
start() {
|
|
72484
72487
|
Hn.start();
|
|
@@ -72507,11 +72510,11 @@ var bR = (i) => (-1 + i) * 100, KG = /* @__PURE__ */ (() => {
|
|
|
72507
72510
|
getStatus() {
|
|
72508
72511
|
return Hn.status;
|
|
72509
72512
|
}
|
|
72510
|
-
}, Ip = new
|
|
72513
|
+
}, Ip = new JG(), wR = /* @__PURE__ */ Symbol("FormComponentReset");
|
|
72511
72514
|
function Vb(i) {
|
|
72512
72515
|
return i instanceof HTMLInputElement || i instanceof HTMLSelectElement || i instanceof HTMLTextAreaElement;
|
|
72513
72516
|
}
|
|
72514
|
-
function
|
|
72517
|
+
function eK(i, e) {
|
|
72515
72518
|
const t = i.value, n = i.checked;
|
|
72516
72519
|
switch (i.type.toLowerCase()) {
|
|
72517
72520
|
case "checkbox":
|
|
@@ -72533,7 +72536,7 @@ function JG(i, e) {
|
|
|
72533
72536
|
}
|
|
72534
72537
|
return i.value !== t || i.checked !== n;
|
|
72535
72538
|
}
|
|
72536
|
-
function
|
|
72539
|
+
function tK(i, e) {
|
|
72537
72540
|
const t = i.value, n = Array.from(i.selectedOptions).map((a) => a.value);
|
|
72538
72541
|
if (i.multiple) {
|
|
72539
72542
|
const a = e.map((c) => String(c));
|
|
@@ -72577,16 +72580,16 @@ function Mp(i, e) {
|
|
|
72577
72580
|
return !1;
|
|
72578
72581
|
}
|
|
72579
72582
|
if (i instanceof HTMLInputElement)
|
|
72580
|
-
return JG(i, e);
|
|
72581
|
-
if (i instanceof HTMLSelectElement)
|
|
72582
72583
|
return eK(i, e);
|
|
72584
|
+
if (i instanceof HTMLSelectElement)
|
|
72585
|
+
return tK(i, e);
|
|
72583
72586
|
if (i instanceof HTMLTextAreaElement) {
|
|
72584
72587
|
const t = i.value;
|
|
72585
72588
|
return i.value = e[0] !== void 0 ? String(e[0]) : "", i.value !== t;
|
|
72586
72589
|
}
|
|
72587
72590
|
return !1;
|
|
72588
72591
|
}
|
|
72589
|
-
function
|
|
72592
|
+
function iK(i, e) {
|
|
72590
72593
|
let t = !1;
|
|
72591
72594
|
return i instanceof RadioNodeList || i instanceof HTMLCollection ? Array.from(i).forEach((n, r) => {
|
|
72592
72595
|
if (n instanceof Element && Vb(n))
|
|
@@ -72598,7 +72601,7 @@ function tK(i, e) {
|
|
|
72598
72601
|
}
|
|
72599
72602
|
}) : Vb(i) && (t = Mp(i, e)), t;
|
|
72600
72603
|
}
|
|
72601
|
-
function
|
|
72604
|
+
function nK(i, e, t) {
|
|
72602
72605
|
if (!i)
|
|
72603
72606
|
return;
|
|
72604
72607
|
const n = !t || t.length === 0;
|
|
@@ -72609,15 +72612,15 @@ function iK(i, e, t) {
|
|
|
72609
72612
|
let r = !1;
|
|
72610
72613
|
t.forEach((s) => {
|
|
72611
72614
|
const a = i.elements.namedItem(s);
|
|
72612
|
-
a &&
|
|
72615
|
+
a && iK(a, e.getAll(s)) && (r = !0);
|
|
72613
72616
|
}), r && n && i.dispatchEvent(
|
|
72614
72617
|
new CustomEvent("reset", { bubbles: !0, cancelable: !0, detail: { [wR]: !0 } })
|
|
72615
72618
|
);
|
|
72616
72619
|
}
|
|
72617
|
-
var _t = new
|
|
72620
|
+
var _t = new IG();
|
|
72618
72621
|
var Op = { exports: {} }, Xl = {}, Bp = { exports: {} }, zp = {};
|
|
72619
72622
|
var lE;
|
|
72620
|
-
function
|
|
72623
|
+
function rK() {
|
|
72621
72624
|
return lE || (lE = 1, (function(i) {
|
|
72622
72625
|
function e(x, $) {
|
|
72623
72626
|
var ne = x.length;
|
|
@@ -72837,14 +72840,14 @@ function nK() {
|
|
|
72837
72840
|
})(zp)), zp;
|
|
72838
72841
|
}
|
|
72839
72842
|
var cE;
|
|
72840
|
-
function
|
|
72841
|
-
return cE || (cE = 1, Bp.exports =
|
|
72843
|
+
function sK() {
|
|
72844
|
+
return cE || (cE = 1, Bp.exports = rK()), Bp.exports;
|
|
72842
72845
|
}
|
|
72843
72846
|
var uE;
|
|
72844
|
-
function
|
|
72847
|
+
function oK() {
|
|
72845
72848
|
if (uE) return Xl;
|
|
72846
72849
|
uE = 1;
|
|
72847
|
-
var i =
|
|
72850
|
+
var i = sK(), e = window.React, t = window.ReactDOM;
|
|
72848
72851
|
function n(o) {
|
|
72849
72852
|
var l = "https://react.dev/errors/" + o;
|
|
72850
72853
|
if (1 < arguments.length) {
|
|
@@ -82510,12 +82513,12 @@ Error generating stack: ` + f.message + `
|
|
|
82510
82513
|
}
|
|
82511
82514
|
};
|
|
82512
82515
|
var s_ = e.version;
|
|
82513
|
-
if (s_ !== "19.2.
|
|
82516
|
+
if (s_ !== "19.2.8")
|
|
82514
82517
|
throw Error(
|
|
82515
82518
|
n(
|
|
82516
82519
|
527,
|
|
82517
82520
|
s_,
|
|
82518
|
-
"19.2.
|
|
82521
|
+
"19.2.8"
|
|
82519
82522
|
)
|
|
82520
82523
|
);
|
|
82521
82524
|
$.findDOMNode = function(o) {
|
|
@@ -82526,10 +82529,10 @@ Error generating stack: ` + f.message + `
|
|
|
82526
82529
|
};
|
|
82527
82530
|
var V5 = {
|
|
82528
82531
|
bundleType: 0,
|
|
82529
|
-
version: "19.2.
|
|
82532
|
+
version: "19.2.8",
|
|
82530
82533
|
rendererPackageName: "react-dom",
|
|
82531
82534
|
currentDispatcherRef: x,
|
|
82532
|
-
reconcilerVersion: "19.2.
|
|
82535
|
+
reconcilerVersion: "19.2.8"
|
|
82533
82536
|
};
|
|
82534
82537
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
|
|
82535
82538
|
var pd = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -82575,10 +82578,10 @@ Error generating stack: ` + f.message + `
|
|
|
82575
82578
|
k,
|
|
82576
82579
|
r_
|
|
82577
82580
|
), l.context = K1(null), d = l.current, f = $i(), f = Sf(f), g = Hr(f), g.callback = null, qr(d, g, f), d = f, l.current.lanes = d, Wa(l, d), Vn(l), o[yo] = l.current, wg(o), new gd(l);
|
|
82578
|
-
}, Xl.version = "19.2.
|
|
82581
|
+
}, Xl.version = "19.2.8", Xl;
|
|
82579
82582
|
}
|
|
82580
82583
|
var dE;
|
|
82581
|
-
function
|
|
82584
|
+
function aK() {
|
|
82582
82585
|
if (dE) return Op.exports;
|
|
82583
82586
|
dE = 1;
|
|
82584
82587
|
function i() {
|
|
@@ -82589,9 +82592,9 @@ function oK() {
|
|
|
82589
82592
|
console.error(e);
|
|
82590
82593
|
}
|
|
82591
82594
|
}
|
|
82592
|
-
return i(), Op.exports =
|
|
82595
|
+
return i(), Op.exports = oK(), Op.exports;
|
|
82593
82596
|
}
|
|
82594
|
-
|
|
82597
|
+
aK();
|
|
82595
82598
|
window.React.createElement;
|
|
82596
82599
|
window.React.isValidElement;
|
|
82597
82600
|
window.React.useEffect;
|
|
@@ -82600,30 +82603,30 @@ window.React.useRef;
|
|
|
82600
82603
|
window.React.useState;
|
|
82601
82604
|
window.React.useSyncExternalStore;
|
|
82602
82605
|
window.ReactDOM.flushSync;
|
|
82603
|
-
const
|
|
82604
|
-
var
|
|
82605
|
-
|
|
82606
|
-
const
|
|
82607
|
-
var yR =
|
|
82606
|
+
const lK = window.React.createContext;
|
|
82607
|
+
var cK = lK(null);
|
|
82608
|
+
cK.displayName = "InertiaHeadContext";
|
|
82609
|
+
const uK = window.React.createContext;
|
|
82610
|
+
var yR = uK(null);
|
|
82608
82611
|
yR.displayName = "InertiaPageContext";
|
|
82609
|
-
var
|
|
82612
|
+
var dK = yR;
|
|
82610
82613
|
window.React.createElement;
|
|
82611
82614
|
window.React.StrictMode;
|
|
82612
82615
|
window.React.useEffect;
|
|
82613
82616
|
window.React.useMemo;
|
|
82614
82617
|
window.React.useRef;
|
|
82615
82618
|
window.React.useState;
|
|
82616
|
-
const
|
|
82617
|
-
function
|
|
82618
|
-
const i = dK
|
|
82619
|
+
const hK = window.React.use;
|
|
82620
|
+
function fK() {
|
|
82621
|
+
const i = hK(dK);
|
|
82619
82622
|
if (!i)
|
|
82620
82623
|
throw new Error("usePage must be used within the Inertia component");
|
|
82621
82624
|
return i;
|
|
82622
82625
|
}
|
|
82623
|
-
const hE = window.React,
|
|
82626
|
+
const hE = window.React, mK = window.React.createContext, fE = window.React.createElement, gK = window.React.forwardRef;
|
|
82624
82627
|
window.React.use;
|
|
82625
|
-
const Dp = window.React.useEffect,
|
|
82626
|
-
function
|
|
82628
|
+
const Dp = window.React.useEffect, pK = window.React.useImperativeHandle, mE = window.React.useMemo, gE = window.React.useRef, bK = window.React.useState, pE = window.React.useCallback, wK = window.React.useMemo, Np = window.React.useRef, xi = window.React.useCallback, bE = window.React.useEffect, as = window.React.useRef, qn = window.React.useState;
|
|
82629
|
+
function yK(i) {
|
|
82627
82630
|
const { data: e, useDataState: t, useErrorsState: n } = i, r = typeof e == "function", s = () => r ? e() : e, a = ut(s()), c = as(!1), u = as(i.precognitionEndpoint ?? null), [h, m] = qn(ut(a)), [p, w] = t ? t() : qn(ut(a)), [y, _] = n ? n() : qn({}), [C, A] = qn(!1), [L, U] = qn(null), [J, ie] = qn(!1), [me, z] = qn(!1), G = as(void 0), q = as((ae) => ae), K = as(!1), Y = as(null), [W, j] = qn(!1), [ee, oe] = qn([]), [Re, x] = qn([]), $ = as(null), ne = () => $.current ?? of.get("form.withAllErrors"), re = as(p);
|
|
82628
82631
|
bE(() => {
|
|
82629
82632
|
re.current = p;
|
|
@@ -82742,7 +82745,7 @@ function wK(i) {
|
|
|
82742
82745
|
return he;
|
|
82743
82746
|
}, Di = (...ae) => {
|
|
82744
82747
|
if (u.current = rf.createWayfinderCallback(...ae), !Y.current) {
|
|
82745
|
-
const fe =
|
|
82748
|
+
const fe = P$(
|
|
82746
82749
|
(et) => {
|
|
82747
82750
|
const { method: ri, url: en } = u.current(), mt = re.current, Qn = q.current(mt);
|
|
82748
82751
|
return et[ri](en, Qn);
|
|
@@ -82756,7 +82759,7 @@ function wK(i) {
|
|
|
82756
82759
|
}).on("touchedChanged", () => {
|
|
82757
82760
|
oe(fe.touched());
|
|
82758
82761
|
}).on("errorsChanged", () => {
|
|
82759
|
-
const et = ne() ? fe.errors() :
|
|
82762
|
+
const et = ne() ? fe.errors() : I$(fe.errors());
|
|
82760
82763
|
_(et), x(fe.valid());
|
|
82761
82764
|
});
|
|
82762
82765
|
}
|
|
@@ -82803,13 +82806,13 @@ function wK(i) {
|
|
|
82803
82806
|
}
|
|
82804
82807
|
};
|
|
82805
82808
|
}
|
|
82806
|
-
const
|
|
82809
|
+
const vK = window.React.useEffect, _K = window.React.useState;
|
|
82807
82810
|
function wE(i, e, t) {
|
|
82808
|
-
const [n, r] =
|
|
82811
|
+
const [n, r] = _K(() => {
|
|
82809
82812
|
const s = _t.restore(e);
|
|
82810
82813
|
return s !== void 0 ? s : i;
|
|
82811
82814
|
});
|
|
82812
|
-
return
|
|
82815
|
+
return vK(() => {
|
|
82813
82816
|
const s = t?.current;
|
|
82814
82817
|
if (s && s.length > 0 && typeof n == "object" && n !== null) {
|
|
82815
82818
|
const a = { ...n };
|
|
@@ -82818,7 +82821,7 @@ function wE(i, e, t) {
|
|
|
82818
82821
|
_t.remember(n, e);
|
|
82819
82822
|
}, [n, e]), [n, r];
|
|
82820
82823
|
}
|
|
82821
|
-
function
|
|
82824
|
+
function kK(...i) {
|
|
82822
82825
|
const { rememberKey: e, data: t, precognitionEndpoint: n } = rf.parseUseFormArguments(...i), r = ut(typeof t == "function" ? t() : t), s = Np(null), a = Np([]), c = Np(null), u = e ? () => wE(r, `${e}:data`, a) : void 0, h = e ? () => wE({}, `${e}:errors`) : void 0, {
|
|
82823
82826
|
form: m,
|
|
82824
82827
|
setDefaultsState: p,
|
|
@@ -82834,7 +82837,7 @@ function _K(...i) {
|
|
|
82834
82837
|
defaultsCalledInOnSuccessRef: me,
|
|
82835
82838
|
resetBeforeSubmit: z,
|
|
82836
82839
|
finishProcessing: G
|
|
82837
|
-
} =
|
|
82840
|
+
} = yK({
|
|
82838
82841
|
data: t,
|
|
82839
82842
|
precognitionEndpoint: n,
|
|
82840
82843
|
useDataState: u,
|
|
@@ -82865,7 +82868,7 @@ function _K(...i) {
|
|
|
82865
82868
|
[J, ie, w]
|
|
82866
82869
|
), K = pE(() => {
|
|
82867
82870
|
s.current && s.current.cancel();
|
|
82868
|
-
}, []), Y =
|
|
82871
|
+
}, []), Y = wK(
|
|
82869
82872
|
() => ({
|
|
82870
82873
|
get: (ee, oe = {}) => q("get", ee, oe),
|
|
82871
82874
|
post: (ee, oe = {}) => q("post", ee, oe),
|
|
@@ -82885,10 +82888,10 @@ function _K(...i) {
|
|
|
82885
82888
|
const W = m, j = m.withPrecognition;
|
|
82886
82889
|
return W.withPrecognition = (...ee) => (j(...ee), W), y.current, W;
|
|
82887
82890
|
}
|
|
82888
|
-
var
|
|
82891
|
+
var CK = (i) => {
|
|
82889
82892
|
typeof hE.startTransition == "function" ? hE.startTransition(i) : setTimeout(i, 0);
|
|
82890
82893
|
}, vr = () => {
|
|
82891
|
-
},
|
|
82894
|
+
}, TK = mK(void 0), EK = gK(
|
|
82892
82895
|
({
|
|
82893
82896
|
action: i = "",
|
|
82894
82897
|
method: e = "get",
|
|
@@ -82924,18 +82927,18 @@ var kK = (i) => {
|
|
|
82924
82927
|
const Re = () => {
|
|
82925
82928
|
const [he, ve] = Ue();
|
|
82926
82929
|
return a(ve);
|
|
82927
|
-
}, x =
|
|
82930
|
+
}, x = kK({}).withPrecognition(
|
|
82928
82931
|
() => ne,
|
|
82929
82932
|
() => Ue()[0]
|
|
82930
82933
|
).setValidationTimeout(q);
|
|
82931
82934
|
G && x.validateFiles(), (K ?? no.get("form.withAllErrors")) && x.withAllErrors(), x.transform(Re);
|
|
82932
|
-
const $ = gE(void 0), ne = mE(() => Mn(i) ? i.method : e.toLowerCase(), [i, e]), re = mE(() => Y || (W && Mn(i) ? tR(i) : null), [Y, W, i]), [ye, De] =
|
|
82935
|
+
const $ = gE(void 0), ne = mE(() => Mn(i) ? i.method : e.toLowerCase(), [i, e]), re = mE(() => Y || (W && Mn(i) ? tR(i) : null), [Y, W, i]), [ye, De] = bK(!1), Se = gE(new FormData()), be = (he) => new FormData($.current, he), Pe = (he) => oE(be(he)), Ue = (he) => Cf(
|
|
82933
82936
|
ne,
|
|
82934
82937
|
Mn(i) ? i.url : i,
|
|
82935
82938
|
Pe(he),
|
|
82936
82939
|
n
|
|
82937
82940
|
), At = (he) => {
|
|
82938
|
-
he.type === "reset" && he.detail?.[wR] && he.preventDefault(),
|
|
82941
|
+
he.type === "reset" && he.detail?.[wR] && he.preventDefault(), CK(
|
|
82939
82942
|
() => De(he.type === "reset" ? !1 : !bs(Pe(), oE(Se.current)))
|
|
82940
82943
|
);
|
|
82941
82944
|
}, ni = (...he) => (x.clearErrors(...he), x);
|
|
@@ -82951,7 +82954,7 @@ var kK = (i) => {
|
|
|
82951
82954
|
G ? x.validateFiles() : x.withoutFileValidation();
|
|
82952
82955
|
}, [G]);
|
|
82953
82956
|
const ft = (...he) => {
|
|
82954
|
-
$.current &&
|
|
82957
|
+
$.current && nK($.current, Se.current, he), x.reset(...he);
|
|
82955
82958
|
}, xt = (...he) => {
|
|
82956
82959
|
ni(...he), ft(...he);
|
|
82957
82960
|
}, Nt = (he) => {
|
|
@@ -83016,7 +83019,7 @@ var kK = (i) => {
|
|
|
83016
83019
|
touch: x.touch,
|
|
83017
83020
|
touched: x.touched
|
|
83018
83021
|
};
|
|
83019
|
-
|
|
83022
|
+
pK(oe, () => zi, [x, ye, Ke]);
|
|
83020
83023
|
const kt = fE(
|
|
83021
83024
|
"form",
|
|
83022
83025
|
{
|
|
@@ -83031,15 +83034,15 @@ var kK = (i) => {
|
|
|
83031
83034
|
},
|
|
83032
83035
|
typeof j == "function" ? j(zi) : j
|
|
83033
83036
|
);
|
|
83034
|
-
return fE(
|
|
83037
|
+
return fE(TK.Provider, { value: zi }, kt);
|
|
83035
83038
|
}
|
|
83036
83039
|
);
|
|
83037
|
-
|
|
83040
|
+
EK.displayName = "InertiaForm";
|
|
83038
83041
|
window.React.use;
|
|
83039
83042
|
window.React.useEffect;
|
|
83040
83043
|
window.React.useMemo;
|
|
83041
|
-
const
|
|
83042
|
-
var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current : typeof i == "string" ? document.querySelector(i) : e : e, qd = (i, e, t = null) => i ? typeof i == "function" ? i(e) : i : t,
|
|
83044
|
+
const LK = window.React, Ud = window.React.createElement, SK = window.React.forwardRef, Hd = window.React.useCallback, da = window.React.useEffect, AK = window.React.useImperativeHandle, Ql = window.React.useMemo, xK = window.React.useRef, fn = window.React.useState;
|
|
83045
|
+
var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current : typeof i == "string" ? document.querySelector(i) : e : e, qd = (i, e, t = null) => i ? typeof i == "function" ? i(e) : i : t, RK = SK(
|
|
83043
83046
|
({
|
|
83044
83047
|
data: i,
|
|
83045
83048
|
buffer: e = 0,
|
|
@@ -83061,7 +83064,7 @@ var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current :
|
|
|
83061
83064
|
onlyPrevious: L = !1,
|
|
83062
83065
|
...U
|
|
83063
83066
|
}, J) => {
|
|
83064
|
-
const [ie, me] = fn(null), z = Hd((Rt) => me(Rt), []), [G, q] = fn(null), K = Hd((Rt) => q(Rt), []), [Y, W] = fn(null), j = Hd((Rt) => W(Rt), []), ee =
|
|
83067
|
+
const [ie, me] = fn(null), z = Hd((Rt) => me(Rt), []), [G, q] = fn(null), K = Hd((Rt) => q(Rt), []), [Y, W] = fn(null), j = Hd((Rt) => W(Rt), []), ee = fK().scrollProps?.[i], [oe, Re] = fn(!1), [x, $] = fn(!1), [ne, re] = fn(0), [ye, De] = fn(!!ee?.previousPage), [Se, be] = fn(!!ee?.nextPage), [Pe, Ue] = fn(null), [At, ni] = fn(null), [ft, xt] = fn(null);
|
|
83065
83068
|
da(() => {
|
|
83066
83069
|
const Rt = h ? Vp(h, ie) : ie;
|
|
83067
83070
|
Ue(Rt);
|
|
@@ -83072,7 +83075,7 @@ var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current :
|
|
|
83072
83075
|
const Rt = p ? Vp(p, Y) : Y;
|
|
83073
83076
|
xt(Rt);
|
|
83074
83077
|
}, [p, Y]);
|
|
83075
|
-
const Nt = Ql(() =>
|
|
83078
|
+
const Nt = Ql(() => iG(ft), [ft]), Ke = xK({
|
|
83076
83079
|
buffer: e,
|
|
83077
83080
|
onlyNext: A,
|
|
83078
83081
|
onlyPrevious: L,
|
|
@@ -83103,7 +83106,7 @@ var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current :
|
|
|
83103
83106
|
function Rt() {
|
|
83104
83107
|
re(Jn.dataManager.getRequestCount()), De(Jn.dataManager.hasPrevious()), be(Jn.dataManager.hasNext());
|
|
83105
83108
|
}
|
|
83106
|
-
const Jn =
|
|
83109
|
+
const Jn = jG({
|
|
83107
83110
|
// Data
|
|
83108
83111
|
getPropName: () => i,
|
|
83109
83112
|
inReverseMode: () => Ke.current.reverse,
|
|
@@ -83142,7 +83145,7 @@ var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current :
|
|
|
83142
83145
|
ae ? he?.enableTriggers() : he?.disableTriggers();
|
|
83143
83146
|
}, [ae, A, L, Pe, At]), da(() => {
|
|
83144
83147
|
(c !== void 0 ? c : a) && ve();
|
|
83145
|
-
}, [Nt]),
|
|
83148
|
+
}, [Nt]), AK(
|
|
83146
83149
|
J,
|
|
83147
83150
|
() => ({
|
|
83148
83151
|
fetchNext: kt?.fetchNext || (() => {
|
|
@@ -83200,13 +83203,13 @@ var Vp = (i, e) => i ? i && typeof i == "object" && "current" in i ? i.current :
|
|
|
83200
83203
|
// Render next slot or fallback to loading indicator
|
|
83201
83204
|
qd(y, en, x ? qd(_, en) : null)
|
|
83202
83205
|
)
|
|
83203
|
-
), Ud(
|
|
83206
|
+
), Ud(LK.Fragment, {}, ...a ? [...Qn].reverse() : Qn);
|
|
83204
83207
|
}
|
|
83205
83208
|
);
|
|
83206
|
-
|
|
83207
|
-
const
|
|
83209
|
+
RK.displayName = "InertiaInfiniteScroll";
|
|
83210
|
+
const PK = window.React.createElement, IK = window.React.forwardRef, yE = window.React.useEffect, mn = window.React.useMemo, MK = window.React.useRef, OK = window.React.useState;
|
|
83208
83211
|
var Ln = () => {
|
|
83209
|
-
},
|
|
83212
|
+
}, BK = IK(
|
|
83210
83213
|
({
|
|
83211
83214
|
children: i,
|
|
83212
83215
|
as: e = "a",
|
|
@@ -83242,7 +83245,7 @@ var Ln = () => {
|
|
|
83242
83245
|
pageProps: Re = null,
|
|
83243
83246
|
...x
|
|
83244
83247
|
}, $) => {
|
|
83245
|
-
const [ne, re] =
|
|
83248
|
+
const [ne, re] = OK(0), ye = MK(void 0), De = mn(() => Mn(n) ? n.method : r.toLowerCase(), [n, r]), Se = mn(() => ee || (oe && Mn(n) ? tR(n) : null), [ee, oe, n]), be = mn(() => typeof e != "string" || e.toLowerCase() !== "a" ? e : De !== "get" ? "button" : e.toLowerCase(), [e, De]), Pe = mn(
|
|
83246
83249
|
() => Cf(De, Mn(n) ? n.url : n, t, w),
|
|
83247
83250
|
[n, De, t, w]
|
|
83248
83251
|
), Ue = mn(() => Pe[0], [Pe]), At = mn(() => Pe[1], [Pe]), ni = mn(
|
|
@@ -83353,7 +83356,7 @@ var Ln = () => {
|
|
|
83353
83356
|
_(ve), Fd(ve) && ve.preventDefault();
|
|
83354
83357
|
}
|
|
83355
83358
|
}, he = mn(() => be === "button" ? { type: "button" } : be === "a" || typeof be != "string" ? { href: Ue } : {}, [be, Ue]);
|
|
83356
|
-
return
|
|
83359
|
+
return PK(
|
|
83357
83360
|
be,
|
|
83358
83361
|
{
|
|
83359
83362
|
...x,
|
|
@@ -83366,7 +83369,7 @@ var Ln = () => {
|
|
|
83366
83369
|
);
|
|
83367
83370
|
}
|
|
83368
83371
|
);
|
|
83369
|
-
|
|
83372
|
+
BK.displayName = "InertiaLink";
|
|
83370
83373
|
window.React.useCallback;
|
|
83371
83374
|
window.React.useMemo;
|
|
83372
83375
|
window.React.useRef;
|
|
@@ -83389,7 +83392,7 @@ const vR = {
|
|
|
83389
83392
|
}, _R = (i) => ({
|
|
83390
83393
|
...i ?? {},
|
|
83391
83394
|
_ts: Date.now()
|
|
83392
|
-
}),
|
|
83395
|
+
}), zK = (i) => {
|
|
83393
83396
|
if (i === "")
|
|
83394
83397
|
return "";
|
|
83395
83398
|
try {
|
|
@@ -83402,17 +83405,17 @@ const vR = {
|
|
|
83402
83405
|
return !1;
|
|
83403
83406
|
const e = i.trim().toLowerCase();
|
|
83404
83407
|
return e.startsWith("<!doctype html") || e.startsWith("<html") || e.startsWith("<");
|
|
83405
|
-
},
|
|
83408
|
+
}, DK = (i) => {
|
|
83406
83409
|
const e = {};
|
|
83407
83410
|
return i.forEach((t, n) => {
|
|
83408
83411
|
e[n.toLowerCase()] = t;
|
|
83409
83412
|
}), e;
|
|
83410
|
-
},
|
|
83413
|
+
}, NK = (i) => {
|
|
83411
83414
|
if (typeof document > "u")
|
|
83412
83415
|
return;
|
|
83413
83416
|
const e = document.cookie.split("; ").find((t) => t.startsWith(`${encodeURIComponent(i)}=`));
|
|
83414
83417
|
return e ? decodeURIComponent(e.split("=").slice(1).join("=")) : void 0;
|
|
83415
|
-
},
|
|
83418
|
+
}, VK = (i, e) => {
|
|
83416
83419
|
const t = new URL(i, window.location.origin);
|
|
83417
83420
|
return Object.entries(_R(e)).forEach(([n, r]) => {
|
|
83418
83421
|
if (r != null) {
|
|
@@ -83423,20 +83426,20 @@ const vR = {
|
|
|
83423
83426
|
t.searchParams.set(n, String(r));
|
|
83424
83427
|
}
|
|
83425
83428
|
}), `${t.pathname}${t.search}${t.hash}`;
|
|
83426
|
-
},
|
|
83427
|
-
const r =
|
|
83429
|
+
}, FK = async (i, e, t, n) => {
|
|
83430
|
+
const r = NK("XSRF-TOKEN"), s = new Headers(vR);
|
|
83428
83431
|
s.set("X-Requested-With", "XMLHttpRequest"), r && s.set("x-xsrf-token", r), Object.entries(n?.headers ?? {}).forEach(([p, w]) => {
|
|
83429
83432
|
w != null && s.set(p, String(w));
|
|
83430
83433
|
});
|
|
83431
83434
|
let a;
|
|
83432
83435
|
t instanceof FormData ? a = t : t != null && (a = typeof t == "string" ? t : JSON.stringify(t), s.has("Content-Type") || s.set("Content-Type", "application/json"));
|
|
83433
|
-
const c = await fetch(
|
|
83436
|
+
const c = await fetch(VK(e, n?.params), {
|
|
83434
83437
|
method: i.toUpperCase(),
|
|
83435
83438
|
body: a,
|
|
83436
83439
|
headers: s,
|
|
83437
83440
|
credentials: "same-origin",
|
|
83438
83441
|
signal: n?.signal
|
|
83439
|
-
}), u =
|
|
83442
|
+
}), u = DK(c.headers);
|
|
83440
83443
|
let h;
|
|
83441
83444
|
switch (n?.responseType) {
|
|
83442
83445
|
case "arraybuffer":
|
|
@@ -83463,7 +83466,7 @@ const vR = {
|
|
|
83463
83466
|
return m;
|
|
83464
83467
|
}, ya = async (i, e, t, n) => {
|
|
83465
83468
|
if (n?.responseType && n.responseType !== "json" && n.responseType !== "text")
|
|
83466
|
-
return
|
|
83469
|
+
return FK(i, e, t, n);
|
|
83467
83470
|
const r = await sR.getClient().request({
|
|
83468
83471
|
method: i,
|
|
83469
83472
|
url: e,
|
|
@@ -83476,7 +83479,7 @@ const vR = {
|
|
|
83476
83479
|
signal: n?.signal
|
|
83477
83480
|
});
|
|
83478
83481
|
return {
|
|
83479
|
-
data:
|
|
83482
|
+
data: zK(r.data),
|
|
83480
83483
|
status: r.status,
|
|
83481
83484
|
headers: r.headers
|
|
83482
83485
|
};
|
|
@@ -83494,7 +83497,7 @@ const vR = {
|
|
|
83494
83497
|
"Server returned HTML instead of JSON. Most likely auth session expired. Please reload the page and log in again."
|
|
83495
83498
|
) : r;
|
|
83496
83499
|
}
|
|
83497
|
-
},
|
|
83500
|
+
}, UK = {
|
|
83498
83501
|
get: (i, e) => ya("get", i, void 0, e),
|
|
83499
83502
|
post: (i, e, t) => ya("post", i, e, t),
|
|
83500
83503
|
put: (i, e, t) => ya("put", i, e, t),
|
|
@@ -83506,7 +83509,7 @@ const vR = {
|
|
|
83506
83509
|
patchJson: (i, e, t) => Jl("patch", i, e, t),
|
|
83507
83510
|
deleteJson: (i, e, t) => Jl("delete", i, e, t)
|
|
83508
83511
|
};
|
|
83509
|
-
class
|
|
83512
|
+
class HK {
|
|
83510
83513
|
loader;
|
|
83511
83514
|
url;
|
|
83512
83515
|
constructor(e, t) {
|
|
@@ -83517,7 +83520,7 @@ class UK {
|
|
|
83517
83520
|
let t = await this.loader.file;
|
|
83518
83521
|
e.append("name", t.name), e.append("file", t);
|
|
83519
83522
|
try {
|
|
83520
|
-
let n = await
|
|
83523
|
+
let n = await UK.post(this.url, e);
|
|
83521
83524
|
return {
|
|
83522
83525
|
default: {
|
|
83523
83526
|
msg: n.data.msg,
|
|
@@ -83529,7 +83532,7 @@ class UK {
|
|
|
83529
83532
|
}
|
|
83530
83533
|
}
|
|
83531
83534
|
}
|
|
83532
|
-
class
|
|
83535
|
+
class qK extends N {
|
|
83533
83536
|
static get requires() {
|
|
83534
83537
|
return ["ImageUpload"];
|
|
83535
83538
|
}
|
|
@@ -83537,11 +83540,11 @@ class HK extends N {
|
|
|
83537
83540
|
const e = this.editor, t = window.location.pathname.split("/").filter((s) => s !== ""), n = t.indexOf("model"), r = n >= 0 ? t[n + 1] : void 0;
|
|
83538
83541
|
e.plugins.get("FileRepository").createUploadAdapter = (s) => {
|
|
83539
83542
|
const a = `${window.routePrefix}/model/${r}/ckeditor5/upload`;
|
|
83540
|
-
return new
|
|
83543
|
+
return new HK(s, a);
|
|
83541
83544
|
};
|
|
83542
83545
|
}
|
|
83543
83546
|
}
|
|
83544
|
-
const
|
|
83547
|
+
const jK = window.React.useState, _E = window.React.useEffect, WK = window.React.useRef, $K = window.React.useMemo, kE = window.React.useCallback, CE = {
|
|
83545
83548
|
pl: OW,
|
|
83546
83549
|
ar: BW,
|
|
83547
83550
|
zn: zW,
|
|
@@ -83554,11 +83557,11 @@ const qK = window.React.useState, _E = window.React.useEffect, jK = window.React
|
|
|
83554
83557
|
ru: qW,
|
|
83555
83558
|
vi: jW,
|
|
83556
83559
|
en: WW
|
|
83557
|
-
},
|
|
83560
|
+
}, GK = document.documentElement.lang, TE = CE[GK] || CE.en;
|
|
83558
83561
|
function kR({ initialValue: i, onChange: e, options: t, disabled: n }) {
|
|
83559
|
-
const r =
|
|
83562
|
+
const r = WK(null), [s, a] = jK(!1);
|
|
83560
83563
|
_E(() => (a(!0), () => a(!1)), []);
|
|
83561
|
-
const c =
|
|
83564
|
+
const c = $K(() => s ? {
|
|
83562
83565
|
translations: [TE],
|
|
83563
83566
|
toolbar: {
|
|
83564
83567
|
items: t?.items ?? [],
|
|
@@ -83581,7 +83584,7 @@ function kR({ initialValue: i, onChange: e, options: t, disabled: n }) {
|
|
|
83581
83584
|
Vw,
|
|
83582
83585
|
p9,
|
|
83583
83586
|
px,
|
|
83584
|
-
|
|
83587
|
+
qK,
|
|
83585
83588
|
G8,
|
|
83586
83589
|
oF,
|
|
83587
83590
|
tH,
|
|
@@ -83660,8 +83663,8 @@ function kR({ initialValue: i, onChange: e, options: t, disabled: n }) {
|
|
|
83660
83663
|
}
|
|
83661
83664
|
) }) }) }) });
|
|
83662
83665
|
}
|
|
83663
|
-
const
|
|
83664
|
-
function
|
|
83666
|
+
const fZ = kR;
|
|
83667
|
+
function mZ({
|
|
83665
83668
|
initialValue: i,
|
|
83666
83669
|
options: e,
|
|
83667
83670
|
onChange: t,
|
|
@@ -83678,6 +83681,6 @@ function fZ({
|
|
|
83678
83681
|
);
|
|
83679
83682
|
}
|
|
83680
83683
|
export {
|
|
83681
|
-
|
|
83682
|
-
|
|
83684
|
+
fZ as Component,
|
|
83685
|
+
mZ as default
|
|
83683
83686
|
};
|