diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e09b928..1a32ab70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fixed a bug where invisible characters were being stripped out of field contents. ([#537](https://github.com/craftcms/ckeditor/issues/537)) - Fixed a bug where Link modals had empty Site menus when no element was selected. ([#534](https://github.com/craftcms/ckeditor/discussions/534), [#545](https://github.com/craftcms/ckeditor/issues/545)) - Fixed a bug where downloadable links’ `download` attributes were getting set to the value `"download"`. ([#551](https://github.com/craftcms/ckeditor/issues/551)) +- Fixed an error that occurred when copy/pasting a nested entry within a nested CKEditor field on a non-primary site. ([#548](https://github.com/craftcms/ckeditor/issues/548)) ## 5.3.1 - 2026-03-20 diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js index 2f99097e..2ae32edf 100644 --- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js @@ -1,4 +1,4 @@ -import { ImageInsertUI as au, ButtonView as gi, IconImage as su, Command as El, Plugin as Hn, ImageUtils as Rc, Collection as na, ViewModel as bi, createDropdown as ra, DropdownButtonView as lu, IconObjectSizeMedium as cu, addListToDropdown as os, Widget as uu, viewToModelPositionOutsideModelElement as du, toWidget as pu, DomEventObserver as fu, View as Tr, IconPlus as Mc, WidgetToolbarRepository as Pc, isWidget as hu, findAttributeRange as mu, LinkUI as Dc, ContextualBalloon as gu, ModelRange as bu, SwitchButtonView as yu, LabeledFieldView as vu, createLabeledInputText as ku, ClassicEditor as wu, SourceEditing as zc, Heading as _u } from "ckeditor5"; +import { ImageInsertUI as au, ButtonView as gi, IconImage as su, Command as El, Plugin as Hn, ImageUtils as Rc, Collection as na, ViewModel as yi, createDropdown as ra, DropdownButtonView as lu, IconObjectSizeMedium as cu, addListToDropdown as os, Widget as uu, viewToModelPositionOutsideModelElement as du, toWidget as pu, DomEventObserver as fu, View as Tr, IconPlus as Mc, WidgetToolbarRepository as Pc, isWidget as hu, findAttributeRange as mu, LinkUI as Dc, ContextualBalloon as gu, ModelRange as yu, SwitchButtonView as bu, LabeledFieldView as vu, createLabeledInputText as ku, ClassicEditor as wu, SourceEditing as zc, Heading as _u } from "ckeditor5"; /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. @@ -52,8 +52,8 @@ class Xu extends au { _createToolbarImageButton(_) { const E = this.editor, O = E.t, T = new gi(_); T.isEnabled = !0, T.label = O("Insert image"), T.icon = su, T.tooltip = !0; - const X = E.commands.get("insertImage"); - return T.bind("isEnabled").to(X), this.listenTo(T, "execute", () => this._showImageSelectModal()), T; + const G = E.commands.get("insertImage"); + return T.bind("isEnabled").to(G), this.listenTo(T, "execute", () => this._showImageSelectModal()), T; } _showImageSelectModal() { const _ = this._imageSources, E = this.editor, O = E.config, T = Object.assign({}, O.get("assetSelectionCriteria"), { @@ -68,8 +68,8 @@ class Xu extends au { transforms: O.get("transforms"), autoFocusSearchBox: !1, multiSelect: !0, - onSelect: (X, i) => { - this._processSelectedAssets(X, i).then(() => { + onSelect: (G, i) => { + this._processSelectedAssets(G, i).then(() => { E.editing.view.focus(); }); }, @@ -87,33 +87,33 @@ class Xu extends au { await this._createImageEntry(i.id); return; } - const O = this.editor, T = O.config.get("defaultTransform"), X = []; + const O = this.editor, T = O.config.get("defaultTransform"), G = []; for (const i of _) { const u = this._isTransformUrl(i.url); if (!u && T) { const f = await this._getTransformUrl(i.id, T); - X.push(f); + G.push(f); } else { const f = this._buildAssetUrl( i.id, i.url, u ? E : T ); - X.push(f); + G.push(f); } } - O.execute("insertImage", { source: X }); + O.execute("insertImage", { source: G }); } async _createImageEntry(_) { const E = this.editor, O = this._elementEditor, T = $(E.sourceElement).attr("name"); O && T && await O.setFormValue(T, "*"); - const X = E.config.get( + const G = E.config.get( "nestedElementAttributes" ), i = { - ...X + ...G }; O && (await O.markDeltaNameAsModified(E.sourceElement.name), i.ownerId = O.getDraftElementId( - X.ownerId + G.ownerId )); let u; try { @@ -201,9 +201,9 @@ class Xu extends au { "drop", async (O, T) => { _.editing.view, _.model; - const X = _.editing.mapper, i = T.dropRange; + const G = _.editing.mapper, i = T.dropRange; if (i) { - const u = i.start, f = X.toModelPosition(u); + const u = i.start, f = G.toModelPosition(u); _.model.change((k) => { k.setSelection(f, 0); }); @@ -237,12 +237,12 @@ class Xu extends au { await this._createImageEntry(O.assetId); return; } - const T = this.editor.config.get("defaultTransform"), X = this._isTransformUrl(O.url); + const T = this.editor.config.get("defaultTransform"), G = this._isTransformUrl(O.url); let i; - !X && T ? i = await this._getTransformUrl(O.assetId, T) : i = this._buildAssetUrl( + !G && T ? i = await this._getTransformUrl(O.assetId, T) : i = this._buildAssetUrl( O.assetId, O.url, - X ? transform : T + G ? transform : T ), this.editor.execute("insertImage", { source: i, breakBlock: !0 }); } /** @@ -251,11 +251,11 @@ class Xu extends au { _onUploadFailure(_, E = null) { var f, k; const O = _ instanceof CustomEvent ? _.detail : (f = E == null ? void 0 : E.jqXHR) == null ? void 0 : f.responseJSON; - let { message: T, filename: X, errors: i } = O || {}; - X = X || ((k = E == null ? void 0 : E.files) == null ? void 0 : k[0].name); + let { message: T, filename: G, errors: i } = O || {}; + G = G || ((k = E == null ? void 0 : E.files) == null ? void 0 : k[0].name); let u = i ? Object.values(i).flat() : []; T || (u.length ? T = u.join(` -`) : X ? T = Craft.t("app", "Upload failed for “{filename}”.", { filename: X }) : T = Craft.t("app", "Upload failed.")), Craft.cp.displayError(T), this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); +`) : G ? T = Craft.t("app", "Upload failed for “{filename}”.", { filename: G }) : T = Craft.t("app", "Upload failed.")), Craft.cp.displayError(T), this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); } } /** @@ -304,17 +304,17 @@ class Eu extends El { * @fires execute */ execute(_) { - const O = this.editor.model, T = this._element(), X = this._srcInfo(T); + const O = this.editor.model, T = this._element(), G = this._srcInfo(T); if (this.value = { transform: _.transform - }, X) { - const i = `#asset:${X.assetId}` + (_.transform ? `:transform:${_.transform}` : ""); + }, G) { + const i = `#asset:${G.assetId}` + (_.transform ? `:transform:${_.transform}` : ""); O.change((u) => { - const f = X.src.replace(/#.*/, "") + i; + const f = G.src.replace(/#.*/, "") + i; u.setAttribute("src", f, T); }), Craft.sendActionRequest("post", "ckeditor/ckeditor/image-url", { data: { - assetId: X.assetId, + assetId: G.assetId, transform: _.transform } }).then(({ data: u }) => { @@ -373,7 +373,7 @@ class Su extends Hn { const E = this.editor, O = E.t, T = { name: "transformImage:original", value: null - }, X = [ + }, G = [ T, ..._.map((u) => ({ label: u.name, @@ -394,12 +394,12 @@ class Su extends Hn { if (!C || !C.transform) return this._getOptionLabelValue(T); const m = _.find( - (y) => y.handle === C.transform + (b) => b.handle === C.transform ); return m ? m.name : C.transform; }), k.bind("isEnabled").to(this), os( k, - () => this._getTransformDropdownListItemDefinitions(X, f), + () => this._getTransformDropdownListItemDefinitions(G, f), { ariaLabel: O("Image resize list") } @@ -430,9 +430,9 @@ class Su extends Hn { _getTransformDropdownListItemDefinitions(_, E) { const O = new na(); return _.map((T) => { - const X = { + const G = { type: "button", - model: new bi({ + model: new yi({ commandName: "transformImage", commandValue: T.value, label: this._getOptionLabelValue(T), @@ -440,7 +440,7 @@ class Su extends Hn { icon: null }) }; - X.model.bind("isOn").to(E, "value", Cu(T.value)), O.add(X); + G.model.bind("isOn").to(E, "value", Cu(T.value)), O.add(G); }), O; } } @@ -524,8 +524,8 @@ class Tu extends El { let T = { allowSavingAsNew: !1, // todo: we might want to change that, but currently we're doing the same functionality as in Redactor - onSave: (X) => { - this._reloadImage(O.assetId, X); + onSave: (G) => { + this._reloadImage(O.assetId, G); }, allowDegreeFractions: Craft.isImagick }; @@ -571,11 +571,11 @@ class Tu extends El { _getAllImageAssets() { const E = this.editor.model, O = E.createRangeIn(E.document.getRoot()); let T = []; - for (const X of O.getWalker({ ignoreElementEnd: !0 })) - if (X.item.is("element") && X.item.name === "imageBlock") { - let i = this._srcInfo(X.item); + for (const G of O.getWalker({ ignoreElementEnd: !0 })) + if (G.item.is("element") && G.item.name === "imageBlock") { + let i = this._srcInfo(G.item); i && T.push({ - element: X.item, + element: G.item, srcInfo: i }); } @@ -620,13 +620,13 @@ class Ou extends Hn { */ _registerImageEditorButton() { const _ = this.editor, E = _.t, O = _.commands.get("imageEditor"), T = () => { - const X = new gi(); - return X.set({ + const G = new gi(); + return G.set({ label: E("Edit Image"), withText: !0 - }), X.bind("isEnabled").to(O), this.listenTo(X, "execute", (i) => { + }), G.bind("isEnabled").to(O), this.listenTo(G, "execute", (i) => { _.execute("imageEditor"), _.editing.view.focus(); - }), X; + }), G; }; _.ui.componentFactory.add("imageEditor", T); } @@ -648,13 +648,13 @@ class Nu extends El { execute(_) { const E = this.editor, O = E.model.document.selection; if (!O.isCollapsed && O.getFirstRange()) { - const X = O.getSelectedElement(); + const G = O.getSelectedElement(); E.execute("insertParagraph", { - position: E.model.createPositionAfter(X) + position: E.model.createPositionAfter(G) }); } - E.model.change((X) => { - const i = X.createElement("craftEntryModel", { + E.model.change((G) => { + const i = G.createElement("craftEntryModel", { ...Object.fromEntries(O.getAttributes()), cardHtml: _.cardHtml, entryId: _.entryId, @@ -718,9 +718,9 @@ class Pu extends Hn { // has to be lower case }, model: (O, { writer: T }) => { - const X = O.getAttribute("data-card-html"), i = O.getAttribute("data-entry-id"), u = O.getAttribute("data-site-id") ?? null; + const G = O.getAttribute("data-card-html"), i = O.getAttribute("data-entry-id"), u = O.getAttribute("data-site-id") ?? null; return T.createElement("craftEntryModel", { - cardHtml: X, + cardHtml: G, entryId: i, siteId: u }); @@ -728,9 +728,9 @@ class Pu extends Hn { }), _.for("editingDowncast").elementToElement({ model: "craftEntryModel", view: (O, { writer: T }) => { - const X = O.getAttribute("entryId") ?? null, i = O.getAttribute("siteId") ?? null, u = T.createContainerElement("div", { + const G = O.getAttribute("entryId") ?? null, i = O.getAttribute("siteId") ?? null, u = T.createContainerElement("div", { class: "cke-entry-card", - "data-entry-id": X, + "data-entry-id": G, "data-site-id": i }); return E(O, T, u), pu(u, T); @@ -738,14 +738,14 @@ class Pu extends Hn { }), _.for("dataDowncast").elementToElement({ model: "craftEntryModel", view: (O, { writer: T }) => { - const X = O.getAttribute("entryId") ?? null, i = O.getAttribute("siteId") ?? null; + const G = O.getAttribute("entryId") ?? null, i = O.getAttribute("siteId") ?? null; return T.createContainerElement("craft-entry", { - "data-entry-id": X, + "data-entry-id": G, "data-site-id": i }); } }); - const E = (O, T, X) => { + const E = (O, T, G) => { this._getCardHtml(O).then((i) => { const u = T.createRawElement( "div", @@ -754,7 +754,7 @@ class Pu extends Hn { k.innerHTML = i.cardHtml, Craft.appendHeadHtml(i.headHtml), Craft.appendBodyHtml(i.bodyHtml); } ); - T.insert(T.createPositionAt(X, 0), u); + T.insert(T.createPositionAt(G, 0), u); const f = this.editor; f.editing.view.focus(), setTimeout(() => { Craft.cp.elementThumbLoader.load($(f.ui.element)); @@ -777,24 +777,24 @@ class Pu extends Hn { const T = $(O[0]).data("layout-element"); if (E) return { cardHtml: E }; - const X = _.getAttribute("entryId") ?? null, i = _.getAttribute("siteId") ?? null; + const G = _.getAttribute("entryId") ?? null, i = _.getAttribute("siteId") ?? null; try { const d = this.editor, m = $(d.ui.view.element).closest( "form,.lp-editor-container" ).data("elementEditor"); m && await m.checkForm(); - const { data: y } = await Craft.sendActionRequest( + const { data: b } = await Craft.sendActionRequest( "POST", "ckeditor/ckeditor/entry-card-html", { data: { - entryId: X, + entryId: G, siteId: i, layoutElementUid: T } } ); - return y; + return b; } catch (d) { return console.error((u = d == null ? void 0 : d.response) == null ? void 0 : u.data), { cardHtml: '
' + (((k = (f = d == null ? void 0 : d.response) == null ? void 0 : f.data) == null ? void 0 : k.message) || "An unknown error occurred.") + "
" }; } @@ -812,7 +812,7 @@ class Iu extends Tr { constructor(_, E = {}) { super(_), this.set("isFocused", !1), this.entriesUi = E.entriesUi, this.editor = this.entriesUi.editor, this.entryType = E.entryType; const O = this.editor.commands.get("insertEntry"); - let T = new gi(), X = { + let T = new gi(), G = { commandValue: this.entryType.model.commandValue, //entry type id label: this.entryType.model.label, @@ -821,7 +821,7 @@ class Iu extends Tr { type: this.entryType.model.label }) }, i = ["btn", "ck-reset_all-excluded"]; - this.entryType.model.icon && i.push(["icon", "cp-icon"]), X.class = i.join(" "), this.entryType.model.withIcon && (X.icon = this.entryType.model.icon), T.set(X), this.listenTo(T, "execute", (u) => { + this.entryType.model.icon && i.push(["icon", "cp-icon"]), G.class = i.join(" "), this.entryType.model.withIcon && (G.icon = this.entryType.model.icon), T.set(G), this.listenTo(T, "execute", (u) => { this.entriesUi._showCreateEntrySlideout(u.source.commandValue); }), T.bind("isEnabled").to(O), this.setTemplate({ tag: "div", @@ -841,9 +841,9 @@ class Ru extends Tr { constructor(_, E = {}) { super(_), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = E.entriesUi, this.editor = this.entriesUi.editor; const O = E.entryTypes, T = this.editor.commands.get("insertEntry"); - let X = new na(); + let G = new na(); O.forEach((u) => { - u.model.color && (u.model.class || (u.model.class = ""), u.model.class += "icon " + u.model.color), X.add(u); + u.model.color && (u.model.class || (u.model.class = ""), u.model.class += "icon " + u.model.color), G.add(u); }); const i = ra(_); i.buttonView.set({ @@ -851,7 +851,7 @@ class Ru extends Tr { icon: Mc, tooltip: !0, withText: !1 - }), i.bind("isEnabled").to(T), i.id = Craft.uuid(), os(i, () => X, { + }), i.bind("isEnabled").to(T), i.id = Craft.uuid(), os(i, () => G, { ariaLabel: Craft.t("ckeditor", "Entry types list") }), this.listenTo(i, "execute", (u) => { this.entriesUi._showCreateEntrySlideout(u.source.commandValue); @@ -878,8 +878,8 @@ class Mu extends Tr { icon: Mc, tooltip: !0, withText: !1 - }), T.bind("isEnabled").to(O), T.id = Craft.uuid(), this.listenTo(T, "execute", (X) => { - this.entriesUi._showCreateEntrySlideout(X.source.commandValue); + }), T.bind("isEnabled").to(O), T.id = Craft.uuid(), this.listenTo(T, "execute", (G) => { + this.entriesUi._showCreateEntrySlideout(G.source.commandValue); }), this.setTemplate({ tag: "div", attributes: { @@ -940,10 +940,10 @@ class zu extends Hn { const _ = this.editor.editing.view, E = _.document; _.addObserver(Du), this.editor.listenTo(E, "dblclick", (O, T) => { if (!this.editor.isReadOnly) { - const X = this.editor.editing.mapper.toModelElement( + const G = this.editor.editing.mapper.toModelElement( T.target.parent ); - X.name === "craftEntryModel" && this._initEditEntrySlideout(T, X); + G.name === "craftEntryModel" && this._initEditEntrySlideout(T, G); } }); } @@ -972,7 +972,7 @@ class zu extends Hn { else { let O = this._getEntryTypeButtonsCollection( E ?? [] - ), T = O.filter((i) => i.model.expanded), X = O.filter((i) => !i.model.expanded); + ), T = O.filter((i) => i.model.expanded), G = O.filter((i) => !i.model.expanded); T.forEach((i, u) => { this.editor.ui.componentFactory.add( `createEntry-${i.model.uid}`, @@ -981,11 +981,11 @@ class zu extends Hn { entryType: i }) ); - }), X.length && this.editor.ui.componentFactory.add( + }), G.length && this.editor.ui.componentFactory.add( "createEntry", (i) => new Ru(this.editor.locale, { entriesUi: this, - entryTypes: X + entryTypes: G }) ); } @@ -1002,7 +1002,7 @@ class zu extends Hn { return _.map((O) => { const T = { type: "button", - model: new bi({ + model: new yi({ commandValue: O.value, //entry type id color: O.expanded ? null : O.color, @@ -1066,7 +1066,7 @@ class zu extends Hn { * @private */ _showEditEntrySlideout(_, E, O) { - const T = this.editor, X = T.model, i = this.getElementEditor(); + const T = this.editor, G = T.model, i = this.getElementEditor(); let u = this._getCardElement(_); const f = u.data("owner-id"), k = Craft.createElementEditor(this.elementType, null, { elementId: _, @@ -1093,7 +1093,7 @@ class zu extends Hn { } }); k.on("beforeClose", () => { - X.change((d) => { + G.change((d) => { d.setSelection(d.createPositionAfter(O)), T.editing.view.focus(); }); }), k.on("close", () => { @@ -1108,7 +1108,7 @@ class zu extends Hn { */ async _showCreateEntrySlideout(_) { var C, m; - const E = this.editor, O = E.model, X = O.document.selection.getFirstRange(), i = E.config.get( + const E = this.editor, O = E.model, G = O.document.selection.getFirstRange(), i = E.config.get( "nestedElementAttributes" ), u = Object.assign({}, i, { typeId: _ @@ -1125,8 +1125,8 @@ class zu extends Hn { data: u } )).data; - } catch (y) { - throw Craft.cp.displayError((m = (C = y == null ? void 0 : y.response) == null ? void 0 : C.data) == null ? void 0 : m.error), y; + } catch (b) { + throw Craft.cp.displayError((m = (C = b == null ? void 0 : b.response) == null ? void 0 : C.data) == null ? void 0 : m.error), b; } const d = Craft.createElementEditor(this.elementType, { elementId: k.element.id, @@ -1135,19 +1135,19 @@ class zu extends Hn { fresh: 1, siteId: k.element.siteId }, - onSubmit: (y) => { + onSubmit: (b) => { E.commands.execute("insertEntry", { - entryId: y.data.id, - siteId: y.data.siteId + entryId: b.data.id, + siteId: b.data.siteId }); } }); d.on("beforeClose", () => { - d.$triggerElement = null, O.change((y) => { - y.setSelection( - y.createPositionAt( + d.$triggerElement = null, O.change((b) => { + b.setSelection( + b.createPositionAt( E.model.document.getRoot(), - X.end.path[0] + G.end.path[0] ) ); }), E.editing.view.focus(); @@ -1191,12 +1191,12 @@ class ju extends Hn { _.for("downcast").attributeToElement({ model: this.conversionData[E].model, view: (O, { writer: T }) => { - const X = T.createAttributeElement( + const G = T.createAttributeElement( "a", { [this.conversionData[E].view]: O }, { priority: 5 } ); - return T.setCustomProperty("link", !0, X), X; + return T.setCustomProperty("link", !0, G), G; } }), _.for("upcast").attributeToAttribute({ view: { @@ -1214,15 +1214,15 @@ class ju extends Hn { let O = !1; E.on( "execute", - (T, X) => { + (T, G) => { if (O) { O = !1; return; } T.stop(), O = !0; - const i = X[X.length - 1], u = _.model.document.selection; + const i = G[G.length - 1], u = _.model.document.selection; _.model.change((f) => { - _.execute("link", ...X); + _.execute("link", ...G); const k = u.getFirstPosition(); this.conversionData.forEach((d) => { if (u.isCollapsed) { @@ -1254,12 +1254,12 @@ class ju extends Hn { } _adjustUnlinkCommand() { const _ = this.editor, E = _.commands.get("unlink"), { model: O } = _, { selection: T } = O.document; - let X = !1; + let G = !1; E.on( "execute", (i) => { - X || (i.stop(), O.change(() => { - X = !0, _.execute("unlink"), X = !1, O.change((u) => { + G || (i.stop(), O.change(() => { + G = !0, _.execute("unlink"), G = !1, O.change((u) => { let f; this.conversionData.forEach((k) => { T.isCollapsed ? f = [ @@ -1337,7 +1337,7 @@ class Lu extends Tr { } } ).then((T) => { - var X; + var G; if (Object.keys(T.data.elements).length > 0) { if (Craft.isMultiSite && this.linkUi.sitesView != null) for (const [f, k] of Object.entries( @@ -1366,7 +1366,7 @@ class Lu extends Tr { "isVisible", !0 ), _._alignFocus(); - } else if (((X = this.linkUi.previousLinkValue) == null ? void 0 : X.length) > 0) { + } else if (((G = this.linkUi.previousLinkValue) == null ? void 0 : G.length) > 0) { const { formView: i } = this.linkUi._linkUI; i.urlInputView.fieldView.set( "value", @@ -1379,8 +1379,8 @@ class Lu extends Tr { class: "btn add icon dashed" }), this.button.render(), this.element.innerHTML = this.button.element.outerHTML; }).catch((T) => { - var X, i, u, f; - throw Craft.cp.displayError((i = (X = T == null ? void 0 : T.response) == null ? void 0 : X.data) == null ? void 0 : i.message), ((f = (u = T == null ? void 0 : T.response) == null ? void 0 : u.data) == null ? void 0 : f.message) ?? T; + var G, i, u, f; + throw Craft.cp.displayError((i = (G = T == null ? void 0 : T.response) == null ? void 0 : G.data) == null ? void 0 : i.message), ((f = (u = T == null ? void 0 : T.response) == null ? void 0 : u.data) == null ? void 0 : f.message) ?? T; }); } } @@ -1416,13 +1416,13 @@ class Fu extends Tr { }), this.siteDropdownItemModels = Object.fromEntries( Craft.sites.map((T) => [ T.id, - new bi({ + new yi({ label: T.name, siteId: T.id, withText: !0 }) ]) - ), this.siteDropdownItemModels.current = new bi({ + ), this.siteDropdownItemModels.current = new yi({ label: Craft.t("ckeditor", "Link to the current site"), siteId: null, withText: !0 @@ -1439,17 +1439,17 @@ class Fu extends Tr { } ]) ), this.siteDropdownView.on("execute", (T) => { - const X = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); - if (!X) { + const G = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); + if (!G) { console.warn( `No reference tag hash present in URL: ${this.linkUi._urlInputValue()}` ); return; } const { siteId: i } = T.source; - let u = X[1]; + let u = G[1]; i && (u += `@${i}`), this.linkUi.previousLinkValue = this.linkUi._urlInputValue(); - const f = this.linkUi._urlInputValue().replace(X[0], u); + const f = this.linkUi._urlInputValue().replace(G[0], u); _.urlInputView.fieldView.set("value", f), this._toggleSiteDropdownView(); }), this.listenTo(O, "change:value", () => { this._toggleSiteDropdownView(); @@ -1509,8 +1509,8 @@ class Uu extends Tr { const { formView: E } = this.linkUi._linkUI; if (_.target.open) { const O = E._focusables.getIndex(this); - this.advancedChildren._items.forEach((T, X) => { - E._focusables.add(T, O + X + 1), E.focusTracker.add(T.element, O + X + 1); + this.advancedChildren._items.forEach((T, G) => { + E._focusables.add(T, O + G + 1), E.focusTracker.add(T.element, O + G + 1); }); } else this.advancedChildren._items.forEach((O, T) => { @@ -1543,9 +1543,9 @@ class Vu extends Hn { `(.+)(#((?:${E})):(\\d+))(?:@(\\d+))?` ), this._modifyFormViewTemplate(), this._balloon.on( "set:visibleView", - (O, T, X, i) => { + (O, T, G, i) => { const { formView: u } = this._linkUI; - X === i || X !== u || this._alignFocus(); + G === i || G !== u || this._alignFocus(); } ); } @@ -1604,8 +1604,8 @@ class Vu extends Hn { ]) ), O.isEmpty && this._showLinkTypeForm("default"), this.linkTypeDropdownView.on("execute", (T) => { if (T.source.linkOption) { - const X = T.source.linkOption; - this._selectLinkTypeDropdownItem(X.refHandle), this._showLinkTypeForm(X, _); + const G = T.source.linkOption; + this._selectLinkTypeDropdownItem(G.refHandle), this._showLinkTypeForm(G, _); } else this._selectLinkTypeDropdownItem("default"), this._showLinkTypeForm("default"); }), this.listenTo(O, "change:value", () => { @@ -1665,7 +1665,7 @@ class Vu extends Hn { const _ = []; for (const E of this.linkOptions) _.push( - new bi({ + new yi({ label: E.label, handle: E.refHandle, linkOption: E, @@ -1673,7 +1673,7 @@ class Vu extends Hn { }) ); return _.push( - new bi({ + new yi({ label: Craft.t("app", "URL"), handle: "default", withText: !0 @@ -1685,8 +1685,8 @@ class Vu extends Hn { */ _showLinkTypeForm(_) { var u, f, k, d; - const { formView: E } = this._linkUI, { children: O } = E, { urlInputView: T } = E, { displayedTextInputView: X } = E; - X.focus(), this.linkTypeWrapperView !== null && O.remove(this.linkTypeWrapperView), _ === "default" ? (this.elementInputView = T, 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 Lu(E.locale, { + const { formView: E } = this._linkUI, { children: O } = E, { urlInputView: T } = E, { displayedTextInputView: G } = E; + G.focus(), this.linkTypeWrapperView !== null && O.remove(this.linkTypeWrapperView), _ === "default" ? (this.elementInputView = T, 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 Lu(E.locale, { linkUi: this, linkOption: _, value: this._urlInputValue() @@ -1725,8 +1725,8 @@ class Vu extends Hn { * Show element selector modal for given element type (link option). */ _showElementSelectorModal(_) { - const E = this.editor, O = E.model, T = O.document.selection, X = T.isCollapsed, i = T.getFirstRange(), u = this._linkUI._getSelectedLinkElement(), f = () => { - E.editing.view.focus(), !X && i && O.change((k) => { + const E = this.editor, O = E.model, T = O.document.selection, G = T.isCollapsed, i = T.getFirstRange(), u = this._linkUI._getSelectedLinkElement(), f = () => { + E.editing.view.focus(), !G && i && O.change((k) => { k.setSelection(i); }), this._linkUI._hideFakeVisualSelection(); }; @@ -1739,24 +1739,24 @@ class Vu extends Hn { onSelect: (k) => { if (k.length) { const d = k[0], C = `${d.url}#${_.refHandle}:${d.id}@${d.siteId}`; - if (E.editing.view.focus(), (!X || u) && i) { + if (E.editing.view.focus(), (!G || u) && i) { O.change((v) => { v.setSelection(i); }); const m = E.commands.get("link"); - let y = this._getAdvancedFieldValues(); - m.execute(C, y); + let b = this._getAdvancedFieldValues(); + m.execute(C, b); } else O.change((m) => { - let y = this._getAdvancedFieldValues(); + let b = this._getAdvancedFieldValues(); if (m.insertText( d.label, { linkHref: C }, T.getFirstPosition(), - y - ), i instanceof bu) + b + ), i instanceof yu) try { const v = i.clone(); v.end.path[1] += d.label.length, m.setSelection(v); @@ -1791,46 +1791,46 @@ class Vu extends Hn { this.advancedView = new Uu(E.locale, { linkUi: this }), O.add(this.advancedView, 3); - for (const X of this.advancedLinkFields) { - let i = (T = X.conversion) == null ? void 0 : T.model; + for (const G of this.advancedLinkFields) { + let i = (T = G.conversion) == null ? void 0 : T.model; if (i && typeof E[i] > "u") - if (X.conversion.type === "bool") { - const u = new yu(); + if (G.conversion.type === "bool") { + const u = new bu(); u.set({ withText: !0, - label: X.label, + label: G.label, isToggleable: !0 - }), X.tooltip && (u.tooltip = X.tooltip), this.advancedView.advancedChildren.add(u), E[i] = u, E[i].bind("isOn").to(_, i, (f) => f === void 0 ? (E[i].element.value = "", !1) : (E[i].element.value = X.conversion.value, !0)), u.on("execute", () => { - u.isOn ? (u.isOn = !1, E[i].element.value = "") : (u.isOn = !0, E[i].element.value = X.conversion.value); + }), G.tooltip && (u.tooltip = G.tooltip), this.advancedView.advancedChildren.add(u), E[i] = u, E[i].bind("isOn").to(_, i, (f) => f === void 0 ? (E[i].element.value = "", !1) : (E[i].element.value = G.conversion.value, !0)), u.on("execute", () => { + u.isOn ? (u.isOn = !1, E[i].element.value = "") : (u.isOn = !0, E[i].element.value = G.conversion.value); }); } else { - let u = this._addLabeledField(X); + let u = this._addLabeledField(G); E[i] = u, E[i].fieldView.bind("value").to(_, i), E[i].fieldView.element.value = _[i] || ""; } - else if (X.value === "urlSuffix") { - let u = this._addLabeledField(X); + else if (G.value === "urlSuffix") { + let u = this._addLabeledField(G); this.listenTo( u.fieldView, "change:isFocused", (f, k, d, C) => { if (d !== C && !d) { - let m = f.source.element.value, y = null; + let m = f.source.element.value, b = null; const v = this._urlInputRefMatch(this.urlWithRefHandleRE); - v ? y = v[1] : y = this._urlInputValue(); + v ? b = v[1] : b = this._urlInputValue(); try { - let N = new URL(y), I = N.search, D = N.hash, L = y.replace(D, "").replace(I, ""); - const se = this._urlInputValue().replace( - y, + let N = new URL(b), I = N.search, D = N.hash, L = b.replace(D, "").replace(I, ""); + const ae = this._urlInputValue().replace( + b, L + m ); - E.urlInputView.fieldView.set("value", se); + E.urlInputView.fieldView.set("value", ae); } catch { - let [I, D] = y.split("#"), [L, se] = I.split("?"); - const ee = this._urlInputValue().replace( - y, + let [I, D] = b.split("#"), [L, ae] = I.split("?"); + const te = this._urlInputValue().replace( + b, L + m ); - E.urlInputView.fieldView.set("value", ee); + E.urlInputView.fieldView.set("value", te); } } } @@ -1870,7 +1870,7 @@ class Vu extends Hn { let T = null; O ? T = O[1] : T = this._urlInputValue(); try { - let X = new URL(T), i = X.search, u = X.hash; + let G = new URL(T), i = G.search, u = G.hash; _.fieldView.set("value", i + u); } catch { let [i, u] = T.split("#"), [f, k] = i.split("?"); @@ -1889,7 +1889,7 @@ class Vu extends Hn { let T = this._getAdvancedFieldValues(); E.once( "execute", - (X, i) => { + (G, i) => { i.length === 4 ? Object.assign(i[3], T) : i.push(T); }, { priority: "highest" } @@ -1947,11 +1947,11 @@ function $u() { k(d, C), i.exports = d.locals || {}; }, 42: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.toString = void 0; - const k = f(1099), d = f(7860), C = f(5180), m = { string: k.quoteString, number: (y) => Object.is(y, -0) ? "-0" : String(y), boolean: String, symbol: (y, v, N) => { - const I = Symbol.keyFor(y); - return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(y.description)})`; - }, bigint: (y, v, N) => `BigInt(${N(String(y))})`, undefined: String, object: d.objectToString, function: C.functionToString }; - u.toString = (y, v, N, I) => y === null ? "null" : m[typeof y](y, v, N, I); + const k = f(1099), d = f(7860), C = f(5180), m = { string: k.quoteString, number: (b) => Object.is(b, -0) ? "-0" : String(b), boolean: String, symbol: (b, v, N) => { + const I = Symbol.keyFor(b); + return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(b.description)})`; + }, bigint: (b, v, N) => `BigInt(${N(String(b))})`, undefined: String, object: d.objectToString, function: C.functionToString }; + u.toString = (b, v, N, I) => b === null ? "null" : m[typeof b](b, v, N, I); }, 312: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }); var k, d = f(1720), C = (k = d) && k.__esModule ? k : { default: k }; @@ -1991,49 +1991,49 @@ function $u() { return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F; }, k(R); } - Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = D, u.matchesSelectorAndParentsTo = function(R, F, H) { - var ne = R; + Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = D, u.matchesSelectorAndParentsTo = function(R, F, q) { + var X = R; do { - if (D(ne, F)) return !0; - if (ne === H) return !1; - ne = ne.parentNode; - } while (ne); + if (D(X, F)) return !0; + if (X === q) return !1; + X = X.parentNode; + } while (X); return !1; - }, u.addEvent = function(R, F, H, ne) { + }, u.addEvent = function(R, F, q, X) { if (R) { - var pe = v({ capture: !0 }, ne); - R.addEventListener ? R.addEventListener(F, H, pe) : R.attachEvent ? R.attachEvent("on" + F, H) : R["on" + F] = H; + var pe = v({ capture: !0 }, X); + R.addEventListener ? R.addEventListener(F, q, pe) : R.attachEvent ? R.attachEvent("on" + F, q) : R["on" + F] = q; } - }, u.removeEvent = function(R, F, H, ne) { + }, u.removeEvent = function(R, F, q, X) { if (R) { - var pe = v({ capture: !0 }, ne); - R.removeEventListener ? R.removeEventListener(F, H, pe) : R.detachEvent ? R.detachEvent("on" + F, H) : R["on" + F] = null; + var pe = v({ capture: !0 }, X); + R.removeEventListener ? R.removeEventListener(F, q, pe) : R.detachEvent ? R.detachEvent("on" + F, q) : R["on" + F] = null; } }, u.outerHeight = function(R) { - var F = R.clientHeight, H = R.ownerDocument.defaultView.getComputedStyle(R); - return F += (0, d.int)(H.borderTopWidth), F += (0, d.int)(H.borderBottomWidth); + var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); + return F += (0, d.int)(q.borderTopWidth), F += (0, d.int)(q.borderBottomWidth); }, u.outerWidth = function(R) { - var F = R.clientWidth, H = R.ownerDocument.defaultView.getComputedStyle(R); - return F += (0, d.int)(H.borderLeftWidth), F += (0, d.int)(H.borderRightWidth); + var F = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R); + return F += (0, d.int)(q.borderLeftWidth), F += (0, d.int)(q.borderRightWidth); }, u.innerHeight = function(R) { - var F = R.clientHeight, H = R.ownerDocument.defaultView.getComputedStyle(R); - return F -= (0, d.int)(H.paddingTop), F -= (0, d.int)(H.paddingBottom); + var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); + return F -= (0, d.int)(q.paddingTop), F -= (0, d.int)(q.paddingBottom); }, u.innerWidth = function(R) { - var F = R.clientWidth, H = R.ownerDocument.defaultView.getComputedStyle(R); - return F -= (0, d.int)(H.paddingLeft), F -= (0, d.int)(H.paddingRight); - }, u.offsetXYFromParent = function(R, F, H) { - var ne = F === F.ownerDocument.body ? { left: 0, top: 0 } : F.getBoundingClientRect(), pe = (R.clientX + F.scrollLeft - ne.left) / H, oe = (R.clientY + F.scrollTop - ne.top) / H; + 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 X = F === F.ownerDocument.body ? { left: 0, top: 0 } : F.getBoundingClientRect(), pe = (R.clientX + F.scrollLeft - X.left) / q, oe = (R.clientY + F.scrollTop - X.top) / q; return { x: pe, y: oe }; }, u.createCSSTransform = function(R, F) { - var H = L(R, F, "px"); - return N({}, (0, C.browserPrefixToKey)("transform", C.default), H); + var q = L(R, F, "px"); + return N({}, (0, C.browserPrefixToKey)("transform", C.default), q); }, u.createSVGTransform = function(R, F) { return L(R, F, ""); }, u.getTranslation = L, u.getTouch = function(R, F) { - return R.targetTouches && (0, d.findInArray)(R.targetTouches, function(H) { - return F === H.identifier; - }) || R.changedTouches && (0, d.findInArray)(R.changedTouches, function(H) { - return F === H.identifier; + return R.targetTouches && (0, d.findInArray)(R.targetTouches, function(q) { + return F === q.identifier; + }) || R.changedTouches && (0, d.findInArray)(R.changedTouches, function(q) { + return F === q.identifier; }); }, u.getTouchIdentifier = function(R) { if (R.targetTouches && R.targetTouches[0]) return R.targetTouches[0].identifier; @@ -2043,30 +2043,30 @@ function $u() { 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 && se(R.body, "react-draggable-transparent-selection"); +`, R.getElementsByTagName("head")[0].appendChild(F)), R.body && ae(R.body, "react-draggable-transparent-selection"); } }, u.removeUserSelectStyles = function(R) { if (R) try { - if (R.body && ee(R.body, "react-draggable-transparent-selection"), R.selection) R.selection.empty(); + 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(); } } catch { } - }, u.addClassName = se, u.removeClassName = ee; + }, u.addClassName = ae, u.removeClassName = te; var d = f(7056), C = (function(R) { if (R && R.__esModule) return R; if (R === null || k(R) !== "object" && typeof R != "function") return { default: R }; var F = m(); if (F && F.has(R)) return F.get(R); - var H = {}, ne = Object.defineProperty && Object.getOwnPropertyDescriptor; + var q = {}, X = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var pe in R) if (Object.prototype.hasOwnProperty.call(R, pe)) { - var oe = ne ? Object.getOwnPropertyDescriptor(R, pe) : null; - oe && (oe.get || oe.set) ? Object.defineProperty(H, pe, oe) : H[pe] = R[pe]; + var oe = X ? Object.getOwnPropertyDescriptor(R, pe) : null; + oe && (oe.get || oe.set) ? Object.defineProperty(q, pe, oe) : q[pe] = R[pe]; } - return H.default = R, F && F.set(R, H), H; + return q.default = R, F && F.set(R, q), q; })(f(3514)); function m() { if (typeof WeakMap != "function") return null; @@ -2075,69 +2075,69 @@ function $u() { return R; }, R; } - function y(R, F) { - var H = Object.keys(R); + function b(R, F) { + var q = Object.keys(R); if (Object.getOwnPropertySymbols) { - var ne = Object.getOwnPropertySymbols(R); - F && (ne = ne.filter(function(pe) { + var X = Object.getOwnPropertySymbols(R); + F && (X = X.filter(function(pe) { return Object.getOwnPropertyDescriptor(R, pe).enumerable; - })), H.push.apply(H, ne); + })), q.push.apply(q, X); } - return H; + return q; } function v(R) { for (var F = 1; F < arguments.length; F++) { - var H = arguments[F] != null ? arguments[F] : {}; - F % 2 ? y(Object(H), !0).forEach(function(ne) { - N(R, ne, H[ne]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(H)) : y(Object(H)).forEach(function(ne) { - Object.defineProperty(R, ne, Object.getOwnPropertyDescriptor(H, ne)); + var q = arguments[F] != null ? arguments[F] : {}; + F % 2 ? b(Object(q), !0).forEach(function(X) { + N(R, X, q[X]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(q)) : b(Object(q)).forEach(function(X) { + Object.defineProperty(R, X, Object.getOwnPropertyDescriptor(q, X)); }); } return R; } - function N(R, F, H) { - return F in R ? Object.defineProperty(R, F, { value: H, enumerable: !0, configurable: !0, writable: !0 }) : R[F] = H, 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; } var I = ""; function D(R, F) { - return I || (I = (0, d.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(H) { - return (0, d.isFunction)(R[H]); + 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); } - function L(R, F, H) { - var ne = R.x, pe = R.y, oe = "translate(".concat(ne).concat(H, ",").concat(pe).concat(H, ")"); + function L(R, F, q) { + var X = R.x, pe = R.y, oe = "translate(".concat(X).concat(q, ",").concat(pe).concat(q, ")"); if (F) { - var fe = "".concat(typeof F.x == "string" ? F.x : F.x + H), ge = "".concat(typeof F.y == "string" ? F.y : F.y + H); - oe = "translate(".concat(fe, ", ").concat(ge, ")") + oe; + 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; } return oe; } - function se(R, F) { + function ae(R, F) { R.classList ? R.classList.add(F) : R.className.match(new RegExp("(?:^|\\s)".concat(F, "(?!\\S)"))) || (R.className += " ".concat(F)); } - function ee(R, F) { + function te(R, F) { R.classList ? R.classList.remove(F) : R.className = R.className.replace(new RegExp("(?:^|\\s)".concat(F, "(?!\\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, k = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [` `, "\\n"], ["\f", "\\f"], ["\r", "\\r"], ["'", "\\'"], ['"', '\\"'], ["\\", "\\\\"]]); - function d(y) { - return k.get(y) || `\\u${`0000${y.charCodeAt(0).toString(16)}`.slice(-4)}`; + function d(b) { + return k.get(b) || `\\u${`0000${b.charCodeAt(0).toString(16)}`.slice(-4)}`; } - u.quoteString = function(y) { - return `'${y.replace(f, d)}'`; + u.quoteString = function(b) { + return `'${b.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 m(y) { - return typeof y == "string" && !C.has(y) && u.IS_VALID_IDENTIFIER.test(y); + function m(b) { + return typeof b == "string" && !C.has(b) && u.IS_VALID_IDENTIFIER.test(b); } - u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = m, u.quoteKey = function(y, v) { - return m(y) ? y : v(y); - }, u.stringifyPath = function(y, v) { + u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = m, u.quoteKey = function(b, v) { + return m(b) ? b : v(b); + }, u.stringifyPath = function(b, v) { let N = ""; - for (const I of y) m(I) ? N += `.${I}` : N += `[${v(I)}]`; + for (const I of b) m(I) ? N += `.${I}` : N += `[${v(I)}]`; return N; }; }, 1197: (i, u, f) => { @@ -2152,33 +2152,33 @@ function $u() { k(d, C), i.exports = d.locals || {}; }, 1345: (i, u, f) => { function k() { - var y = this.constructor.getDerivedStateFromProps(this.props, this.state); - y != null && this.setState(y); + var b = this.constructor.getDerivedStateFromProps(this.props, this.state); + b != null && this.setState(b); } - function d(y) { + function d(b) { this.setState((function(v) { - var N = this.constructor.getDerivedStateFromProps(y, v); + var N = this.constructor.getDerivedStateFromProps(b, v); return N ?? null; }).bind(this)); } - function C(y, v) { + function C(b, v) { try { var N = this.props, I = this.state; - this.props = y, this.state = v, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); + this.props = b, this.state = v, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); } finally { this.props = N, this.state = I; } } - function m(y) { - var v = y.prototype; + function m(b) { + var v = b.prototype; if (!v || !v.isReactComponent) throw new Error("Can only polyfill class components"); - if (typeof y.getDerivedStateFromProps != "function" && typeof v.getSnapshotBeforeUpdate != "function") return y; + if (typeof b.getDerivedStateFromProps != "function" && typeof v.getSnapshotBeforeUpdate != "function") return b; var N = null, I = null, D = null; if (typeof v.componentWillMount == "function" ? N = "componentWillMount" : typeof v.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof v.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof v.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof v.componentWillUpdate == "function" ? D = "componentWillUpdate" : typeof v.UNSAFE_componentWillUpdate == "function" && (D = "UNSAFE_componentWillUpdate"), N !== null || I !== null || D !== null) { - var L = y.displayName || y.name, se = typeof y.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + var L = b.displayName || b.name, ae = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. -` + L + " uses " + se + " but also contains the following legacy lifecycles:" + (N !== null ? ` +` + L + " uses " + ae + " but also contains the following legacy lifecycles:" + (N !== null ? ` ` + N : "") + (I !== null ? ` ` + I : "") + (D !== null ? ` ` + D : "") + ` @@ -2186,16 +2186,16 @@ function $u() { The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`); } - if (typeof y.getDerivedStateFromProps == "function" && (v.componentWillMount = k, v.componentWillReceiveProps = d), typeof v.getSnapshotBeforeUpdate == "function") { + if (typeof b.getDerivedStateFromProps == "function" && (v.componentWillMount = k, v.componentWillReceiveProps = d), typeof v.getSnapshotBeforeUpdate == "function") { if (typeof v.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"); v.componentWillUpdate = C; - var ee = v.componentDidUpdate; - v.componentDidUpdate = function(R, F, H) { - var ne = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : H; - ee.call(this, R, F, ne); + var te = v.componentDidUpdate; + v.componentDidUpdate = function(R, F, q) { + var X = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : q; + te.call(this, R, F, X); }; } - return y; + return b; } f.r(u), f.d(u, { polyfill: () => m }), k.__suppressDeprecationWarning = !0, d.__suppressDeprecationWarning = !0, C.__suppressDeprecationWarning = !0; }, 1720: (i, u, f) => { @@ -2203,136 +2203,136 @@ https://fb.me/react-async-component-lifecycle-hooks`); var k = Object.assign || function(S) { for (var j = 1; j < arguments.length; j++) { var A = arguments[j]; - for (var ae in A) Object.prototype.hasOwnProperty.call(A, ae) && (S[ae] = A[ae]); + for (var se in A) Object.prototype.hasOwnProperty.call(A, se) && (S[se] = A[se]); } return S; }, d = /* @__PURE__ */ (function() { function S(j, A) { - for (var ae = 0; ae < A.length; ae++) { - var Z = A[ae]; - Z.enumerable = Z.enumerable || !1, Z.configurable = !0, "value" in Z && (Z.writable = !0), Object.defineProperty(j, Z.key, Z); + 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(j, J.key, J); } } - return function(j, A, ae) { - return A && S(j.prototype, A), ae && S(j, ae), j; + return function(j, A, se) { + return A && S(j.prototype, A), se && S(j, se), j; }; - })(), C = f(6540), m = ee(C), y = ee(f(961)), v = ee(f(5556)), N = ee(f(9090)), I = (function(S) { + })(), C = f(6540), m = te(C), b = te(f(961)), v = te(f(5556)), N = te(f(9090)), I = (function(S) { if (S && S.__esModule) return S; 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 = ee(D), se = f(1345); - function ee(S) { + })(f(6462)), D = f(834), L = te(D), ae = f(1345); + function te(S) { return S && S.__esModule ? S : { default: S }; } function R(S, j) { if (!S) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !j || typeof j != "object" && typeof j != "function" ? S : j; } - var F = u.portalClassName = "ReactModalPortal", H = u.bodyOpenClassName = "ReactModal__Body--open", ne = D.canUseDOM && y.default.createPortal !== void 0, pe = function(S) { + var F = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", X = D.canUseDOM && b.default.createPortal !== void 0, pe = function(S) { return document.createElement(S); }, oe = function() { - return ne ? y.default.createPortal : y.default.unstable_renderSubtreeIntoContainer; + return X ? b.default.createPortal : b.default.unstable_renderSubtreeIntoContainer; }; function fe(S) { return S(); } - var ge = (function(S) { + var he = (function(S) { function j() { - var A, ae, Z; - (function(G, le) { - if (!(G instanceof le)) throw new TypeError("Cannot call a class as a function"); + var A, se, J; + (function(Z, le) { + if (!(Z instanceof le)) throw new TypeError("Cannot call a class as a function"); })(this, j); - for (var Ee = arguments.length, J = Array(Ee), U = 0; U < Ee; U++) J[U] = arguments[U]; - return ae = Z = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(J))), Z.removePortal = function() { - !ne && y.default.unmountComponentAtNode(Z.node); - var G = fe(Z.props.parentSelector); - G && G.contains(Z.node) ? G.removeChild(Z.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.'); - }, Z.portalRef = function(G) { - Z.portal = G; - }, Z.renderPortal = function(G) { - var le = oe()(Z, m.default.createElement(N.default, k({ defaultStyles: j.defaultStyles }, G)), Z.node); - Z.portalRef(le); - }, R(Z, ae); - } - return (function(A, ae) { - if (typeof ae != "function" && ae !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof ae); - A.prototype = Object.create(ae && ae.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), ae && (Object.setPrototypeOf ? Object.setPrototypeOf(A, ae) : A.__proto__ = ae); + 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() { + !X && b.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, m.default.createElement(N.default, k({ 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); })(j, S), d(j, [{ key: "componentDidMount", value: function() { - D.canUseDOM && (ne || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !ne && this.renderPortal(this.props)); + D.canUseDOM && (X || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !X && this.renderPortal(this.props)); } }, { key: "getSnapshotBeforeUpdate", value: function(A) { return { prevParent: fe(A.parentSelector), nextParent: fe(this.props.parentSelector) }; - } }, { key: "componentDidUpdate", value: function(A, ae, Z) { + } }, { key: "componentDidUpdate", value: function(A, se, J) { if (D.canUseDOM) { - var Ee = this.props, J = Ee.isOpen, U = Ee.portalClassName; + var Ee = this.props, ee = Ee.isOpen, U = Ee.portalClassName; A.portalClassName !== U && (this.node.className = U); - var G = Z.prevParent, le = Z.nextParent; - le !== G && (G.removeChild(this.node), le.appendChild(this.node)), (A.isOpen || J) && !ne && this.renderPortal(this.props); + var Z = J.prevParent, le = J.nextParent; + le !== Z && (Z.removeChild(this.node), le.appendChild(this.node)), (A.isOpen || ee) && !X && this.renderPortal(this.props); } } }, { key: "componentWillUnmount", value: function() { if (D.canUseDOM && this.node && this.portal) { - var A = this.portal.state, ae = Date.now(), Z = A.isOpen && this.props.closeTimeoutMS && (A.closesAt || ae + this.props.closeTimeoutMS); - Z ? (A.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, Z - ae)) : this.removePortal(); + 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 D.canUseDOM && ne ? (!this.node && ne && (this.node = pe("div")), oe()(m.default.createElement(N.default, k({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null; + return D.canUseDOM && X ? (!this.node && X && (this.node = pe("div")), oe()(m.default.createElement(N.default, k({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null; } }], [{ key: "setAppElement", value: function(A) { I.setElement(A); } }]), j; })(C.Component); - ge.propTypes = { isOpen: v.default.bool.isRequired, style: v.default.shape({ content: v.default.object, overlay: v.default.object }), portalClassName: v.default.string, bodyOpenClassName: v.default.string, htmlOpenClassName: v.default.string, className: v.default.oneOfType([v.default.string, v.default.shape({ base: v.default.string.isRequired, afterOpen: v.default.string.isRequired, beforeClose: v.default.string.isRequired })]), overlayClassName: v.default.oneOfType([v.default.string, v.default.shape({ base: v.default.string.isRequired, afterOpen: v.default.string.isRequired, beforeClose: v.default.string.isRequired })]), appElement: v.default.oneOfType([v.default.instanceOf(L.default), v.default.instanceOf(D.SafeHTMLCollection), v.default.instanceOf(D.SafeNodeList), v.default.arrayOf(v.default.instanceOf(L.default))]), onAfterOpen: v.default.func, onRequestClose: v.default.func, closeTimeoutMS: v.default.number, ariaHideApp: v.default.bool, shouldFocusAfterRender: v.default.bool, shouldCloseOnOverlayClick: v.default.bool, shouldReturnFocusAfterClose: v.default.bool, preventScroll: v.default.bool, parentSelector: v.default.func, aria: v.default.object, data: v.default.object, role: v.default.string, contentLabel: v.default.string, shouldCloseOnEsc: v.default.bool, overlayRef: v.default.func, contentRef: v.default.func, id: v.default.string, overlayElement: v.default.func, contentElement: v.default.func }, ge.defaultProps = { isOpen: !1, portalClassName: F, bodyOpenClassName: H, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() { + he.propTypes = { isOpen: v.default.bool.isRequired, style: v.default.shape({ content: v.default.object, overlay: v.default.object }), portalClassName: v.default.string, bodyOpenClassName: v.default.string, htmlOpenClassName: v.default.string, className: v.default.oneOfType([v.default.string, v.default.shape({ base: v.default.string.isRequired, afterOpen: v.default.string.isRequired, beforeClose: v.default.string.isRequired })]), overlayClassName: v.default.oneOfType([v.default.string, v.default.shape({ base: v.default.string.isRequired, afterOpen: v.default.string.isRequired, beforeClose: v.default.string.isRequired })]), appElement: v.default.oneOfType([v.default.instanceOf(L.default), v.default.instanceOf(D.SafeHTMLCollection), v.default.instanceOf(D.SafeNodeList), v.default.arrayOf(v.default.instanceOf(L.default))]), onAfterOpen: v.default.func, onRequestClose: v.default.func, closeTimeoutMS: v.default.number, ariaHideApp: v.default.bool, shouldFocusAfterRender: v.default.bool, shouldCloseOnOverlayClick: v.default.bool, shouldReturnFocusAfterClose: v.default.bool, preventScroll: v.default.bool, parentSelector: v.default.func, aria: v.default.object, data: v.default.object, role: v.default.string, contentLabel: v.default.string, shouldCloseOnEsc: v.default.bool, overlayRef: v.default.func, contentRef: v.default.func, id: v.default.string, overlayElement: v.default.func, contentElement: v.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() { return document.body; }, overlayElement: function(S, j) { return m.default.createElement("div", S, j); }, contentElement: function(S, j) { return m.default.createElement("div", S, j); - } }, ge.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, se.polyfill)(ge), u.default = ge; + } }, 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; }, 1726: (i, u, f) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(m, y, v) { - if (!m.props.bounds) return [y, v]; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(m, b, v) { + if (!m.props.bounds) return [b, v]; var N = m.props.bounds; N = typeof N == "string" ? N : (function(F) { return { left: F.left, top: F.top, right: F.right, bottom: F.bottom }; })(N); var I = C(m); if (typeof N == "string") { - var D, L = I.ownerDocument, se = L.defaultView; - if (!((D = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof se.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); - var ee = se.getComputedStyle(I), R = se.getComputedStyle(D); - N = { left: -I.offsetLeft + (0, k.int)(R.paddingLeft) + (0, k.int)(ee.marginLeft), top: -I.offsetTop + (0, k.int)(R.paddingTop) + (0, k.int)(ee.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, k.int)(R.paddingRight) - (0, k.int)(ee.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, k.int)(R.paddingBottom) - (0, k.int)(ee.marginBottom) }; - } - return (0, k.isNum)(N.right) && (y = Math.min(y, N.right)), (0, k.isNum)(N.bottom) && (v = Math.min(v, N.bottom)), (0, k.isNum)(N.left) && (y = Math.max(y, N.left)), (0, k.isNum)(N.top) && (v = Math.max(v, N.top)), [y, v]; - }, u.snapToGrid = function(m, y, v) { - var N = Math.round(y / m[0]) * m[0], I = Math.round(v / m[1]) * m[1]; + var D, L = I.ownerDocument, ae = L.defaultView; + if (!((D = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof ae.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); + var te = ae.getComputedStyle(I), R = ae.getComputedStyle(D); + N = { left: -I.offsetLeft + (0, k.int)(R.paddingLeft) + (0, k.int)(te.marginLeft), top: -I.offsetTop + (0, k.int)(R.paddingTop) + (0, k.int)(te.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, k.int)(R.paddingRight) - (0, k.int)(te.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, k.int)(R.paddingBottom) - (0, k.int)(te.marginBottom) }; + } + return (0, k.isNum)(N.right) && (b = Math.min(b, N.right)), (0, k.isNum)(N.bottom) && (v = Math.min(v, N.bottom)), (0, k.isNum)(N.left) && (b = Math.max(b, N.left)), (0, k.isNum)(N.top) && (v = Math.max(v, N.top)), [b, v]; + }, u.snapToGrid = function(m, b, v) { + var N = Math.round(b / m[0]) * m[0], I = Math.round(v / m[1]) * m[1]; return [N, I]; }, u.canDragX = function(m) { return m.props.axis === "both" || m.props.axis === "x"; }, u.canDragY = function(m) { return m.props.axis === "both" || m.props.axis === "y"; - }, u.getControlPosition = function(m, y, v) { - var N = typeof y == "number" ? (0, d.getTouch)(m, y) : null; - if (typeof y == "number" && !N) return null; + }, u.getControlPosition = function(m, b, v) { + var N = typeof b == "number" ? (0, d.getTouch)(m, b) : null; + if (typeof b == "number" && !N) return null; var I = C(v), D = v.props.offsetParent || I.offsetParent || I.ownerDocument.body; return (0, d.offsetXYFromParent)(N || m, D, v.props.scale); - }, u.createCoreData = function(m, y, v) { + }, u.createCoreData = function(m, b, v) { var N = m.state, I = !(0, k.isNum)(N.lastX), D = C(m); - return I ? { node: D, deltaX: 0, deltaY: 0, lastX: y, lastY: v, x: y, y: v } : { node: D, deltaX: y - N.lastX, deltaY: v - N.lastY, lastX: N.lastX, lastY: N.lastY, x: y, y: v }; - }, u.createDraggableData = function(m, y) { + return I ? { node: D, deltaX: 0, deltaY: 0, lastX: b, lastY: v, x: b, y: v } : { node: D, deltaX: b - N.lastX, deltaY: v - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: v }; + }, u.createDraggableData = function(m, b) { var v = m.props.scale; - return { node: y.node, x: m.state.x + y.deltaX / v, y: m.state.y + y.deltaY / v, deltaX: y.deltaX / v, deltaY: y.deltaY / v, lastX: m.state.x, lastY: m.state.y }; + return { node: b.node, x: m.state.x + b.deltaX / v, y: m.state.y + b.deltaY / v, deltaX: b.deltaX / v, deltaY: b.deltaY / v, lastX: m.state.x, lastY: m.state.y }; }; var k = f(7056), d = f(1089); function C(m) { - var y = m.findDOMNode(); - if (!y) throw new Error(": Unmounted during event!"); - return y; + var b = m.findDOMNode(); + if (!b) throw new Error(": Unmounted during event!"); + return b; } }, 2411: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function v(N) { var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(D, L) { return D.concat(L.shadowRoot ? v(L.shadowRoot) : [L]); }, []); - return I.filter(y); + return I.filter(b); }; var f = "none", k = "contents", d = /^(input|select|textarea|button|object|iframe)$/; function C(v) { @@ -2340,8 +2340,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (N && !v.innerHTML) return !0; try { var I = window.getComputedStyle(v), D = I.getPropertyValue("display"); - return N ? D !== k && (function(L, se) { - return se.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0; + return N ? D !== k && (function(L, ae) { + return ae.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0; })(v, I) : D === f; } catch { return console.warn("Failed to inspect element style"), !1; @@ -2350,14 +2350,14 @@ https://fb.me/react-async-component-lifecycle-hooks`); function m(v, N) { var I = v.nodeName.toLowerCase(); return (d.test(I) && !v.disabled || I === "a" && v.href || N) && (function(D) { - for (var L = D, se = D.getRootNode && D.getRootNode(); L && L !== document.body; ) { - if (se && L === se && (L = se.host.parentNode), C(L)) return !1; + for (var L = D, ae = D.getRootNode && D.getRootNode(); L && L !== document.body; ) { + if (ae && L === ae && (L = ae.host.parentNode), C(L)) return !1; L = L.parentNode; } return !0; })(v); } - function y(v) { + function b(v) { var N = v.getAttribute("tabindex"); N === null && (N = void 0); var I = isNaN(N); @@ -2378,7 +2378,7 @@ 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 (!k) throw Error(m(227)); - function y(e, t, n, r, a, p, h, w, W) { + function b(e, t, n, r, a, p, h, w, B) { var V = Array.prototype.slice.call(arguments, 3); try { t.apply(n, V); @@ -2389,34 +2389,34 @@ https://fb.me/react-async-component-lifecycle-hooks`); var v = !1, N = null, I = !1, D = null, L = { onError: function(e) { v = !0, N = e; } }; - function se(e, t, n, r, a, p, h, w, W) { - v = !1, N = null, y.apply(L, arguments); + function ae(e, t, n, r, a, p, h, w, B) { + v = !1, N = null, b.apply(L, arguments); } - var ee = null, R = null, F = null; - function H(e, t, n) { + var te = null, R = null, F = null; + function q(e, t, n) { var r = e.type || "unknown-event"; - e.currentTarget = F(n), (function(a, p, h, w, W, V, ce, Re, Ve) { - if (se.apply(this, arguments), v) { + e.currentTarget = F(n), (function(a, p, h, w, B, V, ce, Re, Ve) { + if (ae.apply(this, arguments), v) { if (!v) throw Error(m(198)); var ot = N; v = !1, N = null, I || (I = !0, D = ot); } })(r, t, void 0, e), e.currentTarget = null; } - var ne = null, pe = {}; + var X = null, pe = {}; function oe() { - if (ne) for (var e in pe) { - var t = pe[e], n = ne.indexOf(e); + if (X) for (var e in pe) { + var t = pe[e], n = X.indexOf(e); if (!(-1 < n)) throw Error(m(96, e)); - if (!ge[n]) { + if (!he[n]) { if (!t.extractEvents) throw Error(m(97, e)); - for (var r in ge[n] = t, n = t.eventTypes) { + for (var r in he[n] = t, n = t.eventTypes) { var a = void 0, p = n[r], h = t, w = r; if (S.hasOwnProperty(w)) throw Error(m(99, w)); S[w] = p; - var W = p.phasedRegistrationNames; - if (W) { - for (a in W) W.hasOwnProperty(a) && fe(W[a], h, w); + var B = p.phasedRegistrationNames; + if (B) { + for (a in B) B.hasOwnProperty(a) && fe(B[a], h, w); a = !0; } else p.registrationName ? (fe(p.registrationName, h, w), a = !0) : a = !1; if (!a) throw Error(m(98, r, e)); @@ -2428,8 +2428,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (j[e]) throw Error(m(100, e)); j[e] = t, A[e] = t.eventTypes[n].dependencies; } - var ge = [], S = {}, j = {}, A = {}; - function ae(e) { + var he = [], S = {}, j = {}, A = {}; + function se(e) { var t, n = !1; for (t in e) if (e.hasOwnProperty(t)) { var r = e[t]; @@ -2440,21 +2440,21 @@ https://fb.me/react-async-component-lifecycle-hooks`); } n && oe(); } - var Z = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Ee = null, J = null, U = null; - function G(e) { + 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(m(280)); var t = e.stateNode; - t && (t = ee(t), Ee(e.stateNode, e.type, t)); + t && (t = te(t), Ee(e.stateNode, e.type, t)); } } function le(e) { - J ? U ? U.push(e) : U = [e] : J = e; + ee ? U ? U.push(e) : U = [e] : ee = e; } - function me() { - if (J) { - var e = J, t = U; - if (U = J = null, G(e), t) for (e = 0; e < t.length; e++) G(t[e]); + function ge() { + if (ee) { + 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) { @@ -2467,9 +2467,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); } var Ae = ke, Le = !1, Ke = !1; function Je() { - J === null && U === null || (Ue(), me()); + ee === null && U === null || (Ue(), ge()); } - function be(e, t, n) { + function ye(e, t, n) { if (Ke) return e(t, n); Ke = !0; try { @@ -2478,7 +2478,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); Ke = !1, Je(); } } - 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]*$/, te = Object.prototype.hasOwnProperty, we = {}, Se = {}; + 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 = {}, Se = {}; 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; } @@ -2524,7 +2524,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var et = k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; 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, h, w, W) { + (a !== null ? a.type === 0 : !r && 2 < t.length && (t[0] === "o" || t[0] === "O") && (t[1] === "n" || t[1] === "N")) || ((function(p, h, w, B) { if (h == null || (function(V, ce, Re, Ve) { if (Re !== null && Re.type === 0) return !1; switch (typeof ce) { @@ -2536,8 +2536,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); default: return !1; } - })(p, h, w, W)) return !0; - if (W) return !1; + })(p, h, w, B)) return !0; + if (B) return !1; if (w !== null) switch (w.type) { case 3: return !h; @@ -2550,7 +2550,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return !1; })(t, n, a, r) && (n = null), r || a === null ? (function(p) { - return !!te.call(Se, p) || !te.call(we, p) && (P.test(p) ? Se[p] = !0 : (we[p] = !0, !1)); + return !!ne.call(Se, p) || !ne.call(we, p) && (P.test(p) ? Se[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 }); @@ -2733,7 +2733,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e.textContent; t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t); } - var hn = "http://www.w3.org/1999/xhtml", yi = "http://www.w3.org/2000/svg"; + var hn = "http://www.w3.org/1999/xhtml", bi = "http://www.w3.org/2000/svg"; function mn(e) { switch (e) { case "svg": @@ -2748,7 +2748,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return e == null || e === "http://www.w3.org/1999/xhtml" ? mn(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e; } var gn, ct, Dr = (ct = function(e, t) { - if (e.namespaceURI !== yi || "innerHTML" in e) e.innerHTML = t; + if (e.namespaceURI !== bi || "innerHTML" in e) e.innerHTML = t; else { for ((gn = gn || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = gn.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild); @@ -2777,8 +2777,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (t in n) if (n.hasOwnProperty(t) && t in Ir) return Rn[e] = n[t]; return e; } - Z && (Ir = document.createElement("div").style, "AnimationEvent" in window || (delete Qn.animationend.animation, delete Qn.animationiteration.animation, delete Qn.animationstart.animation), "TransitionEvent" in window || delete Qn.transitionend.transition); - var M = Rr("animationend"), Q = Rr("animationiteration"), ye = Rr("animationstart"), De = Rr("transitionend"), tt = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), He = new (typeof WeakMap == "function" ? WeakMap : Map)(); + J && (Ir = document.createElement("div").style, "AnimationEvent" in window || (delete Qn.animationend.animation, delete Qn.animationiteration.animation, delete Qn.animationstart.animation), "TransitionEvent" in window || delete Qn.transitionend.transition); + var M = Rr("animationend"), Q = Rr("animationiteration"), be = Rr("animationstart"), De = Rr("transitionend"), tt = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), He = new (typeof WeakMap == "function" ? WeakMap : Map)(); function Ge(e) { var t = He.get(e); return t === void 0 && (t = /* @__PURE__ */ new Map(), He.set(e, t)), t; @@ -2832,30 +2832,30 @@ https://fb.me/react-async-component-lifecycle-hooks`); } if (a.return !== p.return) a = h, p = w; else { - for (var W = !1, V = h.child; V; ) { + for (var B = !1, V = h.child; V; ) { if (V === a) { - W = !0, a = h, p = w; + B = !0, a = h, p = w; break; } if (V === p) { - W = !0, p = h, a = w; + B = !0, p = h, a = w; break; } V = V.sibling; } - if (!W) { + if (!B) { for (V = w.child; V; ) { if (V === a) { - W = !0, a = w, p = h; + B = !0, a = w, p = h; break; } if (V === p) { - W = !0, p = w, a = h; + B = !0, p = w, a = h; break; } V = V.sibling; } - if (!W) throw Error(m(189)); + if (!B) throw Error(m(189)); } } if (a.alternate !== p) throw Error(m(190)); @@ -2884,18 +2884,18 @@ https://fb.me/react-async-component-lifecycle-hooks`); function jt(e, t, n) { Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e); } - var bt = null; - function yt(e) { + var yt = null; + function bt(e) { if (e) { var t = e._dispatchListeners, n = e._dispatchInstances; - if (Array.isArray(t)) for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) H(e, t[r], n[r]); - else t && H(e, t, n); + if (Array.isArray(t)) for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) q(e, t[r], n[r]); + else t && q(e, t, n); e._dispatchListeners = null, e._dispatchInstances = null, e.isPersistent() || e.constructor.release(e); } } - function bn(e) { - if (e !== null && (bt = kt(bt, e)), e = bt, bt = null, e) { - if (jt(e, yt), bt) throw Error(m(95)); + function yn(e) { + if (e !== null && (yt = kt(yt, e)), e = yt, yt = null, e) { + if (jt(e, bt), yt) throw Error(m(95)); if (I) throw e = D, I = !1, D = null, e; } } @@ -2903,17 +2903,17 @@ https://fb.me/react-async-component-lifecycle-hooks`); return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e; } function Mn(e) { - if (!Z) return !1; + if (!J) return !1; var t = (e = "on" + e) in document; return t || ((t = document.createElement("div")).setAttribute(e, "return;"), t = typeof t[e] == "function"), t; } - var yn = []; + var bn = []; function Xr(e) { - e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > yn.length && yn.push(e); + e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > bn.length && bn.push(e); } function To(e, t, n, r) { - if (yn.length) { - var a = yn.pop(); + if (bn.length) { + var a = bn.pop(); return a.topLevelType = e, a.eventSystemFlags = r, a.nativeEvent = t, a.targetInst = n, a; } return { topLevelType: e, eventSystemFlags: r, nativeEvent: t, targetInst: n, ancestors: [] }; @@ -2940,11 +2940,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); r = e.topLevelType; var p = e.nativeEvent, h = e.eventSystemFlags; n === 0 && (h |= 64); - for (var w = null, W = 0; W < ge.length; W++) { - var V = ge[W]; + for (var w = null, B = 0; B < he.length; B++) { + var V = he[B]; V && (V = V.extractEvents(r, t, p, a, h)) && (w = kt(w, V)); } - bn(w); + yn(w); } } function nt(e, t, n) { @@ -3056,7 +3056,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (wt !== null && Zr(wt, e), Tt !== null && Zr(Tt, e), Lt !== null && Zr(Lt, e), kn.forEach(t), zn.forEach(t), n = 0; n < wn.length; n++) (r = wn[n]).blockedOn === e && (r.blockedOn = null); for (; 0 < wn.length && (n = wn[0]).blockedOn === null; ) Mr(n), n.blockedOn === null && wn.shift(); } - var oa = {}, ki = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map(), is = ["abort", "abort", M, "animationEnd", Q, "animationIteration", ye, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", De, "transitionEnd", "waiting", "waiting"]; + var oa = {}, ki = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map(), is = ["abort", "abort", M, "animationEnd", Q, "animationIteration", be, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", De, "transitionEnd", "waiting", "waiting"]; function _i(e, t) { for (var n = 0; n < e.length; n += 2) { var r = e[n], a = e[n + 1], p = "on" + (a[0].toUpperCase() + a.slice(1)); @@ -3102,25 +3102,25 @@ 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, h, w, W, V) { + else if (!(function(p, h, w, B, V) { switch (h) { case "focus": - return wt = _n(wt, p, h, w, W, V), !0; + return wt = _n(wt, p, h, w, B, V), !0; case "dragenter": - return Tt = _n(Tt, p, h, w, W, V), !0; + return Tt = _n(Tt, p, h, w, B, V), !0; case "mouseover": - return Lt = _n(Lt, p, h, w, W, V), !0; + return Lt = _n(Lt, p, h, w, B, V), !0; case "pointerover": var ce = V.pointerId; - return kn.set(ce, _n(kn.get(ce) || null, p, h, w, W, V)), !0; + return kn.set(ce, _n(kn.get(ce) || null, p, h, w, B, V)), !0; case "gotpointercapture": - return ce = V.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, h, w, W, V)), !0; + return ce = V.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, h, w, B, V)), !0; } return !1; })(a, e, t, n, r)) { Xn(e, r), e = To(e, r, null, t); try { - be(Oo, e); + ye(Oo, e); } finally { Xr(e); } @@ -3144,7 +3144,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } e = To(e, r, n, t); try { - be(Oo, e); + ye(Oo, e); } finally { Xr(e); } @@ -3251,7 +3251,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); } - var eo = "$", to = "/$", Ni = "$?", br = "$!", Do = null, Et = null; + var eo = "$", to = "/$", Ni = "$?", yr = "$!", Do = null, Et = null; function Yt(e, t) { switch (e) { case "button": @@ -3278,7 +3278,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (var t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; - if (n === eo || n === br || n === Ni) { + if (n === eo || n === yr || n === Ni) { if (t === 0) return e; t--; } else n === to && t++; @@ -3287,7 +3287,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - var yr = Math.random().toString(36).slice(2), vr = "__reactInternalInstance$" + yr, ri = "__reactEventHandlers$" + yr, Io = "__reactContainere$" + yr; + var br = Math.random().toString(36).slice(2), vr = "__reactInternalInstance$" + br, ri = "__reactEventHandlers$" + br, Io = "__reactContainere$" + br; function no(e) { var t = e[vr]; if (t) return t; @@ -3322,7 +3322,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function oi(e, t) { var n = e.stateNode; if (!n) return null; - var r = ee(n); + var r = te(n); if (!r) return null; n = r[t]; e: switch (t) { @@ -3426,9 +3426,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); var a = new t(); return d(a, n.prototype), n.prototype = a, n.prototype.constructor = n, n.Interface = d({}, r.Interface, e), n.extend = r.extend, Mo(n), n; }, Mo(Ot); - var ds = Ot.extend({ data: null }), ps = Ot.extend({ data: null }), da = [9, 13, 27, 32], ji = Z && "CompositionEvent" in window, zo = null; - Z && "documentMode" in document && (zo = document.documentMode); - var fs = Z && "TextEvent" in window && !zo, pa = Z && (!ji || zo && 8 < zo && 11 >= zo), fa = " ", nr = { beforeInput: { phasedRegistrationNames: { bubbled: "onBeforeInput", captured: "onBeforeInputCapture" }, dependencies: ["compositionend", "keypress", "textInput", "paste"] }, compositionEnd: { phasedRegistrationNames: { bubbled: "onCompositionEnd", captured: "onCompositionEndCapture" }, dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") }, compositionStart: { phasedRegistrationNames: { bubbled: "onCompositionStart", captured: "onCompositionStartCapture" }, dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") }, compositionUpdate: { phasedRegistrationNames: { bubbled: "onCompositionUpdate", captured: "onCompositionUpdateCapture" }, dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") } }, ha = !1; + var ds = Ot.extend({ data: null }), ps = Ot.extend({ data: null }), da = [9, 13, 27, 32], ji = J && "CompositionEvent" in window, zo = null; + J && "documentMode" in document && (zo = document.documentMode); + var fs = J && "TextEvent" in window && !zo, pa = J && (!ji || zo && 8 < zo && 11 >= zo), fa = " ", nr = { beforeInput: { phasedRegistrationNames: { bubbled: "onBeforeInput", captured: "onBeforeInputCapture" }, dependencies: ["compositionend", "keypress", "textInput", "paste"] }, compositionEnd: { phasedRegistrationNames: { bubbled: "onCompositionEnd", captured: "onCompositionEndCapture" }, dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") }, compositionStart: { phasedRegistrationNames: { bubbled: "onCompositionStart", captured: "onCompositionStartCapture" }, dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") }, compositionUpdate: { phasedRegistrationNames: { bubbled: "onCompositionUpdate", captured: "onCompositionUpdateCapture" }, dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") } }, ha = !1; function oo(e, t) { switch (e) { case "keyup": @@ -3495,13 +3495,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e && e.nodeName && e.nodeName.toLowerCase(); return t === "input" ? !!hs[e.type] : t === "textarea"; } - var ba = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; - function ya(e, t, n) { - return (e = Ot.getPooled(ba.change, e, t, n)).type = "change", le(n), $t(e), e; + var ya = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; + function ba(e, t, n) { + return (e = Ot.getPooled(ya.change, e, t, n)).type = "change", le(n), $t(e), e; } var ao = null, Ao = null; function ms(e) { - bn(e); + yn(e); } function si(e) { if (sn(Zn(e))) return e; @@ -3514,7 +3514,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); ao && (ao.detachEvent("onpropertychange", ka), Ao = ao = null); } function ka(e) { - if (e.propertyName === "value" && si(Ao)) if (e = ya(Ao, e, ur(e)), Le) bn(e); + if (e.propertyName === "value" && si(Ao)) if (e = ba(Ao, e, ur(e)), Le) yn(e); else { Le = !0; try { @@ -3524,10 +3524,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); } } } - function bs(e, t, n) { + function ys(e, t, n) { e === "focus" ? (va(), Ao = n, (ao = t).attachEvent("onpropertychange", ka)) : e === "blur" && va(); } - function ys(e) { + function bs(e) { if (e === "selectionchange" || e === "keyup" || e === "keydown") return si(Ao); } function vs(e, t) { @@ -3536,17 +3536,17 @@ https://fb.me/react-async-component-lifecycle-hooks`); function ks(e, t) { if (e === "input" || e === "change") return si(t); } - Z && (Li = Mn("input") && (!document.documentMode || 9 < document.documentMode)); - var ws = { eventTypes: ba, _isInputEventSupported: Li, extractEvents: function(e, t, n, r) { + J && (Li = Mn("input") && (!document.documentMode || 9 < document.documentMode)); + var ws = { eventTypes: ya, _isInputEventSupported: Li, extractEvents: function(e, t, n, r) { var a = t ? Zn(t) : window, p = a.nodeName && a.nodeName.toLowerCase(); if (p === "select" || p === "input" && a.type === "file") var h = gs; else if (ga(a)) if (Li) h = ks; else { - h = ys; - var w = bs; + h = bs; + var w = ys; } else (p = a.nodeName) && p.toLowerCase() === "input" && (a.type === "checkbox" || a.type === "radio") && (h = vs); - if (h && (h = h(e, t))) return ya(h, n, r); + if (h && (h = h(e, t))) return ba(h, n, r); w && w(e, a, t), e === "blur" && (e = a._wrapperState) && e.controlled && a.type === "number" && So(a, "number", a.value); } }, jo = Ot.extend({ view: null, detail: null }), _s = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Es(e) { @@ -3569,9 +3569,9 @@ 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", h = e === "mouseout" || e === "pointerout"; if (p && !(32 & a) && (n.relatedTarget || n.fromElement) || !h && !p || (p = r.window === r ? r : (p = r.ownerDocument) ? p.defaultView || p.parentWindow : window, h ? (h = t, (t = (t = n.relatedTarget || n.toElement) ? no(t) : null) !== null && (t !== rt(t) || t.tag !== 5 && t.tag !== 6) && (t = null)) : h = null, h === t)) return null; - if (e === "mouseout" || e === "mouseover") var w = jr, W = Lr.mouseLeave, V = Lr.mouseEnter, ce = "mouse"; - else e !== "pointerout" && e !== "pointerover" || (w = xa, W = Lr.pointerLeave, V = Lr.pointerEnter, ce = "pointer"); - if (e = h == null ? p : Zn(h), p = t == null ? p : Zn(t), (W = w.getPooled(W, h, n, r)).type = ce + "leave", W.target = e, W.relatedTarget = p, (n = w.getPooled(V, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = h) && ce) e: { + if (e === "mouseout" || e === "mouseover") var w = jr, B = Lr.mouseLeave, V = Lr.mouseEnter, ce = "mouse"; + else e !== "pointerout" && e !== "pointerover" || (w = xa, B = Lr.pointerLeave, V = Lr.pointerEnter, ce = "pointer"); + if (e = h == null ? p : Zn(h), p = t == null ? p : Zn(t), (B = w.getPooled(B, h, n, r)).type = ce + "leave", B.target = e, B.relatedTarget = p, (n = w.getPooled(V, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = h) && ce) e: { for (V = ce, h = 0, e = w = r; e; e = Jn(e)) h++; for (e = 0, t = V; t; t = Jn(t)) e++; for (; 0 < h - e; ) w = Jn(w), h--; @@ -3585,9 +3585,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); else w = null; for (V = w, w = []; r && r !== V && ((h = r.alternate) === null || h !== V); ) w.push(r), r = Jn(r); for (r = []; ce && ce !== V && ((h = ce.alternate) === null || h !== V); ) r.push(ce), ce = Jn(ce); - for (ce = 0; ce < w.length; ce++) er(w[ce], "bubbled", W); + for (ce = 0; ce < w.length; ce++) er(w[ce], "bubbled", B); for (ce = r.length; 0 < ce--; ) er(r[ce], "captured", n); - return 64 & a ? [W, n] : [W]; + return 64 & a ? [B, n] : [B]; } }, 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; @@ -3599,7 +3599,7 @@ 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 = Z && "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, Ui = null, Ur = null, Vi = !1; + 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, Ui = null, Ur = null, Vi = !1; function Sa(e, t) { var n = t.window === t ? t.document : t.nodeType === 9 ? t : t.ownerDocument; return Vi || 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 && Fr(Ur, n) ? null : (Ur = n, (e = Ot.getPooled(Fi.select, Ui, e, t)).type = "select", e.target = so, $t(e), e)); @@ -3705,7 +3705,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); break; case M: case Q: - case ye: + case be: e = Os; break; case De: @@ -3737,17 +3737,17 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return $t(t = e.getPooled(a, t, n, r)), t; } }; - if (ne) throw Error(m(101)); - ne = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), oe(), ee = Ri, R = kr, F = Zn, ae({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: ai }); - var g = [], b = -1; + if (X) throw Error(m(101)); + X = 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: ai }); + var g = [], y = -1; function x(e) { - 0 > b || (e.current = g[b], g[b] = null, b--); + 0 > y || (e.current = g[y], g[y] = null, y--); } function z(e, t) { - b++, g[b] = e.current, e.current = t; + y++, g[y] = e.current, e.current = t; } var K = {}, Y = { current: K }, ie = { current: !1 }, ue = K; - function he(e, t) { + function me(e, t) { var n = e.type.contextTypes; if (!n) return K; var r = e.stateNode; @@ -3922,28 +3922,28 @@ https://fb.me/react-async-component-lifecycle-hooks`); } if (p !== null) { w = p.next; - var W = a.baseState, V = 0, ce = null, Re = null, Ve = null; + var B = a.baseState, V = 0, ce = null, Re = null, Ve = null; if (w !== null) for (var ot = w; ; ) { if ((h = ot.expirationTime) < r) { var Vn = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }; - Ve === null ? (Re = Ve = Vn, ce = W) : Ve = Ve.next = Vn, h > V && (V = h); + Ve === null ? (Re = Ve = Vn, ce = B) : Ve = Ve.next = Vn, h > V && (V = h); } else { Ve !== null && (Ve = Ve.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), _c(h, ot.suspenseConfig); e: { - var on = e, q = ot; - switch (h = t, Vn = n, q.tag) { + var on = e, W = ot; + switch (h = t, Vn = n, W.tag) { case 1: - if (typeof (on = q.payload) == "function") { - W = on.call(Vn, W, h); + if (typeof (on = W.payload) == "function") { + B = on.call(Vn, B, h); break e; } - W = on; + B = on; break e; case 3: on.effectTag = -4097 & on.effectTag | 64; case 0: - if ((h = typeof (on = q.payload) == "function" ? on.call(Vn, W, h) : on) == null) break e; - W = d({}, W, h); + if ((h = typeof (on = W.payload) == "function" ? on.call(Vn, B, h) : on) == null) break e; + B = d({}, B, h); break e; case 2: uo = !0; @@ -3956,7 +3956,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); ot = p.next = h.next, h.next = w, a.baseQueue = p = h, a.shared.pending = null; } } - Ve === null ? ce = W : Ve.next = Re, a.baseState = ce, a.baseQueue = Ve, es(V), e.expirationTime = V, e.memoizedState = W; + Ve === null ? ce = B : Ve.next = Re, a.baseState = ce, a.baseQueue = Ve, es(V), e.expirationTime = V, e.memoizedState = B; } } function Cl(e, t, n) { @@ -3977,22 +3977,22 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, enqueueSetState: function(e, t, n) { e = e._reactInternalFiber; var r = Sr(), a = Wi.suspense; - (a = po(r = Ko(r, e, a), a)).payload = t, n != null && (a.callback = n), fo(e, a), bo(e, r); + (a = po(r = Ko(r, e, a), a)).payload = t, n != null && (a.callback = n), fo(e, a), yo(e, r); }, enqueueReplaceState: function(e, t, n) { e = e._reactInternalFiber; var r = Sr(), a = Wi.suspense; - (a = po(r = Ko(r, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), fo(e, a), bo(e, r); + (a = po(r = Ko(r, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), fo(e, a), yo(e, r); }, enqueueForceUpdate: function(e, t) { e = e._reactInternalFiber; var n = Sr(), r = Wi.suspense; - (r = po(n = Ko(n, e, r), r)).tag = 2, t != null && (r.callback = t), fo(e, r), bo(e, n); + (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, h) { return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, h) : !t.prototype || !t.prototype.isPureReactComponent || !Fr(n, r) || !Fr(a, p); } function Nl(e, t, n) { var r = !1, a = K, p = t.contextType; - return typeof p == "object" && p !== null ? p = Ln(p) : (a = de(t) ? ue : Y.current, p = (r = (r = t.contextTypes) != null) ? he(e, a) : K), t = new t(n, p), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Na, e.stateNode = t, t._reactInternalFiber = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = p), t; + return typeof p == "object" && p !== null ? p = Ln(p) : (a = de(t) ? ue : Y.current, p = (r = (r = t.contextTypes) != null) ? me(e, a) : K), t = new t(n, p), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Na, e.stateNode = t, t._reactInternalFiber = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = p), t; } function Pl(e, t, n, r) { e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Na.enqueueReplaceState(t, t.state, null); @@ -4001,7 +4001,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var a = e.stateNode; a.props = n, a.state = e.memoizedState, a.refs = Tl, Rs(e); var p = t.contextType; - typeof p == "object" && p !== null ? a.context = Ln(p) : (p = de(t) ? ue : Y.current, a.context = he(e, p)), Bi(e, n, a, r), a.state = e.memoizedState, typeof (p = t.getDerivedStateFromProps) == "function" && (Oa(e, t, p, n), a.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (t = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), t !== a.state && Na.enqueueReplaceState(a, a.state, null), Bi(e, n, a, r), a.state = e.memoizedState), typeof a.componentDidMount == "function" && (e.effectTag |= 4); + typeof p == "object" && p !== null ? a.context = Ln(p) : (p = de(t) ? ue : Y.current, a.context = me(e, p)), Bi(e, n, a, r), a.state = e.memoizedState, typeof (p = t.getDerivedStateFromProps) == "function" && (Oa(e, t, p, n), a.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (t = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), t !== a.state && Na.enqueueReplaceState(a, a.state, null), Bi(e, n, a, r), a.state = e.memoizedState), typeof a.componentDidMount == "function" && (e.effectTag |= 4); } var Pa = Array.isArray; function qi(e, t, n) { @@ -4027,180 +4027,180 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e.type !== "textarea") throw Error(m(31, Object.prototype.toString.call(t) === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : t, "")); } function Dl(e) { - function t(q, B) { + function t(W, H) { if (e) { - var re = q.lastEffect; - re !== null ? (re.nextEffect = B, q.lastEffect = B) : q.firstEffect = q.lastEffect = B, B.nextEffect = null, B.effectTag = 8; + var re = W.lastEffect; + re !== null ? (re.nextEffect = H, W.lastEffect = H) : W.firstEffect = W.lastEffect = H, H.nextEffect = null, H.effectTag = 8; } } - function n(q, B) { + function n(W, H) { if (!e) return null; - for (; B !== null; ) t(q, B), B = B.sibling; + for (; H !== null; ) t(W, H), H = H.sibling; return null; } - function r(q, B) { - for (q = /* @__PURE__ */ new Map(); B !== null; ) B.key !== null ? q.set(B.key, B) : q.set(B.index, B), B = B.sibling; - return q; + function r(W, H) { + for (W = /* @__PURE__ */ new Map(); H !== null; ) H.key !== null ? W.set(H.key, H) : W.set(H.index, H), H = H.sibling; + return W; } - function a(q, B) { - return (q = Go(q, B)).index = 0, q.sibling = null, q; + function a(W, H) { + return (W = Go(W, H)).index = 0, W.sibling = null, W; } - function p(q, B, re) { - return q.index = re, e ? (re = q.alternate) !== null ? (re = re.index) < B ? (q.effectTag = 2, B) : re : (q.effectTag = 2, B) : B; + function p(W, H, re) { + return W.index = re, e ? (re = W.alternate) !== null ? (re = re.index) < H ? (W.effectTag = 2, H) : re : (W.effectTag = 2, H) : H; } - function h(q) { - return e && q.alternate === null && (q.effectTag = 2), q; + function h(W) { + return e && W.alternate === null && (W.effectTag = 2), W; } - function w(q, B, re, ve) { - return B === null || B.tag !== 6 ? ((B = gl(re, q.mode, ve)).return = q, B) : ((B = a(B, re)).return = q, B); + function w(W, H, re, ve) { + return H === null || H.tag !== 6 ? ((H = gl(re, W.mode, ve)).return = W, H) : ((H = a(H, re)).return = W, H); } - function W(q, B, re, ve) { - return B !== null && B.elementType === re.type ? ((ve = a(B, re.props)).ref = qi(q, B, re), ve.return = q, ve) : ((ve = ts(re.type, re.key, re.props, null, q.mode, ve)).ref = qi(q, B, re), ve.return = q, ve); + function B(W, H, re, ve) { + return H !== null && H.elementType === re.type ? ((ve = a(H, re.props)).ref = qi(W, H, re), ve.return = W, ve) : ((ve = ts(re.type, re.key, re.props, null, W.mode, ve)).ref = qi(W, H, re), ve.return = W, ve); } - function V(q, B, re, ve) { - return B === null || B.tag !== 4 || B.stateNode.containerInfo !== re.containerInfo || B.stateNode.implementation !== re.implementation ? ((B = bl(re, q.mode, ve)).return = q, B) : ((B = a(B, re.children || [])).return = q, B); + function V(W, H, re, ve) { + return H === null || H.tag !== 4 || H.stateNode.containerInfo !== re.containerInfo || H.stateNode.implementation !== re.implementation ? ((H = yl(re, W.mode, ve)).return = W, H) : ((H = a(H, re.children || [])).return = W, H); } - function ce(q, B, re, ve, xe) { - return B === null || B.tag !== 7 ? ((B = yo(re, q.mode, ve, xe)).return = q, B) : ((B = a(B, re)).return = q, B); + function ce(W, H, re, ve, xe) { + return H === null || H.tag !== 7 ? ((H = bo(re, W.mode, ve, xe)).return = W, H) : ((H = a(H, re)).return = W, H); } - function Re(q, B, re) { - if (typeof B == "string" || typeof B == "number") return (B = gl("" + B, q.mode, re)).return = q, B; - if (typeof B == "object" && B !== null) { - switch (B.$$typeof) { + function Re(W, H, re) { + if (typeof H == "string" || typeof H == "number") return (H = gl("" + H, W.mode, re)).return = W, H; + if (typeof H == "object" && H !== null) { + switch (H.$$typeof) { case Gt: - return (re = ts(B.type, B.key, B.props, null, q.mode, re)).ref = qi(q, null, B), re.return = q, re; + return (re = ts(H.type, H.key, H.props, null, W.mode, re)).ref = qi(W, null, H), re.return = W, re; case On: - return (B = bl(B, q.mode, re)).return = q, B; + return (H = yl(H, W.mode, re)).return = W, H; } - if (Pa(B) || Wn(B)) return (B = yo(B, q.mode, re, null)).return = q, B; - Da(q, B); + if (Pa(H) || Wn(H)) return (H = bo(H, W.mode, re, null)).return = W, H; + Da(W, H); } return null; } - function Ve(q, B, re, ve) { - var xe = B !== null ? B.key : null; - if (typeof re == "string" || typeof re == "number") return xe !== null ? null : w(q, B, "" + re, ve); + function Ve(W, H, re, ve) { + var xe = H !== null ? H.key : null; + if (typeof re == "string" || typeof re == "number") return xe !== null ? null : w(W, H, "" + re, ve); if (typeof re == "object" && re !== null) { switch (re.$$typeof) { case Gt: - return re.key === xe ? re.type === Nn ? ce(q, B, re.props.children, ve, xe) : W(q, B, re, ve) : null; + return re.key === xe ? re.type === Nn ? ce(W, H, re.props.children, ve, xe) : B(W, H, re, ve) : null; case On: - return re.key === xe ? V(q, B, re, ve) : null; + return re.key === xe ? V(W, H, re, ve) : null; } - if (Pa(re) || Wn(re)) return xe !== null ? null : ce(q, B, re, ve, null); - Da(q, re); + if (Pa(re) || Wn(re)) return xe !== null ? null : ce(W, H, re, ve, null); + Da(W, re); } return null; } - function ot(q, B, re, ve, xe) { - if (typeof ve == "string" || typeof ve == "number") return w(B, q = q.get(re) || null, "" + ve, xe); + function ot(W, H, re, ve, xe) { + if (typeof ve == "string" || typeof ve == "number") return w(H, W = W.get(re) || null, "" + ve, xe); if (typeof ve == "object" && ve !== null) { switch (ve.$$typeof) { case Gt: - return q = q.get(ve.key === null ? re : ve.key) || null, ve.type === Nn ? ce(B, q, ve.props.children, xe, ve.key) : W(B, q, ve, xe); + return W = W.get(ve.key === null ? re : ve.key) || null, ve.type === Nn ? ce(H, W, ve.props.children, xe, ve.key) : B(H, W, ve, xe); case On: - return V(B, q = q.get(ve.key === null ? re : ve.key) || null, ve, xe); + return V(H, W = W.get(ve.key === null ? re : ve.key) || null, ve, xe); } - if (Pa(ve) || Wn(ve)) return ce(B, q = q.get(re) || null, ve, xe, null); - Da(B, ve); + if (Pa(ve) || Wn(ve)) return ce(H, W = W.get(re) || null, ve, xe, null); + Da(H, ve); } return null; } - function Vn(q, B, re, ve) { - for (var xe = null, Ie = null, Fe = B, at = B = 0, Mt = null; Fe !== null && at < re.length; at++) { + function Vn(W, H, re, ve) { + for (var xe = null, Ie = null, Fe = H, at = H = 0, Mt = null; Fe !== null && at < re.length; at++) { Fe.index > at ? (Mt = Fe, Fe = null) : Mt = Fe.sibling; - var Xe = Ve(q, Fe, re[at], ve); + var Xe = Ve(W, Fe, re[at], ve); if (Xe === null) { Fe === null && (Fe = Mt); break; } - e && Fe && Xe.alternate === null && t(q, Fe), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Fe = Mt; + e && Fe && Xe.alternate === null && t(W, Fe), H = p(Xe, H, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Fe = Mt; } - if (at === re.length) return n(q, Fe), xe; + if (at === re.length) return n(W, Fe), xe; if (Fe === null) { - for (; at < re.length; at++) (Fe = Re(q, re[at], ve)) !== null && (B = p(Fe, B, at), Ie === null ? xe = Fe : Ie.sibling = Fe, Ie = Fe); + for (; at < re.length; at++) (Fe = Re(W, re[at], ve)) !== null && (H = p(Fe, H, at), Ie === null ? xe = Fe : Ie.sibling = Fe, Ie = Fe); return xe; } - for (Fe = r(q, Fe); at < re.length; at++) (Mt = ot(Fe, q, 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); + 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), H = p(Mt, H, at), Ie === null ? xe = Mt : Ie.sibling = Mt, Ie = Mt); return e && Fe.forEach(function(vo) { - return t(q, vo); + return t(W, vo); }), xe; } - function on(q, B, re, ve) { + function on(W, H, re, ve) { var xe = Wn(re); if (typeof xe != "function") throw Error(m(150)); if ((re = xe.call(re)) == null) throw Error(m(151)); - for (var Ie = xe = null, Fe = B, at = B = 0, Mt = null, Xe = re.next(); Fe !== null && !Xe.done; at++, Xe = re.next()) { + for (var Ie = xe = null, Fe = H, at = H = 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 = Ve(q, Fe, Xe.value, ve); + var vo = Ve(W, Fe, Xe.value, ve); if (vo === null) { Fe === null && (Fe = Mt); break; } - e && Fe && vo.alternate === null && t(q, Fe), B = p(vo, B, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Fe = Mt; + e && Fe && vo.alternate === null && t(W, Fe), H = p(vo, H, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Fe = Mt; } - if (Xe.done) return n(q, Fe), xe; + if (Xe.done) return n(W, Fe), xe; if (Fe === null) { - for (; !Xe.done; at++, Xe = re.next()) (Xe = Re(q, Xe.value, ve)) !== null && (B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); + for (; !Xe.done; at++, Xe = re.next()) (Xe = Re(W, Xe.value, ve)) !== null && (H = p(Xe, H, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); return xe; } - for (Fe = r(q, Fe); !Xe.done; at++, Xe = re.next()) (Xe = ot(Fe, q, 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); + 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), H = p(Xe, H, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); return e && Fe.forEach(function(iu) { - return t(q, iu); + return t(W, iu); }), xe; } - return function(q, B, re, ve) { + return function(W, H, re, ve) { var xe = typeof re == "object" && re !== null && re.type === Nn && re.key === null; xe && (re = re.props.children); var Ie = typeof re == "object" && re !== null; if (Ie) switch (re.$$typeof) { case Gt: e: { - for (Ie = re.key, xe = B; xe !== null; ) { + for (Ie = re.key, xe = H; xe !== null; ) { if (xe.key === Ie) { if (xe.tag === 7) { if (re.type === Nn) { - n(q, xe.sibling), (B = a(xe, re.props.children)).return = q, q = B; + n(W, xe.sibling), (H = a(xe, re.props.children)).return = W, W = H; break e; } } else if (xe.elementType === re.type) { - n(q, xe.sibling), (B = a(xe, re.props)).ref = qi(q, xe, re), B.return = q, q = B; + n(W, xe.sibling), (H = a(xe, re.props)).ref = qi(W, xe, re), H.return = W, W = H; break e; } - n(q, xe); + n(W, xe); break; } - t(q, xe), xe = xe.sibling; + t(W, xe), xe = xe.sibling; } - re.type === Nn ? ((B = yo(re.props.children, q.mode, ve, re.key)).return = q, q = B) : ((ve = ts(re.type, re.key, re.props, null, q.mode, ve)).ref = qi(q, B, re), ve.return = q, q = ve); + re.type === Nn ? ((H = bo(re.props.children, W.mode, ve, re.key)).return = W, W = H) : ((ve = ts(re.type, re.key, re.props, null, W.mode, ve)).ref = qi(W, H, re), ve.return = W, W = ve); } - return h(q); + return h(W); case On: e: { - for (xe = re.key; B !== null; ) { - if (B.key === xe) { - if (B.tag === 4 && B.stateNode.containerInfo === re.containerInfo && B.stateNode.implementation === re.implementation) { - n(q, B.sibling), (B = a(B, re.children || [])).return = q, q = B; + for (xe = re.key; H !== null; ) { + if (H.key === xe) { + if (H.tag === 4 && H.stateNode.containerInfo === re.containerInfo && H.stateNode.implementation === re.implementation) { + n(W, H.sibling), (H = a(H, re.children || [])).return = W, W = H; break e; } - n(q, B); + n(W, H); break; } - t(q, B), B = B.sibling; + t(W, H), H = H.sibling; } - (B = bl(re, q.mode, ve)).return = q, q = B; + (H = yl(re, W.mode, ve)).return = W, W = H; } - return h(q); + return h(W); } - if (typeof re == "string" || typeof re == "number") return re = "" + re, B !== null && B.tag === 6 ? (n(q, B.sibling), (B = a(B, re)).return = q, q = B) : (n(q, B), (B = gl(re, q.mode, ve)).return = q, q = B), h(q); - if (Pa(re)) return Vn(q, B, re, ve); - if (Wn(re)) return on(q, B, re, ve); - if (Ie && Da(q, re), re === void 0 && !xe) switch (q.tag) { + if (typeof re == "string" || typeof re == "number") return re = "" + re, H !== null && H.tag === 6 ? (n(W, H.sibling), (H = a(H, re)).return = W, W = H) : (n(W, H), (H = gl(re, W.mode, ve)).return = W, W = H), h(W); + if (Pa(re)) return Vn(W, H, re, ve); + if (Wn(re)) return on(W, H, re, ve); + if (Ie && Da(W, re), re === void 0 && !xe) switch (W.tag) { case 1: case 0: - throw q = q.type, Error(m(152, q.displayName || q.name || "Component")); + throw W = W.type, Error(m(152, W.displayName || W.name || "Component")); } - return n(q, B); + return n(W, H); }; } var di = Dl(!0), As = Dl(!1), Ki = {}, _r = { current: Ki }, Qi = { current: Ki }, Yi = { current: Ki }; @@ -4235,7 +4235,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (var t = e; t !== null; ) { if (t.tag === 13) { var n = t.memoizedState; - if (n !== null && ((n = n.dehydrated) === null || n.data === Ni || n.data === br)) return t; + if (n !== null && ((n = n.dehydrated) === null || n.data === Ni || n.data === yr)) return t; } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { if (64 & t.effectTag) return t; } else if (t.child !== null) { @@ -4308,15 +4308,15 @@ https://fb.me/react-async-component-lifecycle-hooks`); } if (a !== null) { a = a.next, r = r.baseState; - var w = h = p = null, W = a; + var w = h = p = null, B = a; do { - var V = W.expirationTime; + var V = B.expirationTime; if (V < ho) { - var ce = { expirationTime: W.expirationTime, suspenseConfig: W.suspenseConfig, action: W.action, eagerReducer: W.eagerReducer, eagerState: W.eagerState, next: null }; + var ce = { expirationTime: B.expirationTime, suspenseConfig: B.suspenseConfig, action: B.action, eagerReducer: B.eagerReducer, eagerState: B.eagerState, next: null }; w === null ? (h = w = ce, p = r) : w = w.next = ce, V > Rt.expirationTime && (Rt.expirationTime = V, es(V)); - } else w !== null && (w = w.next = { expirationTime: 1073741823, suspenseConfig: W.suspenseConfig, action: W.action, eagerReducer: W.eagerReducer, eagerState: W.eagerState, next: null }), _c(V, W.suspenseConfig), r = W.eagerReducer === e ? W.eagerState : e(r, W.action); - W = W.next; - } while (W !== null && W !== a); + } else w !== null && (w = w.next = { expirationTime: 1073741823, suspenseConfig: B.suspenseConfig, action: B.action, eagerReducer: B.eagerReducer, eagerState: B.eagerState, next: null }), _c(V, B.suspenseConfig), r = B.eagerReducer === e ? B.eagerState : e(r, B.action); + B = B.next; + } while (B !== null && B !== a); w === null ? p = r : w.next = h, rr(r, t.memoizedState) || (Er = !0), t.memoizedState = r, t.baseState = p, t.baseQueue = w, n.lastRenderedState = r; } return [t.memoizedState, n.dispatch]; @@ -4421,7 +4421,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (a.eagerReducer = p, a.eagerState = w, rr(w, h)) return; } catch { } - bo(e, r); + 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 }, Lc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { @@ -4532,7 +4532,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); break e; } t--; - } else n !== eo && n !== br && n !== Ni || t++; + } else n !== eo && n !== yr && n !== Ni || t++; } e = e.nextSibling; } @@ -4569,7 +4569,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } function Xs(e, t, n, r, a) { var p = de(n) ? ue : Y.current; - return p = he(t, p), ui(t, a), n = Vs(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), $r(e, t, a)); + return p = me(t, p), ui(t, a), n = Vs(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), $r(e, t, a)); } function Ql(e, t, n, r, a) { if (de(n)) { @@ -4580,13 +4580,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); else if (e === null) { var h = t.stateNode, w = t.memoizedProps; h.props = w; - var W = h.context, V = n.contextType; - typeof V == "object" && V !== null ? V = Ln(V) : V = he(t, V = de(n) ? ue : Y.current); + var B = h.context, V = n.contextType; + typeof V == "object" && V !== null ? V = Ln(V) : V = me(t, V = de(n) ? ue : Y.current); var ce = n.getDerivedStateFromProps, Re = typeof ce == "function" || typeof h.getSnapshotBeforeUpdate == "function"; - Re || typeof h.UNSAFE_componentWillReceiveProps != "function" && typeof h.componentWillReceiveProps != "function" || (w !== r || W !== V) && Pl(t, h, r, V), uo = !1; + Re || typeof h.UNSAFE_componentWillReceiveProps != "function" && typeof h.componentWillReceiveProps != "function" || (w !== r || B !== V) && Pl(t, h, r, V), uo = !1; var Ve = t.memoizedState; - h.state = Ve, Bi(t, r, h, a), W = t.memoizedState, w !== r || Ve !== W || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), W = t.memoizedState), (w = uo || Ol(t, n, w, r, Ve, W, V)) ? (Re || typeof h.UNSAFE_componentWillMount != "function" && typeof h.componentWillMount != "function" || (typeof h.componentWillMount == "function" && h.componentWillMount(), typeof h.UNSAFE_componentWillMount == "function" && h.UNSAFE_componentWillMount()), typeof h.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof h.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = W), h.props = r, h.state = W, h.context = V, r = w) : (typeof h.componentDidMount == "function" && (t.effectTag |= 4), r = !1); - } else h = t.stateNode, Ms(e, t), w = t.memoizedProps, h.props = t.type === t.elementType ? w : nn(t.type, w), W = h.context, typeof (V = n.contextType) == "object" && V !== null ? V = Ln(V) : V = he(t, V = de(n) ? ue : Y.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof h.getSnapshotBeforeUpdate == "function") || typeof h.UNSAFE_componentWillReceiveProps != "function" && typeof h.componentWillReceiveProps != "function" || (w !== r || W !== V) && Pl(t, h, r, V), uo = !1, W = t.memoizedState, h.state = W, Bi(t, r, h, a), Ve = t.memoizedState, w !== r || W !== Ve || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Ve = t.memoizedState), (ce = uo || Ol(t, n, w, r, W, Ve, V)) ? (Re || typeof h.UNSAFE_componentWillUpdate != "function" && typeof h.componentWillUpdate != "function" || (typeof h.componentWillUpdate == "function" && h.componentWillUpdate(r, Ve, V), typeof h.UNSAFE_componentWillUpdate == "function" && h.UNSAFE_componentWillUpdate(r, Ve, V)), typeof h.componentDidUpdate == "function" && (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof h.componentDidUpdate != "function" || w === e.memoizedProps && W === e.memoizedState || (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate != "function" || w === e.memoizedProps && W === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Ve), h.props = r, h.state = Ve, h.context = V, r = ce) : (typeof h.componentDidUpdate != "function" || w === e.memoizedProps && W === e.memoizedState || (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate != "function" || w === e.memoizedProps && W === e.memoizedState || (t.effectTag |= 256), r = !1); + h.state = Ve, Bi(t, r, h, a), B = t.memoizedState, w !== r || Ve !== B || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), B = t.memoizedState), (w = uo || Ol(t, n, w, r, Ve, B, V)) ? (Re || typeof h.UNSAFE_componentWillMount != "function" && typeof h.componentWillMount != "function" || (typeof h.componentWillMount == "function" && h.componentWillMount(), typeof h.UNSAFE_componentWillMount == "function" && h.UNSAFE_componentWillMount()), typeof h.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof h.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = B), h.props = r, h.state = B, h.context = V, r = w) : (typeof h.componentDidMount == "function" && (t.effectTag |= 4), r = !1); + } else h = t.stateNode, Ms(e, t), w = t.memoizedProps, h.props = t.type === t.elementType ? w : nn(t.type, w), B = h.context, typeof (V = n.contextType) == "object" && V !== null ? V = Ln(V) : V = me(t, V = de(n) ? ue : Y.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof h.getSnapshotBeforeUpdate == "function") || typeof h.UNSAFE_componentWillReceiveProps != "function" && typeof h.componentWillReceiveProps != "function" || (w !== r || B !== V) && Pl(t, h, r, V), uo = !1, B = t.memoizedState, h.state = B, Bi(t, r, h, a), Ve = t.memoizedState, w !== r || B !== Ve || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Ve = t.memoizedState), (ce = uo || Ol(t, n, w, r, B, Ve, V)) ? (Re || typeof h.UNSAFE_componentWillUpdate != "function" && typeof h.componentWillUpdate != "function" || (typeof h.componentWillUpdate == "function" && h.componentWillUpdate(r, Ve, V), typeof h.UNSAFE_componentWillUpdate == "function" && h.UNSAFE_componentWillUpdate(r, Ve, V)), typeof h.componentDidUpdate == "function" && (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof h.componentDidUpdate != "function" || w === e.memoizedProps && B === e.memoizedState || (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate != "function" || w === e.memoizedProps && B === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Ve), h.props = r, h.state = Ve, h.context = V, r = ce) : (typeof h.componentDidUpdate != "function" || w === e.memoizedProps && B === e.memoizedState || (t.effectTag |= 4), typeof h.getSnapshotBeforeUpdate != "function" || w === e.memoizedProps && B === e.memoizedState || (t.effectTag |= 256), r = !1); return Gs(e, t, n, r, p, a); } function Gs(e, t, n, r, a, p) { @@ -4606,8 +4606,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); var r, a = t.mode, p = t.pendingProps, h = Ct.current, w = !1; if ((r = !!(64 & t.effectTag)) || (r = !!(2 & h) && (e === null || e.memoizedState !== null)), r ? (w = !0, t.effectTag &= -65) : e !== null && e.memoizedState === null || p.fallback === void 0 || p.unstable_avoidThisFallback === !0 || (h |= 1), z(Ct, 1 & h), e === null) { if (p.fallback !== void 0 && Qs(t), w) { - if (w = p.fallback, (p = yo(null, a, 0, null)).return = t, !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = yo(w, a, n, null)).return = t, p.sibling = n, t.memoizedState = Js, t.child = p, n; + if (w = p.fallback, (p = bo(null, a, 0, null)).return = t, !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; + return (n = bo(w, a, n, null)).return = t, p.sibling = n, t.memoizedState = Js, t.child = p, n; } return a = p.children, t.memoizedState = null, t.child = As(t, null, a, n); } @@ -4619,8 +4619,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); return n = di(t, e.child, p.children, n), t.memoizedState = null, t.child = n; } if (e = e.child, w) { - if (w = p.fallback, (p = yo(null, a, 0, null)).return = t, p.child = e, e !== null && (e.return = p), !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = yo(w, a, n, null)).return = t, p.sibling = n, n.effectTag |= 2, p.childExpirationTime = 0, t.memoizedState = Js, t.child = p, n; + if (w = p.fallback, (p = bo(null, a, 0, null)).return = t, p.child = e, e !== null && (e.return = p), !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; + return (n = bo(w, a, n, null)).return = t, p.sibling = n, n.effectTag |= 2, p.childExpirationTime = 0, t.memoizedState = Js, t.child = p, n; } return t.memoizedState = null, t.child = di(t, e, p.children, n); } @@ -4825,9 +4825,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); w = r; } xi(a, w); - var W = w; - for (p in W) if (W.hasOwnProperty(p)) { - var V = W[p]; + var B = w; + for (p in B) if (B.hasOwnProperty(p)) { + var V = B[p]; p === "style" ? ei(e, V) : p === "dangerouslySetInnerHTML" ? (V = V ? V.__html : void 0) != null && Dr(e, V) : p === "children" ? typeof V == "string" ? (a !== "textarea" || V !== "") && Kn(e, V) : typeof V == "number" && Kn(e, "" + V) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (j.hasOwnProperty(p) ? V != null && Gn(n, p) : V != null && Pt(e, p, V, h)); } switch (a) { @@ -4929,32 +4929,32 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, Gl = function(e, t, n, r, a) { var p = e.memoizedProps; if (p !== r) { - var h, w, W = t.stateNode; + var h, w, B = t.stateNode; switch (Ho(_r.current), e = null, n) { case "input": - p = Kr(W, p), r = Kr(W, r), e = []; + p = Kr(B, p), r = Kr(B, r), e = []; break; case "option": - p = Nr(W, p), r = Nr(W, r), e = []; + p = Nr(B, p), r = Nr(B, r), e = []; break; case "select": p = d({}, p, { value: void 0 }), r = d({}, r, { value: void 0 }), e = []; break; case "textarea": - p = Pr(W, p), r = Pr(W, r), e = []; + p = Pr(B, p), r = Pr(B, r), e = []; break; default: - typeof p.onClick != "function" && typeof r.onClick == "function" && (W.onclick = Jr); + typeof p.onClick != "function" && typeof r.onClick == "function" && (B.onclick = Jr); } - for (h in xi(n, r), n = null, p) if (!r.hasOwnProperty(h) && p.hasOwnProperty(h) && p[h] != null) if (h === "style") for (w in W = p[h]) W.hasOwnProperty(w) && (n || (n = {}), n[w] = ""); + for (h in xi(n, r), n = null, p) if (!r.hasOwnProperty(h) && p.hasOwnProperty(h) && p[h] != null) if (h === "style") for (w in B = p[h]) B.hasOwnProperty(w) && (n || (n = {}), n[w] = ""); else h !== "dangerouslySetInnerHTML" && h !== "children" && h !== "suppressContentEditableWarning" && h !== "suppressHydrationWarning" && h !== "autoFocus" && (j.hasOwnProperty(h) ? e || (e = []) : (e = e || []).push(h, null)); for (h in r) { var V = r[h]; - if (W = p != null ? p[h] : void 0, r.hasOwnProperty(h) && V !== W && (V != null || W != null)) if (h === "style") if (W) { - for (w in W) !W.hasOwnProperty(w) || V && V.hasOwnProperty(w) || (n || (n = {}), n[w] = ""); - for (w in V) V.hasOwnProperty(w) && W[w] !== V[w] && (n || (n = {}), n[w] = V[w]); + if (B = p != null ? p[h] : void 0, r.hasOwnProperty(h) && V !== B && (V != null || B != null)) if (h === "style") if (B) { + for (w in B) !B.hasOwnProperty(w) || V && V.hasOwnProperty(w) || (n || (n = {}), n[w] = ""); + for (w in V) V.hasOwnProperty(w) && B[w] !== V[w] && (n || (n = {}), n[w] = V[w]); } else n || (e || (e = []), e.push(h, n)), n = V; - else h === "dangerouslySetInnerHTML" ? (V = V ? V.__html : void 0, W = W ? W.__html : void 0, V != null && W !== V && (e = e || []).push(h, V)) : h === "children" ? W === V || typeof V != "string" && typeof V != "number" || (e = e || []).push(h, "" + V) : h !== "suppressContentEditableWarning" && h !== "suppressHydrationWarning" && (j.hasOwnProperty(h) ? (V != null && Gn(a, h), e || W === V || (e = [])) : (e = e || []).push(h, V)); + else h === "dangerouslySetInnerHTML" ? (V = V ? V.__html : void 0, B = B ? B.__html : void 0, V != null && B !== V && (e = e || []).push(h, V)) : h === "children" ? B === V || typeof V != "string" && typeof V != "number" || (e = e || []).push(h, "" + V) : h !== "suppressContentEditableWarning" && h !== "suppressHydrationWarning" && (j.hasOwnProperty(h) ? (V != null && Gn(a, h), e || B === V || (e = [])) : (e = e || []).push(h, V)); } n && (e = e || []).push("style", n), a = e, (t.updateQueue = a) && (t.effectTag |= 4); } @@ -5187,16 +5187,16 @@ https://fb.me/react-async-component-lifecycle-hooks`); h = !0; } if (p.tag === 5 || p.tag === 6) { - e: for (var w = e, W = p, V = n, ce = W; ; ) if (ic(w, ce, V), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child; + e: for (var w = e, B = p, V = n, ce = B; ; ) if (ic(w, ce, V), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child; else { - if (ce === W) break e; + if (ce === B) break e; for (; ce.sibling === null; ) { - if (ce.return === null || ce.return === W) break e; + if (ce.return === null || ce.return === B) break e; ce = ce.return; } ce.sibling.return = ce.return, ce = ce.sibling; } - a ? (w = r, W = p.stateNode, w.nodeType === 8 ? w.parentNode.removeChild(W) : w.removeChild(W)) : r.removeChild(p.stateNode); + a ? (w = r, B = p.stateNode, w.nodeType === 8 ? w.parentNode.removeChild(B) : w.removeChild(B)) : r.removeChild(p.stateNode); } else if (p.tag === 4) { if (p.child !== null) { r = p.stateNode.containerInfo, a = !0, p.child.return = p, p = p.child; @@ -5346,7 +5346,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return Cn !== null && e === dn && --e, e; } - function bo(e, t) { + function yo(e, t) { if (50 < ea) throw ea = 0, ul = null, Error(m(185)); if ((e = Za(e, t)) !== null) { var n = Ft(); @@ -5386,12 +5386,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e.callbackExpirationTime === t && a >= r) return; n !== jn && vt(n); } - e.callbackExpirationTime = t, e.callbackPriority = r, t = t === 1073741823 ? $i(dl.bind(null, e)) : Hi(r, bc.bind(null, e), { timeout: 10 * (1073741821 - t) - Nt() }), e.callbackNode = t; + e.callbackExpirationTime = t, e.callbackPriority = r, t = t === 1073741823 ? $i(dl.bind(null, e)) : Hi(r, yc.bind(null, e), { timeout: 10 * (1073741821 - t) - Nt() }), e.callbackNode = t; } } } - function bc(e, t) { - if (Ga = 0, t) return yl(e, t = Sr()), Tn(e), null; + function yc(e, t) { + 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)) !== Ut) throw Error(m(327)); @@ -5410,7 +5410,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); case $a: throw Error(m(345)); case mc: - yl(e, 2 < n ? 2 : n); + bl(e, 2 < n ? 2 : n); break; case Ba: if (Zo(e, n), n === (r = e.lastSuspendedTime) && (e.nextKnownPendingLevel = pl(a)), Br === 1073741823 && 10 < (a = ll + gc - Nt())) { @@ -5461,7 +5461,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); default: throw Error(m(329)); } - if (Tn(e), e.callbackNode === t) return bc.bind(null, e); + if (Tn(e), e.callbackNode === t) return yc.bind(null, e); } } return null; @@ -5484,7 +5484,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - function yc(e, t) { + function bc(e, t) { var n = We; We |= 1; try { @@ -5542,7 +5542,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); e: { var a = e, p = qe.return, h = qe, w = t; if (t = dn, h.effectTag |= 2048, h.firstEffect = h.lastEffect = null, w !== null && typeof w == "object" && typeof w.then == "function") { - var W = w; + var B = w; if (!(2 & h.mode)) { var V = h.alternate; V ? (h.updateQueue = V.updateQueue, h.memoizedState = V.memoizedState, h.expirationTime = V.expirationTime) : (h.updateQueue = null, h.memoizedState = null); @@ -5561,24 +5561,24 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (Ve) { var on = Re.updateQueue; if (on === null) { - var q = /* @__PURE__ */ new Set(); - q.add(W), Re.updateQueue = q; - } else on.add(W); + var W = /* @__PURE__ */ new Set(); + W.add(B), Re.updateQueue = W; + } else on.add(B); if (!(2 & Re.mode)) { if (Re.effectTag |= 64, h.effectTag &= -2981, h.tag === 1) if (h.alternate === null) h.tag = 17; else { - var B = po(1073741823, null); - B.tag = 2, fo(h, B); + var H = po(1073741823, null); + H.tag = 2, fo(h, H); } h.expirationTime = 1073741823; break e; } w = void 0, h = t; var re = a.pingCache; - if (re === null ? (re = a.pingCache = new Kc(), w = /* @__PURE__ */ new Set(), re.set(W, w)) : (w = re.get(W)) === void 0 && (w = /* @__PURE__ */ new Set(), re.set(W, w)), !w.has(h)) { + if (re === null ? (re = a.pingCache = new Kc(), w = /* @__PURE__ */ new Set(), re.set(B, w)) : (w = re.get(B)) === void 0 && (w = /* @__PURE__ */ new Set(), re.set(B, w)), !w.has(h)) { w.add(h); - var ve = eu.bind(null, a, W, h); - W.then(ve, ve); + var ve = eu.bind(null, a, B, h); + B.then(ve, ve); } Re.effectTag |= 4096, Re.expirationTime = t; break e; @@ -5593,13 +5593,13 @@ Add a component higher in the tree to provide a loading do { switch (Re.tag) { case 3: - W = w, Re.effectTag |= 4096, Re.expirationTime = t, Sl(Re, dc(Re, W, t)); + B = w, Re.effectTag |= 4096, Re.expirationTime = t, Sl(Re, dc(Re, B, t)); break e; case 1: - W = w; + B = w; var xe = Re.type, Ie = Re.stateNode; if (!(64 & Re.effectTag || typeof xe.getDerivedStateFromError != "function" && (Ie === null || typeof Ie.componentDidCatch != "function" || go !== null && go.has(Ie)))) { - Re.effectTag |= 4096, Re.expirationTime = t, Sl(Re, pc(Re, W, t)); + Re.effectTag |= 4096, Re.expirationTime = t, Sl(Re, pc(Re, B, t)); break e; } } @@ -5682,26 +5682,26 @@ Add a component higher in the tree to provide a loading if (Oi(h)) { if ("selectionStart" in h) var w = { start: h.selectionStart, end: h.selectionEnd }; else e: { - var W = (w = (w = h.ownerDocument) && w.defaultView || window).getSelection && w.getSelection(); - if (W && W.rangeCount !== 0) { - w = W.anchorNode; - var V = W.anchorOffset, ce = W.focusNode; - W = W.focusOffset; + var B = (w = (w = h.ownerDocument) && w.defaultView || window).getSelection && w.getSelection(); + if (B && B.rangeCount !== 0) { + w = B.anchorNode; + var V = B.anchorOffset, ce = B.focusNode; + B = B.focusOffset; try { w.nodeType, ce.nodeType; } catch { w = null; break e; } - var Re = 0, Ve = -1, ot = -1, Vn = 0, on = 0, q = h, B = null; + var Re = 0, Ve = -1, ot = -1, Vn = 0, on = 0, W = h, H = null; t: for (; ; ) { - for (var re; q !== w || V !== 0 && q.nodeType !== 3 || (Ve = Re + V), q !== ce || W !== 0 && q.nodeType !== 3 || (ot = Re + W), q.nodeType === 3 && (Re += q.nodeValue.length), (re = q.firstChild) !== null; ) B = q, q = re; + for (var re; W !== w || V !== 0 && W.nodeType !== 3 || (Ve = Re + V), W !== ce || B !== 0 && W.nodeType !== 3 || (ot = Re + B), W.nodeType === 3 && (Re += W.nodeValue.length), (re = W.firstChild) !== null; ) H = W, W = re; for (; ; ) { - if (q === h) break t; - if (B === w && ++Vn === V && (Ve = Re), B === ce && ++on === W && (ot = Re), (re = q.nextSibling) !== null) break; - B = (q = B).parentNode; + if (W === h) break t; + if (H === w && ++Vn === V && (Ve = Re), H === ce && ++on === B && (ot = Re), (re = W.nextSibling) !== null) break; + H = (W = H).parentNode; } - q = re; + W = re; } w = Ve === -1 || ot === -1 ? null : { start: Ve, end: ot }; } else w = null; @@ -5892,7 +5892,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 = he(t, Y.current), ui(t, n), a = Vs(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, Y.current), ui(t, n), a = Vs(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); @@ -5977,12 +5977,12 @@ Add a component higher in the tree to provide a loading break e; } } else for ((w = t.child) !== null && (w.return = t); w !== null; ) { - var W = w.dependencies; - if (W !== null) { + var B = w.dependencies; + if (B !== null) { h = w.child; - for (var V = W.firstContext; V !== null; ) { + for (var V = B.firstContext; V !== null; ) { if (V.context === r && (V.observedBits & p) !== 0) { - w.tag === 1 && ((V = po(n, null)).tag = 2, fo(w, V)), w.expirationTime < n && (w.expirationTime = n), (V = w.alternate) !== null && V.expirationTime < n && (V.expirationTime = n), xl(w.return, n), W.expirationTime < n && (W.expirationTime = n); + w.tag === 1 && ((V = po(n, null)).tag = 2, fo(w, V)), w.expirationTime < n && (w.expirationTime = n), (V = w.alternate) !== null && V.expirationTime < n && (V.expirationTime = n), xl(w.return, n), B.expirationTime < n && (B.expirationTime = n); break; } V = V.next; @@ -6038,7 +6038,7 @@ Add a component higher in the tree to provide a loading else if (typeof e == "string") h = 5; else e: switch (e) { case Nn: - return yo(n.children, a, p, t); + return bo(n.children, a, p, t); case pn: h = 8, a |= 7; break; @@ -6076,13 +6076,13 @@ Add a component higher in the tree to provide a loading } return (t = Cr(h, n, t, a)).elementType = e, t.type = r, t.expirationTime = p, t; } - function yo(e, t, n, r) { + function bo(e, t, n, r) { return (e = Cr(7, e, r, t)).expirationTime = n, e; } function gl(e, t, n) { return (e = Cr(6, e, null, t)).expirationTime = n, e; } - function bl(e, t, n) { + function yl(e, t, n) { return (t = Cr(4, e.children !== null ? e.children : [], e.key, t)).expirationTime = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t; } function ru(e, t, n) { @@ -6101,7 +6101,7 @@ Add a component higher in the tree to provide a loading var n = e.firstSuspendedTime; n !== 0 && (t >= n ? e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0 : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1), t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t)); } - function yl(e, t) { + function bl(e, t) { var n = e.lastExpiredTime; (n === 0 || n > t) && (e.lastExpiredTime = t); } @@ -6128,15 +6128,15 @@ Add a component higher in the tree to provide a loading throw Error(m(171)); } if (n.tag === 1) { - var W = n.type; - if (de(W)) { - n = ze(n, W, w); + var B = n.type; + if (de(B)) { + n = ze(n, B, w); break e; } } n = w; } else n = K; - return t.context === null ? t.context = n : t.pendingContext = n, (t = po(p, h)).payload = { element: e }, (r = r === void 0 ? null : r) !== null && (t.callback = r), fo(a, t), bo(a, p), p; + return t.context === null ? t.context = n : t.pendingContext = n, (t = po(p, h)).payload = { element: e }, (r = r === void 0 ? null : r) !== null && (t.callback = r), fo(a, t), yo(a, p), p; } function vl(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null; @@ -6151,10 +6151,10 @@ Add a component higher in the tree to provide a loading var r = new ru(e, t, n = n != null && n.hydrate === !0), a = Cr(3, null, null, t === 2 ? 7 : t === 1 ? 3 : 0); r.current = a, a.stateNode = r, Rs(a), e[Io] = r.current, n && t !== 0 && (function(p, h) { var w = Ge(h); - ln.forEach(function(W) { - nt(W, h, w); - }), Gr.forEach(function(W) { - nt(W, h, w); + ln.forEach(function(B) { + nt(B, h, w); + }), Gr.forEach(function(B) { + nt(B, h, w); }); })(0, e.nodeType === 9 ? e : e.ownerDocument), this._internalRoot = r; } @@ -6178,10 +6178,10 @@ Add a component higher in the tree to provide a loading if (ce || (ce = !(!(ce = V ? V.nodeType === 9 ? V.documentElement : V.firstChild : null) || ce.nodeType !== 1 || !ce.hasAttribute("data-reactroot"))), !ce) for (var Re; Re = V.lastChild; ) V.removeChild(Re); return new wl(V, 0, ce ? { hydrate: !0 } : void 0); })(n, r), h = p._internalRoot, typeof a == "function") { - var W = a; + var B = a; a = function() { var V = vl(h); - W.call(V); + B.call(V); }; } vc(function() { @@ -6208,14 +6208,14 @@ Add a component higher in the tree to provide a loading }, Ze = function(e) { if (e.tag === 13) { var t = Fo(Sr(), 150, 100); - bo(e, t), kl(e, t); + yo(e, t), kl(e, t); } }, Yn = function(e) { - e.tag === 13 && (bo(e, 3), kl(e, 3)); + e.tag === 13 && (yo(e, 3), kl(e, 3)); }, vn = function(e) { if (e.tag === 13) { var t = Sr(); - bo(e, t = Ko(t, e, null)), kl(e, t); + yo(e, t = Ko(t, e, null)), kl(e, t); } }, Ee = function(e, t, n) { switch (t) { @@ -6238,7 +6238,7 @@ Add a component higher in the tree to provide a loading case "select": (t = n.value) != null && Dn(e, !!n.multiple, t, !1); } - }, ke = yc, Ne = function(e, t, n, r, a) { + }, ke = bc, Ne = function(e, t, n, r, a) { var p = We; We |= 4; try { @@ -6251,7 +6251,7 @@ Add a component higher in the tree to provide a loading if (qo !== null) { var e = qo; qo = null, e.forEach(function(t, n) { - yl(n, t), Tn(n); + bl(n, t), Tn(n); }), tn(); } })(), mi()); @@ -6264,9 +6264,9 @@ Add a component higher in the tree to provide a loading (We = n) === Ut && tn(); } }; - var ou = { Events: [kr, Zn, Ri, ae, S, $t, function(e) { + var ou = { Events: [kr, Zn, Ri, se, S, $t, function(e) { jt(e, zi); - }, le, me, Po, bn, mi, { current: !1 }] }; + }, le, ge, Po, yn, mi, { current: !1 }] }; (function(e) { var t = e.findFiberByHostInstance; (function(n) { @@ -6322,7 +6322,7 @@ Add a component higher in the tree to provide a loading e._reactRootContainer = null, e[Io] = null; }); }), !0); - }, u.unstable_batchedUpdates = yc, u.unstable_createPortal = function(e, t) { + }, u.unstable_batchedUpdates = bc, u.unstable_createPortal = function(e, t) { return Nc(e, t, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null); }, u.unstable_renderSubtreeIntoContainer = function(e, t, n, r) { if (!ta(n)) throw Error(m(200)); @@ -6348,21 +6348,21 @@ Add a component higher in the tree to provide a loading function C() { } C.resetWarningCache = d, i.exports = function() { - function m(N, I, D, L, se, ee) { - if (ee !== k) { + function m(N, I, D, L, ae, te) { + if (te !== k) { 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 y() { + function b() { return m; } m.isRequired = m; - var v = { array: m, bigint: m, bool: m, func: m, number: m, object: m, string: m, symbol: m, any: m, arrayOf: y, element: m, elementType: m, instanceOf: y, node: m, objectOf: y, oneOf: y, oneOfType: y, shape: y, exact: y, checkPropTypes: C, resetWarningCache: d }; + var v = { array: m, bigint: m, bool: m, func: m, number: m, object: m, string: m, symbol: m, any: m, arrayOf: b, element: m, elementType: m, instanceOf: b, node: m, objectOf: b, oneOf: b, oneOfType: b, shape: b, exact: b, checkPropTypes: C, resetWarningCache: d }; return v.PropTypes = v, v; }; }, 2799: (i, u) => { - var f = typeof Symbol == "function" && Symbol.for, k = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, m = f ? Symbol.for("react.strict_mode") : 60108, y = f ? Symbol.for("react.profiler") : 60114, v = 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, se = f ? Symbol.for("react.suspense") : 60113, ee = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, H = f ? Symbol.for("react.block") : 60121, ne = 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, k = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, m = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, v = 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, 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, X = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119; function fe(S) { if (typeof S == "object" && S !== null) { var j = S.$$typeof; @@ -6372,9 +6372,9 @@ Add a component higher in the tree to provide a loading case I: case D: case C: - case y: + case b: case m: - case se: + case ae: return S; default: switch (S = S && S.$$typeof) { @@ -6393,12 +6393,12 @@ Add a component higher in the tree to provide a loading } } } - function ge(S) { + function he(S) { return fe(S) === D; } - u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = v, u.Element = k, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = y, u.StrictMode = m, u.Suspense = se, u.isAsyncMode = function(S) { - return ge(S) || fe(S) === I; - }, u.isConcurrentMode = ge, u.isContextConsumer = function(S) { + u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = v, u.Element = k, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = m, u.Suspense = ae, u.isAsyncMode = function(S) { + return he(S) || fe(S) === I; + }, u.isConcurrentMode = he, u.isContextConsumer = function(S) { return fe(S) === N; }, u.isContextProvider = function(S) { return fe(S) === v; @@ -6415,13 +6415,13 @@ Add a component higher in the tree to provide a loading }, u.isPortal = function(S) { return fe(S) === d; }, u.isProfiler = function(S) { - return fe(S) === y; + return fe(S) === b; }, u.isStrictMode = function(S) { return fe(S) === m; }, u.isSuspense = function(S) { - return fe(S) === se; + return fe(S) === ae; }, u.isValidElementType = function(S) { - return typeof S == "string" || typeof S == "function" || S === C || S === D || S === y || S === m || S === se || S === ee || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === v || S.$$typeof === N || S.$$typeof === L || S.$$typeof === ne || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === H); + return typeof S == "string" || typeof S == "function" || S === C || S === D || S === b || S === m || S === ae || S === te || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === v || S.$$typeof === N || S.$$typeof === L || S.$$typeof === X || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q); }, u.typeOf = fe; }, 2841: (i, u, f) => { f.r(u), f.d(u, { default: () => C }); @@ -6431,20 +6431,20 @@ 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 = k, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(m, y) { - return y ? "-".concat(y.toLowerCase(), "-").concat(m) : m; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = k, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(m, b) { + return b ? "-".concat(b.toLowerCase(), "-").concat(m) : m; }, u.default = void 0; var f = ["Moz", "Webkit", "O", "ms"]; function k() { var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform"; if (typeof window > "u" || window.document === void 0) return ""; - var y = window.document.documentElement.style; - if (m in y) return ""; - for (var v = 0; v < f.length; v++) if (d(m, f[v]) in y) return f[v]; + var b = window.document.documentElement.style; + if (m in b) return ""; + for (var v = 0; v < f.length; v++) if (d(m, f[v]) in b) return f[v]; return ""; } - function d(m, y) { - return y ? "".concat(y).concat((function(v) { + function d(m, b) { + return b ? "".concat(b).concat((function(v) { for (var N = "", I = !0, D = 0; D < v.length; D++) I ? (N += v[D].toUpperCase(), I = !1) : v[D] === "-" ? I = !0 : N += v[D]; return N; })(m)) : m; @@ -6464,24 +6464,24 @@ 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 k = 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 }, m = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, y = {}; + var k = 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 }, m = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, b = {}; function v(R) { - return k.isMemo(R) ? m : y[R.$$typeof] || d; - } - y[k.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, y[k.Memo] = m; - var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, se = Object.getPrototypeOf, ee = Object.prototype; - i.exports = function R(F, H, ne) { - if (typeof H != "string") { - if (ee) { - var pe = se(H); - pe && pe !== ee && R(F, pe, ne); - } - var oe = I(H); - D && (oe = oe.concat(D(H))); - for (var fe = v(F), ge = v(H), S = 0; S < oe.length; ++S) { + return k.isMemo(R) ? m : b[R.$$typeof] || d; + } + b[k.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, b[k.Memo] = m; + var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, ae = Object.getPrototypeOf, te = Object.prototype; + i.exports = function R(F, q, X) { + if (typeof q != "string") { + if (te) { + var pe = ae(q); + pe && pe !== te && R(F, pe, X); + } + var oe = I(q); + D && (oe = oe.concat(D(q))); + for (var fe = v(F), he = v(q), S = 0; S < oe.length; ++S) { var j = oe[S]; - if (!(C[j] || ne && ne[j] || ge && ge[j] || fe && fe[j])) { - var A = L(H, j); + if (!(C[j] || X && X[j] || he && he[j] || fe && fe[j])) { + var A = L(q, j); try { N(F, j, A); } catch { @@ -6504,8 +6504,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 m in f) d(C, f[m]); - var y = document.body; - for (var v in k) d(y, k[v]); + var b = document.body; + for (var v in k) d(b, k[v]); f = {}, k = {}; }, u.log = function() { }; @@ -6514,28 +6514,28 @@ Add a component higher in the tree to provide a loading C.classList.remove(m); } u.add = function(C, m) { - return y = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { + return b = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { (function(I, D) { I[D] || (I[D] = 0), I[D] += 1; - })(v, N), y.add(N); + })(v, N), b.add(N); }); - var y, v; + var b, v; }, u.remove = function(C, m) { - return y = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { + return b = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { (function(I, D) { I[D] && (I[D] -= 1); - })(v, N), v[N] === 0 && y.remove(N); + })(v, N), v[N] === 0 && b.remove(N); }); - var y, v; + var b, v; }; }, 4987: (i) => { function u(v, N, I, D) { - var L, se = (L = D) == null || typeof L == "number" || typeof L == "boolean" ? D : I(D), ee = N.get(se); - return ee === void 0 && (ee = v.call(this, D), N.set(se, ee)), ee; + var L, ae = (L = D) == null || typeof L == "number" || typeof L == "boolean" ? D : I(D), te = N.get(ae); + return te === void 0 && (te = v.call(this, D), N.set(ae, te)), te; } function f(v, N, I) { - var D = Array.prototype.slice.call(arguments, 3), L = I(D), se = N.get(L); - return se === void 0 && (se = v.apply(this, D), N.set(L, se)), se; + var D = Array.prototype.slice.call(arguments, 3), L = I(D), ae = N.get(L); + return ae === void 0 && (ae = v.apply(this, D), N.set(L, ae)), ae; } function k(v, N, I, D, L) { return I.bind(N, v, D, L); @@ -6556,11 +6556,11 @@ Add a component higher in the tree to provide a loading }, m.prototype.set = function(v, N) { this.cache[v] = N; }; - var y = { create: function() { + var b = { create: function() { return new m(); } }; i.exports = function(v, N) { - var I = N && N.cache ? N.cache : y, D = N && N.serializer ? N.serializer : C; + var I = N && N.cache ? N.cache : b, D = N && N.serializer ? N.serializer : C; return (N && N.strategy ? N.strategy : d)(v, { cache: I, serializer: D }); }, i.exports.strategies = { variadic: function(v, N) { return k(v, this, f, N.cache.create(), N.serializer); @@ -6571,103 +6571,103 @@ Add a component higher in the tree to provide a loading var k, d = function() { return k === void 0 && (k = !!(window && document && document.all && !window.atob)), k; }, C = /* @__PURE__ */ (function() { - var H = {}; - return function(ne) { - if (H[ne] === void 0) { - var pe = document.querySelector(ne); + var q = {}; + return function(X) { + if (q[X] === void 0) { + var pe = document.querySelector(X); if (window.HTMLIFrameElement && pe instanceof window.HTMLIFrameElement) try { pe = pe.contentDocument.head; } catch { pe = null; } - H[ne] = pe; + q[X] = pe; } - return H[ne]; + return q[X]; }; })(), m = []; - function y(H) { - for (var ne = -1, pe = 0; pe < m.length; pe++) if (m[pe].identifier === H) { - ne = pe; + function b(q) { + for (var X = -1, pe = 0; pe < m.length; pe++) if (m[pe].identifier === q) { + X = pe; break; } - return ne; + return X; } - function v(H, ne) { - for (var pe = {}, oe = [], fe = 0; fe < H.length; fe++) { - var ge = H[fe], S = ne.base ? ge[0] + ne.base : ge[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j); + function v(q, X) { + for (var pe = {}, oe = [], fe = 0; fe < q.length; fe++) { + var he = q[fe], S = X.base ? he[0] + X.base : he[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j); pe[S] = j + 1; - var ae = y(A), Z = { css: ge[1], media: ge[2], sourceMap: ge[3] }; - ae !== -1 ? (m[ae].references++, m[ae].updater(Z)) : m.push({ identifier: A, updater: F(Z, ne), references: 1 }), oe.push(A); + var se = b(A), J = { css: he[1], media: he[2], sourceMap: he[3] }; + se !== -1 ? (m[se].references++, m[se].updater(J)) : m.push({ identifier: A, updater: F(J, X), references: 1 }), oe.push(A); } return oe; } - function N(H) { - var ne = document.createElement("style"), pe = H.attributes || {}; + function N(q) { + var X = document.createElement("style"), pe = q.attributes || {}; if (pe.nonce === void 0) { var oe = f.nc; oe && (pe.nonce = oe); } - if (Object.keys(pe).forEach(function(ge) { - ne.setAttribute(ge, pe[ge]); - }), typeof H.insert == "function") H.insert(ne); + if (Object.keys(pe).forEach(function(he) { + X.setAttribute(he, pe[he]); + }), typeof q.insert == "function") q.insert(X); else { - var fe = C(H.insert || "head"); + var fe = C(q.insert || "head"); if (!fe) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); - fe.appendChild(ne); + fe.appendChild(X); } - return ne; + return X; } - var I, D = (I = [], function(H, ne) { - return I[H] = ne, I.filter(Boolean).join(` + var I, D = (I = [], function(q, X) { + return I[q] = X, I.filter(Boolean).join(` `); }); - function L(H, ne, pe, oe) { + function L(q, X, pe, oe) { var fe = pe ? "" : oe.media ? "@media ".concat(oe.media, " {").concat(oe.css, "}") : oe.css; - if (H.styleSheet) H.styleSheet.cssText = D(ne, fe); + if (q.styleSheet) q.styleSheet.cssText = D(X, fe); else { - var ge = document.createTextNode(fe), S = H.childNodes; - S[ne] && H.removeChild(S[ne]), S.length ? H.insertBefore(ge, S[ne]) : H.appendChild(ge); + var he = document.createTextNode(fe), S = q.childNodes; + S[X] && q.removeChild(S[X]), S.length ? q.insertBefore(he, S[X]) : q.appendChild(he); } } - function se(H, ne, pe) { - var oe = pe.css, fe = pe.media, ge = pe.sourceMap; - if (fe ? H.setAttribute("media", fe) : H.removeAttribute("media"), ge && typeof btoa < "u" && (oe += ` -/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(ge)))), " */")), H.styleSheet) H.styleSheet.cssText = oe; + function ae(q, X, 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; else { - for (; H.firstChild; ) H.removeChild(H.firstChild); - H.appendChild(document.createTextNode(oe)); + for (; q.firstChild; ) q.removeChild(q.firstChild); + q.appendChild(document.createTextNode(oe)); } } - var ee = null, R = 0; - function F(H, ne) { + var te = null, R = 0; + function F(q, X) { var pe, oe, fe; - if (ne.singleton) { - var ge = R++; - pe = ee || (ee = N(ne)), oe = L.bind(null, pe, ge, !1), fe = L.bind(null, pe, ge, !0); - } else pe = N(ne), oe = se.bind(null, pe, ne), fe = function() { + if (X.singleton) { + var he = R++; + pe = te || (te = N(X)), oe = L.bind(null, pe, he, !1), fe = L.bind(null, pe, he, !0); + } else pe = N(X), oe = ae.bind(null, pe, X), fe = function() { (function(S) { if (S.parentNode === null) return !1; S.parentNode.removeChild(S); })(pe); }; - return oe(H), function(S) { + return oe(q), function(S) { if (S) { - if (S.css === H.css && S.media === H.media && S.sourceMap === H.sourceMap) return; - oe(H = S); + if (S.css === q.css && S.media === q.media && S.sourceMap === q.sourceMap) return; + oe(q = S); } else fe(); }; } - i.exports = function(H, ne) { - (ne = ne || {}).singleton || typeof ne.singleton == "boolean" || (ne.singleton = d()); - var pe = v(H = H || [], ne); + i.exports = function(q, X) { + (X = X || {}).singleton || typeof X.singleton == "boolean" || (X.singleton = d()); + var pe = v(q = q || [], X); return function(oe) { if (oe = oe || [], Object.prototype.toString.call(oe) === "[object Array]") { for (var fe = 0; fe < pe.length; fe++) { - var ge = y(pe[fe]); - m[ge].references--; + var he = b(pe[fe]); + m[he].references--; } - for (var S = v(oe, ne), j = 0; j < pe.length; j++) { - var A = y(pe[j]); + for (var S = v(oe, X), j = 0; j < pe.length; j++) { + var A = b(pe[j]); m[A].references === 0 && (m[A].updater(), m.splice(A, 1)); } pe = S; @@ -6677,28 +6677,28 @@ 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 k = f(1099), d = { " "() { - } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, m = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, y = 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* " }, m = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); u.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet(); function v(I) { let D; for (const L of I.split(` `).slice(1)) { - const se = /^[\s\t]+/.exec(L); - if (!se) return I; - const [ee] = se; - (D === void 0 || ee.length < D.length) && (D = ee); + const ae = /^[\s\t]+/.exec(L); + if (!ae) return I; + const [te] = ae; + (D === void 0 || te.length < D.length) && (D = te); } return D ? I.split(` ${D}`).join(` `) : I; } - u.functionToString = (I, D, L, se) => { - const ee = typeof se == "string" ? se : void 0; - return ee !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, D, L, ee).stringify(); + u.functionToString = (I, D, L, ae) => { + const te = typeof ae == "string" ? ae : void 0; + return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, D, L, te).stringify(); }, u.dedentFunction = v; class N { - constructor(D, L, se, ee) { - this.fn = D, this.indent = L, this.next = se, this.key = ee, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(D), this.fnType = D.constructor.name, this.keyQuote = ee === void 0 ? "" : k.quoteKey(ee, se), this.keyPrefix = ee === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = ee !== void 0 && (this.fn.name === "" || this.fn.name === ee); + constructor(D, L, ae, te) { + this.fn = D, this.indent = L, this.next = ae, 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 ? "" : k.quoteKey(te, ae), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te); } stringify() { const D = this.tryParse(); @@ -6718,13 +6718,13 @@ ${D}`).join(` if (this.pos = D, this.tryParsePrefixTokens()) { const L = this.tryStrippingName(); if (L) return L; - let se = this.pos; + let ae = this.pos; switch (this.consumeSyntax("WORD_LIKE")) { case "WORD_LIKE": - this.isMethodCandidate && !this.hadKeyword && (se = this.pos); + this.isMethodCandidate && !this.hadKeyword && (ae = this.pos); case "()": if (this.fnString.substr(this.pos, 2) === "=>") return this.keyPrefix + this.fnString; - this.pos = se; + this.pos = ae; case '"': case "'": case "[]": @@ -6757,9 +6757,9 @@ ${D}`).join(` consumeSyntax(D) { const L = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/); if (!L) return; - const [se, ee] = L; - if (this.consumeWhitespace(), ee) return D || ee; - switch (se) { + const [ae, te] = L; + if (this.consumeWhitespace(), te) return D || te; + switch (ae) { case "(": return this.consumeSyntaxUntil("(", ")"); case "[": @@ -6773,15 +6773,15 @@ ${D}`).join(` case "'": return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'"); } - return se; + return ae; } consumeSyntaxUntil(D, L) { - let se = !0; + let ae = !0; for (; ; ) { - const ee = this.consumeSyntax(); - if (ee === L) return D + L; - if (!ee || ee === ")" || ee === "]" || ee === "}") return; - ee === "/" && se && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (se = !1, this.consumeWhitespace()) : se = y.has(ee); + const te = this.consumeSyntax(); + 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); } } consumeMatch(D) { @@ -6789,8 +6789,8 @@ ${D}`).join(` return L && (this.pos += L[0].length), L; } consumeRegExp(D, L) { - const se = D.exec(this.fnString.substr(this.pos)); - if (se) return this.pos += se[0].length, this.consumeWhitespace(), L; + const ae = D.exec(this.fnString.substr(this.pos)); + if (ae) return this.pos += ae[0].length, this.consumeWhitespace(), L; } consumeTemplate() { for (; ; ) { @@ -6814,58 +6814,58 @@ ${D}`).join(` if (Object.getOwnPropertyNames(C).map(function(v) { return C[v]; }).join("") !== "0123456789") return !1; - var y = {}; + var b = {}; return "abcdefghijklmnopqrst".split("").forEach(function(v) { - y[v] = v; - }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst"; + b[v] = v; + }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } })() ? Object.assign : function(d, C) { - for (var m, y, v = (function(L) { + for (var m, b, v = (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 m = Object(arguments[N])) f.call(m, I) && (v[I] = m[I]); if (u) { - y = u(m); - for (var D = 0; D < y.length; D++) k.call(m, y[D]) && (v[y[D]] = m[y[D]]); + b = u(m); + for (var D = 0; D < b.length; D++) k.call(m, b[D]) && (v[b[D]] = m[b[D]]); } } return v; }; }, 5287: (i, u, f) => { - var k = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, m = d ? Symbol.for("react.portal") : 60106, y = d ? Symbol.for("react.fragment") : 60107, v = 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, se = d ? Symbol.for("react.suspense") : 60113, ee = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; - function H(P) { - for (var te = "https://reactjs.org/docs/error-decoder.html?invariant=" + P, we = 1; we < arguments.length; we++) te += "&args[]=" + encodeURIComponent(arguments[we]); - return "Minified React error #" + P + "; visit " + te + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + var k = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, m = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, v = 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, 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(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 ne = { isMounted: function() { + var X = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, pe = {}; - function oe(P, te, we) { - this.props = P, this.context = te, this.refs = pe, this.updater = we || ne; + function oe(P, ne, we) { + this.props = P, this.context = ne, this.refs = pe, this.updater = we || X; } function fe() { } - function ge(P, te, we) { - this.props = P, this.context = te, this.refs = pe, this.updater = we || ne; + function he(P, ne, we) { + this.props = P, this.context = ne, this.refs = pe, this.updater = we || X; } - oe.prototype.isReactComponent = {}, oe.prototype.setState = function(P, te) { - if (typeof P != "object" && typeof P != "function" && P != null) throw Error(H(85)); - this.updater.enqueueSetState(this, P, te, "setState"); + oe.prototype.isReactComponent = {}, oe.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"); }, oe.prototype.forceUpdate = function(P) { this.updater.enqueueForceUpdate(this, P, "forceUpdate"); }, fe.prototype = oe.prototype; - var S = ge.prototype = new fe(); - S.constructor = ge, k(S, oe.prototype), S.isPureReactComponent = !0; - var j = { current: null }, A = Object.prototype.hasOwnProperty, ae = { key: !0, ref: !0, __self: !0, __source: !0 }; - function Z(P, te, we) { + var S = he.prototype = new fe(); + S.constructor = he, k(S, oe.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 Se, Pe = {}, _e = null, lt = null; - if (te != null) for (Se in te.ref !== void 0 && (lt = te.ref), te.key !== void 0 && (_e = "" + te.key), te) A.call(te, Se) && !ae.hasOwnProperty(Se) && (Pe[Se] = te[Se]); + if (ne != null) for (Se in ne.ref !== void 0 && (lt = ne.ref), ne.key !== void 0 && (_e = "" + ne.key), ne) A.call(ne, Se) && !se.hasOwnProperty(Se) && (Pe[Se] = ne[Se]); var Qe = arguments.length - 2; if (Qe === 1) Pe.children = we; else if (1 < Qe) { @@ -6878,18 +6878,18 @@ ${D}`).join(` function Ee(P) { return typeof P == "object" && P !== null && P.$$typeof === C; } - var J = /\/+/g, U = []; - function G(P, te, we, Se) { + var ee = /\/+/g, U = []; + function Z(P, ne, we, Se) { if (U.length) { var Pe = U.pop(); - return Pe.result = P, Pe.keyPrefix = te, Pe.func = we, Pe.context = Se, Pe.count = 0, Pe; + return Pe.result = P, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Se, Pe.count = 0, Pe; } - return { result: P, keyPrefix: te, func: we, context: Se, count: 0 }; + return { result: P, keyPrefix: ne, func: we, context: Se, count: 0 }; } 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 me(P, te, we, Se) { + function ge(P, ne, we, Se) { var Pe = typeof P; Pe !== "undefined" && Pe !== "boolean" || (P = null); var _e = !1; @@ -6906,73 +6906,73 @@ ${D}`).join(` _e = !0; } } - if (_e) return we(Se, P, te === "" ? "." + Ne(P, 0) : te), 1; - if (_e = 0, te = te === "" ? "." : te + ":", Array.isArray(P)) for (var lt = 0; lt < P.length; lt++) { - var Qe = te + Ne(Pe = P[lt], lt); - _e += me(Pe, Qe, we, Se); + if (_e) return we(Se, 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, Se); } - else if (P === null || typeof P != "object" ? Qe = null : Qe = typeof (Qe = F && P[F] || P["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (P = Qe.call(P), lt = 0; !(Pe = P.next()).done; ) _e += me(Pe = Pe.value, Qe = te + Ne(Pe, lt++), we, Se); - else if (Pe === "object") throw we = "" + P, Error(H(31, we === "[object Object]" ? "object with keys {" + Object.keys(P).join(", ") + "}" : we, "")); + else if (P === null || typeof P != "object" ? Qe = null : Qe = typeof (Qe = F && P[F] || 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, Se); + 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(P, te, we) { - return P == null ? 0 : me(P, "", te, we); + function ke(P, ne, we) { + return P == null ? 0 : ge(P, "", ne, we); } - function Ne(P, te) { + function Ne(P, ne) { return typeof P == "object" && P !== null && P.key != null ? (function(we) { var Se = { "=": "=0", ":": "=2" }; return "$" + ("" + we).replace(/[=:]/g, function(Pe) { return Se[Pe]; }); - })(P.key) : te.toString(36); + })(P.key) : ne.toString(36); } - function Ue(P, te) { - P.func.call(P.context, te, P.count++); + function Ue(P, ne) { + P.func.call(P.context, ne, P.count++); } - function Ae(P, te, we) { + function Ae(P, ne, we) { var Se = P.result, Pe = P.keyPrefix; - P = P.func.call(P.context, te, P.count++), Array.isArray(P) ? Le(P, Se, we, function(_e) { + P = P.func.call(P.context, ne, P.count++), Array.isArray(P) ? Le(P, Se, we, function(_e) { return _e; }) : 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 }; - })(P, Pe + (!P.key || te && te.key === P.key ? "" : ("" + P.key).replace(J, "$&/") + "/") + we)), Se.push(P)); + })(P, Pe + (!P.key || ne && ne.key === P.key ? "" : ("" + P.key).replace(ee, "$&/") + "/") + we)), Se.push(P)); } - function Le(P, te, we, Se, Pe) { + function Le(P, ne, we, Se, Pe) { var _e = ""; - we != null && (_e = ("" + we).replace(J, "$&/") + "/"), ke(P, Ae, te = G(te, _e, Se, Pe)), le(te); + we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(P, Ae, ne = Z(ne, _e, Se, Pe)), le(ne); } var Ke = { current: null }; function Je() { var P = Ke.current; - if (P === null) throw Error(H(321)); + if (P === null) throw Error(q(321)); return P; } - var be = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: k }; - u.Children = { map: function(P, te, we) { + var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: k }; + u.Children = { map: function(P, ne, we) { if (P == null) return P; var Se = []; - return Le(P, Se, null, te, we), Se; - }, forEach: function(P, te, we) { + return Le(P, Se, null, ne, we), Se; + }, forEach: function(P, ne, we) { if (P == null) return P; - ke(P, Ue, te = G(null, null, te, we)), le(te); + ke(P, Ue, ne = Z(null, null, ne, we)), le(ne); }, count: function(P) { return ke(P, function() { return null; }, null); }, toArray: function(P) { - var te = []; - return Le(P, te, null, function(we) { + var ne = []; + return Le(P, ne, null, function(we) { return we; - }), te; + }), ne; }, only: function(P) { - if (!Ee(P)) throw Error(H(143)); + if (!Ee(P)) throw Error(q(143)); return P; - } }, u.Component = oe, u.Fragment = y, u.Profiler = N, u.PureComponent = ge, u.StrictMode = v, u.Suspense = se, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = be, u.cloneElement = function(P, te, we) { - if (P == null) throw Error(H(267, P)); + } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = he, u.StrictMode = v, u.Suspense = ae, 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 Se = k({}, P.props), Pe = P.key, _e = P.ref, lt = P._owner; - if (te != null) { - if (te.ref !== void 0 && (_e = te.ref, lt = j.current), te.key !== void 0 && (Pe = "" + te.key), P.type && P.type.defaultProps) var Qe = P.type.defaultProps; - for (et in te) A.call(te, et) && !ae.hasOwnProperty(et) && (Se[et] = te[et] === void 0 && Qe !== void 0 ? Qe[et] : te[et]); + if (ne != null) { + 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) && (Se[et] = ne[et] === void 0 && Qe !== void 0 ? Qe[et] : ne[et]); } var et = arguments.length - 2; if (et === 1) Se.children = we; @@ -6982,34 +6982,34 @@ ${D}`).join(` Se.children = Qe; } return { $$typeof: C, type: P.type, key: Pe, ref: _e, props: Se, _owner: lt }; - }, u.createContext = function(P, te) { - return te === void 0 && (te = null), (P = { $$typeof: D, _calculateChangedBits: te, _currentValue: P, _currentValue2: P, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: P }, P.Consumer = P; - }, u.createElement = Z, u.createFactory = function(P) { - var te = Z.bind(null, P); - return te.type = P, te; + }, 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(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, te) { - return { $$typeof: ee, type: P, compare: te === void 0 ? null : te }; - }, u.useCallback = function(P, te) { - return Je().useCallback(P, te); - }, u.useContext = function(P, te) { - return Je().useContext(P, te); + }, 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(P, te) { - return Je().useEffect(P, te); - }, u.useImperativeHandle = function(P, te, we) { - return Je().useImperativeHandle(P, te, we); - }, u.useLayoutEffect = function(P, te) { - return Je().useLayoutEffect(P, te); - }, u.useMemo = function(P, te) { - return Je().useMemo(P, te); - }, u.useReducer = function(P, te, we) { - return Je().useReducer(P, te, we); + }, 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) { @@ -7018,36 +7018,36 @@ ${D}`).join(` }, 5323: (i, u, f) => { u.A = void 0; const k = f(42), d = f(1099), C = Symbol("root"); - u.A = function(m, y, v, N = {}) { - const I = typeof v == "string" ? v : " ".repeat(v || 0), D = [], L = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(); + u.A = function(m, b, v, N = {}) { + const I = typeof v == "string" ? v : " ".repeat(v || 0), D = [], L = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map(); let R = 0; - const { maxDepth: F = 100, references: H = !1, skipUndefinedProperties: ne = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { - return j ? (A, ae, Z, Ee) => j(A, ae, (J) => k.toString(J, ae, Z, Ee), Ee) : k.toString; - })(y), fe = (j, A) => { - if (++R > pe || ne && j === void 0 || D.length > F) return; + const { maxDepth: F = 100, references: q = !1, skipUndefinedProperties: X = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { + return j ? (A, se, J, Ee) => j(A, se, (ee) => k.toString(ee, se, J, Ee), Ee) : k.toString; + })(b), fe = (j, A) => { + if (++R > pe || X && j === void 0 || D.length > F) return; if (A === void 0) return oe(j, I, fe, A); D.push(A); - const ae = ge(j, A === C ? void 0 : A); - return D.pop(), ae; - }, ge = H ? (j, 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 (se.has(j)) return ee.set(D.slice(1), se.get(j)), oe(void 0, I, fe, A); - se.set(j, D.slice(1)); + if (ae.has(j)) return te.set(D.slice(1), ae.get(j)), oe(void 0, I, fe, A); + ae.set(j, D.slice(1)); } return oe(j, I, fe, A); } : (j, A) => { if (L.has(j)) return; L.add(j); - const ae = oe(j, I, fe, A); - return L.delete(j), ae; + const se = oe(j, I, fe, A); + return L.delete(j), se; }, S = fe(m, C); - if (ee.size) { + if (te.size) { const j = I ? " " : "", A = I ? ` ` : ""; - let ae = `var x${j}=${j}${S};${A}`; - for (const [Z, Ee] of ee.entries()) - ae += `x${d.stringifyPath(Z, fe)}${j}=${j}x${d.stringifyPath(Ee, fe)};${A}`; - return `(function${j}()${j}{${A}${ae}return x;${A}}())`; + let se = `var x${j}=${j}${S};${A}`; + for (const [J, Ee] of te.entries()) + 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; }; @@ -7072,66 +7072,66 @@ ${D}`).join(` Object.defineProperty(u, "__esModule", { value: !0 }), Object.defineProperty(u, "DraggableCore", { enumerable: !0, get: function() { return I.default; } }), u.default = void 0; - var k = (function(J) { - if (J && J.__esModule) return J; - if (J === null || ee(J) !== "object" && typeof J != "function") return { default: J }; - var U = se(); - if (U && U.has(J)) return U.get(J); - var G = {}, le = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var me in J) if (Object.prototype.hasOwnProperty.call(J, me)) { - var ke = le ? Object.getOwnPropertyDescriptor(J, me) : null; - ke && (ke.get || ke.set) ? Object.defineProperty(G, me, ke) : G[me] = J[me]; - } - return G.default = J, U && U.set(J, G), G; - })(f(6540)), d = L(f(5556)), C = L(f(961)), m = L(f(6942)), y = f(1089), v = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696)); - function L(J) { - return J && J.__esModule ? J : { default: J }; - } - function se() { + var k = (function(ee) { + if (ee && ee.__esModule) return ee; + if (ee === null || te(ee) !== "object" && typeof ee != "function") return { default: ee }; + var U = ae(); + 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, U && U.set(ee, Z), Z; + })(f(6540)), d = L(f(5556)), C = L(f(961)), m = L(f(6942)), b = f(1089), v = 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() { if (typeof WeakMap != "function") return null; - var J = /* @__PURE__ */ new WeakMap(); - return se = function() { - return J; - }, J; + var ee = /* @__PURE__ */ new WeakMap(); + return ae = function() { + return ee; + }, ee; } - function ee(J) { - return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(U) { + function te(ee) { + 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; - }, ee(J); + }, te(ee); } function R() { - return R = Object.assign || function(J) { + return R = Object.assign || function(ee) { for (var U = 1; U < arguments.length; U++) { - var G = arguments[U]; - for (var le in G) Object.prototype.hasOwnProperty.call(G, le) && (J[le] = G[le]); + var Z = arguments[U]; + for (var le in Z) Object.prototype.hasOwnProperty.call(Z, le) && (ee[le] = Z[le]); } - return J; + return ee; }, R.apply(this, arguments); } - function F(J, U) { - if (J == null) return {}; - var G, le, me = (function(Ne, Ue) { + function F(ee, U) { + if (ee == null) return {}; + 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], Ue.indexOf(Ae) >= 0 || (Ke[Ae] = Ne[Ae]); return Ke; - })(J, U); + })(ee, U); if (Object.getOwnPropertySymbols) { - var ke = Object.getOwnPropertySymbols(J); - for (le = 0; le < ke.length; le++) G = ke[le], U.indexOf(G) >= 0 || Object.prototype.propertyIsEnumerable.call(J, G) && (me[G] = J[G]); + var ke = Object.getOwnPropertySymbols(ee); + 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 me; + return ge; } - function H(J, U) { - return (function(G) { - if (Array.isArray(G)) return G; - })(J) || (function(G, le) { - if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(G)))) { - var me = [], ke = !0, Ne = !1, Ue = void 0; + 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, Ue = void 0; try { - for (var Ae, Le = G[Symbol.iterator](); !(ke = (Ae = Le.next()).done) && (me.push(Ae.value), !le || me.length !== le); ke = !0) ; + 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, Ue = Ke; } finally { @@ -7141,61 +7141,61 @@ ${D}`).join(` if (Ne) throw Ue; } } - return me; + return ge; } - })(J, U) || (function(G, le) { - if (G) { - if (typeof G == "string") return ne(G, le); - var me = Object.prototype.toString.call(G).slice(8, -1); - if (me === "Object" && G.constructor && (me = G.constructor.name), me === "Map" || me === "Set") return Array.from(G); - if (me === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me)) return ne(G, le); + })(ee, U) || (function(Z, le) { + if (Z) { + if (typeof Z == "string") return X(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 X(Z, le); } - })(J, U) || (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 ne(J, U) { - (U == null || U > J.length) && (U = J.length); - for (var G = 0, le = new Array(U); G < U; G++) le[G] = J[G]; + function X(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(J, U) { - var G = Object.keys(J); + function pe(ee, U) { + var Z = Object.keys(ee); if (Object.getOwnPropertySymbols) { - var le = Object.getOwnPropertySymbols(J); - U && (le = le.filter(function(me) { - return Object.getOwnPropertyDescriptor(J, me).enumerable; - })), G.push.apply(G, le); + var le = Object.getOwnPropertySymbols(ee); + U && (le = le.filter(function(ge) { + return Object.getOwnPropertyDescriptor(ee, ge).enumerable; + })), Z.push.apply(Z, le); } - return G; + return Z; } - function oe(J) { + function oe(ee) { for (var U = 1; U < arguments.length; U++) { - var G = arguments[U] != null ? arguments[U] : {}; - U % 2 ? pe(Object(G), !0).forEach(function(le) { - Z(J, le, G[le]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(J, Object.getOwnPropertyDescriptors(G)) : pe(Object(G)).forEach(function(le) { - Object.defineProperty(J, le, Object.getOwnPropertyDescriptor(G, le)); + 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)); }); } - return J; + return ee; } - function fe(J, U) { - for (var G = 0; G < U.length; G++) { - var le = U[G]; - le.enumerable = le.enumerable || !1, le.configurable = !0, "value" in le && (le.writable = !0), Object.defineProperty(J, le.key, le); + 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 ge(J, U, G) { - return U && fe(J.prototype, U), G && fe(J, G), J; + function he(ee, U, Z) { + return U && fe(ee.prototype, U), Z && fe(ee, Z), ee; } - function S(J, U) { - return S = Object.setPrototypeOf || function(G, le) { - return G.__proto__ = le, G; - }, S(J, U); + function S(ee, U) { + return S = Object.setPrototypeOf || function(Z, le) { + return Z.__proto__ = le, Z; + }, S(ee, U); } - function j(J) { + function j(ee) { var U = (function() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; @@ -7207,81 +7207,81 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } })(); return function() { - var G, le = ae(J); + var Z, le = se(ee); if (U) { - var me = ae(this).constructor; - G = Reflect.construct(le, arguments, me); - } else G = le.apply(this, arguments); + var ge = se(this).constructor; + Z = Reflect.construct(le, arguments, ge); + } else Z = le.apply(this, arguments); return (function(ke, Ne) { - return Ne && (ee(Ne) === "object" || typeof Ne == "function") ? Ne : A(ke); - })(this, G); + return Ne && (te(Ne) === "object" || typeof Ne == "function") ? Ne : A(ke); + })(this, Z); }; } - function A(J) { - if (J === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return J; + function A(ee) { + if (ee === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return ee; } - function ae(J) { - return ae = Object.setPrototypeOf ? Object.getPrototypeOf : function(U) { + function se(ee) { + return se = Object.setPrototypeOf ? Object.getPrototypeOf : function(U) { return U.__proto__ || Object.getPrototypeOf(U); - }, ae(J); - } - function Z(J, U, G) { - return U in J ? Object.defineProperty(J, U, { value: G, enumerable: !0, configurable: !0, writable: !0 }) : J[U] = G, J; - } - var Ee = (function(J) { - (function(le, me) { - if (typeof me != "function" && me !== null) throw new TypeError("Super expression must either be null or a function"); - le.prototype = Object.create(me && me.prototype, { constructor: { value: le, writable: !0, configurable: !0 } }), me && S(le, me); - })(G, J); - var U = j(G); - function G(le) { - var me; + }, se(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 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, G), Z(A(me = U.call(this, le)), "onDragStart", function(ke, Ne) { - if ((0, D.default)("Draggable: onDragStart: %j", Ne), me.props.onStart(ke, (0, v.createDraggableData)(A(me), Ne)) === !1) return !1; - me.setState({ dragging: !0, dragged: !0 }); - }), Z(A(me), "onDrag", function(ke, Ne) { - if (!me.state.dragging) 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, v.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, D.default)("Draggable: onDrag: %j", Ne); - var Ue = (0, v.createDraggableData)(A(me), Ne), Ae = { x: Ue.x, y: Ue.y }; - if (me.props.bounds) { + var Ue = (0, v.createDraggableData)(A(ge), Ne), Ae = { x: Ue.x, y: Ue.y }; + if (ge.props.bounds) { var Le = Ae.x, Ke = Ae.y; - Ae.x += me.state.slackX, Ae.y += me.state.slackY; - var Je = H((0, v.getBoundPosition)(A(me), Ae.x, Ae.y), 2), be = Je[0], P = Je[1]; - Ae.x = be, Ae.y = P, Ae.slackX = me.state.slackX + (Le - Ae.x), Ae.slackY = me.state.slackY + (Ke - Ae.y), Ue.x = Ae.x, Ue.y = Ae.y, Ue.deltaX = Ae.x - me.state.x, Ue.deltaY = Ae.y - me.state.y; + Ae.x += ge.state.slackX, Ae.y += ge.state.slackY; + var Je = q((0, v.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 (me.props.onDrag(ke, Ue) === !1) return !1; - me.setState(Ae); - }), Z(A(me), "onDragStop", function(ke, Ne) { - if (!me.state.dragging || me.props.onStop(ke, (0, v.createDraggableData)(A(me), Ne)) === !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, v.createDraggableData)(A(ge), Ne)) === !1) return !1; (0, D.default)("Draggable: onDragStop: %j", Ne); var Ue = { dragging: !1, slackX: 0, slackY: 0 }; - if (me.props.position) { - var Ae = me.props.position, Le = Ae.x, Ke = Ae.y; + if (ge.props.position) { + var Ae = ge.props.position, Le = Ae.x, Ke = Ae.y; Ue.x = Le, Ue.y = Ke; } - me.setState(Ue); - }), me.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."), me; + 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: 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; } - return ge(G, null, [{ key: "getDerivedStateFromProps", value: function(le, me) { - var ke = le.position, Ne = me.prevPropsPosition; + 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, D.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) }); - } }]), ge(G, [{ key: "componentDidMount", value: function() { + } }]), he(Z, [{ key: "componentDidMount", value: function() { window.SVGElement !== void 0 && this.findDOMNode() instanceof window.SVGElement && this.setState({ isElementSVG: !0 }); } }, { key: "componentWillUnmount", value: function() { this.setState({ dragging: !1 }); } }, { key: "findDOMNode", value: function() { return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this); } }, { key: "render", value: function() { - var le, me = this.props, ke = (me.axis, me.bounds, me.children), Ne = me.defaultPosition, Ue = me.defaultClassName, Ae = me.defaultClassNameDragging, Le = me.defaultClassNameDragged, Ke = me.position, Je = me.positionOffset, be = (me.scale, F(me, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, te = null, we = !Ke || this.state.dragging, Se = Ke || Ne, Pe = { x: (0, v.canDragX)(this) && we ? this.state.x : Se.x, y: (0, v.canDragY)(this) && we ? this.state.y : Se.y }; - this.state.isElementSVG ? te = (0, y.createSVGTransform)(Pe, Je) : P = (0, y.createCSSTransform)(Pe, Je); - var _e = (0, m.default)(ke.props.className || "", Ue, (Z(le = {}, Ae, this.state.dragging), Z(le, Le, this.state.dragged), le)); - return k.createElement(I.default, R({}, be, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), k.cloneElement(k.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: te })); - } }]), G; + 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, F(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, ne = null, we = !Ke || this.state.dragging, Se = Ke || Ne, Pe = { x: (0, v.canDragX)(this) && we ? this.state.x : Se.x, y: (0, v.canDragY)(this) && we ? this.state.y : Se.y }; + this.state.isElementSVG ? ne = (0, b.createSVGTransform)(Pe, Je) : P = (0, b.createCSSTransform)(Pe, Je); + var _e = (0, m.default)(ke.props.className || "", Ue, (J(le = {}, Ae, this.state.dragging), J(le, Le, this.state.dragged), le)); + return k.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), k.cloneElement(k.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: ne })); + } }]), Z; })(k.Component); - u.default = Ee, Z(Ee, "displayName", "Draggable"), Z(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 })), Z(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", 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 })); }, 6314: (i) => { i.exports = function(u) { var f = []; @@ -7293,8 +7293,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, f.i = function(k, d, C) { typeof k == "string" && (k = [[null, k, ""]]); var m = {}; - if (C) for (var y = 0; y < this.length; y++) { - var v = this[y][0]; + if (C) for (var b = 0; b < this.length; b++) { + var v = this[b][0]; v != null && (m[v] = !0); } for (var N = 0; N < k.length; N++) { @@ -7332,11 +7332,11 @@ 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() { - y && (y.removeAttribute ? y.removeAttribute("aria-hidden") : y.length != null ? y.forEach(function(I) { + b && (b.removeAttribute ? b.removeAttribute("aria-hidden") : b.length != null ? b.forEach(function(I) { return I.removeAttribute("aria-hidden"); - }) : document.querySelectorAll(y).forEach(function(I) { + }) : document.querySelectorAll(b).forEach(function(I) { return I.removeAttribute("aria-hidden"); - })), y = null; + })), b = null; }, u.log = function() { }, u.assertNodeList = v, u.setElement = function(I) { var D = I; @@ -7344,44 +7344,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var L = document.querySelectorAll(D); v(L, D), D = L; } - return y = D || y; + return b = D || b; }, u.validateElement = N, u.hide = function(I) { - var D = !0, L = !1, se = void 0; + var D = !0, L = !1, ae = void 0; try { - for (var ee, R = N(I)[Symbol.iterator](); !(D = (ee = R.next()).done); D = !0) - ee.value.setAttribute("aria-hidden", "true"); + for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) + te.value.setAttribute("aria-hidden", "true"); } catch (F) { - L = !0, se = F; + L = !0, ae = F; } finally { try { !D && R.return && R.return(); } finally { - if (L) throw se; + if (L) throw ae; } } }, u.show = function(I) { - var D = !0, L = !1, se = void 0; + var D = !0, L = !1, ae = void 0; try { - for (var ee, R = N(I)[Symbol.iterator](); !(D = (ee = R.next()).done); D = !0) - ee.value.removeAttribute("aria-hidden"); + for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) + te.value.removeAttribute("aria-hidden"); } catch (F) { - L = !0, se = F; + L = !0, ae = F; } finally { try { !D && R.return && R.return(); } finally { - if (L) throw se; + if (L) throw ae; } } }, u.documentNotReadyOrSSRTesting = function() { - y = null; + b = null; }; - var k, d = f(9771), C = (k = d) && k.__esModule ? k : { default: k }, m = f(834), y = null; + var k, d = f(9771), C = (k = d) && k.__esModule ? k : { default: k }, m = f(834), b = null; function v(I, D) { if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + D + "."); } function N(I) { - var D = I || y; + var D = I || b; 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) => { @@ -7396,15 +7396,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var k = (function(A) { if (A && A.__esModule) return A; if (A === null || L(A) !== "object" && typeof A != "function") return { default: A }; - var ae = D(); - if (ae && ae.has(A)) return ae.get(A); - var Z = {}, Ee = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var J in A) if (Object.prototype.hasOwnProperty.call(A, J)) { - var U = Ee ? Object.getOwnPropertyDescriptor(A, J) : null; - U && (U.get || U.set) ? Object.defineProperty(Z, J, U) : Z[J] = A[J]; - } - return Z.default = A, ae && ae.set(A, Z), Z; - })(f(6540)), d = I(f(5556)), C = I(f(961)), m = f(1089), y = f(1726), v = f(7056), N = I(f(8696)); + 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 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)), m = f(1089), b = f(1726), v = f(7056), N = I(f(8696)); function I(A) { return A && A.__esModule ? A : { default: A }; } @@ -7416,61 +7416,61 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, A; } function L(A) { - return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ae) { - return typeof ae; - } : function(ae) { - return ae && typeof Symbol == "function" && ae.constructor === Symbol && ae !== Symbol.prototype ? "symbol" : typeof ae; + 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; }, L(A); } - function se(A, ae) { - return (function(Z) { - if (Array.isArray(Z)) return Z; - })(A) || (function(Z, Ee) { - if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(Z)))) { - var J = [], U = !0, G = !1, le = void 0; + function ae(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 = [], U = !0, Z = !1, le = void 0; try { - for (var me, ke = Z[Symbol.iterator](); !(U = (me = ke.next()).done) && (J.push(me.value), !Ee || J.length !== Ee); U = !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) { - G = !0, le = Ne; + Z = !0, le = Ne; } finally { try { U || ke.return == null || ke.return(); } finally { - if (G) throw le; + if (Z) throw le; } } - return J; + return ee; } - })(A, ae) || (function(Z, Ee) { - if (Z) { - if (typeof Z == "string") return ee(Z, Ee); - var J = Object.prototype.toString.call(Z).slice(8, -1); - if (J === "Object" && Z.constructor && (J = Z.constructor.name), J === "Map" || J === "Set") return Array.from(Z); - if (J === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)) return ee(Z, Ee); + })(A, se) || (function(J, Ee) { + if (J) { + if (typeof J == "string") return te(J, Ee); + var ee = Object.prototype.toString.call(J).slice(8, -1); + if (ee === "Object" && J.constructor && (ee = J.constructor.name), ee === "Map" || ee === "Set") return Array.from(J); + if (ee === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)) return te(J, Ee); } - })(A, ae) || (function() { + })(A, se) || (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 ee(A, ae) { - (ae == null || ae > A.length) && (ae = A.length); - for (var Z = 0, Ee = new Array(ae); Z < ae; Z++) Ee[Z] = A[Z]; + function te(A, se) { + (se == null || se > A.length) && (se = A.length); + for (var J = 0, Ee = new Array(se); J < se; J++) Ee[J] = A[J]; return Ee; } - function R(A, ae) { - for (var Z = 0; Z < ae.length; Z++) { - var Ee = ae[Z]; + function R(A, se) { + for (var J = 0; J < se.length; J++) { + var Ee = se[J]; Ee.enumerable = Ee.enumerable || !1, Ee.configurable = !0, "value" in Ee && (Ee.writable = !0), Object.defineProperty(A, Ee.key, Ee); } } - function F(A, ae) { - return F = Object.setPrototypeOf || function(Z, Ee) { - return Z.__proto__ = Ee, Z; - }, F(A, ae); + function F(A, se) { + return F = Object.setPrototypeOf || function(J, Ee) { + return J.__proto__ = Ee, J; + }, F(A, se); } - function H(A) { - var ae = (function() { + function q(A) { + var se = (function() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; try { @@ -7481,41 +7481,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } })(); return function() { - var Z, Ee = pe(A); - if (ae) { - var J = pe(this).constructor; - Z = Reflect.construct(Ee, arguments, J); - } else Z = Ee.apply(this, arguments); - return (function(U, G) { - return G && (L(G) === "object" || typeof G == "function") ? G : ne(U); - })(this, Z); + var J, Ee = pe(A); + if (se) { + var ee = pe(this).constructor; + J = Reflect.construct(Ee, arguments, ee); + } else J = Ee.apply(this, arguments); + return (function(U, Z) { + return Z && (L(Z) === "object" || typeof Z == "function") ? Z : X(U); + })(this, J); }; } - function ne(A) { + function X(A) { if (A === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return A; } function pe(A) { - return pe = Object.setPrototypeOf ? Object.getPrototypeOf : function(ae) { - return ae.__proto__ || Object.getPrototypeOf(ae); + return pe = Object.setPrototypeOf ? Object.getPrototypeOf : function(se) { + return se.__proto__ || Object.getPrototypeOf(se); }, pe(A); } - function oe(A, ae, Z) { - return ae in A ? Object.defineProperty(A, ae, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : A[ae] = Z, A; + function oe(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" }, ge = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = ge, j = (function(A) { - (function(U, G) { - if (typeof G != "function" && G !== null) throw new TypeError("Super expression must either be null or a function"); - U.prototype = Object.create(G && G.prototype, { constructor: { value: U, writable: !0, configurable: !0 } }), G && F(U, G); - })(J, A); - var ae, Z, Ee = H(J); - function J() { + 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"); + U.prototype = Object.create(Z && Z.prototype, { constructor: { value: U, writable: !0, configurable: !0 } }), Z && F(U, Z); + })(ee, A); + var se, J, Ee = q(ee); + function ee() { var U; (function(ke, Ne) { if (!(ke instanceof Ne)) throw new TypeError("Cannot call a class as a function"); - })(this, J); - for (var G = arguments.length, le = new Array(G), me = 0; me < G; me++) le[me] = arguments[me]; - return oe(ne(U = Ee.call.apply(Ee, [this].concat(le))), "state", { dragging: !1, lastX: NaN, lastY: NaN, touchIdentifier: null }), oe(ne(U), "mounted", !1), oe(ne(U), "handleDragStart", function(ke) { + })(this, ee); + for (var Z = arguments.length, le = new Array(Z), ge = 0; ge < Z; ge++) le[ge] = arguments[ge]; + return oe(X(U = Ee.call.apply(Ee, [this].concat(le))), "state", { dragging: !1, lastX: NaN, lastY: NaN, touchIdentifier: null }), oe(X(U), "mounted", !1), oe(X(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!"); @@ -7524,23 +7524,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ke.type === "touchstart" && ke.preventDefault(); var Ae = (0, m.getTouchIdentifier)(ke); U.setState({ touchIdentifier: Ae }); - var Le = (0, y.getControlPosition)(ke, Ae, ne(U)); + var Le = (0, b.getControlPosition)(ke, Ae, X(U)); if (Le != null) { - var Ke = Le.x, Je = Le.y, be = (0, y.createCoreData)(ne(U), Ke, Je); - (0, N.default)("DraggableCore: handleDragStart: %j", be), (0, N.default)("calling", U.props.onStart), U.props.onStart(ke, be) !== !1 && U.mounted !== !1 && (U.props.enableUserSelectHack && (0, m.addUserSelectStyles)(Ue), U.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, m.addEvent)(Ue, S.move, U.handleDrag), (0, m.addEvent)(Ue, S.stop, U.handleDragStop)); + var Ke = Le.x, Je = Le.y, ye = (0, b.createCoreData)(X(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, m.addUserSelectStyles)(Ue), U.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, m.addEvent)(Ue, S.move, U.handleDrag), (0, m.addEvent)(Ue, S.stop, U.handleDragStop)); } } - }), oe(ne(U), "handleDrag", function(ke) { - var Ne = (0, y.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); + }), oe(X(U), "handleDrag", function(ke) { + var Ne = (0, b.getControlPosition)(ke, U.state.touchIdentifier, X(U)); if (Ne != null) { 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 = se((0, y.snapToGrid)(U.props.grid, Le, Ke), 2); + var Le = Ue - U.state.lastX, Ke = Ae - U.state.lastY, Je = ae((0, b.snapToGrid)(U.props.grid, Le, Ke), 2); if (Le = Je[0], Ke = Je[1], !Le && !Ke) return; Ue = U.state.lastX + Le, Ae = U.state.lastY + Ke; } - var be = (0, y.createCoreData)(ne(U), Ue, Ae); - if ((0, N.default)("DraggableCore: handleDrag: %j", be), U.props.onDrag(ke, be) !== !1 && U.mounted !== !1) U.setState({ lastX: Ue, lastY: Ae }); + var ye = (0, b.createCoreData)(X(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 { U.handleDragStop(new MouseEvent("mouseup")); } catch { @@ -7548,27 +7548,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho P.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), U.handleDragStop(P); } } - }), oe(ne(U), "handleDragStop", function(ke) { + }), oe(X(U), "handleDragStop", function(ke) { if (U.state.dragging) { - var Ne = (0, y.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); + var Ne = (0, b.getControlPosition)(ke, U.state.touchIdentifier, X(U)); if (Ne != null) { - var Ue = Ne.x, Ae = Ne.y, Le = (0, y.createCoreData)(ne(U), Ue, Ae); + var Ue = Ne.x, Ae = Ne.y, Le = (0, b.createCoreData)(X(U), Ue, Ae); if (U.props.onStop(ke, Le) === !1 || U.mounted === !1) return !1; var Ke = U.findDOMNode(); Ke && U.props.enableUserSelectHack && (0, m.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, m.removeEvent)(Ke.ownerDocument, S.move, U.handleDrag), (0, m.removeEvent)(Ke.ownerDocument, S.stop, U.handleDragStop)); } } - }), oe(ne(U), "onMouseDown", function(ke) { - return S = ge, U.handleDragStart(ke); - }), oe(ne(U), "onMouseUp", function(ke) { - return S = ge, U.handleDragStop(ke); - }), oe(ne(U), "onTouchStart", function(ke) { + }), oe(X(U), "onMouseDown", function(ke) { + return S = he, U.handleDragStart(ke); + }), oe(X(U), "onMouseUp", function(ke) { + return S = he, U.handleDragStop(ke); + }), oe(X(U), "onTouchStart", function(ke) { return S = fe, U.handleDragStart(ke); - }), oe(ne(U), "onTouchEnd", function(ke) { + }), oe(X(U), "onTouchEnd", function(ke) { return S = fe, U.handleDragStop(ke); }), U; } - return ae = J, (Z = [{ key: "componentDidMount", value: function() { + return se = ee, (J = [{ key: "componentDidMount", value: function() { this.mounted = !0; var U = this.findDOMNode(); U && (0, m.addEvent)(U, fe.start, this.onTouchStart, { passive: !1 }); @@ -7576,17 +7576,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.mounted = !1; var U = this.findDOMNode(); if (U) { - var G = U.ownerDocument; - (0, m.removeEvent)(G, ge.move, this.handleDrag), (0, m.removeEvent)(G, fe.move, this.handleDrag), (0, m.removeEvent)(G, ge.stop, this.handleDragStop), (0, m.removeEvent)(G, fe.stop, this.handleDragStop), (0, m.removeEvent)(U, fe.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && (0, m.removeUserSelectStyles)(G); + var Z = U.ownerDocument; + (0, m.removeEvent)(Z, he.move, this.handleDrag), (0, m.removeEvent)(Z, fe.move, this.handleDrag), (0, m.removeEvent)(Z, he.stop, this.handleDragStop), (0, m.removeEvent)(Z, fe.stop, this.handleDragStop), (0, m.removeEvent)(U, fe.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && (0, m.removeUserSelectStyles)(Z); } } }, { key: "findDOMNode", value: function() { return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this); } }, { key: "render", value: function() { return k.cloneElement(k.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd }); - } }]) && R(ae.prototype, Z), J; + } }]) && R(se.prototype, J), ee; })(k.Component); - u.default = j, oe(j, "displayName", "DraggableCore"), oe(j, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, ae) { - if (A[ae] && A[ae].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node."); + u.default = j, oe(j, "displayName", "DraggableCore"), oe(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: v.dontSetMe, style: v.dontSetMe, transform: v.dontSetMe }), oe(j, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() { }, onDrag: function() { }, onStop: function() { @@ -7599,23 +7599,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (function() { var k = {}.hasOwnProperty; function d() { - for (var y = "", v = 0; v < arguments.length; v++) { + for (var b = "", v = 0; v < arguments.length; v++) { var N = arguments[v]; - N && (y = m(y, C(N))); + N && (b = m(b, C(N))); } - return y; + return b; } - function C(y) { - if (typeof y == "string" || typeof y == "number") return y; - if (typeof y != "object") return ""; - if (Array.isArray(y)) return d.apply(null, y); - if (y.toString !== Object.prototype.toString && !y.toString.toString().includes("[native code]")) return y.toString(); + 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(); var v = ""; - for (var N in y) k.call(y, N) && y[N] && (v = m(v, N)); + for (var N in b) k.call(b, N) && b[N] && (v = m(v, N)); return v; } - function m(y, v) { - return v ? y ? y + " " + v : y + v : y; + function m(b, v) { + return v ? b ? b + " " + v : b + v : b; } i.exports ? (d.default = d, i.exports = d) : (f = (function() { return d; @@ -7639,26 +7639,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (f[k]) return new Error("Invalid prop ".concat(k, " 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(y, v) { - var N = (0, C.default)(y); + Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(b, v) { + var N = (0, C.default)(b); if (!N.length) return void v.preventDefault(); - var I = void 0, D = v.shiftKey, L = N[0], se = N[N.length - 1], ee = m(); - if (y === ee) { + var I = void 0, D = v.shiftKey, L = N[0], ae = N[N.length - 1], te = m(); + if (b === te) { if (!D) return; - I = se; + I = ae; } - if (se !== ee || D || (I = L), L === ee && D && (I = se), I) return v.preventDefault(), void I.focus(); + if (ae !== te || D || (I = L), L === te && D && (I = ae), I) return v.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(ee); - if (F > -1 && (F += D ? -1 : 1), (I = N[F]) === void 0) return v.preventDefault(), void (I = D ? se : L).focus(); + var F = N.indexOf(te); + if (F > -1 && (F += D ? -1 : 1), (I = N[F]) === void 0) return v.preventDefault(), void (I = D ? ae : L).focus(); v.preventDefault(), I.focus(); } }; var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }; function m() { - var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; - return y.activeElement.shadowRoot ? m(y.activeElement.shadowRoot) : y.activeElement; + var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; + return b.activeElement.shadowRoot ? m(b.activeElement.shadowRoot) : b.activeElement; } i.exports = u.default; }, 7195: (i, u, f) => { @@ -7678,20 +7678,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, 7463: (i, u) => { var f, k, d, C, m; if (typeof window > "u" || typeof MessageChannel != "function") { - var y = null, v = null, N = function() { - if (y !== null) try { - var be = u.unstable_now(); - y(!0, be), y = null; + var b = null, v = null, N = function() { + if (b !== null) try { + var ye = u.unstable_now(); + b(!0, ye), b = null; } catch (P) { throw setTimeout(N, 0), P; } }, I = Date.now(); u.unstable_now = function() { return Date.now() - I; - }, f = function(be) { - y !== null ? setTimeout(f, 0, be) : (y = be, setTimeout(N, 0)); - }, k = function(be, P) { - v = setTimeout(be, P); + }, f = function(ye) { + b !== null ? setTimeout(f, 0, ye) : (b = ye, setTimeout(N, 0)); + }, k = function(ye, P) { + v = setTimeout(ye, P); }, d = function() { clearTimeout(v); }, C = function() { @@ -7699,7 +7699,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, m = u.unstable_forceFrameRate = function() { }; } else { - var D = window.performance, L = window.Date, se = window.setTimeout, ee = window.clearTimeout; + var D = window.performance, L = window.Date, ae = 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"); @@ -7713,58 +7713,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return L.now() - F; }; } - var H = !1, ne = null, pe = -1, oe = 5, fe = 0; + var q = !1, X = null, pe = -1, oe = 5, fe = 0; C = function() { return u.unstable_now() >= fe; }, m = function() { - }, u.unstable_forceFrameRate = function(be) { - 0 > be || 125 < be ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported") : oe = 0 < be ? Math.floor(1e3 / be) : 5; + }, 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; }; - var ge = new MessageChannel(), S = ge.port2; - ge.port1.onmessage = function() { - if (ne !== null) { - var be = u.unstable_now(); - fe = be + oe; + var he = new MessageChannel(), S = he.port2; + he.port1.onmessage = function() { + if (X !== null) { + var ye = u.unstable_now(); + fe = ye + oe; try { - ne(!0, be) ? S.postMessage(null) : (H = !1, ne = null); + X(!0, ye) ? S.postMessage(null) : (q = !1, X = null); } catch (P) { throw S.postMessage(null), P; } - } else H = !1; - }, f = function(be) { - ne = be, H || (H = !0, S.postMessage(null)); - }, k = function(be, P) { - pe = se(function() { - be(u.unstable_now()); + } else q = !1; + }, f = function(ye) { + X = ye, q || (q = !0, S.postMessage(null)); + }, k = function(ye, P) { + pe = ae(function() { + ye(u.unstable_now()); }, P); }, d = function() { - ee(pe), pe = -1; + te(pe), pe = -1; }; } - function j(be, P) { - var te = be.length; - be.push(P); + function j(ye, P) { + var ne = ye.length; + ye.push(P); e: for (; ; ) { - var we = te - 1 >>> 1, Se = be[we]; - if (!(Se !== void 0 && 0 < Z(Se, P))) break e; - be[we] = P, be[te] = Se, te = we; + var we = ne - 1 >>> 1, Se = ye[we]; + if (!(Se !== void 0 && 0 < J(Se, P))) break e; + ye[we] = P, ye[ne] = Se, ne = we; } } - function A(be) { - return (be = be[0]) === void 0 ? null : be; + function A(ye) { + return (ye = ye[0]) === void 0 ? null : ye; } - function ae(be) { - var P = be[0]; + function se(ye) { + var P = ye[0]; if (P !== void 0) { - var te = be.pop(); - if (te !== P) { - be[0] = te; - e: for (var we = 0, Se = be.length; we < Se; ) { - var Pe = 2 * (we + 1) - 1, _e = be[Pe], lt = Pe + 1, Qe = be[lt]; - if (_e !== void 0 && 0 > Z(_e, te)) Qe !== void 0 && 0 > Z(Qe, _e) ? (be[we] = Qe, be[lt] = te, we = lt) : (be[we] = _e, be[Pe] = te, we = Pe); + var ne = ye.pop(); + if (ne !== P) { + ye[0] = ne; + e: for (var we = 0, Se = ye.length; we < Se; ) { + var Pe = 2 * (we + 1) - 1, _e = ye[Pe], lt = Pe + 1, Qe = ye[lt]; + if (_e !== void 0 && 0 > J(_e, ne)) Qe !== void 0 && 0 > J(Qe, _e) ? (ye[we] = Qe, ye[lt] = ne, we = lt) : (ye[we] = _e, ye[Pe] = ne, we = Pe); else { - if (!(Qe !== void 0 && 0 > Z(Qe, te))) break e; - be[we] = Qe, be[lt] = te, we = lt; + if (!(Qe !== void 0 && 0 > J(Qe, ne))) break e; + ye[we] = Qe, ye[lt] = ne, we = lt; } } } @@ -7772,53 +7772,53 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return null; } - function Z(be, P) { - var te = be.sortIndex - P.sortIndex; - return te !== 0 ? te : be.id - P.id; + function J(ye, P) { + var ne = ye.sortIndex - P.sortIndex; + return ne !== 0 ? ne : ye.id - P.id; } - var Ee = [], J = [], U = 1, G = null, le = 3, me = !1, ke = !1, Ne = !1; - function Ue(be) { - for (var P = A(J); P !== null; ) { - if (P.callback === null) ae(J); + 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 (!(P.startTime <= be)) break; - ae(J), P.sortIndex = P.expirationTime, j(Ee, P); + if (!(P.startTime <= ye)) break; + se(ee), P.sortIndex = P.expirationTime, j(Ee, P); } - P = A(J); + P = A(ee); } } - function Ae(be) { - if (Ne = !1, Ue(be), !ke) if (A(Ee) !== null) ke = !0, f(Le); + function Ae(ye) { + if (Ne = !1, Ue(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le); else { - var P = A(J); - P !== null && k(Ae, P.startTime - be); + var P = A(ee); + P !== null && k(Ae, P.startTime - ye); } } - function Le(be, P) { - ke = !1, Ne && (Ne = !1, d()), me = !0; - var te = le; + function Le(ye, P) { + ke = !1, Ne && (Ne = !1, d()), ge = !0; + var ne = le; try { - for (Ue(P), G = A(Ee); G !== null && (!(G.expirationTime > P) || be && !C()); ) { - var we = G.callback; + for (Ue(P), Z = A(Ee); Z !== null && (!(Z.expirationTime > P) || ye && !C()); ) { + var we = Z.callback; if (we !== null) { - G.callback = null, le = G.priorityLevel; - var Se = we(G.expirationTime <= P); - P = u.unstable_now(), typeof Se == "function" ? G.callback = Se : G === A(Ee) && ae(Ee), Ue(P); - } else ae(Ee); - G = A(Ee); + Z.callback = null, le = Z.priorityLevel; + var Se = we(Z.expirationTime <= P); + P = u.unstable_now(), typeof Se == "function" ? Z.callback = Se : Z === A(Ee) && se(Ee), Ue(P); + } else se(Ee); + Z = A(Ee); } - if (G !== null) var Pe = !0; + if (Z !== null) var Pe = !0; else { - var _e = A(J); + var _e = A(ee); _e !== null && k(Ae, _e.startTime - P), Pe = !1; } return Pe; } finally { - G = null, le = te, me = !1; + Z = null, le = ne, ge = !1; } } - function Ke(be) { - switch (be) { + function Ke(ye) { + switch (ye) { case 1: return -1; case 2: @@ -7832,15 +7832,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } var Je = m; - u.unstable_IdlePriority = 5, u.unstable_ImmediatePriority = 1, u.unstable_LowPriority = 4, u.unstable_NormalPriority = 3, u.unstable_Profiling = null, u.unstable_UserBlockingPriority = 2, u.unstable_cancelCallback = function(be) { - be.callback = null; + u.unstable_IdlePriority = 5, u.unstable_ImmediatePriority = 1, u.unstable_LowPriority = 4, u.unstable_NormalPriority = 3, u.unstable_Profiling = null, u.unstable_UserBlockingPriority = 2, u.unstable_cancelCallback = function(ye) { + ye.callback = null; }, u.unstable_continueExecution = function() { - ke || me || (ke = !0, f(Le)); + ke || ge || (ke = !0, f(Le)); }, u.unstable_getCurrentPriorityLevel = function() { return le; }, u.unstable_getFirstCallbackNode = function() { return A(Ee); - }, u.unstable_next = function(be) { + }, u.unstable_next = function(ye) { switch (le) { case 1: case 2: @@ -7850,16 +7850,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho default: P = le; } - var te = le; + var ne = le; le = P; try { - return be(); + return ye(); } finally { - le = te; + le = ne; } }, u.unstable_pauseExecution = function() { - }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(be, P) { - switch (be) { + }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, P) { + switch (ye) { case 1: case 2: case 3: @@ -7867,60 +7867,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case 5: break; default: - be = 3; + ye = 3; } - var te = le; - le = be; + var ne = le; + le = ye; try { return P(); } finally { - le = te; + le = ne; } - }, u.unstable_scheduleCallback = function(be, P, te) { + }, u.unstable_scheduleCallback = function(ye, P, ne) { var we = u.unstable_now(); - if (typeof te == "object" && te !== null) { - var Se = te.delay; - Se = typeof Se == "number" && 0 < Se ? we + Se : we, te = typeof te.timeout == "number" ? te.timeout : Ke(be); - } else te = Ke(be), Se = we; - return be = { id: U++, callback: P, priorityLevel: be, startTime: Se, expirationTime: te = Se + te, sortIndex: -1 }, Se > we ? (be.sortIndex = Se, j(J, be), A(Ee) === null && be === A(J) && (Ne ? d() : Ne = !0, k(Ae, Se - we))) : (be.sortIndex = te, j(Ee, be), ke || me || (ke = !0, f(Le))), be; + if (typeof ne == "object" && ne !== null) { + var Se = ne.delay; + Se = typeof Se == "number" && 0 < Se ? we + Se : we, ne = typeof ne.timeout == "number" ? ne.timeout : Ke(ye); + } else ne = Ke(ye), Se = we; + return ye = { id: U++, callback: P, priorityLevel: ye, startTime: Se, expirationTime: ne = Se + ne, sortIndex: -1 }, Se > we ? (ye.sortIndex = Se, j(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, k(Ae, Se - we))) : (ye.sortIndex = ne, j(Ee, ye), ke || ge || (ke = !0, f(Le))), ye; }, u.unstable_shouldYield = function() { - var be = u.unstable_now(); - Ue(be); + var ye = u.unstable_now(); + Ue(ye); var P = A(Ee); - return P !== G && G !== null && P !== null && P.callback !== null && P.startTime <= be && P.expirationTime < G.expirationTime || C(); - }, u.unstable_wrapCallback = function(be) { + return P !== Z && Z !== null && P !== null && P.callback !== null && P.startTime <= ye && P.expirationTime < Z.expirationTime || C(); + }, u.unstable_wrapCallback = function(ye) { var P = le; return function() { - var te = le; + var ne = le; le = P; try { - return be.apply(this, arguments); + return ye.apply(this, arguments); } finally { - le = te; + le = ne; } }; }; }, 7727: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { - for (var I = [m, y], D = 0; D < I.length; D++) { + for (var I = [m, b], D = 0; D < I.length; D++) { var L = I[D]; L && L.parentNode && L.parentNode.removeChild(L); } - m = y = null, v = []; + m = b = null, v = []; }, u.log = function() { console.log("bodyTrap ----------"), console.log(v.length); - for (var I = [m, y], D = 0; D < I.length; D++) { + for (var I = [m, b], D = 0; D < I.length; D++) { var L = I[D] || {}; console.log(L.nodeName, L.className, L.id); } console.log("edn bodyTrap ----------"); }; - var k, d = f(9628), C = (k = d) && k.__esModule ? k : { default: k }, m = void 0, y = void 0, v = []; + var k, d = f(9628), C = (k = d) && k.__esModule ? k : { default: k }, m = void 0, b = void 0, v = []; function N() { v.length !== 0 && v[v.length - 1].focusContent(); } C.default.subscribe(function(I, D) { - m || y || ((m = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), m.style.position = "absolute", m.style.opacity = "0", m.setAttribute("tabindex", "0"), m.addEventListener("focus", N), (y = m.cloneNode()).addEventListener("focus", N)), (v = D).length > 0 ? (document.body.firstChild !== m && document.body.insertBefore(m, document.body.firstChild), document.body.lastChild !== y && document.body.appendChild(y)) : (m.parentElement && m.parentElement.removeChild(m), y.parentElement && y.parentElement.removeChild(y)); + m || b || ((m = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), m.style.position = "absolute", m.style.opacity = "0", m.setAttribute("tabindex", "0"), m.addEventListener("focus", N), (b = m.cloneNode()).addEventListener("focus", N)), (v = D).length > 0 ? (document.body.firstChild !== m && document.body.insertBefore(m, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (m.parentElement && m.parentElement.removeChild(m), b.parentElement && b.parentElement.removeChild(b)); }); }, 7785: (i, u, f) => { var k = f(5072), d = f(2444); @@ -7943,19 +7943,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, u.popWithoutFocus = function() { m.length > 0 && m.pop(); }, u.setupScopedFocus = function(D) { - y = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); + b = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); }, u.teardownScopedFocus = function() { - y = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); + b = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); }; - var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }, m = [], y = null, v = !1; + var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }, m = [], b = null, v = !1; function N() { v = !0; } function I() { if (v) { - if (v = !1, !y) return; + if (v = !1, !b) return; setTimeout(function() { - y.contains(document.activeElement) || ((0, C.default)(y)[0] || y).focus(); + b.contains(document.activeElement) || ((0, C.default)(b)[0] || b).focus(); }, 0); } } @@ -7965,131 +7965,131 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u.objectToString = (v, N, I, D) => { if (typeof Buffer == "function" && Buffer.isBuffer(v)) return `Buffer.from(${I(v.toString("base64"))}, 'base64')`; if (typeof f.g == "object" && v === f.g) return m(v, N, I); - const L = y[Object.prototype.toString.call(v)]; + const L = b[Object.prototype.toString.call(v)]; return L ? L(v, N, I, D) : void 0; }; - const m = (v, N, I) => `Function(${I("return this")})()`, y = { "[object Array]": C.arrayToString, "[object Object]": (v, N, I, D) => { + const m = (v, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (v, N, I, D) => { const L = N ? ` -` : "", se = N ? " " : "", ee = Object.keys(v).reduce(function(R, F) { - const H = v[F], ne = I(H, F); - if (ne === void 0) return R; - const pe = ne.split(` +` : "", ae = N ? " " : "", te = Object.keys(v).reduce(function(R, F) { + const q = v[F], X = I(q, F); + if (X === void 0) return R; + const pe = X.split(` `).join(` ${N}`); - return d.USED_METHOD_KEY.has(H) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${k.quoteKey(F, I)}:${se}${pe}`), R); + return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${k.quoteKey(F, I)}:${ae}${pe}`), R); }, []).join(`,${L}`); - return ee === "" ? "{}" : `{${L}${ee}${L}}`; + return te === "" ? "{}" : `{${L}${te}${L}}`; }, "[object Error]": (v, N, I) => `new Error(${I(v.message)})`, "[object Date]": (v) => `new Date(${v.getTime()})`, "[object String]": (v, N, I) => `new String(${I(v.toString())})`, "[object Number]": (v) => `new Number(${v})`, "[object Boolean]": (v) => `new Boolean(${v})`, "[object Set]": (v, N, I) => `new Set(${I(Array.from(v))})`, "[object Map]": (v, N, I) => `new Map(${I(Array.from(v))})`, "[object RegExp]": String, "[object global]": m, "[object Window]": m }; }, 7965: (i, u, f) => { var k = f(6426), d = { "text/plain": "Text", "text/html": "Url", default: "Text" }; i.exports = function(C, m) { - var y, v, N, I, D, L, se = !1; - m || (m = {}), y = m.debug || !1; + var b, v, N, I, D, L, ae = !1; + m || (m = {}), b = m.debug || !1; try { - if (N = k(), 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(ee) { - if (ee.stopPropagation(), m.format) if (ee.preventDefault(), ee.clipboardData === void 0) { - y && console.warn("unable to use e.clipboardData"), y && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); + if (N = k(), 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(), m.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(); var R = d[m.format] || d.default; window.clipboardData.setData(R, C); - } else ee.clipboardData.clearData(), ee.clipboardData.setData(m.format, C); - m.onCopy && (ee.preventDefault(), m.onCopy(ee.clipboardData)); + } else te.clipboardData.clearData(), te.clipboardData.setData(m.format, C); + m.onCopy && (te.preventDefault(), m.onCopy(te.clipboardData)); }), document.body.appendChild(L), I.selectNodeContents(L), D.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); - se = !0; - } catch (ee) { - y && console.error("unable to copy using execCommand: ", ee), y && console.warn("trying IE specific stuff"); + ae = !0; + } catch (te) { + b && console.error("unable to copy using execCommand: ", te), b && console.warn("trying IE specific stuff"); try { - window.clipboardData.setData(m.format || "text", C), m.onCopy && m.onCopy(window.clipboardData), se = !0; + window.clipboardData.setData(m.format || "text", C), m.onCopy && m.onCopy(window.clipboardData), ae = !0; } catch (R) { - y && console.error("unable to copy using clipboardData: ", R), y && console.error("falling back to prompt"), v = (function(F) { - var H = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; - return F.replace(/#{\s*key\s*}/g, H); + b && console.error("unable to copy using clipboardData: ", R), b && console.error("falling back to prompt"), v = (function(F) { + var q = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; + return F.replace(/#{\s*key\s*}/g, q); })("message" in m ? m.message : "Copy to clipboard: #{key}, Enter"), window.prompt(v, C); } } finally { D && (typeof D.removeRange == "function" ? D.removeRange(I) : D.removeAllRanges()), L && document.body.removeChild(L), N(); } - return se; + return ae; }; }, 8142: (i, u, f) => { i = f.nmd(i); - var k = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", m = "[object Array]", y = "[object Boolean]", v = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", se = "[object Object]", ee = "[object Promise]", R = "[object RegExp]", F = "[object Set]", H = "[object String]", ne = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", ge = /^\[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[m] = j[oe] = j[y] = j[fe] = j[v] = j[N] = j[I] = j[D] = j[L] = j[se] = j[R] = j[F] = j[H] = j[pe] = !1; - var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, ae = typeof self == "object" && self && self.Object === Object && self, Z = A || ae || Function("return this")(), Ee = u && !u.nodeType && u, J = Ee && i && !i.nodeType && i, U = J && J.exports === Ee, G = U && A.process, le = (function() { + var k = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", m = "[object Array]", b = "[object Boolean]", v = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", ae = "[object Object]", te = "[object Promise]", R = "[object RegExp]", F = "[object Set]", q = "[object String]", X = "[object Symbol]", pe = "[object WeakMap]", oe = "[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[m] = j[oe] = j[b] = j[fe] = j[v] = j[N] = j[I] = j[D] = j[L] = j[ae] = j[R] = j[F] = 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 G && G.binding && G.binding("util"); + return Z && Z.binding && Z.binding("util"); } catch { } - })(), me = le && le.isTypedArray; + })(), ge = le && le.isTypedArray; function ke(M, Q) { - for (var ye = -1, De = M == null ? 0 : M.length; ++ye < De; ) if (Q(M[ye], ye, M)) return !0; + for (var be = -1, De = M == null ? 0 : M.length; ++be < De; ) if (Q(M[be], be, M)) return !0; return !1; } function Ne(M) { - var Q = -1, ye = Array(M.size); + var Q = -1, be = Array(M.size); return M.forEach(function(De, tt) { - ye[++Q] = [tt, De]; - }), ye; + be[++Q] = [tt, De]; + }), be; } function Ue(M) { - var Q = -1, ye = Array(M.size); + var Q = -1, be = Array(M.size); return M.forEach(function(De) { - ye[++Q] = De; - }), ye; + be[++Q] = De; + }), be; } - var Ae, Le, Ke, Je = Array.prototype, be = Function.prototype, P = Object.prototype, te = Z["__core-js_shared__"], we = be.toString, Se = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Se).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = U ? Z.Buffer : void 0, et = Z.Symbol, Pt = Z.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) { + var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, P = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Se = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Se).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)); - }), $n = In(Z, "DataView"), Bn = In(Z, "Map"), an = In(Z, "Promise"), pn = In(Z, "Set"), sr = In(Z, "WeakMap"), Ht = In(Object, "create"), Wr = mn($n), qr = mn(Bn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0; + }), $n = In(J, "DataView"), Bn = In(J, "Map"), an = In(J, "Promise"), pn = In(J, "Set"), sr = In(J, "WeakMap"), Ht = In(Object, "create"), Wr = mn($n), qr = mn(Bn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0; function zt(M) { - var Q = -1, ye = M == null ? 0 : M.length; - for (this.clear(); ++Q < ye; ) { + var Q = -1, be = M == null ? 0 : M.length; + for (this.clear(); ++Q < be; ) { var De = M[Q]; this.set(De[0], De[1]); } } function Ye(M) { - var Q = -1, ye = M == null ? 0 : M.length; - for (this.clear(); ++Q < ye; ) { + var Q = -1, be = M == null ? 0 : M.length; + for (this.clear(); ++Q < be; ) { var De = M[Q]; this.set(De[0], De[1]); } } function Pn(M) { - var Q = -1, ye = M == null ? 0 : M.length; - for (this.clear(); ++Q < ye; ) { + var Q = -1, be = M == null ? 0 : M.length; + for (this.clear(); ++Q < be; ) { var De = M[Q]; this.set(De[0], De[1]); } } function qn(M) { - var Q = -1, ye = M == null ? 0 : M.length; - for (this.__data__ = new Pn(); ++Q < ye; ) this.add(M[Q]); + var Q = -1, be = M == null ? 0 : M.length; + for (this.__data__ = new Pn(); ++Q < be; ) this.add(M[Q]); } function sn(M) { var Q = this.__data__ = new Ye(M); this.size = Q.size; } function Kr(M, Q) { - var ye = ct(M), De = !ye && gn(M), tt = !ye && !De && Dr(M), He = !ye && !De && !tt && Ir(M), Ge = ye || De || tt || He, rt = Ge ? (function(ht, kt) { - for (var jt = -1, bt = Array(ht); ++jt < ht; ) bt[jt] = kt(jt); - return bt; + var be = ct(M), De = !be && gn(M), tt = !be && !De && Dr(M), He = !be && !De && !tt && Ir(M), Ge = be || De || tt || He, rt = Ge ? (function(ht, kt) { + for (var jt = -1, yt = Array(ht); ++jt < ht; ) yt[jt] = kt(jt); + return yt; })(M.length, String) : [], At = rt.length; - for (var ft in M) !Se.call(M, ft) || Ge && (ft == "length" || tt && (ft == "offset" || ft == "parent") || He && (ft == "buffer" || ft == "byteLength" || ft == "byteOffset") || yi(ft, At)) || rt.push(ft); + for (var ft in M) !Se.call(M, ft) || Ge && (ft == "length" || tt && (ft == "offset" || ft == "parent") || He && (ft == "buffer" || ft == "byteLength" || ft == "byteOffset") || bi(ft, At)) || rt.push(ft); return rt; } function Or(M, Q) { - for (var ye = M.length; ye--; ) if (Yr(M[ye][0], Q)) return ye; + for (var be = M.length; be--; ) if (Yr(M[be][0], Q)) return be; return -1; } function fn(M) { return M == null ? M === void 0 ? "[object Undefined]" : "[object Null]" : Gt && Gt in Object(M) ? (function(Q) { - var ye = Se.call(Q, Gt), De = Q[Gt]; + var be = Se.call(Q, Gt), De = Q[Gt]; try { Q[Gt] = void 0; var tt = !0; } catch { } var He = _e.call(Q); - return tt && (ye ? Q[Gt] = De : delete Q[Gt]), He; + return tt && (be ? Q[Gt] = De : delete Q[Gt]), He; })(M) : (function(Q) { return _e.call(Q); })(M); @@ -8097,28 +8097,28 @@ ${N}`); function pt(M) { return Rn(M) && fn(M) == C; } - function Qr(M, Q, ye, De, tt) { + function Qr(M, Q, be, De, tt) { return M === Q || (M == null || Q == null || !Rn(M) && !Rn(Q) ? M != M && Q != Q : (function(He, Ge, rt, At, ft, ht) { - var kt = ct(He), jt = ct(Ge), bt = kt ? m : hn(He), yt = jt ? m : hn(Ge), bn = (bt = bt == C ? se : bt) == se, ur = (yt = yt == C ? se : yt) == se, Mn = bt == yt; + var kt = ct(He), jt = ct(Ge), yt = kt ? m : hn(He), bt = jt ? m : hn(Ge), yn = (yt = yt == C ? ae : yt) == ae, ur = (bt = bt == C ? ae : bt) == ae, Mn = yt == bt; if (Mn && Dr(He)) { if (!Dr(Ge)) return !1; - kt = !0, bn = !1; + kt = !0, yn = !1; } - if (Mn && !bn) return ht || (ht = new sn()), kt || Ir(He) ? Dn(He, Ge, rt, At, ft, ht) : (function(nt, Ze, Yn, vn, dr, ut, wt) { + if (Mn && !yn) return ht || (ht = new sn()), kt || Ir(He) ? Dn(He, Ge, rt, At, ft, ht) : (function(nt, Ze, Yn, vn, dr, ut, wt) { switch (Yn) { case fe: if (nt.byteLength != Ze.byteLength || nt.byteOffset != Ze.byteOffset) return !1; nt = nt.buffer, Ze = Ze.buffer; case oe: return !(nt.byteLength != Ze.byteLength || !ut(new Pt(nt), new Pt(Ze))); - case y: + case b: case v: case L: return Yr(+nt, +Ze); case N: return nt.name == Ze.name && nt.message == Ze.message; case R: - case H: + case q: return nt == Ze + ""; case D: var Tt = Ne; @@ -8130,15 +8130,15 @@ ${N}`); vn |= 2, wt.set(nt, Ze); var zn = Dn(Tt(nt), Tt(Ze), vn, dr, ut, wt); return wt.delete(nt), zn; - case ne: + case X: if (Kt) return Kt.call(nt) == Kt.call(Ze); } return !1; - })(He, Ge, bt, rt, At, ft, ht); + })(He, Ge, yt, rt, At, ft, ht); if (!(1 & rt)) { - var yn = bn && Se.call(He, "__wrapped__"), Xr = ur && Se.call(Ge, "__wrapped__"); - if (yn || Xr) { - var To = yn ? He.value() : He, Oo = Xr ? Ge.value() : Ge; + var bn = yn && Se.call(He, "__wrapped__"), Xr = ur && Se.call(Ge, "__wrapped__"); + if (bn || Xr) { + var To = bn ? He.value() : He, Oo = Xr ? Ge.value() : Ge; return ht || (ht = new sn()), ft(To, Oo, rt, At, ht); } } @@ -8168,42 +8168,42 @@ ${N}`); } return ut.delete(nt), ut.delete(Ze), pr; })(He, Ge, rt, At, ft, ht)) : !1; - })(M, Q, ye, De, Qr, tt)); + })(M, Q, be, De, Qr, tt)); } function So(M) { return !(!Qn(M) || (function(Q) { return !!Pe && Pe in Q; - })(M)) && (Kn(M) ? lt : ge).test(mn(M)); + })(M)) && (Kn(M) ? lt : he).test(mn(M)); } function Nr(M) { - if (ye = (Q = M) && Q.constructor, De = typeof ye == "function" && ye.prototype || P, Q !== De) return wo(M); - var Q, ye, De, tt = []; + if (be = (Q = M) && Q.constructor, De = typeof be == "function" && be.prototype || P, Q !== De) return wo(M); + var Q, be, De, tt = []; for (var He in Object(M)) Se.call(M, He) && He != "constructor" && tt.push(He); return tt; } - function Dn(M, Q, ye, De, tt, He) { - var Ge = 1 & ye, rt = M.length, At = Q.length; + function Dn(M, Q, be, De, tt, He) { + var Ge = 1 & be, rt = M.length, At = Q.length; if (rt != At && !(Ge && At > rt)) return !1; var ft = He.get(M); if (ft && He.get(Q)) return ft == Q; - var ht = -1, kt = !0, jt = 2 & ye ? new qn() : void 0; + var ht = -1, kt = !0, jt = 2 & be ? new qn() : void 0; for (He.set(M, Q), He.set(Q, M); ++ht < rt; ) { - var bt = M[ht], yt = Q[ht]; - if (De) var bn = Ge ? De(yt, bt, ht, Q, M, He) : De(bt, yt, ht, M, Q, He); - if (bn !== void 0) { - if (bn) continue; + var yt = M[ht], bt = Q[ht]; + if (De) var yn = Ge ? De(bt, yt, ht, Q, M, He) : De(yt, bt, ht, M, Q, He); + if (yn !== void 0) { + if (yn) continue; kt = !1; break; } if (jt) { if (!ke(Q, function(ur, Mn) { - if (yn = Mn, !jt.has(yn) && (bt === ur || tt(bt, ur, ye, De, He))) return jt.push(Mn); - var yn; + if (bn = Mn, !jt.has(bn) && (yt === ur || tt(yt, ur, be, De, He))) return jt.push(Mn); + var bn; })) { kt = !1; break; } - } else if (bt !== yt && !tt(bt, yt, ye, De, He)) { + } else if (yt !== bt && !tt(yt, bt, be, De, He)) { kt = !1; break; } @@ -8211,8 +8211,8 @@ ${N}`); return He.delete(M), He.delete(Q), kt; } function Pr(M) { - return (function(Q, ye, De) { - var tt = ye(Q); + return (function(Q, be, De) { + var tt = be(Q); return ct(Q) ? tt : (function(He, Ge) { for (var rt = -1, At = Ge.length, ft = He.length; ++rt < At; ) He[ft + rt] = Ge[rt]; return He; @@ -8220,14 +8220,14 @@ ${N}`); })(M, Rr, Co); } function lr(M, Q) { - var ye, De, tt = M.__data__; - return ((De = typeof (ye = Q)) == "string" || De == "number" || De == "symbol" || De == "boolean" ? ye !== "__proto__" : ye === null) ? tt[typeof Q == "string" ? "string" : "hash"] : tt.map; + var be, De, tt = M.__data__; + return ((De = typeof (be = Q)) == "string" || De == "number" || De == "symbol" || De == "boolean" ? be !== "__proto__" : be === null) ? tt[typeof Q == "string" ? "string" : "hash"] : tt.map; } function In(M, Q) { - var ye = (function(De, tt) { + var be = (function(De, tt) { return De == null ? void 0 : De[tt]; })(M, Q); - return So(ye) ? ye : void 0; + return So(be) ? be : void 0; } zt.prototype.clear = function() { this.__data__ = Ht ? Ht(null) : {}, this.size = 0; @@ -8237,29 +8237,29 @@ ${N}`); }, zt.prototype.get = function(M) { var Q = this.__data__; if (Ht) { - var ye = Q[M]; - return ye === k ? void 0 : ye; + var be = Q[M]; + return be === k ? void 0 : be; } return Se.call(Q, M) ? Q[M] : void 0; }, zt.prototype.has = function(M) { var Q = this.__data__; return Ht ? Q[M] !== void 0 : Se.call(Q, M); }, zt.prototype.set = function(M, Q) { - var ye = this.__data__; - return this.size += this.has(M) ? 0 : 1, ye[M] = Ht && Q === void 0 ? k : Q, this; + var be = this.__data__; + return this.size += this.has(M) ? 0 : 1, be[M] = Ht && Q === void 0 ? k : Q, this; }, Ye.prototype.clear = function() { this.__data__ = [], this.size = 0; }, Ye.prototype.delete = function(M) { - var Q = this.__data__, ye = Or(Q, M); - return !(ye < 0) && (ye == Q.length - 1 ? Q.pop() : Dt.call(Q, ye, 1), --this.size, !0); + var Q = this.__data__, be = Or(Q, M); + return !(be < 0) && (be == Q.length - 1 ? Q.pop() : Dt.call(Q, be, 1), --this.size, !0); }, Ye.prototype.get = function(M) { - var Q = this.__data__, ye = Or(Q, M); - return ye < 0 ? void 0 : Q[ye][1]; + var Q = this.__data__, be = Or(Q, M); + return be < 0 ? void 0 : Q[be][1]; }, Ye.prototype.has = function(M) { return Or(this.__data__, M) > -1; }, Ye.prototype.set = function(M, Q) { - var ye = this.__data__, De = Or(ye, M); - return De < 0 ? (++this.size, ye.push([M, Q])) : ye[De][1] = Q, this; + var be = this.__data__, De = Or(be, M); + return De < 0 ? (++this.size, be.push([M, Q])) : be[De][1] = Q, this; }, Pn.prototype.clear = function() { this.size = 0, this.__data__ = { hash: new zt(), map: new (Bn || Ye)(), string: new zt() }; }, Pn.prototype.delete = function(M) { @@ -8270,8 +8270,8 @@ ${N}`); }, Pn.prototype.has = function(M) { return lr(this, M).has(M); }, Pn.prototype.set = function(M, Q) { - var ye = lr(this, M), De = ye.size; - return ye.set(M, Q), this.size += ye.size == De ? 0 : 1, this; + var be = lr(this, M), De = be.size; + return be.set(M, Q), this.size += be.size == De ? 0 : 1, this; }, qn.prototype.add = qn.prototype.push = function(M) { return this.__data__.set(M, k), this; }, qn.prototype.has = function(M) { @@ -8279,26 +8279,26 @@ ${N}`); }, sn.prototype.clear = function() { this.__data__ = new Ye(), this.size = 0; }, sn.prototype.delete = function(M) { - var Q = this.__data__, ye = Q.delete(M); - return this.size = Q.size, ye; + var Q = this.__data__, be = Q.delete(M); + return this.size = Q.size, be; }, sn.prototype.get = function(M) { return this.__data__.get(M); }, sn.prototype.has = function(M) { return this.__data__.has(M); }, sn.prototype.set = function(M, Q) { - var ye = this.__data__; - if (ye instanceof Ye) { - var De = ye.__data__; - if (!Bn || De.length < 199) return De.push([M, Q]), this.size = ++ye.size, this; - ye = this.__data__ = new Pn(De); + var be = this.__data__; + if (be instanceof Ye) { + var De = be.__data__; + if (!Bn || De.length < 199) return De.push([M, Q]), this.size = ++be.size, this; + be = this.__data__ = new Pn(De); } - return ye.set(M, Q), this.size = ye.size, this; + return be.set(M, Q), this.size = be.size, this; }; var Co = On ? function(M) { - return M == null ? [] : (M = Object(M), (function(Q, ye) { + return M == null ? [] : (M = Object(M), (function(Q, be) { for (var De = -1, tt = Q == null ? 0 : Q.length, He = 0, Ge = []; ++De < tt; ) { var rt = Q[De]; - ye(rt, De, Q) && (Ge[He++] = rt); + be(rt, De, Q) && (Ge[He++] = rt); } return Ge; })(On(M), function(Q) { @@ -8307,7 +8307,7 @@ ${N}`); } : function() { return []; }, hn = fn; - function yi(M, Q) { + function bi(M, Q) { return !!(Q = Q ?? d) && (typeof M == "number" || S.test(M)) && M > -1 && M % 1 == 0 && M < Q; } function mn(M) { @@ -8326,15 +8326,15 @@ ${N}`); function Yr(M, Q) { return M === Q || M != M && Q != Q; } - ($n && hn(new $n(new ArrayBuffer(1))) != fe || Bn && hn(new Bn()) != D || an && hn(an.resolve()) != ee || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { - var Q = fn(M), ye = Q == se ? M.constructor : void 0, De = ye ? mn(ye) : ""; + ($n && hn(new $n(new ArrayBuffer(1))) != fe || Bn && hn(new Bn()) != D || an && hn(an.resolve()) != te || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { + var Q = fn(M), be = Q == ae ? M.constructor : void 0, De = be ? mn(be) : ""; if (De) switch (De) { case Wr: return fe; case qr: return D; case _o: - return ee; + return te; case Eo: return F; case xo: @@ -8364,11 +8364,11 @@ ${N}`); function Rn(M) { return M != null && typeof M == "object"; } - var Ir = me ? /* @__PURE__ */ (function(M) { + var Ir = ge ? /* @__PURE__ */ (function(M) { return function(Q) { return M(Q); }; - })(me) : function(M) { + })(ge) : function(M) { return Rn(M) && cr(M.length) && !!j[fn(M)]; }; function Rr(M) { @@ -8409,8 +8409,8 @@ ${N}`); const C = d; }, 8814: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.arrayToString = void 0, u.arrayToString = (f, k, d) => { - const C = f.map(function(y, v) { - const N = d(y, v); + const C = f.map(function(b, v) { + const N = d(b, v); return N === void 0 ? String(N) : k + N.split(` `).join(` ${k}`); @@ -8432,15 +8432,15 @@ ${k}`); var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 }; k(d, C), i.exports = d.locals || {}; }, 8989: (i, u) => { - var f = 60103, k = 60106, d = 60107, C = 60108, m = 60114, y = 60109, v = 60110, N = 60112, I = 60113, D = 60120, L = 60115, se = 60116; + var f = 60103, k = 60106, d = 60107, C = 60108, m = 60114, b = 60109, v = 60110, N = 60112, I = 60113, D = 60120, L = 60115, ae = 60116; if (typeof Symbol == "function" && Symbol.for) { - var ee = Symbol.for; - f = ee("react.element"), k = ee("react.portal"), d = ee("react.fragment"), C = ee("react.strict_mode"), m = ee("react.profiler"), y = ee("react.provider"), v = ee("react.context"), N = ee("react.forward_ref"), I = ee("react.suspense"), D = ee("react.suspense_list"), L = ee("react.memo"), se = ee("react.lazy"), ee("react.block"), ee("react.server.block"), ee("react.fundamental"), ee("react.debug_trace_mode"), ee("react.legacy_hidden"); + var te = Symbol.for; + f = te("react.element"), k = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), m = te("react.profiler"), b = te("react.provider"), v = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), D = te("react.suspense_list"), L = 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"); } function R(F) { if (typeof F == "object" && F !== null) { - var H = F.$$typeof; - switch (H) { + var q = F.$$typeof; + switch (q) { case f: switch (F = F.type) { case d: @@ -8453,16 +8453,16 @@ ${k}`); switch (F = F && F.$$typeof) { case v: case N: - case se: + case ae: case L: - case y: + case b: return F; default: - return H; + return q; } } case k: - return H; + return q; } } } @@ -8473,8 +8473,8 @@ ${k}`); Object.defineProperty(u, "__esModule", { value: !0 }); var k = Object.assign || function(oe) { for (var fe = 1; fe < arguments.length; fe++) { - var ge = arguments[fe]; - for (var S in ge) Object.prototype.hasOwnProperty.call(ge, S) && (oe[S] = ge[S]); + var he = arguments[fe]; + for (var S in he) Object.prototype.hasOwnProperty.call(he, S) && (oe[S] = he[S]); } return oe; }, d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(oe) { @@ -8482,42 +8482,42 @@ ${k}`); } : function(oe) { return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe; }, C = /* @__PURE__ */ (function() { - function oe(fe, ge) { - for (var S = 0; S < ge.length; S++) { - var j = ge[S]; + function oe(fe, he) { + for (var S = 0; S < he.length; S++) { + 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, ge, S) { - return ge && oe(fe.prototype, ge), S && oe(fe, S), fe; + return function(fe, he, S) { + return he && oe(fe.prototype, he), S && oe(fe, S), fe; }; - })(), m = f(6540), y = F(f(5556)), v = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), se = F(L), ee = F(f(9628)); + })(), m = f(6540), b = F(f(5556)), v = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), ae = F(L), te = F(f(9628)); function R(oe) { if (oe && oe.__esModule) return oe; var fe = {}; - if (oe != null) for (var ge in oe) Object.prototype.hasOwnProperty.call(oe, ge) && (fe[ge] = oe[ge]); + if (oe != null) for (var he in oe) Object.prototype.hasOwnProperty.call(oe, he) && (fe[he] = oe[he]); return fe.default = oe, fe; } function F(oe) { return oe && oe.__esModule ? oe : { default: oe }; } f(7727); - var H = { overlay: "ReactModal__Overlay", content: "ReactModal__Content" }, ne = 0, pe = (function(oe) { - function fe(ge) { + var q = { overlay: "ReactModal__Overlay", content: "ReactModal__Content" }, X = 0, pe = (function(oe) { + function fe(he) { (function(j, A) { if (!(j instanceof A)) throw new TypeError("Cannot call a class as a function"); })(this, fe); 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, ge)); + })(this, (fe.__proto__ || Object.getPrototypeOf(fe)).call(this, he)); 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 j = S.props, A = j.appElement, ae = j.ariaHideApp, Z = j.htmlOpenClassName, Ee = j.bodyOpenClassName, J = j.parentSelector, U = J && J().ownerDocument || document; - Ee && D.remove(U.body, Ee), Z && D.remove(U.getElementsByTagName("html")[0], Z), ae && ne > 0 && (ne -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (v.returnFocus(S.props.preventScroll), v.teardownScopedFocus()) : v.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), ee.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 && X > 0 && (X -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (v.returnFocus(S.props.preventScroll), v.teardownScopedFocus()) : v.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 && (v.setupScopedFocus(S.node), v.markForFocusLater()), S.setState({ isOpen: !0 }, function() { S.openAnimationFrame = requestAnimationFrame(function() { @@ -8560,34 +8560,34 @@ ${k}`); }, S.contentHasFocus = function() { return document.activeElement === S.content || S.content.contains(document.activeElement); }, S.buildClassName = function(j, A) { - var ae = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: H[j], afterOpen: H[j] + "--after-open", beforeClose: H[j] + "--before-close" }, Z = ae.base; - return S.state.afterOpen && (Z = Z + " " + ae.afterOpen), S.state.beforeClose && (Z = Z + " " + ae.beforeClose), typeof A == "string" && A ? Z + " " + A : Z; + 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(j, A) { - return Object.keys(A).reduce(function(ae, Z) { - return ae[j + "-" + Z] = A[Z], ae; + return Object.keys(A).reduce(function(se, J) { + return se[j + "-" + J] = A[J], se; }, {}); }, S.state = { afterOpen: !1, beforeClose: !1 }, S.shouldClose = null, S.moveFromContentToOverlay = null, S; } - return (function(ge, 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); - ge.prototype = Object.create(S && S.prototype, { constructor: { value: ge, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(ge, S) : ge.__proto__ = 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() { this.props.isOpen && this.open(); - } }, { key: "componentDidUpdate", value: function(ge, S) { - this.props.isOpen && !ge.isOpen ? this.open() : !this.props.isOpen && ge.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !S.isOpen && this.focusContent(); + } }, { 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 ge = this.props, S = ge.appElement, j = ge.ariaHideApp, A = ge.htmlOpenClassName, ae = ge.bodyOpenClassName, Z = ge.parentSelector, Ee = Z && Z().ownerDocument || document; - ae && D.add(Ee.body, ae), A && D.add(Ee.getElementsByTagName("html")[0], A), j && (ne += 1, I.hide(S)), ee.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 && (X += 1, I.hide(S)), te.default.register(this); } }, { key: "render", value: function() { - var ge = this.props, S = ge.id, j = ge.className, A = ge.overlayClassName, ae = ge.defaultStyles, Z = ge.children, Ee = j ? {} : ae.content, J = A ? {} : ae.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 U = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: k({}, J, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, G = k({ id: S, ref: this.setContentRef, style: k({}, 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", k({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(G, Z); + var U = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: k({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = k({ id: S, ref: this.setContentRef, style: k({}, 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", k({ 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; })(m.Component); - pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: y.default.bool.isRequired, defaultStyles: y.default.shape({ content: y.default.object, overlay: y.default.object }), style: y.default.shape({ content: y.default.object, overlay: y.default.object }), className: y.default.oneOfType([y.default.string, y.default.object]), overlayClassName: y.default.oneOfType([y.default.string, y.default.object]), parentSelector: y.default.func, bodyOpenClassName: y.default.string, htmlOpenClassName: y.default.string, ariaHideApp: y.default.bool, appElement: y.default.oneOfType([y.default.instanceOf(se.default), y.default.instanceOf(L.SafeHTMLCollection), y.default.instanceOf(L.SafeNodeList), y.default.arrayOf(y.default.instanceOf(se.default))]), onAfterOpen: y.default.func, onAfterClose: y.default.func, onRequestClose: y.default.func, closeTimeoutMS: y.default.number, shouldFocusAfterRender: y.default.bool, shouldCloseOnOverlayClick: y.default.bool, shouldReturnFocusAfterClose: y.default.bool, preventScroll: y.default.bool, role: y.default.string, contentLabel: y.default.string, aria: y.default.object, data: y.default.object, children: y.default.node, shouldCloseOnEsc: y.default.bool, overlayRef: y.default.func, contentRef: y.default.func, id: y.default.string, overlayElement: y.default.func, contentElement: y.default.func, testId: y.default.string }, u.default = pe, i.exports = u.default; + 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(L.SafeHTMLCollection), b.default.instanceOf(L.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; }, 9628: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.log = function() { console.log("portalOpenInstances ----------"), console.log(k.openInstances.length), k.openInstances.forEach(function(d) { @@ -8598,18 +8598,18 @@ ${k}`); }; var f = function d() { var C = this; - (function(m, y) { - if (!(m instanceof y)) throw new TypeError("Cannot call a class as a function"); + (function(m, b) { + if (!(m instanceof b)) throw new TypeError("Cannot call a class as a function"); })(this, d), this.register = function(m) { C.openInstances.indexOf(m) === -1 && (C.openInstances.push(m), C.emit("register")); }, this.deregister = function(m) { - var y = C.openInstances.indexOf(m); - y !== -1 && (C.openInstances.splice(y, 1), C.emit("deregister")); + var b = C.openInstances.indexOf(m); + b !== -1 && (C.openInstances.splice(b, 1), C.emit("deregister")); }, this.subscribe = function(m) { C.subscribers.push(m); }, this.emit = function(m) { - C.subscribers.forEach(function(y) { - return y(m, C.openInstances.slice()); + C.subscribers.forEach(function(b) { + return b(m, C.openInstances.slice()); }); }, this.openInstances = [], this.subscribers = []; }, k = new f(); @@ -8659,9 +8659,9 @@ ${k}`); })(), T.o = (i, u) => Object.prototype.hasOwnProperty.call(i, u), T.r = (i) => { typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 }); }, T.nmd = (i) => (i.paths = [], i.children || (i.children = []), i), T.nc = void 0; - var X = {}; + var G = {}; return (() => { - T.d(X, { default: () => $e }); + T.d(G, { default: () => $e }); var i = T(6540), u = T(961); function f(l) { return "Minified Redux error #" + l + "; visit https://redux.js.org/Errors?code=" + l + " for the full message or use the non-minified dev environment for full errors. "; @@ -8674,21 +8674,21 @@ ${k}`); for (var o = l; Object.getPrototypeOf(o) !== null; ) o = Object.getPrototypeOf(o); return Object.getPrototypeOf(l) === o; } - function y(l, o, s) { + function b(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(y)(l, o); + return s(b)(l, o); } if (typeof l != "function") throw new Error(f(2)); - var g = l, b = o, x = [], z = x, K = !1; + var g = l, y = o, x = [], z = x, K = !1; function Y() { z === x && (z = x.slice()); } function ie() { if (K) throw new Error(f(3)); - return b; + return y; } function ue(de) { if (typeof de != "function") throw new Error(f(4)); @@ -8703,12 +8703,12 @@ ${k}`); } }; } - function he(de) { + function me(de) { if (!m(de)) throw new Error(f(7)); if (de.type === void 0) throw new Error(f(8)); if (K) throw new Error(f(9)); try { - K = !0, b = g(b, de); + K = !0, y = g(y, de); } finally { K = !1; } @@ -8716,9 +8716,9 @@ ${k}`); (0, Oe[Ce])(); return de; } - return he({ type: C.INIT }), (c = { dispatch: he, subscribe: ue, getState: ie, replaceReducer: function(de) { + return me({ type: C.INIT }), (c = { dispatch: me, subscribe: ue, getState: ie, replaceReducer: function(de) { if (typeof de != "function") throw new Error(f(10)); - g = de, he({ type: C.REPLACE }); + g = de, me({ type: C.REPLACE }); } })[k] = function() { var de, Oe = ue; return (de = { subscribe: function(Ce) { @@ -8745,7 +8745,7 @@ ${k}`); function g() { x.onStateChange && x.onStateChange(); } - function b() { + function y() { s || (s = o ? o.addNestedSub(g) : l.subscribe(g), c = (function() { var z = I(), K = null, Y = null; return { clear: function() { @@ -8758,40 +8758,40 @@ ${k}`); for (var ie = [], ue = K; ue; ) ie.push(ue), ue = ue.next; return ie; }, subscribe: function(ie) { - var ue = !0, he = Y = { callback: ie, next: null, prev: Y }; - return he.prev ? he.prev.next = he : K = he, function() { - ue && K !== null && (ue = !1, he.next ? he.next.prev = he.prev : Y = he.prev, he.prev ? he.prev.next = he.next : K = he.next); + var ue = !0, me = Y = { callback: ie, next: null, prev: Y }; + return me.prev ? me.prev.next = me : K = me, function() { + ue && K !== null && (ue = !1, me.next ? me.next.prev = me.prev : Y = me.prev, me.prev ? me.prev.next = me.next : K = me.next); }; } }; })()); } var x = { addNestedSub: function(z) { - return b(), c.subscribe(z); + return y(), c.subscribe(z); }, notifyNestedSubs: function() { c.notify(); }, handleChangeWrapper: g, isSubscribed: function() { return !!s; - }, trySubscribe: b, tryUnsubscribe: function() { + }, trySubscribe: y, tryUnsubscribe: function() { s && (s(), s = void 0, c.clear(), c = D); }, getListeners: function() { return c; } }; return x; } - var se = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect; - const ee = function(l) { + var ae = 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 = L(o); return { store: o, subscription: z }; - }, [o]), b = (0, i.useMemo)(function() { + }, [o]), y = (0, i.useMemo)(function() { return o.getState(); }, [o]); - se(function() { + ae(function() { var z = g.subscription; - return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), b !== o.getState() && z.notifyNestedSubs(), function() { + return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), y !== o.getState() && z.notifyNestedSubs(), function() { z.tryUnsubscribe(), z.onStateChange = null; }; - }, [g, b]); + }, [g, y]); var x = s || v; return i.createElement(x.Provider, { value: g }, c); }; @@ -8813,22 +8813,22 @@ ${k}`); } return s; } - var H = T(4146), ne = T.n(H), pe = T(4737), oe = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"], fe = ["reactReduxForwardedRef"], ge = [], S = [null, null]; + var q = T(4146), X = T.n(q), pe = T(4737), oe = ["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) { - se(function() { + ae(function() { return l.apply(void 0, o); }, s); } - function ae(l, o, s, c, g, b, x) { - l.current = c, o.current = g, s.current = !1, b.current && (b.current = null, x()); + function se(l, o, s, c, g, y, x) { + l.current = c, o.current = g, s.current = !1, y.current && (y.current = null, x()); } - function Z(l, o, s, c, g, b, x, z, K, Y) { + function J(l, o, s, c, g, y, x, z, K, Y) { if (l) { - var ie = !1, ue = null, he = function() { + var ie = !1, ue = null, me = function() { if (!ie) { var de, Oe, Ce = o.getState(); try { @@ -8836,10 +8836,10 @@ ${k}`); } catch (ze) { Oe = ze, ue = ze; } - Oe || (ue = null), de === b.current ? x.current || K() : (b.current = de, z.current = de, x.current = !0, Y({ type: "STORE_UPDATED", payload: { error: Oe } })); + Oe || (ue = null), de === y.current ? x.current || K() : (y.current = de, z.current = de, x.current = !0, Y({ type: "STORE_UPDATED", payload: { error: Oe } })); } }; - return s.onStateChange = he, s.trySubscribe(), he(), function() { + return s.onStateChange = me, s.trySubscribe(), me(), function() { if (ie = !0, s.tryUnsubscribe(), s.onStateChange = null, ue) throw ue; }; } @@ -8847,13 +8847,13 @@ ${k}`); var Ee = function() { return [null, 0]; }; - function J(l, o) { + function ee(l, o) { o === void 0 && (o = {}); var s = o, c = s.getDisplayName, g = c === void 0 ? function(je) { return "ConnectAdvanced(" + je + ")"; - } : c, b = s.methodName, x = b === void 0 ? "connectAdvanced" : b, z = s.renderCountProp, K = z === void 0 ? void 0 : z, Y = s.shouldHandleStateChanges, ie = Y === void 0 || Y, ue = s.storeKey, he = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Ce = s.context, ze = Ce === void 0 ? v : Ce, st = F(s, oe), Be = ze; + } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, K = z === void 0 ? void 0 : z, Y = s.shouldHandleStateChanges, ie = Y === void 0 || Y, ue = s.storeKey, me = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Ce = s.context, ze = Ce === void 0 ? v : Ce, st = F(s, oe), Be = ze; return function(je) { - var dt = je.displayName || je.name || "Component", vt = g(dt), Bt = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: K, shouldHandleStateChanges: ie, storeKey: he, 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), Bt = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: K, shouldHandleStateChanges: ie, storeKey: me, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) { return it(); }; function St(it) { @@ -8874,12 +8874,12 @@ ${k}`); return [ir, Vo]; }, [cn, qt, en]), un = Ft[0], or = Ft[1], Hi = (0, i.useMemo)(function() { return qt ? en : R({}, en, { subscription: un }); - }, [qt, en, un]), $i = (0, i.useReducer)(j, ge, Ee), tn = $i[0][0], Ta = $i[1]; + }, [qt, en, un]), $i = (0, i.useReducer)(j, he, Ee), tn = $i[0][0], Ta = $i[1]; if (tn && tn.error) throw tn.error; var Fo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Vr = (0, i.useRef)(), Uo = (0, i.useRef)(!1), wr = It(function() { return Vr.current && Wt === nn.current ? Vr.current : Nt(cn.getState(), Wt); }, [cn, tn, Wt]); - A(ae, [nn, Fo, Uo, Wt, wr, Vr, or]), A(Z, [ie, cn, un, Nt, nn, Fo, Uo, Vr, or, Ta], [cn, un, Nt]); + A(se, [nn, Fo, Uo, Wt, wr, Vr, or]), A(J, [ie, cn, un, Nt, nn, Fo, Uo, Vr, or, Ta], [cn, un, Nt]); var co = (0, i.useMemo)(function() { return i.createElement(je, R({}, wr, { ref: lo })); }, [lo, je, wr]); @@ -8892,15 +8892,15 @@ ${k}`); var En = i.forwardRef(function(it, xn) { return i.createElement(mt, R({}, it, { reactReduxForwardedRef: xn })); }); - return En.displayName = vt, En.WrappedComponent = je, ne()(En, je); + return En.displayName = vt, En.WrappedComponent = je, X()(En, je); } - return ne()(mt, je); + return X()(mt, je); }; } function U(l, o) { return l === o ? l !== 0 || o !== 0 || 1 / l == 1 / o : l != l && o != o; } - function G(l, o) { + function Z(l, o) { 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); @@ -8917,19 +8917,19 @@ ${k}`); return g.dependsOnOwnProps = !1, g; }; } - function me(l) { + function ge(l) { return l.dependsOnOwnProps !== null && l.dependsOnOwnProps !== void 0 ? !!l.dependsOnOwnProps : l.length !== 1; } function ke(l, o) { return function(s, c) { c.displayName; - var g = function(b, x) { - return g.dependsOnOwnProps ? g.mapToProps(b, x) : g.mapToProps(b); + var g = function(y, x) { + return g.dependsOnOwnProps ? g.mapToProps(y, x) : g.mapToProps(y); }; - return g.dependsOnOwnProps = !0, g.mapToProps = function(b, x) { - g.mapToProps = l, g.dependsOnOwnProps = me(l); - var z = g(b, x); - return typeof z == "function" && (g.mapToProps = z, g.dependsOnOwnProps = me(z), z = g(b, x)), z; + return g.dependsOnOwnProps = !0, g.mapToProps = function(y, x) { + g.mapToProps = l, g.dependsOnOwnProps = ge(l); + var z = g(y, x); + return typeof z == "function" && (g.mapToProps = z, g.dependsOnOwnProps = ge(z), z = g(y, x)), z; }, g; }; } @@ -8942,13 +8942,13 @@ ${k}`); }, function(l) { return l && typeof l == "object" ? le(function(o) { return (function(s, c) { - var g = {}, b = function(z) { + var g = {}, y = function(z) { var K = s[z]; typeof K == "function" && (g[z] = function() { return c(K.apply(void 0, arguments)); }); }; - for (var x in s) b(x); + for (var x in s) y(x); return g; })(l, o); }) : void 0; @@ -8966,10 +8966,10 @@ ${k}`); return typeof l == "function" ? /* @__PURE__ */ (function(o) { return function(s, c) { c.displayName; - var g, b = c.pure, x = c.areMergedPropsEqual, z = !1; + var g, y = c.pure, x = c.areMergedPropsEqual, z = !1; return function(K, Y, ie) { var ue = o(K, Y, ie); - return z ? b && x(ue, g) || (g = ue) : (z = !0, g = ue), g; + return z ? y && x(ue, g) || (g = ue) : (z = !0, g = ue), g; }; }; })(l) : void 0; @@ -8980,31 +8980,31 @@ ${k}`); }]; var Ke = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"]; function Je(l, o, s, c) { - return function(g, b) { - return s(l(g, b), o(c, b), b); + return function(g, y) { + return s(l(g, y), o(c, y), y); }; } - function be(l, o, s, c, g) { - var b, x, z, K, Y, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, he = g.areStatePropsEqual, de = !1; + function ye(l, o, s, c, g) { + var y, x, z, K, Y, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, me = g.areStatePropsEqual, de = !1; function Oe(Ce, ze) { - var st, Be, je = !ue(ze, x), dt = !ie(Ce, b, ze, x); - return b = Ce, x = ze, je && dt ? (z = l(b, x), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : je ? (l.dependsOnOwnProps && (z = l(b, x)), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : (dt && (st = l(b, x), Be = !he(st, z), z = st, Be && (Y = s(z, K, x))), Y); + var st, Be, je = !ue(ze, x), dt = !ie(Ce, y, ze, x); + return y = Ce, x = ze, je && dt ? (z = l(y, x), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : je ? (l.dependsOnOwnProps && (z = l(y, x)), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : (dt && (st = l(y, x), Be = !me(st, z), z = st, Be && (Y = s(z, K, x))), Y); } return function(Ce, ze) { - return de ? Oe(Ce, ze) : (z = l(b = Ce, x = ze), K = o(c, x), Y = s(z, K, x), de = !0, Y); + return de ? Oe(Ce, ze) : (z = l(y = Ce, x = ze), K = o(c, x), Y = s(z, K, x), de = !0, Y); }; } function P(l, o) { - var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, b = F(o, Ke), x = s(l, b), z = c(l, b), K = g(l, b); - return (b.pure ? be : Je)(x, z, K, l, b); + var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = F(o, Ke), x = s(l, y), z = c(l, y), K = g(l, y); + return (y.pure ? ye : Je)(x, z, K, l, y); } - var te = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]; + var ne = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]; function we(l, o, s) { for (var c = o.length - 1; c >= 0; c--) { var g = o[c](l); if (g) return g; } - return function(b, x) { + return function(y, x) { throw new Error("Invalid value of type " + typeof l + " for " + s + " argument when connecting component " + x.wrappedComponentName + "."); }; } @@ -9012,13 +9012,13 @@ ${k}`); return l === o; } function Pe(l) { - var o = {}, s = o.connectHOC, c = s === void 0 ? J : s, g = o.mapStateToPropsFactories, b = g === void 0 ? Ue : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, K = o.mergePropsFactories, Y = K === void 0 ? Le : K, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; - return function(he, de, Oe, Ce) { + 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, K = o.mergePropsFactories, Y = K === void 0 ? Le : K, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; + return function(me, de, Oe, Ce) { Ce === void 0 && (Ce = {}); - var ze = Ce, st = ze.pure, Be = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Se : je, vt = ze.areOwnPropsEqual, Bt = vt === void 0 ? G : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? G : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? G : St, En = F(ze, te), it = we(he, b, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, Y, "mergeProps"); + var ze = Ce, st = ze.pure, Be = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Se : je, vt = ze.areOwnPropsEqual, Bt = 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, Y, "mergeProps"); return c(ue, R({ methodName: "connect", getDisplayName: function(lo) { return "Connect(" + lo + ")"; - }, shouldHandleStateChanges: !!he, initMapStateToProps: it, initMapDispatchToProps: xn, initMergeProps: jn, pure: Be, areStatesEqual: dt, areOwnPropsEqual: Bt, areStatePropsEqual: It, areMergedPropsEqual: mt }, En)); + }, shouldHandleStateChanges: !!me, initMapStateToProps: it, initMapDispatchToProps: xn, initMergeProps: jn, pure: Be, areStatesEqual: dt, areOwnPropsEqual: Bt, areStatePropsEqual: It, areMergedPropsEqual: mt }, En)); }; } const _e = Pe(); @@ -9120,54 +9120,54 @@ ${k}`); s.attributes[c] = { value: g }; }), s.properties = pt(s.properties), s.attributes = pt(s.attributes); for (const c in s.attributes) { - const g = {}, b = l.model.schema.getAttributeProperties(c); - for (const x in b) g[x] = { value: b[x] }; + const g = {}, y = l.model.schema.getAttributeProperties(c); + for (const x in y) g[x] = { value: y[x] }; s.attributes[c].subProperties = pt(g); } return s; } function In(l, o) { const s = {}, { startOffset: c, endOffset: g } = l; - return Object.assign(s, { startOffset: c, endOffset: g, node: l, path: l.getPath(), positionsBefore: [], positionsAfter: [] }), xo(l) ? (function(b, x) { - const z = b.node; - Object.assign(b, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] }); - for (const K of z.getChildren()) b.children.push(In(K, x)); + return Object.assign(s, { startOffset: c, endOffset: g, node: l, path: l.getPath(), positionsBefore: [], positionsAfter: [] }), xo(l) ? (function(y, x) { + const z = y.node; + Object.assign(y, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] }); + for (const K of z.getChildren()) y.children.push(In(K, x)); (function(K, Y) { for (const ie of Y) { - const ue = yi(K, ie); - for (const he of ue) { - const de = he.offset; + const ue = bi(K, ie); + for (const me of ue) { + const de = me.offset; if (de === 0) { const Oe = K.children[0]; - Oe ? Oe.positionsBefore.push(he) : K.positions.push(he); + Oe ? Oe.positionsBefore.push(me) : K.positions.push(me); } else if (de === K.maxOffset) { const Oe = K.children[K.children.length - 1]; - Oe ? Oe.positionsAfter.push(he) : K.positions.push(he); + Oe ? Oe.positionsAfter.push(me) : K.positions.push(me); } else { - let Oe = he.isEnd ? 0 : K.children.length - 1, Ce = K.children[Oe]; + let Oe = me.isEnd ? 0 : K.children.length - 1, Ce = K.children[Oe]; for (; Ce; ) { if (Ce.startOffset === de) { - Ce.positionsBefore.push(he); + Ce.positionsBefore.push(me); break; } if (Ce.endOffset === de) { const ze = K.children[Oe + 1], st = Ce.type === "text" && ze && ze.type === "element", Be = Ce.type === "element" && ze && ze.type === "text", je = Ce.type === "text" && ze && ze.type === "text"; - he.isEnd && (st || Be || je) ? ze.positionsBefore.push(he) : Ce.positionsAfter.push(he); + me.isEnd && (st || Be || je) ? ze.positionsBefore.push(me) : Ce.positionsAfter.push(me); break; } if (Ce.startOffset < de && Ce.endOffset > de) { - Ce.positions.push(he); + Ce.positions.push(me); break; } - Oe += he.isEnd ? 1 : -1, Ce = K.children[Oe]; + Oe += me.isEnd ? 1 : -1, Ce = K.children[Oe]; } } } } - })(b, x), b.attributes = Co(z); - })(s, o) : (function(b) { - const x = b.node; - Object.assign(b, { type: "text", text: x.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), b.attributes = Co(x); + })(y, x), y.attributes = Co(z); + })(s, o) : (function(y) { + const x = y.node; + Object.assign(y, { type: "text", text: x.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), y.attributes = Co(x); })(s), s; } function Co(l) { @@ -9177,9 +9177,9 @@ ${k}`); function hn(l) { return [...l.getAttributes()].sort(([o], [s]) => o < s ? -1 : 1); } - function yi(l, o) { - const s = l.path, c = o.start.path, g = o.end.path, b = []; - return mn(s, c) && b.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), mn(s, g) && b.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), b; + function bi(l, o) { + const s = l.path, c = o.start.path, g = o.end.path, y = []; + return mn(s, c) && y.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), mn(s, g) && y.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), y; } function mn(l, o) { return l.length === o.length - 1 && Kr(l, o) === "prefix"; @@ -9208,34 +9208,34 @@ ${k}`); } const Dr = "active-model-tab-name", Kn = "model-show-markers", cr = "model-compact-text"; function Qn(l, o, s) { - const c = (function(g, b, x) { - if (g.ui.activeTab !== "Model") return b; - if (!b) return Rn(g, b); + const c = (function(g, y, x) { + if (g.ui.activeTab !== "Model") return y; + if (!y) return Rn(g, y); switch (x.type) { case Qe: return (function(z, K, Y) { const ie = Y.currentRootName; return { ...K, ...Ir(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; - })(g, b, x); + })(g, y, x); case et: - return { ...b, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) }; + return { ...y, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) }; case Ht: case Gt: - return { ...b, ...Ir(g, b) }; + return { ...y, ...Ir(g, y) }; case an: case pn: - return Rn(g, b); + return Rn(g, y); default: - return b; + return y; } })(l, o, s); - return c && (c.ui = (function(g, b) { + return c && (c.ui = (function(g, y) { if (!g) return { activeTab: ct.get(Dr) || "Inspect", showMarkers: ct.get(Kn) === "true", showCompactText: ct.get(cr) === "true" }; - switch (b.type) { + switch (y.type) { case Pt: return (function(x, z) { return ct.set(Dr, z.tabName), { ...x, activeTab: z.tabName }; - })(g, b); + })(g, y); case ko: return (function(x) { const z = !x.showMarkers; @@ -9258,27 +9258,27 @@ ${k}`); return { ...o, ...Ir(l, o, { currentRootName: c }), currentRootName: c, currentNode: null, currentNodeDefinition: null }; } function Ir(l, o, s) { - const c = gn(l), g = { ...o, ...s }, b = g.currentRootName, x = (function(ue, he) { + const c = gn(l), g = { ...o, ...s }, y = g.currentRootName, x = (function(ue, me) { if (!ue) return []; const de = [], Oe = ue.model; - for (const Ce of Oe.document.selection.getRanges()) Ce.root.rootName === he && de.push({ type: "selection", start: zt(Ce.start), end: zt(Ce.end) }); + for (const Ce of Oe.document.selection.getRanges()) Ce.root.rootName === me && de.push({ type: "selection", start: zt(Ce.start), end: zt(Ce.end) }); return de; - })(c, b), z = (function(ue, he) { + })(c, y), z = (function(ue, me) { if (!ue) return []; const de = [], Oe = ue.model; let Ce = 0; for (const ze of Oe.markers) { const { name: st, affectsData: Be, managedUsingOperations: je } = ze, dt = ze.getStart(), vt = ze.getEnd(); - dt.root.rootName === he && de.push({ type: "marker", marker: ze, name: st, affectsData: Be, managedUsingOperations: je, presentation: { color: Dn[Ce++ % (Dn.length - 1)] }, start: zt(dt), end: zt(vt) }); + dt.root.rootName === me && de.push({ type: "marker", marker: ze, name: st, affectsData: Be, managedUsingOperations: je, presentation: { color: Dn[Ce++ % (Dn.length - 1)] }, start: zt(dt), end: zt(vt) }); } return de; - })(c, b), K = (function({ currentEditor: ue, currentRootName: he, ranges: de, markers: Oe }) { - return ue ? [In(ue.model.document.getRoot(he), [...de, ...Oe])] : []; + })(c, y), K = (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 Y = g.currentNode, ie = g.currentNodeDefinition; - return Y ? Y.root.rootName !== b || !Wn(Y) && !Y.parent ? (Y = null, ie = null) : ie = lr(c, Y) : ie = null, { treeDefinition: K, currentNode: Y, currentNodeDefinition: ie, ranges: x, markers: z }; + return Y ? Y.root.rootName !== y || !Wn(Y) && !Y.parent ? (Y = null, ie = null) : ie = lr(c, Y) : ie = null, { treeDefinition: K, currentNode: Y, currentNodeDefinition: ie, ranges: x, markers: z }; } - const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Q = "SET_VIEW_ACTIVE_TAB", ye = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE"; + const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Q = "SET_VIEW_ACTIVE_TAB", be = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE"; function tt(l) { return { type: Q, tabName: l }; } @@ -9304,46 +9304,46 @@ ${k}`); return l && l.is("rootElement"); } function jt(l) { - return { path: [...l.parent.getPath(), l.offset], offset: l.offset, isAtEnd: l.isAtEnd, isAtStart: l.isAtStart, parent: bt(l.parent) }; + return { path: [...l.parent.getPath(), l.offset], offset: l.offset, isAtEnd: l.isAtEnd, isAtStart: l.isAtStart, parent: yt(l.parent) }; } - function bt(l) { + function yt(l) { return Ge(l) ? rt(l) ? "attribute:" + l.name : kt(l) ? "root:" + l.name : "container:" + l.name : l.data; } - const yt = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", bn = `<!--The View UI element content has been skipped. Find out why. -->`, ur = `<!--The View raw element content has been skipped. Find out why. -->`; + const bt = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", yn = `<!--The View UI element content has been skipped. Find out why. -->`, ur = `<!--The View raw element content has been skipped. Find out why. -->`; function Mn(l) { return l ? [...l.editing.view.document.roots] : []; } - function yn(l) { + function bn(l) { const o = { editorNode: l, properties: {}, attributes: {}, customProperties: {} }; if (Ge(l)) { - kt(l) ? (o.type = "RootEditableElement", o.name = l.rootName, o.url = `${yt}_rooteditableelement-RootEditableElement.html`) : (o.name = l.name, rt(l) ? (o.type = "AttributeElement", o.url = `${yt}_attributeelement-AttributeElement.html`) : At(l) ? (o.type = "EmptyElement", o.url = `${yt}_emptyelement-EmptyElement.html`) : ft(l) ? (o.type = "UIElement", o.url = `${yt}_uielement-UIElement.html`) : ht(l) ? (o.type = "RawElement", o.url = `${yt}_rawelement-RawElement.html`) : (function(s) { + kt(l) ? (o.type = "RootEditableElement", o.name = l.rootName, o.url = `${bt}_rooteditableelement-RootEditableElement.html`) : (o.name = l.name, rt(l) ? (o.type = "AttributeElement", o.url = `${bt}_attributeelement-AttributeElement.html`) : At(l) ? (o.type = "EmptyElement", o.url = `${bt}_emptyelement-EmptyElement.html`) : ft(l) ? (o.type = "UIElement", o.url = `${bt}_uielement-UIElement.html`) : ht(l) ? (o.type = "RawElement", o.url = `${bt}_rawelement-RawElement.html`) : (function(s) { return s && Ge(s) && s.is("editableElement"); - })(l) ? (o.type = "EditableElement", o.url = `${yt}_editableelement-EditableElement.html`) : (o.type = "ContainerElement", o.url = `${yt}_containerelement-ContainerElement.html`)), nt(l).forEach(([s, c]) => { + })(l) ? (o.type = "EditableElement", o.url = `${bt}_editableelement-EditableElement.html`) : (o.type = "ContainerElement", o.url = `${bt}_containerelement-ContainerElement.html`)), nt(l).forEach(([s, c]) => { o.attributes[s] = { value: c }; }), o.properties = { index: { value: l.index }, isEmpty: { value: l.isEmpty }, childCount: { value: l.childCount } }; for (let [s, c] of l.getCustomProperties()) typeof s == "symbol" && (s = s.toString()), o.customProperties[s] = { value: c }; - } else o.name = l.data, o.type = "Text", o.url = `${yt}_text-Text.html`, o.properties = { index: { value: l.index } }; + } else o.name = l.data, o.type = "Text", o.url = `${bt}_text-Text.html`, o.properties = { index: { value: l.index } }; return o.properties = pt(o.properties), o.customProperties = pt(o.customProperties), o.attributes = pt(o.attributes), o; } function Xr(l, o) { const s = {}; return Object.assign(s, { index: l.index, path: l.getPath(), node: l, positionsBefore: [], positionsAfter: [] }), Ge(l) ? (function(c, g) { - const b = c.node; - Object.assign(c, { type: "element", children: [], positions: [] }), c.name = b.name, rt(b) ? c.elementType = "attribute" : kt(b) ? c.elementType = "root" : At(b) ? c.elementType = "empty" : ft(b) ? c.elementType = "ui" : ht(b) ? c.elementType = "raw" : c.elementType = "container", At(b) ? c.presentation = { isEmpty: !0 } : ft(b) ? c.children.push({ type: "comment", text: bn }) : ht(b) && c.children.push({ type: "comment", text: ur }); - for (const x of b.getChildren()) c.children.push(Xr(x, g)); + const y = c.node; + Object.assign(c, { type: "element", children: [], positions: [] }), c.name = y.name, rt(y) ? c.elementType = "attribute" : kt(y) ? c.elementType = "root" : At(y) ? c.elementType = "empty" : ft(y) ? c.elementType = "ui" : ht(y) ? c.elementType = "raw" : c.elementType = "container", At(y) ? c.presentation = { isEmpty: !0 } : ft(y) ? c.children.push({ type: "comment", text: yn }) : ht(y) && c.children.push({ type: "comment", text: ur }); + for (const x of y.getChildren()) c.children.push(Xr(x, g)); (function(x, z) { for (const K of z) { const Y = To(x, K); for (const ie of Y) { const ue = ie.offset; if (ue === 0) { - const he = x.children[0]; - he ? he.positionsBefore.push(ie) : x.positions.push(ie); + const me = x.children[0]; + me ? me.positionsBefore.push(ie) : x.positions.push(ie); } else if (ue === x.children.length) { - const he = x.children[x.children.length - 1]; - he ? he.positionsAfter.push(ie) : x.positions.push(ie); + const me = x.children[x.children.length - 1]; + me ? me.positionsAfter.push(ie) : x.positions.push(ie); } else { - let he = ie.isEnd ? 0 : x.children.length - 1, de = x.children[he]; + let me = ie.isEnd ? 0 : x.children.length - 1, de = x.children[me]; for (; de; ) { if (de.index === ue) { de.positionsBefore.push(ie); @@ -9353,7 +9353,7 @@ ${k}`); de.positionsAfter.push(ie); break; } - he += ie.isEnd ? 1 : -1, de = x.children[he]; + me += ie.isEnd ? 1 : -1, de = x.children[me]; } } } @@ -9361,18 +9361,18 @@ ${k}`); })(c, g), c.attributes = (function(x) { const z = nt(x).map(([K, Y]) => [K, fn(Y, !1)]); return new Map(z); - })(b); + })(y); })(s, o) : (function(c, g) { Object.assign(c, { type: "text", startOffset: 0, text: c.node.data, positions: [] }); - for (const b of g) { - const x = To(c, b); + for (const y of g) { + const x = To(c, y); c.positions.push(...x); } })(s, o), s; } function To(l, o) { - const s = l.path, c = o.start.path, g = o.end.path, b = []; - return Oo(s, c) && b.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), Oo(s, g) && b.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), b; + const s = l.path, c = o.start.path, g = o.end.path, y = []; + return Oo(s, c) && y.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), Oo(s, g) && y.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), y; } function Oo(l, o) { return l.length === o.length - 1 && Kr(l, o) === "prefix"; @@ -9382,41 +9382,41 @@ ${k}`); } const Ze = "active-view-tab-name", Yn = "view-element-types"; function vn(l, o, s) { - const c = (function(g, b, x) { - if (g.ui.activeTab !== "View") return b; - if (!b) return dr(g, b); + const c = (function(g, y, x) { + if (g.ui.activeTab !== "View") return y; + if (!y) return dr(g, y); switch (x.type) { case Rr: return (function(z, K, Y) { const ie = Y.currentRootName; return { ...K, ...ut(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; - })(g, b, x); + })(g, y, x); case M: - return { ...b, currentNode: x.currentNode, currentNodeDefinition: yn(x.currentNode) }; + return { ...y, currentNode: x.currentNode, currentNodeDefinition: bn(x.currentNode) }; case Ht: case De: - return { ...b, ...ut(g, b) }; + return { ...y, ...ut(g, y) }; case an: case pn: - return dr(g, b); + return dr(g, y); default: - return b; + return y; } })(l, o, s); - return c && (c.ui = (function(g, b, x) { - if (!b) return { activeTab: ct.get(Ze) || "Inspect", showElementTypes: ct.get(Yn) === "true" }; + return c && (c.ui = (function(g, y, x) { + if (!y) return { activeTab: ct.get(Ze) || "Inspect", showElementTypes: ct.get(Yn) === "true" }; switch (x.type) { case Q: return (function(z, K) { return ct.set(Ze, K.tabName), { ...z, activeTab: K.tabName }; - })(b, x); - case ye: + })(y, x); + case be: return (function(z, K) { const Y = !K.showElementTypes; return ct.set(Yn, Y), { ...K, showElementTypes: Y }; - })(0, b); + })(0, y); default: - return b; + return y; } })(0, c.ui, s)), c; } @@ -9425,16 +9425,16 @@ ${k}`); 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, b = (function(Y, ie) { + const c = { ...o, ...s }, g = c.currentRootName, y = (function(Y, ie) { if (!Y) return []; - const ue = [], he = Y.editing.view.document.selection; - for (const de of he.getRanges()) de.root.rootName === ie && ue.push({ type: "selection", start: jt(de.start), end: jt(de.end) }); + const ue = [], me = Y.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) }); return ue; })(gn(l), g), x = (function({ currentEditor: Y, currentRootName: ie, ranges: ue }) { return Y && ie ? [Xr(Y.editing.view.document.getRoot(ie), [...ue])] : null; - })({ currentEditor: gn(l), currentRootName: g, ranges: b }); + })({ currentEditor: gn(l), currentRootName: g, ranges: y }); let z = c.currentNode, K = c.currentNodeDefinition; - return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, K = null) : K = yn(z) : K = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: K, ranges: b }; + return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, K = null) : K = bn(z) : K = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: K, ranges: y }; } const wt = "SET_COMMANDS_CURRENT_COMMAND_NAME", Tt = "UPDATE_COMMANDS_STATE"; function Lt() { @@ -9449,8 +9449,8 @@ ${k}`); if (!l.get(o)) return []; const s = []; for (const [c, g] of l.get(o).commands) { - const b = []; - g.value !== void 0 && b.push(["value", fn(g.value, !1)]), s.push({ name: c, type: "element", children: [], node: c, attributes: b, presentation: { isEmpty: !0, cssClass: ["ck-inspector-tree-node_tagless", g.isEnabled ? "" : "ck-inspector-tree-node_disabled"].join(" ") } }); + const y = []; + g.value !== void 0 && y.push(["value", fn(g.value, !1)]), s.push({ name: c, type: "element", children: [], node: c, attributes: y, presentation: { isEmpty: !0, cssClass: ["ck-inspector-tree-node_tagless", g.isEnabled ? "" : "ck-inspector-tree-node_disabled"].join(" ") } }); } return s.sort((c, g) => c.name > g.name ? 1 : -1); } @@ -9464,25 +9464,25 @@ ${k}`); const pr = ["isBlock", "isInline", "isObject", "isContent", "isLimit", "isSelectable"], Xn = "https://ckeditor.com/docs/ckeditor5/latest/api/"; function _n({ editors: l, currentEditorName: o }, s) { if (!s) return null; - const c = l.get(o).model.schema, g = c.getDefinitions()[s], b = {}, x = {}, z = {}; + const c = l.get(o).model.schema, g = c.getDefinitions()[s], y = {}, x = {}, z = {}; let K = {}; - for (const Y of pr) g[Y] && (b[Y] = { value: g[Y] }); + for (const Y of pr) g[Y] && (y[Y] = { value: g[Y] }); for (const Y of g.allowChildren.sort()) x[Y] = { value: !0, title: `Click to see the definition of ${Y}` }; for (const Y of g.allowIn.sort()) z[Y] = { value: !0, title: `Click to see the definition of ${Y}` }; for (const Y of g.allowAttributes.sort()) K[Y] = { value: !0 }; K = pt(K); for (const Y in K) { const ie = c.getAttributeProperties(Y), ue = {}; - for (const he in ie) ue[he] = { value: ie[he] }; + for (const me in ie) ue[me] = { value: ie[me] }; K[Y].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(b), allowChildren: pt(x), allowIn: pt(z), allowAttributes: K, definition: g }; + 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: K, definition: g }; } function Mr({ editors: l, currentEditorName: o }) { if (!l.get(o)) return []; const s = [], c = l.get(o).model.schema.getDefinitions(); for (const g in c) s.push({ name: g, type: "element", children: [], node: g, attributes: [], presentation: { isEmpty: !0, cssClass: "ck-inspector-tree-node_tagless" } }); - return s.sort((g, b) => g.name > b.name ? 1 : -1); + return s.sort((g, y) => g.name > y.name ? 1 : -1); } function fr(l, o = {}) { return { ...o, currentSchemaDefinitionName: null, currentSchemaDefinition: null, treeDefinition: Mr(l) }; @@ -9492,20 +9492,20 @@ ${k}`); const s = (function(c, g) { switch (g.type) { case an: - return (function(b, x) { + return (function(y, x) { const z = { editors: new Map(x.editors) }; - return x.editors.size ? x.editors.has(b.currentEditorName) || (z.currentEditorName = sn(x.editors)) : z.currentEditorName = null, { ...b, ...z }; + return x.editors.size ? x.editors.has(y.currentEditorName) || (z.currentEditorName = sn(x.editors)) : z.currentEditorName = null, { ...y, ...z }; })(c, g); case pn: - return (function(b, x) { - return { ...b, currentEditorName: x.editorName }; + return (function(y, x) { + return { ...y, currentEditorName: x.editorName }; })(c, g); default: return c; } })(l, o); - return s.currentEditorGlobals = (function(c, g, b) { - switch (b.type) { + return s.currentEditorGlobals = (function(c, g, y) { + switch (y.type) { case an: case pn: return { ...ki(c, {}) }; @@ -9516,36 +9516,36 @@ ${k}`); } })(s, s.currentEditorGlobals, o), s.ui = (function(c, g) { if (!c.activeTab) { - let b; - return b = c.isCollapsed !== void 0 ? c.isCollapsed : ct.get(zr) === "true", { ...c, isCollapsed: b, activeTab: ct.get(hr) || "Model", height: ct.get(Zr) || "400px", sidePaneWidth: ct.get(vi) || "500px" }; + let y; + return y = c.isCollapsed !== void 0 ? c.isCollapsed : ct.get(zr) === "true", { ...c, isCollapsed: y, activeTab: ct.get(hr) || "Model", height: ct.get(Zr) || "400px", sidePaneWidth: ct.get(vi) || "500px" }; } switch (g.type) { case wo: - return (function(b) { - const x = !b.isCollapsed; - return ct.set(zr, x), { ...b, isCollapsed: x }; + return (function(y) { + const x = !y.isCollapsed; + return ct.set(zr, x), { ...y, isCollapsed: x }; })(c); case $n: - return (function(b, x) { - return ct.set(Zr, x.newHeight), { ...b, height: x.newHeight }; + return (function(y, x) { + return ct.set(Zr, x.newHeight), { ...y, height: x.newHeight }; })(c, g); case Bn: - return (function(b, x) { - return ct.set(vi, x.newWidth), { ...b, sidePaneWidth: x.newWidth }; + return (function(y, x) { + return ct.set(vi, x.newWidth), { ...y, sidePaneWidth: x.newWidth }; })(c, g); case Ht: - return (function(b, x) { - return ct.set(hr, x.tabName), { ...b, activeTab: x.tabName }; + return (function(y, x) { + return ct.set(hr, x.tabName), { ...y, activeTab: x.tabName }; })(c, g); default: return c; } - })(s.ui, o), s.model = Qn(s, s.model, o), s.view = vn(s, s.view, o), s.commands = (function(c, g, b) { + })(s.ui, o), s.model = Qn(s, s.model, o), s.view = vn(s, s.view, o), s.commands = (function(c, g, y) { if (c.ui.activeTab !== "Commands") return g; if (!g) return wn(c, g); - switch (b.type) { + switch (y.type) { case wt: - return { ...g, currentCommandDefinition: kn(c, b.currentCommandName), currentCommandName: b.currentCommandName }; + return { ...g, currentCommandDefinition: kn(c, y.currentCommandName), currentCommandName: y.currentCommandName }; case Ht: case Tt: return { ...g, currentCommandDefinition: kn(c, g.currentCommandName), treeDefinition: zn(c) }; @@ -9555,12 +9555,12 @@ ${k}`); default: return g; } - })(s, s.commands, o), s.schema = (function(c, g, b) { + })(s, s.commands, o), s.schema = (function(c, g, y) { if (c.ui.activeTab !== "Schema") return g; if (!g) return fr(c, g); - switch (b.type) { + switch (y.type) { case ln: - return { ...g, currentSchemaDefinition: _n(c, b.currentSchemaDefinitionName), currentSchemaDefinitionName: b.currentSchemaDefinitionName }; + return { ...g, currentSchemaDefinition: _n(c, y.currentSchemaDefinitionName), currentSchemaDefinitionName: y.currentSchemaDefinitionName }; case Ht: return { ...g, currentSchemaDefinition: _n(c, g.currentSchemaDefinitionName), treeDefinition: Mr(c) }; case an: @@ -9580,7 +9580,7 @@ ${k}`); return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, g) { c.__proto__ = g; } || function(c, g) { - for (var b in g) g.hasOwnProperty(b) && (c[b] = g[b]); + for (var y in g) g.hasOwnProperty(y) && (c[y] = g[y]); }, l(o, s); }; return function(o, s) { @@ -9611,7 +9611,7 @@ ${k}`); return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, g) { c.__proto__ = g; } || function(c, g) { - for (var b in g) g.hasOwnProperty(b) && (c[b] = g[b]); + for (var y in g) g.hasOwnProperty(y) && (c[y] = g[y]); }, l(o, s); }; return function(o, s) { @@ -9635,8 +9635,8 @@ ${k}`); return !!(l.touches && l.touches.length); }, ia = An()(function(l, o, s) { s === void 0 && (s = 0); - var c = o.reduce(function(b, x, z) { - return Math.abs(x - l) < Math.abs(o[b] - l) ? z : b; + var c = o.reduce(function(y, x, z) { + return Math.abs(x - l) < Math.abs(o[y] - l) ? z : y; }, 0), g = Math.abs(o[c] - l); return s === 0 || g < s ? o[c] : l; }), _t = An()(function(l, o) { @@ -9651,8 +9651,8 @@ ${k}`); if (_t(l, "vh")) return c * (Number(l.replace("vh", "")) / 100); } return l; - }, xi = An()(function(l, o, s, c, g, b, x) { - return c = ti(c, l.width, o, s), g = ti(g, l.height, o, s), b = ti(b, l.width, o, s), x = ti(x, l.height, o, s), { maxWidth: c === void 0 ? void 0 : Number(c), maxHeight: g === void 0 ? void 0 : Number(g), minWidth: b === void 0 ? void 0 : Number(b), minHeight: x === void 0 ? void 0 : Number(x) }; + }, xi = An()(function(l, o, s, c, g, y, x) { + return c = ti(c, l.width, o, s), g = ti(g, l.height, o, s), y = ti(y, l.width, o, s), x = ti(x, l.height, o, s), { maxWidth: c === void 0 ? void 0 : Number(c), maxHeight: g === void 0 ? void 0 : Number(g), minWidth: y === void 0 ? void 0 : Number(y), minHeight: x === void 0 ? void 0 : Number(x) }; }), Si = ["as", "style", "className", "grid", "snap", "bounds", "boundsByDirection", "size", "defaultSize", "minWidth", "minHeight", "maxWidth", "maxHeight", "lockAspectRatio", "lockAspectRatioExtraWidth", "lockAspectRatioExtraHeight", "enable", "handleStyles", "handleClasses", "handleWrapperStyle", "handleWrapperClass", "children", "onResizeStart", "onResize", "onResizeStop", "handleComponent", "scale", "resizeRatio", "snapGap"], Ci = "__resizable_base__", Gn = (function(l) { function o(s) { var c = l.call(this, s) || this; @@ -9660,11 +9660,11 @@ ${k}`); if (!c.resizable || !c.window) return null; var g = c.parentNode; if (!g) return null; - var b = c.window.document.createElement("div"); - return b.style.width = "100%", b.style.height = "100%", b.style.position = "absolute", b.style.transform = "scale(0, 0)", b.style.left = "0", b.style.flex = "0", b.classList ? b.classList.add(Ci) : b.className += Ci, g.appendChild(b), b; + var y = c.window.document.createElement("div"); + return y.style.width = "100%", y.style.height = "100%", y.style.position = "absolute", y.style.transform = "scale(0, 0)", y.style.left = "0", y.style.flex = "0", y.classList ? y.classList.add(Ci) : y.className += Ci, g.appendChild(y), y; }, c.removeBase = function(g) { - var b = c.parentNode; - b && b.removeChild(g); + var y = c.parentNode; + y && y.removeChild(g); }, c.ref = function(g) { g && (c.resizable = g); }, c.state = { isResizing: !1, width: (c.propsSize && c.propsSize.width) === void 0 ? "auto" : c.propsSize && c.propsSize.width, height: (c.propsSize && c.propsSize.height) === void 0 ? "auto" : c.propsSize && c.propsSize.height, direction: "right", original: { x: 0, y: 0, width: 0, height: 0 }, backgroundStyle: { height: "100%", width: "100%", backgroundColor: "rgba(0,0,0,0)", cursor: "auto", opacity: 0, position: "fixed", zIndex: 9999, top: "0", left: "0", bottom: "0", right: "0" }, flexBasis: void 0 }, c.onResizeStart = c.onResizeStart.bind(c), c.onMouseMove = c.onMouseMove.bind(c), c.onMouseUp = c.onMouseUp.bind(c), c; @@ -9678,19 +9678,19 @@ ${k}`); }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "size", { get: function() { var s = 0, c = 0; if (this.resizable && this.window) { - var g = this.resizable.offsetWidth, b = this.resizable.offsetHeight, x = this.resizable.style.position; - x !== "relative" && (this.resizable.style.position = "relative"), s = this.resizable.style.width !== "auto" ? this.resizable.offsetWidth : g, c = this.resizable.style.height !== "auto" ? this.resizable.offsetHeight : b, this.resizable.style.position = x; + var g = this.resizable.offsetWidth, y = this.resizable.offsetHeight, x = this.resizable.style.position; + x !== "relative" && (this.resizable.style.position = "relative"), s = this.resizable.style.width !== "auto" ? this.resizable.offsetWidth : g, c = this.resizable.style.height !== "auto" ? this.resizable.offsetHeight : y, this.resizable.style.position = x; } return { width: s, height: c }; }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "sizeStyle", { get: function() { - var s = this, c = this.props.size, g = function(b) { - if (s.state[b] === void 0 || s.state[b] === "auto") return "auto"; - if (s.propsSize && s.propsSize[b] && _t(s.propsSize[b].toString(), "%")) { - if (_t(s.state[b].toString(), "%")) return s.state[b].toString(); + var s = this, c = this.props.size, g = function(y) { + if (s.state[y] === void 0 || s.state[y] === "auto") return "auto"; + if (s.propsSize && s.propsSize[y] && _t(s.propsSize[y].toString(), "%")) { + if (_t(s.state[y].toString(), "%")) return s.state[y].toString(); var x = s.getParentSize(); - return Number(s.state[b].toString().replace("px", "")) / x[b] * 100 + "%"; + return Number(s.state[y].toString().replace("px", "")) / x[y] * 100 + "%"; } - return ei(s.state[b]); + return ei(s.state[y]); }; return { width: c && c.width !== void 0 && !this.state.isResizing ? ei(c.width) : g("width"), height: c && c.height !== void 0 && !this.state.isResizing ? ei(c.height) : g("height") }; }, enumerable: !1, configurable: !0 }), o.prototype.getParentSize = function() { @@ -9699,8 +9699,8 @@ ${k}`); if (!s) return { width: 0, height: 0 }; var c = !1, g = this.parentNode.style.flexWrap; g !== "wrap" && (c = !0, this.parentNode.style.flexWrap = "wrap"), s.style.position = "relative", s.style.minWidth = "100%"; - var b = { width: s.offsetWidth, height: s.offsetHeight }; - return c && (this.parentNode.style.flexWrap = g), this.removeBase(s), b; + var y = { width: s.offsetWidth, height: s.offsetHeight }; + return c && (this.parentNode.style.flexWrap = g), this.removeBase(s), y; }, o.prototype.bindEvents = function() { this.window && (this.window.addEventListener("mouseup", this.onMouseUp), this.window.addEventListener("mousemove", this.onMouseMove), this.window.addEventListener("mouseleave", this.onMouseUp), this.window.addEventListener("touchmove", this.onMouseMove, { capture: !0, passive: !1 }), this.window.addEventListener("touchend", this.onMouseUp)); }, o.prototype.unbindEvents = function() { @@ -9716,21 +9716,21 @@ ${k}`); var g = this.propsSize && this.propsSize[c]; return this.state[c] !== "auto" || this.state.original[c] !== s || g !== void 0 && g !== "auto" ? s : "auto"; }, o.prototype.calculateNewMaxFromBoundary = function(s, c) { - var g, b, x = this.props.boundsByDirection, z = this.state.direction, K = x && mr("left", z), Y = x && mr("top", z); + var g, y, x = this.props.boundsByDirection, z = this.state.direction, K = x && mr("left", z), Y = x && mr("top", z); if (this.props.bounds === "parent") { var ie = this.parentNode; - ie && (g = K ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), b = Y ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); - } else this.props.bounds === "window" ? this.window && (g = K ? this.resizableRight : this.window.innerWidth - this.resizableLeft, b = Y ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = K ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), b = Y ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); - return g && Number.isFinite(g) && (s = s && s < g ? s : g), b && Number.isFinite(b) && (c = c && c < b ? c : b), { maxWidth: s, maxHeight: c }; + ie && (g = K ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), y = Y ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); + } else this.props.bounds === "window" ? this.window && (g = K ? this.resizableRight : this.window.innerWidth - this.resizableLeft, y = Y ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = K ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), y = Y ? 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, b = this.props.resizeRatio || 1, x = this.state, z = x.direction, K = x.original, Y = this.props, ie = Y.lockAspectRatio, ue = Y.lockAspectRatioExtraHeight, he = Y.lockAspectRatioExtraWidth, de = K.width, Oe = K.height, Ce = ue || 0, ze = he || 0; - return mr("right", z) && (de = K.width + (s - K.x) * b / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("left", z) && (de = K.width - (s - K.x) * b / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("bottom", z) && (Oe = K.height + (c - K.y) * b / g, ie && (de = (Oe - Ce) * this.ratio + ze)), mr("top", z) && (Oe = K.height - (c - K.y) * b / g, ie && (de = (Oe - Ce) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; - }, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, b) { - var x = this.props, z = x.lockAspectRatio, K = x.lockAspectRatioExtraHeight, Y = x.lockAspectRatioExtraWidth, ie = b.width === void 0 ? 10 : b.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, he = b.height === void 0 ? 10 : b.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = K || 0, Ce = Y || 0; + var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, K = x.original, Y = this.props, ie = Y.lockAspectRatio, ue = Y.lockAspectRatioExtraHeight, me = Y.lockAspectRatioExtraWidth, de = K.width, Oe = K.height, Ce = ue || 0, ze = me || 0; + return mr("right", z) && (de = K.width + (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("left", z) && (de = K.width - (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("bottom", z) && (Oe = K.height + (c - K.y) * y / g, ie && (de = (Oe - Ce) * this.ratio + ze)), mr("top", z) && (Oe = K.height - (c - K.y) * y / g, ie && (de = (Oe - Ce) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; + }, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, y) { + var x = this.props, z = x.lockAspectRatio, K = x.lockAspectRatioExtraHeight, Y = 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 = K || 0, Ce = Y || 0; if (z) { - var ze = (he - Oe) * this.ratio + Ce, st = (de - Oe) * this.ratio + Ce, Be = (ie - Ce) / this.ratio + Oe, je = (ue - Ce) / this.ratio + Oe, dt = Math.max(ie, ze), vt = Math.min(ue, st), Bt = Math.max(he, Be), xt = Math.min(de, je); + var ze = (me - Oe) * this.ratio + Ce, st = (de - Oe) * this.ratio + Ce, Be = (ie - Ce) / this.ratio + Oe, je = (ue - Ce) / this.ratio + Oe, dt = Math.max(ie, ze), vt = Math.min(ue, st), Bt = Math.max(me, Be), xt = Math.min(de, je); s = Jo(s, dt, vt), c = Jo(c, Bt, xt); - } else s = Jo(s, ie, ue), c = Jo(c, he, de); + } else s = Jo(s, ie, ue), c = Jo(c, me, de); return { newWidth: s, newHeight: c }; }, o.prototype.setBoundingClientRect = function() { if (this.props.bounds === "parent") { @@ -9745,17 +9745,17 @@ ${k}`); this.targetLeft = g.left, this.targetTop = g.top; } if (this.resizable) { - var b = this.resizable.getBoundingClientRect(), x = b.left, z = b.top, K = b.right, Y = b.bottom; + var y = this.resizable.getBoundingClientRect(), x = y.left, z = y.top, K = y.right, Y = y.bottom; this.resizableLeft = x, this.resizableRight = K, this.resizableTop = z, this.resizableBottom = Y; } }, o.prototype.onResizeStart = function(s, c) { if (this.resizable && this.window) { - var g, b = 0, x = 0; + var g, y = 0, x = 0; if (s.nativeEvent && (function(ue) { return !!((ue.clientX || ue.clientX === 0) && (ue.clientY || ue.clientY === 0)); })(s.nativeEvent)) { - if (b = s.nativeEvent.clientX, x = s.nativeEvent.clientY, s.nativeEvent.which === 3) return; - } else s.nativeEvent && gr(s.nativeEvent) && (b = s.nativeEvent.touches[0].clientX, x = s.nativeEvent.touches[0].clientY); + if (y = s.nativeEvent.clientX, x = s.nativeEvent.clientY, s.nativeEvent.which === 3) return; + } else s.nativeEvent && gr(s.nativeEvent) && (y = s.nativeEvent.touches[0].clientX, x = s.nativeEvent.touches[0].clientY); if (this.props.onResizeStart && this.resizable && this.props.onResizeStart(s, c, this.resizable) === !1) return; this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height; var z = this.window.getComputedStyle(this.resizable); @@ -9767,7 +9767,7 @@ ${k}`); } } this.setBoundingClientRect(), this.bindEvents(); - var ie = { original: { x: b, 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 }; + 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); } }, o.prototype.onMouseMove = function(s) { @@ -9776,32 +9776,32 @@ ${k}`); s.preventDefault(), s.stopPropagation(); } catch { } - var c = this.props, g = c.maxWidth, b = c.maxHeight, x = c.minWidth, z = c.minHeight, K = gr(s) ? s.touches[0].clientX : s.clientX, Y = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, he = ie.original, de = ie.width, Oe = ie.height, Ce = this.getParentSize(), ze = xi(Ce, this.window.innerWidth, this.window.innerHeight, g, b, x, z); - g = ze.maxWidth, b = ze.maxHeight, x = ze.minWidth, z = ze.minHeight; - var st = this.calculateNewSizeFromDirection(K, Y), Be = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, b), vt = this.calculateNewSizeFromAspectRatio(je, Be, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); + var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, K = gr(s) ? s.touches[0].clientX : s.clientX, Y = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, me = ie.original, de = ie.width, Oe = ie.height, Ce = this.getParentSize(), ze = xi(Ce, 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(K, Y), Be = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, y), vt = this.calculateNewSizeFromAspectRatio(je, Be, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); if (je = vt.newWidth, Be = vt.newHeight, this.props.grid) { var Bt = Po(je, this.props.grid[0]), xt = Po(Be, this.props.grid[1]), It = this.props.snapGap || 0; je = It === 0 || Math.abs(Bt - je) <= It ? Bt : je, Be = It === 0 || Math.abs(xt - Be) <= It ? xt : Be; } this.props.snap && this.props.snap.x && (je = ia(je, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (Be = ia(Be, this.props.snap.y, this.props.snapGap)); - var St = { width: je - he.width, height: Be - he.height }; + var St = { width: je - me.width, height: Be - me.height }; de && typeof de == "string" && (_t(de, "%") ? je = je / Ce.width * 100 + "%" : _t(de, "vw") ? je = je / this.window.innerWidth * 100 + "vw" : _t(de, "vh") && (je = je / this.window.innerHeight * 100 + "vh")), Oe && typeof Oe == "string" && (_t(Oe, "%") ? Be = Be / Ce.height * 100 + "%" : _t(Oe, "vw") ? Be = Be / this.window.innerWidth * 100 + "vw" : _t(Oe, "vh") && (Be = Be / this.window.innerHeight * 100 + "vh")); var mt = { width: this.createSizeForCssProperty(je, "width"), height: this.createSizeForCssProperty(Be, "height") }; this.flexDir === "row" ? mt.flexBasis = mt.width : this.flexDir === "column" && (mt.flexBasis = mt.height), this.setState(mt), this.props.onResize && this.props.onResize(s, ue, this.resizable, St); } }, o.prototype.onMouseUp = function(s) { - var c = this.state, g = c.isResizing, b = c.direction, x = c.original; + var c = this.state, g = c.isResizing, y = c.direction, x = c.original; if (g && this.resizable) { var z = { width: this.size.width - x.width, height: this.size.height - x.height }; - this.props.onResizeStop && this.props.onResizeStop(s, b, this.resizable, z), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: "auto" }) }); + this.props.onResizeStop && this.props.onResizeStop(s, y, this.resizable, z), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: "auto" }) }); } }, o.prototype.updateSize = function(s) { this.setState({ width: s.width, height: s.height }); }, o.prototype.renderResizer = function() { - var s = this, c = this.props, g = c.enable, b = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, K = c.handleWrapperClass, Y = c.handleComponent; + var s = this, c = this.props, g = c.enable, y = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, K = c.handleWrapperClass, Y = c.handleComponent; if (!g) return null; var ie = Object.keys(g).map(function(ue) { - return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: b && b[ue], className: x && x[ue] }, Y && Y[ue] ? Y[ue] : null) : null; + return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: y && y[ue], className: x && x[ue] }, Y && Y[ue] ? Y[ue] : null) : null; }); return i.createElement("div", { className: K, style: z }, ie); }, o.prototype.render = function() { @@ -9809,8 +9809,8 @@ ${k}`); return Si.indexOf(z) !== -1 || (x[z] = s.props[z]), x; }, {}), g = Qt(Qt(Qt({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 }); this.state.flexBasis && (g.flexBasis = this.state.flexBasis); - var b = this.props.as || "div"; - return i.createElement(b, Qt({ ref: this.ref, style: g, className: this.props.className }, c), this.state.isResizing && i.createElement("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()); + var y = this.props.as || "div"; + return i.createElement(y, Qt({ ref: this.ref, style: g, className: this.props.className }, c), this.state.isResizing && i.createElement("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()); }, o.defaultProps = { as: "div", onResizeStart: function() { }, onResize: function() { }, onResizeStop: function() { @@ -9842,7 +9842,7 @@ ${k}`); Jr(s, c), s.prototype = c === null ? Object.create(c) : (g.prototype = c.prototype, new g()); })(o, l), o.prototype.componentDidMount = function() { this.updateOffsetFromParent(); - var s = this.offsetFromParent, c = s.left, g = s.top, b = this.getDraggablePosition(), x = b.x, z = b.y; + var s = this.offsetFromParent, c = s.left, g = s.top, y = this.getDraggablePosition(), x = y.x, z = y.y; this.draggable.setState({ x: x - c, y: z - g }), this.forceUpdate(); }, o.prototype.getDraggablePosition = function() { var s = this.draggable.state; @@ -9877,22 +9877,22 @@ ${k}`); } }, o.prototype.onDragStart = function(s, c) { if (this.props.onDragStart && this.props.onDragStart(s, c), this.props.bounds) { - var g, b = this.getParent(), x = this.props.scale; - if (this.props.bounds === "parent") g = b; + var g, y = this.getParent(), x = this.props.scale; + if (this.props.bounds === "parent") g = y; else { if (this.props.bounds === "body") { - var z = b.getBoundingClientRect(), K = z.left, Y = z.top, ie = document.body.getBoundingClientRect(), ue = -(K - b.offsetLeft * x - ie.left) / x, he = -(Y - b.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 + he; - return this.setState({ bounds: { top: he, right: de, bottom: Oe, left: ue } }); + var z = y.getBoundingClientRect(), K = z.left, Y = z.top, ie = document.body.getBoundingClientRect(), ue = -(K - y.offsetLeft * x - ie.left) / x, me = -(Y - 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; + return this.setState({ bounds: { top: me, right: de, bottom: Oe, left: ue } }); } if (this.props.bounds === "window") { if (!this.resizable) return; - var Ce = b.getBoundingClientRect(), ze = Ce.left, st = Ce.top, Be = -(ze - b.offsetLeft * x) / x, je = -(st - b.offsetTop * x) / x; + var Ce = y.getBoundingClientRect(), ze = Ce.left, st = Ce.top, Be = -(ze - y.offsetLeft * x) / x, je = -(st - y.offsetTop * x) / x; return de = (window.innerWidth - this.resizable.size.width * x) / x + Be, Oe = (window.innerHeight - this.resizable.size.height * x) / x + je, this.setState({ bounds: { top: je, right: de, bottom: Oe, left: Be } }); } g = document.querySelector(this.props.bounds); } - if (g instanceof HTMLElement && b instanceof HTMLElement) { - var dt = g.getBoundingClientRect(), vt = dt.left, Bt = dt.top, xt = b.getBoundingClientRect(), It = (vt - xt.left) / x, St = Bt - xt.top; + if (g instanceof HTMLElement && y instanceof HTMLElement) { + var dt = g.getBoundingClientRect(), vt = dt.left, Bt = dt.top, xt = y.getBoundingClientRect(), It = (vt - xt.left) / x, St = Bt - xt.top; if (this.resizable) { this.updateOffsetFromParent(); var mt = this.offsetFromParent; @@ -9907,41 +9907,41 @@ ${k}`); } }, o.prototype.onDragStop = function(s, c) { if (this.props.onDragStop) { - var g = this.offsetFromParent, b = g.left, x = g.top; - return this.props.onDragStop(s, Zt(Zt({}, c), { x: c.x + b, y: c.y + x })); + var g = this.offsetFromParent, y = g.left, x = g.top; + return this.props.onDragStop(s, Zt(Zt({}, c), { x: c.x + y, y: c.y + x })); } }, o.prototype.onResizeStart = function(s, c, g) { s.stopPropagation(), this.resizing = !0; - var b = this.props.scale, x = this.offsetFromParent, z = this.getDraggablePosition(); + var y = this.props.scale, x = this.offsetFromParent, z = this.getDraggablePosition(); if (this.resizingPosition = { x: z.x + x.left, y: z.y + x.top }, this.setState({ original: z }), this.props.bounds) { var K = this.getParent(), Y = void 0; Y = this.props.bounds === "parent" ? K : this.props.bounds === "body" ? document.body : this.props.bounds === "window" ? window : document.querySelector(this.props.bounds); var ie = this.getSelfElement(); if (ie instanceof Element && (Y instanceof HTMLElement || Y === window) && K instanceof HTMLElement) { - var ue = this.getMaxSizesFromProps(), he = ue.maxWidth, de = ue.maxHeight, Oe = this.getParentSize(); - if (he && typeof he == "string") if (he.endsWith("%")) { - var Ce = Number(he.replace("%", "")) / 100; - he = Oe.width * Ce; - } else he.endsWith("px") && (he = Number(he.replace("px", ""))); + var ue = this.getMaxSizesFromProps(), me = ue.maxWidth, de = ue.maxHeight, Oe = this.getParentSize(); + if (me && typeof me == "string") if (me.endsWith("%")) { + var Ce = Number(me.replace("%", "")) / 100; + me = Oe.width * Ce; + } else me.endsWith("px") && (me = Number(me.replace("px", ""))); de && typeof de == "string" && (de.endsWith("%") ? (Ce = Number(de.replace("%", "")) / 100, de = Oe.width * Ce) : de.endsWith("px") && (de = Number(de.replace("px", "")))); var ze = ie.getBoundingClientRect(), st = ze.left, Be = ze.top, je = this.props.bounds === "window" ? { left: 0, top: 0 } : Y.getBoundingClientRect(), dt = je.left, vt = je.top, Bt = this.getOffsetWidth(Y), xt = this.getOffsetHeight(Y), 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) / b + this.resizable.size.width; - this.setState({ maxWidth: it > Number(he) ? he : it }); + var it = (st - dt) / y + this.resizable.size.width; + this.setState({ maxWidth: it > Number(me) ? me : it }); } - (St || this.props.lockAspectRatio && !It) && (it = Bt + (dt - st) / b, this.setState({ maxWidth: it > Number(he) ? he : it })), mt && this.resizable && (it = (Be - vt) / b + this.resizable.size.height, this.setState({ maxHeight: it > Number(de) ? de : it })), (En || this.props.lockAspectRatio && !mt) && (it = xt + (vt - Be) / b, this.setState({ maxHeight: it > Number(de) ? de : it })); + (St || this.props.lockAspectRatio && !It) && (it = Bt + (dt - st) / y, this.setState({ maxWidth: it > Number(me) ? me : it })), mt && this.resizable && (it = (Be - vt) / y + this.resizable.size.height, this.setState({ maxHeight: it > Number(de) ? de : it })), (En || this.props.lockAspectRatio && !mt) && (it = xt + (vt - Be) / y, this.setState({ maxHeight: it > Number(de) ? de : it })); } } else this.setState({ maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight }); this.props.onResizeStart && this.props.onResizeStart(s, c, g); - }, o.prototype.onResize = function(s, c, g, b) { - var x = { x: this.state.original.x, y: this.state.original.y }, z = -b.width, K = -b.height; + }, o.prototype.onResize = function(s, c, g, y) { + var x = { x: this.state.original.x, y: this.state.original.y }, z = -y.width, K = -y.height; ["top", "left", "topLeft", "bottomLeft", "topRight"].indexOf(c) !== -1 && (c === "bottomLeft" ? x.x += z : (c === "topRight" || (x.x += z), x.y += K)), x.x === this.draggable.state.x && x.y === this.draggable.state.y || this.draggable.setState(x), this.updateOffsetFromParent(); var Y = this.offsetFromParent, ie = this.getDraggablePosition().x + Y.left, ue = this.getDraggablePosition().y + Y.top; - this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, b, { x: ie, y: ue }); - }, o.prototype.onResizeStop = function(s, c, g, b) { + this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, y, { x: ie, y: ue }); + }, o.prototype.onResizeStop = function(s, c, g, y) { this.resizing = !1; var x = this.getMaxSizesFromProps(), z = x.maxWidth, K = x.maxHeight; - this.setState({ maxWidth: z, maxHeight: K }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, b, this.resizingPosition); + this.setState({ maxWidth: z, maxHeight: K }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, y, this.resizingPosition); }, o.prototype.updateSize = function(s) { this.resizable && this.resizable.updateSize({ width: s.width, height: s.height }); }, o.prototype.updatePosition = function(s) { @@ -9949,10 +9949,10 @@ ${k}`); }, o.prototype.updateOffsetFromParent = function() { var s = this.props.scale, c = this.getParent(), g = this.getSelfElement(); if (!c || g === null) return { top: 0, left: 0 }; - var b = c.getBoundingClientRect(), x = b.left, z = b.top, K = g.getBoundingClientRect(), Y = this.getDraggablePosition(); + var y = c.getBoundingClientRect(), x = y.left, z = y.top, K = g.getBoundingClientRect(), Y = this.getDraggablePosition(); this.offsetFromParent = { left: K.left - x - Y.x * s, top: K.top - z - Y.y * s }; }, o.prototype.render = function() { - var s = this.props, c = s.disableDragging, g = s.style, b = s.dragHandleClassName, x = s.position, z = s.onMouseDown, K = s.onMouseUp, Y = s.dragAxis, ie = s.dragGrid, ue = s.bounds, he = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Ce = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, Be = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Bt = 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, K = s.onMouseUp, Y = s.dragAxis, ie = s.dragGrid, ue = s.bounds, me = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Ce = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, Be = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Bt = 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]); if (qt != null && typeof Object.getOwnPropertySymbols == "function") { @@ -9962,10 +9962,10 @@ ${k}`); 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; delete It.default; - var mt, En = c || b ? { cursor: "auto" } : { cursor: "move" }, it = Zt(Zt(Zt({}, sa), En), g), xn = this.offsetFromParent, jn = xn.left, lo = xn.top; + 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" : Y; - return (0, i.createElement)(aa, { ref: this.refDraggable, handle: b ? "." + b : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: K, 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: he, cancel: de, scale: Bt, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof Be == "boolean" ? (Wt = Be, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : Be, 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: Ce, 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: K, 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: Bt, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof Be == "boolean" ? (Wt = Be, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : Be, 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: Ce, 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() { @@ -10012,13 +10012,13 @@ ${k}`); return i.createElement(eo, null, [this.props.contentBefore, i.createElement(la, { key: "navigation", definitions: o.map((s) => s.props.label), activeTab: this.props.activeTab, onClick: this.handleTabClick }), this.props.contentAfter], o.filter((s) => s.props.label === this.props.activeTab)); } } - var Ni = T(8142), br = T.n(Ni); + var Ni = T(8142), yr = T.n(Ni); class Do extends i.Component { render() { return [i.createElement("label", { htmlFor: this.props.id, key: "label" }, this.props.label, ":"), i.createElement("select", { id: this.props.id, value: this.props.value, onChange: this.props.onChange, key: "select" }, this.props.options.map((o) => i.createElement("option", { value: o, key: o }, o)))]; } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } T(5627); @@ -10068,7 +10068,7 @@ ${k}`); return this.definition.node === this.globalTreeProps.activeNode; } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } class Ii extends i.PureComponent { @@ -10078,27 +10078,27 @@ ${k}`); return this.props.dontRenderValue || (o = i.createElement("span", { className: "ck-inspector-tree-node__attribute__value" }, s)), i.createElement("span", { className: "ck-inspector-tree-node__attribute" }, i.createElement("span", { className: "ck-inspector-tree-node__attribute__name", title: s }, this.props.name), o); } } - class yr extends i.Component { + class br extends i.Component { render() { const o = this.props.definition, s = { className: ["ck-inspector-tree__position", o.type === "selection" ? "ck-inspector-tree__position_selection" : "", o.type === "marker" ? "ck-inspector-tree__position_marker" : "", o.isEnd ? "ck-inspector-tree__position_end" : ""].join(" "), style: {} }; return o.presentation && o.presentation.color && (s.style["--ck-inspector-color-tree-position"] = o.presentation.color), o.type === "marker" && (s["data-marker-name"] = o.name), i.createElement("span", s, "​"); } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } class vr extends Ar { render() { - const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, b = 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 = [], K = []; + 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 = [], K = []; o.positionsBefore && o.positionsBefore.forEach((ie, ue) => { - z.push(i.createElement(yr, { key: "position-before:" + ue, definition: ie })); + z.push(i.createElement(br, { key: "position-before:" + ue, definition: ie })); }), o.positionsAfter && o.positionsAfter.forEach((ie, ue) => { - K.push(i.createElement(yr, { key: "position-after:" + ue, definition: ie })); + K.push(i.createElement(br, { key: "position-after:" + ue, definition: ie })); }), o.positions && o.positions.forEach((ie, ue) => { - b.push(i.createElement(yr, { key: "position" + ue, definition: ie })); + y.push(i.createElement(br, { key: "position" + ue, definition: ie })); }); let Y = o.name; - return this.globalTreeProps.showElementTypes && (Y = o.elementType + ":" + Y), 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" }), Y, 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" }, b), 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" }), "/", Y, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), K)); + return this.globalTreeProps.showElementTypes && (Y = o.elementType + ":" + Y), 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" }), Y, 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" }), "/", Y, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), K)); } getAttributes() { const o = [], s = this.definition; @@ -10106,30 +10106,30 @@ ${k}`); return o; } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } class ri extends Ar { render() { const o = this.definition, s = ["ck-inspector-tree-text", this.isActive ? "ck-inspector-tree-node_active" : ""].join(" "); let c = this.definition.text; - o.positions && o.positions.length && (c = c.split(""), Array.from(o.positions).sort((b, x) => b.offset < x.offset ? -1 : b.offset === x.offset ? 0 : 1).reverse().forEach((b, x) => { - c.splice(b.offset - o.startOffset, 0, i.createElement(yr, { key: "position" + x, definition: b })); + o.positions && o.positions.length && (c = c.split(""), Array.from(o.positions).sort((y, x) => y.offset < x.offset ? -1 : y.offset === x.offset ? 0 : 1).reverse().forEach((y, x) => { + c.splice(y.offset - o.startOffset, 0, i.createElement(br, { key: "position" + x, definition: y })); })); const g = [c]; - return o.positionsBefore && o.positionsBefore.length && o.positionsBefore.forEach((b, x) => { - g.unshift(i.createElement(yr, { key: "position-before:" + x, definition: b })); - }), o.positionsAfter && o.positionsAfter.length && o.positionsAfter.forEach((b, x) => { - g.push(i.createElement(yr, { key: "position-after:" + x, definition: b })); + return o.positionsBefore && o.positionsBefore.length && o.positionsBefore.forEach((y, x) => { + g.unshift(i.createElement(br, { key: "position-before:" + x, definition: y })); + }), o.positionsAfter && o.positionsAfter.length && o.positionsAfter.forEach((y, x) => { + g.push(i.createElement(br, { key: "position-after:" + x, definition: y })); }), i.createElement("span", { className: s, onClick: this.handleClick }, i.createElement("span", { className: "ck-inspector-tree-node__content" }, this.globalTreeProps.showCompactText ? "" : this.getAttributes(), this.globalTreeProps.showCompactText ? "" : '"', g, this.globalTreeProps.showCompactText ? "" : '"')); } getAttributes() { const o = [], s = this.definition, c = s.presentation, g = c && c.dontRenderAttributeValue; - for (const [b, x] of s.attributes) o.push(i.createElement(Ii, { key: b, name: b, value: x, dontRenderValue: g })); + for (const [y, x] of s.attributes) o.push(i.createElement(Ii, { key: y, name: y, value: x, dontRenderValue: g })); return i.createElement("span", { className: "ck-inspector-tree-text__attributes" }, o); } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } class Io extends i.Component { @@ -10168,7 +10168,7 @@ ${k}`); return i.createElement(eo, null, [i.createElement("div", { className: "ck-inspector-tree__config", key: "root-cfg" }, i.createElement(Do, { id: "view-root-select", label: "Root", value: this.props.currentRootName, options: Pr(o).map((s) => s.rootName), onChange: this.handleRootChange })), i.createElement("span", { className: "ck-inspector-separator", key: "separator" }), i.createElement("div", { className: "ck-inspector-tree__config", key: "text-cfg" }, i.createElement(Zn, { label: "Compact text", id: "model-compact-text", isChecked: this.props.showCompactText, onChange: this.props.toggleModelShowCompactText }), i.createElement(Zn, { label: "Show markers", id: "model-show-markers", isChecked: this.props.showMarkers, onChange: this.props.toggleModelShowMarkers }))], i.createElement(kr, { className: [this.props.showMarkers ? "" : "ck-inspector-model-tree__hide-markers"], definition: this.props.treeDefinition, textDirection: o.locale.contentLanguageDirection, onClick: this.handleTreeClick, showCompactText: this.props.showCompactText, activeNode: this.props.currentNode })); } } - const Jn = _e(({ editors: l, currentEditorName: o, model: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showMarkers: b, showCompactText: x } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showMarkers: b, showCompactText: x }), { toggleModelShowCompactText: function() { + const Jn = _e(({ editors: l, currentEditorName: o, model: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showMarkers: y, showCompactText: x } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showMarkers: y, showCompactText: x }), { toggleModelShowCompactText: function() { return { type: Dt }; }, setModelCurrentRootName: function(l) { return { type: Qe, currentRootName: l }; @@ -10182,13 +10182,13 @@ ${k}`); render() { const o = this.props.presentation && this.props.presentation.expandCollapsibles, s = []; for (const c in this.props.itemDefinitions) { - const g = this.props.itemDefinitions[c], { subProperties: b, presentation: x = {} } = g, z = b && Object.keys(b).length, K = Qr(String(g.value), 2e3), Y = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: K, readOnly: !0 }))]; - z && Y.push(i.createElement(oi, { name: `${this.props.name}-${c}`, key: `${this.props.name}-${c}`, itemDefinitions: b, presentation: this.props.presentation })), s.push(Y); + const g = this.props.itemDefinitions[c], { subProperties: y, presentation: x = {} } = g, z = y && Object.keys(y).length, K = Qr(String(g.value), 2e3), Y = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: K, readOnly: !0 }))]; + z && Y.push(i.createElement(oi, { name: `${this.props.name}-${c}`, key: `${this.props.name}-${c}`, itemDefinitions: y, presentation: this.props.presentation })), s.push(Y); } return i.createElement("dl", { className: "ck-inspector-property-list ck-inspector-code" }, s); } shouldComponentUpdate(o) { - return !br()(this.props, o); + return !yr()(this.props, o); } } class ca extends i.PureComponent { @@ -10286,33 +10286,33 @@ ${k}`); } } const us = _e(({ editors: l, currentEditorName: o, model: { ranges: s } }) => { - const c = l.get(o), g = (function(b, x) { - const z = b.model.document.selection, K = z.anchor, Y = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(K)), focus: Mo(zt(Y)), ranges: {} }; - for (const [ue, he] of z.getAttributes()) ie.attributes[ue] = { value: he }; - x.forEach((ue, he) => { - ie.ranges[he] = { value: "", subProperties: { start: { value: "", subProperties: pt(Mo(ue.start)) }, end: { value: "", subProperties: pt(Mo(ue.end)) } } }; + const c = l.get(o), g = (function(y, x) { + const z = y.model.document.selection, K = z.anchor, Y = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(K)), focus: Mo(zt(Y)), ranges: {} }; + for (const [ue, me] of z.getAttributes()) ie.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)) } } }; }); for (const ue in ie) ue !== "ranges" && (ie[ue] = pt(ie[ue])); return ie; })(c, s); return { editor: c, currentEditorName: o, info: g }; }, {})(cs); - function Mo({ path: l, stickiness: o, index: s, isAtEnd: c, isAtStart: g, offset: b, textNode: x }) { - return { path: { value: l }, stickiness: { value: o }, index: { value: s }, isAtEnd: { value: c }, isAtStart: { value: g }, offset: { value: b }, textNode: { value: x } }; + function Mo({ path: l, stickiness: o, index: s, isAtEnd: c, isAtStart: g, offset: y, textNode: x }) { + return { path: { value: l }, stickiness: { value: o }, index: { value: s }, isAtEnd: { value: c }, isAtStart: { value: g }, offset: { value: y }, textNode: { value: x } }; } class ds extends i.Component { render() { const o = (function(g) { - const b = {}; + const y = {}; for (const x of g) { const z = x.name.split(":"); - let K = b; + let K = y; for (const Y of z) { const ie = Y === z[z.length - 1]; K = K[Y] ? K[Y] : K[Y] = ie ? x : {}; } } - return b; + return y; })(this.props.markers), s = da(o), c = this.props.editors.get(this.props.currentEditorName); return Object.keys(o).length ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_markercollection-Marker.html", target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, "Markers"))), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: () => Ye.log([...c.model.markers]) })], lists: [{ name: "Markers tree", itemDefinitions: s, presentation: { expandCollapsibles: !0 } }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "No markers in the document.")); } @@ -10357,10 +10357,10 @@ ${k}`); return i.createElement(eo, null, [i.createElement("div", { className: "ck-inspector-tree__config", key: "root-cfg" }, i.createElement(Do, { id: "view-root-select", label: "Root", value: this.props.currentRootName, options: Mn(o).map((s) => s.rootName), onChange: this.handleRootChange })), i.createElement("span", { className: "ck-inspector-separator", key: "separator" }), i.createElement("div", { className: "ck-inspector-tree__config", key: "types-cfg" }, i.createElement(Zn, { label: "Show element types", id: "view-show-types", isChecked: this.props.showElementTypes, onChange: this.props.toggleViewShowElementTypes }))], i.createElement(kr, { definition: this.props.treeDefinition, textDirection: o.locale.contentLanguageDirection, onClick: this.handleTreeClick, showCompactText: "true", showElementTypes: this.props.showElementTypes, activeNode: this.props.currentNode })); } } - const fa = _e(({ editors: l, currentEditorName: o, view: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showElementTypes: b } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showElementTypes: b }), { setViewCurrentRootName: function(l) { + const fa = _e(({ editors: l, currentEditorName: o, view: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showElementTypes: y } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showElementTypes: y }), { setViewCurrentRootName: function(l) { return { type: Rr, currentRootName: l }; }, toggleViewShowElementTypes: function() { - return { type: ye }; + return { type: be }; }, setViewCurrentNode: function(l) { return { type: M, currentNode: l }; }, setViewActiveTab: tt })(pa); @@ -10373,7 +10373,7 @@ ${k}`); } render() { const o = this.props.currentNodeDefinition; - return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.url, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type), ":"), o.type === "Text" ? i.createElement("em", null, o.name) : o.name), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: this.handleNodeLogButtonClick })], lists: [{ name: "Attributes", url: o.url, itemDefinitions: o.attributes }, { name: "Properties", url: o.url, itemDefinitions: o.properties }, { name: "Custom Properties", url: `${yt}_element-Element.html#function-getCustomProperty`, itemDefinitions: o.customProperties }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a node in the tree to inspect")); + return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.url, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type), ":"), o.type === "Text" ? i.createElement("em", null, o.name) : o.name), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: this.handleNodeLogButtonClick })], lists: [{ name: "Attributes", url: o.url, itemDefinitions: o.attributes }, { name: "Properties", url: o.url, itemDefinitions: o.properties }, { name: "Custom Properties", url: `${bt}_element-Element.html#function-getCustomProperty`, itemDefinitions: o.customProperties }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a node in the tree to inspect")); } } const ha = _e(({ view: { currentNodeDefinition: l } }) => ({ currentNodeDefinition: l }), {})(nr), oo = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_selection-Selection.html"; @@ -10395,8 +10395,8 @@ ${k}`); } } const io = _e(({ editors: l, currentEditorName: o, view: { ranges: s } }) => { - const c = l.get(o), g = (function(b, x) { - const z = b.editing.view.document.selection, K = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: ai(jt(z.anchor)), focus: ai(jt(z.focus)), ranges: {} }; + const c = l.get(o), g = (function(y, x) { + const z = y.editing.view.document.selection, K = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: ai(jt(z.anchor)), focus: ai(jt(z.focus)), ranges: {} }; x.forEach((Y, ie) => { K.ranges[ie] = { value: "", subProperties: { start: { value: "", subProperties: pt(ai(Y.start)) }, end: { value: "", subProperties: pt(ai(Y.end)) } } }; }); @@ -10414,7 +10414,7 @@ ${k}`); } } const ga = _e(({ currentEditorName: l, view: { ui: { activeTab: o } } }) => ({ currentEditorName: l, activeTab: o }), { setViewActiveTab: tt, updateViewState: He })(hs); - class ba extends i.Component { + class ya extends i.Component { constructor(o) { super(o), this.handleTreeClick = this.handleTreeClick.bind(this); } @@ -10425,9 +10425,9 @@ ${k}`); return i.createElement(eo, null, i.createElement(kr, { definition: this.props.treeDefinition, onClick: this.handleTreeClick, activeNode: this.props.currentCommandName })); } } - const ya = _e(({ commands: { treeDefinition: l, currentCommandName: o } }) => ({ treeDefinition: l, currentCommandName: o }), { setCommandsCurrentCommandName: function(l) { + const ba = _e(({ commands: { treeDefinition: l, currentCommandName: o } }) => ({ treeDefinition: l, currentCommandName: o }), { setCommandsCurrentCommandName: function(l) { return { type: wt, currentCommandName: l }; - } })(ba); + } })(ya); function ao() { return ao = Object.assign ? Object.assign.bind() : function(l) { for (var o = 1; o < arguments.length; o++) { @@ -10456,7 +10456,7 @@ ${k}`); const si = _e(({ editors: l, currentEditorName: o, commands: { currentCommandName: s, currentCommandDefinition: c } }) => ({ editors: l, currentEditorName: o, currentCommandName: s, currentCommandDefinition: c }), {})(ms); class gs extends i.Component { render() { - return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ya, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(si, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); + return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ba, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(si, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); } } const Li = _e(({ currentEditorName: l }) => ({ currentEditorName: l }), { updateCommandsState: Lt })(gs); @@ -10472,7 +10472,7 @@ ${k}`); } } const ka = _e(({ schema: { treeDefinition: l, currentSchemaDefinitionName: o } }) => ({ treeDefinition: l, currentSchemaDefinitionName: o }), { setSchemaCurrentDefinitionName: Gr })(va); - class bs extends i.Component { + class ys extends i.Component { render() { const o = this.props.currentSchemaDefinition; return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.urls.general, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type)), ":", this.props.currentSchemaDefinitionName)], lists: [{ name: "Properties", url: o.urls.general, itemDefinitions: o.properties }, { name: "Allowed attributes", url: o.urls.allowAttributes, itemDefinitions: o.allowAttributes }, { name: "Allowed children", url: o.urls.allowChildren, itemDefinitions: o.allowChildren, onPropertyTitleClick: (s) => { @@ -10482,10 +10482,10 @@ ${k}`); } }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a schema definition to inspect")); } } - const ys = _e(({ editors: l, currentEditorName: o, schema: { currentSchemaDefinitionName: s, currentSchemaDefinition: c } }) => ({ editors: l, currentEditorName: o, currentSchemaDefinitionName: s, currentSchemaDefinition: c }), { setSchemaCurrentDefinitionName: Gr })(bs); + const bs = _e(({ editors: l, currentEditorName: o, schema: { currentSchemaDefinitionName: s, currentSchemaDefinition: c } }) => ({ editors: l, currentEditorName: o, currentSchemaDefinitionName: s, currentSchemaDefinition: c }), { setSchemaCurrentDefinitionName: Gr })(ys); class vs extends i.Component { render() { - return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ka, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(ys, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); + return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ka, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(bs, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); } } const ks = _e(({ currentEditorName: l }) => ({ currentEditorName: l }))(vs); @@ -10684,14 +10684,14 @@ ${k}`); static attach(...o) { const { CKEDITOR_VERSION: s } = window; if (s) { - const [b] = s.split(".").map(Number); - b < 34 && Ye.warn("[CKEditorInspector] The inspector requires using CKEditor 5 in version 34 or higher. If you cannot update CKEditor 5, consider downgrading the major version of the inspector to version 3."); + const [y] = s.split(".").map(Number); + y < 34 && Ye.warn("[CKEditorInspector] The inspector requires using CKEditor 5 in version 34 or higher. If you cannot update CKEditor 5, consider downgrading the major version of the inspector to version 3."); } else Ye.warn("[CKEditorInspector] Could not determine a version of CKEditor 5. Some of the functionalities may not work as expected."); const { editors: c, options: g } = qn(o); - for (const b in c) { - const x = c[b]; - Ye.group("%cAttached the inspector to a CKEditor 5 instance. To learn more, visit https://ckeditor.com/docs/ckeditor5.", "font-weight: bold;"), Ye.log(`Editor instance "${b}"`, x), Ye.groupEnd(), $e._editors.set(b, x), x.on("destroy", () => { - $e.detach(b); + for (const y in c) { + const x = c[y]; + Ye.group("%cAttached the inspector to a CKEditor 5 instance. To learn more, visit https://ckeditor.com/docs/ckeditor5.", "font-weight: bold;"), Ye.log(`Editor instance "${y}"`, x), Ye.groupEnd(), $e._editors.set(y, x), x.on("destroy", () => { + $e.detach(y); }), $e._mount(g), $e._updateEditorsState(); } return Object.keys(c); @@ -10699,8 +10699,8 @@ ${k}`); static attachToAll(o) { const s = document.querySelectorAll(".ck.ck-content.ck-editor__editable"), c = []; for (const g of s) { - const b = g.ckeditorInstance; - b && !$e._isAttachedTo(b) && c.push(...$e.attach(b, o)); + const y = g.ckeditorInstance; + y && !$e._isAttachedTo(y) && c.push(...$e.attach(y, o)); } return c; } @@ -10721,27 +10721,27 @@ ${k}`); const s = $e._wrapper = document.createElement("div"); let c, g; s.className = "ck-inspector-wrapper", document.body.appendChild(s), $e._editorListener = new Yr({ onModelChange() { - const b = $e._store; - b.getState().ui.isCollapsed || (b.dispatch(Nn()), b.dispatch(Lt())); + const y = $e._store; + y.getState().ui.isCollapsed || (y.dispatch(Nn()), y.dispatch(Lt())); }, onViewRender() { - const b = $e._store; - b.getState().ui.isCollapsed || b.dispatch(He()); + const y = $e._store; + y.getState().ui.isCollapsed || y.dispatch(He()); }, onReadOnlyChange() { $e._store.dispatch({ type: sr }); - } }), $e._store = y(oa, { editors: $e._editors, currentEditorName: sn($e._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), $e._store.subscribe(() => { - const b = $e._store.getState(), x = b.editors.get(b.currentEditorName); + } }), $e._store = b(oa, { editors: $e._editors, currentEditorName: sn($e._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), $e._store.subscribe(() => { + const y = $e._store.getState(), x = y.editors.get(y.currentEditorName); c !== x && (c && $e._editorListener.stopListening(c), x && $e._editorListener.startListening(x), c = x); }), $e._store.subscribe(() => { - const b = $e._store, x = b.getState().ui.isCollapsed, z = g && !x; - g = x, z && (b.dispatch(Nn()), b.dispatch(Lt()), b.dispatch(He())); - }), u.render(i.createElement(ee, { store: $e._store }, i.createElement(Os, null)), s); + const y = $e._store, x = y.getState().ui.isCollapsed, z = g && !x; + g = x, z && (y.dispatch(Nn()), y.dispatch(Lt()), y.dispatch(He())); + }), u.render(i.createElement(te, { store: $e._store }, i.createElement(Os, null)), s); } static _isAttachedTo(o) { return [...$e._editors.values()].includes(o); } } $e._editors = /* @__PURE__ */ new Map(), $e._wrapper = null; - })(), X = X.default; + })(), G = G.default; })()); })(_l)), _l.exports; } @@ -10753,7 +10753,7 @@ const Wu = /* @__PURE__ */ Hu(Bu); * @license GPL-3.0-or-later */ const qu = function(Te) { - const _ = Te.plugins.get(zc), E = $(Te.ui.view.element), O = $(Te.sourceElement), T = `ckeditor${Math.floor(Math.random() * 1e9)}`, X = [ + const _ = Te.plugins.get(zc), E = $(Te.ui.view.element), O = $(Te.sourceElement), T = `ckeditor${Math.floor(Math.random() * 1e9)}`, G = [ "keypress", "keyup", "change", @@ -10769,7 +10769,7 @@ const qu = function(Te) { ); if (_.isSourceEditingMode) { let u = i.attr("data-value"); - i.on(X, () => { + i.on(G, () => { u !== (u = i.attr("data-value")) && O.val(u); }); } else @@ -10801,33 +10801,39 @@ const qu = function(Te) { }, Qu = function(Te, _) { let E = null; const O = Te.editing.view.document, T = Te.plugins.get("ClipboardPipeline"); - O.on("clipboardOutput", (X, i) => { + O.on("clipboardOutput", (G, i) => { E = Te.id; - }), O.on("clipboardInput", async (X, i) => { + }), O.on("clipboardInput", async (G, i) => { let u = i.dataTransfer.getData("text/html"); if (u && u.includes(" 0) { - let se = $(L[0]).find("div.ckeditor-container"); - se.length > 0 && (C = $(se[0]).data("element-id")); + let ae = $(L[0]).find("div.ckeditor-container"); + ae.length > 0 && (C = $(ae[0]).data("element-id")); } C == null && (C = D.settings.elementId), m = N.parents(".field").data("layoutElement"); - for (let se = 0; se < v.length; se++) { - let ee = null; - if (v[se][1] && (ee = v[se][1]), ee !== null) { - const R = new RegExp('data-entry-id="' + ee + '"'); - if (!(E === Te.id && !R.test(y))) { - let F = null; - E !== Te.id && (_.includes(Au) ? F = Te.config.get("entryTypeOptions").map((H) => H.value) : (Craft.cp.displayError( + for (let ae = 0; ae < v.length; ae++) { + let te = null; + v[ae][1] && (te = v[ae][1]); + let R = null; + if (v[ae][2] && (R = v[ae][2]), te !== null) { + const F = new RegExp('data-entry-id="' + te + '"'); + if (!(E === Te.id && !F.test(b))) { + let q = null; + E !== Te.id && (_.includes(Au) ? q = Te.config.get("entryTypeOptions").map((X) => X.value) : (Craft.cp.displayError( Craft.t( "ckeditor", "This field doesn’t allow nested entries." @@ -10837,21 +10843,25 @@ const qu = function(Te) { "ckeditor/ckeditor/duplicate-nested-entry", { data: { - entryId: ee, - siteId: d, - targetEntryTypeIds: F, + entryId: te, + targetSiteId: d, + sourceSiteId: R, + targetEntryTypeIds: q, targetOwnerId: C, targetLayoutElementUid: m } } - ).then((H) => { - H.data.newEntryId && (f = f.replace( - ee, - H.data.newEntryId + ).then((X) => { + X.data.newEntryId && (f = f.replace( + 'data-entry-id="' + te + '"', + 'data-entry-id="' + X.data.newEntryId + '"' + )), X.data.newSiteId && (f = f.replace( + 'data-site-id="' + R + '"', + 'data-site-id="' + X.data.newSiteId + '"' )); - }).catch((H) => { - var ne, pe, oe, fe; - k = !0, Craft.cp.displayError((pe = (ne = H == null ? void 0 : H.response) == null ? void 0 : ne.data) == null ? void 0 : pe.message), console.error((fe = (oe = H == null ? void 0 : H.response) == null ? void 0 : oe.data) == null ? void 0 : fe.additionalMessage); + }).catch((X) => { + var pe, oe, fe, he; + k = !0, Craft.cp.displayError((oe = (pe = X == null ? void 0 : X.response) == null ? void 0 : pe.data) == null ? void 0 : oe.message), console.error((he = (fe = X == null ? void 0 : X.response) == null ? void 0 : fe.data) == null ? void 0 : he.additionalMessage); }); } } @@ -10866,10 +10876,10 @@ const qu = function(Te) { return Craft.showCkeditorInspector && Craft.userIsAdmin && Wu.attach(E), E.editing.view.change((O) => { const T = E.editing.view.document.getRoot(); if (typeof _.accessibleFieldName < "u" && _.accessibleFieldName.length) { - let X = T.getAttribute("aria-label"); + let G = T.getAttribute("aria-label"); O.setAttribute( "aria-label", - _.accessibleFieldName + ", " + X, + _.accessibleFieldName + ", " + G, T ); } diff --git a/src/web/assets/ckeditor/src/ckeditor5-craftcms.js b/src/web/assets/ckeditor/src/ckeditor5-craftcms.js index 7a0a3d0b..5e2435f4 100644 --- a/src/web/assets/ckeditor/src/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/src/ckeditor5-craftcms.js @@ -143,11 +143,15 @@ const handleClipboard = function (editor, plugins) { ) { let duplicatedContent = pasteContent; let errors = false; - const siteId = Craft.siteId; + const targetSiteId = Craft.siteId; let ownerId = null; let layoutElementUid = null; const editorData = editor.getData(); - const matches = [...pasteContent.matchAll(/data-entry-id="([0-9]+)/g)]; + const matches = [ + ...pasteContent.matchAll( + /data-entry-id="([0-9]+)[^>]*data-site-id="([0-9]+)/g, + ), + ]; // Stop the event emitter from calling further callbacks for this event interaction // we need to get duplicates and update the content snippet that's being pasted in @@ -189,6 +193,10 @@ const handleClipboard = function (editor, plugins) { if (matches[i][1]) { entryId = matches[i][1]; } + let sourceSiteId = null; + if (matches[i][2]) { + sourceSiteId = matches[i][2]; + } if (entryId !== null) { // check if we're copying to a different field and if this entry ID is in the field already @@ -224,7 +232,8 @@ const handleClipboard = function (editor, plugins) { { data: { entryId: entryId, - siteId: siteId, + targetSiteId: targetSiteId, + sourceSiteId: sourceSiteId, targetEntryTypeIds: targetEntryTypeIds, targetOwnerId: ownerId, targetLayoutElementUid: layoutElementUid, @@ -234,8 +243,14 @@ const handleClipboard = function (editor, plugins) { .then((response) => { if (response.data.newEntryId) { duplicatedContent = duplicatedContent.replace( - entryId, - response.data.newEntryId, + 'data-entry-id="' + entryId + '"', + 'data-entry-id="' + response.data.newEntryId + '"', + ); + } + if (response.data.newSiteId) { + duplicatedContent = duplicatedContent.replace( + 'data-site-id="' + sourceSiteId + '"', + 'data-site-id="' + response.data.newSiteId + '"', ); } })