diff --git a/CHANGELOG.md b/CHANGELOG.md
index a4835b31..5cd65955 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
- Fixed a bug where grouped toolbar items from third-party packages weren’t matched against the field’s toolbar.
- Fixed a bug where all of a package’s toolbar items were shown as a single group in the toolbar builder, instead of as separately-placeable items and groups.
- Fixed a bug where the “Displayed text” value was ignored when inserting a new element link, and the element’s title was used instead. ([#617](https://github.com/craftcms/ckeditor/pull/617))
+- Fixed a bug where links’ types would change to “URL” if a URL suffix was entered before an element was chosen. ([#619](https://github.com/craftcms/ckeditor/issues/619), [#624](https://github.com/craftcms/ckeditor/pull/624))
## 5.7.0 - 2026-08-10
diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
index a3054f49..704d0a61 100644
--- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
+++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js
@@ -17,49 +17,49 @@ class td extends lu {
this._form,
"submit",
() => {
- const k = this._form.labeledInput.fieldView, v = this.editor.commands.get("imageTextAlternative").value || "";
- Ic.test(v) && k.element.value === this._visibleAltText(v) && (k.value = k.element.value = v);
+ const b = this._form.labeledInput.fieldView, v = this.editor.commands.get("imageTextAlternative").value || "";
+ Ic.test(v) && b.element.value === this._visibleAltText(v) && (b.value = b.element.value = v);
},
{ priority: "high" }
);
}
_showForm() {
super._showForm();
- const k = this._form.labeledInput.fieldView, v = this._visibleAltText(k.element.value);
- k.value = k.element.value = v, this._syncButton.isEnabled = !!this._srcInfo(this._selectedImage()), k.select();
+ const b = this._form.labeledInput.fieldView, v = this._visibleAltText(b.element.value);
+ b.value = b.element.value = v, this._syncButton.isEnabled = !!this._srcInfo(this._selectedImage()), b.select();
}
- _visibleAltText(k) {
- return k.replace(Ic, "");
+ _visibleAltText(b) {
+ return b.replace(Ic, "");
}
_selectedImage() {
return this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(
this.editor.model.document.selection
);
}
- _srcInfo(k) {
- if (!k || !k.hasAttribute("src"))
+ _srcInfo(b) {
+ if (!b || !b.hasAttribute("src"))
return null;
- const v = k.getAttribute("src").match(Tu);
+ const v = b.getAttribute("src").match(Tu);
return v ? {
assetId: v[1],
siteId: v[2] ?? null
} : null;
}
_createSyncButton() {
- const k = this.editor, v = new Jo(k.locale);
+ const b = this.editor, v = new Jo(b.locale);
v.set({
label: Craft.t("ckeditor", "Sync from asset"),
withText: !0,
class: "btn"
}), v.render(), this.listenTo(v, "execute", () => this._syncFromAsset());
- const T = new cu(k.locale, {
+ const T = new cu(b.locale, {
children: [v]
});
this._form.children.add(T), this._form.focusTracker.add(v.element), this._form._focusables.add(v), this._syncButton = v, this._syncButtonRow = T;
}
async _syncFromAsset() {
var f, _;
- const k = this._selectedImage(), v = this._srcInfo(k);
+ const b = this._selectedImage(), v = this._srcInfo(b);
if (!v)
return;
let T;
@@ -119,8 +119,8 @@ class nd extends uu {
);
return;
}
- const k = this.editor.ui.componentFactory, v = (T) => this._createToolbarImageButton(T);
- k.add("insertImage", v), k.add("imageInsert", v), this._attachUploader();
+ const b = this.editor.ui.componentFactory, v = (T) => this._createToolbarImageButton(T);
+ b.add("insertImage", v), b.add("imageInsert", v), this._attachUploader();
}
get _imageMode() {
return this.editor.config.get("imageMode");
@@ -144,20 +144,20 @@ class nd extends uu {
"form,.lp-editor-container"
).data("elementEditor");
}
- _createToolbarImageButton(k) {
- const v = this.editor, T = v.t, O = new Jo(k);
+ _createToolbarImageButton(b) {
+ const v = this.editor, T = v.t, O = new Jo(b);
O.isEnabled = !0, O.label = T("Insert image"), O.icon = du, O.tooltip = !0;
const K = v.commands.get("insertImage");
return O.bind("isEnabled").to(K), this.listenTo(O, "execute", () => this._showImageSelectModal()), O;
}
_showImageSelectModal() {
- const k = this._imageSources, v = this.editor, T = v.config, O = Object.assign({}, T.get("assetSelectionCriteria"), {
+ const b = this._imageSources, v = this.editor, T = v.config, O = Object.assign({}, T.get("assetSelectionCriteria"), {
kind: "image"
});
Craft.createElementSelectorModal("craft\\elements\\Asset", {
...this._imageModalSettings,
storageKey: `ckeditor:${this.pluginName}:'craft\\elements\\Asset'`,
- sources: k,
+ sources: b,
criteria: O,
defaultSiteId: T.get("elementSiteId"),
transforms: T.get("transforms"),
@@ -174,16 +174,16 @@ class nd extends uu {
closeOtherModals: !1
});
}
- async _processSelectedAssets(k, v) {
- if (!k.length)
+ async _processSelectedAssets(b, v) {
+ if (!b.length)
return;
if (this._imageMode === "entries") {
- for (const i of k)
+ for (const i of b)
await this._createImageEntry(i.id);
return;
}
const T = this.editor, O = T.config.get("defaultTransform"), K = [];
- for (const i of k) {
+ for (const i of b) {
const u = i.siteId ?? T.config.get("elementSiteId"), f = `${i.$element.data("alt") ?? ""}#asset:${i.id}${u ? `@${u}` : ""}:alt`, _ = this._isTransformUrl(i.url);
if (!_ && O) {
const d = await this._getTransformUrl(i.id, O);
@@ -199,7 +199,7 @@ class nd extends uu {
}
T.execute("insertImage", { source: K });
}
- async _createImageEntry(k) {
+ async _createImageEntry(b) {
const v = this.editor, T = this._elementEditor, O = $(v.sourceElement).attr("name");
T && O && await T.setFormValue(O, "*");
const K = v.config.get(
@@ -218,7 +218,7 @@ class nd extends uu {
{
data: {
...i,
- assetIds: [k]
+ assetIds: [b]
}
}
);
@@ -230,16 +230,16 @@ class nd extends uu {
siteId: u.data.siteId
});
}
- _buildAssetUrl(k, v, T) {
- return `${v}#asset:${k}:${T ? "transform:" + T : "url"}`;
+ _buildAssetUrl(b, v, T) {
+ return `${v}#asset:${b}:${T ? "transform:" + T : "url"}`;
}
- _removeTransformFromUrl(k) {
- return k.replace(/(^|\/)_[^\/]+(\/\d+)?\/([^\/]+)$/, "$1$3");
+ _removeTransformFromUrl(b) {
+ return b.replace(/(^|\/)_[^\/]+(\/\d+)?\/([^\/]+)$/, "$1$3");
}
- _isTransformUrl(k) {
- return /(^|\/)_[^\/]+(\/\d+)?(\/[^\/]+)$/.test(k);
+ _isTransformUrl(b) {
+ return /(^|\/)_[^\/]+(\/\d+)?(\/[^\/]+)$/.test(b);
}
- async _getTransformUrl(k, v) {
+ async _getTransformUrl(b, v) {
let T;
try {
T = await Craft.sendActionRequest(
@@ -247,7 +247,7 @@ class nd extends uu {
"ckeditor/ckeditor/image-url",
{
data: {
- assetId: k,
+ assetId: b,
transform: v
}
}
@@ -255,10 +255,10 @@ class nd extends uu {
} catch {
alert("There was an error generating the transform URL.");
}
- return this._buildAssetUrl(k, T.data.url, v);
+ return this._buildAssetUrl(b, T.data.url, v);
}
- _getAssetUrlComponents(k) {
- const v = k.match(
+ _getAssetUrlComponents(b) {
+ const v = b.match(
/(.*)#asset:(\d+):(url|transform):?([a-zA-Z][a-zA-Z0-9_]*)?/
);
return v ? {
@@ -271,14 +271,14 @@ class nd extends uu {
* Attach the uploader with drag event handler
*/
_attachUploader() {
- const k = this.editor, v = k.config.get("defaultUploadFolderId");
- v && (this.$container = $(k.sourceElement).closest(".input"), this.progressBar = new Craft.ProgressBar(
+ const b = this.editor, v = b.config.get("defaultUploadFolderId");
+ v && (this.$container = $(b.sourceElement).closest(".input"), this.progressBar = new Craft.ProgressBar(
$('
').appendTo(this.$container)
), this.$fileInput = $("", {
type: "file",
class: "hidden",
multiple: !0
- }).insertAfter(k.sourceElement), this.uploader = Craft.createUploader(null, this.$container, {
+ }).insertAfter(b.sourceElement), this.uploader = Craft.createUploader(null, this.$container, {
dropZone: this.$container,
fileInput: this.$fileInput,
allowedKinds: ["image"],
@@ -291,15 +291,15 @@ class nd extends uu {
}
}), this.uploader.setParams({
folderId: v,
- siteId: k.config.get("elementSiteId")
- }), k.editing.view.document.on(
+ siteId: b.config.get("elementSiteId")
+ }), b.editing.view.document.on(
"drop",
async (T, O) => {
- k.editing.view, k.model;
- const K = k.editing.mapper, i = O.dropRange;
+ b.editing.view, b.model;
+ const K = b.editing.mapper, i = O.dropRange;
if (i) {
const u = i.start, f = K.toModelPosition(u);
- k.model.change((_) => {
+ b.model.change((_) => {
_.setSelection(f, 0);
});
}
@@ -318,16 +318,16 @@ class nd extends uu {
/**
* On upload progress.
*/
- _onUploadProgress(k, v = null) {
- v = k instanceof CustomEvent ? k.detail : v;
+ _onUploadProgress(b, v = null) {
+ v = b instanceof CustomEvent ? b.detail : v;
var T = parseInt(Math.min(v.loaded / v.total, 1) * 100, 10);
this.progressBar.setProgressPercentage(T);
}
/**
* On a file being uploaded.
*/
- async _onUploadComplete(k, v = null) {
- const T = k instanceof CustomEvent ? k.detail : v.result;
+ async _onUploadComplete(b, v = null) {
+ const T = b instanceof CustomEvent ? b.detail : v.result;
if (this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"), this._imageMode === "entries") {
await this._createImageEntry(T.assetId);
return;
@@ -343,9 +343,9 @@ class nd extends uu {
/**
* On Upload Failure.
*/
- _onUploadFailure(k, v = null) {
+ _onUploadFailure(b, v = null) {
var f, _;
- const T = k instanceof CustomEvent ? k.detail : (f = v == null ? void 0 : v.jqXHR) == null ? void 0 : f.responseJSON;
+ const T = b instanceof CustomEvent ? b.detail : (f = v == null ? void 0 : v.jqXHR) == null ? void 0 : f.responseJSON;
let { message: O, filename: K, errors: i } = T || {};
K = K || ((_ = v == null ? void 0 : v.files) == null ? void 0 : _[0].name);
let u = i ? Object.values(i).flat() : [];
@@ -360,21 +360,21 @@ class nd extends uu {
*/
class Ou extends El {
refresh() {
- const k = this._element(), v = this._srcInfo(k);
+ const b = this._element(), v = this._srcInfo(b);
this.isEnabled = !!v, v ? this.value = {
transform: v.transform
} : this.value = null;
}
_element() {
- const k = this.editor;
- return k.plugins.get("ImageUtils").getClosestSelectedImageElement(
- k.model.document.selection
+ const b = this.editor;
+ return b.plugins.get("ImageUtils").getClosestSelectedImageElement(
+ b.model.document.selection
);
}
- _srcInfo(k) {
- if (!k || !k.hasAttribute("src"))
+ _srcInfo(b) {
+ if (!b || !b.hasAttribute("src"))
return null;
- const v = k.getAttribute("src"), T = v.match(
+ const v = b.getAttribute("src"), T = v.match(
/#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/
);
return T ? {
@@ -398,19 +398,19 @@ class Ou extends El {
* @param options.transform The new transform for the image.
* @fires execute
*/
- execute(k) {
+ execute(b) {
const T = this.editor.model, O = this._element(), K = this._srcInfo(O);
if (this.value = {
- transform: k.transform
+ transform: b.transform
}, K) {
- const i = `#asset:${K.assetId}` + (k.transform ? `:transform:${k.transform}` : "");
+ const i = `#asset:${K.assetId}` + (b.transform ? `:transform:${b.transform}` : "");
T.change((u) => {
const f = K.src.replace(/#.*/, "") + i;
u.setAttribute("src", f, O);
}), Craft.sendActionRequest("post", "ckeditor/ckeditor/image-url", {
data: {
assetId: K.assetId,
- transform: k.transform
+ transform: b.transform
}
}).then(({ data: u }) => {
T.change((f) => {
@@ -433,12 +433,12 @@ class jc extends $n {
static get pluginName() {
return "ImageTransformEditing";
}
- constructor(k) {
- super(k), k.config.define("transforms", []);
+ constructor(b) {
+ super(b), b.config.define("transforms", []);
}
init() {
- const k = this.editor, v = new Ou(k);
- k.commands.add("transformImage", v);
+ const b = this.editor, v = new Ou(b);
+ b.commands.add("transformImage", v);
}
}
/**
@@ -455,7 +455,7 @@ class Pu extends $n {
return "ImageTransformUI";
}
init() {
- const k = this.editor, v = k.config.get("transforms"), T = k.commands.get("transformImage");
+ const b = this.editor, v = b.config.get("transforms"), T = b.commands.get("transformImage");
this.bind("isEnabled").to(T), this._registerImageTransformDropdown(v);
}
/**
@@ -464,13 +464,13 @@ class Pu extends $n {
*
* @param transforms An array of the available image transforms.
*/
- _registerImageTransformDropdown(k) {
+ _registerImageTransformDropdown(b) {
const v = this.editor, T = v.t, O = {
name: "transformImage:original",
value: null
}, K = [
O,
- ...k.map((u) => ({
+ ...b.map((u) => ({
label: u.name,
name: `transformImage:${u.handle}`,
value: u.handle
@@ -488,8 +488,8 @@ class Pu extends $n {
}), d.bind("label").to(f, "value", (C) => {
if (!C || !C.transform)
return this._getOptionLabelValue(O);
- const h = k.find(
- (b) => b.handle === C.transform
+ const h = b.find(
+ (k) => k.handle === C.transform
);
return h ? h.name : C.transform;
}), _.bind("isEnabled").to(this), os(
@@ -512,8 +512,8 @@ class Pu extends $n {
* @param option A transform option object.
* @returns The option label.
*/
- _getOptionLabelValue(k) {
- return k.label || k.value || this.editor.t("Original");
+ _getOptionLabelValue(b) {
+ return b.label || b.value || this.editor.t("Original");
}
/**
* A helper function that parses the transform options and returns list item definitions ready for use in the dropdown.
@@ -522,9 +522,9 @@ class Pu extends $n {
* @param command The transform image command.
* @returns Dropdown item definitions.
*/
- _getTransformDropdownListItemDefinitions(k, v) {
+ _getTransformDropdownListItemDefinitions(b, v) {
const T = new na();
- return k.map((O) => {
+ return b.map((O) => {
const K = {
type: "button",
model: new yi({
@@ -540,8 +540,8 @@ class Pu extends $n {
}
}
function Du(Se) {
- return (k) => {
- const v = k;
+ return (b) => {
+ const v = b;
return Se === null && v === Se ? !0 : v !== null && v.transform === Se;
};
}
@@ -565,7 +565,7 @@ class rd extends $n {
*/
class Iu extends El {
refresh() {
- const k = this._element(), v = this._srcInfo(k);
+ const b = this._element(), v = this._srcInfo(b);
if (this.isEnabled = !!v, this.isEnabled) {
let T = {
assetId: v.assetId
@@ -581,9 +581,9 @@ class Iu extends El {
* Returns the selected image element.
*/
_element() {
- const k = this.editor;
- return k.plugins.get("ImageUtils").getClosestSelectedImageElement(
- k.model.document.selection
+ const b = this.editor;
+ return b.plugins.get("ImageUtils").getClosestSelectedImageElement(
+ b.model.document.selection
);
}
/**
@@ -594,10 +594,10 @@ class Iu extends El {
* @returns {{transform: *, src: *, assetId: *}|null}
* @private
*/
- _srcInfo(k) {
- if (!k || !k.hasAttribute("src"))
+ _srcInfo(b) {
+ if (!b || !b.hasAttribute("src"))
return null;
- const v = k.getAttribute("src"), T = v.match(
+ const v = b.getAttribute("src"), T = v.match(
/(.*)#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/
);
return T ? {
@@ -631,10 +631,10 @@ class Iu extends El {
*
* @param data
*/
- _reloadImage(k, v) {
+ _reloadImage(b, v) {
let O = this.editor.model;
this._getAllImageAssets().forEach((i) => {
- if (i.srcInfo.assetId == k)
+ if (i.srcInfo.assetId == b)
if (i.srcInfo.transform) {
let u = {
assetId: i.srcInfo.assetId,
@@ -663,8 +663,8 @@ class Iu extends El {
}
});
}
- _getNewSrc(k, v) {
- let T = k.url;
+ _getNewSrc(b, v) {
+ let T = b.url;
return Craft.revAssetUrls || (T += (T.includes("?") ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), T += "#asset:" + v.srcInfo.assetId, v.srcInfo.transform && (T += ":transform:" + v.srcInfo.transform), T;
}
/**
@@ -700,8 +700,8 @@ class Lc extends $n {
return "ImageEditorEditing";
}
init() {
- const k = this.editor, v = new Iu(k);
- k.commands.add("imageEditor", v);
+ const b = this.editor, v = new Iu(b);
+ b.commands.add("imageEditor", v);
}
}
/**
@@ -724,16 +724,16 @@ class Ru extends $n {
* A helper function that creates a button component for the plugin that triggers launch of the Image Editor.
*/
_registerImageEditorButton() {
- const k = this.editor, v = k.t, T = k.commands.get("imageEditor"), O = () => {
+ const b = this.editor, v = b.t, T = b.commands.get("imageEditor"), O = () => {
const K = new Jo();
return K.set({
label: v("Edit Image"),
withText: !0
}), K.bind("isEnabled").to(T), this.listenTo(K, "execute", (i) => {
- k.execute("imageEditor"), k.editing.view.focus();
+ b.execute("imageEditor"), b.editing.view.focus();
}), K;
};
- k.ui.componentFactory.add("imageEditor", O);
+ b.ui.componentFactory.add("imageEditor", O);
}
}
/**
@@ -750,7 +750,7 @@ class od extends $n {
}
}
class Mu extends El {
- execute(k) {
+ execute(b) {
const v = this.editor, T = v.model.document.selection;
if (!T.isCollapsed && T.getFirstRange()) {
const K = T.getSelectedElement();
@@ -761,9 +761,9 @@ class Mu extends El {
v.model.change((K) => {
const i = K.createElement("craftEntryModel", {
...Object.fromEntries(T.getAttributes()),
- cardHtml: k.cardHtml,
- entryId: k.entryId,
- siteId: k.siteId
+ cardHtml: b.cardHtml,
+ entryId: b.entryId,
+ siteId: b.siteId
});
v.model.insertObject(i, null, null, {
setSelection: "on"
@@ -792,10 +792,10 @@ class zu extends $n {
*/
init() {
this._defineSchema(), this._defineConverters();
- const k = this.editor;
- k.commands.add("insertEntry", new Mu(k)), k.editing.mapper.on(
+ const b = this.editor;
+ b.commands.add("insertEntry", new Mu(b)), b.editing.mapper.on(
"viewToModelPosition",
- mu(k.model, (v) => {
+ mu(b.model, (v) => {
v.hasClass("cke-entry-card");
})
);
@@ -816,8 +816,8 @@ class zu extends $n {
* @private
*/
_defineConverters() {
- const k = this.editor.conversion;
- k.for("upcast").elementToElement({
+ const b = this.editor.conversion;
+ b.for("upcast").elementToElement({
view: {
name: "craft-entry"
// has to be lower case
@@ -830,7 +830,7 @@ class zu extends $n {
siteId: u
});
}
- }), k.for("editingDowncast").elementToElement({
+ }), b.for("editingDowncast").elementToElement({
model: "craftEntryModel",
view: (T, { writer: O }) => {
const K = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null, u = O.createContainerElement("div", {
@@ -840,7 +840,7 @@ class zu extends $n {
});
return v(T, O, u), gu(u, O);
}
- }), k.for("dataDowncast").elementToElement({
+ }), b.for("dataDowncast").elementToElement({
model: "craftEntryModel",
view: (T, { writer: O }) => {
const K = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null;
@@ -876,19 +876,19 @@ class zu extends $n {
* @returns {Promise|Promise}
* @private
*/
- async _getCardHtml(k) {
+ async _getCardHtml(b) {
var u, f, _;
- let v = k.getAttribute("cardHtml") ?? null;
+ let v = b.getAttribute("cardHtml") ?? null;
if (v)
return { cardHtml: v };
let T = $(this.editor.sourceElement).parents(".field");
- const O = $(T[0]).data("layout-element"), K = k.getAttribute("entryId") ?? null, i = k.getAttribute("siteId") ?? null;
+ const O = $(T[0]).data("layout-element"), K = b.getAttribute("entryId") ?? null, i = b.getAttribute("siteId") ?? null;
try {
const d = this.editor, h = $(d.ui.view.element).closest(
"form,.lp-editor-container"
).data("elementEditor");
h && await h.checkForm();
- const { data: b } = await Craft.sendActionRequest(
+ const { data: k } = await Craft.sendActionRequest(
"POST",
"ckeditor/ckeditor/entry-card-html",
{
@@ -899,23 +899,23 @@ class zu extends $n {
}
}
);
- return b;
+ return k;
} catch (d) {
return console.error((u = d == null ? void 0 : d.response) == null ? void 0 : u.data), { cardHtml: '' + (((_ = (f = d == null ? void 0 : d.response) == null ? void 0 : f.data) == null ? void 0 : _.message) || "An unknown error occurred.") + "
" };
}
}
}
class Au extends yu {
- constructor(k) {
- super(k), this.domEventType = "dblclick";
+ constructor(b) {
+ super(b), this.domEventType = "dblclick";
}
- onDomEvent(k) {
- this.fire(k.type, k);
+ onDomEvent(b) {
+ this.fire(b.type, b);
}
}
class ju extends Tr {
- constructor(k, v = {}) {
- super(k), this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor, this.entryType = v.entryType;
+ constructor(b, v = {}) {
+ super(b), this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor, this.entryType = v.entryType;
const T = this.editor.commands.get("insertEntry");
let O = new Jo(), K = {
commandValue: this.entryType.model.commandValue,
@@ -943,14 +943,14 @@ class ju extends Tr {
}
}
class Lu extends Tr {
- constructor(k, v = {}) {
- super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor;
+ constructor(b, v = {}) {
+ super(b), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor;
const T = v.entryTypes, O = this.editor.commands.get("insertEntry");
let K = new na();
T.forEach((u) => {
u.model.color && (u.model.class || (u.model.class = ""), u.model.class += "icon " + u.model.color), K.add(u);
});
- const i = ra(k);
+ const i = ra(b);
i.buttonView.set({
label: Craft.t("ckeditor", "Add nested content"),
icon: zc,
@@ -974,10 +974,10 @@ class Lu extends Tr {
this.element.children[0].children[0].focus();
}
}
-class Fu extends Tr {
- constructor(k, v = {}) {
- super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor;
- const T = this.editor.commands.get("insertEntry"), O = ra(k);
+class Vu extends Tr {
+ constructor(b, v = {}) {
+ super(b), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor;
+ const T = this.editor.commands.get("insertEntry"), O = ra(b);
O.buttonView.set({
label: Craft.t("ckeditor", "Add nested content"),
icon: zc,
@@ -1000,7 +1000,7 @@ class Fu extends Tr {
this.element.focus();
}
}
-class Vu extends $n {
+class Uu extends $n {
/**
* @inheritDoc
*/
@@ -1017,7 +1017,7 @@ class Vu extends $n {
* @inheritDoc
*/
init() {
- this._createToolbarEntriesButtons(), this.editor.ui.componentFactory.add("editEntryBtn", (k) => this._createEditEntryBtn(k)), this._listenToEvents();
+ this._createToolbarEntriesButtons(), this.editor.ui.componentFactory.add("editEntryBtn", (b) => this._createEditEntryBtn(b)), this._listenToEvents();
}
/**
* @inheritDoc
@@ -1042,8 +1042,8 @@ class Vu extends $n {
* @private
*/
_listenToEvents() {
- const k = this.editor.editing.view, v = k.document;
- k.addObserver(Au), this.editor.listenTo(v, "dblclick", (T, O) => {
+ const b = this.editor.editing.view, v = b.document;
+ b.addObserver(Au), this.editor.listenTo(v, "dblclick", (T, O) => {
if (!this.editor.isReadOnly) {
const K = this.editor.editing.mapper.toModelElement(
O.target.parent
@@ -1052,7 +1052,7 @@ class Vu extends $n {
}
});
}
- _initEditEntrySlideout(k = null, v = null) {
+ _initEditEntrySlideout(b = null, v = null) {
if (this.editor.isReadOnly)
return;
v === null && (v = this.editor.model.document.selection.getSelectedElement());
@@ -1070,7 +1070,7 @@ class Vu extends $n {
if (v.length == 1 && v[0].value == "fake")
this.editor.ui.componentFactory.add(
"createEntry",
- (T) => new Fu(this.editor.locale, {
+ (T) => new Vu(this.editor.locale, {
entriesUi: this
})
);
@@ -1102,9 +1102,9 @@ class Vu extends $n {
* @returns {Collection>}
* @private
*/
- _getEntryTypeButtonsCollection(k) {
+ _getEntryTypeButtonsCollection(b) {
const v = new na();
- return k.map((T) => {
+ return b.map((T) => {
const O = {
type: "button",
model: new yi({
@@ -1129,10 +1129,10 @@ class Vu extends $n {
* @returns {ButtonView}
* @private
*/
- _createEditEntryBtn(k) {
+ _createEditEntryBtn(b) {
if (this.editor.isReadOnly)
return;
- const v = new Jo(k);
+ const v = new Jo(b);
return v.set({
isEnabled: !0,
label: Craft.t("app", "Edit {type}", {
@@ -1161,8 +1161,8 @@ class Vu extends $n {
* @returns {*}
* @private
*/
- _getCardElement(k) {
- return $(this.editor.ui.element).find('.element.card[data-id="' + k + '"]');
+ _getCardElement(b) {
+ return $(this.editor.ui.element).find('.element.card[data-id="' + b + '"]');
}
/**
* Opens an element editor for existing entry
@@ -1170,16 +1170,16 @@ class Vu extends $n {
* @param entryId
* @private
*/
- _showEditEntrySlideout(k, v, T) {
+ _showEditEntrySlideout(b, v, T) {
const O = this.editor, K = O.model, i = this.getElementEditor();
- let u = this._getCardElement(k);
+ let u = this._getCardElement(b);
const f = u.data("owner-id");
let _ = {
siteId: v
}, d = u.parents(".field");
d.length && $(d[0]).hasClass("has-errors") && (_.prevalidate = !0);
const C = Craft.createElementEditor(this.elementType, null, {
- elementId: k,
+ elementId: b,
params: _,
onLoad: () => {
C.elementEditor.on("update", () => {
@@ -1194,8 +1194,8 @@ class Vu extends $n {
}
},
onSubmit: (h) => {
- let b = this._getCardElement(k);
- b !== null && h.data.id != b.data("id") && (b.attr("data-id", h.data.id).data("id", h.data.id).data("owner-id", h.data.ownerId), O.editing.model.change((w) => {
+ let k = this._getCardElement(b);
+ k !== null && h.data.id != k.data("id") && (k.attr("data-id", h.data.id).data("id", h.data.id).data("owner-id", h.data.ownerId), O.editing.model.change((w) => {
w.setAttribute("entryId", h.data.id, T), O.ui.update();
}), Craft.refreshElementInstances(h.data.id));
}
@@ -1214,12 +1214,12 @@ class Vu extends $n {
* @param entryTypeId
* @private
*/
- async _showCreateEntrySlideout(k) {
+ async _showCreateEntrySlideout(b) {
var C, h;
const v = this.editor, T = v.model, K = T.document.selection.getFirstRange(), i = v.config.get(
"nestedElementAttributes"
), u = Object.assign({}, i, {
- typeId: k
+ typeId: b
}), f = this.getElementEditor();
f && (await f.markDeltaNameAsModified(v.sourceElement.name), u.ownerId = f.getDraftElementId(
i.ownerId
@@ -1233,8 +1233,8 @@ class Vu extends $n {
data: u
}
)).data;
- } catch (b) {
- throw Craft.cp.displayError((h = (C = b == null ? void 0 : b.response) == null ? void 0 : C.data) == null ? void 0 : h.error), b;
+ } catch (k) {
+ throw Craft.cp.displayError((h = (C = k == null ? void 0 : k.response) == null ? void 0 : C.data) == null ? void 0 : h.error), k;
}
const d = Craft.createElementEditor(this.elementType, {
elementId: _.element.id,
@@ -1243,17 +1243,17 @@ class Vu extends $n {
fresh: 1,
siteId: _.element.siteId
},
- onSubmit: (b) => {
+ onSubmit: (k) => {
v.commands.execute("insertEntry", {
- entryId: b.data.id,
- siteId: b.data.siteId
+ entryId: k.data.id,
+ siteId: k.data.siteId
});
}
});
d.on("beforeClose", () => {
- d.$triggerElement = null, T.change((b) => {
- b.setSelection(
- b.createPositionAt(
+ d.$triggerElement = null, T.change((k) => {
+ k.setSelection(
+ k.createPositionAt(
v.model.document.getRoot(),
K.end.path[0]
)
@@ -1262,9 +1262,9 @@ class Vu extends $n {
});
}
}
-class Uu extends $n {
+class Fu extends $n {
static get requires() {
- return [zu, Vu];
+ return [zu, Uu];
}
static get pluginName() {
return "CraftEntries";
@@ -1275,9 +1275,9 @@ class Uu extends $n {
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license GPL-3.0-or-later
*/
-function Fc(Se, k) {
- if (k)
- return Se.type === "bool" && Se.value == !0 ? "" : k;
+function Vc(Se, b) {
+ if (b)
+ return Se.type === "bool" && Se.value == !0 ? "" : b;
}
/**
* @link https://craftcms.com/
@@ -1296,16 +1296,16 @@ class $u extends $n {
this.conversionData = v.map((T) => T.conversion ?? null).filter((T) => T), this._defineSchema(), this._defineConverters(), this._adjustLinkCommand(), this._adjustUnlinkCommand();
}
_defineSchema() {
- const k = this.editor.model.schema;
+ const b = this.editor.model.schema;
let v = this.conversionData.map((T) => T.model);
- k.extend("$text", {
+ b.extend("$text", {
allowAttributes: v
});
}
_defineConverters() {
- const k = this.editor.conversion;
+ const b = this.editor.conversion;
for (let v = 0; v < this.conversionData.length; v++)
- k.for("downcast").attributeToElement({
+ b.for("downcast").attributeToElement({
model: this.conversionData[v].model,
view: (T, { writer: O }) => {
const K = O.createAttributeElement(
@@ -1315,7 +1315,7 @@ class $u extends $n {
);
return O.setCustomProperty("link", !0, K), K;
}
- }), k.for("upcast").attributeToAttribute({
+ }), b.for("upcast").attributeToAttribute({
view: {
name: "a",
key: this.conversionData[v].view
@@ -1327,7 +1327,7 @@ class $u extends $n {
});
}
_adjustLinkCommand() {
- const k = this.editor, v = k.commands.get("link");
+ const b = this.editor, v = b.commands.get("link");
let T = !1;
v.on(
"execute",
@@ -1337,12 +1337,12 @@ class $u extends $n {
return;
}
O.stop(), T = !0;
- const i = K[3] || {}, u = k.model.document.selection;
- k.model.change((f) => {
- k.execute("link", ...K);
+ const i = K[3] || {}, u = b.model.document.selection;
+ b.model.change((f) => {
+ b.execute("link", ...K);
const _ = u.getFirstPosition();
this.conversionData.forEach((d) => {
- const C = Fc(
+ const C = Vc(
d,
i[d.model]
);
@@ -1354,12 +1354,12 @@ class $u extends $n {
f.createRangeOn(h)
) : f.removeAttribute(d.model, f.createRangeOn(h));
} else {
- const h = k.model.schema.getValidRanges(
+ const h = b.model.schema.getValidRanges(
u.getRanges(),
d.model
);
- for (const b of h)
- C !== void 0 ? f.setAttribute(d.model, C, b) : f.removeAttribute(d.model, b);
+ for (const k of h)
+ C !== void 0 ? f.setAttribute(d.model, C, k) : f.removeAttribute(d.model, k);
}
});
});
@@ -1368,13 +1368,13 @@ class $u extends $n {
);
}
_adjustUnlinkCommand() {
- const k = this.editor, v = k.commands.get("unlink"), { model: T } = k, { selection: O } = T.document;
+ const b = this.editor, v = b.commands.get("unlink"), { model: T } = b, { selection: O } = T.document;
let K = !1;
v.on(
"execute",
(i) => {
K || (i.stop(), T.change(() => {
- K = !0, k.execute("unlink"), K = !1, T.change((u) => {
+ K = !0, b.execute("unlink"), K = !1, T.change((u) => {
let f;
this.conversionData.forEach((_) => {
O.isCollapsed ? f = [
@@ -1399,8 +1399,8 @@ class $u extends $n {
}
}
class Bu extends Tr {
- constructor(k, v = {}) {
- super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption;
+ constructor(b, v = {}) {
+ super(b), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption;
const T = this.linkUi._getLinkElementRefHandle();
if (this.button = null, T) {
const O = this.linkUi.linkTypeDropdownItemModels[T];
@@ -1426,11 +1426,11 @@ class Bu extends Tr {
}
render() {
super.render();
- const k = this.linkUi, v = k._linkUI, T = this.linkOption;
+ const b = this.linkUi, v = b._linkUI, T = this.linkOption;
this.element.addEventListener("click", function(O) {
if (this.children[0].classList.contains("add") || O.target.classList.contains("ck-button__label")) {
const K = v.formView.displayedTextInputView.fieldView.element.value;
- v._hideUI(!1), k._showElementSelectorModal(T, K);
+ v._hideUI(!1), b._showElementSelectorModal(T, K);
}
}), this.element.children.length == 0 && Craft.sendActionRequest(
"POST",
@@ -1483,7 +1483,7 @@ class Bu extends Tr {
Craft.addActionsToChip(_, d), (i = (K = this.linkUi.sitesView) == null ? void 0 : K.siteDropdownView) != null && i.buttonView && ((u = this.linkUi.sitesView) == null || u.siteDropdownView.buttonView.set(
"isVisible",
!0
- )), k._alignFocus();
+ )), b._alignFocus();
} else if (((f = this.linkUi.previousLinkValue) == null ? void 0 : f.length) > 0) {
const { formView: _ } = this.linkUi._linkUI;
_.urlInputView.fieldView.set(
@@ -1503,8 +1503,8 @@ class Bu extends Tr {
}
}
class Hu extends Tr {
- constructor(k, v = {}) {
- super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption, this.linkUi._getLinkElementRefHandle(), this.siteDropdownView = ra(this.linkUi._linkUI.formView.locale), this.siteDropdownItemModels = null, this.localizedRefHandleRE = null;
+ constructor(b, v = {}) {
+ super(b), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption, this.linkUi._getLinkElementRefHandle(), this.siteDropdownView = ra(this.linkUi._linkUI.formView.locale), this.siteDropdownItemModels = null, this.localizedRefHandleRE = null;
const T = CKE_LOCALIZED_REF_HANDLES.join("|");
this.localizedRefHandleRE = new RegExp(
`(#(?:${T}):\\d+)(?:@(\\d+))?`
@@ -1526,7 +1526,7 @@ class Hu extends Tr {
super.render(), this._sitesDropdown();
}
_sitesDropdown() {
- const { formView: k } = this.linkUi._linkUI, { urlInputView: v } = k, { fieldView: T } = v;
+ const { formView: b } = this.linkUi._linkUI, { urlInputView: v } = b, { fieldView: T } = v;
this.siteDropdownView.buttonView.set({
label: "",
withText: !0,
@@ -1568,7 +1568,7 @@ class Hu extends Tr {
let u = K[1];
i && (u += `@${i}`), this.linkUi.previousLinkValue = this.linkUi._urlInputValue();
const f = this.linkUi._urlInputValue().replace(K[0], u);
- k.urlInputView.fieldView.set("value", f), this._toggleSiteDropdownView();
+ b.urlInputView.fieldView.set("value", f), this._toggleSiteDropdownView();
}), this.listenTo(T, "change:value", () => {
this._toggleSiteDropdownView();
}), this.listenTo(T, "input", () => {
@@ -1576,24 +1576,24 @@ class Hu extends Tr {
});
}
_toggleSiteDropdownView() {
- const k = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE);
- if (k) {
+ const b = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE);
+ if (b) {
this.siteDropdownView.buttonView.set("isVisible", !0);
- let v = k[2] ? parseInt(k[2], 10) : null;
+ let v = b[2] ? parseInt(b[2], 10) : null;
v && typeof this.siteDropdownItemModels[v] > "u" && (v = null), this._selectSiteDropdownItem(v), this.siteDropdownView.buttonView.set("isVisible", !0);
} else
this.siteDropdownView.buttonView.set("isVisible", !1);
}
- _selectSiteDropdownItem(k) {
- const v = this.siteDropdownItemModels[k ?? "current"], T = k ? Craft.t("ckeditor", "Site: {name}", { name: v.label }) : v.label;
+ _selectSiteDropdownItem(b) {
+ const v = this.siteDropdownItemModels[b ?? "current"], T = b ? Craft.t("ckeditor", "Site: {name}", { name: v.label }) : v.label;
this.siteDropdownView.buttonView.set("label", T), Object.values(this.siteDropdownItemModels).forEach((O) => {
O.set("isOn", O.siteId === v.siteId);
});
}
}
class Wu extends Tr {
- constructor(k, v = {}) {
- super(k);
+ constructor(b, v = {}) {
+ super(b);
const T = this.bindTemplate;
this.set("label", Craft.t("app", "Advanced")), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.children = this.createCollection(), this.advancedChildren = this.createCollection(), this.setTemplate({
tag: "details",
@@ -1601,13 +1601,13 @@ class Wu extends Tr {
class: ["ck", "ck-form__details", "link-type-advanced"]
},
children: this.children
- }), this.summary = new Tr(k), this.summary.setTemplate({
+ }), this.summary = new Tr(b), this.summary.setTemplate({
tag: "summary",
attributes: {
class: ["ck", "ck-form__details__summary"]
},
children: [{ text: T.to("label") }]
- }), this.children.add(this.summary), this.advancedFieldsContainer = new Tr(k), this.advancedFieldsContainer.setTemplate({
+ }), this.children.add(this.summary), this.advancedFieldsContainer = new Tr(b), this.advancedFieldsContainer.setTemplate({
tag: "div",
attributes: {
class: ["meta", "pane", "hairline"]
@@ -1623,9 +1623,9 @@ class Wu extends Tr {
super.render(), this.element.addEventListener("toggle", this.onToggle.bind(this));
}
// this is needed to control the focus order
- onToggle(k) {
+ onToggle(b) {
const { formView: v } = this.linkUi._linkUI;
- if (k.target.open) {
+ if (b.target.open) {
const T = v._focusables.getIndex(this);
this.advancedChildren._items.forEach((O, K) => {
v._focusables.add(O, T + K + 1), v.focusTracker.add(O.element, T + K + 1);
@@ -1649,11 +1649,11 @@ class qu extends $n {
return "CraftLinkUI";
}
constructor() {
- super(...arguments), this.linkTypeWrapperView = null, this.advancedView = null, this.elementInputView = null, this.sitesView = null, this.previousLinkValue = null, this.linkTypeDropdownView = null, this.linkTypeDropdownItemModels = [], this.elementTypeRefHandleRE = null, this.urlWithRefHandleRE = null, this.conversionData = [], this.linkOptions = [], this.advancedLinkFields = [], this.editor.config.define("linkOptions", []), this.editor.config.define("advancedLinkFields", []);
+ super(...arguments), this.linkTypeWrapperView = null, this.advancedView = null, this.elementInputView = null, this.sitesView = null, this.urlSuffixInputView = null, this.previousLinkValue = null, this.linkTypeDropdownView = null, this.linkTypeDropdownItemModels = [], this.elementTypeRefHandleRE = null, this.urlWithRefHandleRE = null, this.conversionData = [], this.linkOptions = [], this.advancedLinkFields = [], this.editor.config.define("linkOptions", []), this.editor.config.define("advancedLinkFields", []);
}
init() {
- const k = this.editor;
- this._linkUI = k.plugins.get(Dc), this._balloon = k.plugins.get(ku), this.linkOptions = k.config.get("linkOptions"), this.advancedLinkFields = k.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T);
+ const b = this.editor;
+ this._linkUI = b.plugins.get(Dc), this._balloon = b.plugins.get(ku), this.linkOptions = b.config.get("linkOptions"), this.advancedLinkFields = b.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T);
const v = CKE_LOCALIZED_REF_HANDLES.join("|");
this.elementTypeRefHandleRE = new RegExp(
`(#((?:${v})):\\d+)`
@@ -1671,19 +1671,19 @@ class qu extends $n {
* Reset focus order of the extra fields we're adding to the link form view
*/
_alignFocus() {
- const { formView: k } = this._linkUI;
+ const { formView: b } = this._linkUI;
let v = 0;
this.linkTypeWrapperView && (this.linkTypeWrapperView._unboundChildren._items.forEach((T) => {
- k._focusables.has(T) && k._focusables.remove(T), k.focusTracker.remove(T.element), k._focusables.add(T, v), k.focusTracker.add(T.element, v), v++;
- }), this.advancedView !== null && (k._focusables.has(this.advancedView) && k._focusables.remove(this.advancedView), k.focusTracker.remove(this.advancedView), k._focusables.add(this.advancedView, v), k.focusTracker.add(this.advancedView.element, v)));
+ b._focusables.has(T) && b._focusables.remove(T), b.focusTracker.remove(T.element), b._focusables.add(T, v), b.focusTracker.add(T.element, v), v++;
+ }), this.advancedView !== null && (b._focusables.has(this.advancedView) && b._focusables.remove(this.advancedView), b.focusTracker.remove(this.advancedView), b._focusables.add(this.advancedView, v), b.focusTracker.add(this.advancedView.element, v)));
}
/**
* Add all our custom fields (for element linking and advanced fields) to the link form view.
*/
_modifyFormViewTemplate() {
this._linkUI.formView || this._linkUI._createViews();
- const { formView: k } = this._linkUI;
- k.template.attributes.class.push(
+ const { formView: b } = this._linkUI;
+ b.template.attributes.class.push(
"ck-link-form_layout-vertical",
"ck-vertical-form"
), this.linkOptions && this.linkOptions.length && this._linkOptionsDropdown(), this.advancedLinkFields && this.advancedLinkFields.length && this._advancedLinkFields();
@@ -1697,16 +1697,16 @@ class qu extends $n {
/**
* Returns whether the "default" URL input field value matched given regular expression.
*/
- _urlInputRefMatch(k) {
- return this._urlInputValue().match(k);
+ _urlInputRefMatch(b) {
+ return this._urlInputValue().match(b);
}
////////////////////// Link Options Dropdown (link types) //////////////////////
/**
* Create a link type dropdown.
*/
_linkOptionsDropdown() {
- const { formView: k } = this._linkUI, { urlInputView: v } = k, { fieldView: T } = v;
- this.linkTypeDropdownView = ra(k.locale), this.linkTypeDropdownView.buttonView.set({
+ const { formView: b } = this._linkUI, { urlInputView: v } = b, { fieldView: T } = v;
+ this.linkTypeDropdownView = ra(b.locale), this.linkTypeDropdownView.buttonView.set({
label: "",
withText: !0,
isVisible: !0
@@ -1723,7 +1723,7 @@ class qu extends $n {
), T.isEmpty && this._showLinkTypeForm("default"), this.linkTypeDropdownView.on("execute", (O) => {
if (O.source.linkOption) {
const K = O.source.linkOption;
- this._selectLinkTypeDropdownItem(K.refHandle), this._showLinkTypeForm(K, k);
+ this._selectLinkTypeDropdownItem(K.refHandle), this._showLinkTypeForm(K, b);
} else
this._selectLinkTypeDropdownItem("default"), this._showLinkTypeForm("default");
}), this.listenTo(T, "change:value", () => {
@@ -1740,38 +1740,38 @@ class qu extends $n {
* Get the refHandle from the URL field value.
*/
_getLinkElementRefHandle() {
- let k = null;
+ let b = null;
const v = this._urlInputValue().match(this.elementTypeRefHandleRE);
- return v && (k = v[2], k && typeof this.linkTypeDropdownItemModels[k] > "u" && (k = null)), k;
+ return v && (b = v[2], b && typeof this.linkTypeDropdownItemModels[b] > "u" && (b = null)), b;
}
/**
* Get element ID from the URL field value.
*/
_getLinkElementId() {
- let k = null;
+ let b = null;
const v = this._urlInputRefMatch(this.urlWithRefHandleRE);
- return v && (k = v[4] ? parseInt(v[4], 10) : null), k;
+ return v && (b = v[4] ? parseInt(v[4], 10) : null), b;
}
/**
* Get site ID from the URL field value.
*/
_getLinkSiteId() {
- let k = null;
+ let b = null;
const v = this._urlInputRefMatch(this.urlWithRefHandleRE);
- return v && (k = v[5] ? parseInt(v[5], 10) : null), k;
+ return v && (b = v[5] ? parseInt(v[5], 10) : null), b;
}
/**
* Toggle between element link and default URL link fields.
*/
_toggleLinkTypeDropdownView() {
- let k = this._getLinkElementRefHandle();
- k ? (this.linkTypeDropdownView.buttonView.set("isVisible", !0), this._selectLinkTypeDropdownItem(k)) : this._selectLinkTypeDropdownItem("default");
+ let b = this._getLinkElementRefHandle();
+ b ? (this.linkTypeDropdownView.buttonView.set("isVisible", !0), this._selectLinkTypeDropdownItem(b)) : this._selectLinkTypeDropdownItem("default");
}
/**
* Select link type from the dropdown.
*/
- _selectLinkTypeDropdownItem(k) {
- const v = this.linkTypeDropdownItemModels[k], T = k ? Craft.t("app", "{name}", { name: v.label }) : v.label;
+ _selectLinkTypeDropdownItem(b) {
+ const v = this.linkTypeDropdownItemModels[b], T = b ? Craft.t("app", "{name}", { name: v.label }) : v.label;
this.linkTypeDropdownView.buttonView.set("label", T), Object.values(this.linkTypeDropdownItemModels).forEach((O) => {
O.set("isOn", O.handle === v.handle);
});
@@ -1780,9 +1780,9 @@ class qu extends $n {
* Get a list of all the options that should be shown in the link type dropdown.
*/
_getLinkListItemDefinitions() {
- const k = [];
+ const b = [];
for (const v of this.linkOptions)
- k.push(
+ b.push(
new yi({
label: v.label,
handle: v.refHandle,
@@ -1790,23 +1790,23 @@ class qu extends $n {
withText: !0
})
);
- return k.push(
+ return b.push(
new yi({
label: Craft.t("app", "URL"),
handle: "default",
withText: !0
})
- ), k;
+ ), b;
}
/**
* Place the link type fields in the form.
*/
- _showLinkTypeForm(k) {
+ _showLinkTypeForm(b) {
var u, f, _, d;
const { formView: v } = this._linkUI, { children: T } = v, { urlInputView: O } = v, { displayedTextInputView: K } = v;
- K.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), k === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new Bu(v.locale, {
+ K.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), b === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new Bu(v.locale, {
linkUi: this,
- linkOption: k,
+ linkOption: b,
value: this._urlInputValue()
}), this.sitesView !== null && (d = (_ = this.sitesView) == null ? void 0 : _.siteDropdownView) != null && d.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1));
let i = [
@@ -1815,7 +1815,7 @@ class qu extends $n {
];
if (Craft.isMultiSite && this.sitesView == null && (this.sitesView = new Hu(v.locale, {
linkUi: this,
- linkOption: k
+ linkOption: b
})), this.sitesView != null) {
let C = new Tr();
C.setTemplate({
@@ -1842,43 +1842,44 @@ class qu extends $n {
/**
* Show element selector modal for given element type (link option).
*/
- _showElementSelectorModal(k, v) {
+ _showElementSelectorModal(b, v) {
const T = this.editor, O = T.model, K = O.document.selection, i = K.isCollapsed, u = K.getFirstRange(), f = this._linkUI._getSelectedLinkElement(), _ = () => {
T.editing.view.focus(), !i && u && O.change((d) => {
d.setSelection(u);
}), this._linkUI._hideFakeVisualSelection();
};
- f || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(k.elementType, {
- storageKey: `ckeditor:${this.pluginName}:${k.elementType}`,
- sources: k.sources,
- criteria: k.criteria,
+ f || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(b.elementType, {
+ storageKey: `ckeditor:${this.pluginName}:${b.elementType}`,
+ sources: b.sources,
+ criteria: b.criteria,
defaultSiteId: T.config.get("elementSiteId"),
autoFocusSearchBox: !1,
onSelect: (d) => {
+ var C;
if (d.length) {
- const C = d[0], h = `${C.url}#${k.refHandle}:${C.id}@${C.siteId}`;
+ const h = d[0], k = ((C = this.urlSuffixInputView) == null ? void 0 : C.fieldView.element.value.trim()) ?? "", w = `${h.url}${k}#${b.refHandle}:${h.id}@${h.siteId}`;
if (T.editing.view.focus(), (!i || f) && u) {
- O.change((N) => {
- N.setSelection(u);
+ O.change((D) => {
+ D.setSelection(u);
});
- const b = T.commands.get("link");
- let w = this._getAdvancedFieldValues();
- b.execute(h, {}, void 0, w);
+ const N = T.commands.get("link");
+ let I = this._getAdvancedFieldValues();
+ N.execute(w, {}, void 0, I);
} else
- O.change((b) => {
- let w = this._getAdvancedFieldValues(), N = { linkHref: h };
- this.conversionData.forEach((P) => {
- const j = Fc(
- P,
- w[P.model]
+ O.change((N) => {
+ let I = this._getAdvancedFieldValues(), D = { linkHref: w };
+ this.conversionData.forEach((oe) => {
+ const te = Vc(
+ oe,
+ I[oe.model]
);
- j !== void 0 && (N[P.model] = j);
+ te !== void 0 && (D[oe.model] = te);
});
- const I = v || C.label;
- if (b.insertText(I, N, K.getFirstPosition()), u instanceof wu)
+ const L = v || h.label;
+ if (N.insertText(L, D, K.getFirstPosition()), u instanceof wu)
try {
- const P = u.clone();
- P.end.path[1] += I.length, b.setSelection(P);
+ const oe = u.clone();
+ oe.end.path[1] += L.length, N.setSelection(oe);
} catch {
}
});
@@ -1906,7 +1907,7 @@ class qu extends $n {
*/
_addAdvancedLinkFieldInputs() {
var O;
- const k = this.editor.commands.get("link"), { formView: v } = this._linkUI, { children: T } = v;
+ const b = this.editor.commands.get("link"), { formView: v } = this._linkUI, { children: T } = v;
this.advancedView = new Wu(v.locale, {
linkUi: this
}), T.add(this.advancedView, 3);
@@ -1919,47 +1920,48 @@ class qu extends $n {
withText: !0,
label: K.label,
isToggleable: !0
- }), K.tooltip && (u.tooltip = K.tooltip), this.advancedView.advancedChildren.add(u), v[i] = u, v[i].bind("isOn").to(k, i, (f) => f === void 0 ? (v[i].element.value = "", !1) : (v[i].element.value = K.conversion.value, !0)), u.on("execute", () => {
+ }), K.tooltip && (u.tooltip = K.tooltip), this.advancedView.advancedChildren.add(u), v[i] = u, v[i].bind("isOn").to(b, i, (f) => f === void 0 ? (v[i].element.value = "", !1) : (v[i].element.value = K.conversion.value, !0)), u.on("execute", () => {
u.isOn ? (u.isOn = !1, v[i].element.value = "") : (u.isOn = !0, v[i].element.value = K.conversion.value);
});
} else {
let u = this._addLabeledField(K);
- v[i] = u, v[i].fieldView.bind("value").to(k, i), v[i].fieldView.element.value = k[i] || "";
+ v[i] = u, v[i].fieldView.bind("value").to(b, i), v[i].fieldView.element.value = b[i] || "";
}
else if (K.value === "urlSuffix") {
- let u = this._addLabeledField(K);
- this.listenTo(
- u.fieldView,
+ this.urlSuffixInputView = this._addLabeledField(K), this.listenTo(
+ this.urlSuffixInputView.fieldView,
"change:isFocused",
(f, _, d, C) => {
if (d !== C && !d) {
- let h = f.source.element.value, b = null;
- const w = this._urlInputRefMatch(this.urlWithRefHandleRE);
- w ? b = w[1] : b = this._urlInputValue();
- try {
- let N = new URL(b), I = N.search, P = N.hash, j = b.replace(P, "").replace(I, "");
- const ae = this._urlInputValue().replace(
- b,
- j + h
- );
- v.urlInputView.fieldView.set("value", ae);
- } catch {
- let [I, P] = b.split("#"), [j, ae] = I.split("?");
- const te = this._urlInputValue().replace(
- b,
- j + h
- );
- v.urlInputView.fieldView.set("value", te);
- }
+ if (this._urlInputValue().trim() === "")
+ return;
+ this._applyUrlSuffix(f.source.element.value);
}
}
), this.listenTo(v.urlInputView.fieldView, "change:value", (f) => {
- this._toggleUrlSuffixInputView(u, f.source.isEmpty);
- }), this.listenTo(
+ this._toggleUrlSuffixInputView(
+ this.urlSuffixInputView,
+ f.source.isEmpty
+ );
+ });
+ let u = !1;
+ this.listenTo(
v.urlInputView.fieldView,
"change:isFocused",
- (f) => {
- this._toggleUrlSuffixInputView(u, f.source.isEmpty);
+ (f, _, d) => {
+ var k;
+ const C = this._urlInputValue().trim() === "";
+ if (d && (u = C), C)
+ return;
+ const h = (k = this.urlSuffixInputView) == null ? void 0 : k.fieldView.element.value.trim();
+ if (!d && u && h !== "" && this._getUrlSuffix() === "") {
+ this._applyUrlSuffix(h);
+ return;
+ }
+ this._toggleUrlSuffixInputView(
+ this.urlSuffixInputView,
+ f.source.isEmpty
+ );
}
);
}
@@ -1968,35 +1970,63 @@ class qu extends $n {
/**
* Create a labeled field for given advanced field.
*/
- _addLabeledField(k) {
+ _addLabeledField(b) {
const { formView: v } = this._linkUI;
let T = new Eu(
v.locale,
xu
);
- return T.label = k.label, k.tooltip && (T.infoText = k.tooltip), this.advancedView.advancedChildren.add(T), T;
+ return T.label = b.label, b.tooltip && (T.infoText = b.tooltip), this.advancedView.advancedChildren.add(T), T;
}
/**
* Populate URL suffix advanced field with content.
* e.g. if a query string was added directly to the default URL input field,
* ensure the value is also showing in the URL Suffix advanced field.
*/
- _toggleUrlSuffixInputView(k, v) {
- if (v)
- k.fieldView.set("value", "");
- else {
- const T = this._urlInputRefMatch(this.urlWithRefHandleRE);
- let O = null;
- T ? O = T[1] : O = this._urlInputValue();
- try {
- let K = new URL(O), i = K.search, u = K.hash;
- k.fieldView.set("value", i + u);
- } catch {
- let [i, u] = O.split("#"), [f, _] = i.split("?");
- u = u ? "#" + u : "", _ = _ ? "?" + _ : "", k.fieldView.set("value", _ + u);
- }
+ _toggleUrlSuffixInputView(b, v) {
+ b.fieldView.set(
+ "value",
+ v ? "" : this._getUrlSuffix()
+ );
+ }
+ /**
+ * Get the URL field value without the {refTag} portion.
+ */
+ _getUrlWithoutRefTag() {
+ const b = this._urlInputRefMatch(this.urlWithRefHandleRE);
+ return b ? b[1] : this._urlInputValue();
+ }
+ /**
+ * Get the query params and anchor from the URL field value.
+ */
+ _getUrlSuffix() {
+ const b = this._getUrlWithoutRefTag();
+ try {
+ let v = new URL(b);
+ return v.search + v.hash;
+ } catch {
+ let [T, O] = b.split("#"), [K, i] = T.split("?");
+ return O = O ? "#" + O : "", i = i ? "?" + i : "", i + O;
}
}
+ /**
+ * Replace the query params and anchor in the URL field value with given URL suffix.
+ */
+ _applyUrlSuffix(b) {
+ const { formView: v } = this._linkUI, T = this._getUrlWithoutRefTag();
+ let O;
+ try {
+ let i = new URL(T);
+ O = T.replace(i.hash, "").replace(i.search, "");
+ } catch {
+ let [u, f] = T.split("#"), [_, d] = u.split("?");
+ }
+ const K = this._urlInputValue().replace(
+ T,
+ O + b
+ );
+ v.urlInputView.fieldView.set("value", K);
+ }
/**
* When link form is submitted, pass the advanced field values the link command.
*/
@@ -2023,9 +2053,9 @@ class qu extends $n {
* Update the link command when the advanced field value changes.
*/
_trackAdvancedLinkFieldsValueChange() {
- const k = this.editor, v = k.commands.get("link"), T = k.model.document.selection;
+ const b = this.editor, v = b.commands.get("link"), T = b.model.document.selection;
this.conversionData.forEach((O) => {
- v.set(O.model, null), k.model.document.on("change", () => {
+ v.set(O.model, null), b.model.document.on("change", () => {
v[O.model] = T.getAttribute(O.model);
});
});
@@ -2034,11 +2064,11 @@ class qu extends $n {
* Get the values of all the advanced fields.
*/
_getAdvancedFieldValues() {
- const { formView: k } = this._linkUI;
+ const { formView: b } = this._linkUI;
let v = {};
return this.conversionData.forEach((T) => {
let O = [];
- T.type === "bool" ? O[T.model] = k[T.model].element.value : O[T.model] = k[T.model].fieldView.element.value, Object.assign(v, O);
+ T.type === "bool" ? O[T.model] = b[T.model].element.value : O[T.model] = b[T.model].fieldView.element.value, Object.assign(v, O);
}), v;
}
}
@@ -2057,7 +2087,7 @@ var _l = { exports: {} };
/*! For license information please see inspector.js.LICENSE.txt */
var Rc;
function Qu() {
- return Rc || (Rc = 1, (function(Se, k) {
+ return Rc || (Rc = 1, (function(Se, b) {
(function(v, T) {
Se.exports = T();
})(self, () => (() => {
@@ -2068,11 +2098,11 @@ function Qu() {
_(d, C), i.exports = d.locals || {};
}, 42: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.toString = void 0;
- const _ = f(1099), d = f(7860), C = f(5180), h = { string: _.quoteString, number: (b) => Object.is(b, -0) ? "-0" : String(b), boolean: String, symbol: (b, w, N) => {
- const I = Symbol.keyFor(b);
- return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(b.description)})`;
- }, bigint: (b, w, N) => `BigInt(${N(String(b))})`, undefined: String, object: d.objectToString, function: C.functionToString };
- u.toString = (b, w, N, I) => b === null ? "null" : h[typeof b](b, w, N, I);
+ const _ = f(1099), d = f(7860), C = f(5180), h = { string: _.quoteString, number: (k) => Object.is(k, -0) ? "-0" : String(k), boolean: String, symbol: (k, w, N) => {
+ const I = Symbol.keyFor(k);
+ return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(k.description)})`;
+ }, bigint: (k, w, N) => `BigInt(${N(String(k))})`, undefined: String, object: d.objectToString, function: C.functionToString };
+ u.toString = (k, w, N, I) => k === null ? "null" : h[typeof k](k, w, N, I);
}, 312: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 });
var _, d = f(1720), C = (_ = d) && _.__esModule ? _ : { default: _ };
@@ -2106,88 +2136,88 @@ function Qu() {
const C = d;
}, 1089: (i, u, f) => {
function _(R) {
- return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(F) {
- return typeof F;
- } : function(F) {
- return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(V) {
+ return typeof V;
+ } : function(V) {
+ return V && typeof Symbol == "function" && V.constructor === Symbol && V !== Symbol.prototype ? "symbol" : typeof V;
}, _(R);
}
- Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = P, u.matchesSelectorAndParentsTo = function(R, F, q) {
+ Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = D, u.matchesSelectorAndParentsTo = function(R, V, q) {
var G = R;
do {
- if (P(G, F)) return !0;
+ if (D(G, V)) return !0;
if (G === q) return !1;
G = G.parentNode;
} while (G);
return !1;
- }, u.addEvent = function(R, F, q, G) {
+ }, u.addEvent = function(R, V, q, G) {
if (R) {
var pe = w({ capture: !0 }, G);
- R.addEventListener ? R.addEventListener(F, q, pe) : R.attachEvent ? R.attachEvent("on" + F, q) : R["on" + F] = q;
+ R.addEventListener ? R.addEventListener(V, q, pe) : R.attachEvent ? R.attachEvent("on" + V, q) : R["on" + V] = q;
}
- }, u.removeEvent = function(R, F, q, G) {
+ }, u.removeEvent = function(R, V, q, G) {
if (R) {
var pe = w({ capture: !0 }, G);
- R.removeEventListener ? R.removeEventListener(F, q, pe) : R.detachEvent ? R.detachEvent("on" + F, q) : R["on" + F] = null;
+ R.removeEventListener ? R.removeEventListener(V, q, pe) : R.detachEvent ? R.detachEvent("on" + V, q) : R["on" + V] = null;
}
}, u.outerHeight = function(R) {
- var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R);
- return F += (0, d.int)(q.borderTopWidth), F += (0, d.int)(q.borderBottomWidth);
+ var V = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R);
+ return V += (0, d.int)(q.borderTopWidth), V += (0, d.int)(q.borderBottomWidth);
}, u.outerWidth = function(R) {
- var F = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R);
- return F += (0, d.int)(q.borderLeftWidth), F += (0, d.int)(q.borderRightWidth);
+ var V = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R);
+ return V += (0, d.int)(q.borderLeftWidth), V += (0, d.int)(q.borderRightWidth);
}, u.innerHeight = function(R) {
- var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R);
- return F -= (0, d.int)(q.paddingTop), F -= (0, d.int)(q.paddingBottom);
+ var V = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R);
+ return V -= (0, d.int)(q.paddingTop), V -= (0, d.int)(q.paddingBottom);
}, u.innerWidth = function(R) {
- var F = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R);
- return F -= (0, d.int)(q.paddingLeft), F -= (0, d.int)(q.paddingRight);
- }, u.offsetXYFromParent = function(R, F, q) {
- var G = F === F.ownerDocument.body ? { left: 0, top: 0 } : F.getBoundingClientRect(), pe = (R.clientX + F.scrollLeft - G.left) / q, oe = (R.clientY + F.scrollTop - G.top) / q;
- return { x: pe, y: oe };
- }, u.createCSSTransform = function(R, F) {
- var q = j(R, F, "px");
+ var V = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R);
+ return V -= (0, d.int)(q.paddingLeft), V -= (0, d.int)(q.paddingRight);
+ }, u.offsetXYFromParent = function(R, V, q) {
+ var G = V === V.ownerDocument.body ? { left: 0, top: 0 } : V.getBoundingClientRect(), pe = (R.clientX + V.scrollLeft - G.left) / q, ie = (R.clientY + V.scrollTop - G.top) / q;
+ return { x: pe, y: ie };
+ }, u.createCSSTransform = function(R, V) {
+ var q = L(R, V, "px");
return N({}, (0, C.browserPrefixToKey)("transform", C.default), q);
- }, u.createSVGTransform = function(R, F) {
- return j(R, F, "");
- }, u.getTranslation = j, u.getTouch = function(R, F) {
+ }, u.createSVGTransform = function(R, V) {
+ return L(R, V, "");
+ }, u.getTranslation = L, u.getTouch = function(R, V) {
return R.targetTouches && (0, d.findInArray)(R.targetTouches, function(q) {
- return F === q.identifier;
+ return V === q.identifier;
}) || R.changedTouches && (0, d.findInArray)(R.changedTouches, function(q) {
- return F === q.identifier;
+ return V === q.identifier;
});
}, u.getTouchIdentifier = function(R) {
if (R.targetTouches && R.targetTouches[0]) return R.targetTouches[0].identifier;
if (R.changedTouches && R.changedTouches[0]) return R.changedTouches[0].identifier;
}, u.addUserSelectStyles = function(R) {
if (R) {
- var F = R.getElementById("react-draggable-style-el");
- F || ((F = R.createElement("style")).type = "text/css", F.id = "react-draggable-style-el", F.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
-`, F.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
-`, R.getElementsByTagName("head")[0].appendChild(F)), R.body && ae(R.body, "react-draggable-transparent-selection");
+ var V = R.getElementById("react-draggable-style-el");
+ V || ((V = R.createElement("style")).type = "text/css", V.id = "react-draggable-style-el", V.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
+`, V.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
+`, R.getElementsByTagName("head")[0].appendChild(V)), R.body && oe(R.body, "react-draggable-transparent-selection");
}
}, u.removeUserSelectStyles = function(R) {
if (R)
try {
if (R.body && te(R.body, "react-draggable-transparent-selection"), R.selection) R.selection.empty();
else {
- var F = (R.defaultView || window).getSelection();
- F && F.type !== "Caret" && F.removeAllRanges();
+ var V = (R.defaultView || window).getSelection();
+ V && V.type !== "Caret" && V.removeAllRanges();
}
} catch {
}
- }, u.addClassName = ae, u.removeClassName = te;
+ }, u.addClassName = oe, u.removeClassName = te;
var d = f(7056), C = (function(R) {
if (R && R.__esModule) return R;
if (R === null || _(R) !== "object" && typeof R != "function") return { default: R };
- var F = h();
- if (F && F.has(R)) return F.get(R);
+ var V = h();
+ if (V && V.has(R)) return V.get(R);
var q = {}, G = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var pe in R) if (Object.prototype.hasOwnProperty.call(R, pe)) {
- var oe = G ? Object.getOwnPropertyDescriptor(R, pe) : null;
- oe && (oe.get || oe.set) ? Object.defineProperty(q, pe, oe) : q[pe] = R[pe];
+ var ie = G ? Object.getOwnPropertyDescriptor(R, pe) : null;
+ ie && (ie.get || ie.set) ? Object.defineProperty(q, pe, ie) : q[pe] = R[pe];
}
- return q.default = R, F && F.set(R, q), q;
+ return q.default = R, V && V.set(R, q), q;
})(f(3514));
function h() {
if (typeof WeakMap != "function") return null;
@@ -2196,69 +2226,69 @@ function Qu() {
return R;
}, R;
}
- function b(R, F) {
+ function k(R, V) {
var q = Object.keys(R);
if (Object.getOwnPropertySymbols) {
var G = Object.getOwnPropertySymbols(R);
- F && (G = G.filter(function(pe) {
+ V && (G = G.filter(function(pe) {
return Object.getOwnPropertyDescriptor(R, pe).enumerable;
})), q.push.apply(q, G);
}
return q;
}
function w(R) {
- for (var F = 1; F < arguments.length; F++) {
- var q = arguments[F] != null ? arguments[F] : {};
- F % 2 ? b(Object(q), !0).forEach(function(G) {
+ for (var V = 1; V < arguments.length; V++) {
+ var q = arguments[V] != null ? arguments[V] : {};
+ V % 2 ? k(Object(q), !0).forEach(function(G) {
N(R, G, q[G]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(q)) : b(Object(q)).forEach(function(G) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(q)) : k(Object(q)).forEach(function(G) {
Object.defineProperty(R, G, Object.getOwnPropertyDescriptor(q, G));
});
}
return R;
}
- function N(R, F, q) {
- return F in R ? Object.defineProperty(R, F, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : R[F] = q, R;
+ function N(R, V, q) {
+ return V in R ? Object.defineProperty(R, V, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : R[V] = q, R;
}
var I = "";
- function P(R, F) {
+ function D(R, V) {
return I || (I = (0, d.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(q) {
return (0, d.isFunction)(R[q]);
- })), !!(0, d.isFunction)(R[I]) && R[I](F);
+ })), !!(0, d.isFunction)(R[I]) && R[I](V);
}
- function j(R, F, q) {
- var G = R.x, pe = R.y, oe = "translate(".concat(G).concat(q, ",").concat(pe).concat(q, ")");
- if (F) {
- var fe = "".concat(typeof F.x == "string" ? F.x : F.x + q), he = "".concat(typeof F.y == "string" ? F.y : F.y + q);
- oe = "translate(".concat(fe, ", ").concat(he, ")") + oe;
+ function L(R, V, q) {
+ var G = R.x, pe = R.y, ie = "translate(".concat(G).concat(q, ",").concat(pe).concat(q, ")");
+ if (V) {
+ var fe = "".concat(typeof V.x == "string" ? V.x : V.x + q), he = "".concat(typeof V.y == "string" ? V.y : V.y + q);
+ ie = "translate(".concat(fe, ", ").concat(he, ")") + ie;
}
- return oe;
+ return ie;
}
- function ae(R, F) {
- R.classList ? R.classList.add(F) : R.className.match(new RegExp("(?:^|\\s)".concat(F, "(?!\\S)"))) || (R.className += " ".concat(F));
+ function oe(R, V) {
+ R.classList ? R.classList.add(V) : R.className.match(new RegExp("(?:^|\\s)".concat(V, "(?!\\S)"))) || (R.className += " ".concat(V));
}
- function te(R, F) {
- R.classList ? R.classList.remove(F) : R.className = R.className.replace(new RegExp("(?:^|\\s)".concat(F, "(?!\\S)"), "g"), "");
+ function te(R, V) {
+ R.classList ? R.classList.remove(V) : R.className = R.className.replace(new RegExp("(?:^|\\s)".concat(V, "(?!\\S)"), "g"), "");
}
}, 1099: (i, u) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.stringifyPath = u.quoteKey = u.isValidVariableName = u.IS_VALID_IDENTIFIER = u.quoteString = void 0;
const f = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, _ = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [`
`, "\\n"], ["\f", "\\f"], ["\r", "\\r"], ["'", "\\'"], ['"', '\\"'], ["\\", "\\\\"]]);
- function d(b) {
- return _.get(b) || `\\u${`0000${b.charCodeAt(0).toString(16)}`.slice(-4)}`;
+ function d(k) {
+ return _.get(k) || `\\u${`0000${k.charCodeAt(0).toString(16)}`.slice(-4)}`;
}
- u.quoteString = function(b) {
- return `'${b.replace(f, d)}'`;
+ u.quoteString = function(k) {
+ return `'${k.replace(f, d)}'`;
};
const C = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));
- function h(b) {
- return typeof b == "string" && !C.has(b) && u.IS_VALID_IDENTIFIER.test(b);
+ function h(k) {
+ return typeof k == "string" && !C.has(k) && u.IS_VALID_IDENTIFIER.test(k);
}
- u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = h, u.quoteKey = function(b, w) {
- return h(b) ? b : w(b);
- }, u.stringifyPath = function(b, w) {
+ u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = h, u.quoteKey = function(k, w) {
+ return h(k) ? k : w(k);
+ }, u.stringifyPath = function(k, w) {
let N = "";
- for (const I of b) h(I) ? N += `.${I}` : N += `[${w(I)}]`;
+ for (const I of k) h(I) ? N += `.${I}` : N += `[${w(I)}]`;
return N;
};
}, 1197: (i, u, f) => {
@@ -2273,212 +2303,212 @@ function Qu() {
_(d, C), i.exports = d.locals || {};
}, 1345: (i, u, f) => {
function _() {
- var b = this.constructor.getDerivedStateFromProps(this.props, this.state);
- b != null && this.setState(b);
+ var k = this.constructor.getDerivedStateFromProps(this.props, this.state);
+ k != null && this.setState(k);
}
- function d(b) {
+ function d(k) {
this.setState((function(w) {
- var N = this.constructor.getDerivedStateFromProps(b, w);
+ var N = this.constructor.getDerivedStateFromProps(k, w);
return N ?? null;
}).bind(this));
}
- function C(b, w) {
+ function C(k, w) {
try {
var N = this.props, I = this.state;
- this.props = b, this.state = w, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I);
+ this.props = k, this.state = w, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I);
} finally {
this.props = N, this.state = I;
}
}
- function h(b) {
- var w = b.prototype;
+ function h(k) {
+ var w = k.prototype;
if (!w || !w.isReactComponent) throw new Error("Can only polyfill class components");
- if (typeof b.getDerivedStateFromProps != "function" && typeof w.getSnapshotBeforeUpdate != "function") return b;
- var N = null, I = null, P = null;
- if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? P = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (P = "UNSAFE_componentWillUpdate"), N !== null || I !== null || P !== null) {
- var j = b.displayName || b.name, ae = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
+ if (typeof k.getDerivedStateFromProps != "function" && typeof w.getSnapshotBeforeUpdate != "function") return k;
+ var N = null, I = null, D = null;
+ if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? D = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (D = "UNSAFE_componentWillUpdate"), N !== null || I !== null || D !== null) {
+ var L = k.displayName || k.name, oe = typeof k.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
-` + j + " uses " + ae + " but also contains the following legacy lifecycles:" + (N !== null ? `
+` + L + " uses " + oe + " but also contains the following legacy lifecycles:" + (N !== null ? `
` + N : "") + (I !== null ? `
- ` + I : "") + (P !== null ? `
- ` + P : "") + `
+ ` + I : "") + (D !== null ? `
+ ` + D : "") + `
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`);
}
- if (typeof b.getDerivedStateFromProps == "function" && (w.componentWillMount = _, w.componentWillReceiveProps = d), typeof w.getSnapshotBeforeUpdate == "function") {
+ if (typeof k.getDerivedStateFromProps == "function" && (w.componentWillMount = _, w.componentWillReceiveProps = d), typeof w.getSnapshotBeforeUpdate == "function") {
if (typeof w.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
w.componentWillUpdate = C;
var te = w.componentDidUpdate;
- w.componentDidUpdate = function(R, F, q) {
+ w.componentDidUpdate = function(R, V, q) {
var G = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : q;
- te.call(this, R, F, G);
+ te.call(this, R, V, G);
};
}
- return b;
+ return k;
}
f.r(u), f.d(u, { polyfill: () => h }), _.__suppressDeprecationWarning = !0, d.__suppressDeprecationWarning = !0, C.__suppressDeprecationWarning = !0;
}, 1720: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.bodyOpenClassName = u.portalClassName = void 0;
var _ = Object.assign || function(S) {
- for (var L = 1; L < arguments.length; L++) {
- var A = arguments[L];
+ for (var j = 1; j < arguments.length; j++) {
+ var A = arguments[j];
for (var se in A) Object.prototype.hasOwnProperty.call(A, se) && (S[se] = A[se]);
}
return S;
}, d = /* @__PURE__ */ (function() {
- function S(L, A) {
+ function S(j, A) {
for (var se = 0; se < A.length; se++) {
var J = A[se];
- J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(L, J.key, J);
+ J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(j, J.key, J);
}
}
- return function(L, A, se) {
- return A && S(L.prototype, A), se && S(L, se), L;
+ return function(j, A, se) {
+ return A && S(j.prototype, A), se && S(j, se), j;
};
- })(), C = f(6540), h = te(C), b = te(f(961)), w = te(f(5556)), N = te(f(9090)), I = (function(S) {
+ })(), C = f(6540), h = te(C), k = te(f(961)), w = te(f(5556)), N = te(f(9090)), I = (function(S) {
if (S && S.__esModule) return S;
- var L = {};
- if (S != null) for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (L[A] = S[A]);
- return L.default = S, L;
- })(f(6462)), P = f(834), j = te(P), ae = f(1345);
+ var j = {};
+ if (S != null) for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (j[A] = S[A]);
+ return j.default = S, j;
+ })(f(6462)), D = f(834), L = te(D), oe = f(1345);
function te(S) {
return S && S.__esModule ? S : { default: S };
}
- function R(S, L) {
+ function R(S, j) {
if (!S) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !L || typeof L != "object" && typeof L != "function" ? S : L;
+ return !j || typeof j != "object" && typeof j != "function" ? S : j;
}
- var F = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = P.canUseDOM && b.default.createPortal !== void 0, pe = function(S) {
+ var V = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = D.canUseDOM && k.default.createPortal !== void 0, pe = function(S) {
return document.createElement(S);
- }, oe = function() {
- return G ? b.default.createPortal : b.default.unstable_renderSubtreeIntoContainer;
+ }, ie = function() {
+ return G ? k.default.createPortal : k.default.unstable_renderSubtreeIntoContainer;
};
function fe(S) {
return S();
}
var he = (function(S) {
- function L() {
+ function j() {
var A, se, J;
(function(Z, le) {
if (!(Z instanceof le)) throw new TypeError("Cannot call a class as a function");
- })(this, L);
- for (var Ee = arguments.length, ee = Array(Ee), V = 0; V < Ee; V++) ee[V] = arguments[V];
- return se = J = R(this, (A = L.__proto__ || Object.getPrototypeOf(L)).call.apply(A, [this].concat(ee))), J.removePortal = function() {
- !G && b.default.unmountComponentAtNode(J.node);
+ })(this, j);
+ for (var Ee = arguments.length, ee = Array(Ee), U = 0; U < Ee; U++) ee[U] = arguments[U];
+ return se = J = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(ee))), J.removePortal = function() {
+ !G && k.default.unmountComponentAtNode(J.node);
var Z = fe(J.props.parentSelector);
Z && Z.contains(J.node) ? Z.removeChild(J.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
}, J.portalRef = function(Z) {
J.portal = Z;
}, J.renderPortal = function(Z) {
- var le = oe()(J, h.default.createElement(N.default, _({ defaultStyles: L.defaultStyles }, Z)), J.node);
+ var le = ie()(J, h.default.createElement(N.default, _({ defaultStyles: j.defaultStyles }, Z)), J.node);
J.portalRef(le);
}, R(J, se);
}
return (function(A, se) {
if (typeof se != "function" && se !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof se);
A.prototype = Object.create(se && se.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), se && (Object.setPrototypeOf ? Object.setPrototypeOf(A, se) : A.__proto__ = se);
- })(L, S), d(L, [{ key: "componentDidMount", value: function() {
- P.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props));
+ })(j, S), d(j, [{ key: "componentDidMount", value: function() {
+ D.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props));
} }, { key: "getSnapshotBeforeUpdate", value: function(A) {
return { prevParent: fe(A.parentSelector), nextParent: fe(this.props.parentSelector) };
} }, { key: "componentDidUpdate", value: function(A, se, J) {
- if (P.canUseDOM) {
- var Ee = this.props, ee = Ee.isOpen, V = Ee.portalClassName;
- A.portalClassName !== V && (this.node.className = V);
+ if (D.canUseDOM) {
+ var Ee = this.props, ee = Ee.isOpen, U = Ee.portalClassName;
+ A.portalClassName !== U && (this.node.className = U);
var Z = J.prevParent, le = J.nextParent;
le !== Z && (Z.removeChild(this.node), le.appendChild(this.node)), (A.isOpen || ee) && !G && this.renderPortal(this.props);
}
} }, { key: "componentWillUnmount", value: function() {
- if (P.canUseDOM && this.node && this.portal) {
+ if (D.canUseDOM && this.node && this.portal) {
var A = this.portal.state, se = Date.now(), J = A.isOpen && this.props.closeTimeoutMS && (A.closesAt || se + this.props.closeTimeoutMS);
J ? (A.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, J - se)) : this.removePortal();
}
} }, { key: "render", value: function() {
- return P.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), oe()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: L.defaultStyles }, this.props)), this.node)) : null;
+ return D.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), ie()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null;
} }], [{ key: "setAppElement", value: function(A) {
I.setElement(A);
- } }]), L;
+ } }]), j;
})(C.Component);
- he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(j.default), w.default.instanceOf(P.SafeHTMLCollection), w.default.instanceOf(P.SafeNodeList), w.default.arrayOf(w.default.instanceOf(j.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: F, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() {
+ he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(L.default), w.default.instanceOf(D.SafeHTMLCollection), w.default.instanceOf(D.SafeNodeList), w.default.arrayOf(w.default.instanceOf(L.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: V, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() {
return document.body;
- }, overlayElement: function(S, L) {
- return h.default.createElement("div", S, L);
- }, contentElement: function(S, L) {
- return h.default.createElement("div", S, L);
- } }, he.defaultStyles = { overlay: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(255, 255, 255, 0.75)" }, content: { position: "absolute", top: "40px", left: "40px", right: "40px", bottom: "40px", border: "1px solid #ccc", background: "#fff", overflow: "auto", WebkitOverflowScrolling: "touch", borderRadius: "4px", outline: "none", padding: "20px" } }, (0, ae.polyfill)(he), u.default = he;
+ }, overlayElement: function(S, j) {
+ return h.default.createElement("div", S, j);
+ }, contentElement: function(S, j) {
+ return h.default.createElement("div", S, j);
+ } }, he.defaultStyles = { overlay: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(255, 255, 255, 0.75)" }, content: { position: "absolute", top: "40px", left: "40px", right: "40px", bottom: "40px", border: "1px solid #ccc", background: "#fff", overflow: "auto", WebkitOverflowScrolling: "touch", borderRadius: "4px", outline: "none", padding: "20px" } }, (0, oe.polyfill)(he), u.default = he;
}, 1726: (i, u, f) => {
- Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(h, b, w) {
- if (!h.props.bounds) return [b, w];
+ Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(h, k, w) {
+ if (!h.props.bounds) return [k, w];
var N = h.props.bounds;
- N = typeof N == "string" ? N : (function(F) {
- return { left: F.left, top: F.top, right: F.right, bottom: F.bottom };
+ N = typeof N == "string" ? N : (function(V) {
+ return { left: V.left, top: V.top, right: V.right, bottom: V.bottom };
})(N);
var I = C(h);
if (typeof N == "string") {
- var P, j = I.ownerDocument, ae = j.defaultView;
- if (!((P = N === "parent" ? I.parentNode : j.querySelector(N)) instanceof ae.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.');
- var te = ae.getComputedStyle(I), R = ae.getComputedStyle(P);
- N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(te.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(te.marginTop), right: (0, d.innerWidth)(P) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(te.marginRight), bottom: (0, d.innerHeight)(P) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(te.marginBottom) };
- }
- return (0, _.isNum)(N.right) && (b = Math.min(b, N.right)), (0, _.isNum)(N.bottom) && (w = Math.min(w, N.bottom)), (0, _.isNum)(N.left) && (b = Math.max(b, N.left)), (0, _.isNum)(N.top) && (w = Math.max(w, N.top)), [b, w];
- }, u.snapToGrid = function(h, b, w) {
- var N = Math.round(b / h[0]) * h[0], I = Math.round(w / h[1]) * h[1];
+ var D, L = I.ownerDocument, oe = L.defaultView;
+ if (!((D = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof oe.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.');
+ var te = oe.getComputedStyle(I), R = oe.getComputedStyle(D);
+ N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(te.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(te.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(te.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(te.marginBottom) };
+ }
+ return (0, _.isNum)(N.right) && (k = Math.min(k, N.right)), (0, _.isNum)(N.bottom) && (w = Math.min(w, N.bottom)), (0, _.isNum)(N.left) && (k = Math.max(k, N.left)), (0, _.isNum)(N.top) && (w = Math.max(w, N.top)), [k, w];
+ }, u.snapToGrid = function(h, k, w) {
+ var N = Math.round(k / h[0]) * h[0], I = Math.round(w / h[1]) * h[1];
return [N, I];
}, u.canDragX = function(h) {
return h.props.axis === "both" || h.props.axis === "x";
}, u.canDragY = function(h) {
return h.props.axis === "both" || h.props.axis === "y";
- }, u.getControlPosition = function(h, b, w) {
- var N = typeof b == "number" ? (0, d.getTouch)(h, b) : null;
- if (typeof b == "number" && !N) return null;
- var I = C(w), P = w.props.offsetParent || I.offsetParent || I.ownerDocument.body;
- return (0, d.offsetXYFromParent)(N || h, P, w.props.scale);
- }, u.createCoreData = function(h, b, w) {
- var N = h.state, I = !(0, _.isNum)(N.lastX), P = C(h);
- return I ? { node: P, deltaX: 0, deltaY: 0, lastX: b, lastY: w, x: b, y: w } : { node: P, deltaX: b - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: w };
- }, u.createDraggableData = function(h, b) {
+ }, u.getControlPosition = function(h, k, w) {
+ var N = typeof k == "number" ? (0, d.getTouch)(h, k) : null;
+ if (typeof k == "number" && !N) return null;
+ var I = C(w), D = w.props.offsetParent || I.offsetParent || I.ownerDocument.body;
+ return (0, d.offsetXYFromParent)(N || h, D, w.props.scale);
+ }, u.createCoreData = function(h, k, w) {
+ var N = h.state, I = !(0, _.isNum)(N.lastX), D = C(h);
+ return I ? { node: D, deltaX: 0, deltaY: 0, lastX: k, lastY: w, x: k, y: w } : { node: D, deltaX: k - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: k, y: w };
+ }, u.createDraggableData = function(h, k) {
var w = h.props.scale;
- return { node: b.node, x: h.state.x + b.deltaX / w, y: h.state.y + b.deltaY / w, deltaX: b.deltaX / w, deltaY: b.deltaY / w, lastX: h.state.x, lastY: h.state.y };
+ return { node: k.node, x: h.state.x + k.deltaX / w, y: h.state.y + k.deltaY / w, deltaX: k.deltaX / w, deltaY: k.deltaY / w, lastX: h.state.x, lastY: h.state.y };
};
var _ = f(7056), d = f(1089);
function C(h) {
- var b = h.findDOMNode();
- if (!b) throw new Error(": Unmounted during event!");
- return b;
+ var k = h.findDOMNode();
+ if (!k) throw new Error(": Unmounted during event!");
+ return k;
}
}, 2411: (i, u) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function w(N) {
- var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(P, j) {
- return P.concat(j.shadowRoot ? w(j.shadowRoot) : [j]);
+ var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(D, L) {
+ return D.concat(L.shadowRoot ? w(L.shadowRoot) : [L]);
}, []);
- return I.filter(b);
+ return I.filter(k);
};
var f = "none", _ = "contents", d = /^(input|select|textarea|button|object|iframe)$/;
function C(w) {
var N = w.offsetWidth <= 0 && w.offsetHeight <= 0;
if (N && !w.innerHTML) return !0;
try {
- var I = window.getComputedStyle(w), P = I.getPropertyValue("display");
- return N ? P !== _ && (function(j, ae) {
- return ae.getPropertyValue("overflow") !== "visible" || j.scrollWidth <= 0 && j.scrollHeight <= 0;
- })(w, I) : P === f;
+ var I = window.getComputedStyle(w), D = I.getPropertyValue("display");
+ return N ? D !== _ && (function(L, oe) {
+ return oe.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0;
+ })(w, I) : D === f;
} catch {
return console.warn("Failed to inspect element style"), !1;
}
}
function h(w, N) {
var I = w.nodeName.toLowerCase();
- return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(P) {
- for (var j = P, ae = P.getRootNode && P.getRootNode(); j && j !== document.body; ) {
- if (ae && j === ae && (j = ae.host.parentNode), C(j)) return !1;
- j = j.parentNode;
+ return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(D) {
+ for (var L = D, oe = D.getRootNode && D.getRootNode(); L && L !== document.body; ) {
+ if (oe && L === oe && (L = oe.host.parentNode), C(L)) return !1;
+ L = L.parentNode;
}
return !0;
})(w);
}
- function b(w) {
+ function k(w) {
var N = w.getAttribute("tabindex");
N === null && (N = void 0);
var I = isNaN(N);
@@ -2499,33 +2529,33 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
if (!_) throw Error(h(227));
- function b(e, t, n, r, a, p, m, E, H) {
- var U = Array.prototype.slice.call(arguments, 3);
+ function k(e, t, n, r, a, p, m, E, H) {
+ var F = Array.prototype.slice.call(arguments, 3);
try {
- t.apply(n, U);
+ t.apply(n, F);
} catch (ce) {
this.onError(ce);
}
}
- var w = !1, N = null, I = !1, P = null, j = { onError: function(e) {
+ var w = !1, N = null, I = !1, D = null, L = { onError: function(e) {
w = !0, N = e;
} };
- function ae(e, t, n, r, a, p, m, E, H) {
- w = !1, N = null, b.apply(j, arguments);
+ function oe(e, t, n, r, a, p, m, E, H) {
+ w = !1, N = null, k.apply(L, arguments);
}
- var te = null, R = null, F = null;
+ var te = null, R = null, V = null;
function q(e, t, n) {
var r = e.type || "unknown-event";
- e.currentTarget = F(n), (function(a, p, m, E, H, U, ce, Re, Ue) {
- if (ae.apply(this, arguments), w) {
+ e.currentTarget = V(n), (function(a, p, m, E, H, F, ce, Re, Fe) {
+ if (oe.apply(this, arguments), w) {
if (!w) throw Error(h(198));
var ot = N;
- w = !1, N = null, I || (I = !0, P = ot);
+ w = !1, N = null, I || (I = !0, D = ot);
}
})(r, t, void 0, e), e.currentTarget = null;
}
var G = null, pe = {};
- function oe() {
+ function ie() {
if (G) for (var e in pe) {
var t = pe[e], n = G.indexOf(e);
if (!(-1 < n)) throw Error(h(96, e));
@@ -2546,10 +2576,10 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
}
function fe(e, t, n) {
- if (L[e]) throw Error(h(100, e));
- L[e] = t, A[e] = t.eventTypes[n].dependencies;
+ if (j[e]) throw Error(h(100, e));
+ j[e] = t, A[e] = t.eventTypes[n].dependencies;
}
- var he = [], S = {}, L = {}, A = {};
+ var he = [], S = {}, j = {}, A = {};
function se(e) {
var t, n = !1;
for (t in e) if (e.hasOwnProperty(t)) {
@@ -2559,9 +2589,9 @@ https://fb.me/react-async-component-lifecycle-hooks`);
pe[t] = r, n = !0;
}
}
- n && oe();
+ n && ie();
}
- var J = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Ee = null, ee = null, V = null;
+ var J = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Ee = null, ee = null, U = null;
function Z(e) {
if (e = R(e)) {
if (typeof Ee != "function") throw Error(h(280));
@@ -2570,12 +2600,12 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
}
function le(e) {
- ee ? V ? V.push(e) : V = [e] : ee = e;
+ ee ? U ? U.push(e) : U = [e] : ee = e;
}
function ge() {
if (ee) {
- var e = ee, t = V;
- if (V = ee = null, Z(e), t) for (e = 0; e < t.length; e++) Z(t[e]);
+ var e = ee, t = U;
+ if (U = ee = null, Z(e), t) for (e = 0; e < t.length; e++) Z(t[e]);
}
}
function ke(e, t) {
@@ -2584,11 +2614,11 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function Ne(e, t, n, r, a) {
return e(t, n, r, a);
}
- function Ve() {
+ function Ue() {
}
var Ae = ke, Le = !1, Ke = !1;
function Je() {
- ee === null && V === null || (Ve(), ge());
+ ee === null && U === null || (Ue(), ge());
}
function ye(e, t, n) {
if (Ke) return e(t, n);
@@ -2599,7 +2629,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
Ke = !1, Je();
}
}
- var D = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ne = Object.prototype.hasOwnProperty, we = {}, Ce = {};
+ var P = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ne = Object.prototype.hasOwnProperty, we = {}, Ce = {};
function Pe(e, t, n, r, a, p) {
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = p;
}
@@ -2646,14 +2676,14 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function Pt(e, t, n, r) {
var a = _e.hasOwnProperty(t) ? _e[t] : null;
(a !== null ? a.type === 0 : !r && 2 < t.length && (t[0] === "o" || t[0] === "O") && (t[1] === "n" || t[1] === "N")) || ((function(p, m, E, H) {
- if (m == null || (function(U, ce, Re, Ue) {
+ if (m == null || (function(F, ce, Re, Fe) {
if (Re !== null && Re.type === 0) return !1;
switch (typeof ce) {
case "function":
case "symbol":
return !0;
case "boolean":
- return !Ue && (Re !== null ? !Re.acceptsBooleans : (U = U.toLowerCase().slice(0, 5)) !== "data-" && U !== "aria-");
+ return !Fe && (Re !== null ? !Re.acceptsBooleans : (F = F.toLowerCase().slice(0, 5)) !== "data-" && F !== "aria-");
default:
return !1;
}
@@ -2671,7 +2701,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
return !1;
})(t, n, a, r) && (n = null), r || a === null ? (function(p) {
- return !!ne.call(Ce, p) || !ne.call(we, p) && (D.test(p) ? Ce[p] = !0 : (we[p] = !0, !1));
+ return !!ne.call(Ce, p) || !ne.call(we, p) && (P.test(p) ? Ce[p] = !0 : (we[p] = !0, !1));
})(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : a.mustUseProperty ? e[a.propertyName] = n === null ? a.type !== 3 && "" : n : (t = a.attributeName, r = a.attributeNamespace, n === null ? e.removeAttribute(t) : (n = (a = a.type) === 3 || a === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))));
}
et.hasOwnProperty("ReactCurrentDispatcher") || (et.ReactCurrentDispatcher = { current: null }), et.hasOwnProperty("ReactCurrentBatchConfig") || (et.ReactCurrentBatchConfig = { suspense: null });
@@ -2953,28 +2983,28 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
if (a.return !== p.return) a = m, p = E;
else {
- for (var H = !1, U = m.child; U; ) {
- if (U === a) {
+ for (var H = !1, F = m.child; F; ) {
+ if (F === a) {
H = !0, a = m, p = E;
break;
}
- if (U === p) {
+ if (F === p) {
H = !0, p = m, a = E;
break;
}
- U = U.sibling;
+ F = F.sibling;
}
if (!H) {
- for (U = E.child; U; ) {
- if (U === a) {
+ for (F = E.child; F; ) {
+ if (F === a) {
H = !0, a = E, p = m;
break;
}
- if (U === p) {
+ if (F === p) {
H = !0, p = E, a = m;
break;
}
- U = U.sibling;
+ F = F.sibling;
}
if (!H) throw Error(h(189));
}
@@ -3017,7 +3047,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function yn(e) {
if (e !== null && (yt = kt(yt, e)), e = yt, yt = null, e) {
if (jt(e, bt), yt) throw Error(h(95));
- if (I) throw e = P, I = !1, P = null, e;
+ if (I) throw e = D, I = !1, D = null, e;
}
}
function ur(e) {
@@ -3062,8 +3092,8 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var p = e.nativeEvent, m = e.eventSystemFlags;
n === 0 && (m |= 64);
for (var E = null, H = 0; H < he.length; H++) {
- var U = he[H];
- U && (U = U.extractEvents(r, t, p, a, m)) && (E = kt(E, U));
+ var F = he[H];
+ F && (F = F.extractEvents(r, t, p, a, m)) && (E = kt(E, F));
}
yn(E);
}
@@ -3205,7 +3235,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
n ? e.addEventListener(t, r, !0) : e.addEventListener(t, r, !1);
}
function ls(e, t, n, r) {
- Le || Ve();
+ Le || Ue();
var a = Po, p = Le;
Le = !0;
try {
@@ -3223,19 +3253,19 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var a = mr(e, t, n, r);
if (a === null) Xn(e, r);
else if (-1 < ln.indexOf(e)) e = pr(a, e, t, n, r), ut.push(e);
- else if (!(function(p, m, E, H, U) {
+ else if (!(function(p, m, E, H, F) {
switch (m) {
case "focus":
- return wt = _n(wt, p, m, E, H, U), !0;
+ return wt = _n(wt, p, m, E, H, F), !0;
case "dragenter":
- return Tt = _n(Tt, p, m, E, H, U), !0;
+ return Tt = _n(Tt, p, m, E, H, F), !0;
case "mouseover":
- return Lt = _n(Lt, p, m, E, H, U), !0;
+ return Lt = _n(Lt, p, m, E, H, F), !0;
case "pointerover":
- var ce = U.pointerId;
- return kn.set(ce, _n(kn.get(ce) || null, p, m, E, H, U)), !0;
+ var ce = F.pointerId;
+ return kn.set(ce, _n(kn.get(ce) || null, p, m, E, H, F)), !0;
case "gotpointercapture":
- return ce = U.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, m, E, H, U)), !0;
+ return ce = F.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, m, E, H, F)), !0;
}
return !1;
})(a, e, t, n, r)) {
@@ -3690,29 +3720,29 @@ https://fb.me/react-async-component-lifecycle-hooks`);
} }), xa = jr.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), Lr = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, xs = { eventTypes: Lr, extractEvents: function(e, t, n, r, a) {
var p = e === "mouseover" || e === "pointerover", m = e === "mouseout" || e === "pointerout";
if (p && !(32 & a) && (n.relatedTarget || n.fromElement) || !m && !p || (p = r.window === r ? r : (p = r.ownerDocument) ? p.defaultView || p.parentWindow : window, m ? (m = t, (t = (t = n.relatedTarget || n.toElement) ? no(t) : null) !== null && (t !== rt(t) || t.tag !== 5 && t.tag !== 6) && (t = null)) : m = null, m === t)) return null;
- if (e === "mouseout" || e === "mouseover") var E = jr, H = Lr.mouseLeave, U = Lr.mouseEnter, ce = "mouse";
- else e !== "pointerout" && e !== "pointerover" || (E = xa, H = Lr.pointerLeave, U = Lr.pointerEnter, ce = "pointer");
- if (e = m == null ? p : Zn(m), p = t == null ? p : Zn(t), (H = E.getPooled(H, m, n, r)).type = ce + "leave", H.target = e, H.relatedTarget = p, (n = E.getPooled(U, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = m) && ce) e: {
- for (U = ce, m = 0, e = E = r; e; e = Jn(e)) m++;
- for (e = 0, t = U; t; t = Jn(t)) e++;
+ if (e === "mouseout" || e === "mouseover") var E = jr, H = Lr.mouseLeave, F = Lr.mouseEnter, ce = "mouse";
+ else e !== "pointerout" && e !== "pointerover" || (E = xa, H = Lr.pointerLeave, F = Lr.pointerEnter, ce = "pointer");
+ if (e = m == null ? p : Zn(m), p = t == null ? p : Zn(t), (H = E.getPooled(H, m, n, r)).type = ce + "leave", H.target = e, H.relatedTarget = p, (n = E.getPooled(F, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = m) && ce) e: {
+ for (F = ce, m = 0, e = E = r; e; e = Jn(e)) m++;
+ for (e = 0, t = F; t; t = Jn(t)) e++;
for (; 0 < m - e; ) E = Jn(E), m--;
- for (; 0 < e - m; ) U = Jn(U), e--;
+ for (; 0 < e - m; ) F = Jn(F), e--;
for (; m--; ) {
- if (E === U || E === U.alternate) break e;
- E = Jn(E), U = Jn(U);
+ if (E === F || E === F.alternate) break e;
+ E = Jn(E), F = Jn(F);
}
E = null;
}
else E = null;
- for (U = E, E = []; r && r !== U && ((m = r.alternate) === null || m !== U); ) E.push(r), r = Jn(r);
- for (r = []; ce && ce !== U && ((m = ce.alternate) === null || m !== U); ) r.push(ce), ce = Jn(ce);
+ for (F = E, E = []; r && r !== F && ((m = r.alternate) === null || m !== F); ) E.push(r), r = Jn(r);
+ for (r = []; ce && ce !== F && ((m = ce.alternate) === null || m !== F); ) r.push(ce), ce = Jn(ce);
for (ce = 0; ce < E.length; ce++) er(E[ce], "bubbled", H);
for (ce = r.length; 0 < ce--; ) er(r[ce], "captured", n);
return 64 & a ? [H, n] : [H];
} }, rr = typeof Object.is == "function" ? Object.is : function(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t;
}, Ss = Object.prototype.hasOwnProperty;
- function Fr(e, t) {
+ function Vr(e, t) {
if (rr(e, t)) return !0;
if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
var n = Object.keys(e), r = Object.keys(t);
@@ -3720,12 +3750,12 @@ https://fb.me/react-async-component-lifecycle-hooks`);
for (r = 0; r < n.length; r++) if (!Ss.call(t, n[r]) || !rr(e[n[r]], t[n[r]])) return !1;
return !0;
}
- var Cs = J && "documentMode" in document && 11 >= document.documentMode, Fi = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, so = null, Vi = null, Vr = null, Ui = !1;
+ var Cs = J && "documentMode" in document && 11 >= document.documentMode, Vi = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, so = null, Ui = null, Ur = null, Fi = !1;
function Sa(e, t) {
var n = t.window === t ? t.document : t.nodeType === 9 ? t : t.ownerDocument;
- return Ui || so == null || so !== Zt(n) ? null : ("selectionStart" in (n = so) && Oi(n) ? n = { start: n.selectionStart, end: n.selectionEnd } : n = { anchorNode: (n = (n.ownerDocument && n.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: n.anchorOffset, focusNode: n.focusNode, focusOffset: n.focusOffset }, Vr && Fr(Vr, n) ? null : (Vr = n, (e = Ot.getPooled(Fi.select, Vi, e, t)).type = "select", e.target = so, Bt(e), e));
+ return Fi || so == null || so !== Zt(n) ? null : ("selectionStart" in (n = so) && Oi(n) ? n = { start: n.selectionStart, end: n.selectionEnd } : n = { anchorNode: (n = (n.ownerDocument && n.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: n.anchorOffset, focusNode: n.focusNode, focusOffset: n.focusOffset }, Ur && Vr(Ur, n) ? null : (Ur = n, (e = Ot.getPooled(Vi.select, Ui, e, t)).type = "select", e.target = so, Bt(e), e));
}
- var Ts = { eventTypes: Fi, extractEvents: function(e, t, n, r, a, p) {
+ var Ts = { eventTypes: Vi, extractEvents: function(e, t, n, r, a, p) {
if (!(p = !(a = p || (r.window === r ? r.document : r.nodeType === 9 ? r : r.ownerDocument)))) {
e: {
a = Ge(a), p = A.onSelect;
@@ -3740,18 +3770,18 @@ https://fb.me/react-async-component-lifecycle-hooks`);
if (p) return null;
switch (a = t ? Zn(t) : window, e) {
case "focus":
- (ga(a) || a.contentEditable === "true") && (so = a, Vi = t, Vr = null);
+ (ga(a) || a.contentEditable === "true") && (so = a, Ui = t, Ur = null);
break;
case "blur":
- Vr = Vi = so = null;
+ Ur = Ui = so = null;
break;
case "mousedown":
- Ui = !0;
+ Fi = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- return Ui = !1, Sa(n, r);
+ return Fi = !1, Sa(n, r);
case "selectionchange":
if (Cs) break;
case "keydown":
@@ -3859,7 +3889,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return Bt(t = e.getPooled(a, t, n, r)), t;
} };
if (G) throw Error(h(101));
- G = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), oe(), te = Ri, R = kr, F = Zn, se({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: si });
+ G = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), ie(), te = Ri, R = kr, V = Zn, se({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: si });
var g = [], y = -1;
function x(e) {
0 > y || (e.current = g[y], g[y] = null, y--);
@@ -3867,7 +3897,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function z(e, t) {
y++, g[y] = e.current, e.current = t;
}
- var Q = {}, X = { current: Q }, ie = { current: !1 }, ue = Q;
+ var Q = {}, X = { current: Q }, ae = { current: !1 }, ue = Q;
function me(e, t) {
var n = e.type.contextTypes;
if (!n) return Q;
@@ -3881,11 +3911,11 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return (e = e.childContextTypes) != null;
}
function Oe() {
- x(ie), x(X);
+ x(ae), x(X);
}
function Te(e, t, n) {
if (X.current !== Q) throw Error(h(168));
- z(X, t), z(ie, n);
+ z(X, t), z(ae, n);
}
function ze(e, t, n) {
var r = e.stateNode;
@@ -3894,18 +3924,18 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return d({}, n, {}, r);
}
function st(e) {
- return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Q, ue = X.current, z(X, e), z(ie, ie.current), !0;
+ return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Q, ue = X.current, z(X, e), z(ae, ae.current), !0;
}
function He(e, t, n) {
var r = e.stateNode;
if (!r) throw Error(h(169));
- n ? (e = ze(e, t, ue), r.__reactInternalMemoizedMergedChildContext = e, x(ie), x(X), z(X, e)) : x(ie), z(ie, n);
+ n ? (e = ze(e, t, ue), r.__reactInternalMemoizedMergedChildContext = e, x(ae), x(X), z(X, e)) : x(ae), z(ae, n);
}
var je = C.unstable_runWithPriority, dt = C.unstable_scheduleCallback, vt = C.unstable_cancelCallback, Ht = C.unstable_requestPaint, xt = C.unstable_now, It = C.unstable_getCurrentPriorityLevel, St = C.unstable_ImmediatePriority, mt = C.unstable_UserBlockingPriority, En = C.unstable_NormalPriority, it = C.unstable_LowPriority, xn = C.unstable_IdlePriority, jn = {}, lo = C.unstable_shouldYield, Wt = Ht !== void 0 ? Ht : function() {
}, Jt = null, en = null, qt = !1, cn = xt(), Nt = 1e4 > cn ? xt : function() {
return xt() - cn;
};
- function Ft() {
+ function Vt() {
switch (It()) {
case St:
return 99;
@@ -3974,20 +4004,20 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
}
}
- function Fo(e, t, n) {
+ function Vo(e, t, n) {
return 1073741821 - (1 + ((1073741821 - e + t / 10) / (n /= 10) | 0)) * n;
}
function nn(e, t) {
if (e && e.defaultProps) for (var n in t = d({}, t), e = e.defaultProps) t[n] === void 0 && (t[n] = e[n]);
return t;
}
- var Ur = { current: null }, Vo = null, wr = null, co = null;
+ var Fr = { current: null }, Uo = null, wr = null, co = null;
function ir() {
- co = wr = Vo = null;
+ co = wr = Uo = null;
}
- function Uo(e) {
- var t = Ur.current;
- x(Ur), e.type._context._currentValue = t;
+ function Fo(e) {
+ var t = Fr.current;
+ x(Fr), e.type._context._currentValue = t;
}
function xl(e, t) {
for (; e !== null; ) {
@@ -4001,12 +4031,12 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
}
function di(e, t) {
- Vo = e, co = wr = null, (e = e.dependencies) !== null && e.firstContext !== null && (e.expirationTime >= t && (Er = !0), e.firstContext = null);
+ Uo = e, co = wr = null, (e = e.dependencies) !== null && e.firstContext !== null && (e.expirationTime >= t && (Er = !0), e.firstContext = null);
}
function Ln(e, t) {
if (co !== e && t !== !1 && t !== 0) if (typeof t == "number" && t !== 1073741823 || (co = e, t = 1073741823), t = { context: e, observedBits: t, next: null }, wr === null) {
- if (Vo === null) throw Error(h(308));
- wr = t, Vo.dependencies = { expirationTime: 0, firstContext: t, responders: null };
+ if (Uo === null) throw Error(h(308));
+ wr = t, Uo.dependencies = { expirationTime: 0, firstContext: t, responders: null };
} else wr = wr.next = t;
return e._currentValue;
}
@@ -4043,19 +4073,19 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
if (p !== null) {
E = p.next;
- var H = a.baseState, U = 0, ce = null, Re = null, Ue = null;
+ var H = a.baseState, F = 0, ce = null, Re = null, Fe = null;
if (E !== null) for (var ot = E; ; ) {
if ((m = ot.expirationTime) < r) {
- var Un = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null };
- Ue === null ? (Re = Ue = Un, ce = H) : Ue = Ue.next = Un, m > U && (U = m);
+ var Fn = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null };
+ Fe === null ? (Re = Fe = Fn, ce = H) : Fe = Fe.next = Fn, m > F && (F = m);
} else {
- Ue !== null && (Ue = Ue.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), _c(m, ot.suspenseConfig);
+ Fe !== null && (Fe = Fe.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), _c(m, ot.suspenseConfig);
e: {
var on = e, W = ot;
- switch (m = t, Un = n, W.tag) {
+ switch (m = t, Fn = n, W.tag) {
case 1:
if (typeof (on = W.payload) == "function") {
- H = on.call(Un, H, m);
+ H = on.call(Fn, H, m);
break e;
}
H = on;
@@ -4063,7 +4093,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
case 3:
on.effectTag = -4097 & on.effectTag | 64;
case 0:
- if ((m = typeof (on = W.payload) == "function" ? on.call(Un, H, m) : on) == null) break e;
+ if ((m = typeof (on = W.payload) == "function" ? on.call(Fn, H, m) : on) == null) break e;
H = d({}, H, m);
break e;
case 2:
@@ -4077,7 +4107,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
ot = p.next = m.next, m.next = E, a.baseQueue = p = m, a.shared.pending = null;
}
}
- Ue === null ? ce = H : Ue.next = Re, a.baseState = ce, a.baseQueue = Ue, es(U), e.expirationTime = U, e.memoizedState = H;
+ Fe === null ? ce = H : Fe.next = Re, a.baseState = ce, a.baseQueue = Fe, es(F), e.expirationTime = F, e.memoizedState = H;
}
}
function Cl(e, t, n) {
@@ -4109,7 +4139,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
(r = po(n = Ko(n, e, r), r)).tag = 2, t != null && (r.callback = t), fo(e, r), yo(e, n);
} };
function Ol(e, t, n, r, a, p, m) {
- return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, m) : !t.prototype || !t.prototype.isPureReactComponent || !Fr(n, r) || !Fr(a, p);
+ return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, m) : !t.prototype || !t.prototype.isPureReactComponent || !Vr(n, r) || !Vr(a, p);
}
function Nl(e, t, n) {
var r = !1, a = Q, p = t.contextType;
@@ -4178,7 +4208,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function H(W, B, re, ve) {
return B !== null && B.elementType === re.type ? ((ve = a(B, re.props)).ref = qi(W, B, re), ve.return = W, ve) : ((ve = ts(re.type, re.key, re.props, null, W.mode, ve)).ref = qi(W, B, re), ve.return = W, ve);
}
- function U(W, B, re, ve) {
+ function F(W, B, re, ve) {
return B === null || B.tag !== 4 || B.stateNode.containerInfo !== re.containerInfo || B.stateNode.implementation !== re.implementation ? ((B = yl(re, W.mode, ve)).return = W, B) : ((B = a(B, re.children || [])).return = W, B);
}
function ce(W, B, re, ve, xe) {
@@ -4198,7 +4228,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
return null;
}
- function Ue(W, B, re, ve) {
+ function Fe(W, B, re, ve) {
var xe = B !== null ? B.key : null;
if (typeof re == "string" || typeof re == "number") return xe !== null ? null : E(W, B, "" + re, ve);
if (typeof re == "object" && re !== null) {
@@ -4206,7 +4236,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
case Gt:
return re.key === xe ? re.type === Nn ? ce(W, B, re.props.children, ve, xe) : H(W, B, re, ve) : null;
case On:
- return re.key === xe ? U(W, B, re, ve) : null;
+ return re.key === xe ? F(W, B, re, ve) : null;
}
if (Pa(re) || Wn(re)) return xe !== null ? null : ce(W, B, re, ve, null);
Da(W, re);
@@ -4220,30 +4250,30 @@ https://fb.me/react-async-component-lifecycle-hooks`);
case Gt:
return W = W.get(ve.key === null ? re : ve.key) || null, ve.type === Nn ? ce(B, W, ve.props.children, xe, ve.key) : H(B, W, ve, xe);
case On:
- return U(B, W = W.get(ve.key === null ? re : ve.key) || null, ve, xe);
+ return F(B, W = W.get(ve.key === null ? re : ve.key) || null, ve, xe);
}
if (Pa(ve) || Wn(ve)) return ce(B, W = W.get(re) || null, ve, xe, null);
Da(B, ve);
}
return null;
}
- function Un(W, B, re, ve) {
- for (var xe = null, Ie = null, Fe = B, at = B = 0, Mt = null; Fe !== null && at < re.length; at++) {
- Fe.index > at ? (Mt = Fe, Fe = null) : Mt = Fe.sibling;
- var Xe = Ue(W, Fe, re[at], ve);
+ function Fn(W, B, re, ve) {
+ for (var xe = null, Ie = null, Ve = B, at = B = 0, Mt = null; Ve !== null && at < re.length; at++) {
+ Ve.index > at ? (Mt = Ve, Ve = null) : Mt = Ve.sibling;
+ var Xe = Fe(W, Ve, re[at], ve);
if (Xe === null) {
- Fe === null && (Fe = Mt);
+ Ve === null && (Ve = Mt);
break;
}
- e && Fe && Xe.alternate === null && t(W, Fe), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Fe = Mt;
+ e && Ve && Xe.alternate === null && t(W, Ve), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Ve = Mt;
}
- if (at === re.length) return n(W, Fe), xe;
- if (Fe === null) {
- for (; at < re.length; at++) (Fe = Re(W, re[at], ve)) !== null && (B = p(Fe, B, at), Ie === null ? xe = Fe : Ie.sibling = Fe, Ie = Fe);
+ if (at === re.length) return n(W, Ve), xe;
+ if (Ve === null) {
+ for (; at < re.length; at++) (Ve = Re(W, re[at], ve)) !== null && (B = p(Ve, B, at), Ie === null ? xe = Ve : Ie.sibling = Ve, Ie = Ve);
return xe;
}
- for (Fe = r(W, Fe); at < re.length; at++) (Mt = ot(Fe, W, at, re[at], ve)) !== null && (e && Mt.alternate !== null && Fe.delete(Mt.key === null ? at : Mt.key), B = p(Mt, B, at), Ie === null ? xe = Mt : Ie.sibling = Mt, Ie = Mt);
- return e && Fe.forEach(function(vo) {
+ for (Ve = r(W, Ve); at < re.length; at++) (Mt = ot(Ve, W, at, re[at], ve)) !== null && (e && Mt.alternate !== null && Ve.delete(Mt.key === null ? at : Mt.key), B = p(Mt, B, at), Ie === null ? xe = Mt : Ie.sibling = Mt, Ie = Mt);
+ return e && Ve.forEach(function(vo) {
return t(W, vo);
}), xe;
}
@@ -4251,22 +4281,22 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var xe = Wn(re);
if (typeof xe != "function") throw Error(h(150));
if ((re = xe.call(re)) == null) throw Error(h(151));
- for (var Ie = xe = null, Fe = B, at = B = 0, Mt = null, Xe = re.next(); Fe !== null && !Xe.done; at++, Xe = re.next()) {
- Fe.index > at ? (Mt = Fe, Fe = null) : Mt = Fe.sibling;
- var vo = Ue(W, Fe, Xe.value, ve);
+ for (var Ie = xe = null, Ve = B, at = B = 0, Mt = null, Xe = re.next(); Ve !== null && !Xe.done; at++, Xe = re.next()) {
+ Ve.index > at ? (Mt = Ve, Ve = null) : Mt = Ve.sibling;
+ var vo = Fe(W, Ve, Xe.value, ve);
if (vo === null) {
- Fe === null && (Fe = Mt);
+ Ve === null && (Ve = Mt);
break;
}
- e && Fe && vo.alternate === null && t(W, Fe), B = p(vo, B, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Fe = Mt;
+ e && Ve && vo.alternate === null && t(W, Ve), B = p(vo, B, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Ve = Mt;
}
- if (Xe.done) return n(W, Fe), xe;
- if (Fe === null) {
+ if (Xe.done) return n(W, Ve), xe;
+ if (Ve === null) {
for (; !Xe.done; at++, Xe = re.next()) (Xe = Re(W, Xe.value, ve)) !== null && (B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe);
return xe;
}
- for (Fe = r(W, Fe); !Xe.done; at++, Xe = re.next()) (Xe = ot(Fe, W, at, Xe.value, ve)) !== null && (e && Xe.alternate !== null && Fe.delete(Xe.key === null ? at : Xe.key), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe);
- return e && Fe.forEach(function(su) {
+ for (Ve = r(W, Ve); !Xe.done; at++, Xe = re.next()) (Xe = ot(Ve, W, at, Xe.value, ve)) !== null && (e && Xe.alternate !== null && Ve.delete(Xe.key === null ? at : Xe.key), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe);
+ return e && Ve.forEach(function(su) {
return t(W, su);
}), xe;
}
@@ -4314,7 +4344,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return m(W);
}
if (typeof re == "string" || typeof re == "number") return re = "" + re, B !== null && B.tag === 6 ? (n(W, B.sibling), (B = a(B, re)).return = W, W = B) : (n(W, B), (B = gl(re, W.mode, ve)).return = W, W = B), m(W);
- if (Pa(re)) return Un(W, B, re, ve);
+ if (Pa(re)) return Fn(W, B, re, ve);
if (Wn(re)) return on(W, B, re, ve);
if (Ie && Da(W, re), re === void 0 && !xe) switch (W.tag) {
case 1:
@@ -4372,27 +4402,27 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
return null;
}
- function Fs(e, t) {
+ function Vs(e, t) {
return { responder: e, props: t };
}
- var Ra = et.ReactCurrentDispatcher, Fn = et.ReactCurrentBatchConfig, ho = 0, Rt = null, rn = null, Xt = null, Ma = !1;
+ var Ra = et.ReactCurrentDispatcher, Vn = et.ReactCurrentBatchConfig, ho = 0, Rt = null, rn = null, Xt = null, Ma = !1;
function Sn() {
throw Error(h(321));
}
- function Vs(e, t) {
+ function Us(e, t) {
if (t === null) return !1;
for (var n = 0; n < t.length && n < e.length; n++) if (!rr(e[n], t[n])) return !1;
return !0;
}
- function Us(e, t, n, r, a, p) {
- if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Vc : Uc, e = n(r, a), t.expirationTime === ho) {
+ function Fs(e, t, n, r, a, p) {
+ if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Uc : Fc, e = n(r, a), t.expirationTime === ho) {
p = 0;
do {
if (t.expirationTime = 0, !(25 > p)) throw Error(h(301));
p += 1, Xt = rn = null, t.updateQueue = null, Ra.current = $c, e = n(r, a);
} while (t.expirationTime === ho);
}
- if (Ra.current = Fa, t = rn !== null && rn.next !== null, ho = 0, Xt = rn = Rt = null, Ma = !1, t) throw Error(h(300));
+ if (Ra.current = Va, t = rn !== null && rn.next !== null, ho = 0, Xt = rn = Rt = null, Ma = !1, t) throw Error(h(300));
return e;
}
function hi() {
@@ -4431,11 +4461,11 @@ https://fb.me/react-async-component-lifecycle-hooks`);
a = a.next, r = r.baseState;
var E = m = p = null, H = a;
do {
- var U = H.expirationTime;
- if (U < ho) {
+ var F = H.expirationTime;
+ if (F < ho) {
var ce = { expirationTime: H.expirationTime, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null };
- E === null ? (m = E = ce, p = r) : E = E.next = ce, U > Rt.expirationTime && (Rt.expirationTime = U, es(U));
- } else E !== null && (E = E.next = { expirationTime: 1073741823, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null }), _c(U, H.suspenseConfig), r = H.eagerReducer === e ? H.eagerState : e(r, H.action);
+ E === null ? (m = E = ce, p = r) : E = E.next = ce, F > Rt.expirationTime && (Rt.expirationTime = F, es(F));
+ } else E !== null && (E = E.next = { expirationTime: 1073741823, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null }), _c(F, H.suspenseConfig), r = H.eagerReducer === e ? H.eagerState : e(r, H.action);
H = H.next;
} while (H !== null && H !== a);
E === null ? p = r : E.next = m, rr(r, t.memoizedState) || (Er = !0), t.memoizedState = r, t.baseState = p, t.baseQueue = E, n.lastRenderedState = r;
@@ -4459,7 +4489,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
function $s(e) {
var t = hi();
- return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = (e = t.queue = { pending: null, dispatch: null, lastRenderedReducer: Bo, lastRenderedState: e }).dispatch = Vl.bind(null, Rt, e), [t.memoizedState, e];
+ return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = (e = t.queue = { pending: null, dispatch: null, lastRenderedReducer: Bo, lastRenderedState: e }).dispatch = Ul.bind(null, Rt, e), [t.memoizedState, e];
}
function Bs(e, t, n, r) {
return e = { tag: e, create: t, destroy: n, deps: r, next: null }, (t = Rt.updateQueue) === null ? (t = { lastEffect: null }, Rt.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect) === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
@@ -4477,7 +4507,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var p = void 0;
if (rn !== null) {
var m = rn.memoizedState;
- if (p = m.destroy, r !== null && Vs(r, m.deps)) return void Bs(t, n, p, r);
+ if (p = m.destroy, r !== null && Us(r, m.deps)) return void Bs(t, n, p, r);
}
Rt.effectTag |= e, a.memoizedState = Bs(1 | t, n, p, r);
}
@@ -4509,29 +4539,29 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var n = mi();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return r !== null && t !== null && Vs(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return r !== null && t !== null && Us(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Fl(e, t) {
+ function Vl(e, t) {
var n = mi();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return r !== null && t !== null && Vs(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e);
+ return r !== null && t !== null && Us(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e);
}
function Ks(e, t, n) {
- var r = Ft();
+ var r = Vt();
or(98 > r ? 98 : r, function() {
e(!0);
}), or(97 < r ? 97 : r, function() {
- var a = Fn.suspense;
- Fn.suspense = t === void 0 ? null : t;
+ var a = Vn.suspense;
+ Vn.suspense = t === void 0 ? null : t;
try {
e(!1), n();
} finally {
- Fn.suspense = a;
+ Vn.suspense = a;
}
});
}
- function Vl(e, t, n) {
+ function Ul(e, t, n) {
var r = Sr(), a = Wi.suspense;
a = { expirationTime: r = Ko(r, e, a), suspenseConfig: a, action: n, eagerReducer: null, eagerState: null, next: null };
var p = t.pending;
@@ -4545,7 +4575,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
yo(e, r);
}
}
- var Fa = { readContext: Ln, useCallback: Sn, useContext: Sn, useEffect: Sn, useImperativeHandle: Sn, useLayoutEffect: Sn, useMemo: Sn, useReducer: Sn, useRef: Sn, useState: Sn, useDebugValue: Sn, useResponder: Sn, useDeferredValue: Sn, useTransition: Sn }, Vc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) {
+ var Va = { readContext: Ln, useCallback: Sn, useContext: Sn, useEffect: Sn, useImperativeHandle: Sn, useLayoutEffect: Sn, useMemo: Sn, useReducer: Sn, useRef: Sn, useState: Sn, useDebugValue: Sn, useResponder: Sn, useDeferredValue: Sn, useTransition: Sn }, Uc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) {
return n = n != null ? n.concat([e]) : null, Hs(4, 2, Al.bind(null, t, e), n);
}, useLayoutEffect: function(e, t) {
return Hs(4, 2, e, t);
@@ -4554,57 +4584,57 @@ https://fb.me/react-async-component-lifecycle-hooks`);
return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e;
}, useReducer: function(e, t, n) {
var r = hi();
- return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = (e = r.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }).dispatch = Vl.bind(null, Rt, e), [r.memoizedState, e];
+ return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = (e = r.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }).dispatch = Ul.bind(null, Rt, e), [r.memoizedState, e];
}, useRef: function(e) {
return e = { current: e }, hi().memoizedState = e;
- }, useState: $s, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) {
+ }, useState: $s, useDebugValue: qs, useResponder: Vs, useDeferredValue: function(e, t) {
var n = $s(e), r = n[0], a = n[1];
return Ml(function() {
- var p = Fn.suspense;
- Fn.suspense = t === void 0 ? null : t;
+ var p = Vn.suspense;
+ Vn.suspense = t === void 0 ? null : t;
try {
a(e);
} finally {
- Fn.suspense = p;
+ Vn.suspense = p;
}
}, [e, t]), r;
}, useTransition: function(e) {
var t = $s(!1), n = t[0];
return t = t[1], [Ll(Ks.bind(null, t, e), [t, e]), n];
- } }, Uc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: za, useRef: Rl, useState: function() {
+ } }, Fc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Vl, useReducer: za, useRef: Rl, useState: function() {
return za(Bo);
- }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) {
+ }, useDebugValue: qs, useResponder: Vs, useDeferredValue: function(e, t) {
var n = za(Bo), r = n[0], a = n[1];
return ja(function() {
- var p = Fn.suspense;
- Fn.suspense = t === void 0 ? null : t;
+ var p = Vn.suspense;
+ Vn.suspense = t === void 0 ? null : t;
try {
a(e);
} finally {
- Fn.suspense = p;
+ Vn.suspense = p;
}
}, [e, t]), r;
}, useTransition: function(e) {
var t = za(Bo), n = t[0];
return t = t[1], [La(Ks.bind(null, t, e), [t, e]), n];
- } }, $c = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: Aa, useRef: Rl, useState: function() {
+ } }, $c = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Vl, useReducer: Aa, useRef: Rl, useState: function() {
return Aa(Bo);
- }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) {
+ }, useDebugValue: qs, useResponder: Vs, useDeferredValue: function(e, t) {
var n = Aa(Bo), r = n[0], a = n[1];
return ja(function() {
- var p = Fn.suspense;
- Fn.suspense = t === void 0 ? null : t;
+ var p = Vn.suspense;
+ Vn.suspense = t === void 0 ? null : t;
try {
a(e);
} finally {
- Fn.suspense = p;
+ Vn.suspense = p;
}
}, [e, t]), r;
}, useTransition: function(e) {
var t = Aa(Bo), n = t[0];
return t = t[1], [La(Ks.bind(null, t, e), [t, e]), n];
} }, $r = null, mo = null, Ho = !1;
- function Ul(e, t) {
+ function Fl(e, t) {
var n = Cr(5, null, null, 0);
n.elementType = "DELETED", n.type = "DELETED", n.stateNode = t, n.return = e, n.effectTag = 8, e.lastEffect !== null ? (e.lastEffect.nextEffect = n, e.lastEffect = n) : e.firstEffect = e.lastEffect = n;
}
@@ -4626,7 +4656,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var n = t;
if (!$l(e, t)) {
if (!(t = Ar(n.nextSibling)) || !$l(e, t)) return e.effectTag = -1025 & e.effectTag | 2, Ho = !1, void ($r = e);
- Ul($r, n);
+ Fl($r, n);
}
$r = e, mo = Ar(t.firstChild);
} else e.effectTag = -1025 & e.effectTag | 2, Ho = !1, $r = e;
@@ -4636,11 +4666,11 @@ https://fb.me/react-async-component-lifecycle-hooks`);
for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return;
$r = e;
}
- function Va(e) {
+ function Ua(e) {
if (e !== $r) return !1;
if (!Ho) return Bl(e), Ho = !0, !1;
var t = e.type;
- if (e.tag !== 5 || t !== "head" && t !== "body" && !Pi(t, e.memoizedProps)) for (t = mo; t; ) Ul(e, t), t = Ar(t.nextSibling);
+ if (e.tag !== 5 || t !== "head" && t !== "body" && !Pi(t, e.memoizedProps)) for (t = mo; t; ) Fl(e, t), t = Ar(t.nextSibling);
if (Bl(e), e.tag === 13) {
if (!(e = (e = e.memoizedState) !== null ? e.dehydrated : null)) throw Error(h(317));
e: {
@@ -4666,23 +4696,23 @@ https://fb.me/react-async-component-lifecycle-hooks`);
mo = $r = null, Ho = !1;
}
var Bc = et.ReactCurrentOwner, Er = !1;
- function Vn(e, t, n, r) {
+ function Un(e, t, n, r) {
t.child = e === null ? As(t, null, n, r) : pi(t, e.child, n, r);
}
function Hl(e, t, n, r, a) {
n = n.render;
var p = t.ref;
- return di(t, a), r = Us(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, r, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a));
+ return di(t, a), r = Fs(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Un(e, t, r, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a));
}
function Wl(e, t, n, r, a, p) {
if (e === null) {
var m = n.type;
return typeof m != "function" || ml(m) || m.defaultProps !== void 0 || n.compare !== null || n.defaultProps !== void 0 ? ((e = ts(n.type, null, r, null, t.mode, p)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = m, ql(e, t, m, r, a, p));
}
- return m = e.child, a < p && (a = m.memoizedProps, (n = (n = n.compare) !== null ? n : Fr)(a, r) && e.ref === t.ref) ? Br(e, t, p) : (t.effectTag |= 1, (e = Go(m, r)).ref = t.ref, e.return = t, t.child = e);
+ return m = e.child, a < p && (a = m.memoizedProps, (n = (n = n.compare) !== null ? n : Vr)(a, r) && e.ref === t.ref) ? Br(e, t, p) : (t.effectTag |= 1, (e = Go(m, r)).ref = t.ref, e.return = t, t.child = e);
}
function ql(e, t, n, r, a, p) {
- return e !== null && Fr(e.memoizedProps, r) && e.ref === t.ref && (Er = !1, a < p) ? (t.expirationTime = e.expirationTime, Br(e, t, p)) : Xs(e, t, n, r, p);
+ return e !== null && Vr(e.memoizedProps, r) && e.ref === t.ref && (Er = !1, a < p) ? (t.expirationTime = e.expirationTime, Br(e, t, p)) : Xs(e, t, n, r, p);
}
function Kl(e, t) {
var n = t.ref;
@@ -4690,7 +4720,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
function Xs(e, t, n, r, a) {
var p = de(n) ? ue : X.current;
- return p = me(t, p), di(t, a), n = Us(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a));
+ return p = me(t, p), di(t, a), n = Fs(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Un(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a));
}
function Ql(e, t, n, r, a) {
if (de(n)) {
@@ -4701,13 +4731,13 @@ https://fb.me/react-async-component-lifecycle-hooks`);
else if (e === null) {
var m = t.stateNode, E = t.memoizedProps;
m.props = E;
- var H = m.context, U = n.contextType;
- typeof U == "object" && U !== null ? U = Ln(U) : U = me(t, U = de(n) ? ue : X.current);
+ var H = m.context, F = n.contextType;
+ typeof F == "object" && F !== null ? F = Ln(F) : F = me(t, F = de(n) ? ue : X.current);
var ce = n.getDerivedStateFromProps, Re = typeof ce == "function" || typeof m.getSnapshotBeforeUpdate == "function";
- Re || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== U) && Pl(t, m, r, U), uo = !1;
- var Ue = t.memoizedState;
- m.state = Ue, Hi(t, r, m, a), H = t.memoizedState, E !== r || Ue !== H || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), H = t.memoizedState), (E = uo || Ol(t, n, E, r, Ue, H, U)) ? (Re || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = H), m.props = r, m.state = H, m.context = U, r = E) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), r = !1);
- } else m = t.stateNode, Ms(e, t), E = t.memoizedProps, m.props = t.type === t.elementType ? E : nn(t.type, E), H = m.context, typeof (U = n.contextType) == "object" && U !== null ? U = Ln(U) : U = me(t, U = de(n) ? ue : X.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof m.getSnapshotBeforeUpdate == "function") || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== U) && Pl(t, m, r, U), uo = !1, H = t.memoizedState, m.state = H, Hi(t, r, m, a), Ue = t.memoizedState, E !== r || H !== Ue || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Ue = t.memoizedState), (ce = uo || Ol(t, n, E, r, H, Ue, U)) ? (Re || typeof m.UNSAFE_componentWillUpdate != "function" && typeof m.componentWillUpdate != "function" || (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(r, Ue, U), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(r, Ue, U)), typeof m.componentDidUpdate == "function" && (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Ue), m.props = r, m.state = Ue, m.context = U, r = ce) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), r = !1);
+ Re || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== F) && Pl(t, m, r, F), uo = !1;
+ var Fe = t.memoizedState;
+ m.state = Fe, Hi(t, r, m, a), H = t.memoizedState, E !== r || Fe !== H || ae.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), H = t.memoizedState), (E = uo || Ol(t, n, E, r, Fe, H, F)) ? (Re || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = H), m.props = r, m.state = H, m.context = F, r = E) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), r = !1);
+ } else m = t.stateNode, Ms(e, t), E = t.memoizedProps, m.props = t.type === t.elementType ? E : nn(t.type, E), H = m.context, typeof (F = n.contextType) == "object" && F !== null ? F = Ln(F) : F = me(t, F = de(n) ? ue : X.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof m.getSnapshotBeforeUpdate == "function") || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== F) && Pl(t, m, r, F), uo = !1, H = t.memoizedState, m.state = H, Hi(t, r, m, a), Fe = t.memoizedState, E !== r || H !== Fe || ae.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Fe = t.memoizedState), (ce = uo || Ol(t, n, E, r, H, Fe, F)) ? (Re || typeof m.UNSAFE_componentWillUpdate != "function" && typeof m.componentWillUpdate != "function" || (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(r, Fe, F), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(r, Fe, F)), typeof m.componentDidUpdate == "function" && (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Fe), m.props = r, m.state = Fe, m.context = F, r = ce) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), r = !1);
return Gs(e, t, n, r, p, a);
}
function Gs(e, t, n, r, a, p) {
@@ -4716,7 +4746,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
if (!r && !m) return a && He(t, n, !1), Br(e, t, p);
r = t.stateNode, Bc.current = t;
var E = m && typeof n.getDerivedStateFromError != "function" ? null : r.render();
- return t.effectTag |= 1, e !== null && m ? (t.child = pi(t, e.child, null, p), t.child = pi(t, null, E, p)) : Vn(e, t, E, p), t.memoizedState = r.state, a && He(t, n, !0), t.child;
+ return t.effectTag |= 1, e !== null && m ? (t.child = pi(t, e.child, null, p), t.child = pi(t, null, E, p)) : Un(e, t, E, p), t.memoizedState = r.state, a && He(t, n, !0), t.child;
}
function Yl(e) {
var t = e.stateNode;
@@ -4756,7 +4786,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
function tc(e, t, n) {
var r = t.pendingProps, a = r.revealOrder, p = r.tail;
- if (Vn(e, t, r.children, n), 2 & (r = Ct.current)) r = 1 & r | 2, t.effectTag |= 64;
+ if (Un(e, t, r.children, n), 2 & (r = Ct.current)) r = 1 & r | 2, t.effectTag |= 64;
else {
if (e !== null && 64 & e.effectTag) e: for (e = t.child; e !== null; ) {
if (e.tag === 13) e.memoizedState !== null && ec(e, n);
@@ -4809,7 +4839,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
return t.child;
}
- function Ua(e, t) {
+ function Fa(e, t) {
switch (e.tailMode) {
case "hidden":
t = e.tail;
@@ -4840,7 +4870,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
case 17:
return de(t.type) && Oe(), null;
case 3:
- return fi(), x(ie), x(X), (n = t.stateNode).pendingContext && (n.context = n.pendingContext, n.pendingContext = null), e !== null && e.child !== null || !Va(t) || (t.effectTag |= 4), Zs(t), null;
+ return fi(), x(ae), x(X), (n = t.stateNode).pendingContext && (n.context = n.pendingContext, n.pendingContext = null), e !== null && e.child !== null || !Ua(t) || (t.effectTag |= 4), Zs(t), null;
case 5:
Ls(t), n = $o(Yi.current);
var a = t.type;
@@ -4850,7 +4880,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
if (t.stateNode === null) throw Error(h(166));
return null;
}
- if (e = $o(_r.current), Va(t)) {
+ if (e = $o(_r.current), Ua(t)) {
r = t.stateNode, a = t.type;
var p = t.memoizedProps;
switch (r[vr] = t, r[oi] = p, a) {
@@ -4888,7 +4918,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
for (var m in xi(a, p), e = null, p) if (p.hasOwnProperty(m)) {
var E = p[m];
- m === "children" ? typeof E == "string" ? r.textContent !== E && (e = ["children", E]) : typeof E == "number" && r.textContent !== "" + E && (e = ["children", "" + E]) : L.hasOwnProperty(m) && E != null && Gn(n, m);
+ m === "children" ? typeof E == "string" ? r.textContent !== E && (e = ["children", E]) : typeof E == "number" && r.textContent !== "" + E && (e = ["children", "" + E]) : j.hasOwnProperty(m) && E != null && Gn(n, m);
}
switch (a) {
case "input":
@@ -4948,8 +4978,8 @@ https://fb.me/react-async-component-lifecycle-hooks`);
xi(a, E);
var H = E;
for (p in H) if (H.hasOwnProperty(p)) {
- var U = H[p];
- p === "style" ? ti(e, U) : p === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0) != null && Dr(e, U) : p === "children" ? typeof U == "string" ? (a !== "textarea" || U !== "") && Kn(e, U) : typeof U == "number" && Kn(e, "" + U) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (L.hasOwnProperty(p) ? U != null && Gn(n, p) : U != null && Pt(e, p, U, m));
+ var F = H[p];
+ p === "style" ? ti(e, F) : p === "dangerouslySetInnerHTML" ? (F = F ? F.__html : void 0) != null && Dr(e, F) : p === "children" ? typeof F == "string" ? (a !== "textarea" || F !== "") && Kn(e, F) : typeof F == "number" && Kn(e, "" + F) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (j.hasOwnProperty(p) ? F != null && Gn(n, p) : F != null && Pt(e, p, F, m));
}
switch (a) {
case "input":
@@ -4976,30 +5006,30 @@ https://fb.me/react-async-component-lifecycle-hooks`);
if (e && t.stateNode != null) Zl(e, t, e.memoizedProps, r);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(h(166));
- n = $o(Yi.current), $o(_r.current), Va(t) ? (n = t.stateNode, r = t.memoizedProps, n[vr] = t, n.nodeValue !== r && (t.effectTag |= 4)) : ((n = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r))[vr] = t, t.stateNode = n);
+ n = $o(Yi.current), $o(_r.current), Ua(t) ? (n = t.stateNode, r = t.memoizedProps, n[vr] = t, n.nodeValue !== r && (t.effectTag |= 4)) : ((n = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r))[vr] = t, t.stateNode = n);
}
return null;
case 13:
- return x(Ct), r = t.memoizedState, 64 & t.effectTag ? (t.expirationTime = n, t) : (n = r !== null, r = !1, e === null ? t.memoizedProps.fallback !== void 0 && Va(t) : (r = (a = e.memoizedState) !== null, n || a === null || (a = e.child.sibling) !== null && ((p = t.firstEffect) !== null ? (t.firstEffect = a, a.nextEffect = p) : (t.firstEffect = t.lastEffect = a, a.nextEffect = null), a.effectTag = 8)), n && !r && 2 & t.mode && (e === null && t.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Ct.current ? Ut === Wo && (Ut = Ha) : (Ut !== Wo && Ut !== Ha || (Ut = Wa), Gi !== 0 && Cn !== null && (Zo(Cn, dn), Tc(Cn, Gi)))), (n || r) && (t.effectTag |= 4), null);
+ return x(Ct), r = t.memoizedState, 64 & t.effectTag ? (t.expirationTime = n, t) : (n = r !== null, r = !1, e === null ? t.memoizedProps.fallback !== void 0 && Ua(t) : (r = (a = e.memoizedState) !== null, n || a === null || (a = e.child.sibling) !== null && ((p = t.firstEffect) !== null ? (t.firstEffect = a, a.nextEffect = p) : (t.firstEffect = t.lastEffect = a, a.nextEffect = null), a.effectTag = 8)), n && !r && 2 & t.mode && (e === null && t.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Ct.current ? Ft === Wo && (Ft = Ha) : (Ft !== Wo && Ft !== Ha || (Ft = Wa), Gi !== 0 && Cn !== null && (Zo(Cn, dn), Tc(Cn, Gi)))), (n || r) && (t.effectTag |= 4), null);
case 4:
return fi(), Zs(t), null;
case 10:
- return Uo(t), null;
+ return Fo(t), null;
case 19:
if (x(Ct), (r = t.memoizedState) === null) return null;
if (a = !!(64 & t.effectTag), (p = r.rendering) === null) {
- if (a) Ua(r, !1);
- else if (Ut !== Wo || e !== null && 64 & e.effectTag) for (p = t.child; p !== null; ) {
+ if (a) Fa(r, !1);
+ else if (Ft !== Wo || e !== null && 64 & e.effectTag) for (p = t.child; p !== null; ) {
if ((e = Ia(p)) !== null) {
- for (t.effectTag |= 64, Ua(r, !1), (a = e.updateQueue) !== null && (t.updateQueue = a, t.effectTag |= 4), r.lastEffect === null && (t.firstEffect = null), t.lastEffect = r.lastEffect, r = t.child; r !== null; ) p = n, (a = r).effectTag &= 2, a.nextEffect = null, a.firstEffect = null, a.lastEffect = null, (e = a.alternate) === null ? (a.childExpirationTime = 0, a.expirationTime = p, a.child = null, a.memoizedProps = null, a.memoizedState = null, a.updateQueue = null, a.dependencies = null) : (a.childExpirationTime = e.childExpirationTime, a.expirationTime = e.expirationTime, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, p = e.dependencies, a.dependencies = p === null ? null : { expirationTime: p.expirationTime, firstContext: p.firstContext, responders: p.responders }), r = r.sibling;
+ for (t.effectTag |= 64, Fa(r, !1), (a = e.updateQueue) !== null && (t.updateQueue = a, t.effectTag |= 4), r.lastEffect === null && (t.firstEffect = null), t.lastEffect = r.lastEffect, r = t.child; r !== null; ) p = n, (a = r).effectTag &= 2, a.nextEffect = null, a.firstEffect = null, a.lastEffect = null, (e = a.alternate) === null ? (a.childExpirationTime = 0, a.expirationTime = p, a.child = null, a.memoizedProps = null, a.memoizedState = null, a.updateQueue = null, a.dependencies = null) : (a.childExpirationTime = e.childExpirationTime, a.expirationTime = e.expirationTime, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, p = e.dependencies, a.dependencies = p === null ? null : { expirationTime: p.expirationTime, firstContext: p.firstContext, responders: p.responders }), r = r.sibling;
return z(Ct, 1 & Ct.current | 2), t.child;
}
p = p.sibling;
}
} else {
if (!a) if ((e = Ia(p)) !== null) {
- if (t.effectTag |= 64, a = !0, (n = e.updateQueue) !== null && (t.updateQueue = n, t.effectTag |= 4), Ua(r, !0), r.tail === null && r.tailMode === "hidden" && !p.alternate) return (t = t.lastEffect = r.lastEffect) !== null && (t.nextEffect = null), null;
- } else 2 * Nt() - r.renderingStartTime > r.tailExpiration && 1 < n && (t.effectTag |= 64, a = !0, Ua(r, !1), t.expirationTime = t.childExpirationTime = n - 1);
+ if (t.effectTag |= 64, a = !0, (n = e.updateQueue) !== null && (t.updateQueue = n, t.effectTag |= 4), Fa(r, !0), r.tail === null && r.tailMode === "hidden" && !p.alternate) return (t = t.lastEffect = r.lastEffect) !== null && (t.nextEffect = null), null;
+ } else 2 * Nt() - r.renderingStartTime > r.tailExpiration && 1 < n && (t.effectTag |= 64, a = !0, Fa(r, !1), t.expirationTime = t.childExpirationTime = n - 1);
r.isBackwards ? (p.sibling = t.child, t.child = p) : ((n = r.last) !== null ? n.sibling = p : t.child = p, r.last = p);
}
return r.tail !== null ? (r.tailExpiration === 0 && (r.tailExpiration = Nt() + 500), n = r.tail, r.rendering = n, r.tail = n.sibling, r.lastEffect = t.lastEffect, r.renderingStartTime = Nt(), n.sibling = null, t = Ct.current, z(Ct, a ? 1 & t | 2 : 1 & t), n) : null;
@@ -5013,7 +5043,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
var t = e.effectTag;
return 4096 & t ? (e.effectTag = -4097 & t | 64, e) : null;
case 3:
- if (fi(), x(ie), x(X), 64 & (t = e.effectTag)) throw Error(h(285));
+ if (fi(), x(ae), x(X), 64 & (t = e.effectTag)) throw Error(h(285));
return e.effectTag = -4097 & t | 64, e;
case 5:
return Ls(e), null;
@@ -5024,7 +5054,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
case 4:
return fi(), null;
case 10:
- return Uo(e), null;
+ return Fo(e), null;
default:
return null;
}
@@ -5068,14 +5098,14 @@ https://fb.me/react-async-component-lifecycle-hooks`);
typeof p.onClick != "function" && typeof r.onClick == "function" && (H.onclick = Jr);
}
for (m in xi(n, r), n = null, p) if (!r.hasOwnProperty(m) && p.hasOwnProperty(m) && p[m] != null) if (m === "style") for (E in H = p[m]) H.hasOwnProperty(E) && (n || (n = {}), n[E] = "");
- else m !== "dangerouslySetInnerHTML" && m !== "children" && m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && m !== "autoFocus" && (L.hasOwnProperty(m) ? e || (e = []) : (e = e || []).push(m, null));
+ else m !== "dangerouslySetInnerHTML" && m !== "children" && m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && m !== "autoFocus" && (j.hasOwnProperty(m) ? e || (e = []) : (e = e || []).push(m, null));
for (m in r) {
- var U = r[m];
- if (H = p != null ? p[m] : void 0, r.hasOwnProperty(m) && U !== H && (U != null || H != null)) if (m === "style") if (H) {
- for (E in H) !H.hasOwnProperty(E) || U && U.hasOwnProperty(E) || (n || (n = {}), n[E] = "");
- for (E in U) U.hasOwnProperty(E) && H[E] !== U[E] && (n || (n = {}), n[E] = U[E]);
- } else n || (e || (e = []), e.push(m, n)), n = U;
- else m === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0, H = H ? H.__html : void 0, U != null && H !== U && (e = e || []).push(m, U)) : m === "children" ? H === U || typeof U != "string" && typeof U != "number" || (e = e || []).push(m, "" + U) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (L.hasOwnProperty(m) ? (U != null && Gn(a, m), e || H === U || (e = [])) : (e = e || []).push(m, U));
+ var F = r[m];
+ if (H = p != null ? p[m] : void 0, r.hasOwnProperty(m) && F !== H && (F != null || H != null)) if (m === "style") if (H) {
+ for (E in H) !H.hasOwnProperty(E) || F && F.hasOwnProperty(E) || (n || (n = {}), n[E] = "");
+ for (E in F) F.hasOwnProperty(E) && H[E] !== F[E] && (n || (n = {}), n[E] = F[E]);
+ } else n || (e || (e = []), e.push(m, n)), n = F;
+ else m === "dangerouslySetInnerHTML" ? (F = F ? F.__html : void 0, H = H ? H.__html : void 0, F != null && H !== F && (e = e || []).push(m, F)) : m === "children" ? H === F || typeof F != "string" && typeof F != "number" || (e = e || []).push(m, "" + F) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (j.hasOwnProperty(m) ? (F != null && Gn(a, m), e || H === F || (e = [])) : (e = e || []).push(m, F));
}
n && (e = e || []).push("style", n), a = e, (t.updateQueue = a) && (t.effectTag |= 4);
}
@@ -5308,7 +5338,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
m = !0;
}
if (p.tag === 5 || p.tag === 6) {
- e: for (var E = e, H = p, U = n, ce = H; ; ) if (ic(E, ce, U), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child;
+ e: for (var E = e, H = p, F = n, ce = H; ; ) if (ic(E, ce, F), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child;
else {
if (ce === H) break e;
for (; ce.sibling === null; ) {
@@ -5438,26 +5468,26 @@ https://fb.me/react-async-component-lifecycle-hooks`);
this.componentDidCatch(t.value, { componentStack: m !== null ? m : "" });
}), n;
}
- var fc, Xc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Vt = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Vt, Cn = null, qe = null, dn = 0, Ut = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0;
+ var fc, Xc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Ut = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Ut, Cn = null, qe = null, dn = 0, Ft = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0;
function Sr() {
- return (We & (ar | xr)) !== Vt ? 1073741821 - (Nt() / 10 | 0) : Ga !== 0 ? Ga : Ga = 1073741821 - (Nt() / 10 | 0);
+ return (We & (ar | xr)) !== Ut ? 1073741821 - (Nt() / 10 | 0) : Ga !== 0 ? Ga : Ga = 1073741821 - (Nt() / 10 | 0);
}
function Ko(e, t, n) {
if (!(2 & (t = t.mode))) return 1073741823;
- var r = Ft();
+ var r = Vt();
if (!(4 & t)) return r === 99 ? 1073741823 : 1073741822;
- if ((We & ar) !== Vt) return dn;
- if (n !== null) e = Fo(e, 0 | n.timeoutMs || 5e3, 250);
+ if ((We & ar) !== Ut) return dn;
+ if (n !== null) e = Vo(e, 0 | n.timeoutMs || 5e3, 250);
else switch (r) {
case 99:
e = 1073741823;
break;
case 98:
- e = Fo(e, 150, 100);
+ e = Vo(e, 150, 100);
break;
case 97:
case 96:
- e = Fo(e, 5e3, 250);
+ e = Vo(e, 5e3, 250);
break;
case 95:
e = 2;
@@ -5470,8 +5500,8 @@ https://fb.me/react-async-component-lifecycle-hooks`);
function yo(e, t) {
if (50 < ea) throw ea = 0, ul = null, Error(h(185));
if ((e = Za(e, t)) !== null) {
- var n = Ft();
- t === 1073741823 ? (We & al) !== Vt && (We & (ar | xr)) === Vt ? dl(e) : (Tn(e), We === Vt && tn()) : Tn(e), (4 & We) === Vt || n !== 98 && n !== 99 || (qo === null ? qo = /* @__PURE__ */ new Map([[e, t]]) : ((n = qo.get(e)) === void 0 || n > t) && qo.set(e, t));
+ var n = Vt();
+ t === 1073741823 ? (We & al) !== Ut && (We & (ar | xr)) === Ut ? dl(e) : (Tn(e), We === Ut && tn()) : Tn(e), (4 & We) === Ut || n !== 98 && n !== 99 || (qo === null ? qo = /* @__PURE__ */ new Map([[e, t]]) : ((n = qo.get(e)) === void 0 || n > t) && qo.set(e, t));
}
}
function Za(e, t) {
@@ -5487,7 +5517,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
r = r.return;
}
- return a !== null && (Cn === a && (es(t), Ut === Wa && Zo(a, dn)), Tc(a, t)), a;
+ return a !== null && (Cn === a && (es(t), Ft === Wa && Zo(a, dn)), Tc(a, t)), a;
}
function Ja(e) {
var t = e.lastExpiredTime;
@@ -5515,7 +5545,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
if (Ga = 0, t) return bl(e, t = Sr()), Tn(e), null;
var n = Ja(e);
if (n !== 0) {
- if (t = e.callbackNode, (We & (ar | xr)) !== Vt) throw Error(h(327));
+ if (t = e.callbackNode, (We & (ar | xr)) !== Ut) throw Error(h(327));
if (gi(), e === Cn && n === dn || Qo(e, n), qe !== null) {
var r = We;
We |= ar;
@@ -5525,8 +5555,8 @@ https://fb.me/react-async-component-lifecycle-hooks`);
} catch (E) {
kc(e, E);
}
- if (ir(), We = r, $a.current = a, Ut === Ba) throw t = qa, Qo(e, n), Zo(e, n), Tn(e), t;
- if (qe === null) switch (a = e.finishedWork = e.current.alternate, e.finishedExpirationTime = n, r = Ut, Cn = null, r) {
+ if (ir(), We = r, $a.current = a, Ft === Ba) throw t = qa, Qo(e, n), Zo(e, n), Tn(e), t;
+ if (qe === null) switch (a = e.finishedWork = e.current.alternate, e.finishedExpirationTime = n, r = Ft, Cn = null, r) {
case Wo:
case Ba:
throw Error(h(345));
@@ -5589,7 +5619,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
}
function dl(e) {
var t = e.lastExpiredTime;
- if (t = t !== 0 ? t : 1073741823, (We & (ar | xr)) !== Vt) throw Error(h(327));
+ if (t = t !== 0 ? t : 1073741823, (We & (ar | xr)) !== Ut) throw Error(h(327));
if (gi(), e === Cn && t === dn || Qo(e, t), qe !== null) {
var n = We;
We |= ar;
@@ -5599,7 +5629,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
} catch (a) {
kc(e, a);
}
- if (ir(), We = n, $a.current = r, Ut === Ba) throw n = qa, Qo(e, t), Zo(e, t), Tn(e), n;
+ if (ir(), We = n, $a.current = r, Ft === Ba) throw n = qa, Qo(e, t), Zo(e, t), Tn(e), n;
if (qe !== null) throw Error(h(261));
e.finishedWork = e.current.alternate, e.finishedExpirationTime = t, Cn = null, Yo(e), Tn(e);
}
@@ -5611,7 +5641,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
try {
return e(t);
} finally {
- (We = n) === Vt && tn();
+ (We = n) === Ut && tn();
}
}
function vc(e, t) {
@@ -5620,7 +5650,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
try {
return e(t);
} finally {
- (We = n) === Vt && tn();
+ (We = n) === Ut && tn();
}
}
function Qo(e, t) {
@@ -5633,7 +5663,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
(r = r.type.childContextTypes) != null && Oe();
break;
case 3:
- fi(), x(ie), x(X);
+ fi(), x(ae), x(X);
break;
case 5:
Ls(r);
@@ -5646,40 +5676,40 @@ https://fb.me/react-async-component-lifecycle-hooks`);
x(Ct);
break;
case 10:
- Uo(r);
+ Fo(r);
}
n = n.return;
}
- Cn = e, qe = Go(e.current, null), dn = t, Ut = Wo, qa = null, Xi = Hr = 1073741823, Ka = null, Gi = 0, Qa = !1;
+ Cn = e, qe = Go(e.current, null), dn = t, Ft = Wo, qa = null, Xi = Hr = 1073741823, Ka = null, Gi = 0, Qa = !1;
}
function kc(e, t) {
for (; ; ) {
try {
- if (ir(), Ra.current = Fa, Ma) for (var n = Rt.memoizedState; n !== null; ) {
+ if (ir(), Ra.current = Va, Ma) for (var n = Rt.memoizedState; n !== null; ) {
var r = n.queue;
r !== null && (r.pending = null), n = n.next;
}
- if (ho = 0, Xt = rn = Rt = null, Ma = !1, qe === null || qe.return === null) return Ut = Ba, qa = t, qe = null;
+ if (ho = 0, Xt = rn = Rt = null, Ma = !1, qe === null || qe.return === null) return Ft = Ba, qa = t, qe = null;
e: {
var a = e, p = qe.return, m = qe, E = t;
if (t = dn, m.effectTag |= 2048, m.firstEffect = m.lastEffect = null, E !== null && typeof E == "object" && typeof E.then == "function") {
var H = E;
if (!(2 & m.mode)) {
- var U = m.alternate;
- U ? (m.updateQueue = U.updateQueue, m.memoizedState = U.memoizedState, m.expirationTime = U.expirationTime) : (m.updateQueue = null, m.memoizedState = null);
+ var F = m.alternate;
+ F ? (m.updateQueue = F.updateQueue, m.memoizedState = F.memoizedState, m.expirationTime = F.expirationTime) : (m.updateQueue = null, m.memoizedState = null);
}
var ce = !!(1 & Ct.current), Re = p;
do {
- var Ue;
- if (Ue = Re.tag === 13) {
+ var Fe;
+ if (Fe = Re.tag === 13) {
var ot = Re.memoizedState;
- if (ot !== null) Ue = ot.dehydrated !== null;
+ if (ot !== null) Fe = ot.dehydrated !== null;
else {
- var Un = Re.memoizedProps;
- Ue = Un.fallback !== void 0 && (Un.unstable_avoidThisFallback !== !0 || !ce);
+ var Fn = Re.memoizedProps;
+ Fe = Fn.fallback !== void 0 && (Fn.unstable_avoidThisFallback !== !0 || !ce);
}
}
- if (Ue) {
+ if (Fe) {
var on = Re.updateQueue;
if (on === null) {
var W = /* @__PURE__ */ new Set();
@@ -5710,7 +5740,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
Add a component higher in the tree to provide a loading indicator or placeholder to display.` + zt(m));
}
- Ut !== sl && (Ut = mc), E = tl(E, m), Re = p;
+ Ft !== sl && (Ft = mc), E = tl(E, m), Re = p;
do {
switch (Re.tag) {
case 3:
@@ -5728,8 +5758,8 @@ Add a component higher in the tree to provide a loading
} while (Re !== null);
}
qe = xc(qe);
- } catch (Fe) {
- t = Fe;
+ } catch (Ve) {
+ t = Ve;
continue;
}
break;
@@ -5737,7 +5767,7 @@ Add a component higher in the tree to provide a loading
}
function wc() {
var e = $a.current;
- return $a.current = Fa, e === null ? Fa : e;
+ return $a.current = Va, e === null ? Va : e;
}
function _c(e, t) {
e < Hr && 2 < e && (Hr = e), t !== null && e < Xi && 2 < e && (Xi = e, Ka = t);
@@ -5776,21 +5806,21 @@ Add a component higher in the tree to provide a loading
if ((t = qe.sibling) !== null) return t;
qe = e;
} while (qe !== null);
- return Ut === Wo && (Ut = sl), null;
+ return Ft === Wo && (Ft = sl), null;
}
function pl(e) {
var t = e.expirationTime;
return t > (e = e.childExpirationTime) ? t : e;
}
function Yo(e) {
- var t = Ft();
+ var t = Vt();
return or(99, Jc.bind(null, e, t)), null;
}
function Jc(e, t) {
do
gi();
while (Zi !== null);
- if ((We & (ar | xr)) !== Vt) throw Error(h(327));
+ if ((We & (ar | xr)) !== Ut) throw Error(h(327));
var n = e.finishedWork, r = e.finishedExpirationTime;
if (n === null) return null;
if (e.finishedWork = null, e.finishedExpirationTime = 0, n === e.current) throw Error(h(177));
@@ -5806,7 +5836,7 @@ Add a component higher in the tree to provide a loading
var H = (E = (E = m.ownerDocument) && E.defaultView || window).getSelection && E.getSelection();
if (H && H.rangeCount !== 0) {
E = H.anchorNode;
- var U = H.anchorOffset, ce = H.focusNode;
+ var F = H.anchorOffset, ce = H.focusNode;
H = H.focusOffset;
try {
E.nodeType, ce.nodeType;
@@ -5814,17 +5844,17 @@ Add a component higher in the tree to provide a loading
E = null;
break e;
}
- var Re = 0, Ue = -1, ot = -1, Un = 0, on = 0, W = m, B = null;
+ var Re = 0, Fe = -1, ot = -1, Fn = 0, on = 0, W = m, B = null;
t: for (; ; ) {
- for (var re; W !== E || U !== 0 && W.nodeType !== 3 || (Ue = Re + U), W !== ce || H !== 0 && W.nodeType !== 3 || (ot = Re + H), W.nodeType === 3 && (Re += W.nodeValue.length), (re = W.firstChild) !== null; ) B = W, W = re;
+ for (var re; W !== E || F !== 0 && W.nodeType !== 3 || (Fe = Re + F), W !== ce || H !== 0 && W.nodeType !== 3 || (ot = Re + H), W.nodeType === 3 && (Re += W.nodeValue.length), (re = W.firstChild) !== null; ) B = W, W = re;
for (; ; ) {
if (W === m) break t;
- if (B === E && ++Un === U && (Ue = Re), B === ce && ++on === H && (ot = Re), (re = W.nextSibling) !== null) break;
+ if (B === E && ++Fn === F && (Fe = Re), B === ce && ++on === H && (ot = Re), (re = W.nextSibling) !== null) break;
B = (W = B).parentNode;
}
W = re;
}
- E = Ue === -1 || ot === -1 ? null : { start: Ue, end: ot };
+ E = Fe === -1 || ot === -1 ? null : { start: Fe, end: ot };
} else E = null;
}
E = E || { start: 0, end: 0 };
@@ -5867,7 +5897,7 @@ Add a component higher in the tree to provide a loading
il(Me.alternate, Me);
break;
case 8:
- cc(m, U = Me, E), ac(U);
+ cc(m, F = Me, E), ac(F);
}
Me = Me.nextEffect;
}
@@ -5877,15 +5907,15 @@ Add a component higher in the tree to provide a loading
}
while (Me !== null);
if (Ie = Et, xe = la(), ve = Ie.focusedElem, E = Ie.selectionRange, xe !== ve && ve && ve.ownerDocument && Ti(ve.ownerDocument.documentElement, ve)) {
- for (E !== null && Oi(ve) && (xe = E.start, (Ie = E.end) === void 0 && (Ie = xe), "selectionStart" in ve ? (ve.selectionStart = xe, ve.selectionEnd = Math.min(Ie, ve.value.length)) : (Ie = (xe = ve.ownerDocument || document) && xe.defaultView || window).getSelection && (Ie = Ie.getSelection(), U = ve.textContent.length, m = Math.min(E.start, U), E = E.end === void 0 ? m : Math.min(E.end, U), !Ie.extend && m > E && (U = E, E = m, m = U), U = sa(ve, m), ce = sa(ve, E), U && ce && (Ie.rangeCount !== 1 || Ie.anchorNode !== U.node || Ie.anchorOffset !== U.offset || Ie.focusNode !== ce.node || Ie.focusOffset !== ce.offset) && ((xe = xe.createRange()).setStart(U.node, U.offset), Ie.removeAllRanges(), m > E ? (Ie.addRange(xe), Ie.extend(ce.node, ce.offset)) : (xe.setEnd(ce.node, ce.offset), Ie.addRange(xe))))), xe = [], Ie = ve; Ie = Ie.parentNode; ) Ie.nodeType === 1 && xe.push({ element: Ie, left: Ie.scrollLeft, top: Ie.scrollTop });
+ for (E !== null && Oi(ve) && (xe = E.start, (Ie = E.end) === void 0 && (Ie = xe), "selectionStart" in ve ? (ve.selectionStart = xe, ve.selectionEnd = Math.min(Ie, ve.value.length)) : (Ie = (xe = ve.ownerDocument || document) && xe.defaultView || window).getSelection && (Ie = Ie.getSelection(), F = ve.textContent.length, m = Math.min(E.start, F), E = E.end === void 0 ? m : Math.min(E.end, F), !Ie.extend && m > E && (F = E, E = m, m = F), F = sa(ve, m), ce = sa(ve, E), F && ce && (Ie.rangeCount !== 1 || Ie.anchorNode !== F.node || Ie.anchorOffset !== F.offset || Ie.focusNode !== ce.node || Ie.focusOffset !== ce.offset) && ((xe = xe.createRange()).setStart(F.node, F.offset), Ie.removeAllRanges(), m > E ? (Ie.addRange(xe), Ie.extend(ce.node, ce.offset)) : (xe.setEnd(ce.node, ce.offset), Ie.addRange(xe))))), xe = [], Ie = ve; Ie = Ie.parentNode; ) Ie.nodeType === 1 && xe.push({ element: Ie, left: Ie.scrollLeft, top: Ie.scrollTop });
for (typeof ve.focus == "function" && ve.focus(), ve = 0; ve < xe.length; ve++) (Ie = xe[ve]).element.scrollLeft = Ie.left, Ie.element.scrollTop = Ie.top;
}
An = !!Do, Et = Do = null, e.current = n, Me = a;
do
try {
for (ve = e; Me !== null; ) {
- var Fe = Me.effectTag;
- if (36 & Fe && Qc(ve, Me.alternate, Me), 128 & Fe) {
+ var Ve = Me.effectTag;
+ if (36 & Ve && Qc(ve, Me.alternate, Me), 128 & Ve) {
xe = void 0;
var at = Me.ref;
if (at !== null) {
@@ -5905,7 +5935,7 @@ Add a component higher in the tree to provide a loading
if (Xa) Xa = !1, Zi = e, Ji = t;
else for (Me = a; Me !== null; ) t = Me.nextEffect, Me.nextEffect = null, Me = t;
if ((t = e.firstPendingTime) === 0 && (go = null), t === 1073741823 ? e === ul ? ea++ : (ea = 0, ul = e) : ea = 0, typeof fl == "function" && fl(n.stateNode, r), Tn(e), Ya) throw Ya = !1, e = cl, cl = null, e;
- return (We & al) !== Vt || tn(), null;
+ return (We & al) !== Ut || tn(), null;
}
function eu() {
for (; Me !== null; ) {
@@ -5924,7 +5954,7 @@ Add a component higher in the tree to provide a loading
function tu() {
if (Zi === null) return !1;
var e = Zi;
- if (Zi = null, (We & (ar | xr)) !== Vt) throw Error(h(331));
+ if (Zi = null, (We & (ar | xr)) !== Ut) throw Error(h(331));
var t = We;
for (We |= xr, e = e.current.firstEffect; e !== null; ) {
try {
@@ -5966,7 +5996,7 @@ Add a component higher in the tree to provide a loading
}
function nu(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), Cn === e && dn === n ? Ut === Wa || Ut === Ha && Hr === 1073741823 && Nt() - ll < gc ? Qo(e, dn) : Qa = !0 : Cc(e, n) && ((t = e.lastPingedTime) !== 0 && t < n || (e.lastPingedTime = n, Tn(e)));
+ r !== null && r.delete(t), Cn === e && dn === n ? Ft === Wa || Ft === Ha && Hr === 1073741823 && Nt() - ll < gc ? Qo(e, dn) : Qa = !0 : Cc(e, n) && ((t = e.lastPingedTime) !== 0 && t < n || (e.lastPingedTime = n, Tn(e)));
}
function ru(e, t) {
var n = e.stateNode;
@@ -5976,7 +6006,7 @@ Add a component higher in the tree to provide a loading
var r = t.expirationTime;
if (e !== null) {
var a = t.pendingProps;
- if (e.memoizedProps !== a || ie.current) Er = !0;
+ if (e.memoizedProps !== a || ae.current) Er = !0;
else {
if (r < n) {
switch (Er = !1, t.tag) {
@@ -5993,7 +6023,7 @@ Add a component higher in the tree to provide a loading
js(t, t.stateNode.containerInfo);
break;
case 10:
- r = t.memoizedProps.value, a = t.type._context, z(Ur, a._currentValue), a._currentValue = r;
+ r = t.memoizedProps.value, a = t.type._context, z(Fr, a._currentValue), a._currentValue = r;
break;
case 13:
if (t.memoizedState !== null) return (r = t.child.childExpirationTime) !== 0 && r >= n ? Jl(e, t, n) : (z(Ct, 1 & Ct.current), (t = Br(e, t, n)) !== null ? t.sibling : null);
@@ -6013,7 +6043,7 @@ Add a component higher in the tree to provide a loading
} else Er = !1;
switch (t.expirationTime = 0, t.tag) {
case 2:
- if (r = t.type, e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), e = t.pendingProps, a = me(t, X.current), di(t, n), a = Us(null, t, r, e, a, n), t.effectTag |= 1, typeof a == "object" && a !== null && typeof a.render == "function" && a.$$typeof === void 0) {
+ if (r = t.type, e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), e = t.pendingProps, a = me(t, X.current), di(t, n), a = Fs(null, t, r, e, a, n), t.effectTag |= 1, typeof a == "object" && a !== null && typeof a.render == "function" && a.$$typeof === void 0) {
if (t.tag = 1, t.memoizedState = null, t.updateQueue = null, de(r)) {
var p = !0;
st(t);
@@ -6021,7 +6051,7 @@ Add a component higher in the tree to provide a loading
t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, Rs(t);
var m = r.getDerivedStateFromProps;
typeof m == "function" && Oa(t, r, m, e), a.updater = Na, t.stateNode = a, a._reactInternalFiber = t, zs(t, r, e, n), t = Gs(null, t, r, !0, p, n);
- } else t.tag = 0, Vn(null, t, a, n), t = t.child;
+ } else t.tag = 0, Un(null, t, a, n), t = t.child;
return t;
case 16:
e: {
@@ -6029,10 +6059,10 @@ Add a component higher in the tree to provide a loading
if (ce._status === -1) {
ce._status = 0;
var Re = ce._ctor;
- Re = Re(), ce._result = Re, Re.then(function(Ue) {
- ce._status === 0 && (Ue = Ue.default, ce._status = 1, ce._result = Ue);
- }, function(Ue) {
- ce._status === 0 && (ce._status = 2, ce._result = Ue);
+ Re = Re(), ce._result = Re, Re.then(function(Fe) {
+ ce._status === 0 && (Fe = Fe.default, ce._status = 1, ce._result = Fe);
+ }, function(Fe) {
+ ce._status === 0 && (ce._status = 2, ce._result = Fe);
});
}
})(a), a._status !== 1) throw a._result;
@@ -6069,31 +6099,31 @@ Add a component higher in the tree to provide a loading
if (r = t.pendingProps, a = (a = t.memoizedState) !== null ? a.element : null, Ms(e, t), Hi(t, r, null, n), (r = t.memoizedState.element) === a) Ys(), t = Br(e, t, n);
else {
if ((a = t.stateNode.hydrate) && (mo = Ar(t.stateNode.containerInfo.firstChild), $r = t, a = Ho = !0), a) for (n = As(t, null, r, n), t.child = n; n; ) n.effectTag = -3 & n.effectTag | 1024, n = n.sibling;
- else Vn(e, t, r, n), Ys();
+ else Un(e, t, r, n), Ys();
t = t.child;
}
return t;
case 5:
- return Il(t), e === null && Qs(t), r = t.type, a = t.pendingProps, p = e !== null ? e.memoizedProps : null, m = a.children, Pi(r, a) ? m = null : p !== null && Pi(r, p) && (t.effectTag |= 16), Kl(e, t), 4 & t.mode && n !== 1 && a.hidden ? (t.expirationTime = t.childExpirationTime = 1, t = null) : (Vn(e, t, m, n), t = t.child), t;
+ return Il(t), e === null && Qs(t), r = t.type, a = t.pendingProps, p = e !== null ? e.memoizedProps : null, m = a.children, Pi(r, a) ? m = null : p !== null && Pi(r, p) && (t.effectTag |= 16), Kl(e, t), 4 & t.mode && n !== 1 && a.hidden ? (t.expirationTime = t.childExpirationTime = 1, t = null) : (Un(e, t, m, n), t = t.child), t;
case 6:
return e === null && Qs(t), null;
case 13:
return Jl(e, t, n);
case 4:
- return js(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = pi(t, null, r, n) : Vn(e, t, r, n), t.child;
+ return js(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = pi(t, null, r, n) : Un(e, t, r, n), t.child;
case 11:
return r = t.type, a = t.pendingProps, Hl(e, t, r, a = t.elementType === r ? a : nn(r, a), n);
case 7:
- return Vn(e, t, t.pendingProps, n), t.child;
+ return Un(e, t, t.pendingProps, n), t.child;
case 8:
case 12:
- return Vn(e, t, t.pendingProps.children, n), t.child;
+ return Un(e, t, t.pendingProps.children, n), t.child;
case 10:
e: {
r = t.type._context, a = t.pendingProps, m = t.memoizedProps, p = a.value;
var E = t.type._context;
- if (z(Ur, E._currentValue), E._currentValue = p, m !== null) if (E = m.value, (p = rr(E, p) ? 0 : 0 | (typeof r._calculateChangedBits == "function" ? r._calculateChangedBits(E, p) : 1073741823)) === 0) {
- if (m.children === a.children && !ie.current) {
+ if (z(Fr, E._currentValue), E._currentValue = p, m !== null) if (E = m.value, (p = rr(E, p) ? 0 : 0 | (typeof r._calculateChangedBits == "function" ? r._calculateChangedBits(E, p) : 1073741823)) === 0) {
+ if (m.children === a.children && !ae.current) {
t = Br(e, t, n);
break e;
}
@@ -6101,12 +6131,12 @@ Add a component higher in the tree to provide a loading
var H = E.dependencies;
if (H !== null) {
m = E.child;
- for (var U = H.firstContext; U !== null; ) {
- if (U.context === r && (U.observedBits & p) !== 0) {
- E.tag === 1 && ((U = po(n, null)).tag = 2, fo(E, U)), E.expirationTime < n && (E.expirationTime = n), (U = E.alternate) !== null && U.expirationTime < n && (U.expirationTime = n), xl(E.return, n), H.expirationTime < n && (H.expirationTime = n);
+ for (var F = H.firstContext; F !== null; ) {
+ if (F.context === r && (F.observedBits & p) !== 0) {
+ E.tag === 1 && ((F = po(n, null)).tag = 2, fo(E, F)), E.expirationTime < n && (E.expirationTime = n), (F = E.alternate) !== null && F.expirationTime < n && (F.expirationTime = n), xl(E.return, n), H.expirationTime < n && (H.expirationTime = n);
break;
}
- U = U.next;
+ F = F.next;
}
} else m = E.tag === 10 && E.type === t.type ? null : E.child;
if (m !== null) m.return = E;
@@ -6123,11 +6153,11 @@ Add a component higher in the tree to provide a loading
}
E = m;
}
- Vn(e, t, a.children, n), t = t.child;
+ Un(e, t, a.children, n), t = t.child;
}
return t;
case 9:
- return a = t.type, r = (p = t.pendingProps).children, di(t, n), r = r(a = Ln(a, p.unstable_observedBits)), t.effectTag |= 1, Vn(e, t, r, n), t.child;
+ return a = t.type, r = (p = t.pendingProps).children, di(t, n), r = r(a = Ln(a, p.unstable_observedBits)), t.effectTag |= 1, Un(e, t, r, n), t.child;
case 14:
return p = nn(a = t.type, t.pendingProps), Wl(e, t, a, p = nn(a.type, p), r, n);
case 15:
@@ -6289,20 +6319,20 @@ Add a component higher in the tree to provide a loading
if (typeof a == "function") {
var E = a;
a = function() {
- var U = vl(m);
- E.call(U);
+ var F = vl(m);
+ E.call(F);
};
}
ns(t, m, e, a);
} else {
- if (p = n._reactRootContainer = (function(U, ce) {
- if (ce || (ce = !(!(ce = U ? U.nodeType === 9 ? U.documentElement : U.firstChild : null) || ce.nodeType !== 1 || !ce.hasAttribute("data-reactroot"))), !ce) for (var Re; Re = U.lastChild; ) U.removeChild(Re);
- return new wl(U, 0, ce ? { hydrate: !0 } : void 0);
+ if (p = n._reactRootContainer = (function(F, ce) {
+ if (ce || (ce = !(!(ce = F ? F.nodeType === 9 ? F.documentElement : F.firstChild : null) || ce.nodeType !== 1 || !ce.hasAttribute("data-reactroot"))), !ce) for (var Re; Re = F.lastChild; ) F.removeChild(Re);
+ return new wl(F, 0, ce ? { hydrate: !0 } : void 0);
})(n, r), m = p._internalRoot, typeof a == "function") {
var H = a;
a = function() {
- var U = vl(m);
- H.call(U);
+ var F = vl(m);
+ H.call(F);
};
}
vc(function() {
@@ -6328,7 +6358,7 @@ Add a component higher in the tree to provide a loading
});
}, Ze = function(e) {
if (e.tag === 13) {
- var t = Fo(Sr(), 150, 100);
+ var t = Vo(Sr(), 150, 100);
yo(e, t), kl(e, t);
}
}, Yn = function(e) {
@@ -6365,10 +6395,10 @@ Add a component higher in the tree to provide a loading
try {
return or(98, e.bind(null, t, n, r, a));
} finally {
- (We = p) === Vt && tn();
+ (We = p) === Ut && tn();
}
- }, Ve = function() {
- (We & (1 | ar | xr)) === Vt && ((function() {
+ }, Ue = function() {
+ (We & (1 | ar | xr)) === Ut && ((function() {
if (qo !== null) {
var e = qo;
qo = null, e.forEach(function(t, n) {
@@ -6382,7 +6412,7 @@ Add a component higher in the tree to provide a loading
try {
return e(t);
} finally {
- (We = n) === Vt && tn();
+ (We = n) === Ut && tn();
}
};
var au = { Events: [kr, Zn, Ri, se, S, Bt, function(e) {
@@ -6422,7 +6452,7 @@ Add a component higher in the tree to provide a loading
throw typeof e.render == "function" ? Error(h(188)) : Error(h(268, Object.keys(e)));
return e = (e = ht(t)) === null ? null : e.stateNode;
}, u.flushSync = function(e, t) {
- if ((We & (ar | xr)) !== Vt) throw Error(h(187));
+ if ((We & (ar | xr)) !== Ut) throw Error(h(187));
var n = We;
We |= 1;
try {
@@ -6469,55 +6499,55 @@ Add a component higher in the tree to provide a loading
function C() {
}
C.resetWarningCache = d, i.exports = function() {
- function h(N, I, P, j, ae, te) {
+ function h(N, I, D, L, oe, te) {
if (te !== _) {
var R = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
throw R.name = "Invariant Violation", R;
}
}
- function b() {
+ function k() {
return h;
}
h.isRequired = h;
- var w = { array: h, bigint: h, bool: h, func: h, number: h, object: h, string: h, symbol: h, any: h, arrayOf: b, element: h, elementType: h, instanceOf: b, node: h, objectOf: b, oneOf: b, oneOfType: b, shape: b, exact: b, checkPropTypes: C, resetWarningCache: d };
+ var w = { array: h, bigint: h, bool: h, func: h, number: h, object: h, string: h, symbol: h, any: h, arrayOf: k, element: h, elementType: h, instanceOf: k, node: h, objectOf: k, oneOf: k, oneOfType: k, shape: k, exact: k, checkPropTypes: C, resetWarningCache: d };
return w.PropTypes = w, w;
};
}, 2799: (i, u) => {
- var f = typeof Symbol == "function" && Symbol.for, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, w = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, P = f ? Symbol.for("react.concurrent_mode") : 60111, j = f ? Symbol.for("react.forward_ref") : 60112, ae = f ? Symbol.for("react.suspense") : 60113, te = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119;
+ var f = typeof Symbol == "function" && Symbol.for, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, k = f ? Symbol.for("react.profiler") : 60114, w = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, D = f ? Symbol.for("react.concurrent_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, oe = f ? Symbol.for("react.suspense") : 60113, te = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, V = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, ie = f ? Symbol.for("react.scope") : 60119;
function fe(S) {
if (typeof S == "object" && S !== null) {
- var L = S.$$typeof;
- switch (L) {
+ var j = S.$$typeof;
+ switch (j) {
case _:
switch (S = S.type) {
case I:
- case P:
+ case D:
case C:
- case b:
+ case k:
case h:
- case ae:
+ case oe:
return S;
default:
switch (S = S && S.$$typeof) {
case N:
- case j:
- case F:
+ case L:
+ case V:
case R:
case w:
return S;
default:
- return L;
+ return j;
}
}
case d:
- return L;
+ return j;
}
}
}
function he(S) {
- return fe(S) === P;
+ return fe(S) === D;
}
- u.AsyncMode = I, u.ConcurrentMode = P, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = j, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = h, u.Suspense = ae, u.isAsyncMode = function(S) {
+ u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = L, u.Fragment = C, u.Lazy = V, u.Memo = R, u.Portal = d, u.Profiler = k, u.StrictMode = h, u.Suspense = oe, u.isAsyncMode = function(S) {
return he(S) || fe(S) === I;
}, u.isConcurrentMode = he, u.isContextConsumer = function(S) {
return fe(S) === N;
@@ -6526,23 +6556,23 @@ Add a component higher in the tree to provide a loading
}, u.isElement = function(S) {
return typeof S == "object" && S !== null && S.$$typeof === _;
}, u.isForwardRef = function(S) {
- return fe(S) === j;
+ return fe(S) === L;
}, u.isFragment = function(S) {
return fe(S) === C;
}, u.isLazy = function(S) {
- return fe(S) === F;
+ return fe(S) === V;
}, u.isMemo = function(S) {
return fe(S) === R;
}, u.isPortal = function(S) {
return fe(S) === d;
}, u.isProfiler = function(S) {
- return fe(S) === b;
+ return fe(S) === k;
}, u.isStrictMode = function(S) {
return fe(S) === h;
}, u.isSuspense = function(S) {
- return fe(S) === ae;
+ return fe(S) === oe;
}, u.isValidElementType = function(S) {
- return typeof S == "string" || typeof S == "function" || S === C || S === P || S === b || S === h || S === ae || S === te || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === j || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q);
+ return typeof S == "string" || typeof S == "function" || S === C || S === D || S === k || S === h || S === oe || S === te || typeof S == "object" && S !== null && (S.$$typeof === V || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === L || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === ie || S.$$typeof === q);
}, u.typeOf = fe;
}, 2841: (i, u, f) => {
f.r(u), f.d(u, { default: () => C });
@@ -6552,21 +6582,21 @@ Add a component higher in the tree to provide a loading
d.push([i.id, ".ck-inspector .ck-inspector-checkbox{vertical-align:middle}", ""]);
const C = d;
}, 3514: (i, u) => {
- Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = _, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(h, b) {
- return b ? "-".concat(b.toLowerCase(), "-").concat(h) : h;
+ Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = _, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(h, k) {
+ return k ? "-".concat(k.toLowerCase(), "-").concat(h) : h;
}, u.default = void 0;
var f = ["Moz", "Webkit", "O", "ms"];
function _() {
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
if (typeof window > "u" || window.document === void 0) return "";
- var b = window.document.documentElement.style;
- if (h in b) return "";
- for (var w = 0; w < f.length; w++) if (d(h, f[w]) in b) return f[w];
+ var k = window.document.documentElement.style;
+ if (h in k) return "";
+ for (var w = 0; w < f.length; w++) if (d(h, f[w]) in k) return f[w];
return "";
}
- function d(h, b) {
- return b ? "".concat(b).concat((function(w) {
- for (var N = "", I = !0, P = 0; P < w.length; P++) I ? (N += w[P].toUpperCase(), I = !1) : w[P] === "-" ? I = !0 : N += w[P];
+ function d(h, k) {
+ return k ? "".concat(k).concat((function(w) {
+ for (var N = "", I = !0, D = 0; D < w.length; D++) I ? (N += w[D].toUpperCase(), I = !1) : w[D] === "-" ? I = !0 : N += w[D];
return N;
})(h)) : h;
}
@@ -6585,32 +6615,32 @@ Add a component higher in the tree to provide a loading
d.push([i.id, ".ck-inspector-side-pane{position:relative}", ""]);
const C = d;
}, 4146: (i, u, f) => {
- var _ = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, h = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, b = {};
+ var _ = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, h = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, k = {};
function w(R) {
- return _.isMemo(R) ? h : b[R.$$typeof] || d;
+ return _.isMemo(R) ? h : k[R.$$typeof] || d;
}
- b[_.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, b[_.Memo] = h;
- var N = Object.defineProperty, I = Object.getOwnPropertyNames, P = Object.getOwnPropertySymbols, j = Object.getOwnPropertyDescriptor, ae = Object.getPrototypeOf, te = Object.prototype;
- i.exports = function R(F, q, G) {
+ k[_.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, k[_.Memo] = h;
+ var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, oe = Object.getPrototypeOf, te = Object.prototype;
+ i.exports = function R(V, q, G) {
if (typeof q != "string") {
if (te) {
- var pe = ae(q);
- pe && pe !== te && R(F, pe, G);
- }
- var oe = I(q);
- P && (oe = oe.concat(P(q)));
- for (var fe = w(F), he = w(q), S = 0; S < oe.length; ++S) {
- var L = oe[S];
- if (!(C[L] || G && G[L] || he && he[L] || fe && fe[L])) {
- var A = j(q, L);
+ var pe = oe(q);
+ pe && pe !== te && R(V, pe, G);
+ }
+ var ie = I(q);
+ D && (ie = ie.concat(D(q)));
+ for (var fe = w(V), he = w(q), S = 0; S < ie.length; ++S) {
+ var j = ie[S];
+ if (!(C[j] || G && G[j] || he && he[j] || fe && fe[j])) {
+ var A = L(q, j);
try {
- N(F, L, A);
+ N(V, j, A);
} catch {
}
}
}
}
- return F;
+ return V;
};
}, 4343: (i, u, f) => {
var _ = f(5072), d = f(7260);
@@ -6625,8 +6655,8 @@ Add a component higher in the tree to provide a loading
Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() {
var C = document.getElementsByTagName("html")[0];
for (var h in f) d(C, f[h]);
- var b = document.body;
- for (var w in _) d(b, _[w]);
+ var k = document.body;
+ for (var w in _) d(k, _[w]);
f = {}, _ = {};
}, u.log = function() {
};
@@ -6635,31 +6665,31 @@ Add a component higher in the tree to provide a loading
C.classList.remove(h);
}
u.add = function(C, h) {
- return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) {
- (function(I, P) {
- I[P] || (I[P] = 0), I[P] += 1;
- })(w, N), b.add(N);
+ return k = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) {
+ (function(I, D) {
+ I[D] || (I[D] = 0), I[D] += 1;
+ })(w, N), k.add(N);
});
- var b, w;
+ var k, w;
}, u.remove = function(C, h) {
- return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) {
- (function(I, P) {
- I[P] && (I[P] -= 1);
- })(w, N), w[N] === 0 && b.remove(N);
+ return k = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) {
+ (function(I, D) {
+ I[D] && (I[D] -= 1);
+ })(w, N), w[N] === 0 && k.remove(N);
});
- var b, w;
+ var k, w;
};
}, 4987: (i) => {
- function u(w, N, I, P) {
- var j, ae = (j = P) == null || typeof j == "number" || typeof j == "boolean" ? P : I(P), te = N.get(ae);
- return te === void 0 && (te = w.call(this, P), N.set(ae, te)), te;
+ function u(w, N, I, D) {
+ var L, oe = (L = D) == null || typeof L == "number" || typeof L == "boolean" ? D : I(D), te = N.get(oe);
+ return te === void 0 && (te = w.call(this, D), N.set(oe, te)), te;
}
function f(w, N, I) {
- var P = Array.prototype.slice.call(arguments, 3), j = I(P), ae = N.get(j);
- return ae === void 0 && (ae = w.apply(this, P), N.set(j, ae)), ae;
+ var D = Array.prototype.slice.call(arguments, 3), L = I(D), oe = N.get(L);
+ return oe === void 0 && (oe = w.apply(this, D), N.set(L, oe)), oe;
}
- function _(w, N, I, P, j) {
- return I.bind(N, w, P, j);
+ function _(w, N, I, D, L) {
+ return I.bind(N, w, D, L);
}
function d(w, N) {
return _(w, this, w.length === 1 ? u : f, N.cache.create(), N.serializer);
@@ -6677,12 +6707,12 @@ Add a component higher in the tree to provide a loading
}, h.prototype.set = function(w, N) {
this.cache[w] = N;
};
- var b = { create: function() {
+ var k = { create: function() {
return new h();
} };
i.exports = function(w, N) {
- var I = N && N.cache ? N.cache : b, P = N && N.serializer ? N.serializer : C;
- return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: P });
+ var I = N && N.cache ? N.cache : k, D = N && N.serializer ? N.serializer : C;
+ return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: D });
}, i.exports.strategies = { variadic: function(w, N) {
return _(w, this, f, N.cache.create(), N.serializer);
}, monadic: function(w, N) {
@@ -6706,7 +6736,7 @@ Add a component higher in the tree to provide a loading
return q[G];
};
})(), h = [];
- function b(q) {
+ function k(q) {
for (var G = -1, pe = 0; pe < h.length; pe++) if (h[pe].identifier === q) {
G = pe;
break;
@@ -6714,19 +6744,19 @@ Add a component higher in the tree to provide a loading
return G;
}
function w(q, G) {
- for (var pe = {}, oe = [], fe = 0; fe < q.length; fe++) {
- var he = q[fe], S = G.base ? he[0] + G.base : he[0], L = pe[S] || 0, A = "".concat(S, " ").concat(L);
- pe[S] = L + 1;
- var se = b(A), J = { css: he[1], media: he[2], sourceMap: he[3] };
- se !== -1 ? (h[se].references++, h[se].updater(J)) : h.push({ identifier: A, updater: F(J, G), references: 1 }), oe.push(A);
+ for (var pe = {}, ie = [], fe = 0; fe < q.length; fe++) {
+ var he = q[fe], S = G.base ? he[0] + G.base : he[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j);
+ pe[S] = j + 1;
+ var se = k(A), J = { css: he[1], media: he[2], sourceMap: he[3] };
+ se !== -1 ? (h[se].references++, h[se].updater(J)) : h.push({ identifier: A, updater: V(J, G), references: 1 }), ie.push(A);
}
- return oe;
+ return ie;
}
function N(q) {
var G = document.createElement("style"), pe = q.attributes || {};
if (pe.nonce === void 0) {
- var oe = f.nc;
- oe && (pe.nonce = oe);
+ var ie = f.nc;
+ ie && (pe.nonce = ie);
}
if (Object.keys(pe).forEach(function(he) {
G.setAttribute(he, pe[he]);
@@ -6738,57 +6768,57 @@ Add a component higher in the tree to provide a loading
}
return G;
}
- var I, P = (I = [], function(q, G) {
+ var I, D = (I = [], function(q, G) {
return I[q] = G, I.filter(Boolean).join(`
`);
});
- function j(q, G, pe, oe) {
- var fe = pe ? "" : oe.media ? "@media ".concat(oe.media, " {").concat(oe.css, "}") : oe.css;
- if (q.styleSheet) q.styleSheet.cssText = P(G, fe);
+ function L(q, G, pe, ie) {
+ var fe = pe ? "" : ie.media ? "@media ".concat(ie.media, " {").concat(ie.css, "}") : ie.css;
+ if (q.styleSheet) q.styleSheet.cssText = D(G, fe);
else {
var he = document.createTextNode(fe), S = q.childNodes;
S[G] && q.removeChild(S[G]), S.length ? q.insertBefore(he, S[G]) : q.appendChild(he);
}
}
- function ae(q, G, pe) {
- var oe = pe.css, fe = pe.media, he = pe.sourceMap;
- if (fe ? q.setAttribute("media", fe) : q.removeAttribute("media"), he && typeof btoa < "u" && (oe += `
-/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(he)))), " */")), q.styleSheet) q.styleSheet.cssText = oe;
+ function oe(q, G, pe) {
+ var ie = pe.css, fe = pe.media, he = pe.sourceMap;
+ if (fe ? q.setAttribute("media", fe) : q.removeAttribute("media"), he && typeof btoa < "u" && (ie += `
+/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(he)))), " */")), q.styleSheet) q.styleSheet.cssText = ie;
else {
for (; q.firstChild; ) q.removeChild(q.firstChild);
- q.appendChild(document.createTextNode(oe));
+ q.appendChild(document.createTextNode(ie));
}
}
var te = null, R = 0;
- function F(q, G) {
- var pe, oe, fe;
+ function V(q, G) {
+ var pe, ie, fe;
if (G.singleton) {
var he = R++;
- pe = te || (te = N(G)), oe = j.bind(null, pe, he, !1), fe = j.bind(null, pe, he, !0);
- } else pe = N(G), oe = ae.bind(null, pe, G), fe = function() {
+ pe = te || (te = N(G)), ie = L.bind(null, pe, he, !1), fe = L.bind(null, pe, he, !0);
+ } else pe = N(G), ie = oe.bind(null, pe, G), fe = function() {
(function(S) {
if (S.parentNode === null) return !1;
S.parentNode.removeChild(S);
})(pe);
};
- return oe(q), function(S) {
+ return ie(q), function(S) {
if (S) {
if (S.css === q.css && S.media === q.media && S.sourceMap === q.sourceMap) return;
- oe(q = S);
+ ie(q = S);
} else fe();
};
}
i.exports = function(q, G) {
(G = G || {}).singleton || typeof G.singleton == "boolean" || (G.singleton = d());
var pe = w(q = q || [], G);
- return function(oe) {
- if (oe = oe || [], Object.prototype.toString.call(oe) === "[object Array]") {
+ return function(ie) {
+ if (ie = ie || [], Object.prototype.toString.call(ie) === "[object Array]") {
for (var fe = 0; fe < pe.length; fe++) {
- var he = b(pe[fe]);
+ var he = k(pe[fe]);
h[he].references--;
}
- for (var S = w(oe, G), L = 0; L < pe.length; L++) {
- var A = b(pe[L]);
+ for (var S = w(ie, G), j = 0; j < pe.length; j++) {
+ var A = k(pe[j]);
h[A].references === 0 && (h[A].updater(), h.splice(A, 1));
}
pe = S;
@@ -6798,32 +6828,32 @@ Add a component higher in the tree to provide a loading
}, 5180: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.FunctionParser = u.dedentFunction = u.functionToString = u.USED_METHOD_KEY = void 0;
const _ = f(1099), d = { " "() {
- } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, h = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));
+ } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, h = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, k = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));
u.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet();
function w(I) {
- let P;
- for (const j of I.split(`
+ let D;
+ for (const L of I.split(`
`).slice(1)) {
- const ae = /^[\s\t]+/.exec(j);
- if (!ae) return I;
- const [te] = ae;
- (P === void 0 || te.length < P.length) && (P = te);
+ const oe = /^[\s\t]+/.exec(L);
+ if (!oe) return I;
+ const [te] = oe;
+ (D === void 0 || te.length < D.length) && (D = te);
}
- return P ? I.split(`
-${P}`).join(`
+ return D ? I.split(`
+${D}`).join(`
`) : I;
}
- u.functionToString = (I, P, j, ae) => {
- const te = typeof ae == "string" ? ae : void 0;
- return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, P, j, te).stringify();
+ u.functionToString = (I, D, L, oe) => {
+ const te = typeof oe == "string" ? oe : void 0;
+ return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, D, L, te).stringify();
}, u.dedentFunction = w;
class N {
- constructor(P, j, ae, te) {
- this.fn = P, this.indent = j, this.next = ae, this.key = te, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(P), this.fnType = P.constructor.name, this.keyQuote = te === void 0 ? "" : _.quoteKey(te, ae), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${j ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te);
+ constructor(D, L, oe, te) {
+ this.fn = D, this.indent = L, this.next = oe, this.key = te, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(D), this.fnType = D.constructor.name, this.keyQuote = te === void 0 ? "" : _.quoteKey(te, oe), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te);
}
stringify() {
- const P = this.tryParse();
- return P ? w(P) : `${this.keyPrefix}void ${this.next(this.fnString)}`;
+ const D = this.tryParse();
+ return D ? w(D) : `${this.keyPrefix}void ${this.next(this.fnString)}`;
}
getPrefix() {
return this.isMethodCandidate && !this.hadKeyword ? h[this.fnType] + this.keyQuote : this.keyPrefix + C[this.fnType];
@@ -6831,21 +6861,21 @@ ${P}`).join(`
tryParse() {
if (this.fnString[this.fnString.length - 1] !== "}") return this.keyPrefix + this.fnString;
if (this.fn.name) {
- const j = this.tryStrippingName();
- if (j) return j;
+ const L = this.tryStrippingName();
+ if (L) return L;
}
- const P = this.pos;
+ const D = this.pos;
if (this.consumeSyntax() === "class") return this.fnString;
- if (this.pos = P, this.tryParsePrefixTokens()) {
- const j = this.tryStrippingName();
- if (j) return j;
- let ae = this.pos;
+ if (this.pos = D, this.tryParsePrefixTokens()) {
+ const L = this.tryStrippingName();
+ if (L) return L;
+ let oe = this.pos;
switch (this.consumeSyntax("WORD_LIKE")) {
case "WORD_LIKE":
- this.isMethodCandidate && !this.hadKeyword && (ae = this.pos);
+ this.isMethodCandidate && !this.hadKeyword && (oe = this.pos);
case "()":
if (this.fnString.substr(this.pos, 2) === "=>") return this.keyPrefix + this.fnString;
- this.pos = ae;
+ this.pos = oe;
case '"':
case "'":
case "[]":
@@ -6855,32 +6885,32 @@ ${P}`).join(`
}
tryStrippingName() {
if (d) return;
- let P = this.pos;
- const j = this.fnString.substr(this.pos, this.fn.name.length);
- if (j === this.fn.name && (this.pos += j.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(j) || (P += j.length), this.getPrefix() + this.fnString.substr(P);
- this.pos = P;
+ let D = this.pos;
+ const L = this.fnString.substr(this.pos, this.fn.name.length);
+ if (L === this.fn.name && (this.pos += L.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(L) || (D += L.length), this.getPrefix() + this.fnString.substr(D);
+ this.pos = D;
}
tryParsePrefixTokens() {
- let P = this.pos;
+ let D = this.pos;
switch (this.hadKeyword = !1, this.fnType) {
case "AsyncFunction":
if (this.consumeSyntax() !== "async") return !1;
- P = this.pos;
+ D = this.pos;
case "Function":
- return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = P, !0;
+ return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = D, !0;
case "AsyncGeneratorFunction":
if (this.consumeSyntax() !== "async") return !1;
case "GeneratorFunction":
- let j = this.consumeSyntax();
- return j === "function" && (j = this.consumeSyntax(), this.hadKeyword = !0), j === "*";
+ let L = this.consumeSyntax();
+ return L === "function" && (L = this.consumeSyntax(), this.hadKeyword = !0), L === "*";
}
}
- consumeSyntax(P) {
- const j = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);
- if (!j) return;
- const [ae, te] = j;
- if (this.consumeWhitespace(), te) return P || te;
- switch (ae) {
+ consumeSyntax(D) {
+ const L = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);
+ if (!L) return;
+ const [oe, te] = L;
+ if (this.consumeWhitespace(), te) return D || te;
+ switch (oe) {
case "(":
return this.consumeSyntaxUntil("(", ")");
case "[":
@@ -6894,24 +6924,24 @@ ${P}`).join(`
case "'":
return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'");
}
- return ae;
+ return oe;
}
- consumeSyntaxUntil(P, j) {
- let ae = !0;
+ consumeSyntaxUntil(D, L) {
+ let oe = !0;
for (; ; ) {
const te = this.consumeSyntax();
- if (te === j) return P + j;
+ if (te === L) return D + L;
if (!te || te === ")" || te === "]" || te === "}") return;
- te === "/" && ae && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (ae = !1, this.consumeWhitespace()) : ae = b.has(te);
+ te === "/" && oe && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (oe = !1, this.consumeWhitespace()) : oe = k.has(te);
}
}
- consumeMatch(P) {
- const j = P.exec(this.fnString.substr(this.pos));
- return j && (this.pos += j[0].length), j;
+ consumeMatch(D) {
+ const L = D.exec(this.fnString.substr(this.pos));
+ return L && (this.pos += L[0].length), L;
}
- consumeRegExp(P, j) {
- const ae = P.exec(this.fnString.substr(this.pos));
- if (ae) return this.pos += ae[0].length, this.consumeWhitespace(), j;
+ consumeRegExp(D, L) {
+ const oe = D.exec(this.fnString.substr(this.pos));
+ if (oe) return this.pos += oe[0].length, this.consumeWhitespace(), L;
}
consumeTemplate() {
for (; ; ) {
@@ -6935,31 +6965,31 @@ ${P}`).join(`
if (Object.getOwnPropertyNames(C).map(function(w) {
return C[w];
}).join("") !== "0123456789") return !1;
- var b = {};
+ var k = {};
return "abcdefghijklmnopqrst".split("").forEach(function(w) {
- b[w] = w;
- }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst";
+ k[w] = w;
+ }), Object.keys(Object.assign({}, k)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
})() ? Object.assign : function(d, C) {
- for (var h, b, w = (function(j) {
- if (j == null) throw new TypeError("Object.assign cannot be called with null or undefined");
- return Object(j);
+ for (var h, k, w = (function(L) {
+ if (L == null) throw new TypeError("Object.assign cannot be called with null or undefined");
+ return Object(L);
})(d), N = 1; N < arguments.length; N++) {
for (var I in h = Object(arguments[N])) f.call(h, I) && (w[I] = h[I]);
if (u) {
- b = u(h);
- for (var P = 0; P < b.length; P++) _.call(h, b[P]) && (w[b[P]] = h[b[P]]);
+ k = u(h);
+ for (var D = 0; D < k.length; D++) _.call(h, k[D]) && (w[k[D]] = h[k[D]]);
}
}
return w;
};
}, 5287: (i, u, f) => {
- var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, w = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, P = d ? Symbol.for("react.context") : 60110, j = d ? Symbol.for("react.forward_ref") : 60112, ae = d ? Symbol.for("react.suspense") : 60113, te = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator;
- function q(D) {
- for (var ne = "https://reactjs.org/docs/error-decoder.html?invariant=" + D, we = 1; we < arguments.length; we++) ne += "&args[]=" + encodeURIComponent(arguments[we]);
- return "Minified React error #" + D + "; visit " + ne + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
+ var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, k = d ? Symbol.for("react.fragment") : 60107, w = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, D = d ? Symbol.for("react.context") : 60110, L = d ? Symbol.for("react.forward_ref") : 60112, oe = d ? Symbol.for("react.suspense") : 60113, te = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, V = typeof Symbol == "function" && Symbol.iterator;
+ function q(P) {
+ for (var ne = "https://reactjs.org/docs/error-decoder.html?invariant=" + P, we = 1; we < arguments.length; we++) ne += "&args[]=" + encodeURIComponent(arguments[we]);
+ return "Minified React error #" + P + "; visit " + ne + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var G = { isMounted: function() {
return !1;
@@ -6967,24 +6997,24 @@ ${P}`).join(`
}, enqueueReplaceState: function() {
}, enqueueSetState: function() {
} }, pe = {};
- function oe(D, ne, we) {
- this.props = D, this.context = ne, this.refs = pe, this.updater = we || G;
+ function ie(P, ne, we) {
+ this.props = P, this.context = ne, this.refs = pe, this.updater = we || G;
}
function fe() {
}
- function he(D, ne, we) {
- this.props = D, this.context = ne, this.refs = pe, this.updater = we || G;
+ function he(P, ne, we) {
+ this.props = P, this.context = ne, this.refs = pe, this.updater = we || G;
}
- oe.prototype.isReactComponent = {}, oe.prototype.setState = function(D, ne) {
- if (typeof D != "object" && typeof D != "function" && D != null) throw Error(q(85));
- this.updater.enqueueSetState(this, D, ne, "setState");
- }, oe.prototype.forceUpdate = function(D) {
- this.updater.enqueueForceUpdate(this, D, "forceUpdate");
- }, fe.prototype = oe.prototype;
+ ie.prototype.isReactComponent = {}, ie.prototype.setState = function(P, ne) {
+ if (typeof P != "object" && typeof P != "function" && P != null) throw Error(q(85));
+ this.updater.enqueueSetState(this, P, ne, "setState");
+ }, ie.prototype.forceUpdate = function(P) {
+ this.updater.enqueueForceUpdate(this, P, "forceUpdate");
+ }, fe.prototype = ie.prototype;
var S = he.prototype = new fe();
- S.constructor = he, _(S, oe.prototype), S.isPureReactComponent = !0;
- var L = { current: null }, A = Object.prototype.hasOwnProperty, se = { key: !0, ref: !0, __self: !0, __source: !0 };
- function J(D, ne, we) {
+ S.constructor = he, _(S, ie.prototype), S.isPureReactComponent = !0;
+ var j = { current: null }, A = Object.prototype.hasOwnProperty, se = { key: !0, ref: !0, __self: !0, __source: !0 };
+ function J(P, ne, we) {
var Ce, Pe = {}, _e = null, lt = null;
if (ne != null) for (Ce in ne.ref !== void 0 && (lt = ne.ref), ne.key !== void 0 && (_e = "" + ne.key), ne) A.call(ne, Ce) && !se.hasOwnProperty(Ce) && (Pe[Ce] = ne[Ce]);
var Qe = arguments.length - 2;
@@ -6993,106 +7023,106 @@ ${P}`).join(`
for (var et = Array(Qe), Pt = 0; Pt < Qe; Pt++) et[Pt] = arguments[Pt + 2];
Pe.children = et;
}
- if (D && D.defaultProps) for (Ce in Qe = D.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]);
- return { $$typeof: C, type: D, key: _e, ref: lt, props: Pe, _owner: L.current };
+ if (P && P.defaultProps) for (Ce in Qe = P.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]);
+ return { $$typeof: C, type: P, key: _e, ref: lt, props: Pe, _owner: j.current };
}
- function Ee(D) {
- return typeof D == "object" && D !== null && D.$$typeof === C;
+ function Ee(P) {
+ return typeof P == "object" && P !== null && P.$$typeof === C;
}
- var ee = /\/+/g, V = [];
- function Z(D, ne, we, Ce) {
- if (V.length) {
- var Pe = V.pop();
- return Pe.result = D, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe;
+ var ee = /\/+/g, U = [];
+ function Z(P, ne, we, Ce) {
+ if (U.length) {
+ var Pe = U.pop();
+ return Pe.result = P, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe;
}
- return { result: D, keyPrefix: ne, func: we, context: Ce, count: 0 };
+ return { result: P, keyPrefix: ne, func: we, context: Ce, count: 0 };
}
- function le(D) {
- D.result = null, D.keyPrefix = null, D.func = null, D.context = null, D.count = 0, 10 > V.length && V.push(D);
+ function le(P) {
+ P.result = null, P.keyPrefix = null, P.func = null, P.context = null, P.count = 0, 10 > U.length && U.push(P);
}
- function ge(D, ne, we, Ce) {
- var Pe = typeof D;
- Pe !== "undefined" && Pe !== "boolean" || (D = null);
+ function ge(P, ne, we, Ce) {
+ var Pe = typeof P;
+ Pe !== "undefined" && Pe !== "boolean" || (P = null);
var _e = !1;
- if (D === null) _e = !0;
+ if (P === null) _e = !0;
else switch (Pe) {
case "string":
case "number":
_e = !0;
break;
case "object":
- switch (D.$$typeof) {
+ switch (P.$$typeof) {
case C:
case h:
_e = !0;
}
}
- if (_e) return we(Ce, D, ne === "" ? "." + Ne(D, 0) : ne), 1;
- if (_e = 0, ne = ne === "" ? "." : ne + ":", Array.isArray(D)) for (var lt = 0; lt < D.length; lt++) {
- var Qe = ne + Ne(Pe = D[lt], lt);
+ if (_e) return we(Ce, P, ne === "" ? "." + Ne(P, 0) : ne), 1;
+ if (_e = 0, ne = ne === "" ? "." : ne + ":", Array.isArray(P)) for (var lt = 0; lt < P.length; lt++) {
+ var Qe = ne + Ne(Pe = P[lt], lt);
_e += ge(Pe, Qe, we, Ce);
}
- else if (D === null || typeof D != "object" ? Qe = null : Qe = typeof (Qe = F && D[F] || D["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (D = Qe.call(D), lt = 0; !(Pe = D.next()).done; ) _e += ge(Pe = Pe.value, Qe = ne + Ne(Pe, lt++), we, Ce);
- else if (Pe === "object") throw we = "" + D, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : we, ""));
+ else if (P === null || typeof P != "object" ? Qe = null : Qe = typeof (Qe = V && P[V] || P["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (P = Qe.call(P), lt = 0; !(Pe = P.next()).done; ) _e += ge(Pe = Pe.value, Qe = ne + Ne(Pe, lt++), we, Ce);
+ else if (Pe === "object") throw we = "" + P, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(P).join(", ") + "}" : we, ""));
return _e;
}
- function ke(D, ne, we) {
- return D == null ? 0 : ge(D, "", ne, we);
+ function ke(P, ne, we) {
+ return P == null ? 0 : ge(P, "", ne, we);
}
- function Ne(D, ne) {
- return typeof D == "object" && D !== null && D.key != null ? (function(we) {
+ function Ne(P, ne) {
+ return typeof P == "object" && P !== null && P.key != null ? (function(we) {
var Ce = { "=": "=0", ":": "=2" };
return "$" + ("" + we).replace(/[=:]/g, function(Pe) {
return Ce[Pe];
});
- })(D.key) : ne.toString(36);
+ })(P.key) : ne.toString(36);
}
- function Ve(D, ne) {
- D.func.call(D.context, ne, D.count++);
+ function Ue(P, ne) {
+ P.func.call(P.context, ne, P.count++);
}
- function Ae(D, ne, we) {
- var Ce = D.result, Pe = D.keyPrefix;
- D = D.func.call(D.context, ne, D.count++), Array.isArray(D) ? Le(D, Ce, we, function(_e) {
+ function Ae(P, ne, we) {
+ var Ce = P.result, Pe = P.keyPrefix;
+ P = P.func.call(P.context, ne, P.count++), Array.isArray(P) ? Le(P, Ce, we, function(_e) {
return _e;
- }) : D != null && (Ee(D) && (D = (function(_e, lt) {
+ }) : P != null && (Ee(P) && (P = (function(_e, lt) {
return { $$typeof: C, type: _e.type, key: lt, ref: _e.ref, props: _e.props, _owner: _e._owner };
- })(D, Pe + (!D.key || ne && ne.key === D.key ? "" : ("" + D.key).replace(ee, "$&/") + "/") + we)), Ce.push(D));
+ })(P, Pe + (!P.key || ne && ne.key === P.key ? "" : ("" + P.key).replace(ee, "$&/") + "/") + we)), Ce.push(P));
}
- function Le(D, ne, we, Ce, Pe) {
+ function Le(P, ne, we, Ce, Pe) {
var _e = "";
- we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(D, Ae, ne = Z(ne, _e, Ce, Pe)), le(ne);
+ we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(P, Ae, ne = Z(ne, _e, Ce, Pe)), le(ne);
}
var Ke = { current: null };
function Je() {
- var D = Ke.current;
- if (D === null) throw Error(q(321));
- return D;
+ var P = Ke.current;
+ if (P === null) throw Error(q(321));
+ return P;
}
- var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: L, IsSomeRendererActing: { current: !1 }, assign: _ };
- u.Children = { map: function(D, ne, we) {
- if (D == null) return D;
+ var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: _ };
+ u.Children = { map: function(P, ne, we) {
+ if (P == null) return P;
var Ce = [];
- return Le(D, Ce, null, ne, we), Ce;
- }, forEach: function(D, ne, we) {
- if (D == null) return D;
- ke(D, Ve, ne = Z(null, null, ne, we)), le(ne);
- }, count: function(D) {
- return ke(D, function() {
+ return Le(P, Ce, null, ne, we), Ce;
+ }, forEach: function(P, ne, we) {
+ if (P == null) return P;
+ ke(P, Ue, ne = Z(null, null, ne, we)), le(ne);
+ }, count: function(P) {
+ return ke(P, function() {
return null;
}, null);
- }, toArray: function(D) {
+ }, toArray: function(P) {
var ne = [];
- return Le(D, ne, null, function(we) {
+ return Le(P, ne, null, function(we) {
return we;
}), ne;
- }, only: function(D) {
- if (!Ee(D)) throw Error(q(143));
- return D;
- } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = ae, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(D, ne, we) {
- if (D == null) throw Error(q(267, D));
- var Ce = _({}, D.props), Pe = D.key, _e = D.ref, lt = D._owner;
+ }, only: function(P) {
+ if (!Ee(P)) throw Error(q(143));
+ return P;
+ } }, u.Component = ie, u.Fragment = k, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = oe, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(P, ne, we) {
+ if (P == null) throw Error(q(267, P));
+ var Ce = _({}, P.props), Pe = P.key, _e = P.ref, lt = P._owner;
if (ne != null) {
- if (ne.ref !== void 0 && (_e = ne.ref, lt = L.current), ne.key !== void 0 && (Pe = "" + ne.key), D.type && D.type.defaultProps) var Qe = D.type.defaultProps;
+ if (ne.ref !== void 0 && (_e = ne.ref, lt = j.current), ne.key !== void 0 && (Pe = "" + ne.key), P.type && P.type.defaultProps) var Qe = P.type.defaultProps;
for (et in ne) A.call(ne, et) && !se.hasOwnProperty(et) && (Ce[et] = ne[et] === void 0 && Qe !== void 0 ? Qe[et] : ne[et]);
}
var et = arguments.length - 2;
@@ -7102,73 +7132,73 @@ ${P}`).join(`
for (var Pt = 0; Pt < et; Pt++) Qe[Pt] = arguments[Pt + 2];
Ce.children = Qe;
}
- return { $$typeof: C, type: D.type, key: Pe, ref: _e, props: Ce, _owner: lt };
- }, u.createContext = function(D, ne) {
- return ne === void 0 && (ne = null), (D = { $$typeof: P, _calculateChangedBits: ne, _currentValue: D, _currentValue2: D, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: D }, D.Consumer = D;
- }, u.createElement = J, u.createFactory = function(D) {
- var ne = J.bind(null, D);
- return ne.type = D, ne;
+ return { $$typeof: C, type: P.type, key: Pe, ref: _e, props: Ce, _owner: lt };
+ }, u.createContext = function(P, ne) {
+ return ne === void 0 && (ne = null), (P = { $$typeof: D, _calculateChangedBits: ne, _currentValue: P, _currentValue2: P, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: P }, P.Consumer = P;
+ }, u.createElement = J, u.createFactory = function(P) {
+ var ne = J.bind(null, P);
+ return ne.type = P, ne;
}, u.createRef = function() {
return { current: null };
- }, u.forwardRef = function(D) {
- return { $$typeof: j, render: D };
- }, u.isValidElement = Ee, u.lazy = function(D) {
- return { $$typeof: R, _ctor: D, _status: -1, _result: null };
- }, u.memo = function(D, ne) {
- return { $$typeof: te, type: D, compare: ne === void 0 ? null : ne };
- }, u.useCallback = function(D, ne) {
- return Je().useCallback(D, ne);
- }, u.useContext = function(D, ne) {
- return Je().useContext(D, ne);
+ }, u.forwardRef = function(P) {
+ return { $$typeof: L, render: P };
+ }, u.isValidElement = Ee, u.lazy = function(P) {
+ return { $$typeof: R, _ctor: P, _status: -1, _result: null };
+ }, u.memo = function(P, ne) {
+ return { $$typeof: te, type: P, compare: ne === void 0 ? null : ne };
+ }, u.useCallback = function(P, ne) {
+ return Je().useCallback(P, ne);
+ }, u.useContext = function(P, ne) {
+ return Je().useContext(P, ne);
}, u.useDebugValue = function() {
- }, u.useEffect = function(D, ne) {
- return Je().useEffect(D, ne);
- }, u.useImperativeHandle = function(D, ne, we) {
- return Je().useImperativeHandle(D, ne, we);
- }, u.useLayoutEffect = function(D, ne) {
- return Je().useLayoutEffect(D, ne);
- }, u.useMemo = function(D, ne) {
- return Je().useMemo(D, ne);
- }, u.useReducer = function(D, ne, we) {
- return Je().useReducer(D, ne, we);
- }, u.useRef = function(D) {
- return Je().useRef(D);
- }, u.useState = function(D) {
- return Je().useState(D);
+ }, u.useEffect = function(P, ne) {
+ return Je().useEffect(P, ne);
+ }, u.useImperativeHandle = function(P, ne, we) {
+ return Je().useImperativeHandle(P, ne, we);
+ }, u.useLayoutEffect = function(P, ne) {
+ return Je().useLayoutEffect(P, ne);
+ }, u.useMemo = function(P, ne) {
+ return Je().useMemo(P, ne);
+ }, u.useReducer = function(P, ne, we) {
+ return Je().useReducer(P, ne, we);
+ }, u.useRef = function(P) {
+ return Je().useRef(P);
+ }, u.useState = function(P) {
+ return Je().useState(P);
}, u.version = "16.14.0";
}, 5323: (i, u, f) => {
u.A = void 0;
const _ = f(42), d = f(1099), C = Symbol("root");
- u.A = function(h, b, w, N = {}) {
- const I = typeof w == "string" ? w : " ".repeat(w || 0), P = [], j = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
+ u.A = function(h, k, w, N = {}) {
+ const I = typeof w == "string" ? w : " ".repeat(w || 0), D = [], L = /* @__PURE__ */ new Set(), oe = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
let R = 0;
- const { maxDepth: F = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, oe = (function(L) {
- return L ? (A, se, J, Ee) => L(A, se, (ee) => _.toString(ee, se, J, Ee), Ee) : _.toString;
- })(b), fe = (L, A) => {
- if (++R > pe || G && L === void 0 || P.length > F) return;
- if (A === void 0) return oe(L, I, fe, A);
- P.push(A);
- const se = he(L, A === C ? void 0 : A);
- return P.pop(), se;
- }, he = q ? (L, A) => {
- if (L !== null && (typeof L == "object" || typeof L == "function" || typeof L == "symbol")) {
- if (ae.has(L)) return te.set(P.slice(1), ae.get(L)), oe(void 0, I, fe, A);
- ae.set(L, P.slice(1));
- }
- return oe(L, I, fe, A);
- } : (L, A) => {
- if (j.has(L)) return;
- j.add(L);
- const se = oe(L, I, fe, A);
- return j.delete(L), se;
+ const { maxDepth: V = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, ie = (function(j) {
+ return j ? (A, se, J, Ee) => j(A, se, (ee) => _.toString(ee, se, J, Ee), Ee) : _.toString;
+ })(k), fe = (j, A) => {
+ if (++R > pe || G && j === void 0 || D.length > V) return;
+ if (A === void 0) return ie(j, I, fe, A);
+ D.push(A);
+ const se = he(j, A === C ? void 0 : A);
+ return D.pop(), se;
+ }, he = q ? (j, A) => {
+ if (j !== null && (typeof j == "object" || typeof j == "function" || typeof j == "symbol")) {
+ if (oe.has(j)) return te.set(D.slice(1), oe.get(j)), ie(void 0, I, fe, A);
+ oe.set(j, D.slice(1));
+ }
+ return ie(j, I, fe, A);
+ } : (j, A) => {
+ if (L.has(j)) return;
+ L.add(j);
+ const se = ie(j, I, fe, A);
+ return L.delete(j), se;
}, S = fe(h, C);
if (te.size) {
- const L = I ? " " : "", A = I ? `
+ const j = I ? " " : "", A = I ? `
` : "";
- let se = `var x${L}=${L}${S};${A}`;
+ let se = `var x${j}=${j}${S};${A}`;
for (const [J, Ee] of te.entries())
- se += `x${d.stringifyPath(J, fe)}${L}=${L}x${d.stringifyPath(Ee, fe)};${A}`;
- return `(function${L}()${L}{${A}${se}return x;${A}}())`;
+ se += `x${d.stringifyPath(J, fe)}${j}=${j}x${d.stringifyPath(Ee, fe)};${A}`;
+ return `(function${j}()${j}{${A}${se}return x;${A}}())`;
}
return S;
};
@@ -7196,105 +7226,105 @@ ${P}`).join(`
var _ = (function(ee) {
if (ee && ee.__esModule) return ee;
if (ee === null || te(ee) !== "object" && typeof ee != "function") return { default: ee };
- var V = ae();
- if (V && V.has(ee)) return V.get(ee);
+ var U = oe();
+ if (U && U.has(ee)) return U.get(ee);
var Z = {}, le = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var ge in ee) if (Object.prototype.hasOwnProperty.call(ee, ge)) {
var ke = le ? Object.getOwnPropertyDescriptor(ee, ge) : null;
ke && (ke.get || ke.set) ? Object.defineProperty(Z, ge, ke) : Z[ge] = ee[ge];
}
- return Z.default = ee, V && V.set(ee, Z), Z;
- })(f(6540)), d = j(f(5556)), C = j(f(961)), h = j(f(6942)), b = f(1089), w = f(1726), N = f(7056), I = j(f(6888)), P = j(f(8696));
- function j(ee) {
+ return Z.default = ee, U && U.set(ee, Z), Z;
+ })(f(6540)), d = L(f(5556)), C = L(f(961)), h = L(f(6942)), k = f(1089), w = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696));
+ function L(ee) {
return ee && ee.__esModule ? ee : { default: ee };
}
- function ae() {
+ function oe() {
if (typeof WeakMap != "function") return null;
var ee = /* @__PURE__ */ new WeakMap();
- return ae = function() {
+ return oe = function() {
return ee;
}, ee;
}
function te(ee) {
- return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(V) {
- return typeof V;
- } : function(V) {
- return V && typeof Symbol == "function" && V.constructor === Symbol && V !== Symbol.prototype ? "symbol" : typeof V;
+ return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(U) {
+ return typeof U;
+ } : function(U) {
+ return U && typeof Symbol == "function" && U.constructor === Symbol && U !== Symbol.prototype ? "symbol" : typeof U;
}, te(ee);
}
function R() {
return R = Object.assign || function(ee) {
- for (var V = 1; V < arguments.length; V++) {
- var Z = arguments[V];
+ for (var U = 1; U < arguments.length; U++) {
+ var Z = arguments[U];
for (var le in Z) Object.prototype.hasOwnProperty.call(Z, le) && (ee[le] = Z[le]);
}
return ee;
}, R.apply(this, arguments);
}
- function F(ee, V) {
+ function V(ee, U) {
if (ee == null) return {};
- var Z, le, ge = (function(Ne, Ve) {
+ var Z, le, ge = (function(Ne, Ue) {
if (Ne == null) return {};
var Ae, Le, Ke = {}, Je = Object.keys(Ne);
- for (Le = 0; Le < Je.length; Le++) Ae = Je[Le], Ve.indexOf(Ae) >= 0 || (Ke[Ae] = Ne[Ae]);
+ for (Le = 0; Le < Je.length; Le++) Ae = Je[Le], Ue.indexOf(Ae) >= 0 || (Ke[Ae] = Ne[Ae]);
return Ke;
- })(ee, V);
+ })(ee, U);
if (Object.getOwnPropertySymbols) {
var ke = Object.getOwnPropertySymbols(ee);
- for (le = 0; le < ke.length; le++) Z = ke[le], V.indexOf(Z) >= 0 || Object.prototype.propertyIsEnumerable.call(ee, Z) && (ge[Z] = ee[Z]);
+ for (le = 0; le < ke.length; le++) Z = ke[le], U.indexOf(Z) >= 0 || Object.prototype.propertyIsEnumerable.call(ee, Z) && (ge[Z] = ee[Z]);
}
return ge;
}
- function q(ee, V) {
+ function q(ee, U) {
return (function(Z) {
if (Array.isArray(Z)) return Z;
})(ee) || (function(Z, le) {
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(Z)))) {
- var ge = [], ke = !0, Ne = !1, Ve = void 0;
+ var ge = [], ke = !0, Ne = !1, Ue = void 0;
try {
for (var Ae, Le = Z[Symbol.iterator](); !(ke = (Ae = Le.next()).done) && (ge.push(Ae.value), !le || ge.length !== le); ke = !0) ;
} catch (Ke) {
- Ne = !0, Ve = Ke;
+ Ne = !0, Ue = Ke;
} finally {
try {
ke || Le.return == null || Le.return();
} finally {
- if (Ne) throw Ve;
+ if (Ne) throw Ue;
}
}
return ge;
}
- })(ee, V) || (function(Z, le) {
+ })(ee, U) || (function(Z, le) {
if (Z) {
if (typeof Z == "string") return G(Z, le);
var ge = Object.prototype.toString.call(Z).slice(8, -1);
if (ge === "Object" && Z.constructor && (ge = Z.constructor.name), ge === "Map" || ge === "Set") return Array.from(Z);
if (ge === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ge)) return G(Z, le);
}
- })(ee, V) || (function() {
+ })(ee, U) || (function() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
})();
}
- function G(ee, V) {
- (V == null || V > ee.length) && (V = ee.length);
- for (var Z = 0, le = new Array(V); Z < V; Z++) le[Z] = ee[Z];
+ function G(ee, U) {
+ (U == null || U > ee.length) && (U = ee.length);
+ for (var Z = 0, le = new Array(U); Z < U; Z++) le[Z] = ee[Z];
return le;
}
- function pe(ee, V) {
+ function pe(ee, U) {
var Z = Object.keys(ee);
if (Object.getOwnPropertySymbols) {
var le = Object.getOwnPropertySymbols(ee);
- V && (le = le.filter(function(ge) {
+ U && (le = le.filter(function(ge) {
return Object.getOwnPropertyDescriptor(ee, ge).enumerable;
})), Z.push.apply(Z, le);
}
return Z;
}
- function oe(ee) {
- for (var V = 1; V < arguments.length; V++) {
- var Z = arguments[V] != null ? arguments[V] : {};
- V % 2 ? pe(Object(Z), !0).forEach(function(le) {
+ function ie(ee) {
+ for (var U = 1; U < arguments.length; U++) {
+ var Z = arguments[U] != null ? arguments[U] : {};
+ U % 2 ? pe(Object(Z), !0).forEach(function(le) {
J(ee, le, Z[le]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(ee, Object.getOwnPropertyDescriptors(Z)) : pe(Object(Z)).forEach(function(le) {
Object.defineProperty(ee, le, Object.getOwnPropertyDescriptor(Z, le));
@@ -7302,22 +7332,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}
return ee;
}
- function fe(ee, V) {
- for (var Z = 0; Z < V.length; Z++) {
- var le = V[Z];
+ function fe(ee, U) {
+ for (var Z = 0; Z < U.length; Z++) {
+ var le = U[Z];
le.enumerable = le.enumerable || !1, le.configurable = !0, "value" in le && (le.writable = !0), Object.defineProperty(ee, le.key, le);
}
}
- function he(ee, V, Z) {
- return V && fe(ee.prototype, V), Z && fe(ee, Z), ee;
+ function he(ee, U, Z) {
+ return U && fe(ee.prototype, U), Z && fe(ee, Z), ee;
}
- function S(ee, V) {
+ function S(ee, U) {
return S = Object.setPrototypeOf || function(Z, le) {
return Z.__proto__ = le, Z;
- }, S(ee, V);
+ }, S(ee, U);
}
- function L(ee) {
- var V = (function() {
+ function j(ee) {
+ var U = (function() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
if (typeof Proxy == "function") return !0;
try {
@@ -7329,7 +7359,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
})();
return function() {
var Z, le = se(ee);
- if (V) {
+ if (U) {
var ge = se(this).constructor;
Z = Reflect.construct(le, arguments, ge);
} else Z = le.apply(this, arguments);
@@ -7343,52 +7373,52 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
return ee;
}
function se(ee) {
- return se = Object.setPrototypeOf ? Object.getPrototypeOf : function(V) {
- return V.__proto__ || Object.getPrototypeOf(V);
+ return se = Object.setPrototypeOf ? Object.getPrototypeOf : function(U) {
+ return U.__proto__ || Object.getPrototypeOf(U);
}, se(ee);
}
- function J(ee, V, Z) {
- return V in ee ? Object.defineProperty(ee, V, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : ee[V] = Z, ee;
+ function J(ee, U, Z) {
+ return U in ee ? Object.defineProperty(ee, U, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : ee[U] = Z, ee;
}
var Ee = (function(ee) {
(function(le, ge) {
if (typeof ge != "function" && ge !== null) throw new TypeError("Super expression must either be null or a function");
le.prototype = Object.create(ge && ge.prototype, { constructor: { value: le, writable: !0, configurable: !0 } }), ge && S(le, ge);
})(Z, ee);
- var V = L(Z);
+ var U = j(Z);
function Z(le) {
var ge;
return (function(ke, Ne) {
if (!(ke instanceof Ne)) throw new TypeError("Cannot call a class as a function");
- })(this, Z), J(A(ge = V.call(this, le)), "onDragStart", function(ke, Ne) {
- if ((0, P.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1;
+ })(this, Z), J(A(ge = U.call(this, le)), "onDragStart", function(ke, Ne) {
+ if ((0, D.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1;
ge.setState({ dragging: !0, dragged: !0 });
}), J(A(ge), "onDrag", function(ke, Ne) {
if (!ge.state.dragging) return !1;
- (0, P.default)("Draggable: onDrag: %j", Ne);
- var Ve = (0, w.createDraggableData)(A(ge), Ne), Ae = { x: Ve.x, y: Ve.y };
+ (0, D.default)("Draggable: onDrag: %j", Ne);
+ var Ue = (0, w.createDraggableData)(A(ge), Ne), Ae = { x: Ue.x, y: Ue.y };
if (ge.props.bounds) {
var Le = Ae.x, Ke = Ae.y;
Ae.x += ge.state.slackX, Ae.y += ge.state.slackY;
- var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], D = Je[1];
- Ae.x = ye, Ae.y = D, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ve.x = Ae.x, Ve.y = Ae.y, Ve.deltaX = Ae.x - ge.state.x, Ve.deltaY = Ae.y - ge.state.y;
+ var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], P = Je[1];
+ Ae.x = ye, Ae.y = P, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ue.x = Ae.x, Ue.y = Ae.y, Ue.deltaX = Ae.x - ge.state.x, Ue.deltaY = Ae.y - ge.state.y;
}
- if (ge.props.onDrag(ke, Ve) === !1) return !1;
+ if (ge.props.onDrag(ke, Ue) === !1) return !1;
ge.setState(Ae);
}), J(A(ge), "onDragStop", function(ke, Ne) {
if (!ge.state.dragging || ge.props.onStop(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1;
- (0, P.default)("Draggable: onDragStop: %j", Ne);
- var Ve = { dragging: !1, slackX: 0, slackY: 0 };
+ (0, D.default)("Draggable: onDragStop: %j", Ne);
+ var Ue = { dragging: !1, slackX: 0, slackY: 0 };
if (ge.props.position) {
var Ae = ge.props.position, Le = Ae.x, Ke = Ae.y;
- Ve.x = Le, Ve.y = Ke;
+ Ue.x = Le, Ue.y = Ke;
}
- ge.setState(Ve);
- }), ge.state = { dragging: !1, dragged: !1, x: le.position ? le.position.x : le.defaultPosition.x, y: le.position ? le.position.y : le.defaultPosition.y, prevPropsPosition: oe({}, le.position), slackX: 0, slackY: 0, isElementSVG: !1 }, !le.position || le.onDrag || le.onStop || console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."), ge;
+ ge.setState(Ue);
+ }), ge.state = { dragging: !1, dragged: !1, x: le.position ? le.position.x : le.defaultPosition.x, y: le.position ? le.position.y : le.defaultPosition.y, prevPropsPosition: ie({}, le.position), slackX: 0, slackY: 0, isElementSVG: !1 }, !le.position || le.onDrag || le.onStop || console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."), ge;
}
return he(Z, null, [{ key: "getDerivedStateFromProps", value: function(le, ge) {
var ke = le.position, Ne = ge.prevPropsPosition;
- return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, P.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) });
+ return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, D.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: ie({}, ke) });
} }]), he(Z, [{ key: "componentDidMount", value: function() {
window.SVGElement !== void 0 && this.findDOMNode() instanceof window.SVGElement && this.setState({ isElementSVG: !0 });
} }, { key: "componentWillUnmount", value: function() {
@@ -7396,13 +7426,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
} }, { key: "findDOMNode", value: function() {
return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this);
} }, { key: "render", value: function() {
- var le, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ve = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, F(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), D = {}, ne = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y };
- this.state.isElementSVG ? ne = (0, b.createSVGTransform)(Pe, Je) : D = (0, b.createCSSTransform)(Pe, Je);
- var _e = (0, h.default)(ke.props.className || "", Ve, (J(le = {}, Ae, this.state.dragging), J(le, Le, this.state.dragged), le));
- return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), D), transform: ne }));
+ var le, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ue = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, V(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, ne = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y };
+ this.state.isElementSVG ? ne = (0, k.createSVGTransform)(Pe, Je) : P = (0, k.createCSSTransform)(Pe, Je);
+ var _e = (0, h.default)(ke.props.className || "", Ue, (J(le = {}, Ae, this.state.dragging), J(le, Le, this.state.dragged), le));
+ return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: ie(ie({}, ke.props.style), P), transform: ne }));
} }]), Z;
})(_.Component);
- u.default = Ee, J(Ee, "displayName", "Draggable"), J(Ee, "propTypes", oe(oe({}, I.default.propTypes), {}, { axis: d.default.oneOf(["both", "x", "y", "none"]), bounds: d.default.oneOfType([d.default.shape({ left: d.default.number, right: d.default.number, top: d.default.number, bottom: d.default.number }), d.default.string, d.default.oneOf([!1])]), defaultClassName: d.default.string, defaultClassNameDragging: d.default.string, defaultClassNameDragged: d.default.string, defaultPosition: d.default.shape({ x: d.default.number, y: d.default.number }), positionOffset: d.default.shape({ x: d.default.oneOfType([d.default.number, d.default.string]), y: d.default.oneOfType([d.default.number, d.default.string]) }), position: d.default.shape({ x: d.default.number, y: d.default.number }), className: N.dontSetMe, style: N.dontSetMe, transform: N.dontSetMe })), J(Ee, "defaultProps", oe(oe({}, I.default.defaultProps), {}, { axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, position: null, scale: 1 }));
+ u.default = Ee, J(Ee, "displayName", "Draggable"), J(Ee, "propTypes", ie(ie({}, I.default.propTypes), {}, { axis: d.default.oneOf(["both", "x", "y", "none"]), bounds: d.default.oneOfType([d.default.shape({ left: d.default.number, right: d.default.number, top: d.default.number, bottom: d.default.number }), d.default.string, d.default.oneOf([!1])]), defaultClassName: d.default.string, defaultClassNameDragging: d.default.string, defaultClassNameDragged: d.default.string, defaultPosition: d.default.shape({ x: d.default.number, y: d.default.number }), positionOffset: d.default.shape({ x: d.default.oneOfType([d.default.number, d.default.string]), y: d.default.oneOfType([d.default.number, d.default.string]) }), position: d.default.shape({ x: d.default.number, y: d.default.number }), className: N.dontSetMe, style: N.dontSetMe, transform: N.dontSetMe })), J(Ee, "defaultProps", ie(ie({}, I.default.defaultProps), {}, { axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, position: null, scale: 1 }));
}, 6314: (i) => {
i.exports = function(u) {
var f = [];
@@ -7414,8 +7444,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}, f.i = function(_, d, C) {
typeof _ == "string" && (_ = [[null, _, ""]]);
var h = {};
- if (C) for (var b = 0; b < this.length; b++) {
- var w = this[b][0];
+ if (C) for (var k = 0; k < this.length; k++) {
+ var w = this[k][0];
w != null && (h[w] = !0);
}
for (var N = 0; N < _.length; N++) {
@@ -7453,57 +7483,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
};
}, 6462: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() {
- b && (b.removeAttribute ? b.removeAttribute("aria-hidden") : b.length != null ? b.forEach(function(I) {
+ k && (k.removeAttribute ? k.removeAttribute("aria-hidden") : k.length != null ? k.forEach(function(I) {
return I.removeAttribute("aria-hidden");
- }) : document.querySelectorAll(b).forEach(function(I) {
+ }) : document.querySelectorAll(k).forEach(function(I) {
return I.removeAttribute("aria-hidden");
- })), b = null;
+ })), k = null;
}, u.log = function() {
}, u.assertNodeList = w, u.setElement = function(I) {
- var P = I;
- if (typeof P == "string" && h.canUseDOM) {
- var j = document.querySelectorAll(P);
- w(j, P), P = j;
+ var D = I;
+ if (typeof D == "string" && h.canUseDOM) {
+ var L = document.querySelectorAll(D);
+ w(L, D), D = L;
}
- return b = P || b;
+ return k = D || k;
}, u.validateElement = N, u.hide = function(I) {
- var P = !0, j = !1, ae = void 0;
+ var D = !0, L = !1, oe = void 0;
try {
- for (var te, R = N(I)[Symbol.iterator](); !(P = (te = R.next()).done); P = !0)
+ for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0)
te.value.setAttribute("aria-hidden", "true");
- } catch (F) {
- j = !0, ae = F;
+ } catch (V) {
+ L = !0, oe = V;
} finally {
try {
- !P && R.return && R.return();
+ !D && R.return && R.return();
} finally {
- if (j) throw ae;
+ if (L) throw oe;
}
}
}, u.show = function(I) {
- var P = !0, j = !1, ae = void 0;
+ var D = !0, L = !1, oe = void 0;
try {
- for (var te, R = N(I)[Symbol.iterator](); !(P = (te = R.next()).done); P = !0)
+ for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0)
te.value.removeAttribute("aria-hidden");
- } catch (F) {
- j = !0, ae = F;
+ } catch (V) {
+ L = !0, oe = V;
} finally {
try {
- !P && R.return && R.return();
+ !D && R.return && R.return();
} finally {
- if (j) throw ae;
+ if (L) throw oe;
}
}
}, u.documentNotReadyOrSSRTesting = function() {
- b = null;
+ k = null;
};
- var _, d = f(9771), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = f(834), b = null;
- function w(I, P) {
- if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + P + ".");
+ var _, d = f(9771), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = f(834), k = null;
+ function w(I, D) {
+ if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + D + ".");
}
function N(I) {
- var P = I || b;
- return P ? Array.isArray(P) || P instanceof HTMLCollection || P instanceof NodeList ? P : [P] : ((0, C.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
+ var D = I || k;
+ return D ? Array.isArray(D) || D instanceof HTMLCollection || D instanceof NodeList ? D : [D] : ((0, C.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
}
}, 6540: (i, u, f) => {
i.exports = f(5287);
@@ -7516,46 +7546,46 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
Object.defineProperty(u, "__esModule", { value: !0 }), u.default = void 0;
var _ = (function(A) {
if (A && A.__esModule) return A;
- if (A === null || j(A) !== "object" && typeof A != "function") return { default: A };
- var se = P();
+ if (A === null || L(A) !== "object" && typeof A != "function") return { default: A };
+ var se = D();
if (se && se.has(A)) return se.get(A);
var J = {}, Ee = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var ee in A) if (Object.prototype.hasOwnProperty.call(A, ee)) {
- var V = Ee ? Object.getOwnPropertyDescriptor(A, ee) : null;
- V && (V.get || V.set) ? Object.defineProperty(J, ee, V) : J[ee] = A[ee];
+ var U = Ee ? Object.getOwnPropertyDescriptor(A, ee) : null;
+ U && (U.get || U.set) ? Object.defineProperty(J, ee, U) : J[ee] = A[ee];
}
return J.default = A, se && se.set(A, J), J;
- })(f(6540)), d = I(f(5556)), C = I(f(961)), h = f(1089), b = f(1726), w = f(7056), N = I(f(8696));
+ })(f(6540)), d = I(f(5556)), C = I(f(961)), h = f(1089), k = f(1726), w = f(7056), N = I(f(8696));
function I(A) {
return A && A.__esModule ? A : { default: A };
}
- function P() {
+ function D() {
if (typeof WeakMap != "function") return null;
var A = /* @__PURE__ */ new WeakMap();
- return P = function() {
+ return D = function() {
return A;
}, A;
}
- function j(A) {
- return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(se) {
+ function L(A) {
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(se) {
return typeof se;
} : function(se) {
return se && typeof Symbol == "function" && se.constructor === Symbol && se !== Symbol.prototype ? "symbol" : typeof se;
- }, j(A);
+ }, L(A);
}
- function ae(A, se) {
+ function oe(A, se) {
return (function(J) {
if (Array.isArray(J)) return J;
})(A) || (function(J, Ee) {
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(J)))) {
- var ee = [], V = !0, Z = !1, le = void 0;
+ var ee = [], U = !0, Z = !1, le = void 0;
try {
- for (var ge, ke = J[Symbol.iterator](); !(V = (ge = ke.next()).done) && (ee.push(ge.value), !Ee || ee.length !== Ee); V = !0) ;
+ for (var ge, ke = J[Symbol.iterator](); !(U = (ge = ke.next()).done) && (ee.push(ge.value), !Ee || ee.length !== Ee); U = !0) ;
} catch (Ne) {
Z = !0, le = Ne;
} finally {
try {
- V || ke.return == null || ke.return();
+ U || ke.return == null || ke.return();
} finally {
if (Z) throw le;
}
@@ -7585,10 +7615,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
Ee.enumerable = Ee.enumerable || !1, Ee.configurable = !0, "value" in Ee && (Ee.writable = !0), Object.defineProperty(A, Ee.key, Ee);
}
}
- function F(A, se) {
- return F = Object.setPrototypeOf || function(J, Ee) {
+ function V(A, se) {
+ return V = Object.setPrototypeOf || function(J, Ee) {
return J.__proto__ = Ee, J;
- }, F(A, se);
+ }, V(A, se);
}
function q(A) {
var se = (function() {
@@ -7607,8 +7637,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
var ee = pe(this).constructor;
J = Reflect.construct(Ee, arguments, ee);
} else J = Ee.apply(this, arguments);
- return (function(V, Z) {
- return Z && (j(Z) === "object" || typeof Z == "function") ? Z : G(V);
+ return (function(U, Z) {
+ return Z && (L(Z) === "object" || typeof Z == "function") ? Z : G(U);
})(this, J);
};
}
@@ -7621,84 +7651,84 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
return se.__proto__ || Object.getPrototypeOf(se);
}, pe(A);
}
- function oe(A, se, J) {
+ function ie(A, se, J) {
return se in A ? Object.defineProperty(A, se, { value: J, enumerable: !0, configurable: !0, writable: !0 }) : A[se] = J, A;
}
- var fe = { start: "touchstart", move: "touchmove", stop: "touchend" }, he = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = he, L = (function(A) {
- (function(V, Z) {
+ var fe = { start: "touchstart", move: "touchmove", stop: "touchend" }, he = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = he, j = (function(A) {
+ (function(U, Z) {
if (typeof Z != "function" && Z !== null) throw new TypeError("Super expression must either be null or a function");
- V.prototype = Object.create(Z && Z.prototype, { constructor: { value: V, writable: !0, configurable: !0 } }), Z && F(V, Z);
+ U.prototype = Object.create(Z && Z.prototype, { constructor: { value: U, writable: !0, configurable: !0 } }), Z && V(U, Z);
})(ee, A);
var se, J, Ee = q(ee);
function ee() {
- var V;
+ var U;
(function(ke, Ne) {
if (!(ke instanceof Ne)) throw new TypeError("Cannot call a class as a function");
})(this, ee);
for (var Z = arguments.length, le = new Array(Z), ge = 0; ge < Z; ge++) le[ge] = arguments[ge];
- return oe(G(V = Ee.call.apply(Ee, [this].concat(le))), "state", { dragging: !1, lastX: NaN, lastY: NaN, touchIdentifier: null }), oe(G(V), "mounted", !1), oe(G(V), "handleDragStart", function(ke) {
- if (V.props.onMouseDown(ke), !V.props.allowAnyClick && typeof ke.button == "number" && ke.button !== 0) return !1;
- var Ne = V.findDOMNode();
+ return ie(G(U = Ee.call.apply(Ee, [this].concat(le))), "state", { dragging: !1, lastX: NaN, lastY: NaN, touchIdentifier: null }), ie(G(U), "mounted", !1), ie(G(U), "handleDragStart", function(ke) {
+ if (U.props.onMouseDown(ke), !U.props.allowAnyClick && typeof ke.button == "number" && ke.button !== 0) return !1;
+ var Ne = U.findDOMNode();
if (!Ne || !Ne.ownerDocument || !Ne.ownerDocument.body) throw new Error(" not mounted on DragStart!");
- var Ve = Ne.ownerDocument;
- if (!(V.props.disabled || !(ke.target instanceof Ve.defaultView.Node) || V.props.handle && !(0, h.matchesSelectorAndParentsTo)(ke.target, V.props.handle, Ne) || V.props.cancel && (0, h.matchesSelectorAndParentsTo)(ke.target, V.props.cancel, Ne))) {
+ var Ue = Ne.ownerDocument;
+ if (!(U.props.disabled || !(ke.target instanceof Ue.defaultView.Node) || U.props.handle && !(0, h.matchesSelectorAndParentsTo)(ke.target, U.props.handle, Ne) || U.props.cancel && (0, h.matchesSelectorAndParentsTo)(ke.target, U.props.cancel, Ne))) {
ke.type === "touchstart" && ke.preventDefault();
var Ae = (0, h.getTouchIdentifier)(ke);
- V.setState({ touchIdentifier: Ae });
- var Le = (0, b.getControlPosition)(ke, Ae, G(V));
+ U.setState({ touchIdentifier: Ae });
+ var Le = (0, k.getControlPosition)(ke, Ae, G(U));
if (Le != null) {
- var Ke = Le.x, Je = Le.y, ye = (0, b.createCoreData)(G(V), Ke, Je);
- (0, N.default)("DraggableCore: handleDragStart: %j", ye), (0, N.default)("calling", V.props.onStart), V.props.onStart(ke, ye) !== !1 && V.mounted !== !1 && (V.props.enableUserSelectHack && (0, h.addUserSelectStyles)(Ve), V.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, h.addEvent)(Ve, S.move, V.handleDrag), (0, h.addEvent)(Ve, S.stop, V.handleDragStop));
+ var Ke = Le.x, Je = Le.y, ye = (0, k.createCoreData)(G(U), Ke, Je);
+ (0, N.default)("DraggableCore: handleDragStart: %j", ye), (0, N.default)("calling", U.props.onStart), U.props.onStart(ke, ye) !== !1 && U.mounted !== !1 && (U.props.enableUserSelectHack && (0, h.addUserSelectStyles)(Ue), U.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, h.addEvent)(Ue, S.move, U.handleDrag), (0, h.addEvent)(Ue, S.stop, U.handleDragStop));
}
}
- }), oe(G(V), "handleDrag", function(ke) {
- var Ne = (0, b.getControlPosition)(ke, V.state.touchIdentifier, G(V));
+ }), ie(G(U), "handleDrag", function(ke) {
+ var Ne = (0, k.getControlPosition)(ke, U.state.touchIdentifier, G(U));
if (Ne != null) {
- var Ve = Ne.x, Ae = Ne.y;
- if (Array.isArray(V.props.grid)) {
- var Le = Ve - V.state.lastX, Ke = Ae - V.state.lastY, Je = ae((0, b.snapToGrid)(V.props.grid, Le, Ke), 2);
+ var Ue = Ne.x, Ae = Ne.y;
+ if (Array.isArray(U.props.grid)) {
+ var Le = Ue - U.state.lastX, Ke = Ae - U.state.lastY, Je = oe((0, k.snapToGrid)(U.props.grid, Le, Ke), 2);
if (Le = Je[0], Ke = Je[1], !Le && !Ke) return;
- Ve = V.state.lastX + Le, Ae = V.state.lastY + Ke;
+ Ue = U.state.lastX + Le, Ae = U.state.lastY + Ke;
}
- var ye = (0, b.createCoreData)(G(V), Ve, Ae);
- if ((0, N.default)("DraggableCore: handleDrag: %j", ye), V.props.onDrag(ke, ye) !== !1 && V.mounted !== !1) V.setState({ lastX: Ve, lastY: Ae });
+ var ye = (0, k.createCoreData)(G(U), Ue, Ae);
+ if ((0, N.default)("DraggableCore: handleDrag: %j", ye), U.props.onDrag(ke, ye) !== !1 && U.mounted !== !1) U.setState({ lastX: Ue, lastY: Ae });
else try {
- V.handleDragStop(new MouseEvent("mouseup"));
+ U.handleDragStop(new MouseEvent("mouseup"));
} catch {
- var D = document.createEvent("MouseEvents");
- D.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), V.handleDragStop(D);
+ var P = document.createEvent("MouseEvents");
+ P.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), U.handleDragStop(P);
}
}
- }), oe(G(V), "handleDragStop", function(ke) {
- if (V.state.dragging) {
- var Ne = (0, b.getControlPosition)(ke, V.state.touchIdentifier, G(V));
+ }), ie(G(U), "handleDragStop", function(ke) {
+ if (U.state.dragging) {
+ var Ne = (0, k.getControlPosition)(ke, U.state.touchIdentifier, G(U));
if (Ne != null) {
- var Ve = Ne.x, Ae = Ne.y, Le = (0, b.createCoreData)(G(V), Ve, Ae);
- if (V.props.onStop(ke, Le) === !1 || V.mounted === !1) return !1;
- var Ke = V.findDOMNode();
- Ke && V.props.enableUserSelectHack && (0, h.removeUserSelectStyles)(Ke.ownerDocument), (0, N.default)("DraggableCore: handleDragStop: %j", Le), V.setState({ dragging: !1, lastX: NaN, lastY: NaN }), Ke && ((0, N.default)("DraggableCore: Removing handlers"), (0, h.removeEvent)(Ke.ownerDocument, S.move, V.handleDrag), (0, h.removeEvent)(Ke.ownerDocument, S.stop, V.handleDragStop));
+ var Ue = Ne.x, Ae = Ne.y, Le = (0, k.createCoreData)(G(U), Ue, Ae);
+ if (U.props.onStop(ke, Le) === !1 || U.mounted === !1) return !1;
+ var Ke = U.findDOMNode();
+ Ke && U.props.enableUserSelectHack && (0, h.removeUserSelectStyles)(Ke.ownerDocument), (0, N.default)("DraggableCore: handleDragStop: %j", Le), U.setState({ dragging: !1, lastX: NaN, lastY: NaN }), Ke && ((0, N.default)("DraggableCore: Removing handlers"), (0, h.removeEvent)(Ke.ownerDocument, S.move, U.handleDrag), (0, h.removeEvent)(Ke.ownerDocument, S.stop, U.handleDragStop));
}
}
- }), oe(G(V), "onMouseDown", function(ke) {
- return S = he, V.handleDragStart(ke);
- }), oe(G(V), "onMouseUp", function(ke) {
- return S = he, V.handleDragStop(ke);
- }), oe(G(V), "onTouchStart", function(ke) {
- return S = fe, V.handleDragStart(ke);
- }), oe(G(V), "onTouchEnd", function(ke) {
- return S = fe, V.handleDragStop(ke);
- }), V;
+ }), ie(G(U), "onMouseDown", function(ke) {
+ return S = he, U.handleDragStart(ke);
+ }), ie(G(U), "onMouseUp", function(ke) {
+ return S = he, U.handleDragStop(ke);
+ }), ie(G(U), "onTouchStart", function(ke) {
+ return S = fe, U.handleDragStart(ke);
+ }), ie(G(U), "onTouchEnd", function(ke) {
+ return S = fe, U.handleDragStop(ke);
+ }), U;
}
return se = ee, (J = [{ key: "componentDidMount", value: function() {
this.mounted = !0;
- var V = this.findDOMNode();
- V && (0, h.addEvent)(V, fe.start, this.onTouchStart, { passive: !1 });
+ var U = this.findDOMNode();
+ U && (0, h.addEvent)(U, fe.start, this.onTouchStart, { passive: !1 });
} }, { key: "componentWillUnmount", value: function() {
this.mounted = !1;
- var V = this.findDOMNode();
- if (V) {
- var Z = V.ownerDocument;
- (0, h.removeEvent)(Z, he.move, this.handleDrag), (0, h.removeEvent)(Z, fe.move, this.handleDrag), (0, h.removeEvent)(Z, he.stop, this.handleDragStop), (0, h.removeEvent)(Z, fe.stop, this.handleDragStop), (0, h.removeEvent)(V, fe.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && (0, h.removeUserSelectStyles)(Z);
+ var U = this.findDOMNode();
+ if (U) {
+ var Z = U.ownerDocument;
+ (0, h.removeEvent)(Z, he.move, this.handleDrag), (0, h.removeEvent)(Z, fe.move, this.handleDrag), (0, h.removeEvent)(Z, he.stop, this.handleDragStop), (0, h.removeEvent)(Z, fe.stop, this.handleDragStop), (0, h.removeEvent)(U, fe.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && (0, h.removeUserSelectStyles)(Z);
}
} }, { key: "findDOMNode", value: function() {
return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this);
@@ -7706,9 +7736,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
return _.cloneElement(_.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd });
} }]) && R(se.prototype, J), ee;
})(_.Component);
- u.default = L, oe(L, "displayName", "DraggableCore"), oe(L, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, se) {
+ u.default = j, ie(j, "displayName", "DraggableCore"), ie(j, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, se) {
if (A[se] && A[se].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node.");
- }, grid: d.default.arrayOf(d.default.number), handle: d.default.string, cancel: d.default.string, nodeRef: d.default.object, onStart: d.default.func, onDrag: d.default.func, onStop: d.default.func, onMouseDown: d.default.func, scale: d.default.number, className: w.dontSetMe, style: w.dontSetMe, transform: w.dontSetMe }), oe(L, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() {
+ }, grid: d.default.arrayOf(d.default.number), handle: d.default.string, cancel: d.default.string, nodeRef: d.default.object, onStart: d.default.func, onDrag: d.default.func, onStop: d.default.func, onMouseDown: d.default.func, scale: d.default.number, className: w.dontSetMe, style: w.dontSetMe, transform: w.dontSetMe }), ie(j, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() {
}, onDrag: function() {
}, onStop: function() {
}, onMouseDown: function() {
@@ -7720,23 +7750,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
(function() {
var _ = {}.hasOwnProperty;
function d() {
- for (var b = "", w = 0; w < arguments.length; w++) {
+ for (var k = "", w = 0; w < arguments.length; w++) {
var N = arguments[w];
- N && (b = h(b, C(N)));
+ N && (k = h(k, C(N)));
}
- return b;
+ return k;
}
- function C(b) {
- if (typeof b == "string" || typeof b == "number") return b;
- if (typeof b != "object") return "";
- if (Array.isArray(b)) return d.apply(null, b);
- if (b.toString !== Object.prototype.toString && !b.toString.toString().includes("[native code]")) return b.toString();
+ function C(k) {
+ if (typeof k == "string" || typeof k == "number") return k;
+ if (typeof k != "object") return "";
+ if (Array.isArray(k)) return d.apply(null, k);
+ if (k.toString !== Object.prototype.toString && !k.toString.toString().includes("[native code]")) return k.toString();
var w = "";
- for (var N in b) _.call(b, N) && b[N] && (w = h(w, N));
+ for (var N in k) _.call(k, N) && k[N] && (w = h(w, N));
return w;
}
- function h(b, w) {
- return w ? b ? b + " " + w : b + w : b;
+ function h(k, w) {
+ return w ? k ? k + " " + w : k + w : k;
}
i.exports ? (d.default = d, i.exports = d) : (f = (function() {
return d;
@@ -7760,26 +7790,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
if (f[_]) return new Error("Invalid prop ".concat(_, " passed to ").concat(d, " - do not set this, set it on the child."));
};
}, 7067: (i, u, f) => {
- Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(b, w) {
- var N = (0, C.default)(b);
+ Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(k, w) {
+ var N = (0, C.default)(k);
if (!N.length) return void w.preventDefault();
- var I = void 0, P = w.shiftKey, j = N[0], ae = N[N.length - 1], te = h();
- if (b === te) {
- if (!P) return;
- I = ae;
+ var I = void 0, D = w.shiftKey, L = N[0], oe = N[N.length - 1], te = h();
+ if (k === te) {
+ if (!D) return;
+ I = oe;
}
- if (ae !== te || P || (I = j), j === te && P && (I = ae), I) return w.preventDefault(), void I.focus();
+ if (oe !== te || D || (I = L), L === te && D && (I = oe), I) return w.preventDefault(), void I.focus();
var R = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);
if (!(R == null || R[1] == "Chrome" || /\biPod\b|\biPad\b/g.exec(navigator.userAgent) != null)) {
- var F = N.indexOf(te);
- if (F > -1 && (F += P ? -1 : 1), (I = N[F]) === void 0) return w.preventDefault(), void (I = P ? ae : j).focus();
+ var V = N.indexOf(te);
+ if (V > -1 && (V += D ? -1 : 1), (I = N[V]) === void 0) return w.preventDefault(), void (I = D ? oe : L).focus();
w.preventDefault(), I.focus();
}
};
var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ };
function h() {
- var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
- return b.activeElement.shadowRoot ? h(b.activeElement.shadowRoot) : b.activeElement;
+ var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
+ return k.activeElement.shadowRoot ? h(k.activeElement.shadowRoot) : k.activeElement;
}
i.exports = u.default;
}, 7195: (i, u, f) => {
@@ -7799,20 +7829,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}, 7463: (i, u) => {
var f, _, d, C, h;
if (typeof window > "u" || typeof MessageChannel != "function") {
- var b = null, w = null, N = function() {
- if (b !== null) try {
+ var k = null, w = null, N = function() {
+ if (k !== null) try {
var ye = u.unstable_now();
- b(!0, ye), b = null;
- } catch (D) {
- throw setTimeout(N, 0), D;
+ k(!0, ye), k = null;
+ } catch (P) {
+ throw setTimeout(N, 0), P;
}
}, I = Date.now();
u.unstable_now = function() {
return Date.now() - I;
}, f = function(ye) {
- b !== null ? setTimeout(f, 0, ye) : (b = ye, setTimeout(N, 0));
- }, _ = function(ye, D) {
- w = setTimeout(ye, D);
+ k !== null ? setTimeout(f, 0, ye) : (k = ye, setTimeout(N, 0));
+ }, _ = function(ye, P) {
+ w = setTimeout(ye, P);
}, d = function() {
clearTimeout(w);
}, C = function() {
@@ -7820,65 +7850,65 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}, h = u.unstable_forceFrameRate = function() {
};
} else {
- var P = window.performance, j = window.Date, ae = window.setTimeout, te = window.clearTimeout;
+ var D = window.performance, L = window.Date, oe = window.setTimeout, te = window.clearTimeout;
if (typeof console < "u") {
var R = window.cancelAnimationFrame;
typeof window.requestAnimationFrame != "function" && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), typeof R != "function" && console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills");
}
- if (typeof P == "object" && typeof P.now == "function") u.unstable_now = function() {
- return P.now();
+ if (typeof D == "object" && typeof D.now == "function") u.unstable_now = function() {
+ return D.now();
};
else {
- var F = j.now();
+ var V = L.now();
u.unstable_now = function() {
- return j.now() - F;
+ return L.now() - V;
};
}
- var q = !1, G = null, pe = -1, oe = 5, fe = 0;
+ var q = !1, G = null, pe = -1, ie = 5, fe = 0;
C = function() {
return u.unstable_now() >= fe;
}, h = function() {
}, u.unstable_forceFrameRate = function(ye) {
- 0 > ye || 125 < ye ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported") : oe = 0 < ye ? Math.floor(1e3 / ye) : 5;
+ 0 > ye || 125 < ye ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported") : ie = 0 < ye ? Math.floor(1e3 / ye) : 5;
};
var he = new MessageChannel(), S = he.port2;
he.port1.onmessage = function() {
if (G !== null) {
var ye = u.unstable_now();
- fe = ye + oe;
+ fe = ye + ie;
try {
G(!0, ye) ? S.postMessage(null) : (q = !1, G = null);
- } catch (D) {
- throw S.postMessage(null), D;
+ } catch (P) {
+ throw S.postMessage(null), P;
}
} else q = !1;
}, f = function(ye) {
G = ye, q || (q = !0, S.postMessage(null));
- }, _ = function(ye, D) {
- pe = ae(function() {
+ }, _ = function(ye, P) {
+ pe = oe(function() {
ye(u.unstable_now());
- }, D);
+ }, P);
}, d = function() {
te(pe), pe = -1;
};
}
- function L(ye, D) {
+ function j(ye, P) {
var ne = ye.length;
- ye.push(D);
+ ye.push(P);
e: for (; ; ) {
var we = ne - 1 >>> 1, Ce = ye[we];
- if (!(Ce !== void 0 && 0 < J(Ce, D))) break e;
- ye[we] = D, ye[ne] = Ce, ne = we;
+ if (!(Ce !== void 0 && 0 < J(Ce, P))) break e;
+ ye[we] = P, ye[ne] = Ce, ne = we;
}
}
function A(ye) {
return (ye = ye[0]) === void 0 ? null : ye;
}
function se(ye) {
- var D = ye[0];
- if (D !== void 0) {
+ var P = ye[0];
+ if (P !== void 0) {
var ne = ye.pop();
- if (ne !== D) {
+ if (ne !== P) {
ye[0] = ne;
e: for (var we = 0, Ce = ye.length; we < Ce; ) {
var Pe = 2 * (we + 1) - 1, _e = ye[Pe], lt = Pe + 1, Qe = ye[lt];
@@ -7889,49 +7919,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}
}
}
- return D;
+ return P;
}
return null;
}
- function J(ye, D) {
- var ne = ye.sortIndex - D.sortIndex;
- return ne !== 0 ? ne : ye.id - D.id;
+ function J(ye, P) {
+ var ne = ye.sortIndex - P.sortIndex;
+ return ne !== 0 ? ne : ye.id - P.id;
}
- var Ee = [], ee = [], V = 1, Z = null, le = 3, ge = !1, ke = !1, Ne = !1;
- function Ve(ye) {
- for (var D = A(ee); D !== null; ) {
- if (D.callback === null) se(ee);
+ var Ee = [], ee = [], U = 1, Z = null, le = 3, ge = !1, ke = !1, Ne = !1;
+ function Ue(ye) {
+ for (var P = A(ee); P !== null; ) {
+ if (P.callback === null) se(ee);
else {
- if (!(D.startTime <= ye)) break;
- se(ee), D.sortIndex = D.expirationTime, L(Ee, D);
+ if (!(P.startTime <= ye)) break;
+ se(ee), P.sortIndex = P.expirationTime, j(Ee, P);
}
- D = A(ee);
+ P = A(ee);
}
}
function Ae(ye) {
- if (Ne = !1, Ve(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le);
+ if (Ne = !1, Ue(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le);
else {
- var D = A(ee);
- D !== null && _(Ae, D.startTime - ye);
+ var P = A(ee);
+ P !== null && _(Ae, P.startTime - ye);
}
}
- function Le(ye, D) {
+ function Le(ye, P) {
ke = !1, Ne && (Ne = !1, d()), ge = !0;
var ne = le;
try {
- for (Ve(D), Z = A(Ee); Z !== null && (!(Z.expirationTime > D) || ye && !C()); ) {
+ for (Ue(P), Z = A(Ee); Z !== null && (!(Z.expirationTime > P) || ye && !C()); ) {
var we = Z.callback;
if (we !== null) {
Z.callback = null, le = Z.priorityLevel;
- var Ce = we(Z.expirationTime <= D);
- D = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && se(Ee), Ve(D);
+ var Ce = we(Z.expirationTime <= P);
+ P = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && se(Ee), Ue(P);
} else se(Ee);
Z = A(Ee);
}
if (Z !== null) var Pe = !0;
else {
var _e = A(ee);
- _e !== null && _(Ae, _e.startTime - D), Pe = !1;
+ _e !== null && _(Ae, _e.startTime - P), Pe = !1;
}
return Pe;
} finally {
@@ -7966,20 +7996,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
case 1:
case 2:
case 3:
- var D = 3;
+ var P = 3;
break;
default:
- D = le;
+ P = le;
}
var ne = le;
- le = D;
+ le = P;
try {
return ye();
} finally {
le = ne;
}
}, u.unstable_pauseExecution = function() {
- }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, D) {
+ }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, P) {
switch (ye) {
case 1:
case 2:
@@ -7993,27 +8023,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
var ne = le;
le = ye;
try {
- return D();
+ return P();
} finally {
le = ne;
}
- }, u.unstable_scheduleCallback = function(ye, D, ne) {
+ }, u.unstable_scheduleCallback = function(ye, P, ne) {
var we = u.unstable_now();
if (typeof ne == "object" && ne !== null) {
var Ce = ne.delay;
Ce = typeof Ce == "number" && 0 < Ce ? we + Ce : we, ne = typeof ne.timeout == "number" ? ne.timeout : Ke(ye);
} else ne = Ke(ye), Ce = we;
- return ye = { id: V++, callback: D, priorityLevel: ye, startTime: Ce, expirationTime: ne = Ce + ne, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, L(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = ne, L(Ee, ye), ke || ge || (ke = !0, f(Le))), ye;
+ return ye = { id: U++, callback: P, priorityLevel: ye, startTime: Ce, expirationTime: ne = Ce + ne, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, j(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = ne, j(Ee, ye), ke || ge || (ke = !0, f(Le))), ye;
}, u.unstable_shouldYield = function() {
var ye = u.unstable_now();
- Ve(ye);
- var D = A(Ee);
- return D !== Z && Z !== null && D !== null && D.callback !== null && D.startTime <= ye && D.expirationTime < Z.expirationTime || C();
+ Ue(ye);
+ var P = A(Ee);
+ return P !== Z && Z !== null && P !== null && P.callback !== null && P.startTime <= ye && P.expirationTime < Z.expirationTime || C();
}, u.unstable_wrapCallback = function(ye) {
- var D = le;
+ var P = le;
return function() {
var ne = le;
- le = D;
+ le = P;
try {
return ye.apply(this, arguments);
} finally {
@@ -8023,25 +8053,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
};
}, 7727: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() {
- for (var I = [h, b], P = 0; P < I.length; P++) {
- var j = I[P];
- j && j.parentNode && j.parentNode.removeChild(j);
+ for (var I = [h, k], D = 0; D < I.length; D++) {
+ var L = I[D];
+ L && L.parentNode && L.parentNode.removeChild(L);
}
- h = b = null, w = [];
+ h = k = null, w = [];
}, u.log = function() {
console.log("bodyTrap ----------"), console.log(w.length);
- for (var I = [h, b], P = 0; P < I.length; P++) {
- var j = I[P] || {};
- console.log(j.nodeName, j.className, j.id);
+ for (var I = [h, k], D = 0; D < I.length; D++) {
+ var L = I[D] || {};
+ console.log(L.nodeName, L.className, L.id);
}
console.log("edn bodyTrap ----------");
};
- var _, d = f(9628), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = void 0, b = void 0, w = [];
+ var _, d = f(9628), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = void 0, k = void 0, w = [];
function N() {
w.length !== 0 && w[w.length - 1].focusContent();
}
- C.default.subscribe(function(I, P) {
- h || b || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (b = h.cloneNode()).addEventListener("focus", N)), (w = P).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (h.parentElement && h.parentElement.removeChild(h), b.parentElement && b.parentElement.removeChild(b));
+ C.default.subscribe(function(I, D) {
+ h || k || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (k = h.cloneNode()).addEventListener("focus", N)), (w = D).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== k && document.body.appendChild(k)) : (h.parentElement && h.parentElement.removeChild(h), k.parentElement && k.parentElement.removeChild(k));
});
}, 7785: (i, u, f) => {
var _ = f(5072), d = f(2444);
@@ -8055,87 +8085,87 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
}, u.handleBlur = N, u.handleFocus = I, u.markForFocusLater = function() {
h.push(document.activeElement);
}, u.returnFocus = function() {
- var P = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], j = null;
+ var D = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], L = null;
try {
- return void (h.length !== 0 && (j = h.pop()).focus({ preventScroll: P }));
+ return void (h.length !== 0 && (L = h.pop()).focus({ preventScroll: D }));
} catch {
- console.warn(["You tried to return focus to", j, "but it is not in the DOM anymore"].join(" "));
+ console.warn(["You tried to return focus to", L, "but it is not in the DOM anymore"].join(" "));
}
}, u.popWithoutFocus = function() {
h.length > 0 && h.pop();
- }, u.setupScopedFocus = function(P) {
- b = P, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I));
+ }, u.setupScopedFocus = function(D) {
+ k = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I));
}, u.teardownScopedFocus = function() {
- b = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I));
+ k = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I));
};
- var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = [], b = null, w = !1;
+ var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = [], k = null, w = !1;
function N() {
w = !0;
}
function I() {
if (w) {
- if (w = !1, !b) return;
+ if (w = !1, !k) return;
setTimeout(function() {
- b.contains(document.activeElement) || ((0, C.default)(b)[0] || b).focus();
+ k.contains(document.activeElement) || ((0, C.default)(k)[0] || k).focus();
}, 0);
}
}
}, 7860: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.objectToString = void 0;
const _ = f(1099), d = f(5180), C = f(8814);
- u.objectToString = (w, N, I, P) => {
+ u.objectToString = (w, N, I, D) => {
if (typeof Buffer == "function" && Buffer.isBuffer(w)) return `Buffer.from(${I(w.toString("base64"))}, 'base64')`;
if (typeof f.g == "object" && w === f.g) return h(w, N, I);
- const j = b[Object.prototype.toString.call(w)];
- return j ? j(w, N, I, P) : void 0;
+ const L = k[Object.prototype.toString.call(w)];
+ return L ? L(w, N, I, D) : void 0;
};
- const h = (w, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, P) => {
- const j = N ? `
-` : "", ae = N ? " " : "", te = Object.keys(w).reduce(function(R, F) {
- const q = w[F], G = I(q, F);
+ const h = (w, N, I) => `Function(${I("return this")})()`, k = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, D) => {
+ const L = N ? `
+` : "", oe = N ? " " : "", te = Object.keys(w).reduce(function(R, V) {
+ const q = w[V], G = I(q, V);
if (G === void 0) return R;
const pe = G.split(`
`).join(`
${N}`);
- return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${_.quoteKey(F, I)}:${ae}${pe}`), R);
- }, []).join(`,${j}`);
- return te === "" ? "{}" : `{${j}${te}${j}}`;
+ return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${_.quoteKey(V, I)}:${oe}${pe}`), R);
+ }, []).join(`,${L}`);
+ return te === "" ? "{}" : `{${L}${te}${L}}`;
}, "[object Error]": (w, N, I) => `new Error(${I(w.message)})`, "[object Date]": (w) => `new Date(${w.getTime()})`, "[object String]": (w, N, I) => `new String(${I(w.toString())})`, "[object Number]": (w) => `new Number(${w})`, "[object Boolean]": (w) => `new Boolean(${w})`, "[object Set]": (w, N, I) => `new Set(${I(Array.from(w))})`, "[object Map]": (w, N, I) => `new Map(${I(Array.from(w))})`, "[object RegExp]": String, "[object global]": h, "[object Window]": h };
}, 7965: (i, u, f) => {
var _ = f(6426), d = { "text/plain": "Text", "text/html": "Url", default: "Text" };
i.exports = function(C, h) {
- var b, w, N, I, P, j, ae = !1;
- h || (h = {}), b = h.debug || !1;
+ var k, w, N, I, D, L, oe = !1;
+ h || (h = {}), k = h.debug || !1;
try {
- if (N = _(), I = document.createRange(), P = document.getSelection(), (j = document.createElement("span")).textContent = C, j.ariaHidden = "true", j.style.all = "unset", j.style.position = "fixed", j.style.top = 0, j.style.clip = "rect(0, 0, 0, 0)", j.style.whiteSpace = "pre", j.style.webkitUserSelect = "text", j.style.MozUserSelect = "text", j.style.msUserSelect = "text", j.style.userSelect = "text", j.addEventListener("copy", function(te) {
+ if (N = _(), I = document.createRange(), D = document.getSelection(), (L = document.createElement("span")).textContent = C, L.ariaHidden = "true", L.style.all = "unset", L.style.position = "fixed", L.style.top = 0, L.style.clip = "rect(0, 0, 0, 0)", L.style.whiteSpace = "pre", L.style.webkitUserSelect = "text", L.style.MozUserSelect = "text", L.style.msUserSelect = "text", L.style.userSelect = "text", L.addEventListener("copy", function(te) {
if (te.stopPropagation(), h.format) if (te.preventDefault(), te.clipboardData === void 0) {
- b && console.warn("unable to use e.clipboardData"), b && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
+ k && console.warn("unable to use e.clipboardData"), k && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
var R = d[h.format] || d.default;
window.clipboardData.setData(R, C);
} else te.clipboardData.clearData(), te.clipboardData.setData(h.format, C);
h.onCopy && (te.preventDefault(), h.onCopy(te.clipboardData));
- }), document.body.appendChild(j), I.selectNodeContents(j), P.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful");
- ae = !0;
+ }), document.body.appendChild(L), I.selectNodeContents(L), D.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful");
+ oe = !0;
} catch (te) {
- b && console.error("unable to copy using execCommand: ", te), b && console.warn("trying IE specific stuff");
+ k && console.error("unable to copy using execCommand: ", te), k && console.warn("trying IE specific stuff");
try {
- window.clipboardData.setData(h.format || "text", C), h.onCopy && h.onCopy(window.clipboardData), ae = !0;
+ window.clipboardData.setData(h.format || "text", C), h.onCopy && h.onCopy(window.clipboardData), oe = !0;
} catch (R) {
- b && console.error("unable to copy using clipboardData: ", R), b && console.error("falling back to prompt"), w = (function(F) {
+ k && console.error("unable to copy using clipboardData: ", R), k && console.error("falling back to prompt"), w = (function(V) {
var q = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
- return F.replace(/#{\s*key\s*}/g, q);
+ return V.replace(/#{\s*key\s*}/g, q);
})("message" in h ? h.message : "Copy to clipboard: #{key}, Enter"), window.prompt(w, C);
}
} finally {
- P && (typeof P.removeRange == "function" ? P.removeRange(I) : P.removeAllRanges()), j && document.body.removeChild(j), N();
+ D && (typeof D.removeRange == "function" ? D.removeRange(I) : D.removeAllRanges()), L && document.body.removeChild(L), N();
}
- return ae;
+ return oe;
};
}, 8142: (i, u, f) => {
i = f.nmd(i);
- var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", b = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", P = "[object Map]", j = "[object Number]", ae = "[object Object]", te = "[object Promise]", R = "[object RegExp]", F = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, L = {};
- L["[object Float32Array]"] = L["[object Float64Array]"] = L["[object Int8Array]"] = L["[object Int16Array]"] = L["[object Int32Array]"] = L["[object Uint8Array]"] = L["[object Uint8ClampedArray]"] = L["[object Uint16Array]"] = L["[object Uint32Array]"] = !0, L[C] = L[h] = L[oe] = L[b] = L[fe] = L[w] = L[N] = L[I] = L[P] = L[j] = L[ae] = L[R] = L[F] = L[q] = L[pe] = !1;
- var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, se = typeof self == "object" && self && self.Object === Object && self, J = A || se || Function("return this")(), Ee = u && !u.nodeType && u, ee = Ee && i && !i.nodeType && i, V = ee && ee.exports === Ee, Z = V && A.process, le = (function() {
+ var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", k = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", oe = "[object Object]", te = "[object Promise]", R = "[object RegExp]", V = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", ie = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, j = {};
+ j["[object Float32Array]"] = j["[object Float64Array]"] = j["[object Int8Array]"] = j["[object Int16Array]"] = j["[object Int32Array]"] = j["[object Uint8Array]"] = j["[object Uint8ClampedArray]"] = j["[object Uint16Array]"] = j["[object Uint32Array]"] = !0, j[C] = j[h] = j[ie] = j[k] = j[fe] = j[w] = j[N] = j[I] = j[D] = j[L] = j[oe] = j[R] = j[V] = j[q] = j[pe] = !1;
+ var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, se = typeof self == "object" && self && self.Object === Object && self, J = A || se || Function("return this")(), Ee = u && !u.nodeType && u, ee = Ee && i && !i.nodeType && i, U = ee && ee.exports === Ee, Z = U && A.process, le = (function() {
try {
return Z && Z.binding && Z.binding("util");
} catch {
@@ -8151,13 +8181,13 @@ ${N}`);
be[++Y] = [tt, De];
}), be;
}
- function Ve(M) {
+ function Ue(M) {
var Y = -1, be = Array(M.size);
return M.forEach(function(De) {
be[++Y] = De;
}), be;
}
- var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, D = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Ce = D.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = D.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = V ? J.Buffer : void 0, et = J.Symbol, Pt = J.Uint8Array, ko = D.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) {
+ var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, P = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Ce = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = U ? J.Buffer : void 0, et = J.Symbol, Pt = J.Uint8Array, ko = P.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) {
return Le(Ke(M));
}), Bn = In(J, "DataView"), Hn = In(J, "Map"), an = In(J, "Promise"), pn = In(J, "Set"), sr = In(J, "WeakMap"), $t = In(Object, "create"), Wr = mn(Bn), qr = mn(Hn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0;
function zt(M) {
@@ -8220,7 +8250,7 @@ ${N}`);
}
function Qr(M, Y, be, De, tt) {
return M === Y || (M == null || Y == null || !Rn(M) && !Rn(Y) ? M != M && Y != Y : (function($e, Ge, rt, At, ft, ht) {
- var kt = ct($e), jt = ct(Ge), yt = kt ? h : hn($e), bt = jt ? h : hn(Ge), yn = (yt = yt == C ? ae : yt) == ae, ur = (bt = bt == C ? ae : bt) == ae, Mn = yt == bt;
+ var kt = ct($e), jt = ct(Ge), yt = kt ? h : hn($e), bt = jt ? h : hn(Ge), yn = (yt = yt == C ? oe : yt) == oe, ur = (bt = bt == C ? oe : bt) == oe, Mn = yt == bt;
if (Mn && Dr($e)) {
if (!Dr(Ge)) return !1;
kt = !0, yn = !1;
@@ -8230,22 +8260,22 @@ ${N}`);
case fe:
if (nt.byteLength != Ze.byteLength || nt.byteOffset != Ze.byteOffset) return !1;
nt = nt.buffer, Ze = Ze.buffer;
- case oe:
+ case ie:
return !(nt.byteLength != Ze.byteLength || !ut(new Pt(nt), new Pt(Ze)));
- case b:
+ case k:
case w:
- case j:
+ case L:
return Yr(+nt, +Ze);
case N:
return nt.name == Ze.name && nt.message == Ze.message;
case R:
case q:
return nt == Ze + "";
- case P:
+ case D:
var Tt = Ne;
- case F:
+ case V:
var Lt = 1 & vn;
- if (Tt || (Tt = Ve), nt.size != Ze.size && !Lt) return !1;
+ if (Tt || (Tt = Ue), nt.size != Ze.size && !Lt) return !1;
var kn = wt.get(nt);
if (kn) return kn == Ze;
vn |= 2, wt.set(nt, Ze);
@@ -8297,7 +8327,7 @@ ${N}`);
})(M)) && (Kn(M) ? lt : he).test(mn(M));
}
function Nr(M) {
- if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || D, Y !== De) return wo(M);
+ if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || P, Y !== De) return wo(M);
var Y, be, De, tt = [];
for (var $e in Object(M)) Ce.call(M, $e) && $e != "constructor" && tt.push($e);
return tt;
@@ -8447,17 +8477,17 @@ ${N}`);
function Yr(M, Y) {
return M === Y || M != M && Y != Y;
}
- (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != P || an && hn(an.resolve()) != te || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) {
- var Y = fn(M), be = Y == ae ? M.constructor : void 0, De = be ? mn(be) : "";
+ (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != D || an && hn(an.resolve()) != te || pn && hn(new pn()) != V || sr && hn(new sr()) != pe) && (hn = function(M) {
+ var Y = fn(M), be = Y == oe ? M.constructor : void 0, De = be ? mn(be) : "";
if (De) switch (De) {
case Wr:
return fe;
case qr:
- return P;
+ return D;
case _o:
return te;
case Eo:
- return F;
+ return V;
case xo:
return pe;
}
@@ -8490,7 +8520,7 @@ ${N}`);
return M(Y);
};
})(ge) : function(M) {
- return Rn(M) && cr(M.length) && !!L[fn(M)];
+ return Rn(M) && cr(M.length) && !!j[fn(M)];
};
function Rr(M) {
return (Y = M) != null && cr(Y.length) && !Kn(Y) ? Kr(M) : Nr(M);
@@ -8530,8 +8560,8 @@ ${N}`);
const C = d;
}, 8814: (i, u) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.arrayToString = void 0, u.arrayToString = (f, _, d) => {
- const C = f.map(function(b, w) {
- const N = d(b, w);
+ const C = f.map(function(k, w) {
+ const N = d(k, w);
return N === void 0 ? String(N) : _ + N.split(`
`).join(`
${_}`);
@@ -8553,31 +8583,31 @@ ${_}`);
var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 };
_(d, C), i.exports = d.locals || {};
}, 8989: (i, u) => {
- var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, b = 60109, w = 60110, N = 60112, I = 60113, P = 60120, j = 60115, ae = 60116;
+ var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, k = 60109, w = 60110, N = 60112, I = 60113, D = 60120, L = 60115, oe = 60116;
if (typeof Symbol == "function" && Symbol.for) {
var te = Symbol.for;
- f = te("react.element"), _ = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), h = te("react.profiler"), b = te("react.provider"), w = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), P = te("react.suspense_list"), j = te("react.memo"), ae = te("react.lazy"), te("react.block"), te("react.server.block"), te("react.fundamental"), te("react.debug_trace_mode"), te("react.legacy_hidden");
+ f = te("react.element"), _ = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), h = te("react.profiler"), k = te("react.provider"), w = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), D = te("react.suspense_list"), L = te("react.memo"), oe = te("react.lazy"), te("react.block"), te("react.server.block"), te("react.fundamental"), te("react.debug_trace_mode"), te("react.legacy_hidden");
}
- function R(F) {
- if (typeof F == "object" && F !== null) {
- var q = F.$$typeof;
+ function R(V) {
+ if (typeof V == "object" && V !== null) {
+ var q = V.$$typeof;
switch (q) {
case f:
- switch (F = F.type) {
+ switch (V = V.type) {
case d:
case h:
case C:
case I:
- case P:
- return F;
+ case D:
+ return V;
default:
- switch (F = F && F.$$typeof) {
+ switch (V = V && V.$$typeof) {
case w:
case N:
- case ae:
- case j:
- case b:
- return F;
+ case oe:
+ case L:
+ case k:
+ return V;
default:
return q;
}
@@ -8587,58 +8617,58 @@ ${_}`);
}
}
}
- u.isContextConsumer = function(F) {
- return R(F) === w;
+ u.isContextConsumer = function(V) {
+ return R(V) === w;
};
}, 9090: (i, u, f) => {
Object.defineProperty(u, "__esModule", { value: !0 });
- var _ = Object.assign || function(oe) {
+ var _ = Object.assign || function(ie) {
for (var fe = 1; fe < arguments.length; fe++) {
var he = arguments[fe];
- for (var S in he) Object.prototype.hasOwnProperty.call(he, S) && (oe[S] = he[S]);
+ for (var S in he) Object.prototype.hasOwnProperty.call(he, S) && (ie[S] = he[S]);
}
- return oe;
- }, d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(oe) {
- return typeof oe;
- } : function(oe) {
- return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe;
+ return ie;
+ }, d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ie) {
+ return typeof ie;
+ } : function(ie) {
+ return ie && typeof Symbol == "function" && ie.constructor === Symbol && ie !== Symbol.prototype ? "symbol" : typeof ie;
}, C = /* @__PURE__ */ (function() {
- function oe(fe, he) {
+ function ie(fe, he) {
for (var S = 0; S < he.length; S++) {
- var L = he[S];
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(fe, L.key, L);
+ var j = he[S];
+ j.enumerable = j.enumerable || !1, j.configurable = !0, "value" in j && (j.writable = !0), Object.defineProperty(fe, j.key, j);
}
}
return function(fe, he, S) {
- return he && oe(fe.prototype, he), S && oe(fe, S), fe;
+ return he && ie(fe.prototype, he), S && ie(fe, S), fe;
};
- })(), h = f(6540), b = F(f(5556)), w = R(f(7791)), N = F(f(7067)), I = R(f(6462)), P = R(f(4838)), j = f(834), ae = F(j), te = F(f(9628));
- function R(oe) {
- if (oe && oe.__esModule) return oe;
+ })(), h = f(6540), k = V(f(5556)), w = R(f(7791)), N = V(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), oe = V(L), te = V(f(9628));
+ function R(ie) {
+ if (ie && ie.__esModule) return ie;
var fe = {};
- if (oe != null) for (var he in oe) Object.prototype.hasOwnProperty.call(oe, he) && (fe[he] = oe[he]);
- return fe.default = oe, fe;
+ if (ie != null) for (var he in ie) Object.prototype.hasOwnProperty.call(ie, he) && (fe[he] = ie[he]);
+ return fe.default = ie, fe;
}
- function F(oe) {
- return oe && oe.__esModule ? oe : { default: oe };
+ function V(ie) {
+ return ie && ie.__esModule ? ie : { default: ie };
}
f(7727);
- var q = { overlay: "ReactModal__Overlay", content: "ReactModal__Content" }, G = 0, pe = (function(oe) {
+ var q = { overlay: "ReactModal__Overlay", content: "ReactModal__Content" }, G = 0, pe = (function(ie) {
function fe(he) {
- (function(L, A) {
- if (!(L instanceof A)) throw new TypeError("Cannot call a class as a function");
+ (function(j, A) {
+ if (!(j instanceof A)) throw new TypeError("Cannot call a class as a function");
})(this, fe);
- var S = (function(L, A) {
- if (!L) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !A || typeof A != "object" && typeof A != "function" ? L : A;
+ var S = (function(j, A) {
+ if (!j) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return !A || typeof A != "object" && typeof A != "function" ? j : A;
})(this, (fe.__proto__ || Object.getPrototypeOf(fe)).call(this, he));
- return S.setOverlayRef = function(L) {
- S.overlay = L, S.props.overlayRef && S.props.overlayRef(L);
- }, S.setContentRef = function(L) {
- S.content = L, S.props.contentRef && S.props.contentRef(L);
+ return S.setOverlayRef = function(j) {
+ S.overlay = j, S.props.overlayRef && S.props.overlayRef(j);
+ }, S.setContentRef = function(j) {
+ S.content = j, S.props.contentRef && S.props.contentRef(j);
}, S.afterClose = function() {
- var L = S.props, A = L.appElement, se = L.ariaHideApp, J = L.htmlOpenClassName, Ee = L.bodyOpenClassName, ee = L.parentSelector, V = ee && ee().ownerDocument || document;
- Ee && P.remove(V.body, Ee), J && P.remove(V.getElementsByTagName("html")[0], J), se && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), te.default.deregister(S);
+ var j = S.props, A = j.appElement, se = j.ariaHideApp, J = j.htmlOpenClassName, Ee = j.bodyOpenClassName, ee = j.parentSelector, U = ee && ee().ownerDocument || document;
+ Ee && D.remove(U.body, Ee), J && D.remove(U.getElementsByTagName("html")[0], J), se && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), te.default.deregister(S);
}, S.open = function() {
S.beforeOpen(), S.state.afterOpen && S.state.beforeClose ? (clearTimeout(S.closeTimer), S.setState({ beforeClose: !1 })) : (S.props.shouldFocusAfterRender && (w.setupScopedFocus(S.node), w.markForFocusLater()), S.setState({ isOpen: !0 }, function() {
S.openAnimationFrame = requestAnimationFrame(function() {
@@ -8650,65 +8680,65 @@ ${_}`);
}, S.focusContent = function() {
return S.content && !S.contentHasFocus() && S.content.focus({ preventScroll: !0 });
}, S.closeWithTimeout = function() {
- var L = Date.now() + S.props.closeTimeoutMS;
- S.setState({ beforeClose: !0, closesAt: L }, function() {
+ var j = Date.now() + S.props.closeTimeoutMS;
+ S.setState({ beforeClose: !0, closesAt: j }, function() {
S.closeTimer = setTimeout(S.closeWithoutTimeout, S.state.closesAt - Date.now());
});
}, S.closeWithoutTimeout = function() {
S.setState({ beforeClose: !1, isOpen: !1, afterOpen: !1, closesAt: null }, S.afterClose);
- }, S.handleKeyDown = function(L) {
+ }, S.handleKeyDown = function(j) {
(function(A) {
return A.code === "Tab" || A.keyCode === 9;
- })(L) && (0, N.default)(S.content, L), S.props.shouldCloseOnEsc && (function(A) {
+ })(j) && (0, N.default)(S.content, j), S.props.shouldCloseOnEsc && (function(A) {
return A.code === "Escape" || A.keyCode === 27;
- })(L) && (L.stopPropagation(), S.requestClose(L));
- }, S.handleOverlayOnClick = function(L) {
- S.shouldClose === null && (S.shouldClose = !0), S.shouldClose && S.props.shouldCloseOnOverlayClick && (S.ownerHandlesClose() ? S.requestClose(L) : S.focusContent()), S.shouldClose = null;
+ })(j) && (j.stopPropagation(), S.requestClose(j));
+ }, S.handleOverlayOnClick = function(j) {
+ S.shouldClose === null && (S.shouldClose = !0), S.shouldClose && S.props.shouldCloseOnOverlayClick && (S.ownerHandlesClose() ? S.requestClose(j) : S.focusContent()), S.shouldClose = null;
}, S.handleContentOnMouseUp = function() {
S.shouldClose = !1;
- }, S.handleOverlayOnMouseDown = function(L) {
- S.props.shouldCloseOnOverlayClick || L.target != S.overlay || L.preventDefault();
+ }, S.handleOverlayOnMouseDown = function(j) {
+ S.props.shouldCloseOnOverlayClick || j.target != S.overlay || j.preventDefault();
}, S.handleContentOnClick = function() {
S.shouldClose = !1;
}, S.handleContentOnMouseDown = function() {
S.shouldClose = !1;
- }, S.requestClose = function(L) {
- return S.ownerHandlesClose() && S.props.onRequestClose(L);
+ }, S.requestClose = function(j) {
+ return S.ownerHandlesClose() && S.props.onRequestClose(j);
}, S.ownerHandlesClose = function() {
return S.props.onRequestClose;
}, S.shouldBeClosed = function() {
return !S.state.isOpen && !S.state.beforeClose;
}, S.contentHasFocus = function() {
return document.activeElement === S.content || S.content.contains(document.activeElement);
- }, S.buildClassName = function(L, A) {
- var se = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[L], afterOpen: q[L] + "--after-open", beforeClose: q[L] + "--before-close" }, J = se.base;
+ }, S.buildClassName = function(j, A) {
+ var se = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[j], afterOpen: q[j] + "--after-open", beforeClose: q[j] + "--before-close" }, J = se.base;
return S.state.afterOpen && (J = J + " " + se.afterOpen), S.state.beforeClose && (J = J + " " + se.beforeClose), typeof A == "string" && A ? J + " " + A : J;
- }, S.attributesFromObject = function(L, A) {
+ }, S.attributesFromObject = function(j, A) {
return Object.keys(A).reduce(function(se, J) {
- return se[L + "-" + J] = A[J], se;
+ return se[j + "-" + J] = A[J], se;
}, {});
}, S.state = { afterOpen: !1, beforeClose: !1 }, S.shouldClose = null, S.moveFromContentToOverlay = null, S;
}
return (function(he, S) {
if (typeof S != "function" && S !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof S);
he.prototype = Object.create(S && S.prototype, { constructor: { value: he, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(he, S) : he.__proto__ = S);
- })(fe, oe), C(fe, [{ key: "componentDidMount", value: function() {
+ })(fe, ie), C(fe, [{ key: "componentDidMount", value: function() {
this.props.isOpen && this.open();
} }, { key: "componentDidUpdate", value: function(he, S) {
this.props.isOpen && !he.isOpen ? this.open() : !this.props.isOpen && he.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !S.isOpen && this.focusContent();
} }, { key: "componentWillUnmount", value: function() {
this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame);
} }, { key: "beforeOpen", value: function() {
- var he = this.props, S = he.appElement, L = he.ariaHideApp, A = he.htmlOpenClassName, se = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document;
- se && P.add(Ee.body, se), A && P.add(Ee.getElementsByTagName("html")[0], A), L && (G += 1, I.hide(S)), te.default.register(this);
+ var he = this.props, S = he.appElement, j = he.ariaHideApp, A = he.htmlOpenClassName, se = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document;
+ se && D.add(Ee.body, se), A && D.add(Ee.getElementsByTagName("html")[0], A), j && (G += 1, I.hide(S)), te.default.register(this);
} }, { key: "render", value: function() {
- var he = this.props, S = he.id, L = he.className, A = he.overlayClassName, se = he.defaultStyles, J = he.children, Ee = L ? {} : se.content, ee = A ? {} : se.overlay;
+ var he = this.props, S = he.id, j = he.className, A = he.overlayClassName, se = he.defaultStyles, J = he.children, Ee = j ? {} : se.content, ee = A ? {} : se.overlay;
if (this.shouldBeClosed()) return null;
- var V = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: _({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = _({ id: S, ref: this.setContentRef, style: _({}, Ee, this.props.style.content), className: this.buildClassName("content", L), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentOnMouseDown, onMouseUp: this.handleContentOnMouseUp, onClick: this.handleContentOnClick, role: this.props.role, "aria-label": this.props.contentLabel }, this.attributesFromObject("aria", _({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(Z, J);
- return this.props.overlayElement(V, le);
+ var U = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: _({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = _({ id: S, ref: this.setContentRef, style: _({}, Ee, this.props.style.content), className: this.buildClassName("content", j), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentOnMouseDown, onMouseUp: this.handleContentOnMouseUp, onClick: this.handleContentOnClick, role: this.props.role, "aria-label": this.props.contentLabel }, this.attributesFromObject("aria", _({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(Z, J);
+ return this.props.overlayElement(U, le);
} }]), fe;
})(h.Component);
- pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: b.default.bool.isRequired, defaultStyles: b.default.shape({ content: b.default.object, overlay: b.default.object }), style: b.default.shape({ content: b.default.object, overlay: b.default.object }), className: b.default.oneOfType([b.default.string, b.default.object]), overlayClassName: b.default.oneOfType([b.default.string, b.default.object]), parentSelector: b.default.func, bodyOpenClassName: b.default.string, htmlOpenClassName: b.default.string, ariaHideApp: b.default.bool, appElement: b.default.oneOfType([b.default.instanceOf(ae.default), b.default.instanceOf(j.SafeHTMLCollection), b.default.instanceOf(j.SafeNodeList), b.default.arrayOf(b.default.instanceOf(ae.default))]), onAfterOpen: b.default.func, onAfterClose: b.default.func, onRequestClose: b.default.func, closeTimeoutMS: b.default.number, shouldFocusAfterRender: b.default.bool, shouldCloseOnOverlayClick: b.default.bool, shouldReturnFocusAfterClose: b.default.bool, preventScroll: b.default.bool, role: b.default.string, contentLabel: b.default.string, aria: b.default.object, data: b.default.object, children: b.default.node, shouldCloseOnEsc: b.default.bool, overlayRef: b.default.func, contentRef: b.default.func, id: b.default.string, overlayElement: b.default.func, contentElement: b.default.func, testId: b.default.string }, u.default = pe, i.exports = u.default;
+ pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: k.default.bool.isRequired, defaultStyles: k.default.shape({ content: k.default.object, overlay: k.default.object }), style: k.default.shape({ content: k.default.object, overlay: k.default.object }), className: k.default.oneOfType([k.default.string, k.default.object]), overlayClassName: k.default.oneOfType([k.default.string, k.default.object]), parentSelector: k.default.func, bodyOpenClassName: k.default.string, htmlOpenClassName: k.default.string, ariaHideApp: k.default.bool, appElement: k.default.oneOfType([k.default.instanceOf(oe.default), k.default.instanceOf(L.SafeHTMLCollection), k.default.instanceOf(L.SafeNodeList), k.default.arrayOf(k.default.instanceOf(oe.default))]), onAfterOpen: k.default.func, onAfterClose: k.default.func, onRequestClose: k.default.func, closeTimeoutMS: k.default.number, shouldFocusAfterRender: k.default.bool, shouldCloseOnOverlayClick: k.default.bool, shouldReturnFocusAfterClose: k.default.bool, preventScroll: k.default.bool, role: k.default.string, contentLabel: k.default.string, aria: k.default.object, data: k.default.object, children: k.default.node, shouldCloseOnEsc: k.default.bool, overlayRef: k.default.func, contentRef: k.default.func, id: k.default.string, overlayElement: k.default.func, contentElement: k.default.func, testId: k.default.string }, u.default = pe, i.exports = u.default;
}, 9628: (i, u) => {
Object.defineProperty(u, "__esModule", { value: !0 }), u.log = function() {
console.log("portalOpenInstances ----------"), console.log(_.openInstances.length), _.openInstances.forEach(function(d) {
@@ -8719,18 +8749,18 @@ ${_}`);
};
var f = function d() {
var C = this;
- (function(h, b) {
- if (!(h instanceof b)) throw new TypeError("Cannot call a class as a function");
+ (function(h, k) {
+ if (!(h instanceof k)) throw new TypeError("Cannot call a class as a function");
})(this, d), this.register = function(h) {
C.openInstances.indexOf(h) === -1 && (C.openInstances.push(h), C.emit("register"));
}, this.deregister = function(h) {
- var b = C.openInstances.indexOf(h);
- b !== -1 && (C.openInstances.splice(b, 1), C.emit("deregister"));
+ var k = C.openInstances.indexOf(h);
+ k !== -1 && (C.openInstances.splice(k, 1), C.emit("deregister"));
}, this.subscribe = function(h) {
C.subscribers.push(h);
}, this.emit = function(h) {
- C.subscribers.forEach(function(b) {
- return b(h, C.openInstances.slice());
+ C.subscribers.forEach(function(k) {
+ return k(h, C.openInstances.slice());
});
}, this.openInstances = [], this.subscribers = [];
}, _ = new f();
@@ -8795,19 +8825,19 @@ ${_}`);
for (var o = l; Object.getPrototypeOf(o) !== null; ) o = Object.getPrototypeOf(o);
return Object.getPrototypeOf(l) === o;
}
- function b(l, o, s) {
+ function k(l, o, s) {
var c;
if (typeof o == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function") throw new Error(f(0));
if (typeof o == "function" && s === void 0 && (s = o, o = void 0), s !== void 0) {
if (typeof s != "function") throw new Error(f(1));
- return s(b)(l, o);
+ return s(k)(l, o);
}
if (typeof l != "function") throw new Error(f(2));
var g = l, y = o, x = [], z = x, Q = !1;
function X() {
z === x && (z = x.slice());
}
- function ie() {
+ function ae() {
if (Q) throw new Error(f(3));
return y;
}
@@ -8837,7 +8867,7 @@ ${_}`);
(0, Oe[Te])();
return de;
}
- return me({ type: C.INIT }), (c = { dispatch: me, subscribe: ue, getState: ie, replaceReducer: function(de) {
+ return me({ type: C.INIT }), (c = { dispatch: me, subscribe: ue, getState: ae, replaceReducer: function(de) {
if (typeof de != "function") throw new Error(f(10));
g = de, me({ type: C.REPLACE });
} })[_] = function() {
@@ -8845,7 +8875,7 @@ ${_}`);
return (de = { subscribe: function(Te) {
if (typeof Te != "object" || Te === null) throw new Error(f(11));
function ze() {
- Te.next && Te.next(ie());
+ Te.next && Te.next(ae());
}
return ze(), { unsubscribe: Oe(ze) };
} })[_] = function() {
@@ -8857,12 +8887,12 @@ ${_}`);
l();
}, I = function() {
return N;
- }, P = { notify: function() {
+ }, D = { notify: function() {
}, get: function() {
return [];
} };
- function j(l, o) {
- var s, c = P;
+ function L(l, o) {
+ var s, c = D;
function g() {
x.onStateChange && x.onStateChange();
}
@@ -8873,13 +8903,13 @@ ${_}`);
Q = null, X = null;
}, notify: function() {
z(function() {
- for (var ie = Q; ie; ) ie.callback(), ie = ie.next;
+ for (var ae = Q; ae; ) ae.callback(), ae = ae.next;
});
}, get: function() {
- for (var ie = [], ue = Q; ue; ) ie.push(ue), ue = ue.next;
- return ie;
- }, subscribe: function(ie) {
- var ue = !0, me = X = { callback: ie, next: null, prev: X };
+ for (var ae = [], ue = Q; ue; ) ae.push(ue), ue = ue.next;
+ return ae;
+ }, subscribe: function(ae) {
+ var ue = !0, me = X = { callback: ae, next: null, prev: X };
return me.prev ? me.prev.next = me : Q = me, function() {
ue && Q !== null && (ue = !1, me.next ? me.next.prev = me.prev : X = me.prev, me.prev ? me.prev.next = me.next : Q = me.next);
};
@@ -8893,21 +8923,21 @@ ${_}`);
}, handleChangeWrapper: g, isSubscribed: function() {
return !!s;
}, trySubscribe: y, tryUnsubscribe: function() {
- s && (s(), s = void 0, c.clear(), c = P);
+ s && (s(), s = void 0, c.clear(), c = D);
}, getListeners: function() {
return c;
} };
return x;
}
- var ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect;
+ var oe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect;
const te = function(l) {
var o = l.store, s = l.context, c = l.children, g = (0, i.useMemo)(function() {
- var z = j(o);
+ var z = L(o);
return { store: o, subscription: z };
}, [o]), y = (0, i.useMemo)(function() {
return o.getState();
}, [o]);
- ae(function() {
+ oe(function() {
var z = g.subscription;
return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), y !== o.getState() && z.notifyNestedSubs(), function() {
z.tryUnsubscribe(), z.onStateChange = null;
@@ -8925,7 +8955,7 @@ ${_}`);
return l;
}, R.apply(null, arguments);
}
- function F(l, o) {
+ function V(l, o) {
if (l == null) return {};
var s = {};
for (var c in l) if ({}.hasOwnProperty.call(l, c)) {
@@ -8934,13 +8964,13 @@ ${_}`);
}
return s;
}
- var q = O(4146), G = O.n(q), pe = O(4737), oe = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"], fe = ["reactReduxForwardedRef"], he = [], S = [null, null];
- function L(l, o) {
+ var q = O(4146), G = O.n(q), pe = O(4737), ie = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"], fe = ["reactReduxForwardedRef"], he = [], S = [null, null];
+ function j(l, o) {
var s = l[1];
return [o.payload, s + 1];
}
function A(l, o, s) {
- ae(function() {
+ oe(function() {
return l.apply(void 0, o);
}, s);
}
@@ -8949,8 +8979,8 @@ ${_}`);
}
function J(l, o, s, c, g, y, x, z, Q, X) {
if (l) {
- var ie = !1, ue = null, me = function() {
- if (!ie) {
+ var ae = !1, ue = null, me = function() {
+ if (!ae) {
var de, Oe, Te = o.getState();
try {
de = c(Te, g.current);
@@ -8961,7 +8991,7 @@ ${_}`);
}
};
return s.onStateChange = me, s.trySubscribe(), me(), function() {
- if (ie = !0, s.tryUnsubscribe(), s.onStateChange = null, ue) throw ue;
+ if (ae = !0, s.tryUnsubscribe(), s.onStateChange = null, ue) throw ue;
};
}
}
@@ -8972,15 +9002,15 @@ ${_}`);
o === void 0 && (o = {});
var s = o, c = s.getDisplayName, g = c === void 0 ? function(je) {
return "ConnectAdvanced(" + je + ")";
- } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, Q = z === void 0 ? void 0 : z, X = s.shouldHandleStateChanges, ie = X === void 0 || X, ue = s.storeKey, me = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Te = s.context, ze = Te === void 0 ? w : Te, st = F(s, oe), He = ze;
+ } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, Q = z === void 0 ? void 0 : z, X = s.shouldHandleStateChanges, ae = X === void 0 || X, ue = s.storeKey, me = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Te = s.context, ze = Te === void 0 ? w : Te, st = V(s, ie), He = ze;
return function(je) {
- var dt = je.displayName || je.name || "Component", vt = g(dt), Ht = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: Q, shouldHandleStateChanges: ie, storeKey: me, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) {
+ var dt = je.displayName || je.name || "Component", vt = g(dt), Ht = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: Q, shouldHandleStateChanges: ae, storeKey: me, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) {
return it();
};
function St(it) {
var xn = (0, i.useMemo)(function() {
- var ir = it.reactReduxForwardedRef, Uo = F(it, fe);
- return [it.context, ir, Uo];
+ var ir = it.reactReduxForwardedRef, Fo = V(it, fe);
+ return [it.context, ir, Fo];
}, [it]), jn = xn[0], lo = xn[1], Wt = xn[2], Jt = (0, i.useMemo)(function() {
return jn && jn.Consumer && (0, pe.isContextConsumer)(i.createElement(jn.Consumer, null)) ? jn : He;
}, [jn, He]), en = (0, i.useContext)(Jt), qt = !!it.store && !!it.store.getState && !!it.store.dispatch;
@@ -8989,23 +9019,23 @@ ${_}`);
return (function(ir) {
return l(ir.dispatch, Ht);
})(cn);
- }, [cn]), Ft = (0, i.useMemo)(function() {
- if (!ie) return S;
- var ir = j(cn, qt ? null : en.subscription), Uo = ir.notifyNestedSubs.bind(ir);
- return [ir, Uo];
- }, [cn, qt, en]), un = Ft[0], or = Ft[1], $i = (0, i.useMemo)(function() {
+ }, [cn]), Vt = (0, i.useMemo)(function() {
+ if (!ae) return S;
+ var ir = L(cn, qt ? null : en.subscription), Fo = ir.notifyNestedSubs.bind(ir);
+ return [ir, Fo];
+ }, [cn, qt, en]), un = Vt[0], or = Vt[1], $i = (0, i.useMemo)(function() {
return qt ? en : R({}, en, { subscription: un });
- }, [qt, en, un]), Bi = (0, i.useReducer)(L, he, Ee), tn = Bi[0][0], Ta = Bi[1];
+ }, [qt, en, un]), Bi = (0, i.useReducer)(j, he, Ee), tn = Bi[0][0], Ta = Bi[1];
if (tn && tn.error) throw tn.error;
- var Fo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Ur = (0, i.useRef)(), Vo = (0, i.useRef)(!1), wr = It(function() {
- return Ur.current && Wt === nn.current ? Ur.current : Nt(cn.getState(), Wt);
+ var Vo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Fr = (0, i.useRef)(), Uo = (0, i.useRef)(!1), wr = It(function() {
+ return Fr.current && Wt === nn.current ? Fr.current : Nt(cn.getState(), Wt);
}, [cn, tn, Wt]);
- A(se, [nn, Fo, Vo, Wt, wr, Ur, or]), A(J, [ie, cn, un, Nt, nn, Fo, Vo, Ur, or, Ta], [cn, un, Nt]);
+ A(se, [nn, Vo, Uo, Wt, wr, Fr, or]), A(J, [ae, cn, un, Nt, nn, Vo, Uo, Fr, or, Ta], [cn, un, Nt]);
var co = (0, i.useMemo)(function() {
return i.createElement(je, R({}, wr, { ref: lo }));
}, [lo, je, wr]);
return (0, i.useMemo)(function() {
- return ie ? i.createElement(Jt.Provider, { value: $i }, co) : co;
+ return ae ? i.createElement(Jt.Provider, { value: $i }, co) : co;
}, [Jt, co, $i]);
}
var mt = xt ? i.memo(St) : St;
@@ -9018,15 +9048,15 @@ ${_}`);
return G()(mt, je);
};
}
- function V(l, o) {
+ function U(l, o) {
return l === o ? l !== 0 || o !== 0 || 1 / l == 1 / o : l != l && o != o;
}
function Z(l, o) {
- if (V(l, o)) return !0;
+ if (U(l, o)) return !0;
if (typeof l != "object" || l === null || typeof o != "object" || o === null) return !1;
var s = Object.keys(l), c = Object.keys(o);
if (s.length !== c.length) return !1;
- for (var g = 0; g < s.length; g++) if (!Object.prototype.hasOwnProperty.call(o, s[g]) || !V(l[s[g]], o[s[g]])) return !1;
+ for (var g = 0; g < s.length; g++) if (!Object.prototype.hasOwnProperty.call(o, s[g]) || !U(l[s[g]], o[s[g]])) return !1;
return !0;
}
function le(l) {
@@ -9073,7 +9103,7 @@ ${_}`);
return g;
})(l, o);
}) : void 0;
- }], Ve = [function(l) {
+ }], Ue = [function(l) {
return typeof l == "function" ? ke(l) : void 0;
}, function(l) {
return l ? void 0 : le(function() {
@@ -9088,8 +9118,8 @@ ${_}`);
return function(s, c) {
c.displayName;
var g, y = c.pure, x = c.areMergedPropsEqual, z = !1;
- return function(Q, X, ie) {
- var ue = o(Q, X, ie);
+ return function(Q, X, ae) {
+ var ue = o(Q, X, ae);
return z ? y && x(ue, g) || (g = ue) : (z = !0, g = ue), g;
};
};
@@ -9106,17 +9136,17 @@ ${_}`);
};
}
function ye(l, o, s, c, g) {
- var y, x, z, Q, X, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, me = g.areStatePropsEqual, de = !1;
+ var y, x, z, Q, X, ae = g.areStatesEqual, ue = g.areOwnPropsEqual, me = g.areStatePropsEqual, de = !1;
function Oe(Te, ze) {
- var st, He, je = !ue(ze, x), dt = !ie(Te, y, ze, x);
+ var st, He, je = !ue(ze, x), dt = !ae(Te, y, ze, x);
return y = Te, x = ze, je && dt ? (z = l(y, x), o.dependsOnOwnProps && (Q = o(c, x)), X = s(z, Q, x)) : je ? (l.dependsOnOwnProps && (z = l(y, x)), o.dependsOnOwnProps && (Q = o(c, x)), X = s(z, Q, x)) : (dt && (st = l(y, x), He = !me(st, z), z = st, He && (X = s(z, Q, x))), X);
}
return function(Te, ze) {
return de ? Oe(Te, ze) : (z = l(y = Te, x = ze), Q = o(c, x), X = s(z, Q, x), de = !0, X);
};
}
- function D(l, o) {
- var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = F(o, Ke), x = s(l, y), z = c(l, y), Q = g(l, y);
+ function P(l, o) {
+ var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = V(o, Ke), x = s(l, y), z = c(l, y), Q = g(l, y);
return (y.pure ? ye : Je)(x, z, Q, l, y);
}
var ne = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
@@ -9133,10 +9163,10 @@ ${_}`);
return l === o;
}
function Pe(l) {
- var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ve : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, Q = o.mergePropsFactories, X = Q === void 0 ? Le : Q, ie = o.selectorFactory, ue = ie === void 0 ? D : ie;
+ var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ue : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, Q = o.mergePropsFactories, X = Q === void 0 ? Le : Q, ae = o.selectorFactory, ue = ae === void 0 ? P : ae;
return function(me, de, Oe, Te) {
Te === void 0 && (Te = {});
- var ze = Te, st = ze.pure, He = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Ce : je, vt = ze.areOwnPropsEqual, Ht = vt === void 0 ? Z : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? Z : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? Z : St, En = F(ze, ne), it = we(me, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, X, "mergeProps");
+ var ze = Te, st = ze.pure, He = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Ce : je, vt = ze.areOwnPropsEqual, Ht = vt === void 0 ? Z : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? Z : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? Z : St, En = V(ze, ne), it = we(me, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, X, "mergeProps");
return c(ue, R({ methodName: "connect", getDisplayName: function(lo) {
return "Connect(" + lo + ")";
}, shouldHandleStateChanges: !!me, initMapStateToProps: it, initMapDispatchToProps: xn, initMergeProps: jn, pure: He, areStatesEqual: dt, areOwnPropsEqual: Ht, areStatePropsEqual: It, areMergedPropsEqual: mt }, En));
@@ -9254,8 +9284,8 @@ ${_}`);
Object.assign(y, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] });
for (const Q of z.getChildren()) y.children.push(In(Q, x));
(function(Q, X) {
- for (const ie of X) {
- const ue = bi(Q, ie);
+ for (const ae of X) {
+ const ue = bi(Q, ae);
for (const me of ue) {
const de = me.offset;
if (de === 0) {
@@ -9335,8 +9365,8 @@ ${_}`);
switch (x.type) {
case Qe:
return (function(z, Q, X) {
- const ie = X.currentRootName;
- return { ...Q, ...Ir(z, Q, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie };
+ const ae = X.currentRootName;
+ return { ...Q, ...Ir(z, Q, { currentRootName: ae }), currentNode: null, currentNodeDefinition: null, currentRootName: ae };
})(g, y, x);
case et:
return { ...y, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) };
@@ -9396,8 +9426,8 @@ ${_}`);
})(c, y), Q = (function({ currentEditor: ue, currentRootName: me, ranges: de, markers: Oe }) {
return ue ? [In(ue.model.document.getRoot(me), [...de, ...Oe])] : [];
})({ currentEditor: c, currentRootName: g.currentRootName, ranges: x, markers: z });
- let X = g.currentNode, ie = g.currentNodeDefinition;
- return X ? X.root.rootName !== y || !Wn(X) && !X.parent ? (X = null, ie = null) : ie = lr(c, X) : ie = null, { treeDefinition: Q, currentNode: X, currentNodeDefinition: ie, ranges: x, markers: z };
+ let X = g.currentNode, ae = g.currentNodeDefinition;
+ return X ? X.root.rootName !== y || !Wn(X) && !X.parent ? (X = null, ae = null) : ae = lr(c, X) : ae = null, { treeDefinition: Q, currentNode: X, currentNodeDefinition: ae, ranges: x, markers: z };
}
const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Y = "SET_VIEW_ACTIVE_TAB", be = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE";
function tt(l) {
@@ -9455,26 +9485,26 @@ ${_}`);
(function(x, z) {
for (const Q of z) {
const X = To(x, Q);
- for (const ie of X) {
- const ue = ie.offset;
+ for (const ae of X) {
+ const ue = ae.offset;
if (ue === 0) {
const me = x.children[0];
- me ? me.positionsBefore.push(ie) : x.positions.push(ie);
+ me ? me.positionsBefore.push(ae) : x.positions.push(ae);
} else if (ue === x.children.length) {
const me = x.children[x.children.length - 1];
- me ? me.positionsAfter.push(ie) : x.positions.push(ie);
+ me ? me.positionsAfter.push(ae) : x.positions.push(ae);
} else {
- let me = ie.isEnd ? 0 : x.children.length - 1, de = x.children[me];
+ let me = ae.isEnd ? 0 : x.children.length - 1, de = x.children[me];
for (; de; ) {
if (de.index === ue) {
- de.positionsBefore.push(ie);
+ de.positionsBefore.push(ae);
break;
}
if (de.index + 1 === ue) {
- de.positionsAfter.push(ie);
+ de.positionsAfter.push(ae);
break;
}
- me += ie.isEnd ? 1 : -1, de = x.children[me];
+ me += ae.isEnd ? 1 : -1, de = x.children[me];
}
}
}
@@ -9509,8 +9539,8 @@ ${_}`);
switch (x.type) {
case Rr:
return (function(z, Q, X) {
- const ie = X.currentRootName;
- return { ...Q, ...ut(z, Q, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie };
+ const ae = X.currentRootName;
+ return { ...Q, ...ut(z, Q, { currentRootName: ae }), currentNode: null, currentNodeDefinition: null, currentRootName: ae };
})(g, y, x);
case M:
return { ...y, currentNode: x.currentNode, currentNodeDefinition: bn(x.currentNode) };
@@ -9546,13 +9576,13 @@ ${_}`);
return { ...o, ...ut(l, o, { currentRootName: c }), currentRootName: c, currentNode: null, currentNodeDefinition: null };
}
function ut(l, o, s) {
- const c = { ...o, ...s }, g = c.currentRootName, y = (function(X, ie) {
+ const c = { ...o, ...s }, g = c.currentRootName, y = (function(X, ae) {
if (!X) return [];
const ue = [], me = X.editing.view.document.selection;
- for (const de of me.getRanges()) de.root.rootName === ie && ue.push({ type: "selection", start: jt(de.start), end: jt(de.end) });
+ for (const de of me.getRanges()) de.root.rootName === ae && ue.push({ type: "selection", start: jt(de.start), end: jt(de.end) });
return ue;
- })(gn(l), g), x = (function({ currentEditor: X, currentRootName: ie, ranges: ue }) {
- return X && ie ? [Xr(X.editing.view.document.getRoot(ie), [...ue])] : null;
+ })(gn(l), g), x = (function({ currentEditor: X, currentRootName: ae, ranges: ue }) {
+ return X && ae ? [Xr(X.editing.view.document.getRoot(ae), [...ue])] : null;
})({ currentEditor: gn(l), currentRootName: g, ranges: y });
let z = c.currentNode, Q = c.currentNodeDefinition;
return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, Q = null) : Q = bn(z) : Q = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: Q, ranges: y };
@@ -9593,8 +9623,8 @@ ${_}`);
for (const X of g.allowAttributes.sort()) Q[X] = { value: !0 };
Q = pt(Q);
for (const X in Q) {
- const ie = c.getAttributeProperties(X), ue = {};
- for (const me in ie) ue[me] = { value: ie[me] };
+ const ae = c.getAttributeProperties(X), ue = {};
+ for (const me in ae) ue[me] = { value: ae[me] };
Q[X].subProperties = pt(ue);
}
return { currentSchemaDefinitionName: s, type: "SchemaCompiledItemDefinition", urls: { general: Xn + "module_engine_model_schema-SchemaCompiledItemDefinition.html", allowAttributes: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowAttributes", allowChildren: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowChildren", allowIn: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowIn" }, properties: pt(y), allowChildren: pt(x), allowIn: pt(z), allowAttributes: Q, definition: g };
@@ -9839,19 +9869,19 @@ ${_}`);
}, o.prototype.calculateNewMaxFromBoundary = function(s, c) {
var g, y, x = this.props.boundsByDirection, z = this.state.direction, Q = x && mr("left", z), X = x && mr("top", z);
if (this.props.bounds === "parent") {
- var ie = this.parentNode;
- ie && (g = Q ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), y = X ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop));
+ var ae = this.parentNode;
+ ae && (g = Q ? this.resizableRight - this.parentLeft : ae.offsetWidth + (this.parentLeft - this.resizableLeft), y = X ? this.resizableBottom - this.parentTop : ae.offsetHeight + (this.parentTop - this.resizableTop));
} else this.props.bounds === "window" ? this.window && (g = Q ? this.resizableRight : this.window.innerWidth - this.resizableLeft, y = X ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = Q ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), y = X ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
return g && Number.isFinite(g) && (s = s && s < g ? s : g), y && Number.isFinite(y) && (c = c && c < y ? c : y), { maxWidth: s, maxHeight: c };
}, o.prototype.calculateNewSizeFromDirection = function(s, c) {
- var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, Q = x.original, X = this.props, ie = X.lockAspectRatio, ue = X.lockAspectRatioExtraHeight, me = X.lockAspectRatioExtraWidth, de = Q.width, Oe = Q.height, Te = ue || 0, ze = me || 0;
- return mr("right", z) && (de = Q.width + (s - Q.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("left", z) && (de = Q.width - (s - Q.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("bottom", z) && (Oe = Q.height + (c - Q.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), mr("top", z) && (Oe = Q.height - (c - Q.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), { newWidth: de, newHeight: Oe };
+ var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, Q = x.original, X = this.props, ae = X.lockAspectRatio, ue = X.lockAspectRatioExtraHeight, me = X.lockAspectRatioExtraWidth, de = Q.width, Oe = Q.height, Te = ue || 0, ze = me || 0;
+ return mr("right", z) && (de = Q.width + (s - Q.x) * y / g, ae && (Oe = (de - ze) / this.ratio + Te)), mr("left", z) && (de = Q.width - (s - Q.x) * y / g, ae && (Oe = (de - ze) / this.ratio + Te)), mr("bottom", z) && (Oe = Q.height + (c - Q.y) * y / g, ae && (de = (Oe - Te) * this.ratio + ze)), mr("top", z) && (Oe = Q.height - (c - Q.y) * y / g, ae && (de = (Oe - Te) * this.ratio + ze)), { newWidth: de, newHeight: Oe };
}, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, y) {
- var x = this.props, z = x.lockAspectRatio, Q = x.lockAspectRatioExtraHeight, X = x.lockAspectRatioExtraWidth, ie = y.width === void 0 ? 10 : y.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, me = y.height === void 0 ? 10 : y.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = Q || 0, Te = X || 0;
+ var x = this.props, z = x.lockAspectRatio, Q = x.lockAspectRatioExtraHeight, X = x.lockAspectRatioExtraWidth, ae = y.width === void 0 ? 10 : y.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, me = y.height === void 0 ? 10 : y.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = Q || 0, Te = X || 0;
if (z) {
- var ze = (me - Oe) * this.ratio + Te, st = (de - Oe) * this.ratio + Te, He = (ie - Te) / this.ratio + Oe, je = (ue - Te) / this.ratio + Oe, dt = Math.max(ie, ze), vt = Math.min(ue, st), Ht = Math.max(me, He), xt = Math.min(de, je);
+ var ze = (me - Oe) * this.ratio + Te, st = (de - Oe) * this.ratio + Te, He = (ae - Te) / this.ratio + Oe, je = (ue - Te) / this.ratio + Oe, dt = Math.max(ae, ze), vt = Math.min(ue, st), Ht = Math.max(me, He), xt = Math.min(de, je);
s = ei(s, dt, vt), c = ei(c, Ht, xt);
- } else s = ei(s, ie, ue), c = ei(c, me, de);
+ } else s = ei(s, ae, ue), c = ei(c, me, de);
return { newWidth: s, newHeight: c };
}, o.prototype.setBoundingClientRect = function() {
if (this.props.bounds === "parent") {
@@ -9888,8 +9918,8 @@ ${_}`);
}
}
this.setBoundingClientRect(), this.bindEvents();
- var ie = { original: { x: y, y: x, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(s.target).cursor || "auto" }), direction: c, flexBasis: g };
- this.setState(ie);
+ var ae = { original: { x: y, y: x, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(s.target).cursor || "auto" }), direction: c, flexBasis: g };
+ this.setState(ae);
}
}, o.prototype.onMouseMove = function(s) {
if (this.state.isResizing && this.resizable && this.window) {
@@ -9897,7 +9927,7 @@ ${_}`);
s.preventDefault(), s.stopPropagation();
} catch {
}
- var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, Q = gr(s) ? s.touches[0].clientX : s.clientX, X = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, me = ie.original, de = ie.width, Oe = ie.height, Te = this.getParentSize(), ze = xi(Te, this.window.innerWidth, this.window.innerHeight, g, y, x, z);
+ var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, Q = gr(s) ? s.touches[0].clientX : s.clientX, X = gr(s) ? s.touches[0].clientY : s.clientY, ae = this.state, ue = ae.direction, me = ae.original, de = ae.width, Oe = ae.height, Te = this.getParentSize(), ze = xi(Te, this.window.innerWidth, this.window.innerHeight, g, y, x, z);
g = ze.maxWidth, y = ze.maxHeight, x = ze.minWidth, z = ze.minHeight;
var st = this.calculateNewSizeFromDirection(Q, X), He = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, y), vt = this.calculateNewSizeFromAspectRatio(je, He, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z });
if (je = vt.newWidth, He = vt.newHeight, this.props.grid) {
@@ -9921,10 +9951,10 @@ ${_}`);
}, o.prototype.renderResizer = function() {
var s = this, c = this.props, g = c.enable, y = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, Q = c.handleWrapperClass, X = c.handleComponent;
if (!g) return null;
- var ie = Object.keys(g).map(function(ue) {
+ var ae = Object.keys(g).map(function(ue) {
return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: y && y[ue], className: x && x[ue] }, X && X[ue] ? X[ue] : null) : null;
});
- return i.createElement("div", { className: Q, style: z }, ie);
+ return i.createElement("div", { className: Q, style: z }, ae);
}, o.prototype.render = function() {
var s = this, c = Object.keys(this.props).reduce(function(x, z) {
return Si.indexOf(z) !== -1 || (x[z] = s.props[z]), x;
@@ -10002,7 +10032,7 @@ ${_}`);
if (this.props.bounds === "parent") g = y;
else {
if (this.props.bounds === "body") {
- var z = y.getBoundingClientRect(), Q = z.left, X = z.top, ie = document.body.getBoundingClientRect(), ue = -(Q - y.offsetLeft * x - ie.left) / x, me = -(X - y.offsetTop * x - ie.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + me;
+ var z = y.getBoundingClientRect(), Q = z.left, X = z.top, ae = document.body.getBoundingClientRect(), ue = -(Q - y.offsetLeft * x - ae.left) / x, me = -(X - y.offsetTop * x - ae.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + me;
return this.setState({ bounds: { top: me, right: de, bottom: Oe, left: ue } });
}
if (this.props.bounds === "window") {
@@ -10037,15 +10067,15 @@ ${_}`);
if (this.resizingPosition = { x: z.x + x.left, y: z.y + x.top }, this.setState({ original: z }), this.props.bounds) {
var Q = this.getParent(), X = void 0;
X = this.props.bounds === "parent" ? Q : this.props.bounds === "body" ? document.body : this.props.bounds === "window" ? window : document.querySelector(this.props.bounds);
- var ie = this.getSelfElement();
- if (ie instanceof Element && (X instanceof HTMLElement || X === window) && Q instanceof HTMLElement) {
+ var ae = this.getSelfElement();
+ if (ae instanceof Element && (X instanceof HTMLElement || X === window) && Q instanceof HTMLElement) {
var ue = this.getMaxSizesFromProps(), me = ue.maxWidth, de = ue.maxHeight, Oe = this.getParentSize();
if (me && typeof me == "string") if (me.endsWith("%")) {
var Te = Number(me.replace("%", "")) / 100;
me = Oe.width * Te;
} else me.endsWith("px") && (me = Number(me.replace("px", "")));
de && typeof de == "string" && (de.endsWith("%") ? (Te = Number(de.replace("%", "")) / 100, de = Oe.width * Te) : de.endsWith("px") && (de = Number(de.replace("px", ""))));
- var ze = ie.getBoundingClientRect(), st = ze.left, He = ze.top, je = this.props.bounds === "window" ? { left: 0, top: 0 } : X.getBoundingClientRect(), dt = je.left, vt = je.top, Ht = this.getOffsetWidth(X), xt = this.getOffsetHeight(X), It = c.toLowerCase().endsWith("left"), St = c.toLowerCase().endsWith("right"), mt = c.startsWith("top"), En = c.startsWith("bottom");
+ var ze = ae.getBoundingClientRect(), st = ze.left, He = ze.top, je = this.props.bounds === "window" ? { left: 0, top: 0 } : X.getBoundingClientRect(), dt = je.left, vt = je.top, Ht = this.getOffsetWidth(X), xt = this.getOffsetHeight(X), It = c.toLowerCase().endsWith("left"), St = c.toLowerCase().endsWith("right"), mt = c.startsWith("top"), En = c.startsWith("bottom");
if (It && this.resizable) {
var it = (st - dt) / y + this.resizable.size.width;
this.setState({ maxWidth: it > Number(me) ? me : it });
@@ -10057,8 +10087,8 @@ ${_}`);
}, o.prototype.onResize = function(s, c, g, y) {
var x = { x: this.state.original.x, y: this.state.original.y }, z = -y.width, Q = -y.height;
["top", "left", "topLeft", "bottomLeft", "topRight"].indexOf(c) !== -1 && (c === "bottomLeft" ? x.x += z : (c === "topRight" || (x.x += z), x.y += Q)), x.x === this.draggable.state.x && x.y === this.draggable.state.y || this.draggable.setState(x), this.updateOffsetFromParent();
- var X = this.offsetFromParent, ie = this.getDraggablePosition().x + X.left, ue = this.getDraggablePosition().y + X.top;
- this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, y, { x: ie, y: ue });
+ var X = this.offsetFromParent, ae = this.getDraggablePosition().x + X.left, ue = this.getDraggablePosition().y + X.top;
+ this.resizingPosition = { x: ae, y: ue }, this.props.onResize && this.props.onResize(s, c, g, y, { x: ae, y: ue });
}, o.prototype.onResizeStop = function(s, c, g, y) {
this.resizing = !1;
var x = this.getMaxSizesFromProps(), z = x.maxWidth, Q = x.maxHeight;
@@ -10073,12 +10103,12 @@ ${_}`);
var y = c.getBoundingClientRect(), x = y.left, z = y.top, Q = g.getBoundingClientRect(), X = this.getDraggablePosition();
this.offsetFromParent = { left: Q.left - x - X.x * s, top: Q.top - z - X.y * s };
}, o.prototype.render = function() {
- var s = this.props, c = s.disableDragging, g = s.style, y = s.dragHandleClassName, x = s.position, z = s.onMouseDown, Q = s.onMouseUp, X = s.dragAxis, ie = s.dragGrid, ue = s.bounds, me = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Te = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, He = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Ht = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) {
+ var s = this.props, c = s.disableDragging, g = s.style, y = s.dragHandleClassName, x = s.position, z = s.onMouseDown, Q = s.onMouseUp, X = s.dragAxis, ae = s.dragGrid, ue = s.bounds, me = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Te = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, He = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Ht = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) {
var Nt = {};
- for (var Ft in qt) Object.prototype.hasOwnProperty.call(qt, Ft) && cn.indexOf(Ft) < 0 && (Nt[Ft] = qt[Ft]);
+ for (var Vt in qt) Object.prototype.hasOwnProperty.call(qt, Vt) && cn.indexOf(Vt) < 0 && (Nt[Vt] = qt[Vt]);
if (qt != null && typeof Object.getOwnPropertySymbols == "function") {
var un = 0;
- for (Ft = Object.getOwnPropertySymbols(qt); un < Ft.length; un++) cn.indexOf(Ft[un]) < 0 && Object.prototype.propertyIsEnumerable.call(qt, Ft[un]) && (Nt[Ft[un]] = qt[Ft[un]]);
+ for (Vt = Object.getOwnPropertySymbols(qt); un < Vt.length; un++) cn.indexOf(Vt[un]) < 0 && Object.prototype.propertyIsEnumerable.call(qt, Vt[un]) && (Nt[Vt[un]] = qt[Vt[un]]);
}
return Nt;
})(s, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]), St = this.props.default ? Zt({}, this.props.default) : void 0;
@@ -10086,7 +10116,7 @@ ${_}`);
var mt, En = c || y ? { cursor: "auto" } : { cursor: "move" }, it = Zt(Zt(Zt({}, sa), En), g), xn = this.offsetFromParent, jn = xn.left, lo = xn.top;
x && (mt = { x: x.x - jn, y: x.y - lo });
var Wt, Jt = this.resizing ? void 0 : mt, en = this.resizing ? "both" : X;
- return (0, i.createElement)(aa, { ref: this.refDraggable, handle: y ? "." + y : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: Q, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ie, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: me, cancel: de, scale: Ht, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof He == "boolean" ? (Wt = He, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : He, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Te, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe));
+ return (0, i.createElement)(aa, { ref: this.refDraggable, handle: y ? "." + y : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: Q, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ae, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: me, cancel: de, scale: Ht, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof He == "boolean" ? (Wt = He, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : He, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Te, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe));
}, o.defaultProps = { maxWidth: Number.MAX_SAFE_INTEGER, maxHeight: Number.MAX_SAFE_INTEGER, scale: 1, onResizeStart: function() {
}, onResize: function() {
}, onResizeStop: function() {
@@ -10211,12 +10241,12 @@ ${_}`);
class vr extends Ar {
render() {
const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, y = this.getChildren(), x = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", c ? "ck-inspector-tree-node_empty" : "", g], z = [], Q = [];
- o.positionsBefore && o.positionsBefore.forEach((ie, ue) => {
- z.push(i.createElement(br, { key: "position-before:" + ue, definition: ie }));
- }), o.positionsAfter && o.positionsAfter.forEach((ie, ue) => {
- Q.push(i.createElement(br, { key: "position-after:" + ue, definition: ie }));
- }), o.positions && o.positions.forEach((ie, ue) => {
- y.push(i.createElement(br, { key: "position" + ue, definition: ie }));
+ o.positionsBefore && o.positionsBefore.forEach((ae, ue) => {
+ z.push(i.createElement(br, { key: "position-before:" + ue, definition: ae }));
+ }), o.positionsAfter && o.positionsAfter.forEach((ae, ue) => {
+ Q.push(i.createElement(br, { key: "position-after:" + ue, definition: ae }));
+ }), o.positions && o.positions.forEach((ae, ue) => {
+ y.push(i.createElement(br, { key: "position" + ue, definition: ae }));
});
let X = o.name;
return this.globalTreeProps.showElementTypes && (X = o.elementType + ":" + X), i.createElement("div", { className: x.join(" "), onClick: this.handleClick }, z, i.createElement("span", { className: "ck-inspector-tree-node__name" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), X, this.getAttributes(), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), i.createElement("div", { className: "ck-inspector-tree-node__content" }, y), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", X, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), Q));
@@ -10408,13 +10438,13 @@ ${_}`);
}
const us = _e(({ editors: l, currentEditorName: o, model: { ranges: s } }) => {
const c = l.get(o), g = (function(y, x) {
- const z = y.model.document.selection, Q = z.anchor, X = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(Q)), focus: Mo(zt(X)), ranges: {} };
- for (const [ue, me] of z.getAttributes()) ie.attributes[ue] = { value: me };
+ const z = y.model.document.selection, Q = z.anchor, X = z.focus, ae = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(Q)), focus: Mo(zt(X)), ranges: {} };
+ for (const [ue, me] of z.getAttributes()) ae.attributes[ue] = { value: me };
x.forEach((ue, me) => {
- ie.ranges[me] = { value: "", subProperties: { start: { value: "", subProperties: pt(Mo(ue.start)) }, end: { value: "", subProperties: pt(Mo(ue.end)) } } };
+ ae.ranges[me] = { value: "", subProperties: { start: { value: "", subProperties: pt(Mo(ue.start)) }, end: { value: "", subProperties: pt(Mo(ue.end)) } } };
});
- for (const ue in ie) ue !== "ranges" && (ie[ue] = pt(ie[ue]));
- return ie;
+ for (const ue in ae) ue !== "ranges" && (ae[ue] = pt(ae[ue]));
+ return ae;
})(c, s);
return { editor: c, currentEditorName: o, info: g };
}, {})(cs);
@@ -10429,8 +10459,8 @@ ${_}`);
const z = x.name.split(":");
let Q = y;
for (const X of z) {
- const ie = X === z[z.length - 1];
- Q = Q[X] ? Q[X] : Q[X] = ie ? x : {};
+ const ae = X === z[z.length - 1];
+ Q = Q[X] ? Q[X] : Q[X] = ae ? x : {};
}
}
return y;
@@ -10518,8 +10548,8 @@ ${_}`);
const io = _e(({ editors: l, currentEditorName: o, view: { ranges: s } }) => {
const c = l.get(o), g = (function(y, x) {
const z = y.editing.view.document.selection, Q = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: si(jt(z.anchor)), focus: si(jt(z.focus)), ranges: {} };
- x.forEach((X, ie) => {
- Q.ranges[ie] = { value: "", subProperties: { start: { value: "", subProperties: pt(si(X.start)) }, end: { value: "", subProperties: pt(si(X.end)) } } };
+ x.forEach((X, ae) => {
+ Q.ranges[ae] = { value: "", subProperties: { start: { value: "", subProperties: pt(si(X.start)) }, end: { value: "", subProperties: pt(si(X.end)) } } };
});
for (const X in Q) X !== "ranges" && (Q[X] = pt(Q[X]));
return Q;
@@ -10686,18 +10716,18 @@ ${_}`);
}, rr.apply(null, arguments);
}
const Ss = ({ styles: l = {}, ...o }) => i.createElement("svg", rr({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M2.284 2.498c-.239.266-.184.617-.184 1.002V4H2a.5.5 0 00-.492.41L1.5 4.5V17a1 1 0 00.883.993L2.5 18h10a1 1 0 00.97-.752l-.081-.062c.438.368.976.54 1.507.526a2.5 2.5 0 01-2.232 1.783l-.164.005h-10a2.5 2.5 0 01-2.495-2.336L0 17V4.5a2 2 0 011.85-1.995L2 2.5l.284-.002zm10.532 0L13 2.5a2 2 0 011.995 1.85L15 4.5v2.28a2.243 2.243 0 00-1.5.404V4.5a.5.5 0 00-.41-.492L13 4v-.5l-.007-.144c-.031-.329.032-.626-.177-.858z" }), i.createElement("path", { d: "M6 .49l-.144.006a1.75 1.75 0 00-1.41.94l-.029.058.083-.004c-.69 0-1.25.56-1.25 1.25v1c0 .69.56 1.25 1.25 1.25h6c.69 0 1.25-.56 1.25-1.25v-1l-.006-.128a1.25 1.25 0 00-1.116-1.116l-.046-.002-.027-.058A1.75 1.75 0 009 .49H6zm0 1.5h3a.25.25 0 01.25.25l.007.102A.75.75 0 0010 2.99h.25v.5h-5.5v-.5H5a.75.75 0 00.743-.648l.007-.102A.25.25 0 016 1.99zm9.374 6.55a.75.75 0 01-.093 1.056l-2.33 1.954h6.127a.75.75 0 010 1.501h-5.949l2.19 1.837a.75.75 0 11-.966 1.15l-3.788-3.18a.747.747 0 01-.21-.285.75.75 0 01.17-.945l3.792-3.182a.75.75 0 011.057.093z" }));
- function Fr() {
- return Fr = Object.assign ? Object.assign.bind() : function(l) {
+ function Vr() {
+ return Vr = Object.assign ? Object.assign.bind() : function(l) {
for (var o = 1; o < arguments.length; o++) {
var s = arguments[o];
for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]);
}
return l;
- }, Fr.apply(null, arguments);
+ }, Vr.apply(null, arguments);
}
- const Cs = ({ styles: l = {}, ...o }) => i.createElement("svg", Fr({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { fill: "#4fa800", d: "M6.972 16.615a.997.997 0 01-.744-.292l-4.596-4.596a1 1 0 111.414-1.414l3.926 3.926 9.937-9.937a1 1 0 011.414 1.415L7.717 16.323a.997.997 0 01-.745.292z" }));
+ const Cs = ({ styles: l = {}, ...o }) => i.createElement("svg", Vr({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { fill: "#4fa800", d: "M6.972 16.615a.997.997 0 01-.744-.292l-4.596-4.596a1 1 0 111.414-1.414l3.926 3.926 9.937-9.937a1 1 0 011.414 1.415L7.717 16.323a.997.997 0 01-.745.292z" }));
O(4343);
- const Fi = "Lock from Inspector (@ckeditor/ckeditor5-inspector)";
+ const Vi = "Lock from Inspector (@ckeditor/ckeditor5-inspector)";
class so extends i.Component {
constructor(o) {
super(o), this.state = { isShiftKeyPressed: !1, wasEditorDataJustCopied: !1 }, this._keyDownHandler = this._handleKeyDown.bind(this), this._keyUpHandler = this._handleKeyUp.bind(this), this._readOnlyHandler = this._handleReadOnly.bind(this), this._editorDataJustCopiedTimeout = null;
@@ -10729,20 +10759,20 @@ ${_}`);
this.setState({ isShiftKeyPressed: !1 });
}
_handleReadOnly() {
- this.props.editor.isReadOnly ? this.props.editor.disableReadOnlyMode(Fi) : this.props.editor.enableReadOnlyMode(Fi);
+ this.props.editor.isReadOnly ? this.props.editor.disableReadOnlyMode(Vi) : this.props.editor.enableReadOnlyMode(Vi);
}
}
- const Vi = _e(({ editors: l, currentEditorName: o, currentEditorGlobals: { isReadOnly: s } }) => ({ editor: l.get(o), isReadOnly: s }), {})(so);
- function Vr() {
- return Vr = Object.assign ? Object.assign.bind() : function(l) {
+ const Ui = _e(({ editors: l, currentEditorName: o, currentEditorGlobals: { isReadOnly: s } }) => ({ editor: l.get(o), isReadOnly: s }), {})(so);
+ function Ur() {
+ return Ur = Object.assign ? Object.assign.bind() : function(l) {
for (var o = 1; o < arguments.length; o++) {
var s = arguments[o];
for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]);
}
return l;
- }, Vr.apply(null, arguments);
+ }, Ur.apply(null, arguments);
}
- const Ui = ({ styles: l = {}, ...o }) => i.createElement("svg", Vr({ viewBox: "0 0 19 19", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M17.03 6.47a.75.75 0 01.073.976l-.072.084-6.984 7a.75.75 0 01-.977.073l-.084-.072-7.016-7a.75.75 0 01.976-1.134l.084.072 6.485 6.47 6.454-6.469a.75.75 0 01.977-.073l.084.072z" }));
+ const Fi = ({ styles: l = {}, ...o }) => i.createElement("svg", Ur({ viewBox: "0 0 19 19", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M17.03 6.47a.75.75 0 01.073.976l-.072.084-6.984 7a.75.75 0 01-.977.073l-.084-.072-7.016-7a.75.75 0 01.976-1.134l.084.072 6.485 6.47 6.454-6.469a.75.75 0 01.977-.073l.084.072z" }));
O(9938);
const Sa = { position: "fixed", bottom: "0", left: "0", right: "0", top: "auto" };
class Ts extends i.Component {
@@ -10754,7 +10784,7 @@ ${_}`);
this.props.setHeight(g), Ca(g);
}
render() {
- return this.props.isCollapsed ? (document.body.classList.remove("ck-inspector-body-expanded"), document.body.classList.add("ck-inspector-body-collapsed")) : (document.body.classList.remove("ck-inspector-body-collapsed"), document.body.classList.add("ck-inspector-body-expanded")), i.createElement(Ti, { bounds: "window", enableResizing: { top: !this.props.isCollapsed }, disableDragging: !0, minHeight: "100", maxHeight: "100%", style: Sa, className: ["ck-inspector", this.props.isCollapsed ? "ck-inspector_collapsed" : ""].join(" "), position: { x: 0, y: "100%" }, size: { width: "100%", height: this.props.isCollapsed ? 30 : this.props.height }, onResizeStop: this.handleInspectorResize }, i.createElement(to, { onTabChange: this.props.setActiveTab, contentBefore: i.createElement(Ns, { key: "docs" }), activeTab: this.props.activeTab, contentAfter: [i.createElement(Is, { key: "selector" }), i.createElement("span", { className: "ck-inspector-separator", key: "separator-a" }), i.createElement(Vi, { key: "quick-actions" }), i.createElement("span", { className: "ck-inspector-separator", key: "separator-b" }), i.createElement(ui, { key: "inspector-toggle" })] }, i.createElement(fs, { label: "Model" }), i.createElement(ga, { label: "View" }), i.createElement(Li, { label: "Commands" }), i.createElement(ks, { label: "Schema" })));
+ return this.props.isCollapsed ? (document.body.classList.remove("ck-inspector-body-expanded"), document.body.classList.add("ck-inspector-body-collapsed")) : (document.body.classList.remove("ck-inspector-body-collapsed"), document.body.classList.add("ck-inspector-body-expanded")), i.createElement(Ti, { bounds: "window", enableResizing: { top: !this.props.isCollapsed }, disableDragging: !0, minHeight: "100", maxHeight: "100%", style: Sa, className: ["ck-inspector", this.props.isCollapsed ? "ck-inspector_collapsed" : ""].join(" "), position: { x: 0, y: "100%" }, size: { width: "100%", height: this.props.isCollapsed ? 30 : this.props.height }, onResizeStop: this.handleInspectorResize }, i.createElement(to, { onTabChange: this.props.setActiveTab, contentBefore: i.createElement(Ns, { key: "docs" }), activeTab: this.props.activeTab, contentAfter: [i.createElement(Is, { key: "selector" }), i.createElement("span", { className: "ck-inspector-separator", key: "separator-a" }), i.createElement(Ui, { key: "quick-actions" }), i.createElement("span", { className: "ck-inspector-separator", key: "separator-b" }), i.createElement(ui, { key: "inspector-toggle" })] }, i.createElement(fs, { label: "Model" }), i.createElement(ga, { label: "View" }), i.createElement(Li, { label: "Commands" }), i.createElement(ks, { label: "Schema" })));
}
componentWillUnmount() {
document.body.classList.remove("ck-inspector-body-expanded"), document.body.classList.remove("ck-inspector-body-collapsed");
@@ -10773,7 +10803,7 @@ ${_}`);
super(o), this.handleShortcut = this.handleShortcut.bind(this);
}
render() {
- return i.createElement(Et, { text: "Toggle inspector", icon: i.createElement(Ui, null), onClick: this.props.toggleIsCollapsed, title: "Toggle inspector (Alt+F12)", className: ["ck-inspector-navbox__navigation__toggle", this.props.isCollapsed ? " ck-inspector-navbox__navigation__toggle_up" : ""].join(" ") });
+ return i.createElement(Et, { text: "Toggle inspector", icon: i.createElement(Fi, null), onClick: this.props.toggleIsCollapsed, title: "Toggle inspector (Alt+F12)", className: ["ck-inspector-navbox__navigation__toggle", this.props.isCollapsed ? " ck-inspector-navbox__navigation__toggle_up" : ""].join(" ") });
}
componentDidMount() {
window.addEventListener("keydown", this.handleShortcut);
@@ -10849,7 +10879,7 @@ ${_}`);
y.getState().ui.isCollapsed || y.dispatch($e());
}, onReadOnlyChange() {
Be._store.dispatch({ type: sr });
- } }), Be._store = b(oa, { editors: Be._editors, currentEditorName: sn(Be._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), Be._store.subscribe(() => {
+ } }), Be._store = k(oa, { editors: Be._editors, currentEditorName: sn(Be._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), Be._store.subscribe(() => {
const y = Be._store.getState(), x = y.editors.get(y.currentEditorName);
c !== x && (c && Be._editorListener.stopListening(c), x && Be._editorListener.startListening(x), c = x);
}), Be._store.subscribe(() => {
@@ -10874,7 +10904,7 @@ const Xu = /* @__PURE__ */ Ku(Yu);
* @license GPL-3.0-or-later
*/
const Gu = function(Se) {
- const k = Se.plugins.get(Ac), v = $(Se.ui.view.element), T = $(Se.sourceElement), O = `ckeditor${Math.floor(Math.random() * 1e9)}`, K = [
+ const b = Se.plugins.get(Ac), v = $(Se.ui.view.element), T = $(Se.sourceElement), O = `ckeditor${Math.floor(Math.random() * 1e9)}`, K = [
"keypress",
"keyup",
"change",
@@ -10884,11 +10914,11 @@ const Gu = function(Se) {
"mousedown",
"mouseup"
].map((i) => `${i}.${O}`).join(" ");
- k.on("change:isSourceEditingMode", () => {
+ b.on("change:isSourceEditingMode", () => {
const i = v.find(
".ck-source-editing-area"
);
- if (k.isSourceEditingMode) {
+ if (b.isSourceEditingMode) {
let u = i.attr("data-value");
i.on(K, () => {
u !== (u = i.attr("data-value")) && T.val(u);
@@ -10896,9 +10926,9 @@ const Gu = function(Se) {
} else
i.off(`.${O}`);
});
-}, Zu = function(Se, k) {
- if (k.heading !== void 0) {
- var v = k.heading.options;
+}, Zu = function(Se, b) {
+ if (b.heading !== void 0) {
+ var v = b.heading.options;
v.find((T) => T.view === "h1") !== void 0 && Se.keystrokes.set(
"Ctrl+Alt+1",
() => Se.execute("heading", { value: "heading1" })
@@ -10919,7 +10949,7 @@ const Gu = function(Se) {
() => Se.execute("heading", { value: "heading6" })
), v.find((T) => T.model === "paragraph") !== void 0 && Se.keystrokes.set("Ctrl+Alt+p", "paragraph");
}
-}, Ju = function(Se, k) {
+}, Ju = function(Se, b) {
let v = null;
const T = Se.editing.view.document, O = Se.plugins.get("ClipboardPipeline");
T.on("clipboardOutput", (K, i) => {
@@ -10931,30 +10961,30 @@ const Gu = function(Se) {
let f = u, _ = !1;
const d = Craft.siteId;
let C = null, h = null;
- const b = Se.getData(), w = [
+ const k = Se.getData(), w = [
...u.matchAll(
/data-entry-id="([0-9]+)[^>]*data-site-id="([0-9]+)/g
)
];
K.stop();
const N = $(Se.ui.view.element);
- let P = N.parents("form").data("elementEditor");
- await P.ensureIsDraftOrRevision();
- let j = N.parents(".input");
- if (j.length > 0) {
- let ae = $(j[0]).find("div.ckeditor-container");
- ae.length > 0 && (C = $(ae[0]).data("element-id"));
- }
- C == null && (C = P.settings.elementId), h = N.parents(".field").data("layoutElement");
- for (let ae = 0; ae < w.length; ae++) {
+ let D = N.parents("form").data("elementEditor");
+ await D.ensureIsDraftOrRevision();
+ let L = N.parents(".input");
+ if (L.length > 0) {
+ let oe = $(L[0]).find("div.ckeditor-container");
+ oe.length > 0 && (C = $(oe[0]).data("element-id"));
+ }
+ C == null && (C = D.settings.elementId), h = N.parents(".field").data("layoutElement");
+ for (let oe = 0; oe < w.length; oe++) {
let te = null;
- w[ae][1] && (te = w[ae][1]);
+ w[oe][1] && (te = w[oe][1]);
let R = null;
- if (w[ae][2] && (R = w[ae][2]), te !== null) {
- const F = new RegExp('data-entry-id="' + te + '"');
- if (!(v === Se.id && !F.test(b))) {
+ if (w[oe][2] && (R = w[oe][2]), te !== null) {
+ const V = new RegExp('data-entry-id="' + te + '"');
+ if (!(v === Se.id && !V.test(k))) {
let q = null;
- v !== Se.id && (k.includes(Uu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError(
+ v !== Se.id && (b.includes(Fu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError(
Craft.t(
"ckeditor",
"This field doesn’t allow nested entries."
@@ -10981,8 +11011,8 @@ const Gu = function(Se) {
'data-site-id="' + G.data.newSiteId + '"'
));
}).catch((G) => {
- var pe, oe, fe, he;
- _ = !0, Craft.cp.displayError((oe = (pe = G == null ? void 0 : G.response) == null ? void 0 : pe.data) == null ? void 0 : oe.message), console.error((he = (fe = G == null ? void 0 : G.response) == null ? void 0 : fe.data) == null ? void 0 : he.additionalMessage);
+ var pe, ie, fe, he;
+ _ = !0, Craft.cp.displayError((ie = (pe = G == null ? void 0 : G.response) == null ? void 0 : pe.data) == null ? void 0 : ie.message), console.error((he = (fe = G == null ? void 0 : G.response) == null ? void 0 : fe.data) == null ? void 0 : he.additionalMessage);
});
}
}
@@ -10991,22 +11021,22 @@ const Gu = function(Se) {
}
}
});
-}, ad = async function(Se, k) {
- typeof Se == "string" && (Se = document.querySelector(`#${Se}`)), k.licenseKey = "GPL", k.attachTo = Se;
- const v = await Su.create(k);
+}, ad = async function(Se, b) {
+ typeof Se == "string" && (Se = document.querySelector(`#${Se}`)), b.licenseKey = "GPL", b.attachTo = Se;
+ const v = await Su.create(b);
Craft.showCkeditorInspector && Craft.userIsAdmin && Xu.attach(v), v.editing.view.change((i) => {
const u = v.editing.view.document.getRoot();
- if (typeof k.accessibleFieldName < "u" && k.accessibleFieldName.length) {
+ if (typeof b.accessibleFieldName < "u" && b.accessibleFieldName.length) {
let f = u.getAttribute("aria-label");
i.setAttribute(
"aria-label",
- k.accessibleFieldName + ", " + f,
+ b.accessibleFieldName + ", " + f,
u
);
}
- typeof k.describedBy < "u" && k.describedBy.length && i.setAttribute(
+ typeof b.describedBy < "u" && b.describedBy.length && i.setAttribute(
"aria-describedby",
- k.describedBy,
+ b.describedBy,
u
);
});
@@ -11033,10 +11063,10 @@ const Gu = function(Se) {
}
return v.model.document.on("change:data", () => {
v.updateSourceElement();
- }), k.plugins.includes(Ac) && Gu(v), k.plugins.includes(Cu) && Zu(v, k), Ju(v, k.plugins), v;
+ }), b.plugins.includes(Ac) && Gu(v), b.plugins.includes(Cu) && Zu(v, b), Ju(v, b.plugins), v;
};
export {
- Uu as CraftEntries,
+ Fu as CraftEntries,
nd as CraftImageInsertUI,
td as CraftImageTextAlternativeUI,
id as CraftLink,
diff --git a/src/web/assets/ckeditor/src/link/linkui.js b/src/web/assets/ckeditor/src/link/linkui.js
index 1a54d885..6e4154f4 100644
--- a/src/web/assets/ckeditor/src/link/linkui.js
+++ b/src/web/assets/ckeditor/src/link/linkui.js
@@ -40,6 +40,7 @@ export default class CraftLinkUI extends Plugin {
this.advancedView = null;
this.elementInputView = null;
this.sitesView = null;
+ this.urlSuffixInputView = null;
this.previousLinkValue = null;
this.linkTypeDropdownView = null;
@@ -483,7 +484,10 @@ export default class CraftLinkUI extends Plugin {
onSelect: (elements) => {
if (elements.length) {
const element = elements[0];
- const url = `${element.url}#${linkOption.refHandle}:${element.id}@${element.siteId}`;
+ // include the URL suffix, in case it was provided before the element was selected
+ const urlSuffix =
+ this.urlSuffixInputView?.fieldView.element.value.trim() ?? '';
+ const url = `${element.url}${urlSuffix}#${linkOption.refHandle}:${element.id}@${element.siteId}`;
editor.editing.view.focus();
if ((!isCollapsed || currentLinkElement) && range) {
@@ -639,66 +643,66 @@ export default class CraftLinkUI extends Plugin {
linkCommand[attributeModel] || '';
}
} else if (advancedField.value === 'urlSuffix') {
- let labeledInputView = this._addLabeledField(advancedField);
+ this.urlSuffixInputView = this._addLabeledField(advancedField);
// when you focus out of the urlSuffix field, update the main URL input field value with urlSuffix
this.listenTo(
- labeledInputView.fieldView,
+ this.urlSuffixInputView.fieldView,
'change:isFocused',
(evt, name, value, oldValue) => {
if (value !== oldValue && !value) {
- let urlSuffix = evt.source.element.value;
- let inputValue = null;
-
- const match = this._urlInputRefMatch(this.urlWithRefHandleRE);
- if (match) {
- // match[1] is the whole URL that shows before the {refTag}
- inputValue = match[1];
- } else {
- // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page
- inputValue = this._urlInputValue();
+ // if no link target has been set yet, don't write the suffix into the main URL field;
+ // it'll get applied once the target is chosen
+ if (this._urlInputValue().trim() === '') {
+ return;
}
- // check if it's a "valid" absolute URL, if yes - proceed as with the matches,
- // if not still extract query params and anchor
- try {
- let url = new URL(inputValue);
- let search = url.search;
- let hash = url.hash;
- let baseUrl = inputValue.replace(hash, '').replace(search, '');
-
- const newUrl = this._urlInputValue().replace(
- inputValue,
- baseUrl + urlSuffix,
- );
- formView.urlInputView.fieldView.set('value', newUrl);
- } catch (e) {
- // it might be a relative URL, and we still need to proceed
- // get the path, query params and anchor
- let [base, hash] = inputValue.split('#');
- let [path, search] = base.split('?');
-
- const newUrl = this._urlInputValue().replace(
- inputValue,
- path + urlSuffix,
- );
- formView.urlInputView.fieldView.set('value', newUrl);
- }
+ this._applyUrlSuffix(evt.source.element.value);
}
},
);
// update the URL Suffix form field when main URL field is loaded
this.listenTo(formView.urlInputView.fieldView, 'change:value', (ev) => {
- this._toggleUrlSuffixInputView(labeledInputView, ev.source.isEmpty);
+ this._toggleUrlSuffixInputView(
+ this.urlSuffixInputView,
+ ev.source.isEmpty,
+ );
});
+ let urlWasEmptyOnFocus = false;
// update the URL Suffix form field when main URL field is focused into and out of
this.listenTo(
formView.urlInputView.fieldView,
'change:isFocused',
- (ev) => {
- this._toggleUrlSuffixInputView(labeledInputView, ev.source.isEmpty);
+ (ev, name, isFocused) => {
+ const urlIsEmpty = this._urlInputValue().trim() === '';
+ if (isFocused) {
+ urlWasEmptyOnFocus = urlIsEmpty;
+ }
+
+ // don't clear the URL Suffix if it was provided before the URL
+ if (urlIsEmpty) {
+ return;
+ }
+
+ // if the URL was provided after the URL Suffix, apply the suffix to it
+ const urlSuffix =
+ this.urlSuffixInputView?.fieldView.element.value.trim();
+ if (
+ !isFocused &&
+ urlWasEmptyOnFocus &&
+ urlSuffix !== '' &&
+ this._getUrlSuffix() === ''
+ ) {
+ this._applyUrlSuffix(urlSuffix);
+ return;
+ }
+
+ this._toggleUrlSuffixInputView(
+ this.urlSuffixInputView,
+ ev.source.isEmpty,
+ );
},
);
}
@@ -732,42 +736,75 @@ export default class CraftLinkUI extends Plugin {
* ensure the value is also showing in the URL Suffix advanced field.
*/
_toggleUrlSuffixInputView(labeledInputView, isEmpty) {
- if (isEmpty) {
- labeledInputView.fieldView.set('value', '');
- } else {
- const match = this._urlInputRefMatch(this.urlWithRefHandleRE);
- let inputValue = null;
+ labeledInputView.fieldView.set(
+ 'value',
+ isEmpty ? '' : this._getUrlSuffix(),
+ );
+ }
- if (match) {
- // match[1] is the whole URL that shows before the {refTag}
- inputValue = match[1];
- } else {
- // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page
- inputValue = this._urlInputValue();
- }
+ /**
+ * Get the URL field value without the {refTag} portion.
+ */
+ _getUrlWithoutRefTag() {
+ const match = this._urlInputRefMatch(this.urlWithRefHandleRE);
+
+ // match[1] is the whole URL that shows before the {refTag};
+ // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page
+ return match ? match[1] : this._urlInputValue();
+ }
- // check if it's a "valid" absolute URL, if yes - proceed as with the matches,
- // if not still extract query params and anchor
- try {
- let url = new URL(inputValue);
- let search = url.search;
- let hash = url.hash;
+ /**
+ * Get the query params and anchor from the URL field value.
+ */
+ _getUrlSuffix() {
+ const inputValue = this._getUrlWithoutRefTag();
- labeledInputView.fieldView.set('value', search + hash);
- } catch (e) {
- // it might be a relative URL, and we still need to proceed
- // get the path, query params and anchor
- let [base, hash] = inputValue.split('#');
- let [path, search] = base.split('?');
+ // check if it's a "valid" absolute URL, if yes - proceed as with the matches,
+ // if not still extract query params and anchor
+ try {
+ let url = new URL(inputValue);
- hash = hash ? '#' + hash : '';
- search = search ? '?' + search : '';
+ return url.search + url.hash;
+ } catch (e) {
+ // it might be a relative URL, and we still need to proceed
+ // get the path, query params and anchor
+ let [base, hash] = inputValue.split('#');
+ let [path, search] = base.split('?');
- labeledInputView.fieldView.set('value', search + hash);
- }
+ hash = hash ? '#' + hash : '';
+ search = search ? '?' + search : '';
+
+ return search + hash;
}
}
+ /**
+ * Replace the query params and anchor in the URL field value with given URL suffix.
+ */
+ _applyUrlSuffix(urlSuffix) {
+ const {formView} = this._linkUI;
+ const inputValue = this._getUrlWithoutRefTag();
+ let baseUrl;
+
+ // check if it's a "valid" absolute URL, if yes - proceed as with the matches,
+ // if not still extract query params and anchor
+ try {
+ let url = new URL(inputValue);
+ baseUrl = inputValue.replace(url.hash, '').replace(url.search, '');
+ } catch (e) {
+ // it might be a relative URL, and we still need to proceed
+ // get the path as our baseUrl
+ let [base, hash] = inputValue.split('#');
+ let [baseUrl, search] = base.split('?');
+ }
+
+ const newUrl = this._urlInputValue().replace(
+ inputValue,
+ baseUrl + urlSuffix,
+ );
+ formView.urlInputView.fieldView.set('value', newUrl);
+ }
+
/**
* When link form is submitted, pass the advanced field values the link command.
*/