likec4 1.49.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__app__/src/likec4.js +17 -40
- package/__app__/src/routes/single.js +27 -20
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +1152 -1013
- package/config/schema.json +16 -0
- package/dist/THIRD-PARTY-LICENSES.md +31 -1
- package/dist/_chunks/LikeC4.mjs +1154 -0
- package/dist/_chunks/binary.mjs +72 -0
- package/dist/_chunks/index.d.mts +11 -12
- package/dist/_chunks/index2.d.mts +166 -76
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +30 -0
- package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +8 -8
- package/dist/_chunks/libs/@chevrotain/types.d.mts +1 -0
- package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -1
- package/dist/_chunks/libs/@hono/mcp.mjs +8 -8
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/_chunks/libs/@logtape/logtape.mjs +3 -3
- package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +114 -14
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1
- package/dist/_chunks/libs/@nanostores/react.d.mts +61 -1
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +1 -0
- package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -1
- package/dist/_chunks/libs/ajv.mjs +1 -1
- package/dist/_chunks/libs/atomically.mjs +1 -1
- package/dist/_chunks/libs/birpc.mjs +1 -1
- package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/_chunks/libs/chevrotain.mjs +35 -35
- package/dist/_chunks/libs/conf.mjs +1 -1
- package/dist/_chunks/libs/defu.mjs +1 -1
- package/dist/_chunks/libs/esm-env.mjs +1 -1
- package/dist/_chunks/libs/eventemitter3.mjs +1 -1
- package/dist/_chunks/libs/fast-equals.mjs +1 -1
- package/dist/_chunks/libs/find-up-simple.mjs +1 -1
- package/dist/_chunks/libs/get-port.mjs +1 -1
- package/dist/_chunks/libs/is-docker.mjs +1 -1
- package/dist/_chunks/libs/is-error-instance.mjs +1 -1
- package/dist/_chunks/libs/is-inside-container.mjs +1 -1
- package/dist/_chunks/libs/is-plain-obj.mjs +1 -1
- package/dist/_chunks/libs/isexe.mjs +1 -1
- package/dist/_chunks/libs/json5.mjs +10 -10
- package/dist/_chunks/libs/khroma.mjs +1 -1
- package/dist/_chunks/libs/ky.mjs +2 -2
- package/dist/_chunks/libs/langium.d.mts +4 -3
- package/dist/_chunks/libs/langium.mjs +20 -19
- package/dist/_chunks/libs/merge-error-cause.mjs +2 -2
- package/dist/_chunks/libs/p-limit.mjs +1 -1
- package/dist/_chunks/libs/p-queue.mjs +1 -1
- package/dist/_chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/_chunks/libs/package-up.mjs +1 -1
- package/dist/_chunks/libs/pako.mjs +1 -0
- package/dist/_chunks/libs/parse-ms.mjs +1 -1
- package/dist/_chunks/libs/pathe.mjs +1 -1
- package/dist/_chunks/libs/picomatch.mjs +1 -1
- package/dist/_chunks/libs/pretty-ms.mjs +1 -1
- package/dist/_chunks/libs/remeda.mjs +2 -1
- package/dist/_chunks/libs/safe-stringify.mjs +1 -1
- package/dist/_chunks/libs/strip-indent.mjs +1 -1
- package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
- package/dist/_chunks/libs/ts-graphviz.mjs +3 -3
- package/dist/_chunks/libs/ufo.mjs +1 -1
- package/dist/_chunks/libs/which.mjs +1 -1
- package/dist/_chunks/libs/word-wrap.mjs +2 -2
- package/dist/_chunks/rolldown-runtime.mjs +1 -1
- package/dist/_chunks/sequence.mjs +1 -0
- package/dist/_chunks/src.mjs +15 -0
- package/dist/_chunks/src2.mjs +499 -0
- package/dist/cli/index.mjs +75 -231
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.mjs +1 -1
- package/dist/model/index.mjs +1 -1
- package/dist/vite-plugin/index.d.mts +3 -0
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.d.mts +1 -2
- package/dist/vite-plugin/internal.mjs +1 -1
- package/package.json +26 -26
- package/react/index.d.mts +2 -2
- package/react/index.mjs +36 -54
- package/vite-plugin-modules.d.ts +5 -0
- package/dist/_chunks/GraphvizBinaryAdapter.mjs +0 -72
- package/dist/_chunks/filenames.mjs +0 -14
- package/dist/_chunks/libs/@chevrotain/gast.mjs +0 -1
- package/dist/_chunks/libs/nanostores.d.mts +0 -63
- package/dist/_chunks/libs/nanostores.mjs +0 -1
- package/dist/_chunks/node.mjs +0 -481
- package/dist/_chunks/plugin.mjs +0 -322
- package/dist/_chunks/sequence-view.mjs +0 -1
package/__app__/src/vendors.js
CHANGED
|
@@ -14715,14 +14715,14 @@ function setupScrollRestoration(router, force) {
|
|
|
14715
14715
|
});
|
|
14716
14716
|
}
|
|
14717
14717
|
function encode(obj, pfx) {
|
|
14718
|
-
let
|
|
14719
|
-
for (
|
|
14720
|
-
if ((tmp = obj[
|
|
14718
|
+
let k2, i2, tmp, str = "";
|
|
14719
|
+
for (k2 in obj)
|
|
14720
|
+
if ((tmp = obj[k2]) !== void 0)
|
|
14721
14721
|
if (Array.isArray(tmp))
|
|
14722
14722
|
for (i2 = 0; i2 < tmp.length; i2++)
|
|
14723
|
-
str && (str += "&"), str += encodeURIComponent(
|
|
14723
|
+
str && (str += "&"), str += encodeURIComponent(k2) + "=" + encodeURIComponent(tmp[i2]);
|
|
14724
14724
|
else
|
|
14725
|
-
str && (str += "&"), str += encodeURIComponent(
|
|
14725
|
+
str && (str += "&"), str += encodeURIComponent(k2) + "=" + encodeURIComponent(tmp);
|
|
14726
14726
|
return "" + str;
|
|
14727
14727
|
}
|
|
14728
14728
|
function toValue(mix2) {
|
|
@@ -14731,16 +14731,16 @@ function toValue(mix2) {
|
|
|
14731
14731
|
return str === "false" ? !1 : str === "true" ? !0 : +str * 0 === 0 && +str + "" === str ? +str : str;
|
|
14732
14732
|
}
|
|
14733
14733
|
function decode(str, pfx) {
|
|
14734
|
-
let tmp,
|
|
14734
|
+
let tmp, k2;
|
|
14735
14735
|
const out = {}, arr = str.split("&");
|
|
14736
14736
|
for (; tmp = arr.shift(); ) {
|
|
14737
14737
|
const equalIndex = tmp.indexOf("=");
|
|
14738
14738
|
if (equalIndex !== -1) {
|
|
14739
|
-
|
|
14739
|
+
k2 = tmp.slice(0, equalIndex), k2 = decodeURIComponent(k2);
|
|
14740
14740
|
const value = tmp.slice(equalIndex + 1);
|
|
14741
|
-
out[
|
|
14741
|
+
out[k2] !== void 0 ? out[k2] = [].concat(out[k2], toValue(value)) : out[k2] = toValue(value);
|
|
14742
14742
|
} else
|
|
14743
|
-
|
|
14743
|
+
k2 = tmp, k2 = decodeURIComponent(k2), out[k2] = "";
|
|
14744
14744
|
}
|
|
14745
14745
|
return out;
|
|
14746
14746
|
}
|
|
@@ -16252,8 +16252,8 @@ function shallow(objA, objB) {
|
|
|
16252
16252
|
return !1;
|
|
16253
16253
|
if (objA instanceof Map && objB instanceof Map) {
|
|
16254
16254
|
if (objA.size !== objB.size) return !1;
|
|
16255
|
-
for (const [
|
|
16256
|
-
if (!objB.has(
|
|
16255
|
+
for (const [k2, v] of objA)
|
|
16256
|
+
if (!objB.has(k2) || !Object.is(v, objB.get(k2))) return !1;
|
|
16257
16257
|
return !0;
|
|
16258
16258
|
}
|
|
16259
16259
|
if (objA instanceof Set && objB instanceof Set) {
|
|
@@ -17742,8 +17742,8 @@ function cc(names) {
|
|
|
17742
17742
|
for (let i2 = 0, tmp; i2 < names.length; i2++)
|
|
17743
17743
|
(tmp = cc(names[i2])) !== "" && (out += (out && " ") + tmp);
|
|
17744
17744
|
else
|
|
17745
|
-
for (let
|
|
17746
|
-
names[
|
|
17745
|
+
for (let k2 in names)
|
|
17746
|
+
names[k2] && (out += (out && " ") + k2);
|
|
17747
17747
|
return out;
|
|
17748
17748
|
}
|
|
17749
17749
|
var noop$1 = { value: () => {
|
|
@@ -17843,8 +17843,8 @@ function selector$4(selector2) {
|
|
|
17843
17843
|
}
|
|
17844
17844
|
function selection_select(select2) {
|
|
17845
17845
|
typeof select2 != "function" && (select2 = selector$4(select2));
|
|
17846
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2),
|
|
17847
|
-
for (var group = groups[
|
|
17846
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j = 0; j < m2; ++j)
|
|
17847
|
+
for (var group = groups[j], n2 = group.length, subgroup = subgroups[j] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2)
|
|
17848
17848
|
(node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group)) && ("__data__" in node && (subnode.__data__ = node.__data__), subgroup[i2] = subnode);
|
|
17849
17849
|
return new Selection$1(subgroups, this._parents);
|
|
17850
17850
|
}
|
|
@@ -17866,8 +17866,8 @@ function arrayAll(select2) {
|
|
|
17866
17866
|
}
|
|
17867
17867
|
function selection_selectAll(select2) {
|
|
17868
17868
|
typeof select2 == "function" ? select2 = arrayAll(select2) : select2 = selectorAll(select2);
|
|
17869
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [],
|
|
17870
|
-
for (var group = groups[
|
|
17869
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j = 0; j < m2; ++j)
|
|
17870
|
+
for (var group = groups[j], n2 = group.length, node, i2 = 0; i2 < n2; ++i2)
|
|
17871
17871
|
(node = group[i2]) && (subgroups.push(select2.call(node, node.__data__, i2, group)), parents.push(node));
|
|
17872
17872
|
return new Selection$1(subgroups, parents);
|
|
17873
17873
|
}
|
|
@@ -17907,8 +17907,8 @@ function selection_selectChildren(match2) {
|
|
|
17907
17907
|
}
|
|
17908
17908
|
function selection_filter(match2) {
|
|
17909
17909
|
typeof match2 != "function" && (match2 = matcher(match2));
|
|
17910
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2),
|
|
17911
|
-
for (var group = groups[
|
|
17910
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j = 0; j < m2; ++j)
|
|
17911
|
+
for (var group = groups[j], n2 = group.length, subgroup = subgroups[j] = [], node, i2 = 0; i2 < n2; ++i2)
|
|
17912
17912
|
(node = group[i2]) && match2.call(node, node.__data__, i2, group) && subgroup.push(node);
|
|
17913
17913
|
return new Selection$1(subgroups, this._parents);
|
|
17914
17914
|
}
|
|
@@ -17963,8 +17963,8 @@ function selection_data(value, key) {
|
|
|
17963
17963
|
if (!arguments.length) return Array.from(this, datum);
|
|
17964
17964
|
var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
|
|
17965
17965
|
typeof value != "function" && (value = constant$4(value));
|
|
17966
|
-
for (var m2 = groups.length, update = new Array(m2), enter = new Array(m2), exit = new Array(m2),
|
|
17967
|
-
var parent = parents[
|
|
17966
|
+
for (var m2 = groups.length, update = new Array(m2), enter = new Array(m2), exit = new Array(m2), j = 0; j < m2; ++j) {
|
|
17967
|
+
var parent = parents[j], group = groups[j], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j, parents)), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength);
|
|
17968
17968
|
bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
|
|
17969
17969
|
for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0)
|
|
17970
17970
|
if (previous = enterGroup[i0]) {
|
|
@@ -17985,16 +17985,16 @@ function selection_join(onenter, onupdate, onexit) {
|
|
|
17985
17985
|
return typeof onenter == "function" ? (enter = onenter(enter), enter && (enter = enter.selection())) : enter = enter.append(onenter + ""), onupdate != null && (update = onupdate(update), update && (update = update.selection())), onexit == null ? exit.remove() : onexit(exit), enter && update ? enter.merge(update).order() : update;
|
|
17986
17986
|
}
|
|
17987
17987
|
function selection_merge(context) {
|
|
17988
|
-
for (var selection2 = context.selection ? context.selection() : context, groups0 = this._groups, groups1 = selection2._groups, m0 = groups0.length, m1 = groups1.length, m2 = Math.min(m0, m1), merges = new Array(m0),
|
|
17989
|
-
for (var group0 = groups0[
|
|
17988
|
+
for (var selection2 = context.selection ? context.selection() : context, groups0 = this._groups, groups1 = selection2._groups, m0 = groups0.length, m1 = groups1.length, m2 = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m2; ++j)
|
|
17989
|
+
for (var group0 = groups0[j], group1 = groups1[j], n2 = group0.length, merge2 = merges[j] = new Array(n2), node, i2 = 0; i2 < n2; ++i2)
|
|
17990
17990
|
(node = group0[i2] || group1[i2]) && (merge2[i2] = node);
|
|
17991
|
-
for (;
|
|
17992
|
-
merges[
|
|
17991
|
+
for (; j < m0; ++j)
|
|
17992
|
+
merges[j] = groups0[j];
|
|
17993
17993
|
return new Selection$1(merges, this._parents);
|
|
17994
17994
|
}
|
|
17995
17995
|
function selection_order() {
|
|
17996
|
-
for (var groups = this._groups,
|
|
17997
|
-
for (var group = groups[
|
|
17996
|
+
for (var groups = this._groups, j = -1, m2 = groups.length; ++j < m2; )
|
|
17997
|
+
for (var group = groups[j], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; )
|
|
17998
17998
|
(node = group[i2]) && (next && node.compareDocumentPosition(next) ^ 4 && next.parentNode.insertBefore(node, next), next = node);
|
|
17999
17999
|
return this;
|
|
18000
18000
|
}
|
|
@@ -18003,8 +18003,8 @@ function selection_sort(compare) {
|
|
|
18003
18003
|
function compareNode(a2, b) {
|
|
18004
18004
|
return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b;
|
|
18005
18005
|
}
|
|
18006
|
-
for (var groups = this._groups, m2 = groups.length, sortgroups = new Array(m2),
|
|
18007
|
-
for (var group = groups[
|
|
18006
|
+
for (var groups = this._groups, m2 = groups.length, sortgroups = new Array(m2), j = 0; j < m2; ++j) {
|
|
18007
|
+
for (var group = groups[j], n2 = group.length, sortgroup = sortgroups[j] = new Array(n2), node, i2 = 0; i2 < n2; ++i2)
|
|
18008
18008
|
(node = group[i2]) && (sortgroup[i2] = node);
|
|
18009
18009
|
sortgroup.sort(compareNode);
|
|
18010
18010
|
}
|
|
@@ -18021,8 +18021,8 @@ function selection_nodes() {
|
|
|
18021
18021
|
return Array.from(this);
|
|
18022
18022
|
}
|
|
18023
18023
|
function selection_node() {
|
|
18024
|
-
for (var groups = this._groups,
|
|
18025
|
-
for (var group = groups[
|
|
18024
|
+
for (var groups = this._groups, j = 0, m2 = groups.length; j < m2; ++j)
|
|
18025
|
+
for (var group = groups[j], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
|
|
18026
18026
|
var node = group[i2];
|
|
18027
18027
|
if (node) return node;
|
|
18028
18028
|
}
|
|
@@ -18037,8 +18037,8 @@ function selection_empty() {
|
|
|
18037
18037
|
return !this.node();
|
|
18038
18038
|
}
|
|
18039
18039
|
function selection_each(callback) {
|
|
18040
|
-
for (var groups = this._groups,
|
|
18041
|
-
for (var group = groups[
|
|
18040
|
+
for (var groups = this._groups, j = 0, m2 = groups.length; j < m2; ++j)
|
|
18041
|
+
for (var group = groups[j], i2 = 0, n2 = group.length, node; i2 < n2; ++i2)
|
|
18042
18042
|
(node = group[i2]) && callback.call(node, node.__data__, i2, group);
|
|
18043
18043
|
return this;
|
|
18044
18044
|
}
|
|
@@ -18274,8 +18274,8 @@ function onRemove(typename) {
|
|
|
18274
18274
|
return function() {
|
|
18275
18275
|
var on = this.__on;
|
|
18276
18276
|
if (on) {
|
|
18277
|
-
for (var
|
|
18278
|
-
o = on[
|
|
18277
|
+
for (var j = 0, i2 = -1, m2 = on.length, o; j < m2; ++j)
|
|
18278
|
+
o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name ? this.removeEventListener(o.type, o.listener, o.options) : on[++i2] = o;
|
|
18279
18279
|
++i2 ? on.length = i2 : delete this.__on;
|
|
18280
18280
|
}
|
|
18281
18281
|
};
|
|
@@ -18284,8 +18284,8 @@ function onAdd(typename, value, options) {
|
|
|
18284
18284
|
return function() {
|
|
18285
18285
|
var on = this.__on, o, listener = contextListener(value);
|
|
18286
18286
|
if (on) {
|
|
18287
|
-
for (var
|
|
18288
|
-
if ((o = on[
|
|
18287
|
+
for (var j = 0, m2 = on.length; j < m2; ++j)
|
|
18288
|
+
if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
|
18289
18289
|
this.removeEventListener(o.type, o.listener, o.options), this.addEventListener(o.type, o.listener = listener, o.options = options), o.value = value;
|
|
18290
18290
|
return;
|
|
18291
18291
|
}
|
|
@@ -18298,8 +18298,8 @@ function selection_on(typename, value, options) {
|
|
|
18298
18298
|
if (arguments.length < 2) {
|
|
18299
18299
|
var on = this.node().__on;
|
|
18300
18300
|
if (on) {
|
|
18301
|
-
for (var
|
|
18302
|
-
for (i2 = 0, o = on[
|
|
18301
|
+
for (var j = 0, m2 = on.length, o; j < m2; ++j)
|
|
18302
|
+
for (i2 = 0, o = on[j]; i2 < n2; ++i2)
|
|
18303
18303
|
if ((t2 = typenames[i2]).type === o.type && t2.name === o.name)
|
|
18304
18304
|
return o.value;
|
|
18305
18305
|
}
|
|
@@ -18326,8 +18326,8 @@ function selection_dispatch(type, params) {
|
|
|
18326
18326
|
return this.each((typeof params == "function" ? dispatchFunction : dispatchConstant)(type, params));
|
|
18327
18327
|
}
|
|
18328
18328
|
function* selection_iterator() {
|
|
18329
|
-
for (var groups = this._groups,
|
|
18330
|
-
for (var group = groups[
|
|
18329
|
+
for (var groups = this._groups, j = 0, m2 = groups.length; j < m2; ++j)
|
|
18330
|
+
for (var group = groups[j], i2 = 0, n2 = group.length, node; i2 < n2; ++i2)
|
|
18331
18331
|
(node = group[i2]) && (yield node);
|
|
18332
18332
|
}
|
|
18333
18333
|
var root = [null];
|
|
@@ -18767,11 +18767,11 @@ function Rgb(r2, g, b, opacity) {
|
|
|
18767
18767
|
this.r = +r2, this.g = +g, this.b = +b, this.opacity = +opacity;
|
|
18768
18768
|
}
|
|
18769
18769
|
define(Rgb, rgb, extend$1(Color, {
|
|
18770
|
-
brighter(
|
|
18771
|
-
return
|
|
18770
|
+
brighter(k2) {
|
|
18771
|
+
return k2 = k2 == null ? brighter : Math.pow(brighter, k2), new Rgb(this.r * k2, this.g * k2, this.b * k2, this.opacity);
|
|
18772
18772
|
},
|
|
18773
|
-
darker(
|
|
18774
|
-
return
|
|
18773
|
+
darker(k2) {
|
|
18774
|
+
return k2 = k2 == null ? darker : Math.pow(darker, k2), new Rgb(this.r * k2, this.g * k2, this.b * k2, this.opacity);
|
|
18775
18775
|
},
|
|
18776
18776
|
rgb() {
|
|
18777
18777
|
return this;
|
|
@@ -18826,11 +18826,11 @@ function Hsl(h2, s, l, opacity) {
|
|
|
18826
18826
|
this.h = +h2, this.s = +s, this.l = +l, this.opacity = +opacity;
|
|
18827
18827
|
}
|
|
18828
18828
|
define(Hsl, hsl, extend$1(Color, {
|
|
18829
|
-
brighter(
|
|
18830
|
-
return
|
|
18829
|
+
brighter(k2) {
|
|
18830
|
+
return k2 = k2 == null ? brighter : Math.pow(brighter, k2), new Hsl(this.h, this.s, this.l * k2, this.opacity);
|
|
18831
18831
|
},
|
|
18832
|
-
darker(
|
|
18833
|
-
return
|
|
18832
|
+
darker(k2) {
|
|
18833
|
+
return k2 = k2 == null ? darker : Math.pow(darker, k2), new Hsl(this.h, this.s, this.l * k2, this.opacity);
|
|
18834
18834
|
},
|
|
18835
18835
|
rgb() {
|
|
18836
18836
|
var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
@@ -18923,12 +18923,12 @@ function interpolateNumber(a2, b) {
|
|
|
18923
18923
|
};
|
|
18924
18924
|
}
|
|
18925
18925
|
function object$1(a2, b) {
|
|
18926
|
-
var i2 = {}, c2 = {},
|
|
18926
|
+
var i2 = {}, c2 = {}, k2;
|
|
18927
18927
|
(a2 === null || typeof a2 != "object") && (a2 = {}), (b === null || typeof b != "object") && (b = {});
|
|
18928
|
-
for (
|
|
18929
|
-
|
|
18928
|
+
for (k2 in b)
|
|
18929
|
+
k2 in a2 ? i2[k2] = interpolate$2(a2[k2], b[k2]) : c2[k2] = b[k2];
|
|
18930
18930
|
return function(t2) {
|
|
18931
|
-
for (
|
|
18931
|
+
for (k2 in i2) c2[k2] = i2[k2](t2);
|
|
18932
18932
|
return c2;
|
|
18933
18933
|
};
|
|
18934
18934
|
}
|
|
@@ -18944,11 +18944,11 @@ function one(b) {
|
|
|
18944
18944
|
};
|
|
18945
18945
|
}
|
|
18946
18946
|
function interpolateString(a2, b) {
|
|
18947
|
-
var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s = [],
|
|
18947
|
+
var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s = [], q2 = [];
|
|
18948
18948
|
for (a2 = a2 + "", b = b + ""; (am = reA.exec(a2)) && (bm = reB.exec(b)); )
|
|
18949
|
-
(bs = bm.index) > bi && (bs = b.slice(bi, bs), s[i2] ? s[i2] += bs : s[++i2] = bs), (am = am[0]) === (bm = bm[0]) ? s[i2] ? s[i2] += bm : s[++i2] = bm : (s[++i2] = null,
|
|
18950
|
-
return bi < b.length && (bs = b.slice(bi), s[i2] ? s[i2] += bs : s[++i2] = bs), s.length < 2 ?
|
|
18951
|
-
for (var i3 = 0, o; i3 < b; ++i3) s[(o =
|
|
18949
|
+
(bs = bm.index) > bi && (bs = b.slice(bi, bs), s[i2] ? s[i2] += bs : s[++i2] = bs), (am = am[0]) === (bm = bm[0]) ? s[i2] ? s[i2] += bm : s[++i2] = bm : (s[++i2] = null, q2.push({ i: i2, x: interpolateNumber(am, bm) })), bi = reB.lastIndex;
|
|
18950
|
+
return bi < b.length && (bs = b.slice(bi), s[i2] ? s[i2] += bs : s[++i2] = bs), s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) {
|
|
18951
|
+
for (var i3 = 0, o; i3 < b; ++i3) s[(o = q2[i3]).i] = o.x(t2);
|
|
18952
18952
|
return s.join("");
|
|
18953
18953
|
});
|
|
18954
18954
|
}
|
|
@@ -18987,28 +18987,28 @@ function interpolateTransform(parse2, pxComma, pxParen, degParen) {
|
|
|
18987
18987
|
function pop(s) {
|
|
18988
18988
|
return s.length ? s.pop() + " " : "";
|
|
18989
18989
|
}
|
|
18990
|
-
function translate(xa, ya, xb, yb, s,
|
|
18990
|
+
function translate(xa, ya, xb, yb, s, q2) {
|
|
18991
18991
|
if (xa !== xb || ya !== yb) {
|
|
18992
18992
|
var i2 = s.push("translate(", null, pxComma, null, pxParen);
|
|
18993
|
-
|
|
18993
|
+
q2.push({ i: i2 - 4, x: interpolateNumber(xa, xb) }, { i: i2 - 2, x: interpolateNumber(ya, yb) });
|
|
18994
18994
|
} else (xb || yb) && s.push("translate(" + xb + pxComma + yb + pxParen);
|
|
18995
18995
|
}
|
|
18996
|
-
function rotate2(a2, b, s,
|
|
18997
|
-
a2 !== b ? (a2 - b > 180 ? b += 360 : b - a2 > 180 && (a2 += 360),
|
|
18996
|
+
function rotate2(a2, b, s, q2) {
|
|
18997
|
+
a2 !== b ? (a2 - b > 180 ? b += 360 : b - a2 > 180 && (a2 += 360), q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: interpolateNumber(a2, b) })) : b && s.push(pop(s) + "rotate(" + b + degParen);
|
|
18998
18998
|
}
|
|
18999
|
-
function skewX(a2, b, s,
|
|
19000
|
-
a2 !== b ?
|
|
18999
|
+
function skewX(a2, b, s, q2) {
|
|
19000
|
+
a2 !== b ? q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: interpolateNumber(a2, b) }) : b && s.push(pop(s) + "skewX(" + b + degParen);
|
|
19001
19001
|
}
|
|
19002
|
-
function scale2(xa, ya, xb, yb, s,
|
|
19002
|
+
function scale2(xa, ya, xb, yb, s, q2) {
|
|
19003
19003
|
if (xa !== xb || ya !== yb) {
|
|
19004
19004
|
var i2 = s.push(pop(s) + "scale(", null, ",", null, ")");
|
|
19005
|
-
|
|
19005
|
+
q2.push({ i: i2 - 4, x: interpolateNumber(xa, xb) }, { i: i2 - 2, x: interpolateNumber(ya, yb) });
|
|
19006
19006
|
} else (xb !== 1 || yb !== 1) && s.push(pop(s) + "scale(" + xb + "," + yb + ")");
|
|
19007
19007
|
}
|
|
19008
19008
|
return function(a2, b) {
|
|
19009
|
-
var s = [],
|
|
19010
|
-
return a2 = parse2(a2), b = parse2(b), translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s,
|
|
19011
|
-
for (var i2 = -1, n2 =
|
|
19009
|
+
var s = [], q2 = [];
|
|
19010
|
+
return a2 = parse2(a2), b = parse2(b), translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2), rotate2(a2.rotate, b.rotate, s, q2), skewX(a2.skewX, b.skewX, s, q2), scale2(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2), a2 = b = null, function(t2) {
|
|
19011
|
+
for (var i2 = -1, n2 = q2.length, o; ++i2 < n2; ) s[(o = q2[i2]).i] = o.x(t2);
|
|
19012
19012
|
return s.join("");
|
|
19013
19013
|
};
|
|
19014
19014
|
};
|
|
@@ -19157,7 +19157,7 @@ function create(node, id2, self2) {
|
|
|
19157
19157
|
self2.state = SCHEDULED, self2.timer.restart(start2, self2.delay, self2.time), self2.delay <= elapsed && start2(elapsed - self2.delay);
|
|
19158
19158
|
}
|
|
19159
19159
|
function start2(elapsed) {
|
|
19160
|
-
var i2,
|
|
19160
|
+
var i2, j, n2, o;
|
|
19161
19161
|
if (self2.state !== SCHEDULED) return stop();
|
|
19162
19162
|
for (i2 in schedules)
|
|
19163
19163
|
if (o = schedules[i2], o.name === self2.name) {
|
|
@@ -19167,9 +19167,9 @@ function create(node, id2, self2) {
|
|
|
19167
19167
|
if (timeout(function() {
|
|
19168
19168
|
self2.state === STARTED && (self2.state = RUNNING, self2.timer.restart(tick, self2.delay, self2.time), tick(elapsed));
|
|
19169
19169
|
}), self2.state = STARTING, self2.on.call("start", node, node.__data__, self2.index, self2.group), self2.state === STARTING) {
|
|
19170
|
-
for (self2.state = STARTED, tween = new Array(n2 = self2.tween.length), i2 = 0,
|
|
19171
|
-
(o = self2.tween[i2].value.call(node, node.__data__, self2.index, self2.group)) && (tween[++
|
|
19172
|
-
tween.length =
|
|
19170
|
+
for (self2.state = STARTED, tween = new Array(n2 = self2.tween.length), i2 = 0, j = -1; i2 < n2; ++i2)
|
|
19171
|
+
(o = self2.tween[i2].value.call(node, node.__data__, self2.index, self2.group)) && (tween[++j] = o);
|
|
19172
|
+
tween.length = j + 1;
|
|
19173
19173
|
}
|
|
19174
19174
|
}
|
|
19175
19175
|
function tick(elapsed) {
|
|
@@ -19384,18 +19384,18 @@ function transition_easeVarying(value) {
|
|
|
19384
19384
|
}
|
|
19385
19385
|
function transition_filter(match2) {
|
|
19386
19386
|
typeof match2 != "function" && (match2 = matcher(match2));
|
|
19387
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2),
|
|
19388
|
-
for (var group = groups[
|
|
19387
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j = 0; j < m2; ++j)
|
|
19388
|
+
for (var group = groups[j], n2 = group.length, subgroup = subgroups[j] = [], node, i2 = 0; i2 < n2; ++i2)
|
|
19389
19389
|
(node = group[i2]) && match2.call(node, node.__data__, i2, group) && subgroup.push(node);
|
|
19390
19390
|
return new Transition(subgroups, this._parents, this._name, this._id);
|
|
19391
19391
|
}
|
|
19392
19392
|
function transition_merge(transition) {
|
|
19393
19393
|
if (transition._id !== this._id) throw new Error();
|
|
19394
|
-
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m2 = Math.min(m0, m1), merges = new Array(m0),
|
|
19395
|
-
for (var group0 = groups0[
|
|
19394
|
+
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m2 = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m2; ++j)
|
|
19395
|
+
for (var group0 = groups0[j], group1 = groups1[j], n2 = group0.length, merge2 = merges[j] = new Array(n2), node, i2 = 0; i2 < n2; ++i2)
|
|
19396
19396
|
(node = group0[i2] || group1[i2]) && (merge2[i2] = node);
|
|
19397
|
-
for (;
|
|
19398
|
-
merges[
|
|
19397
|
+
for (; j < m0; ++j)
|
|
19398
|
+
merges[j] = groups0[j];
|
|
19399
19399
|
return new Transition(merges, this._parents, this._name, this._id);
|
|
19400
19400
|
}
|
|
19401
19401
|
function start(name) {
|
|
@@ -19428,19 +19428,19 @@ function transition_remove() {
|
|
|
19428
19428
|
function transition_select(select2) {
|
|
19429
19429
|
var name = this._name, id2 = this._id;
|
|
19430
19430
|
typeof select2 != "function" && (select2 = selector$4(select2));
|
|
19431
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2),
|
|
19432
|
-
for (var group = groups[
|
|
19431
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j = 0; j < m2; ++j)
|
|
19432
|
+
for (var group = groups[j], n2 = group.length, subgroup = subgroups[j] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2)
|
|
19433
19433
|
(node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group)) && ("__data__" in node && (subnode.__data__ = node.__data__), subgroup[i2] = subnode, schedule(subgroup[i2], name, id2, i2, subgroup, get$1(node, id2)));
|
|
19434
19434
|
return new Transition(subgroups, this._parents, name, id2);
|
|
19435
19435
|
}
|
|
19436
19436
|
function transition_selectAll(select2) {
|
|
19437
19437
|
var name = this._name, id2 = this._id;
|
|
19438
19438
|
typeof select2 != "function" && (select2 = selectorAll(select2));
|
|
19439
|
-
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [],
|
|
19440
|
-
for (var group = groups[
|
|
19439
|
+
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j = 0; j < m2; ++j)
|
|
19440
|
+
for (var group = groups[j], n2 = group.length, node, i2 = 0; i2 < n2; ++i2)
|
|
19441
19441
|
if (node = group[i2]) {
|
|
19442
|
-
for (var children2 = select2.call(node, node.__data__, i2, group), child, inherit2 = get$1(node, id2),
|
|
19443
|
-
(child = children2[
|
|
19442
|
+
for (var children2 = select2.call(node, node.__data__, i2, group), child, inherit2 = get$1(node, id2), k2 = 0, l = children2.length; k2 < l; ++k2)
|
|
19443
|
+
(child = children2[k2]) && schedule(child, name, id2, k2, children2, inherit2);
|
|
19444
19444
|
subgroups.push(children2), parents.push(node);
|
|
19445
19445
|
}
|
|
19446
19446
|
return new Transition(subgroups, parents, name, id2);
|
|
@@ -19541,8 +19541,8 @@ function transition_textTween(value) {
|
|
|
19541
19541
|
return this.tween(key, textTween(value));
|
|
19542
19542
|
}
|
|
19543
19543
|
function transition_transition() {
|
|
19544
|
-
for (var name = this._name, id0 = this._id, id1 = newId(), groups = this._groups, m2 = groups.length,
|
|
19545
|
-
for (var group = groups[
|
|
19544
|
+
for (var name = this._name, id0 = this._id, id1 = newId(), groups = this._groups, m2 = groups.length, j = 0; j < m2; ++j)
|
|
19545
|
+
for (var group = groups[j], n2 = group.length, node, i2 = 0; i2 < n2; ++i2)
|
|
19546
19546
|
if (node = group[i2]) {
|
|
19547
19547
|
var inherit2 = get$1(node, id0);
|
|
19548
19548
|
schedule(node, name, id1, i2, group, {
|
|
@@ -19625,8 +19625,8 @@ function inherit(node, id2) {
|
|
|
19625
19625
|
function selection_transition(name) {
|
|
19626
19626
|
var id2, timing;
|
|
19627
19627
|
name instanceof Transition ? (id2 = name._id, name = name._name) : (id2 = newId(), (timing = defaultTiming).time = now$1(), name = name == null ? null : name + "");
|
|
19628
|
-
for (var groups = this._groups, m2 = groups.length,
|
|
19629
|
-
for (var group = groups[
|
|
19628
|
+
for (var groups = this._groups, m2 = groups.length, j = 0; j < m2; ++j)
|
|
19629
|
+
for (var group = groups[j], n2 = group.length, node, i2 = 0; i2 < n2; ++i2)
|
|
19630
19630
|
(node = group[i2]) && schedule(node, name, id2, i2, group, timing || inherit(node, id2));
|
|
19631
19631
|
return new Transition(groups, this._parents, name, id2);
|
|
19632
19632
|
}
|
|
@@ -19647,13 +19647,13 @@ function ZoomEvent(type, {
|
|
|
19647
19647
|
_: { value: dispatch2 }
|
|
19648
19648
|
});
|
|
19649
19649
|
}
|
|
19650
|
-
function Transform(
|
|
19651
|
-
this.k =
|
|
19650
|
+
function Transform(k2, x2, y2) {
|
|
19651
|
+
this.k = k2, this.x = x2, this.y = y2;
|
|
19652
19652
|
}
|
|
19653
19653
|
Transform.prototype = {
|
|
19654
19654
|
constructor: Transform,
|
|
19655
|
-
scale: function(
|
|
19656
|
-
return
|
|
19655
|
+
scale: function(k2) {
|
|
19656
|
+
return k2 === 1 ? this : new Transform(this.k * k2, this.x, this.y);
|
|
19657
19657
|
},
|
|
19658
19658
|
translate: function(x2, y2) {
|
|
19659
19659
|
return x2 === 0 & y2 === 0 ? this : new Transform(this.k, this.x + this.k * x2, this.y + this.k * y2);
|
|
@@ -19731,14 +19731,14 @@ function zoom() {
|
|
|
19731
19731
|
selection2.property("__zoom", defaultTransform), collection2 !== selection2 ? schedule2(collection2, transform2, point2, event) : selection2.interrupt().each(function() {
|
|
19732
19732
|
gesture(this, arguments).event(event).start().zoom(null, typeof transform2 == "function" ? transform2.apply(this, arguments) : transform2).end();
|
|
19733
19733
|
});
|
|
19734
|
-
}, zoom2.scaleBy = function(selection2,
|
|
19734
|
+
}, zoom2.scaleBy = function(selection2, k2, p, event) {
|
|
19735
19735
|
zoom2.scaleTo(selection2, function() {
|
|
19736
|
-
var k0 = this.__zoom.k, k1 = typeof
|
|
19736
|
+
var k0 = this.__zoom.k, k1 = typeof k2 == "function" ? k2.apply(this, arguments) : k2;
|
|
19737
19737
|
return k0 * k1;
|
|
19738
19738
|
}, p, event);
|
|
19739
|
-
}, zoom2.scaleTo = function(selection2,
|
|
19739
|
+
}, zoom2.scaleTo = function(selection2, k2, p, event) {
|
|
19740
19740
|
zoom2.transform(selection2, function() {
|
|
19741
|
-
var e2 = extent.apply(this, arguments), t0 = this.__zoom, p0 = p == null ? centroid(e2) : typeof p == "function" ? p.apply(this, arguments) : p, p1 = t0.invert(p0), k1 = typeof
|
|
19741
|
+
var e2 = extent.apply(this, arguments), t0 = this.__zoom, p0 = p == null ? centroid(e2) : typeof p == "function" ? p.apply(this, arguments) : p, p1 = t0.invert(p0), k1 = typeof k2 == "function" ? k2.apply(this, arguments) : k2;
|
|
19742
19742
|
return constrain(translate(scale2(t0, k1), p0, p1), e2, translateExtent);
|
|
19743
19743
|
}, p, event);
|
|
19744
19744
|
}, zoom2.translateBy = function(selection2, x2, y2, event) {
|
|
@@ -19757,8 +19757,8 @@ function zoom() {
|
|
|
19757
19757
|
), e2, translateExtent);
|
|
19758
19758
|
}, p, event);
|
|
19759
19759
|
};
|
|
19760
|
-
function scale2(transform2,
|
|
19761
|
-
return
|
|
19760
|
+
function scale2(transform2, k2) {
|
|
19761
|
+
return k2 = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k2)), k2 === transform2.k ? transform2 : new Transform(k2, transform2.x, transform2.y);
|
|
19762
19762
|
}
|
|
19763
19763
|
function translate(transform2, p0, p1) {
|
|
19764
19764
|
var x2 = p0[0] - p1[0] * transform2.k, y2 = p0[1] - p1[1] * transform2.k;
|
|
@@ -19777,8 +19777,8 @@ function zoom() {
|
|
|
19777
19777
|
return function(t2) {
|
|
19778
19778
|
if (t2 === 1) t2 = b;
|
|
19779
19779
|
else {
|
|
19780
|
-
var l = i2(t2),
|
|
19781
|
-
t2 = new Transform(
|
|
19780
|
+
var l = i2(t2), k2 = w / l[2];
|
|
19781
|
+
t2 = new Transform(k2, p[0] - l[0] * k2, p[1] - l[1] * k2);
|
|
19782
19782
|
}
|
|
19783
19783
|
g.zoom(null, t2);
|
|
19784
19784
|
};
|
|
@@ -19820,14 +19820,14 @@ function zoom() {
|
|
|
19820
19820
|
};
|
|
19821
19821
|
function wheeled(event, ...args) {
|
|
19822
19822
|
if (!filter2.apply(this, arguments)) return;
|
|
19823
|
-
var g = gesture(this, args).event(event), t2 = this.__zoom,
|
|
19823
|
+
var g = gesture(this, args).event(event), t2 = this.__zoom, k2 = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t2.k * Math.pow(2, wheelDelta2.apply(this, arguments)))), p = pointer(event);
|
|
19824
19824
|
if (g.wheel)
|
|
19825
19825
|
(g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) && (g.mouse[1] = t2.invert(g.mouse[0] = p)), clearTimeout(g.wheel);
|
|
19826
19826
|
else {
|
|
19827
|
-
if (t2.k ===
|
|
19827
|
+
if (t2.k === k2) return;
|
|
19828
19828
|
g.mouse = [p, t2.invert(p)], interrupt(this), g.start();
|
|
19829
19829
|
}
|
|
19830
|
-
noevent(event), g.wheel = setTimeout(wheelidled, wheelDelay), g.zoom("mouse", constrain(translate(scale2(t2,
|
|
19830
|
+
noevent(event), g.wheel = setTimeout(wheelidled, wheelDelay), g.zoom("mouse", constrain(translate(scale2(t2, k2), g.mouse[0], g.mouse[1]), g.extent, translateExtent));
|
|
19831
19831
|
function wheelidled() {
|
|
19832
19832
|
g.wheel = null, g.end();
|
|
19833
19833
|
}
|
|
@@ -21915,7 +21915,7 @@ function useKeyPress(keyCode = null, options = { target: defaultDoc, actInsideIn
|
|
|
21915
21915
|
}, [keyCode, setKeyPressed]), keyPressed;
|
|
21916
21916
|
}
|
|
21917
21917
|
function isMatchingKey(keyCodes, pressedKeys, isUp) {
|
|
21918
|
-
return keyCodes.filter((keys2) => isUp || keys2.length === pressedKeys.size).some((keys2) => keys2.every((
|
|
21918
|
+
return keyCodes.filter((keys2) => isUp || keys2.length === pressedKeys.size).some((keys2) => keys2.every((k2) => pressedKeys.has(k2)));
|
|
21919
21919
|
}
|
|
21920
21920
|
function useKeyOrCode(eventCode, keysToWatch) {
|
|
21921
21921
|
return keysToWatch.includes(eventCode) ? "code" : "key";
|
|
@@ -24459,17 +24459,17 @@ const pi$2 = Math.PI, tau$1 = 2 * pi$2, quart = pi$2 / 2, epsilon$2 = 1e-6, nMax
|
|
|
24459
24459
|
const dpoints = [];
|
|
24460
24460
|
for (let p = points, d = p.length, c2 = d - 1; d > 1; d--, c2--) {
|
|
24461
24461
|
const list2 = [];
|
|
24462
|
-
for (let
|
|
24462
|
+
for (let j = 0, dpt; j < c2; j++)
|
|
24463
24463
|
dpt = {
|
|
24464
|
-
x: c2 * (p[
|
|
24465
|
-
y: c2 * (p[
|
|
24466
|
-
}, _3d && (dpt.z = c2 * (p[
|
|
24464
|
+
x: c2 * (p[j + 1].x - p[j].x),
|
|
24465
|
+
y: c2 * (p[j + 1].y - p[j].y)
|
|
24466
|
+
}, _3d && (dpt.z = c2 * (p[j + 1].z - p[j].z)), list2.push(dpt);
|
|
24467
24467
|
dpoints.push(list2), p = list2;
|
|
24468
24468
|
}
|
|
24469
24469
|
return dpoints;
|
|
24470
24470
|
},
|
|
24471
|
-
between: function(v, m2,
|
|
24472
|
-
return m2 <= v && v <=
|
|
24471
|
+
between: function(v, m2, M) {
|
|
24472
|
+
return m2 <= v && v <= M || utils.approximately(v, m2) || utils.approximately(v, M);
|
|
24473
24473
|
},
|
|
24474
24474
|
approximately: function(a2, b, precision) {
|
|
24475
24475
|
return abs$1(a2 - b) <= (precision || epsilon$2);
|
|
@@ -24641,17 +24641,17 @@ const pi$2 = Math.PI, tau$1 = 2 * pi$2, quart = pi$2 / 2, epsilon$2 = 1e-6, nMax
|
|
|
24641
24641
|
return [(q3 - b) / a22, (-b - q3) / a22].filter(reduce2);
|
|
24642
24642
|
}
|
|
24643
24643
|
a2 /= d, b /= d, c2 /= d;
|
|
24644
|
-
const p = (3 * b - a2 * a2) / 3, p3 = p / 3,
|
|
24644
|
+
const p = (3 * b - a2 * a2) / 3, p3 = p / 3, q2 = (2 * a2 * a2 * a2 - 9 * a2 * b + 27 * c2) / 27, q22 = q2 / 2, discriminant = q22 * q22 + p3 * p3 * p3;
|
|
24645
24645
|
let u1, v1, x1, x2, x3;
|
|
24646
24646
|
if (discriminant < 0) {
|
|
24647
|
-
const mp3 = -p / 3, mp33 = mp3 * mp3 * mp3, r2 = sqrt$1(mp33), t2 = -
|
|
24647
|
+
const mp3 = -p / 3, mp33 = mp3 * mp3 * mp3, r2 = sqrt$1(mp33), t2 = -q2 / (2 * r2), cosphi = t2 < -1 ? -1 : t2 > 1 ? 1 : t2, phi = acos$1(cosphi), crtr = crt(r2), t1 = 2 * crtr;
|
|
24648
24648
|
return x1 = t1 * cos$1(phi / 3) - a2 / 3, x2 = t1 * cos$1((phi + tau$1) / 3) - a2 / 3, x3 = t1 * cos$1((phi + 2 * tau$1) / 3) - a2 / 3, [x1, x2, x3].filter(reduce2);
|
|
24649
24649
|
} else {
|
|
24650
24650
|
if (discriminant === 0)
|
|
24651
|
-
return u1 =
|
|
24651
|
+
return u1 = q22 < 0 ? crt(-q22) : -crt(q22), x1 = 2 * u1 - a2 / 3, x2 = -u1 - a2 / 3, [x1, x2].filter(reduce2);
|
|
24652
24652
|
{
|
|
24653
24653
|
const sd = sqrt$1(discriminant);
|
|
24654
|
-
return u1 = crt(-
|
|
24654
|
+
return u1 = crt(-q22 + sd), v1 = crt(q22 + sd), [u1 - v1 - a2 / 3].filter(reduce2);
|
|
24655
24655
|
}
|
|
24656
24656
|
}
|
|
24657
24657
|
},
|
|
@@ -24672,17 +24672,17 @@ const pi$2 = Math.PI, tau$1 = 2 * pi$2, quart = pi$2 / 2, epsilon$2 = 1e-6, nMax
|
|
|
24672
24672
|
return [];
|
|
24673
24673
|
},
|
|
24674
24674
|
curvature: function(t2, d1, d2, _3d, kOnly) {
|
|
24675
|
-
let num, dnm, adk, dk,
|
|
24675
|
+
let num, dnm, adk, dk, k2 = 0, r2 = 0;
|
|
24676
24676
|
const d = utils.compute(t2, d1), dd = utils.compute(t2, d2), qdsum = d.x * d.x + d.y * d.y;
|
|
24677
24677
|
if (_3d ? (num = sqrt$1(
|
|
24678
24678
|
pow(d.y * dd.z - dd.y * d.z, 2) + pow(d.z * dd.x - dd.z * d.x, 2) + pow(d.x * dd.y - dd.x * d.y, 2)
|
|
24679
24679
|
), dnm = pow(qdsum + d.z * d.z, 3 / 2)) : (num = d.x * dd.y - d.y * dd.x, dnm = pow(qdsum, 3 / 2)), num === 0 || dnm === 0)
|
|
24680
24680
|
return { k: 0, r: 0 };
|
|
24681
|
-
if (
|
|
24681
|
+
if (k2 = num / dnm, r2 = dnm / num, !kOnly) {
|
|
24682
24682
|
const pk = utils.curvature(t2 - 1e-3, d1, d2, _3d, !0).k, nk = utils.curvature(t2 + 1e-3, d1, d2, _3d, !0).k;
|
|
24683
|
-
dk = (nk -
|
|
24683
|
+
dk = (nk - k2 + (k2 - pk)) / 2, adk = (abs$1(nk - k2) + abs$1(k2 - pk)) / 2;
|
|
24684
24684
|
}
|
|
24685
|
-
return { k, r: r2, dk, adk };
|
|
24685
|
+
return { k: k2, r: r2, dk, adk };
|
|
24686
24686
|
},
|
|
24687
24687
|
inflections: function(points) {
|
|
24688
24688
|
if (points.length < 4) return [];
|
|
@@ -24831,11 +24831,11 @@ class Bezier {
|
|
|
24831
24831
|
const abc = Bezier.getABC(2, p1, p2, p3, t2);
|
|
24832
24832
|
return new Bezier(p1, abc.A, p3);
|
|
24833
24833
|
}
|
|
24834
|
-
static cubicFromPoints(S,
|
|
24834
|
+
static cubicFromPoints(S, B2, E, t2, d1) {
|
|
24835
24835
|
typeof t2 > "u" && (t2 = 0.5);
|
|
24836
|
-
const abc = Bezier.getABC(3, S,
|
|
24837
|
-
typeof d1 > "u" && (d1 = utils.dist(
|
|
24838
|
-
const d2 = d1 * (1 - t2) / t2, selen = utils.dist(S, E), lx = (E.x - S.x) / selen, ly = (E.y - S.y) / selen, bx1 = d1 * lx, by1 = d1 * ly, bx2 = d2 * lx, by2 = d2 * ly, e1 = { x:
|
|
24836
|
+
const abc = Bezier.getABC(3, S, B2, E, t2);
|
|
24837
|
+
typeof d1 > "u" && (d1 = utils.dist(B2, abc.C));
|
|
24838
|
+
const d2 = d1 * (1 - t2) / t2, selen = utils.dist(S, E), lx = (E.x - S.x) / selen, ly = (E.y - S.y) / selen, bx1 = d1 * lx, by1 = d1 * ly, bx2 = d2 * lx, by2 = d2 * ly, e1 = { x: B2.x - bx1, y: B2.y - by1 }, e2 = { x: B2.x + bx2, y: B2.y + by2 }, A2 = abc.A, v1 = { x: A2.x + (e1.x - A2.x) / (1 - t2), y: A2.y + (e1.y - A2.y) / (1 - t2) }, v2 = { x: A2.x + (e2.x - A2.x) / t2, y: A2.y + (e2.y - A2.y) / t2 }, nc1 = { x: S.x + (v1.x - S.x) / t2, y: S.y + (v1.y - S.y) / t2 }, nc2 = {
|
|
24839
24839
|
x: E.x + (v2.x - E.x) / (1 - t2),
|
|
24840
24840
|
y: E.y + (v2.y - E.y) / (1 - t2)
|
|
24841
24841
|
};
|
|
@@ -24887,20 +24887,20 @@ class Bezier {
|
|
|
24887
24887
|
length() {
|
|
24888
24888
|
return utils.length(this.derivative.bind(this));
|
|
24889
24889
|
}
|
|
24890
|
-
static getABC(order = 2, S,
|
|
24890
|
+
static getABC(order = 2, S, B2, E, t2 = 0.5) {
|
|
24891
24891
|
const u = utils.projectionratio(t2, order), um = 1 - u, C2 = {
|
|
24892
24892
|
x: u * S.x + um * E.x,
|
|
24893
24893
|
y: u * S.y + um * E.y
|
|
24894
24894
|
}, s = utils.abcratio(t2, order);
|
|
24895
24895
|
return { A: {
|
|
24896
|
-
x:
|
|
24897
|
-
y:
|
|
24898
|
-
}, B, C: C2, S, E };
|
|
24896
|
+
x: B2.x + (B2.x - C2.x) / s,
|
|
24897
|
+
y: B2.y + (B2.y - C2.y) / s
|
|
24898
|
+
}, B: B2, C: C2, S, E };
|
|
24899
24899
|
}
|
|
24900
|
-
getABC(t2,
|
|
24901
|
-
|
|
24900
|
+
getABC(t2, B2) {
|
|
24901
|
+
B2 = B2 || this.get(t2);
|
|
24902
24902
|
let S = this.points[0], E = this.points[this.order];
|
|
24903
|
-
return Bezier.getABC(this.order, S,
|
|
24903
|
+
return Bezier.getABC(this.order, S, B2, E, t2);
|
|
24904
24904
|
}
|
|
24905
24905
|
getLUT(steps) {
|
|
24906
24906
|
if (this.verify(), steps = steps || 100, this._lut.length === steps + 1)
|
|
@@ -24935,13 +24935,13 @@ class Bezier {
|
|
|
24935
24935
|
return this.ratios ? utils.computeWithRatios(t2, this.points, this.ratios, this._3d) : utils.compute(t2, this.points, this._3d, this.ratios);
|
|
24936
24936
|
}
|
|
24937
24937
|
raise() {
|
|
24938
|
-
const p = this.points, np = [p[0]],
|
|
24939
|
-
for (let i2 = 1, pi2, pim; i2 <
|
|
24938
|
+
const p = this.points, np = [p[0]], k2 = p.length;
|
|
24939
|
+
for (let i2 = 1, pi2, pim; i2 < k2; i2++)
|
|
24940
24940
|
pi2 = p[i2], pim = p[i2 - 1], np[i2] = {
|
|
24941
|
-
x: (
|
|
24942
|
-
y: (
|
|
24941
|
+
x: (k2 - i2) / k2 * pi2.x + i2 / k2 * pim.x,
|
|
24942
|
+
y: (k2 - i2) / k2 * pi2.y + i2 / k2 * pim.y
|
|
24943
24943
|
};
|
|
24944
|
-
return np[
|
|
24944
|
+
return np[k2] = p[k2 - 1], new Bezier(np);
|
|
24945
24945
|
}
|
|
24946
24946
|
derivative(t2) {
|
|
24947
24947
|
return utils.compute(t2, this.dpoints[0], this._3d);
|
|
@@ -24963,8 +24963,8 @@ class Bezier {
|
|
|
24963
24963
|
return this._3d ? this.__normal3(t2) : this.__normal2(t2);
|
|
24964
24964
|
}
|
|
24965
24965
|
__normal2(t2) {
|
|
24966
|
-
const d = this.derivative(t2),
|
|
24967
|
-
return { t: t2, x: -d.y /
|
|
24966
|
+
const d = this.derivative(t2), q2 = sqrt(d.x * d.x + d.y * d.y);
|
|
24967
|
+
return { t: t2, x: -d.y / q2, y: d.x / q2 };
|
|
24968
24968
|
}
|
|
24969
24969
|
__normal3(t2) {
|
|
24970
24970
|
const r1 = this.derivative(t2), r2 = this.derivative(t2 + 0.01), q1 = sqrt(r1.x * r1.x + r1.y * r1.y + r1.z * r1.z), q2 = sqrt(r2.x * r2.x + r2.y * r2.y + r2.z * r2.z);
|
|
@@ -24975,7 +24975,7 @@ class Bezier {
|
|
|
24975
24975
|
z: r2.x * r1.y - r2.y * r1.x
|
|
24976
24976
|
}, m2 = sqrt(c2.x * c2.x + c2.y * c2.y + c2.z * c2.z);
|
|
24977
24977
|
c2.x /= m2, c2.y /= m2, c2.z /= m2;
|
|
24978
|
-
const
|
|
24978
|
+
const R = [
|
|
24979
24979
|
c2.x * c2.x,
|
|
24980
24980
|
c2.x * c2.y - c2.z,
|
|
24981
24981
|
c2.x * c2.z + c2.y,
|
|
@@ -24988,30 +24988,30 @@ class Bezier {
|
|
|
24988
24988
|
];
|
|
24989
24989
|
return {
|
|
24990
24990
|
t: t2,
|
|
24991
|
-
x:
|
|
24992
|
-
y:
|
|
24993
|
-
z:
|
|
24991
|
+
x: R[0] * r1.x + R[1] * r1.y + R[2] * r1.z,
|
|
24992
|
+
y: R[3] * r1.x + R[4] * r1.y + R[5] * r1.z,
|
|
24993
|
+
z: R[6] * r1.x + R[7] * r1.y + R[8] * r1.z
|
|
24994
24994
|
};
|
|
24995
24995
|
}
|
|
24996
24996
|
hull(t2) {
|
|
24997
|
-
let p = this.points, _p = [],
|
|
24998
|
-
for (
|
|
24997
|
+
let p = this.points, _p = [], q2 = [], idx = 0;
|
|
24998
|
+
for (q2[idx++] = p[0], q2[idx++] = p[1], q2[idx++] = p[2], this.order === 3 && (q2[idx++] = p[3]); p.length > 1; ) {
|
|
24999
24999
|
_p = [];
|
|
25000
25000
|
for (let i2 = 0, pt2, l = p.length - 1; i2 < l; i2++)
|
|
25001
|
-
pt2 = utils.lerp(t2, p[i2], p[i2 + 1]),
|
|
25001
|
+
pt2 = utils.lerp(t2, p[i2], p[i2 + 1]), q2[idx++] = pt2, _p.push(pt2);
|
|
25002
25002
|
p = _p;
|
|
25003
25003
|
}
|
|
25004
|
-
return
|
|
25004
|
+
return q2;
|
|
25005
25005
|
}
|
|
25006
25006
|
split(t1, t2) {
|
|
25007
25007
|
if (t1 === 0 && t2)
|
|
25008
25008
|
return this.split(t2).left;
|
|
25009
25009
|
if (t2 === 1)
|
|
25010
25010
|
return this.split(t1).right;
|
|
25011
|
-
const
|
|
25012
|
-
left: this.order === 2 ? new Bezier([
|
|
25013
|
-
right: this.order === 2 ? new Bezier([
|
|
25014
|
-
span:
|
|
25011
|
+
const q2 = this.hull(t1), result = {
|
|
25012
|
+
left: this.order === 2 ? new Bezier([q2[0], q2[3], q2[5]]) : new Bezier([q2[0], q2[4], q2[7], q2[9]]),
|
|
25013
|
+
right: this.order === 2 ? new Bezier([q2[5], q2[4], q2[2]]) : new Bezier([q2[9], q2[8], q2[6], q2[3]]),
|
|
25014
|
+
span: q2
|
|
25015
25015
|
};
|
|
25016
25016
|
return result.left._t1 = utils.map(0, 0, 1, this._t1, this._t2), result.left._t2 = utils.map(t1, 0, 1, this._t1, this._t2), result.right._t1 = utils.map(t1, 0, 1, this._t1, this._t2), result.right._t2 = utils.map(1, 0, 1, this._t1, this._t2), t2 ? (t2 = utils.map(t2, t1, 1, 0, 1), result.right.split(t2).left) : result;
|
|
25017
25017
|
}
|
|
@@ -25147,7 +25147,7 @@ class Bezier {
|
|
|
25147
25147
|
d3 === void 0 && (d3 = d1, d4 = d2), s = { x: start2.x + n2.x * d1, y: start2.y + n2.y * d1 }, e2 = { x: end.x + n2.x * d3, y: end.y + n2.y * d3 }, mid = { x: (s.x + e2.x) / 2, y: (s.y + e2.y) / 2 };
|
|
25148
25148
|
const fline = [s, mid, e2];
|
|
25149
25149
|
s = { x: start2.x - n2.x * d2, y: start2.y - n2.y * d2 }, e2 = { x: end.x - n2.x * d4, y: end.y - n2.y * d4 }, mid = { x: (s.x + e2.x) / 2, y: (s.y + e2.y) / 2 };
|
|
25150
|
-
const bline = [e2, mid, s], ls2 = utils.makeline(bline[2], fline[0]),
|
|
25150
|
+
const bline = [e2, mid, s], ls2 = utils.makeline(bline[2], fline[0]), le3 = utils.makeline(fline[2], bline[0]), segments2 = [ls2, new Bezier(fline), le3, new Bezier(bline)];
|
|
25151
25151
|
return new PolyBezier(segments2);
|
|
25152
25152
|
}
|
|
25153
25153
|
const reduced = this.reduce(), len = reduced.length, fcurves = [];
|
|
@@ -25169,7 +25169,7 @@ class Bezier {
|
|
|
25169
25169
|
}), bcurves = bcurves.map(function(s) {
|
|
25170
25170
|
return p = s.points, p[3] ? s.points = [p[3], p[2], p[1], p[0]] : s.points = [p[2], p[1], p[0]], s;
|
|
25171
25171
|
}).reverse();
|
|
25172
|
-
const fs = fcurves[0].points[0],
|
|
25172
|
+
const fs = fcurves[0].points[0], fe2 = fcurves[len - 1].points[fcurves[len - 1].points.length - 1], bs = bcurves[len - 1].points[bcurves[len - 1].points.length - 1], be2 = bcurves[0].points[0], ls = utils.makeline(bs, fs), le2 = utils.makeline(fe2, be2), segments = [ls].concat(fcurves).concat([le2]).concat(bcurves);
|
|
25173
25173
|
return new PolyBezier(segments);
|
|
25174
25174
|
}
|
|
25175
25175
|
outlineshapes(d1, d2, curveIntersectionThreshold) {
|
|
@@ -25226,7 +25226,7 @@ class Bezier {
|
|
|
25226
25226
|
return errorThreshold = errorThreshold || 0.5, this._iterate(errorThreshold, []);
|
|
25227
25227
|
}
|
|
25228
25228
|
_error(pc, np1, s, e2) {
|
|
25229
|
-
const
|
|
25229
|
+
const q2 = (e2 - s) / 4, c1 = this.get(s + q2), c2 = this.get(e2 - q2), ref = utils.dist(pc, np1), d1 = utils.dist(pc, c1), d2 = utils.dist(pc, c2);
|
|
25230
25230
|
return abs(d1 - ref) + abs(d2 - ref);
|
|
25231
25231
|
}
|
|
25232
25232
|
_iterate(errorThreshold, circles) {
|
|
@@ -25618,8 +25618,8 @@ const complex = {
|
|
|
25618
25618
|
createTransformer,
|
|
25619
25619
|
getAnimatableNone: getAnimatableNone$1
|
|
25620
25620
|
};
|
|
25621
|
-
function hueToRgb(p,
|
|
25622
|
-
return t2 < 0 && (t2 += 1), t2 > 1 && (t2 -= 1), t2 < 1 / 6 ? p + (
|
|
25621
|
+
function hueToRgb(p, q2, t2) {
|
|
25622
|
+
return t2 < 0 && (t2 += 1), t2 > 1 && (t2 -= 1), t2 < 1 / 6 ? p + (q2 - p) * 6 * t2 : t2 < 1 / 2 ? q2 : t2 < 2 / 3 ? p + (q2 - p) * (2 / 3 - t2) * 6 : p;
|
|
25623
25623
|
}
|
|
25624
25624
|
function hslaToRgba({ hue, saturation, lightness, alpha: alpha2 }) {
|
|
25625
25625
|
hue /= 360, saturation /= 100, lightness /= 100;
|
|
@@ -25627,8 +25627,8 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha2 }) {
|
|
|
25627
25627
|
if (!saturation)
|
|
25628
25628
|
red = green = blue = lightness;
|
|
25629
25629
|
else {
|
|
25630
|
-
const
|
|
25631
|
-
red = hueToRgb(p,
|
|
25630
|
+
const q2 = lightness < 0.5 ? lightness * (1 + saturation) : lightness + saturation - lightness * saturation, p = 2 * lightness - q2;
|
|
25631
|
+
red = hueToRgb(p, q2, hue + 1 / 3), green = hueToRgb(p, q2, hue), blue = hueToRgb(p, q2, hue - 1 / 3);
|
|
25632
25632
|
}
|
|
25633
25633
|
return {
|
|
25634
25634
|
red: Math.round(red * 255),
|
|
@@ -25823,7 +25823,7 @@ function getSpringOptions(options) {
|
|
|
25823
25823
|
...options
|
|
25824
25824
|
};
|
|
25825
25825
|
if (!isSpringType(options, physicsKeys) && isSpringType(options, durationKeys))
|
|
25826
|
-
if (options.visualDuration) {
|
|
25826
|
+
if (springOptions.velocity = 0, options.visualDuration) {
|
|
25827
25827
|
const visualDuration = options.visualDuration, root2 = 2 * Math.PI / (visualDuration * 1.2), stiffness = root2 * root2, damping = 2 * clamp(0.05, 1, 1 - (options.bounce || 0)) * Math.sqrt(stiffness);
|
|
25828
25828
|
springOptions = {
|
|
25829
25829
|
...springOptions,
|
|
@@ -25832,7 +25832,7 @@ function getSpringOptions(options) {
|
|
|
25832
25832
|
damping
|
|
25833
25833
|
};
|
|
25834
25834
|
} else {
|
|
25835
|
-
const derived = findSpring(options);
|
|
25835
|
+
const derived = findSpring({ ...options, velocity: 0 });
|
|
25836
25836
|
springOptions = {
|
|
25837
25837
|
...springOptions,
|
|
25838
25838
|
...derived,
|
|
@@ -26319,12 +26319,12 @@ const isCSSVar = (name) => name.startsWith("--");
|
|
|
26319
26319
|
function setStyle(element, name, value) {
|
|
26320
26320
|
isCSSVar(name) ? element.style.setProperty(name, value) : element.style[name] = value;
|
|
26321
26321
|
}
|
|
26322
|
-
const
|
|
26322
|
+
const supportsFlags = {};
|
|
26323
26323
|
function memoSupports(callback, supportsFlag) {
|
|
26324
26324
|
const memoized = /* @__PURE__ */ memo$1(callback);
|
|
26325
26325
|
return () => supportsFlags[supportsFlag] ?? memoized();
|
|
26326
26326
|
}
|
|
26327
|
-
const supportsLinearEasing = /* @__PURE__ */ memoSupports(() => {
|
|
26327
|
+
const supportsScrollTimeline = /* @__PURE__ */ memoSupports(() => window.ScrollTimeline !== void 0, "scrollTimeline"), supportsLinearEasing = /* @__PURE__ */ memoSupports(() => {
|
|
26328
26328
|
try {
|
|
26329
26329
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
26330
26330
|
} catch {
|
|
@@ -27181,6 +27181,12 @@ const functionRegex = /\b([a-z-]*)\(.*?\)/gu, filter$1 = {
|
|
|
27181
27181
|
const functions = v.match(functionRegex);
|
|
27182
27182
|
return functions ? functions.map(applyDefaultFilter).join(" ") : v;
|
|
27183
27183
|
}
|
|
27184
|
+
}, mask = {
|
|
27185
|
+
...complex,
|
|
27186
|
+
getAnimatableNone: (v) => {
|
|
27187
|
+
const parsed = complex.parse(v);
|
|
27188
|
+
return complex.createTransformer(v)(parsed.map((v2) => typeof v2 == "number" ? 0 : typeof v2 == "object" ? { ...v2, alpha: 1 } : v2));
|
|
27189
|
+
}
|
|
27184
27190
|
}, int$1 = {
|
|
27185
27191
|
...number$3,
|
|
27186
27192
|
transform: Math.round
|
|
@@ -27286,11 +27292,13 @@ const functionRegex = /\b([a-z-]*)\(.*?\)/gu, filter$1 = {
|
|
|
27286
27292
|
borderBottomColor: color,
|
|
27287
27293
|
borderLeftColor: color,
|
|
27288
27294
|
filter: filter$1,
|
|
27289
|
-
WebkitFilter: filter$1
|
|
27290
|
-
|
|
27295
|
+
WebkitFilter: filter$1,
|
|
27296
|
+
mask,
|
|
27297
|
+
WebkitMask: mask
|
|
27298
|
+
}, getDefaultValueType = (key) => defaultValueTypes[key], customTypes = /* @__PURE__ */ new Set([filter$1, mask]);
|
|
27291
27299
|
function getAnimatableNone(key, value) {
|
|
27292
27300
|
let defaultValueType = getDefaultValueType(key);
|
|
27293
|
-
return defaultValueType
|
|
27301
|
+
return customTypes.has(defaultValueType) || (defaultValueType = complex), defaultValueType.getAnimatableNone ? defaultValueType.getAnimatableNone(value) : void 0;
|
|
27294
27302
|
}
|
|
27295
27303
|
const invalidTemplates = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
27296
27304
|
function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
|
|
@@ -29088,7 +29096,7 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
|
|
|
29088
29096
|
}
|
|
29089
29097
|
startAnimation(options) {
|
|
29090
29098
|
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (cancelFrame(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = frame.update(() => {
|
|
29091
|
-
globalProjectionState.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = motionValue(0)), this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {
|
|
29099
|
+
globalProjectionState.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = motionValue(0)), this.motionValue.jump(0, !1), this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {
|
|
29092
29100
|
...options,
|
|
29093
29101
|
velocity: 0,
|
|
29094
29102
|
isSync: !0,
|
|
@@ -30080,11 +30088,8 @@ class PanSession {
|
|
|
30080
30088
|
x: window.scrollX,
|
|
30081
30089
|
y: window.scrollY
|
|
30082
30090
|
}), window.addEventListener("scroll", this.onElementScroll, {
|
|
30083
|
-
capture: !0
|
|
30084
|
-
|
|
30085
|
-
}), window.addEventListener("scroll", this.onWindowScroll, {
|
|
30086
|
-
passive: !0
|
|
30087
|
-
}), this.removeScrollListeners = () => {
|
|
30091
|
+
capture: !0
|
|
30092
|
+
}), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
|
|
30088
30093
|
window.removeEventListener("scroll", this.onElementScroll, {
|
|
30089
30094
|
capture: !0
|
|
30090
30095
|
}), window.removeEventListener("scroll", this.onWindowScroll);
|
|
@@ -30834,8 +30839,8 @@ function createAnimationsFromSequence(sequence, { defaultTransition: defaultTran
|
|
|
30834
30839
|
valueSequence.sort(compareByTime);
|
|
30835
30840
|
const keyframes2 = [], valueOffset = [], valueEasing = [];
|
|
30836
30841
|
for (let i2 = 0; i2 < valueSequence.length; i2++) {
|
|
30837
|
-
const { at
|
|
30838
|
-
keyframes2.push(value), valueOffset.push(/* @__PURE__ */ progress(0, totalDuration,
|
|
30842
|
+
const { at, value, easing } = valueSequence[i2];
|
|
30843
|
+
keyframes2.push(value), valueOffset.push(/* @__PURE__ */ progress(0, totalDuration, at)), valueEasing.push(easing || "easeOut");
|
|
30839
30844
|
}
|
|
30840
30845
|
valueOffset[0] !== 0 && (valueOffset.unshift(0), keyframes2.unshift(keyframes2[0]), valueEasing.unshift(defaultSegmentEasing)), valueOffset[valueOffset.length - 1] !== 1 && (valueOffset.push(1), keyframes2.push(null)), animationDefinitions.has(element) || animationDefinitions.set(element, {
|
|
30841
30846
|
keyframes: {},
|
|
@@ -34002,11 +34007,11 @@ function requireGraph() {
|
|
|
34002
34007
|
return inEdges.concat(this.outEdges(v, w));
|
|
34003
34008
|
}
|
|
34004
34009
|
}
|
|
34005
|
-
function incrementOrInitEntry(map2,
|
|
34006
|
-
map2[
|
|
34010
|
+
function incrementOrInitEntry(map2, k2) {
|
|
34011
|
+
map2[k2] ? map2[k2]++ : map2[k2] = 1;
|
|
34007
34012
|
}
|
|
34008
|
-
function decrementOrRemoveEntry(map2,
|
|
34009
|
-
--map2[
|
|
34013
|
+
function decrementOrRemoveEntry(map2, k2) {
|
|
34014
|
+
--map2[k2] || delete map2[k2];
|
|
34010
34015
|
}
|
|
34011
34016
|
function edgeArgsToId(isDirected, v_, w_, name) {
|
|
34012
34017
|
var v = "" + v_, w = "" + w_;
|
|
@@ -34191,9 +34196,9 @@ function requirePriorityQueue() {
|
|
|
34191
34196
|
for (var arr = this._arr, priority = arr[index2].priority, parent; index2 !== 0 && (parent = index2 >> 1, !(arr[parent].priority < priority)); )
|
|
34192
34197
|
this._swap(index2, parent), index2 = parent;
|
|
34193
34198
|
}
|
|
34194
|
-
_swap(i2,
|
|
34195
|
-
var arr = this._arr, keyIndices = this._keyIndices, origArrI = arr[i2], origArrJ = arr[
|
|
34196
|
-
arr[i2] = origArrJ, arr[
|
|
34199
|
+
_swap(i2, j) {
|
|
34200
|
+
var arr = this._arr, keyIndices = this._keyIndices, origArrI = arr[i2], origArrJ = arr[j];
|
|
34201
|
+
arr[i2] = origArrJ, arr[j] = origArrI, keyIndices[origArrJ.key] = i2, keyIndices[origArrI.key] = j;
|
|
34197
34202
|
}
|
|
34198
34203
|
}
|
|
34199
34204
|
return priorityQueue = PriorityQueue, priorityQueue;
|
|
@@ -34308,12 +34313,12 @@ function requireFloydWarshall() {
|
|
|
34308
34313
|
var w = edge.v === v ? edge.w : edge.v, d = weightFn(edge);
|
|
34309
34314
|
results[v][w] = { distance: d, predecessor: v };
|
|
34310
34315
|
});
|
|
34311
|
-
}), nodes.forEach(function(
|
|
34312
|
-
var rowK = results[
|
|
34316
|
+
}), nodes.forEach(function(k2) {
|
|
34317
|
+
var rowK = results[k2];
|
|
34313
34318
|
nodes.forEach(function(i2) {
|
|
34314
34319
|
var rowI = results[i2];
|
|
34315
|
-
nodes.forEach(function(
|
|
34316
|
-
var ik = rowI[
|
|
34320
|
+
nodes.forEach(function(j) {
|
|
34321
|
+
var ik = rowI[k2], kj = rowK[j], ij = rowI[j], altDistance = ik.distance + kj.distance;
|
|
34317
34322
|
altDistance < ij.distance && (ij.distance = altDistance, ij.predecessor = kj.predecessor);
|
|
34318
34323
|
});
|
|
34319
34324
|
});
|
|
@@ -34505,8 +34510,8 @@ function requireList() {
|
|
|
34505
34510
|
function unlink2(entry) {
|
|
34506
34511
|
entry._prev._next = entry._next, entry._next._prev = entry._prev, delete entry._next, delete entry._prev;
|
|
34507
34512
|
}
|
|
34508
|
-
function filterOutLinks(
|
|
34509
|
-
if (
|
|
34513
|
+
function filterOutLinks(k2, v) {
|
|
34514
|
+
if (k2 !== "_next" && k2 !== "_prev")
|
|
34510
34515
|
return v;
|
|
34511
34516
|
}
|
|
34512
34517
|
return list = List, list;
|
|
@@ -34747,7 +34752,7 @@ function requireUtil$1() {
|
|
|
34747
34752
|
}
|
|
34748
34753
|
function mapValues2(obj, funcOrProp) {
|
|
34749
34754
|
let func = funcOrProp;
|
|
34750
|
-
return typeof funcOrProp == "string" && (func = (val) => val[funcOrProp]), Object.entries(obj).reduce((acc, [
|
|
34755
|
+
return typeof funcOrProp == "string" && (func = (val) => val[funcOrProp]), Object.entries(obj).reduce((acc, [k2, v]) => (acc[k2] = func(v, k2), acc), {});
|
|
34751
34756
|
}
|
|
34752
34757
|
function zipObject(props, values2) {
|
|
34753
34758
|
return props.reduce((acc, key, i2) => (acc[key] = values2[i2], acc), {});
|
|
@@ -35708,8 +35713,8 @@ function requireLayout() {
|
|
|
35708
35713
|
)), inputGraph.nodes().forEach((v) => {
|
|
35709
35714
|
let node = canonicalize(inputGraph.node(v));
|
|
35710
35715
|
const newNode = selectNumberAttrs(node, nodeNumAttrs);
|
|
35711
|
-
Object.keys(nodeDefaults).forEach((
|
|
35712
|
-
newNode[
|
|
35716
|
+
Object.keys(nodeDefaults).forEach((k2) => {
|
|
35717
|
+
newNode[k2] === void 0 && (newNode[k2] = nodeDefaults[k2]);
|
|
35713
35718
|
}), g.setNode(v, newNode), g.setParent(v, inputGraph.parent(v));
|
|
35714
35719
|
}), inputGraph.edges().forEach((e2) => {
|
|
35715
35720
|
let edge = canonicalize(inputGraph.edge(e2));
|
|
@@ -35852,8 +35857,8 @@ function requireLayout() {
|
|
|
35852
35857
|
}
|
|
35853
35858
|
function canonicalize(attrs) {
|
|
35854
35859
|
var newAttrs = {};
|
|
35855
|
-
return attrs && Object.entries(attrs).forEach(([
|
|
35856
|
-
typeof
|
|
35860
|
+
return attrs && Object.entries(attrs).forEach(([k2, v]) => {
|
|
35861
|
+
typeof k2 == "string" && (k2 = k2.toLowerCase()), newAttrs[k2] = v;
|
|
35857
35862
|
}), newAttrs;
|
|
35858
35863
|
}
|
|
35859
35864
|
return layout_1;
|
|
@@ -35911,11 +35916,11 @@ function appendRound(digits) {
|
|
|
35911
35916
|
let d = Math.floor(digits);
|
|
35912
35917
|
if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);
|
|
35913
35918
|
if (d > 15) return append;
|
|
35914
|
-
const
|
|
35919
|
+
const k2 = 10 ** d;
|
|
35915
35920
|
return function(strings) {
|
|
35916
35921
|
this._ += strings[0];
|
|
35917
35922
|
for (let i2 = 1, n2 = strings.length; i2 < n2; ++i2)
|
|
35918
|
-
this._ += Math.round(arguments[i2] *
|
|
35923
|
+
this._ += Math.round(arguments[i2] * k2) / k2 + strings[i2];
|
|
35919
35924
|
};
|
|
35920
35925
|
}
|
|
35921
35926
|
class Path {
|
|
@@ -36012,23 +36017,23 @@ Linear.prototype = {
|
|
|
36012
36017
|
function curveLinear(context) {
|
|
36013
36018
|
return new Linear(context);
|
|
36014
36019
|
}
|
|
36015
|
-
function x
|
|
36020
|
+
function x(p) {
|
|
36016
36021
|
return p[0];
|
|
36017
36022
|
}
|
|
36018
36023
|
function y(p) {
|
|
36019
36024
|
return p[1];
|
|
36020
36025
|
}
|
|
36021
|
-
function d3line(
|
|
36026
|
+
function d3line(x$1, y$1) {
|
|
36022
36027
|
var defined = constant(!0), context = null, curve = curveLinear, output = null, path = withPath(line);
|
|
36023
|
-
|
|
36028
|
+
x$1 = typeof x$1 == "function" ? x$1 : x$1 === void 0 ? x : constant(x$1), y$1 = typeof y$1 == "function" ? y$1 : y$1 === void 0 ? y : constant(y$1);
|
|
36024
36029
|
function line(data) {
|
|
36025
36030
|
var i2, n2 = (data = array$1(data)).length, d, defined0 = !1, buffer;
|
|
36026
36031
|
for (context == null && (output = curve(buffer = path())), i2 = 0; i2 <= n2; ++i2)
|
|
36027
|
-
!(i2 < n2 && defined(d = data[i2], i2, data)) === defined0 && ((defined0 = !defined0) ? output.lineStart() : output.lineEnd()), defined0 && output.point(+
|
|
36032
|
+
!(i2 < n2 && defined(d = data[i2], i2, data)) === defined0 && ((defined0 = !defined0) ? output.lineStart() : output.lineEnd()), defined0 && output.point(+x$1(d, i2, data), +y$1(d, i2, data));
|
|
36028
36033
|
if (buffer) return output = null, buffer + "" || null;
|
|
36029
36034
|
}
|
|
36030
36035
|
return line.x = function(_2) {
|
|
36031
|
-
return arguments.length ? (
|
|
36036
|
+
return arguments.length ? (x$1 = typeof _2 == "function" ? _2 : constant(+_2), line) : x$1;
|
|
36032
36037
|
}, line.y = function(_2) {
|
|
36033
36038
|
return arguments.length ? (y$1 = typeof _2 == "function" ? _2 : constant(+_2), line) : y$1;
|
|
36034
36039
|
}, line.defined = function(_2) {
|
|
@@ -36788,8 +36793,8 @@ function $constructor(name, initializer2, params) {
|
|
|
36788
36793
|
value: inst._zod ?? {},
|
|
36789
36794
|
enumerable: !1
|
|
36790
36795
|
}), (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set()), inst._zod.traits.add(name), initializer2(inst, def);
|
|
36791
|
-
for (const
|
|
36792
|
-
|
|
36796
|
+
for (const k2 in _2.prototype)
|
|
36797
|
+
k2 in inst || Object.defineProperty(inst, k2, { value: _2.prototype[k2].bind(inst) });
|
|
36793
36798
|
inst._zod.constr = _2, inst._zod.def = def;
|
|
36794
36799
|
}
|
|
36795
36800
|
const Parent = params?.Parent ?? Object;
|
|
@@ -36833,7 +36838,7 @@ function assert(_2) {
|
|
|
36833
36838
|
}
|
|
36834
36839
|
function getEnumValues(entries) {
|
|
36835
36840
|
const numericValues = Object.values(entries).filter((v) => typeof v == "number");
|
|
36836
|
-
return Object.entries(entries).filter(([
|
|
36841
|
+
return Object.entries(entries).filter(([k2, _2]) => numericValues.indexOf(+k2) === -1).map(([_2, v]) => v);
|
|
36837
36842
|
}
|
|
36838
36843
|
function joinValues(array2, separator = "|") {
|
|
36839
36844
|
return array2.map((val) => stringifyPrimitive(val)).join(separator);
|
|
@@ -37012,7 +37017,7 @@ function stringifyPrimitive(value) {
|
|
|
37012
37017
|
return typeof value == "bigint" ? value.toString() + "n" : typeof value == "string" ? `"${value}"` : `${value}`;
|
|
37013
37018
|
}
|
|
37014
37019
|
function optionalKeys(shape) {
|
|
37015
|
-
return Object.keys(shape).filter((
|
|
37020
|
+
return Object.keys(shape).filter((k2) => shape[k2]._zod.optin === "optional" && shape[k2]._zod.optout === "optional");
|
|
37016
37021
|
}
|
|
37017
37022
|
const NUMBER_FORMAT_RANGES = {
|
|
37018
37023
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
@@ -37024,12 +37029,12 @@ const NUMBER_FORMAT_RANGES = {
|
|
|
37024
37029
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
37025
37030
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
37026
37031
|
};
|
|
37027
|
-
function pick(schema,
|
|
37032
|
+
function pick(schema, mask2) {
|
|
37028
37033
|
const newShape = {}, currDef = schema._zod.def;
|
|
37029
|
-
for (const key in
|
|
37034
|
+
for (const key in mask2) {
|
|
37030
37035
|
if (!(key in currDef.shape))
|
|
37031
37036
|
throw new Error(`Unrecognized key: "${key}"`);
|
|
37032
|
-
|
|
37037
|
+
mask2[key] && (newShape[key] = currDef.shape[key]);
|
|
37033
37038
|
}
|
|
37034
37039
|
return clone(schema, {
|
|
37035
37040
|
...schema._zod.def,
|
|
@@ -37037,12 +37042,12 @@ function pick(schema, mask) {
|
|
|
37037
37042
|
checks: []
|
|
37038
37043
|
});
|
|
37039
37044
|
}
|
|
37040
|
-
function omit(schema,
|
|
37045
|
+
function omit(schema, mask2) {
|
|
37041
37046
|
const newShape = { ...schema._zod.def.shape }, currDef = schema._zod.def;
|
|
37042
|
-
for (const key in
|
|
37047
|
+
for (const key in mask2) {
|
|
37043
37048
|
if (!(key in currDef.shape))
|
|
37044
37049
|
throw new Error(`Unrecognized key: "${key}"`);
|
|
37045
|
-
|
|
37050
|
+
mask2[key] && delete newShape[key];
|
|
37046
37051
|
}
|
|
37047
37052
|
return clone(schema, {
|
|
37048
37053
|
...schema._zod.def,
|
|
@@ -37076,13 +37081,13 @@ function merge(a2, b) {
|
|
|
37076
37081
|
// delete existing checks
|
|
37077
37082
|
});
|
|
37078
37083
|
}
|
|
37079
|
-
function partial(Class2, schema,
|
|
37084
|
+
function partial(Class2, schema, mask2) {
|
|
37080
37085
|
const oldShape = schema._zod.def.shape, shape = { ...oldShape };
|
|
37081
|
-
if (
|
|
37082
|
-
for (const key in
|
|
37086
|
+
if (mask2)
|
|
37087
|
+
for (const key in mask2) {
|
|
37083
37088
|
if (!(key in oldShape))
|
|
37084
37089
|
throw new Error(`Unrecognized key: "${key}"`);
|
|
37085
|
-
|
|
37090
|
+
mask2[key] && (shape[key] = Class2 ? new Class2({
|
|
37086
37091
|
type: "optional",
|
|
37087
37092
|
innerType: oldShape[key]
|
|
37088
37093
|
}) : oldShape[key]);
|
|
@@ -37099,13 +37104,13 @@ function partial(Class2, schema, mask) {
|
|
|
37099
37104
|
checks: []
|
|
37100
37105
|
});
|
|
37101
37106
|
}
|
|
37102
|
-
function required(Class2, schema,
|
|
37107
|
+
function required(Class2, schema, mask2) {
|
|
37103
37108
|
const oldShape = schema._zod.def.shape, shape = { ...oldShape };
|
|
37104
|
-
if (
|
|
37105
|
-
for (const key in
|
|
37109
|
+
if (mask2)
|
|
37110
|
+
for (const key in mask2) {
|
|
37106
37111
|
if (!(key in shape))
|
|
37107
37112
|
throw new Error(`Unrecognized key: "${key}"`);
|
|
37108
|
-
|
|
37113
|
+
mask2[key] && (shape[key] = new Class2({
|
|
37109
37114
|
type: "nonoptional",
|
|
37110
37115
|
innerType: oldShape[key]
|
|
37111
37116
|
}));
|
|
@@ -37162,7 +37167,7 @@ function issue(...args) {
|
|
|
37162
37167
|
} : { ...iss };
|
|
37163
37168
|
}
|
|
37164
37169
|
function cleanEnum(obj) {
|
|
37165
|
-
return Object.entries(obj).filter(([
|
|
37170
|
+
return Object.entries(obj).filter(([k2, _2]) => Number.isNaN(Number.parseInt(k2, 10))).map((el) => el[1]);
|
|
37166
37171
|
}
|
|
37167
37172
|
class Class {
|
|
37168
37173
|
constructor(..._args) {
|
|
@@ -38243,9 +38248,9 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
38243
38248
|
$ZodType.init(inst, def);
|
|
38244
38249
|
const _normalized = cached(() => {
|
|
38245
38250
|
const keys2 = Object.keys(def.shape);
|
|
38246
|
-
for (const
|
|
38247
|
-
if (!(def.shape[
|
|
38248
|
-
throw new Error(`Invalid element at key "${
|
|
38251
|
+
for (const k2 of keys2)
|
|
38252
|
+
if (!(def.shape[k2] instanceof $ZodType))
|
|
38253
|
+
throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
|
|
38249
38254
|
const okeys = optionalKeys(def.shape);
|
|
38250
38255
|
return {
|
|
38251
38256
|
shape: def.shape,
|
|
@@ -38269,8 +38274,8 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
38269
38274
|
});
|
|
38270
38275
|
const generateFastpass = (shape) => {
|
|
38271
38276
|
const doc = new Doc(["shape", "payload", "ctx"]), normalized = _normalized.value, parseStr = (key) => {
|
|
38272
|
-
const
|
|
38273
|
-
return `shape[${
|
|
38277
|
+
const k2 = esc(key);
|
|
38278
|
+
return `shape[${k2}]._zod.run({ value: input[${k2}], issues: [] }, ctx)`;
|
|
38274
38279
|
};
|
|
38275
38280
|
doc.write("const input = payload.value;");
|
|
38276
38281
|
const ids = /* @__PURE__ */ Object.create(null);
|
|
@@ -38282,25 +38287,25 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
38282
38287
|
if (normalized.optionalKeys.has(key)) {
|
|
38283
38288
|
const id2 = ids[key];
|
|
38284
38289
|
doc.write(`const ${id2} = ${parseStr(key)};`);
|
|
38285
|
-
const
|
|
38290
|
+
const k2 = esc(key);
|
|
38286
38291
|
doc.write(`
|
|
38287
38292
|
if (${id2}.issues.length) {
|
|
38288
|
-
if (input[${
|
|
38289
|
-
if (${
|
|
38290
|
-
newResult[${
|
|
38293
|
+
if (input[${k2}] === undefined) {
|
|
38294
|
+
if (${k2} in input) {
|
|
38295
|
+
newResult[${k2}] = undefined;
|
|
38291
38296
|
}
|
|
38292
38297
|
} else {
|
|
38293
38298
|
payload.issues = payload.issues.concat(
|
|
38294
38299
|
${id2}.issues.map((iss) => ({
|
|
38295
38300
|
...iss,
|
|
38296
|
-
path: iss.path ? [${
|
|
38301
|
+
path: iss.path ? [${k2}, ...iss.path] : [${k2}],
|
|
38297
38302
|
}))
|
|
38298
38303
|
);
|
|
38299
38304
|
}
|
|
38300
38305
|
} else if (${id2}.value === undefined) {
|
|
38301
|
-
if (${
|
|
38306
|
+
if (${k2} in input) newResult[${k2}] = undefined;
|
|
38302
38307
|
} else {
|
|
38303
|
-
newResult[${
|
|
38308
|
+
newResult[${k2}] = ${id2}.value;
|
|
38304
38309
|
}
|
|
38305
38310
|
`);
|
|
38306
38311
|
} else {
|
|
@@ -38407,10 +38412,10 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
38407
38412
|
const pv = option._zod.propValues;
|
|
38408
38413
|
if (!pv || Object.keys(pv).length === 0)
|
|
38409
38414
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
38410
|
-
for (const [
|
|
38411
|
-
propValues[
|
|
38415
|
+
for (const [k2, v] of Object.entries(pv)) {
|
|
38416
|
+
propValues[k2] || (propValues[k2] = /* @__PURE__ */ new Set());
|
|
38412
38417
|
for (const val of v)
|
|
38413
|
-
propValues[
|
|
38418
|
+
propValues[k2].add(val);
|
|
38414
38419
|
}
|
|
38415
38420
|
}
|
|
38416
38421
|
return propValues;
|
|
@@ -38667,7 +38672,7 @@ function handleSetResult(result, final) {
|
|
|
38667
38672
|
const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
38668
38673
|
$ZodType.init(inst, def);
|
|
38669
38674
|
const values2 = getEnumValues(def.entries);
|
|
38670
|
-
inst._zod.values = new Set(values2), inst._zod.pattern = new RegExp(`^(${values2.filter((
|
|
38675
|
+
inst._zod.values = new Set(values2), inst._zod.pattern = new RegExp(`^(${values2.filter((k2) => propertyKeyTypes.has(typeof k2)).map((o) => typeof o == "string" ? escapeRegex(o) : o.toString()).join("|")})$`), inst._zod.parse = (payload, _ctx) => {
|
|
38671
38676
|
const input = payload.value;
|
|
38672
38677
|
return inst._zod.values.has(input) || payload.issues.push({
|
|
38673
38678
|
code: "invalid_value",
|
|
@@ -39454,7 +39459,7 @@ const error$x = () => {
|
|
|
39454
39459
|
}
|
|
39455
39460
|
};
|
|
39456
39461
|
};
|
|
39457
|
-
function de
|
|
39462
|
+
function de() {
|
|
39458
39463
|
return {
|
|
39459
39464
|
localeError: error$x()
|
|
39460
39465
|
};
|
|
@@ -42586,7 +42591,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
42586
42591
|
be: be$1,
|
|
42587
42592
|
ca,
|
|
42588
42593
|
cs,
|
|
42589
|
-
de
|
|
42594
|
+
de,
|
|
42590
42595
|
en,
|
|
42591
42596
|
eo,
|
|
42592
42597
|
es,
|
|
@@ -44628,7 +44633,7 @@ function keyof(schema) {
|
|
|
44628
44633
|
return literal(Object.keys(shape));
|
|
44629
44634
|
}
|
|
44630
44635
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
44631
|
-
$ZodObject.init(inst, def), ZodType.init(inst, def), defineLazy(inst, "shape", () => def.shape), inst.keyof = () => _enum(Object.keys(inst._zod.def.shape)), inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall }), inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() }), inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() }), inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() }), inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 }), inst.extend = (incoming) => extend(inst, incoming), inst.merge = (other) => merge(inst, other), inst.pick = (
|
|
44636
|
+
$ZodObject.init(inst, def), ZodType.init(inst, def), defineLazy(inst, "shape", () => def.shape), inst.keyof = () => _enum(Object.keys(inst._zod.def.shape)), inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall }), inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() }), inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() }), inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() }), inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 }), inst.extend = (incoming) => extend(inst, incoming), inst.merge = (other) => merge(inst, other), inst.pick = (mask2) => pick(inst, mask2), inst.omit = (mask2) => omit(inst, mask2), inst.partial = (...args) => partial(ZodOptional, inst, args[0]), inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
|
|
44632
44637
|
});
|
|
44633
44638
|
function object(shape, params) {
|
|
44634
44639
|
const def = {
|
|
@@ -46447,9 +46452,9 @@ function map(node, options) {
|
|
|
46447
46452
|
}), childrenMap[""][0];
|
|
46448
46453
|
}
|
|
46449
46454
|
function insert2(node, options) {
|
|
46450
|
-
const { nodes, at
|
|
46451
|
-
if (
|
|
46452
|
-
const state = getInsertionOperations(
|
|
46455
|
+
const { nodes, at } = options;
|
|
46456
|
+
if (at.length === 0) throw new Error("Can't insert nodes at the root");
|
|
46457
|
+
const state = getInsertionOperations(at, nodes);
|
|
46453
46458
|
return mutate(node, state, options);
|
|
46454
46459
|
}
|
|
46455
46460
|
function replace(node, options) {
|
|
@@ -48162,181 +48167,21 @@ async function toBlob(node, options = {}) {
|
|
|
48162
48167
|
const canvas = await toCanvas(node, options);
|
|
48163
48168
|
return await canvasToBlob(canvas);
|
|
48164
48169
|
}
|
|
48165
|
-
function
|
|
48166
|
-
if (!e2)
|
|
48167
|
-
throw Error(t2);
|
|
48168
|
-
}
|
|
48169
|
-
function U({
|
|
48170
|
-
group: e2
|
|
48171
|
-
}) {
|
|
48172
|
-
const { orientation: t2, panels: n2 } = e2;
|
|
48173
|
-
return n2.reduce((o, i2) => (o += t2 === "horizontal" ? i2.element.offsetWidth : i2.element.offsetHeight, o), 0);
|
|
48174
|
-
}
|
|
48175
|
-
function de(e2, t2) {
|
|
48176
|
-
return t2.sort(
|
|
48177
|
-
e2 === "horizontal" ? rt : st
|
|
48178
|
-
);
|
|
48179
|
-
}
|
|
48180
|
-
function rt(e2, t2) {
|
|
48181
|
-
const n2 = e2.element.offsetLeft - t2.element.offsetLeft;
|
|
48182
|
-
return n2 !== 0 ? n2 : e2.element.offsetWidth - t2.element.offsetWidth;
|
|
48183
|
-
}
|
|
48184
|
-
function st(e2, t2) {
|
|
48185
|
-
const n2 = e2.element.offsetTop - t2.element.offsetTop;
|
|
48186
|
-
return n2 !== 0 ? n2 : e2.element.offsetHeight - t2.element.offsetHeight;
|
|
48187
|
-
}
|
|
48188
|
-
function Ne(e2) {
|
|
48189
|
-
return e2 !== null && typeof e2 == "object" && "nodeType" in e2 && e2.nodeType === Node.ELEMENT_NODE;
|
|
48190
|
-
}
|
|
48191
|
-
function Fe(e2, t2) {
|
|
48192
|
-
return {
|
|
48193
|
-
x: e2.x >= t2.left && e2.x <= t2.right ? 0 : Math.min(
|
|
48194
|
-
Math.abs(e2.x - t2.left),
|
|
48195
|
-
Math.abs(e2.x - t2.right)
|
|
48196
|
-
),
|
|
48197
|
-
y: e2.y >= t2.top && e2.y <= t2.bottom ? 0 : Math.min(
|
|
48198
|
-
Math.abs(e2.y - t2.top),
|
|
48199
|
-
Math.abs(e2.y - t2.bottom)
|
|
48200
|
-
)
|
|
48201
|
-
};
|
|
48202
|
-
}
|
|
48203
|
-
function at({
|
|
48204
|
-
orientation: e2,
|
|
48205
|
-
rects: t2,
|
|
48206
|
-
targetRect: n2
|
|
48207
|
-
}) {
|
|
48208
|
-
const o = {
|
|
48209
|
-
x: n2.x + n2.width / 2,
|
|
48210
|
-
y: n2.y + n2.height / 2
|
|
48211
|
-
};
|
|
48212
|
-
let i2, s = Number.MAX_VALUE;
|
|
48213
|
-
for (const l of t2) {
|
|
48214
|
-
const { x: r2, y: a2 } = Fe(o, l), u = e2 === "horizontal" ? r2 : a2;
|
|
48215
|
-
u < s && (s = u, i2 = l);
|
|
48216
|
-
}
|
|
48217
|
-
return x(i2, "No rect found"), i2;
|
|
48218
|
-
}
|
|
48219
|
-
let ie;
|
|
48220
|
-
function lt() {
|
|
48221
|
-
return ie === void 0 && (typeof matchMedia == "function" ? ie = !!matchMedia("(pointer:coarse)").matches : ie = !1), ie;
|
|
48222
|
-
}
|
|
48223
|
-
function $e(e2) {
|
|
48224
|
-
const { element: t2, orientation: n2, panels: o, separators: i2 } = e2, s = de(
|
|
48225
|
-
n2,
|
|
48226
|
-
Array.from(t2.children).filter(Ne).map((c2) => ({ element: c2 }))
|
|
48227
|
-
).map(({ element: c2 }) => c2), l = [];
|
|
48228
|
-
let r2 = !1, a2, u = [];
|
|
48229
|
-
for (const c2 of s)
|
|
48230
|
-
if (c2.hasAttribute("data-panel")) {
|
|
48231
|
-
const h2 = o.find(
|
|
48232
|
-
(y2) => y2.element === c2
|
|
48233
|
-
);
|
|
48234
|
-
if (h2) {
|
|
48235
|
-
if (a2) {
|
|
48236
|
-
const y2 = a2.element.getBoundingClientRect(), m2 = c2.getBoundingClientRect();
|
|
48237
|
-
let f;
|
|
48238
|
-
if (r2) {
|
|
48239
|
-
const d = n2 === "horizontal" ? new DOMRect(y2.right, y2.top, 0, y2.height) : new DOMRect(
|
|
48240
|
-
y2.left,
|
|
48241
|
-
y2.bottom,
|
|
48242
|
-
y2.width,
|
|
48243
|
-
0
|
|
48244
|
-
), p = n2 === "horizontal" ? new DOMRect(m2.left, m2.top, 0, m2.height) : new DOMRect(m2.left, m2.top, m2.width, 0);
|
|
48245
|
-
switch (u.length) {
|
|
48246
|
-
case 0: {
|
|
48247
|
-
f = [
|
|
48248
|
-
d,
|
|
48249
|
-
p
|
|
48250
|
-
];
|
|
48251
|
-
break;
|
|
48252
|
-
}
|
|
48253
|
-
case 1: {
|
|
48254
|
-
const g = u[0], v = at({
|
|
48255
|
-
orientation: n2,
|
|
48256
|
-
rects: [y2, m2],
|
|
48257
|
-
targetRect: g.element.getBoundingClientRect()
|
|
48258
|
-
});
|
|
48259
|
-
f = [
|
|
48260
|
-
g,
|
|
48261
|
-
v === y2 ? p : d
|
|
48262
|
-
];
|
|
48263
|
-
break;
|
|
48264
|
-
}
|
|
48265
|
-
default: {
|
|
48266
|
-
f = u;
|
|
48267
|
-
break;
|
|
48268
|
-
}
|
|
48269
|
-
}
|
|
48270
|
-
} else
|
|
48271
|
-
u.length ? f = u : f = [
|
|
48272
|
-
n2 === "horizontal" ? new DOMRect(
|
|
48273
|
-
y2.right,
|
|
48274
|
-
m2.top,
|
|
48275
|
-
m2.left - y2.right,
|
|
48276
|
-
m2.height
|
|
48277
|
-
) : new DOMRect(
|
|
48278
|
-
m2.left,
|
|
48279
|
-
y2.bottom,
|
|
48280
|
-
m2.width,
|
|
48281
|
-
m2.top - y2.bottom
|
|
48282
|
-
)
|
|
48283
|
-
];
|
|
48284
|
-
for (const d of f) {
|
|
48285
|
-
let p = "width" in d ? d : d.element.getBoundingClientRect();
|
|
48286
|
-
const g = lt() ? e2.resizeTargetMinimumSize.coarse : e2.resizeTargetMinimumSize.fine;
|
|
48287
|
-
if (p.width < g) {
|
|
48288
|
-
const v = g - p.width;
|
|
48289
|
-
p = new DOMRect(
|
|
48290
|
-
p.x - v / 2,
|
|
48291
|
-
p.y,
|
|
48292
|
-
p.width + v,
|
|
48293
|
-
p.height
|
|
48294
|
-
);
|
|
48295
|
-
}
|
|
48296
|
-
if (p.height < g) {
|
|
48297
|
-
const v = g - p.height;
|
|
48298
|
-
p = new DOMRect(
|
|
48299
|
-
p.x,
|
|
48300
|
-
p.y - v / 2,
|
|
48301
|
-
p.width,
|
|
48302
|
-
p.height + v
|
|
48303
|
-
);
|
|
48304
|
-
}
|
|
48305
|
-
l.push({
|
|
48306
|
-
group: e2,
|
|
48307
|
-
groupSize: U({ group: e2 }),
|
|
48308
|
-
panels: [a2, h2],
|
|
48309
|
-
separator: "width" in d ? void 0 : d,
|
|
48310
|
-
rect: p
|
|
48311
|
-
});
|
|
48312
|
-
}
|
|
48313
|
-
}
|
|
48314
|
-
r2 = !1, a2 = h2, u = [];
|
|
48315
|
-
}
|
|
48316
|
-
} else if (c2.hasAttribute("data-separator")) {
|
|
48317
|
-
const h2 = i2.find(
|
|
48318
|
-
(y2) => y2.element === c2
|
|
48319
|
-
);
|
|
48320
|
-
h2 ? u.push(h2) : (a2 = void 0, u = []);
|
|
48321
|
-
} else
|
|
48322
|
-
r2 = !0;
|
|
48323
|
-
return l;
|
|
48324
|
-
}
|
|
48325
|
-
function ut(e2, t2) {
|
|
48170
|
+
function lt(e2, t2) {
|
|
48326
48171
|
const n2 = getComputedStyle(e2), o = parseFloat(n2.fontSize);
|
|
48327
48172
|
return t2 * o;
|
|
48328
48173
|
}
|
|
48329
|
-
function
|
|
48174
|
+
function ut(e2, t2) {
|
|
48330
48175
|
const n2 = getComputedStyle(e2.ownerDocument.body), o = parseFloat(n2.fontSize);
|
|
48331
48176
|
return t2 * o;
|
|
48332
48177
|
}
|
|
48333
|
-
function
|
|
48178
|
+
function ct(e2) {
|
|
48334
48179
|
return e2 / 100 * window.innerHeight;
|
|
48335
48180
|
}
|
|
48336
|
-
function
|
|
48181
|
+
function ft(e2) {
|
|
48337
48182
|
return e2 / 100 * window.innerWidth;
|
|
48338
48183
|
}
|
|
48339
|
-
function
|
|
48184
|
+
function dt(e2) {
|
|
48340
48185
|
switch (typeof e2) {
|
|
48341
48186
|
case "number":
|
|
48342
48187
|
return [e2, "px"];
|
|
@@ -48352,7 +48197,7 @@ function re({
|
|
|
48352
48197
|
styleProp: n2
|
|
48353
48198
|
}) {
|
|
48354
48199
|
let o;
|
|
48355
|
-
const [i2, s] =
|
|
48200
|
+
const [i2, s] = dt(n2);
|
|
48356
48201
|
switch (s) {
|
|
48357
48202
|
case "%": {
|
|
48358
48203
|
o = i2 / 100 * e2;
|
|
@@ -48363,33 +48208,40 @@ function re({
|
|
|
48363
48208
|
break;
|
|
48364
48209
|
}
|
|
48365
48210
|
case "rem": {
|
|
48366
|
-
o =
|
|
48211
|
+
o = ut(t2, i2);
|
|
48367
48212
|
break;
|
|
48368
48213
|
}
|
|
48369
48214
|
case "em": {
|
|
48370
|
-
o =
|
|
48215
|
+
o = lt(t2, i2);
|
|
48371
48216
|
break;
|
|
48372
48217
|
}
|
|
48373
48218
|
case "vh": {
|
|
48374
|
-
o =
|
|
48219
|
+
o = ct(i2);
|
|
48375
48220
|
break;
|
|
48376
48221
|
}
|
|
48377
48222
|
case "vw": {
|
|
48378
|
-
o =
|
|
48223
|
+
o = ft(i2);
|
|
48379
48224
|
break;
|
|
48380
48225
|
}
|
|
48381
48226
|
}
|
|
48382
48227
|
return o;
|
|
48383
48228
|
}
|
|
48384
|
-
function
|
|
48229
|
+
function _(e2) {
|
|
48385
48230
|
return parseFloat(e2.toFixed(3));
|
|
48386
48231
|
}
|
|
48387
|
-
function
|
|
48388
|
-
|
|
48232
|
+
function J({
|
|
48233
|
+
group: e2
|
|
48234
|
+
}) {
|
|
48235
|
+
const { orientation: t2, panels: n2 } = e2;
|
|
48236
|
+
return n2.reduce((o, i2) => (o += t2 === "horizontal" ? i2.element.offsetWidth : i2.element.offsetHeight, o), 0);
|
|
48237
|
+
}
|
|
48238
|
+
function pe(e2) {
|
|
48239
|
+
const { panels: t2 } = e2, n2 = J({ group: e2 });
|
|
48389
48240
|
return n2 === 0 ? t2.map((o) => ({
|
|
48390
48241
|
collapsedSize: 0,
|
|
48391
48242
|
collapsible: o.panelConstraints.collapsible === !0,
|
|
48392
48243
|
defaultSize: void 0,
|
|
48244
|
+
disabled: o.panelConstraints.disabled,
|
|
48393
48245
|
minSize: 0,
|
|
48394
48246
|
maxSize: 100,
|
|
48395
48247
|
panelId: o.id
|
|
@@ -48402,7 +48254,7 @@ function ve(e2) {
|
|
|
48402
48254
|
panelElement: i2,
|
|
48403
48255
|
styleProp: s.collapsedSize
|
|
48404
48256
|
});
|
|
48405
|
-
l =
|
|
48257
|
+
l = _(c2 / n2 * 100);
|
|
48406
48258
|
}
|
|
48407
48259
|
let r2;
|
|
48408
48260
|
if (s.defaultSize !== void 0) {
|
|
@@ -48411,7 +48263,7 @@ function ve(e2) {
|
|
|
48411
48263
|
panelElement: i2,
|
|
48412
48264
|
styleProp: s.defaultSize
|
|
48413
48265
|
});
|
|
48414
|
-
r2 =
|
|
48266
|
+
r2 = _(c2 / n2 * 100);
|
|
48415
48267
|
}
|
|
48416
48268
|
let a2 = 0;
|
|
48417
48269
|
if (s.minSize !== void 0) {
|
|
@@ -48420,7 +48272,7 @@ function ve(e2) {
|
|
|
48420
48272
|
panelElement: i2,
|
|
48421
48273
|
styleProp: s.minSize
|
|
48422
48274
|
});
|
|
48423
|
-
a2 =
|
|
48275
|
+
a2 = _(c2 / n2 * 100);
|
|
48424
48276
|
}
|
|
48425
48277
|
let u = 100;
|
|
48426
48278
|
if (s.maxSize !== void 0) {
|
|
@@ -48429,19 +48281,190 @@ function ve(e2) {
|
|
|
48429
48281
|
panelElement: i2,
|
|
48430
48282
|
styleProp: s.maxSize
|
|
48431
48283
|
});
|
|
48432
|
-
u =
|
|
48284
|
+
u = _(c2 / n2 * 100);
|
|
48433
48285
|
}
|
|
48434
48286
|
return {
|
|
48435
48287
|
collapsedSize: l,
|
|
48436
48288
|
collapsible: s.collapsible === !0,
|
|
48437
48289
|
defaultSize: r2,
|
|
48290
|
+
disabled: s.disabled,
|
|
48438
48291
|
minSize: a2,
|
|
48439
48292
|
maxSize: u,
|
|
48440
48293
|
panelId: o.id
|
|
48441
48294
|
};
|
|
48442
48295
|
});
|
|
48443
48296
|
}
|
|
48444
|
-
|
|
48297
|
+
function P(e2, t2 = "Assertion error") {
|
|
48298
|
+
if (!e2)
|
|
48299
|
+
throw Error(t2);
|
|
48300
|
+
}
|
|
48301
|
+
function he(e2, t2) {
|
|
48302
|
+
return Array.from(t2).sort(
|
|
48303
|
+
e2 === "horizontal" ? pt : ht
|
|
48304
|
+
);
|
|
48305
|
+
}
|
|
48306
|
+
function pt(e2, t2) {
|
|
48307
|
+
const n2 = e2.element.offsetLeft - t2.element.offsetLeft;
|
|
48308
|
+
return n2 !== 0 ? n2 : e2.element.offsetWidth - t2.element.offsetWidth;
|
|
48309
|
+
}
|
|
48310
|
+
function ht(e2, t2) {
|
|
48311
|
+
const n2 = e2.element.offsetTop - t2.element.offsetTop;
|
|
48312
|
+
return n2 !== 0 ? n2 : e2.element.offsetHeight - t2.element.offsetHeight;
|
|
48313
|
+
}
|
|
48314
|
+
function $e(e2) {
|
|
48315
|
+
return e2 !== null && typeof e2 == "object" && "nodeType" in e2 && e2.nodeType === Node.ELEMENT_NODE;
|
|
48316
|
+
}
|
|
48317
|
+
function He(e2, t2) {
|
|
48318
|
+
return {
|
|
48319
|
+
x: e2.x >= t2.left && e2.x <= t2.right ? 0 : Math.min(
|
|
48320
|
+
Math.abs(e2.x - t2.left),
|
|
48321
|
+
Math.abs(e2.x - t2.right)
|
|
48322
|
+
),
|
|
48323
|
+
y: e2.y >= t2.top && e2.y <= t2.bottom ? 0 : Math.min(
|
|
48324
|
+
Math.abs(e2.y - t2.top),
|
|
48325
|
+
Math.abs(e2.y - t2.bottom)
|
|
48326
|
+
)
|
|
48327
|
+
};
|
|
48328
|
+
}
|
|
48329
|
+
function mt({
|
|
48330
|
+
orientation: e2,
|
|
48331
|
+
rects: t2,
|
|
48332
|
+
targetRect: n2
|
|
48333
|
+
}) {
|
|
48334
|
+
const o = {
|
|
48335
|
+
x: n2.x + n2.width / 2,
|
|
48336
|
+
y: n2.y + n2.height / 2
|
|
48337
|
+
};
|
|
48338
|
+
let i2, s = Number.MAX_VALUE;
|
|
48339
|
+
for (const l of t2) {
|
|
48340
|
+
const { x: r2, y: a2 } = He(o, l), u = e2 === "horizontal" ? r2 : a2;
|
|
48341
|
+
u < s && (s = u, i2 = l);
|
|
48342
|
+
}
|
|
48343
|
+
return P(i2, "No rect found"), i2;
|
|
48344
|
+
}
|
|
48345
|
+
let se;
|
|
48346
|
+
function gt() {
|
|
48347
|
+
return se === void 0 && (typeof matchMedia == "function" ? se = !!matchMedia("(pointer:coarse)").matches : se = !1), se;
|
|
48348
|
+
}
|
|
48349
|
+
function Ve(e2) {
|
|
48350
|
+
const { element: t2, orientation: n2, panels: o, separators: i2 } = e2, s = he(
|
|
48351
|
+
n2,
|
|
48352
|
+
Array.from(t2.children).filter($e).map((m2) => ({ element: m2 }))
|
|
48353
|
+
).map(({ element: m2 }) => m2), l = [];
|
|
48354
|
+
let r2 = !1, a2 = !1, u = -1, c2 = -1, g = 0, b, S = [];
|
|
48355
|
+
{
|
|
48356
|
+
let m2 = -1;
|
|
48357
|
+
for (const d of s)
|
|
48358
|
+
d.hasAttribute("data-panel") && (m2++, d.ariaDisabled === null && (g++, u === -1 && (u = m2), c2 = m2));
|
|
48359
|
+
}
|
|
48360
|
+
if (g > 1) {
|
|
48361
|
+
let m2 = -1;
|
|
48362
|
+
for (const d of s)
|
|
48363
|
+
if (d.hasAttribute("data-panel")) {
|
|
48364
|
+
m2++;
|
|
48365
|
+
const f = o.find(
|
|
48366
|
+
(h2) => h2.element === d
|
|
48367
|
+
);
|
|
48368
|
+
if (f) {
|
|
48369
|
+
if (b) {
|
|
48370
|
+
const h2 = b.element.getBoundingClientRect(), v = d.getBoundingClientRect();
|
|
48371
|
+
let x2;
|
|
48372
|
+
if (a2) {
|
|
48373
|
+
const y2 = n2 === "horizontal" ? new DOMRect(
|
|
48374
|
+
h2.right,
|
|
48375
|
+
h2.top,
|
|
48376
|
+
0,
|
|
48377
|
+
h2.height
|
|
48378
|
+
) : new DOMRect(
|
|
48379
|
+
h2.left,
|
|
48380
|
+
h2.bottom,
|
|
48381
|
+
h2.width,
|
|
48382
|
+
0
|
|
48383
|
+
), p = n2 === "horizontal" ? new DOMRect(v.left, v.top, 0, v.height) : new DOMRect(v.left, v.top, v.width, 0);
|
|
48384
|
+
switch (S.length) {
|
|
48385
|
+
case 0: {
|
|
48386
|
+
x2 = [
|
|
48387
|
+
y2,
|
|
48388
|
+
p
|
|
48389
|
+
];
|
|
48390
|
+
break;
|
|
48391
|
+
}
|
|
48392
|
+
case 1: {
|
|
48393
|
+
const w = S[0], C2 = mt({
|
|
48394
|
+
orientation: n2,
|
|
48395
|
+
rects: [h2, v],
|
|
48396
|
+
targetRect: w.element.getBoundingClientRect()
|
|
48397
|
+
});
|
|
48398
|
+
x2 = [
|
|
48399
|
+
w,
|
|
48400
|
+
C2 === h2 ? p : y2
|
|
48401
|
+
];
|
|
48402
|
+
break;
|
|
48403
|
+
}
|
|
48404
|
+
default: {
|
|
48405
|
+
x2 = S;
|
|
48406
|
+
break;
|
|
48407
|
+
}
|
|
48408
|
+
}
|
|
48409
|
+
} else
|
|
48410
|
+
S.length ? x2 = S : x2 = [
|
|
48411
|
+
n2 === "horizontal" ? new DOMRect(
|
|
48412
|
+
h2.right,
|
|
48413
|
+
v.top,
|
|
48414
|
+
v.left - h2.right,
|
|
48415
|
+
v.height
|
|
48416
|
+
) : new DOMRect(
|
|
48417
|
+
v.left,
|
|
48418
|
+
h2.bottom,
|
|
48419
|
+
v.width,
|
|
48420
|
+
v.top - h2.bottom
|
|
48421
|
+
)
|
|
48422
|
+
];
|
|
48423
|
+
for (const y2 of x2) {
|
|
48424
|
+
let p = "width" in y2 ? y2 : y2.element.getBoundingClientRect();
|
|
48425
|
+
const w = gt() ? e2.resizeTargetMinimumSize.coarse : e2.resizeTargetMinimumSize.fine;
|
|
48426
|
+
if (p.width < w) {
|
|
48427
|
+
const R = w - p.width;
|
|
48428
|
+
p = new DOMRect(
|
|
48429
|
+
p.x - R / 2,
|
|
48430
|
+
p.y,
|
|
48431
|
+
p.width + R,
|
|
48432
|
+
p.height
|
|
48433
|
+
);
|
|
48434
|
+
}
|
|
48435
|
+
if (p.height < w) {
|
|
48436
|
+
const R = w - p.height;
|
|
48437
|
+
p = new DOMRect(
|
|
48438
|
+
p.x,
|
|
48439
|
+
p.y - R / 2,
|
|
48440
|
+
p.width,
|
|
48441
|
+
p.height + R
|
|
48442
|
+
);
|
|
48443
|
+
}
|
|
48444
|
+
const C2 = m2 <= u || m2 > c2;
|
|
48445
|
+
!r2 && !C2 && l.push({
|
|
48446
|
+
group: e2,
|
|
48447
|
+
groupSize: J({ group: e2 }),
|
|
48448
|
+
panels: [b, f],
|
|
48449
|
+
separator: "width" in y2 ? void 0 : y2,
|
|
48450
|
+
rect: p
|
|
48451
|
+
}), r2 = !1;
|
|
48452
|
+
}
|
|
48453
|
+
}
|
|
48454
|
+
a2 = !1, b = f, S = [];
|
|
48455
|
+
}
|
|
48456
|
+
} else if (d.hasAttribute("data-separator")) {
|
|
48457
|
+
d.ariaDisabled !== null && (r2 = !0);
|
|
48458
|
+
const f = i2.find(
|
|
48459
|
+
(h2) => h2.element === d
|
|
48460
|
+
);
|
|
48461
|
+
f ? S.push(f) : (b = void 0, S = []);
|
|
48462
|
+
} else
|
|
48463
|
+
a2 = !0;
|
|
48464
|
+
}
|
|
48465
|
+
return l;
|
|
48466
|
+
}
|
|
48467
|
+
class yt {
|
|
48445
48468
|
#e = {};
|
|
48446
48469
|
addListener(t2, n2) {
|
|
48447
48470
|
const o = this.#e[t2];
|
|
@@ -48480,37 +48503,37 @@ class ht {
|
|
|
48480
48503
|
}
|
|
48481
48504
|
}
|
|
48482
48505
|
}
|
|
48483
|
-
function
|
|
48484
|
-
return Math.abs(
|
|
48506
|
+
function k(e2, t2, n2 = 0) {
|
|
48507
|
+
return Math.abs(_(e2) - _(t2)) <= n2;
|
|
48485
48508
|
}
|
|
48486
|
-
let
|
|
48509
|
+
let A = {
|
|
48487
48510
|
cursorFlags: 0,
|
|
48488
48511
|
interactionState: {
|
|
48489
48512
|
state: "inactive"
|
|
48490
48513
|
},
|
|
48491
48514
|
mountedGroups: /* @__PURE__ */ new Map()
|
|
48492
48515
|
};
|
|
48493
|
-
const
|
|
48516
|
+
const $ = new yt();
|
|
48494
48517
|
function G() {
|
|
48495
|
-
return
|
|
48496
|
-
}
|
|
48497
|
-
function
|
|
48498
|
-
const t2 = typeof e2 == "function" ? e2(
|
|
48499
|
-
if (
|
|
48500
|
-
return
|
|
48501
|
-
const n2 =
|
|
48502
|
-
return
|
|
48503
|
-
...
|
|
48518
|
+
return A;
|
|
48519
|
+
}
|
|
48520
|
+
function I(e2) {
|
|
48521
|
+
const t2 = typeof e2 == "function" ? e2(A) : e2;
|
|
48522
|
+
if (A === t2)
|
|
48523
|
+
return A;
|
|
48524
|
+
const n2 = A;
|
|
48525
|
+
return A = {
|
|
48526
|
+
...A,
|
|
48504
48527
|
...t2
|
|
48505
|
-
}, t2.cursorFlags !== void 0 &&
|
|
48528
|
+
}, t2.cursorFlags !== void 0 && $.emit("cursorFlagsChange", A.cursorFlags), t2.interactionState !== void 0 && $.emit("interactionStateChange", A.interactionState), t2.mountedGroups !== void 0 && (A.mountedGroups.forEach((o, i2) => {
|
|
48506
48529
|
o.derivedPanelConstraints.forEach((s) => {
|
|
48507
48530
|
if (s.collapsible) {
|
|
48508
48531
|
const { layout: l } = n2.mountedGroups.get(i2) ?? {};
|
|
48509
48532
|
if (l) {
|
|
48510
|
-
const r2 =
|
|
48533
|
+
const r2 = k(
|
|
48511
48534
|
s.collapsedSize,
|
|
48512
48535
|
o.layout[s.panelId]
|
|
48513
|
-
), a2 =
|
|
48536
|
+
), a2 = k(
|
|
48514
48537
|
s.collapsedSize,
|
|
48515
48538
|
l[s.panelId]
|
|
48516
48539
|
);
|
|
@@ -48518,15 +48541,15 @@ function M(e2) {
|
|
|
48518
48541
|
}
|
|
48519
48542
|
}
|
|
48520
48543
|
});
|
|
48521
|
-
}),
|
|
48544
|
+
}), $.emit("mountedGroupsChange", A.mountedGroups)), A;
|
|
48522
48545
|
}
|
|
48523
|
-
function
|
|
48546
|
+
function St(e2, t2, n2) {
|
|
48524
48547
|
let o, i2 = {
|
|
48525
48548
|
x: 1 / 0,
|
|
48526
48549
|
y: 1 / 0
|
|
48527
48550
|
};
|
|
48528
48551
|
for (const s of t2) {
|
|
48529
|
-
const l =
|
|
48552
|
+
const l = He(n2, s.rect);
|
|
48530
48553
|
switch (e2) {
|
|
48531
48554
|
case "horizontal": {
|
|
48532
48555
|
l.x <= i2.x && (o = s, i2 = l);
|
|
@@ -48543,25 +48566,25 @@ function mt(e2, t2, n2) {
|
|
|
48543
48566
|
hitRegion: o
|
|
48544
48567
|
} : void 0;
|
|
48545
48568
|
}
|
|
48546
|
-
function
|
|
48569
|
+
function vt(e2) {
|
|
48547
48570
|
return e2 !== null && typeof e2 == "object" && "nodeType" in e2 && e2.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
48548
48571
|
}
|
|
48549
|
-
function
|
|
48572
|
+
function xt(e2, t2) {
|
|
48550
48573
|
if (e2 === t2) throw new Error("Cannot compare node with itself");
|
|
48551
48574
|
const n2 = {
|
|
48552
|
-
a:
|
|
48553
|
-
b:
|
|
48575
|
+
a: we(e2),
|
|
48576
|
+
b: we(t2)
|
|
48554
48577
|
};
|
|
48555
48578
|
let o;
|
|
48556
48579
|
for (; n2.a.at(-1) === n2.b.at(-1); )
|
|
48557
|
-
|
|
48558
|
-
|
|
48580
|
+
o = n2.a.pop(), n2.b.pop();
|
|
48581
|
+
P(
|
|
48559
48582
|
o,
|
|
48560
48583
|
"Stacking order can only be calculated for elements with a common ancestor"
|
|
48561
48584
|
);
|
|
48562
48585
|
const i2 = {
|
|
48563
|
-
a:
|
|
48564
|
-
b:
|
|
48586
|
+
a: be(ze(n2.a)),
|
|
48587
|
+
b: be(ze(n2.b))
|
|
48565
48588
|
};
|
|
48566
48589
|
if (i2.a === i2.b) {
|
|
48567
48590
|
const s = o.childNodes, l = {
|
|
@@ -48577,75 +48600,75 @@ function yt(e2, t2) {
|
|
|
48577
48600
|
}
|
|
48578
48601
|
return Math.sign(i2.a - i2.b);
|
|
48579
48602
|
}
|
|
48580
|
-
const
|
|
48581
|
-
function
|
|
48582
|
-
const t2 = getComputedStyle(
|
|
48603
|
+
const zt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
48604
|
+
function bt(e2) {
|
|
48605
|
+
const t2 = getComputedStyle(je(e2) ?? e2).display;
|
|
48583
48606
|
return t2 === "flex" || t2 === "inline-flex";
|
|
48584
48607
|
}
|
|
48585
|
-
function
|
|
48608
|
+
function wt(e2) {
|
|
48586
48609
|
const t2 = getComputedStyle(e2);
|
|
48587
|
-
return !!(t2.position === "fixed" || t2.zIndex !== "auto" && (t2.position !== "static" ||
|
|
48610
|
+
return !!(t2.position === "fixed" || t2.zIndex !== "auto" && (t2.position !== "static" || bt(e2)) || +t2.opacity < 1 || "transform" in t2 && t2.transform !== "none" || "webkitTransform" in t2 && t2.webkitTransform !== "none" || "mixBlendMode" in t2 && t2.mixBlendMode !== "normal" || "filter" in t2 && t2.filter !== "none" || "webkitFilter" in t2 && t2.webkitFilter !== "none" || "isolation" in t2 && t2.isolation === "isolate" || zt.test(t2.willChange) || t2.webkitOverflowScrolling === "touch");
|
|
48588
48611
|
}
|
|
48589
48612
|
function ze(e2) {
|
|
48590
48613
|
let t2 = e2.length;
|
|
48591
48614
|
for (; t2--; ) {
|
|
48592
48615
|
const n2 = e2[t2];
|
|
48593
|
-
if (
|
|
48616
|
+
if (P(n2, "Missing node"), wt(n2)) return n2;
|
|
48594
48617
|
}
|
|
48595
48618
|
return null;
|
|
48596
48619
|
}
|
|
48597
|
-
function
|
|
48620
|
+
function be(e2) {
|
|
48598
48621
|
return e2 && Number(getComputedStyle(e2).zIndex) || 0;
|
|
48599
48622
|
}
|
|
48600
|
-
function
|
|
48623
|
+
function we(e2) {
|
|
48601
48624
|
const t2 = [];
|
|
48602
48625
|
for (; e2; )
|
|
48603
|
-
t2.push(e2), e2 =
|
|
48626
|
+
t2.push(e2), e2 = je(e2);
|
|
48604
48627
|
return t2;
|
|
48605
48628
|
}
|
|
48606
|
-
function
|
|
48629
|
+
function je(e2) {
|
|
48607
48630
|
const { parentNode: t2 } = e2;
|
|
48608
|
-
return
|
|
48631
|
+
return vt(t2) ? t2.host : t2;
|
|
48609
48632
|
}
|
|
48610
|
-
function
|
|
48633
|
+
function Lt(e2, t2) {
|
|
48611
48634
|
return e2.x < t2.x + t2.width && e2.x + e2.width > t2.x && e2.y < t2.y + t2.height && e2.y + e2.height > t2.y;
|
|
48612
48635
|
}
|
|
48613
|
-
function
|
|
48636
|
+
function Pt({
|
|
48614
48637
|
groupElement: e2,
|
|
48615
48638
|
hitRegion: t2,
|
|
48616
48639
|
pointerEventTarget: n2
|
|
48617
48640
|
}) {
|
|
48618
|
-
if (
|
|
48641
|
+
if (!$e(n2) || n2.contains(e2) || e2.contains(n2))
|
|
48619
48642
|
return !0;
|
|
48620
|
-
if (
|
|
48643
|
+
if (xt(n2, e2) > 0) {
|
|
48621
48644
|
let o = n2;
|
|
48622
48645
|
for (; o; ) {
|
|
48623
48646
|
if (o.contains(e2))
|
|
48624
48647
|
return !0;
|
|
48625
|
-
if (
|
|
48648
|
+
if (Lt(o.getBoundingClientRect(), t2))
|
|
48626
48649
|
return !1;
|
|
48627
48650
|
o = o.parentElement;
|
|
48628
48651
|
}
|
|
48629
48652
|
}
|
|
48630
48653
|
return !0;
|
|
48631
48654
|
}
|
|
48632
|
-
function
|
|
48655
|
+
function me(e2, t2) {
|
|
48633
48656
|
const n2 = [];
|
|
48634
48657
|
return t2.forEach((o, i2) => {
|
|
48635
48658
|
if (i2.disabled)
|
|
48636
48659
|
return;
|
|
48637
|
-
const s =
|
|
48660
|
+
const s = Ve(i2), l = St(i2.orientation, s, {
|
|
48638
48661
|
x: e2.clientX,
|
|
48639
48662
|
y: e2.clientY
|
|
48640
48663
|
});
|
|
48641
|
-
l && l.distance.x <= 0 && l.distance.y <= 0 &&
|
|
48664
|
+
l && l.distance.x <= 0 && l.distance.y <= 0 && Pt({
|
|
48642
48665
|
groupElement: i2.element,
|
|
48643
48666
|
hitRegion: l.hitRegion.rect,
|
|
48644
48667
|
pointerEventTarget: e2.target
|
|
48645
48668
|
}) && n2.push(l.hitRegion);
|
|
48646
48669
|
}), n2;
|
|
48647
48670
|
}
|
|
48648
|
-
function
|
|
48671
|
+
function Ct(e2, t2) {
|
|
48649
48672
|
if (e2.length !== t2.length)
|
|
48650
48673
|
return !1;
|
|
48651
48674
|
for (let n2 = 0; n2 < e2.length; n2++)
|
|
@@ -48653,28 +48676,33 @@ function wt(e2, t2) {
|
|
|
48653
48676
|
return !1;
|
|
48654
48677
|
return !0;
|
|
48655
48678
|
}
|
|
48656
|
-
function
|
|
48657
|
-
return
|
|
48679
|
+
function F(e2, t2) {
|
|
48680
|
+
return k(e2, t2) ? 0 : e2 > t2 ? 1 : -1;
|
|
48658
48681
|
}
|
|
48659
|
-
function
|
|
48660
|
-
|
|
48661
|
-
|
|
48682
|
+
function Y({
|
|
48683
|
+
overrideDisabledPanels: e2,
|
|
48684
|
+
panelConstraints: t2,
|
|
48685
|
+
prevSize: n2,
|
|
48686
|
+
size: o
|
|
48662
48687
|
}) {
|
|
48663
48688
|
const {
|
|
48664
|
-
collapsedSize:
|
|
48665
|
-
collapsible:
|
|
48666
|
-
|
|
48667
|
-
|
|
48668
|
-
|
|
48669
|
-
|
|
48670
|
-
|
|
48671
|
-
|
|
48672
|
-
|
|
48689
|
+
collapsedSize: i2 = 0,
|
|
48690
|
+
collapsible: s,
|
|
48691
|
+
disabled: l,
|
|
48692
|
+
maxSize: r2 = 100,
|
|
48693
|
+
minSize: a2 = 0
|
|
48694
|
+
} = t2;
|
|
48695
|
+
if (l && !e2)
|
|
48696
|
+
return n2;
|
|
48697
|
+
if (F(o, a2) < 0)
|
|
48698
|
+
if (s) {
|
|
48699
|
+
const u = (i2 + a2) / 2;
|
|
48700
|
+
F(o, u) < 0 ? o = i2 : o = a2;
|
|
48673
48701
|
} else
|
|
48674
|
-
|
|
48675
|
-
return
|
|
48702
|
+
o = a2;
|
|
48703
|
+
return o = Math.min(r2, o), o = _(o), o;
|
|
48676
48704
|
}
|
|
48677
|
-
function
|
|
48705
|
+
function oe({
|
|
48678
48706
|
delta: e2,
|
|
48679
48707
|
initialLayout: t2,
|
|
48680
48708
|
panelConstraints: n2,
|
|
@@ -48682,147 +48710,175 @@ function J({
|
|
|
48682
48710
|
prevLayout: i2,
|
|
48683
48711
|
trigger: s
|
|
48684
48712
|
}) {
|
|
48685
|
-
if (
|
|
48713
|
+
if (k(e2, 0))
|
|
48686
48714
|
return t2;
|
|
48687
|
-
const l = Object.values(t2),
|
|
48688
|
-
|
|
48689
|
-
let
|
|
48690
|
-
|
|
48691
|
-
{
|
|
48692
|
-
|
|
48693
|
-
|
|
48694
|
-
|
|
48695
|
-
|
|
48696
|
-
|
|
48697
|
-
|
|
48698
|
-
|
|
48699
|
-
|
|
48700
|
-
|
|
48701
|
-
|
|
48702
|
-
|
|
48703
|
-
|
|
48704
|
-
|
|
48705
|
-
|
|
48706
|
-
|
|
48707
|
-
|
|
48708
|
-
|
|
48709
|
-
|
|
48715
|
+
const l = s === "imperative-api", r2 = Object.values(t2), a2 = Object.values(i2), u = [...r2], [c2, g] = o;
|
|
48716
|
+
P(c2 != null, "Invalid first pivot index"), P(g != null, "Invalid second pivot index");
|
|
48717
|
+
let b = 0;
|
|
48718
|
+
switch (s) {
|
|
48719
|
+
case "keyboard": {
|
|
48720
|
+
{
|
|
48721
|
+
const d = e2 < 0 ? g : c2, f = n2[d];
|
|
48722
|
+
P(
|
|
48723
|
+
f,
|
|
48724
|
+
`Panel constraints not found for index ${d}`
|
|
48725
|
+
);
|
|
48726
|
+
const {
|
|
48727
|
+
collapsedSize: h2 = 0,
|
|
48728
|
+
collapsible: v,
|
|
48729
|
+
minSize: x2 = 0
|
|
48730
|
+
} = f;
|
|
48731
|
+
if (v) {
|
|
48732
|
+
const y2 = r2[d];
|
|
48733
|
+
if (P(
|
|
48734
|
+
y2 != null,
|
|
48735
|
+
`Previous layout not found for panel index ${d}`
|
|
48736
|
+
), k(y2, h2)) {
|
|
48737
|
+
const p = x2 - y2;
|
|
48738
|
+
F(p, Math.abs(e2)) > 0 && (e2 = e2 < 0 ? 0 - p : p);
|
|
48739
|
+
}
|
|
48740
|
+
}
|
|
48741
|
+
}
|
|
48742
|
+
{
|
|
48743
|
+
const d = e2 < 0 ? c2 : g, f = n2[d];
|
|
48744
|
+
P(
|
|
48745
|
+
f,
|
|
48746
|
+
`No panel constraints found for index ${d}`
|
|
48747
|
+
);
|
|
48748
|
+
const {
|
|
48749
|
+
collapsedSize: h2 = 0,
|
|
48750
|
+
collapsible: v,
|
|
48751
|
+
minSize: x2 = 0
|
|
48752
|
+
} = f;
|
|
48753
|
+
if (v) {
|
|
48754
|
+
const y2 = r2[d];
|
|
48755
|
+
if (P(
|
|
48756
|
+
y2 != null,
|
|
48757
|
+
`Previous layout not found for panel index ${d}`
|
|
48758
|
+
), k(y2, x2)) {
|
|
48759
|
+
const p = y2 - h2;
|
|
48760
|
+
F(p, Math.abs(e2)) > 0 && (e2 = e2 < 0 ? 0 - p : p);
|
|
48761
|
+
}
|
|
48710
48762
|
}
|
|
48711
48763
|
}
|
|
48764
|
+
break;
|
|
48712
48765
|
}
|
|
48713
|
-
{
|
|
48714
|
-
const
|
|
48715
|
-
|
|
48716
|
-
|
|
48717
|
-
`
|
|
48766
|
+
default: {
|
|
48767
|
+
const d = e2 < 0 ? g : c2, f = n2[d];
|
|
48768
|
+
P(
|
|
48769
|
+
f,
|
|
48770
|
+
`Panel constraints not found for index ${d}`
|
|
48718
48771
|
);
|
|
48719
|
-
const {
|
|
48720
|
-
|
|
48721
|
-
|
|
48722
|
-
|
|
48723
|
-
|
|
48724
|
-
|
|
48725
|
-
|
|
48726
|
-
|
|
48727
|
-
z2 != null,
|
|
48728
|
-
`Previous layout not found for panel index ${f}`
|
|
48729
|
-
), R(z2, v)) {
|
|
48730
|
-
const S = z2 - p;
|
|
48731
|
-
Z(S, Math.abs(e2)) > 0 && (e2 = e2 < 0 ? 0 - S : S);
|
|
48772
|
+
const h2 = r2[d], { collapsible: v, collapsedSize: x2, minSize: y2 } = f;
|
|
48773
|
+
if (v && F(h2, y2) < 0)
|
|
48774
|
+
if (e2 > 0) {
|
|
48775
|
+
const p = y2 - x2, w = p / 2, C2 = h2 + e2;
|
|
48776
|
+
F(C2, y2) < 0 && (e2 = F(e2, w) <= 0 ? 0 : p);
|
|
48777
|
+
} else {
|
|
48778
|
+
const p = y2 - x2, w = 100 - p / 2, C2 = h2 - e2;
|
|
48779
|
+
F(C2, y2) < 0 && (e2 = F(100 + e2, w) > 0 ? 0 : -p);
|
|
48732
48780
|
}
|
|
48733
|
-
|
|
48781
|
+
break;
|
|
48734
48782
|
}
|
|
48735
48783
|
}
|
|
48736
48784
|
{
|
|
48737
|
-
const
|
|
48738
|
-
let
|
|
48785
|
+
const d = e2 < 0 ? 1 : -1;
|
|
48786
|
+
let f = e2 < 0 ? g : c2, h2 = 0;
|
|
48739
48787
|
for (; ; ) {
|
|
48740
|
-
const
|
|
48741
|
-
|
|
48742
|
-
|
|
48743
|
-
`Previous layout not found for panel index ${
|
|
48788
|
+
const x2 = r2[f];
|
|
48789
|
+
P(
|
|
48790
|
+
x2 != null,
|
|
48791
|
+
`Previous layout not found for panel index ${f}`
|
|
48744
48792
|
);
|
|
48745
|
-
const
|
|
48746
|
-
|
|
48793
|
+
const p = Y({
|
|
48794
|
+
overrideDisabledPanels: l,
|
|
48795
|
+
panelConstraints: n2[f],
|
|
48796
|
+
prevSize: x2,
|
|
48747
48797
|
size: 100
|
|
48748
|
-
}) -
|
|
48749
|
-
if (
|
|
48798
|
+
}) - x2;
|
|
48799
|
+
if (h2 += p, f += d, f < 0 || f >= n2.length)
|
|
48750
48800
|
break;
|
|
48751
48801
|
}
|
|
48752
|
-
const
|
|
48753
|
-
e2 = e2 < 0 ? 0 -
|
|
48802
|
+
const v = Math.min(Math.abs(e2), Math.abs(h2));
|
|
48803
|
+
e2 = e2 < 0 ? 0 - v : v;
|
|
48754
48804
|
}
|
|
48755
48805
|
{
|
|
48756
|
-
let
|
|
48757
|
-
for (;
|
|
48758
|
-
const
|
|
48759
|
-
|
|
48760
|
-
|
|
48761
|
-
`Previous layout not found for panel index ${
|
|
48806
|
+
let f = e2 < 0 ? c2 : g;
|
|
48807
|
+
for (; f >= 0 && f < n2.length; ) {
|
|
48808
|
+
const h2 = Math.abs(e2) - Math.abs(b), v = r2[f];
|
|
48809
|
+
P(
|
|
48810
|
+
v != null,
|
|
48811
|
+
`Previous layout not found for panel index ${f}`
|
|
48762
48812
|
);
|
|
48763
|
-
const
|
|
48764
|
-
|
|
48765
|
-
|
|
48813
|
+
const x2 = v - h2, y2 = Y({
|
|
48814
|
+
overrideDisabledPanels: l,
|
|
48815
|
+
panelConstraints: n2[f],
|
|
48816
|
+
prevSize: v,
|
|
48817
|
+
size: x2
|
|
48766
48818
|
});
|
|
48767
|
-
if (!
|
|
48819
|
+
if (!k(v, y2) && (b += v - y2, u[f] = y2, b.toFixed(3).localeCompare(Math.abs(e2).toFixed(3), void 0, {
|
|
48768
48820
|
numeric: !0
|
|
48769
48821
|
}) >= 0))
|
|
48770
48822
|
break;
|
|
48771
|
-
e2 < 0 ?
|
|
48823
|
+
e2 < 0 ? f-- : f++;
|
|
48772
48824
|
}
|
|
48773
48825
|
}
|
|
48774
|
-
if (
|
|
48826
|
+
if (Ct(a2, u))
|
|
48775
48827
|
return i2;
|
|
48776
48828
|
{
|
|
48777
|
-
const
|
|
48778
|
-
|
|
48779
|
-
|
|
48780
|
-
`Previous layout not found for panel index ${
|
|
48829
|
+
const d = e2 < 0 ? g : c2, f = r2[d];
|
|
48830
|
+
P(
|
|
48831
|
+
f != null,
|
|
48832
|
+
`Previous layout not found for panel index ${d}`
|
|
48781
48833
|
);
|
|
48782
|
-
const
|
|
48783
|
-
|
|
48784
|
-
|
|
48834
|
+
const h2 = f + b, v = Y({
|
|
48835
|
+
overrideDisabledPanels: l,
|
|
48836
|
+
panelConstraints: n2[d],
|
|
48837
|
+
prevSize: f,
|
|
48838
|
+
size: h2
|
|
48785
48839
|
});
|
|
48786
|
-
if (
|
|
48787
|
-
let
|
|
48788
|
-
for (;
|
|
48789
|
-
const w =
|
|
48790
|
-
|
|
48840
|
+
if (u[d] = v, !k(v, h2)) {
|
|
48841
|
+
let x2 = h2 - v, p = e2 < 0 ? g : c2;
|
|
48842
|
+
for (; p >= 0 && p < n2.length; ) {
|
|
48843
|
+
const w = u[p];
|
|
48844
|
+
P(
|
|
48791
48845
|
w != null,
|
|
48792
|
-
`Previous layout not found for panel index ${
|
|
48846
|
+
`Previous layout not found for panel index ${p}`
|
|
48793
48847
|
);
|
|
48794
|
-
const C2 = w +
|
|
48795
|
-
|
|
48848
|
+
const C2 = w + x2, R = Y({
|
|
48849
|
+
overrideDisabledPanels: l,
|
|
48850
|
+
panelConstraints: n2[p],
|
|
48851
|
+
prevSize: w,
|
|
48796
48852
|
size: C2
|
|
48797
48853
|
});
|
|
48798
|
-
if (
|
|
48854
|
+
if (k(w, R) || (x2 -= R - w, u[p] = R), k(x2, 0))
|
|
48799
48855
|
break;
|
|
48800
|
-
e2 > 0 ?
|
|
48856
|
+
e2 > 0 ? p-- : p++;
|
|
48801
48857
|
}
|
|
48802
48858
|
}
|
|
48803
48859
|
}
|
|
48804
|
-
const
|
|
48805
|
-
(
|
|
48860
|
+
const S = Object.values(u).reduce(
|
|
48861
|
+
(d, f) => f + d,
|
|
48806
48862
|
0
|
|
48807
48863
|
);
|
|
48808
|
-
if (!
|
|
48864
|
+
if (!k(S, 100, 0.1))
|
|
48809
48865
|
return i2;
|
|
48810
48866
|
const m2 = Object.keys(i2);
|
|
48811
|
-
return
|
|
48867
|
+
return u.reduce((d, f, h2) => (d[m2[h2]] = f, d), {});
|
|
48812
48868
|
}
|
|
48813
|
-
function
|
|
48869
|
+
function U(e2, t2) {
|
|
48814
48870
|
if (Object.keys(e2).length !== Object.keys(t2).length)
|
|
48815
48871
|
return !1;
|
|
48816
48872
|
for (const n2 in e2)
|
|
48817
|
-
if (t2[n2] === void 0 ||
|
|
48873
|
+
if (t2[n2] === void 0 || F(e2[n2], t2[n2]) !== 0)
|
|
48818
48874
|
return !1;
|
|
48819
48875
|
return !0;
|
|
48820
48876
|
}
|
|
48821
|
-
function
|
|
48877
|
+
function B({
|
|
48822
48878
|
layout: e2,
|
|
48823
48879
|
panelConstraints: t2
|
|
48824
48880
|
}) {
|
|
48825
|
-
const
|
|
48881
|
+
const n2 = Object.values(e2), o = [...n2], i2 = o.reduce(
|
|
48826
48882
|
(r2, a2) => r2 + a2,
|
|
48827
48883
|
0
|
|
48828
48884
|
);
|
|
@@ -48830,38 +48886,44 @@ function F({
|
|
|
48830
48886
|
throw Error(
|
|
48831
48887
|
`Invalid ${t2.length} panel layout: ${o.map((r2) => `${r2}%`).join(", ")}`
|
|
48832
48888
|
);
|
|
48833
|
-
if (!
|
|
48889
|
+
if (!k(i2, 100) && o.length > 0)
|
|
48834
48890
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
48835
48891
|
const a2 = o[r2];
|
|
48836
|
-
|
|
48892
|
+
P(a2 != null, `No layout data found for index ${r2}`);
|
|
48837
48893
|
const u = 100 / i2 * a2;
|
|
48838
48894
|
o[r2] = u;
|
|
48839
48895
|
}
|
|
48840
48896
|
let s = 0;
|
|
48841
48897
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
48842
|
-
const a2 =
|
|
48843
|
-
|
|
48844
|
-
const u =
|
|
48898
|
+
const a2 = n2[r2];
|
|
48899
|
+
P(a2 != null, `No layout data found for index ${r2}`);
|
|
48900
|
+
const u = o[r2];
|
|
48901
|
+
P(u != null, `No layout data found for index ${r2}`);
|
|
48902
|
+
const c2 = Y({
|
|
48903
|
+
overrideDisabledPanels: !0,
|
|
48845
48904
|
panelConstraints: t2[r2],
|
|
48846
|
-
|
|
48905
|
+
prevSize: a2,
|
|
48906
|
+
size: u
|
|
48847
48907
|
});
|
|
48848
|
-
|
|
48908
|
+
u != c2 && (s += u - c2, o[r2] = c2);
|
|
48849
48909
|
}
|
|
48850
|
-
if (!
|
|
48910
|
+
if (!k(s, 0))
|
|
48851
48911
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
48852
48912
|
const a2 = o[r2];
|
|
48853
|
-
|
|
48854
|
-
const u = a2 + s, c2 =
|
|
48913
|
+
P(a2 != null, `No layout data found for index ${r2}`);
|
|
48914
|
+
const u = a2 + s, c2 = Y({
|
|
48915
|
+
overrideDisabledPanels: !0,
|
|
48855
48916
|
panelConstraints: t2[r2],
|
|
48917
|
+
prevSize: a2,
|
|
48856
48918
|
size: u
|
|
48857
48919
|
});
|
|
48858
|
-
if (a2 !== c2 && (s -= c2 - a2, o[r2] = c2,
|
|
48920
|
+
if (a2 !== c2 && (s -= c2 - a2, o[r2] = c2, k(s, 0)))
|
|
48859
48921
|
break;
|
|
48860
48922
|
}
|
|
48861
48923
|
const l = Object.keys(e2);
|
|
48862
48924
|
return o.reduce((r2, a2, u) => (r2[l[u]] = a2, r2), {});
|
|
48863
48925
|
}
|
|
48864
|
-
function
|
|
48926
|
+
function We({
|
|
48865
48927
|
groupId: e2,
|
|
48866
48928
|
panelId: t2
|
|
48867
48929
|
}) {
|
|
@@ -48872,8 +48934,8 @@ function je({
|
|
|
48872
48934
|
{
|
|
48873
48935
|
defaultLayoutDeferred: u,
|
|
48874
48936
|
derivedPanelConstraints: c2,
|
|
48875
|
-
layout:
|
|
48876
|
-
separatorToPanels:
|
|
48937
|
+
layout: g,
|
|
48938
|
+
separatorToPanels: b
|
|
48877
48939
|
}
|
|
48878
48940
|
] of r2)
|
|
48879
48941
|
if (a2.id === e2)
|
|
@@ -48881,8 +48943,8 @@ function je({
|
|
|
48881
48943
|
defaultLayoutDeferred: u,
|
|
48882
48944
|
derivedPanelConstraints: c2,
|
|
48883
48945
|
group: a2,
|
|
48884
|
-
layout:
|
|
48885
|
-
separatorToPanels:
|
|
48946
|
+
layout: g,
|
|
48947
|
+
separatorToPanels: b
|
|
48886
48948
|
};
|
|
48887
48949
|
throw Error(`Group ${e2} not found`);
|
|
48888
48950
|
}, o = () => {
|
|
@@ -48909,26 +48971,26 @@ function je({
|
|
|
48909
48971
|
const {
|
|
48910
48972
|
defaultLayoutDeferred: u,
|
|
48911
48973
|
derivedPanelConstraints: c2,
|
|
48912
|
-
group:
|
|
48913
|
-
layout:
|
|
48914
|
-
separatorToPanels:
|
|
48915
|
-
} = n2(),
|
|
48974
|
+
group: g,
|
|
48975
|
+
layout: b,
|
|
48976
|
+
separatorToPanels: S
|
|
48977
|
+
} = n2(), m2 = g.panels.findIndex((v) => v.id === t2), d = m2 === g.panels.length - 1, f = oe({
|
|
48916
48978
|
delta: d ? a2 - r2 : r2 - a2,
|
|
48917
|
-
initialLayout:
|
|
48979
|
+
initialLayout: b,
|
|
48918
48980
|
panelConstraints: c2,
|
|
48919
|
-
pivotIndices: d ? [
|
|
48920
|
-
prevLayout:
|
|
48981
|
+
pivotIndices: d ? [m2 - 1, m2] : [m2, m2 + 1],
|
|
48982
|
+
prevLayout: b,
|
|
48921
48983
|
trigger: "imperative-api"
|
|
48922
|
-
}),
|
|
48923
|
-
layout:
|
|
48984
|
+
}), h2 = B({
|
|
48985
|
+
layout: f,
|
|
48924
48986
|
panelConstraints: c2
|
|
48925
48987
|
});
|
|
48926
|
-
|
|
48927
|
-
mountedGroups: new Map(v.mountedGroups).set(
|
|
48988
|
+
U(b, h2) || I((v) => ({
|
|
48989
|
+
mountedGroups: new Map(v.mountedGroups).set(g, {
|
|
48928
48990
|
defaultLayoutDeferred: u,
|
|
48929
48991
|
derivedPanelConstraints: c2,
|
|
48930
|
-
layout:
|
|
48931
|
-
separatorToPanels:
|
|
48992
|
+
layout: h2,
|
|
48993
|
+
separatorToPanels: S
|
|
48932
48994
|
})
|
|
48933
48995
|
}));
|
|
48934
48996
|
};
|
|
@@ -48938,10 +49000,10 @@ function je({
|
|
|
48938
49000
|
r2 && c2 !== a2 && (u.expandToSize = c2, l(a2));
|
|
48939
49001
|
},
|
|
48940
49002
|
expand: () => {
|
|
48941
|
-
const { collapsible: r2, collapsedSize: a2, minSize: u } = o(), { mutableValues: c2 } = i2(),
|
|
48942
|
-
if (r2 &&
|
|
48943
|
-
let
|
|
48944
|
-
|
|
49003
|
+
const { collapsible: r2, collapsedSize: a2, minSize: u } = o(), { mutableValues: c2 } = i2(), g = s();
|
|
49004
|
+
if (r2 && g === a2) {
|
|
49005
|
+
let b = c2.expandToSize ?? u;
|
|
49006
|
+
b === 0 && (b = 1), l(b);
|
|
48945
49007
|
}
|
|
48946
49008
|
},
|
|
48947
49009
|
getSize: () => {
|
|
@@ -48953,15 +49015,15 @@ function je({
|
|
|
48953
49015
|
},
|
|
48954
49016
|
isCollapsed: () => {
|
|
48955
49017
|
const { collapsible: r2, collapsedSize: a2 } = o(), u = s();
|
|
48956
|
-
return r2 &&
|
|
49018
|
+
return r2 && k(a2, u);
|
|
48957
49019
|
},
|
|
48958
49020
|
resize: (r2) => {
|
|
48959
49021
|
if (s() !== r2) {
|
|
48960
49022
|
let u;
|
|
48961
49023
|
switch (typeof r2) {
|
|
48962
49024
|
case "number": {
|
|
48963
|
-
const { group: c2 } = n2(),
|
|
48964
|
-
u =
|
|
49025
|
+
const { group: c2 } = n2(), g = J({ group: c2 });
|
|
49026
|
+
u = _(r2 / g * 100);
|
|
48965
49027
|
break;
|
|
48966
49028
|
}
|
|
48967
49029
|
case "string": {
|
|
@@ -48974,17 +49036,17 @@ function je({
|
|
|
48974
49036
|
}
|
|
48975
49037
|
};
|
|
48976
49038
|
}
|
|
48977
|
-
function
|
|
49039
|
+
function Le(e2) {
|
|
48978
49040
|
if (e2.defaultPrevented)
|
|
48979
49041
|
return;
|
|
48980
49042
|
const { mountedGroups: t2 } = G();
|
|
48981
|
-
|
|
49043
|
+
me(e2, t2).forEach((o) => {
|
|
48982
49044
|
if (o.separator) {
|
|
48983
49045
|
const i2 = o.panels.find(
|
|
48984
49046
|
(s) => s.panelConstraints.defaultSize !== void 0
|
|
48985
49047
|
);
|
|
48986
49048
|
if (i2) {
|
|
48987
|
-
const s = i2.panelConstraints.defaultSize, l =
|
|
49049
|
+
const s = i2.panelConstraints.defaultSize, l = We({
|
|
48988
49050
|
groupId: o.group.id,
|
|
48989
49051
|
panelId: i2.id
|
|
48990
49052
|
});
|
|
@@ -48993,7 +49055,7 @@ function we(e2) {
|
|
|
48993
49055
|
}
|
|
48994
49056
|
});
|
|
48995
49057
|
}
|
|
48996
|
-
function
|
|
49058
|
+
function le(e2) {
|
|
48997
49059
|
const { mountedGroups: t2 } = G();
|
|
48998
49060
|
for (const [n2] of t2)
|
|
48999
49061
|
if (n2.separators.some(
|
|
@@ -49002,7 +49064,7 @@ function ae(e2) {
|
|
|
49002
49064
|
return n2;
|
|
49003
49065
|
throw Error("Could not find parent Group for separator element");
|
|
49004
49066
|
}
|
|
49005
|
-
function
|
|
49067
|
+
function Ue({
|
|
49006
49068
|
groupId: e2
|
|
49007
49069
|
}) {
|
|
49008
49070
|
const t2 = () => {
|
|
@@ -49024,11 +49086,11 @@ function Ve({
|
|
|
49024
49086
|
group: s,
|
|
49025
49087
|
layout: l,
|
|
49026
49088
|
separatorToPanels: r2
|
|
49027
|
-
} = t2(), a2 =
|
|
49089
|
+
} = t2(), a2 = B({
|
|
49028
49090
|
layout: n2,
|
|
49029
49091
|
panelConstraints: i2
|
|
49030
49092
|
});
|
|
49031
|
-
return o ? l : (
|
|
49093
|
+
return o ? l : (U(l, a2) || I((u) => ({
|
|
49032
49094
|
mountedGroups: new Map(u.mountedGroups).set(s, {
|
|
49033
49095
|
defaultLayoutDeferred: o,
|
|
49034
49096
|
derivedPanelConstraints: i2,
|
|
@@ -49039,30 +49101,30 @@ function Ve({
|
|
|
49039
49101
|
}
|
|
49040
49102
|
};
|
|
49041
49103
|
}
|
|
49042
|
-
function
|
|
49104
|
+
function Be(e2) {
|
|
49043
49105
|
const { mountedGroups: t2 } = G(), n2 = t2.get(e2);
|
|
49044
|
-
return
|
|
49106
|
+
return P(n2, `Mounted Group ${e2.id} not found`), n2;
|
|
49045
49107
|
}
|
|
49046
|
-
function
|
|
49047
|
-
const n2 =
|
|
49048
|
-
(
|
|
49108
|
+
function W(e2, t2) {
|
|
49109
|
+
const n2 = le(e2), o = Be(n2), i2 = n2.separators.find(
|
|
49110
|
+
(g) => g.element === e2
|
|
49049
49111
|
);
|
|
49050
|
-
|
|
49112
|
+
P(i2, "Matching separator not found");
|
|
49051
49113
|
const s = o.separatorToPanels.get(i2);
|
|
49052
|
-
|
|
49053
|
-
const l = s.map((
|
|
49114
|
+
P(s, "Matching panels not found");
|
|
49115
|
+
const l = s.map((g) => n2.panels.indexOf(g)), a2 = Ue({ groupId: n2.id }).getLayout(), u = oe({
|
|
49054
49116
|
delta: t2,
|
|
49055
49117
|
initialLayout: a2,
|
|
49056
49118
|
panelConstraints: o.derivedPanelConstraints,
|
|
49057
49119
|
pivotIndices: l,
|
|
49058
49120
|
prevLayout: a2,
|
|
49059
49121
|
trigger: "keyboard"
|
|
49060
|
-
}), c2 =
|
|
49122
|
+
}), c2 = B({
|
|
49061
49123
|
layout: u,
|
|
49062
49124
|
panelConstraints: o.derivedPanelConstraints
|
|
49063
49125
|
});
|
|
49064
|
-
|
|
49065
|
-
mountedGroups: new Map(
|
|
49126
|
+
U(a2, c2) || I((g) => ({
|
|
49127
|
+
mountedGroups: new Map(g.mountedGroups).set(n2, {
|
|
49066
49128
|
defaultLayoutDeferred: o.defaultLayoutDeferred,
|
|
49067
49129
|
derivedPanelConstraints: o.derivedPanelConstraints,
|
|
49068
49130
|
layout: c2,
|
|
@@ -49070,63 +49132,63 @@ function _(e2, t2) {
|
|
|
49070
49132
|
})
|
|
49071
49133
|
}));
|
|
49072
49134
|
}
|
|
49073
|
-
function
|
|
49135
|
+
function Pe(e2) {
|
|
49074
49136
|
if (e2.defaultPrevented)
|
|
49075
49137
|
return;
|
|
49076
|
-
const t2 = e2.currentTarget, n2 =
|
|
49138
|
+
const t2 = e2.currentTarget, n2 = le(t2);
|
|
49077
49139
|
if (!n2.disabled)
|
|
49078
49140
|
switch (e2.key) {
|
|
49079
49141
|
case "ArrowDown": {
|
|
49080
|
-
e2.preventDefault(), n2.orientation === "vertical" &&
|
|
49142
|
+
e2.preventDefault(), n2.orientation === "vertical" && W(t2, 5);
|
|
49081
49143
|
break;
|
|
49082
49144
|
}
|
|
49083
49145
|
case "ArrowLeft": {
|
|
49084
|
-
e2.preventDefault(), n2.orientation === "horizontal" &&
|
|
49146
|
+
e2.preventDefault(), n2.orientation === "horizontal" && W(t2, -5);
|
|
49085
49147
|
break;
|
|
49086
49148
|
}
|
|
49087
49149
|
case "ArrowRight": {
|
|
49088
|
-
e2.preventDefault(), n2.orientation === "horizontal" &&
|
|
49150
|
+
e2.preventDefault(), n2.orientation === "horizontal" && W(t2, 5);
|
|
49089
49151
|
break;
|
|
49090
49152
|
}
|
|
49091
49153
|
case "ArrowUp": {
|
|
49092
|
-
e2.preventDefault(), n2.orientation === "vertical" &&
|
|
49154
|
+
e2.preventDefault(), n2.orientation === "vertical" && W(t2, -5);
|
|
49093
49155
|
break;
|
|
49094
49156
|
}
|
|
49095
49157
|
case "End": {
|
|
49096
|
-
e2.preventDefault(),
|
|
49158
|
+
e2.preventDefault(), W(t2, 100);
|
|
49097
49159
|
break;
|
|
49098
49160
|
}
|
|
49099
49161
|
case "Enter": {
|
|
49100
49162
|
e2.preventDefault();
|
|
49101
|
-
const o =
|
|
49102
|
-
(
|
|
49163
|
+
const o = le(t2), { derivedPanelConstraints: i2, layout: s, separatorToPanels: l } = Be(o), r2 = o.separators.find(
|
|
49164
|
+
(g) => g.element === t2
|
|
49103
49165
|
);
|
|
49104
|
-
|
|
49166
|
+
P(r2, "Matching separator not found");
|
|
49105
49167
|
const a2 = l.get(r2);
|
|
49106
|
-
|
|
49168
|
+
P(a2, "Matching panels not found");
|
|
49107
49169
|
const u = a2[0], c2 = i2.find(
|
|
49108
|
-
(
|
|
49170
|
+
(g) => g.panelId === u.id
|
|
49109
49171
|
);
|
|
49110
|
-
if (
|
|
49111
|
-
const
|
|
49112
|
-
|
|
49172
|
+
if (P(c2, "Panel metadata not found"), c2.collapsible) {
|
|
49173
|
+
const g = s[u.id], b = c2.collapsedSize === g ? o.inMemoryLastExpandedPanelSizes[u.id] ?? c2.minSize : c2.collapsedSize;
|
|
49174
|
+
W(t2, b - g);
|
|
49113
49175
|
}
|
|
49114
49176
|
break;
|
|
49115
49177
|
}
|
|
49116
49178
|
case "F6": {
|
|
49117
49179
|
e2.preventDefault();
|
|
49118
|
-
const i2 =
|
|
49180
|
+
const i2 = le(t2).separators.map(
|
|
49119
49181
|
(a2) => a2.element
|
|
49120
49182
|
), s = Array.from(i2).findIndex(
|
|
49121
49183
|
(a2) => a2 === e2.currentTarget
|
|
49122
49184
|
);
|
|
49123
|
-
|
|
49185
|
+
P(s !== null, "Index not found");
|
|
49124
49186
|
const l = e2.shiftKey ? s > 0 ? s - 1 : i2.length - 1 : s + 1 < i2.length ? s + 1 : 0;
|
|
49125
49187
|
i2[l].focus();
|
|
49126
49188
|
break;
|
|
49127
49189
|
}
|
|
49128
49190
|
case "Home": {
|
|
49129
|
-
e2.preventDefault(),
|
|
49191
|
+
e2.preventDefault(), W(t2, -100);
|
|
49130
49192
|
break;
|
|
49131
49193
|
}
|
|
49132
49194
|
}
|
|
@@ -49134,30 +49196,28 @@ function Le(e2) {
|
|
|
49134
49196
|
function Ce(e2) {
|
|
49135
49197
|
if (e2.defaultPrevented || e2.pointerType === "mouse" && e2.button > 0)
|
|
49136
49198
|
return;
|
|
49137
|
-
const { mountedGroups: t2 } = G(), n2 =
|
|
49138
|
-
let
|
|
49139
|
-
n2.forEach((
|
|
49140
|
-
|
|
49141
|
-
|
|
49142
|
-
|
|
49143
|
-
|
|
49144
|
-
u && l.set(a2.group, u.layout);
|
|
49145
|
-
}), M({
|
|
49199
|
+
const { mountedGroups: t2 } = G(), n2 = me(e2, t2), o = /* @__PURE__ */ new Map();
|
|
49200
|
+
let i2 = !1;
|
|
49201
|
+
n2.forEach((s) => {
|
|
49202
|
+
s.separator && (i2 || (i2 = !0, s.separator.element.focus()));
|
|
49203
|
+
const l = t2.get(s.group);
|
|
49204
|
+
l && o.set(s.group, l.layout);
|
|
49205
|
+
}), I({
|
|
49146
49206
|
interactionState: {
|
|
49147
49207
|
hitRegions: n2,
|
|
49148
|
-
initialLayoutMap:
|
|
49208
|
+
initialLayoutMap: o,
|
|
49149
49209
|
pointerDownAtPoint: { x: e2.clientX, y: e2.clientY },
|
|
49150
49210
|
state: "active"
|
|
49151
49211
|
}
|
|
49152
49212
|
}), n2.length && e2.preventDefault();
|
|
49153
49213
|
}
|
|
49154
|
-
const
|
|
49155
|
-
},
|
|
49156
|
-
let
|
|
49157
|
-
function
|
|
49158
|
-
return
|
|
49214
|
+
const Rt = (e2) => e2, fe = () => {
|
|
49215
|
+
}, Ke = 1, Xe = 2, qe = 4, Ye = 8, Re = 3, Me = 12;
|
|
49216
|
+
let ae;
|
|
49217
|
+
function Ee() {
|
|
49218
|
+
return ae === void 0 && (ae = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (ae = !0)), ae;
|
|
49159
49219
|
}
|
|
49160
|
-
function
|
|
49220
|
+
function Mt({
|
|
49161
49221
|
cursorFlags: e2,
|
|
49162
49222
|
groups: t2,
|
|
49163
49223
|
state: n2
|
|
@@ -49180,41 +49240,41 @@ function Ct({
|
|
|
49180
49240
|
}
|
|
49181
49241
|
});
|
|
49182
49242
|
}
|
|
49183
|
-
if (o === 0 && i2 === 0)
|
|
49184
|
-
|
|
49185
|
-
|
|
49186
|
-
|
|
49187
|
-
|
|
49188
|
-
|
|
49189
|
-
|
|
49190
|
-
|
|
49191
|
-
|
|
49192
|
-
|
|
49193
|
-
|
|
49194
|
-
|
|
49195
|
-
|
|
49196
|
-
|
|
49243
|
+
if (!(o === 0 && i2 === 0)) {
|
|
49244
|
+
switch (n2) {
|
|
49245
|
+
case "active": {
|
|
49246
|
+
if (e2 && Ee()) {
|
|
49247
|
+
const s = (e2 & Ke) !== 0, l = (e2 & Xe) !== 0, r2 = (e2 & qe) !== 0, a2 = (e2 & Ye) !== 0;
|
|
49248
|
+
if (s)
|
|
49249
|
+
return r2 ? "se-resize" : a2 ? "ne-resize" : "e-resize";
|
|
49250
|
+
if (l)
|
|
49251
|
+
return r2 ? "sw-resize" : a2 ? "nw-resize" : "w-resize";
|
|
49252
|
+
if (r2)
|
|
49253
|
+
return "s-resize";
|
|
49254
|
+
if (a2)
|
|
49255
|
+
return "n-resize";
|
|
49256
|
+
}
|
|
49257
|
+
break;
|
|
49197
49258
|
}
|
|
49198
|
-
break;
|
|
49199
49259
|
}
|
|
49260
|
+
return Ee() ? o > 0 && i2 > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i2 > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
|
|
49200
49261
|
}
|
|
49201
|
-
return Me() ? o > 0 && i2 > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i2 > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
|
|
49202
49262
|
}
|
|
49203
|
-
const
|
|
49204
|
-
function
|
|
49263
|
+
const ke = /* @__PURE__ */ new WeakMap();
|
|
49264
|
+
function ge(e2) {
|
|
49205
49265
|
if (e2.defaultView === null || e2.defaultView === void 0)
|
|
49206
49266
|
return;
|
|
49207
|
-
let { prevStyle: t2, styleSheet: n2 } =
|
|
49208
|
-
n2 === void 0 && (n2 = new e2.defaultView.CSSStyleSheet(), e2.adoptedStyleSheets.push(n2));
|
|
49267
|
+
let { prevStyle: t2, styleSheet: n2 } = ke.get(e2) ?? {};
|
|
49268
|
+
n2 === void 0 && (n2 = new e2.defaultView.CSSStyleSheet(), e2.adoptedStyleSheets && e2.adoptedStyleSheets.push(n2));
|
|
49209
49269
|
const { cursorFlags: o, interactionState: i2 } = G();
|
|
49210
49270
|
switch (i2.state) {
|
|
49211
49271
|
case "active":
|
|
49212
49272
|
case "hover": {
|
|
49213
|
-
const s =
|
|
49273
|
+
const s = Mt({
|
|
49214
49274
|
cursorFlags: o,
|
|
49215
49275
|
groups: i2.hitRegions.map((r2) => r2.group),
|
|
49216
49276
|
state: i2.state
|
|
49217
|
-
}), l = `*, *:hover {cursor: ${s} !important;
|
|
49277
|
+
}), l = `*, *:hover {cursor: ${s} !important; }`;
|
|
49218
49278
|
if (t2 === l)
|
|
49219
49279
|
return;
|
|
49220
49280
|
t2 = l, s ? n2.cssRules.length === 0 ? n2.insertRule(l) : n2.replaceSync(l) : n2.cssRules.length === 1 && n2.deleteRule(0);
|
|
@@ -49225,12 +49285,12 @@ function he(e2) {
|
|
|
49225
49285
|
break;
|
|
49226
49286
|
}
|
|
49227
49287
|
}
|
|
49228
|
-
|
|
49288
|
+
ke.set(e2, {
|
|
49229
49289
|
prevStyle: t2,
|
|
49230
49290
|
styleSheet: n2
|
|
49231
49291
|
});
|
|
49232
49292
|
}
|
|
49233
|
-
function
|
|
49293
|
+
function Je({
|
|
49234
49294
|
document: e2,
|
|
49235
49295
|
event: t2,
|
|
49236
49296
|
hitRegions: n2,
|
|
@@ -49242,57 +49302,54 @@ function qe({
|
|
|
49242
49302
|
let r2 = 0;
|
|
49243
49303
|
const a2 = new Map(i2);
|
|
49244
49304
|
n2.forEach((c2) => {
|
|
49245
|
-
const { group:
|
|
49246
|
-
let
|
|
49247
|
-
s ?
|
|
49248
|
-
const
|
|
49305
|
+
const { group: g, groupSize: b } = c2, { disableCursor: S, orientation: m2, panels: d } = g;
|
|
49306
|
+
let f = 0;
|
|
49307
|
+
s ? m2 === "horizontal" ? f = (t2.clientX - s.x) / b * 100 : f = (t2.clientY - s.y) / b * 100 : m2 === "horizontal" ? f = t2.clientX < 0 ? -100 : 100 : f = t2.clientY < 0 ? -100 : 100;
|
|
49308
|
+
const h2 = o.get(g), {
|
|
49249
49309
|
defaultLayoutDeferred: v,
|
|
49250
|
-
derivedPanelConstraints:
|
|
49251
|
-
layout:
|
|
49252
|
-
separatorToPanels:
|
|
49253
|
-
} = i2.get(
|
|
49254
|
-
if (
|
|
49255
|
-
const
|
|
49256
|
-
delta:
|
|
49257
|
-
initialLayout:
|
|
49258
|
-
panelConstraints:
|
|
49259
|
-
pivotIndices: c2.panels.map((
|
|
49260
|
-
prevLayout:
|
|
49310
|
+
derivedPanelConstraints: x2,
|
|
49311
|
+
layout: y2,
|
|
49312
|
+
separatorToPanels: p
|
|
49313
|
+
} = i2.get(g) ?? { defaultLayoutDeferred: !1 };
|
|
49314
|
+
if (x2 && h2 && y2 && p) {
|
|
49315
|
+
const w = oe({
|
|
49316
|
+
delta: f,
|
|
49317
|
+
initialLayout: h2,
|
|
49318
|
+
panelConstraints: x2,
|
|
49319
|
+
pivotIndices: c2.panels.map((C2) => d.indexOf(C2)),
|
|
49320
|
+
prevLayout: y2,
|
|
49261
49321
|
trigger: "mouse-or-touch"
|
|
49262
49322
|
});
|
|
49263
|
-
if (
|
|
49264
|
-
if (
|
|
49265
|
-
switch (
|
|
49323
|
+
if (U(w, y2)) {
|
|
49324
|
+
if (f !== 0 && !S)
|
|
49325
|
+
switch (m2) {
|
|
49266
49326
|
case "horizontal": {
|
|
49267
|
-
r2 |=
|
|
49327
|
+
r2 |= f < 0 ? Ke : Xe;
|
|
49268
49328
|
break;
|
|
49269
49329
|
}
|
|
49270
49330
|
case "vertical": {
|
|
49271
|
-
r2 |=
|
|
49331
|
+
r2 |= f < 0 ? qe : Ye;
|
|
49272
49332
|
break;
|
|
49273
49333
|
}
|
|
49274
49334
|
}
|
|
49275
|
-
} else
|
|
49335
|
+
} else
|
|
49276
49336
|
a2.set(c2.group, {
|
|
49277
49337
|
defaultLayoutDeferred: v,
|
|
49278
|
-
derivedPanelConstraints:
|
|
49279
|
-
layout:
|
|
49280
|
-
separatorToPanels:
|
|
49338
|
+
derivedPanelConstraints: x2,
|
|
49339
|
+
layout: w,
|
|
49340
|
+
separatorToPanels: p
|
|
49281
49341
|
});
|
|
49282
|
-
const P = c2.group.panels.map(({ id: T }) => T).join(",");
|
|
49283
|
-
c2.group.inMemoryLayouts[P] = C2;
|
|
49284
|
-
}
|
|
49285
49342
|
}
|
|
49286
49343
|
});
|
|
49287
49344
|
let u = 0;
|
|
49288
|
-
t2.movementX === 0 ? u |= l &
|
|
49345
|
+
t2.movementX === 0 ? u |= l & Re : u |= r2 & Re, t2.movementY === 0 ? u |= l & Me : u |= r2 & Me, I({
|
|
49289
49346
|
cursorFlags: u,
|
|
49290
49347
|
mountedGroups: a2
|
|
49291
|
-
}),
|
|
49348
|
+
}), ge(e2);
|
|
49292
49349
|
}
|
|
49293
|
-
function
|
|
49350
|
+
function Ge(e2) {
|
|
49294
49351
|
const { cursorFlags: t2, interactionState: n2, mountedGroups: o } = G();
|
|
49295
|
-
n2.state === "active" &&
|
|
49352
|
+
n2.state === "active" && Je({
|
|
49296
49353
|
document: e2.currentTarget,
|
|
49297
49354
|
event: e2,
|
|
49298
49355
|
hitRegions: n2.hitRegions,
|
|
@@ -49301,7 +49358,7 @@ function ke(e2) {
|
|
|
49301
49358
|
prevCursorFlags: t2
|
|
49302
49359
|
});
|
|
49303
49360
|
}
|
|
49304
|
-
function
|
|
49361
|
+
function Ie(e2) {
|
|
49305
49362
|
if (e2.defaultPrevented)
|
|
49306
49363
|
return;
|
|
49307
49364
|
const { cursorFlags: t2, interactionState: n2, mountedGroups: o } = G();
|
|
@@ -49311,17 +49368,17 @@ function Ge(e2) {
|
|
|
49311
49368
|
// Skip this check for "pointerleave" events, else Firefox triggers a false positive (see #514)
|
|
49312
49369
|
e2.buttons === 0
|
|
49313
49370
|
) {
|
|
49314
|
-
|
|
49371
|
+
I(
|
|
49315
49372
|
(i2) => i2.interactionState.state === "inactive" ? i2 : {
|
|
49316
49373
|
cursorFlags: 0,
|
|
49317
49374
|
interactionState: { state: "inactive" }
|
|
49318
49375
|
}
|
|
49319
|
-
),
|
|
49376
|
+
), I((i2) => ({
|
|
49320
49377
|
mountedGroups: new Map(i2.mountedGroups)
|
|
49321
49378
|
}));
|
|
49322
49379
|
return;
|
|
49323
49380
|
}
|
|
49324
|
-
|
|
49381
|
+
Je({
|
|
49325
49382
|
document: e2.currentTarget,
|
|
49326
49383
|
event: e2,
|
|
49327
49384
|
hitRegions: n2.hitRegions,
|
|
@@ -49333,65 +49390,75 @@ function Ge(e2) {
|
|
|
49333
49390
|
break;
|
|
49334
49391
|
}
|
|
49335
49392
|
default: {
|
|
49336
|
-
const i2 =
|
|
49337
|
-
i2.length === 0 ? n2.state !== "inactive" &&
|
|
49393
|
+
const i2 = me(e2, o);
|
|
49394
|
+
i2.length === 0 ? n2.state !== "inactive" && I({
|
|
49338
49395
|
interactionState: {
|
|
49339
49396
|
state: "inactive"
|
|
49340
49397
|
}
|
|
49341
|
-
}) :
|
|
49398
|
+
}) : I({
|
|
49342
49399
|
interactionState: {
|
|
49343
49400
|
hitRegions: i2,
|
|
49344
49401
|
state: "hover"
|
|
49345
49402
|
}
|
|
49346
|
-
}),
|
|
49403
|
+
}), ge(e2.currentTarget);
|
|
49347
49404
|
break;
|
|
49348
49405
|
}
|
|
49349
49406
|
}
|
|
49350
49407
|
}
|
|
49351
|
-
function
|
|
49408
|
+
function De(e2) {
|
|
49409
|
+
if (e2.relatedTarget instanceof HTMLIFrameElement) {
|
|
49410
|
+
const { interactionState: t2 } = G();
|
|
49411
|
+
t2.state === "hover" && I({
|
|
49412
|
+
interactionState: {
|
|
49413
|
+
state: "inactive"
|
|
49414
|
+
}
|
|
49415
|
+
});
|
|
49416
|
+
}
|
|
49417
|
+
}
|
|
49418
|
+
function Oe(e2) {
|
|
49352
49419
|
if (e2.defaultPrevented || e2.pointerType === "mouse" && e2.button > 0)
|
|
49353
49420
|
return;
|
|
49354
49421
|
const { interactionState: t2 } = G();
|
|
49355
|
-
t2.state === "active" && (
|
|
49422
|
+
t2.state === "active" && (I({
|
|
49356
49423
|
cursorFlags: 0,
|
|
49357
49424
|
interactionState: {
|
|
49358
49425
|
state: "inactive"
|
|
49359
49426
|
}
|
|
49360
|
-
}), t2.hitRegions.length > 0 && (
|
|
49427
|
+
}), t2.hitRegions.length > 0 && (ge(e2.currentTarget), I((n2) => ({
|
|
49361
49428
|
mountedGroups: new Map(n2.mountedGroups)
|
|
49362
49429
|
})), e2.preventDefault()));
|
|
49363
49430
|
}
|
|
49364
|
-
function
|
|
49431
|
+
function Te(e2) {
|
|
49365
49432
|
let t2 = 0, n2 = 0;
|
|
49366
49433
|
const o = {};
|
|
49367
49434
|
for (const s of e2)
|
|
49368
49435
|
if (s.defaultSize !== void 0) {
|
|
49369
49436
|
t2++;
|
|
49370
|
-
const l =
|
|
49437
|
+
const l = _(s.defaultSize);
|
|
49371
49438
|
n2 += l, o[s.panelId] = l;
|
|
49372
49439
|
} else
|
|
49373
49440
|
o[s.panelId] = void 0;
|
|
49374
49441
|
const i2 = e2.length - t2;
|
|
49375
49442
|
if (i2 !== 0) {
|
|
49376
|
-
const s =
|
|
49443
|
+
const s = _((100 - n2) / i2);
|
|
49377
49444
|
for (const l of e2)
|
|
49378
49445
|
l.defaultSize === void 0 && (o[l.panelId] = s);
|
|
49379
49446
|
}
|
|
49380
49447
|
return o;
|
|
49381
49448
|
}
|
|
49382
|
-
function
|
|
49449
|
+
function Et(e2, t2, n2) {
|
|
49383
49450
|
if (!n2[0])
|
|
49384
49451
|
return;
|
|
49385
49452
|
const i2 = e2.panels.find((u) => u.element === t2);
|
|
49386
49453
|
if (!i2 || !i2.onResize)
|
|
49387
49454
|
return;
|
|
49388
|
-
const s =
|
|
49389
|
-
asPercentage:
|
|
49455
|
+
const s = J({ group: e2 }), l = e2.orientation === "horizontal" ? i2.element.offsetWidth : i2.element.offsetHeight, r2 = i2.mutableValues.prevSize, a2 = {
|
|
49456
|
+
asPercentage: _(l / s * 100),
|
|
49390
49457
|
inPixels: l
|
|
49391
49458
|
};
|
|
49392
49459
|
i2.mutableValues.prevSize = a2, i2.onResize(a2, i2.id, r2);
|
|
49393
49460
|
}
|
|
49394
|
-
function
|
|
49461
|
+
function kt(e2, t2) {
|
|
49395
49462
|
if (Object.keys(e2).length !== Object.keys(t2).length)
|
|
49396
49463
|
return !1;
|
|
49397
49464
|
for (const o in e2)
|
|
@@ -49399,7 +49466,7 @@ function Rt(e2, t2) {
|
|
|
49399
49466
|
return !1;
|
|
49400
49467
|
return !0;
|
|
49401
49468
|
}
|
|
49402
|
-
function
|
|
49469
|
+
function Gt(e2, t2) {
|
|
49403
49470
|
const n2 = e2.map((i2) => i2.id), o = Object.keys(t2);
|
|
49404
49471
|
if (n2.length !== o.length)
|
|
49405
49472
|
return !1;
|
|
@@ -49408,119 +49475,119 @@ function Mt(e2, t2) {
|
|
|
49408
49475
|
return !1;
|
|
49409
49476
|
return !0;
|
|
49410
49477
|
}
|
|
49411
|
-
const
|
|
49412
|
-
function
|
|
49478
|
+
const q = /* @__PURE__ */ new Map();
|
|
49479
|
+
function It(e2) {
|
|
49413
49480
|
let t2 = !0;
|
|
49414
|
-
|
|
49481
|
+
P(
|
|
49415
49482
|
e2.element.ownerDocument.defaultView,
|
|
49416
49483
|
"Cannot register an unmounted Group"
|
|
49417
49484
|
);
|
|
49418
|
-
const n2 = e2.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i2 = /* @__PURE__ */ new Set(), s = new n2((
|
|
49419
|
-
for (const d of
|
|
49420
|
-
const { borderBoxSize:
|
|
49421
|
-
if (
|
|
49485
|
+
const n2 = e2.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i2 = /* @__PURE__ */ new Set(), s = new n2((m2) => {
|
|
49486
|
+
for (const d of m2) {
|
|
49487
|
+
const { borderBoxSize: f, target: h2 } = d;
|
|
49488
|
+
if (h2 === e2.element) {
|
|
49422
49489
|
if (t2) {
|
|
49423
|
-
if (
|
|
49490
|
+
if (J({ group: e2 }) === 0)
|
|
49424
49491
|
return;
|
|
49425
|
-
|
|
49426
|
-
const
|
|
49427
|
-
if (
|
|
49428
|
-
const
|
|
49429
|
-
layout:
|
|
49430
|
-
panelConstraints:
|
|
49492
|
+
I((x2) => {
|
|
49493
|
+
const y2 = x2.mountedGroups.get(e2);
|
|
49494
|
+
if (y2) {
|
|
49495
|
+
const p = pe(e2), w = y2.defaultLayoutDeferred ? Te(p) : y2.layout, C2 = B({
|
|
49496
|
+
layout: w,
|
|
49497
|
+
panelConstraints: p
|
|
49431
49498
|
});
|
|
49432
|
-
return !
|
|
49433
|
-
|
|
49434
|
-
|
|
49435
|
-
) ?
|
|
49436
|
-
mountedGroups: new Map(
|
|
49499
|
+
return !y2.defaultLayoutDeferred && U(w, C2) && kt(
|
|
49500
|
+
y2.derivedPanelConstraints,
|
|
49501
|
+
p
|
|
49502
|
+
) ? x2 : {
|
|
49503
|
+
mountedGroups: new Map(x2.mountedGroups).set(e2, {
|
|
49437
49504
|
defaultLayoutDeferred: !1,
|
|
49438
|
-
derivedPanelConstraints:
|
|
49439
|
-
layout:
|
|
49440
|
-
separatorToPanels:
|
|
49505
|
+
derivedPanelConstraints: p,
|
|
49506
|
+
layout: C2,
|
|
49507
|
+
separatorToPanels: y2.separatorToPanels
|
|
49441
49508
|
})
|
|
49442
49509
|
};
|
|
49443
49510
|
}
|
|
49444
|
-
return
|
|
49511
|
+
return x2;
|
|
49445
49512
|
});
|
|
49446
49513
|
}
|
|
49447
49514
|
} else
|
|
49448
|
-
|
|
49515
|
+
Et(e2, h2, f);
|
|
49449
49516
|
}
|
|
49450
49517
|
});
|
|
49451
|
-
s.observe(e2.element), e2.panels.forEach((
|
|
49452
|
-
|
|
49453
|
-
!o.has(
|
|
49454
|
-
`Panel ids must be unique; id "${
|
|
49455
|
-
), o.add(
|
|
49518
|
+
s.observe(e2.element), e2.panels.forEach((m2) => {
|
|
49519
|
+
P(
|
|
49520
|
+
!o.has(m2.id),
|
|
49521
|
+
`Panel ids must be unique; id "${m2.id}" was used more than once`
|
|
49522
|
+
), o.add(m2.id), m2.onResize && s.observe(m2.element);
|
|
49456
49523
|
});
|
|
49457
|
-
const l =
|
|
49524
|
+
const l = J({ group: e2 }), r2 = pe(e2), a2 = e2.panels.map(({ id: m2 }) => m2).join(",");
|
|
49458
49525
|
let u = e2.defaultLayout;
|
|
49459
|
-
u && (
|
|
49460
|
-
const c2 = e2.inMemoryLayouts[a2] ?? u ??
|
|
49526
|
+
u && (Gt(e2.panels, u) || (u = void 0));
|
|
49527
|
+
const c2 = e2.inMemoryLayouts[a2] ?? u ?? Te(r2), g = B({
|
|
49461
49528
|
layout: c2,
|
|
49462
49529
|
panelConstraints: r2
|
|
49463
|
-
}),
|
|
49464
|
-
return
|
|
49530
|
+
}), b = Ve(e2), S = e2.element.ownerDocument;
|
|
49531
|
+
return I((m2) => {
|
|
49465
49532
|
const d = /* @__PURE__ */ new Map();
|
|
49466
|
-
return
|
|
49467
|
-
|
|
49468
|
-
(
|
|
49469
|
-
),
|
|
49470
|
-
|
|
49533
|
+
return q.set(
|
|
49534
|
+
S,
|
|
49535
|
+
(q.get(S) ?? 0) + 1
|
|
49536
|
+
), b.forEach((f) => {
|
|
49537
|
+
f.separator && d.set(f.separator, f.panels);
|
|
49471
49538
|
}), {
|
|
49472
|
-
mountedGroups: new Map(
|
|
49539
|
+
mountedGroups: new Map(m2.mountedGroups).set(e2, {
|
|
49473
49540
|
defaultLayoutDeferred: l === 0,
|
|
49474
49541
|
derivedPanelConstraints: r2,
|
|
49475
|
-
layout:
|
|
49542
|
+
layout: g,
|
|
49476
49543
|
separatorToPanels: d
|
|
49477
49544
|
})
|
|
49478
49545
|
};
|
|
49479
|
-
}), e2.separators.forEach((
|
|
49480
|
-
|
|
49481
|
-
!i2.has(
|
|
49482
|
-
`Separator ids must be unique; id "${
|
|
49483
|
-
), i2.add(
|
|
49484
|
-
}),
|
|
49485
|
-
t2 = !1,
|
|
49486
|
-
|
|
49487
|
-
Math.max(0, (
|
|
49488
|
-
),
|
|
49489
|
-
const
|
|
49490
|
-
return
|
|
49546
|
+
}), e2.separators.forEach((m2) => {
|
|
49547
|
+
P(
|
|
49548
|
+
!i2.has(m2.id),
|
|
49549
|
+
`Separator ids must be unique; id "${m2.id}" was used more than once`
|
|
49550
|
+
), i2.add(m2.id), m2.element.addEventListener("keydown", Pe);
|
|
49551
|
+
}), q.get(S) === 1 && (S.addEventListener("dblclick", Le, !0), S.addEventListener("pointerdown", Ce, !0), S.addEventListener("pointerleave", Ge), S.addEventListener("pointermove", Ie), S.addEventListener("pointerout", De), S.addEventListener("pointerup", Oe, !0)), function() {
|
|
49552
|
+
t2 = !1, q.set(
|
|
49553
|
+
S,
|
|
49554
|
+
Math.max(0, (q.get(S) ?? 0) - 1)
|
|
49555
|
+
), I((d) => {
|
|
49556
|
+
const f = new Map(d.mountedGroups);
|
|
49557
|
+
return f.delete(e2), { mountedGroups: f };
|
|
49491
49558
|
}), e2.separators.forEach((d) => {
|
|
49492
|
-
d.element.removeEventListener("keydown",
|
|
49493
|
-
}),
|
|
49559
|
+
d.element.removeEventListener("keydown", Pe);
|
|
49560
|
+
}), q.get(S) || (S.removeEventListener(
|
|
49494
49561
|
"dblclick",
|
|
49495
|
-
|
|
49562
|
+
Le,
|
|
49496
49563
|
!0
|
|
49497
|
-
),
|
|
49564
|
+
), S.removeEventListener(
|
|
49498
49565
|
"pointerdown",
|
|
49499
49566
|
Ce,
|
|
49500
49567
|
!0
|
|
49501
|
-
),
|
|
49568
|
+
), S.removeEventListener("pointerleave", Ge), S.removeEventListener("pointermove", Ie), S.removeEventListener("pointerout", De), S.removeEventListener("pointerup", Oe, !0)), s.disconnect();
|
|
49502
49569
|
};
|
|
49503
49570
|
}
|
|
49504
|
-
function
|
|
49571
|
+
function Dt() {
|
|
49505
49572
|
const [e2, t2] = useState({}), n2 = useCallback(() => t2({}), []);
|
|
49506
49573
|
return [e2, n2];
|
|
49507
49574
|
}
|
|
49508
|
-
function
|
|
49575
|
+
function ye(e2) {
|
|
49509
49576
|
const t2 = useId$2();
|
|
49510
49577
|
return `${e2 ?? t2}`;
|
|
49511
49578
|
}
|
|
49512
|
-
const
|
|
49513
|
-
function
|
|
49579
|
+
const K = typeof window < "u" ? useLayoutEffect$1 : useEffect;
|
|
49580
|
+
function ee(e2) {
|
|
49514
49581
|
const t2 = useRef(e2);
|
|
49515
|
-
return
|
|
49582
|
+
return K(() => {
|
|
49516
49583
|
t2.current = e2;
|
|
49517
49584
|
}, [e2]), useCallback(
|
|
49518
49585
|
(...n2) => t2.current?.(...n2),
|
|
49519
49586
|
[t2]
|
|
49520
49587
|
);
|
|
49521
49588
|
}
|
|
49522
|
-
function
|
|
49523
|
-
return
|
|
49589
|
+
function Se(...e2) {
|
|
49590
|
+
return ee((t2) => {
|
|
49524
49591
|
e2.forEach((n2) => {
|
|
49525
49592
|
if (n2)
|
|
49526
49593
|
switch (typeof n2) {
|
|
@@ -49536,27 +49603,27 @@ function ge(...e2) {
|
|
|
49536
49603
|
});
|
|
49537
49604
|
});
|
|
49538
49605
|
}
|
|
49539
|
-
function
|
|
49606
|
+
function ve(e2) {
|
|
49540
49607
|
const t2 = useRef({ ...e2 });
|
|
49541
|
-
return
|
|
49608
|
+
return K(() => {
|
|
49542
49609
|
for (const n2 in e2)
|
|
49543
49610
|
t2.current[n2] = e2[n2];
|
|
49544
49611
|
}, [e2]), t2.current;
|
|
49545
49612
|
}
|
|
49546
49613
|
const Ze = createContext(null);
|
|
49547
|
-
function
|
|
49614
|
+
function Ot(e2, t2) {
|
|
49548
49615
|
const n2 = useRef({
|
|
49549
49616
|
getLayout: () => ({}),
|
|
49550
|
-
setLayout:
|
|
49617
|
+
setLayout: Rt
|
|
49551
49618
|
});
|
|
49552
|
-
useImperativeHandle(t2, () => n2.current, []),
|
|
49619
|
+
useImperativeHandle(t2, () => n2.current, []), K(() => {
|
|
49553
49620
|
Object.assign(
|
|
49554
49621
|
n2.current,
|
|
49555
|
-
|
|
49622
|
+
Ue({ groupId: e2 })
|
|
49556
49623
|
);
|
|
49557
49624
|
});
|
|
49558
49625
|
}
|
|
49559
|
-
function
|
|
49626
|
+
function Tt({
|
|
49560
49627
|
children: e2,
|
|
49561
49628
|
className: t2,
|
|
49562
49629
|
defaultLayout: n2,
|
|
@@ -49568,41 +49635,41 @@ function It({
|
|
|
49568
49635
|
onLayoutChange: a2,
|
|
49569
49636
|
onLayoutChanged: u,
|
|
49570
49637
|
orientation: c2 = "horizontal",
|
|
49571
|
-
resizeTargetMinimumSize:
|
|
49638
|
+
resizeTargetMinimumSize: g = {
|
|
49572
49639
|
coarse: 20,
|
|
49573
49640
|
fine: 10
|
|
49574
49641
|
},
|
|
49575
|
-
style:
|
|
49576
|
-
...
|
|
49642
|
+
style: b,
|
|
49643
|
+
...S
|
|
49577
49644
|
}) {
|
|
49578
|
-
const
|
|
49645
|
+
const m2 = useRef({
|
|
49579
49646
|
onLayoutChange: {},
|
|
49580
49647
|
onLayoutChanged: {}
|
|
49581
|
-
}), d =
|
|
49582
|
-
|
|
49583
|
-
}),
|
|
49584
|
-
|
|
49585
|
-
}),
|
|
49648
|
+
}), d = ee((z2) => {
|
|
49649
|
+
U(m2.current.onLayoutChange, z2) || (m2.current.onLayoutChange = z2, a2?.(z2));
|
|
49650
|
+
}), f = ee((z2) => {
|
|
49651
|
+
U(m2.current.onLayoutChanged, z2) || (m2.current.onLayoutChanged = z2, u?.(z2));
|
|
49652
|
+
}), h2 = ye(r2), v = useRef(null), [x2, y2] = Dt(), p = useRef({
|
|
49586
49653
|
lastExpandedPanelSizes: {},
|
|
49587
49654
|
layouts: {},
|
|
49588
49655
|
panels: [],
|
|
49589
|
-
resizeTargetMinimumSize:
|
|
49656
|
+
resizeTargetMinimumSize: g,
|
|
49590
49657
|
separators: []
|
|
49591
|
-
}),
|
|
49592
|
-
|
|
49593
|
-
const
|
|
49594
|
-
(
|
|
49595
|
-
const { interactionState: E, mountedGroups:
|
|
49596
|
-
for (const
|
|
49597
|
-
if (
|
|
49598
|
-
const
|
|
49599
|
-
if (
|
|
49600
|
-
let
|
|
49601
|
-
return E.state === "active" && (
|
|
49602
|
-
(
|
|
49658
|
+
}), w = Se(v, s);
|
|
49659
|
+
Ot(h2, l);
|
|
49660
|
+
const C2 = ee(
|
|
49661
|
+
(z2, L) => {
|
|
49662
|
+
const { interactionState: E, mountedGroups: M } = G();
|
|
49663
|
+
for (const D of M.keys())
|
|
49664
|
+
if (D.id === z2) {
|
|
49665
|
+
const T = M.get(D);
|
|
49666
|
+
if (T) {
|
|
49667
|
+
let N = !1;
|
|
49668
|
+
return E.state === "active" && (N = E.hitRegions.some(
|
|
49669
|
+
(Z) => Z.group === D
|
|
49603
49670
|
)), {
|
|
49604
|
-
flexGrow:
|
|
49605
|
-
pointerEvents:
|
|
49671
|
+
flexGrow: T.layout[L] ?? 1,
|
|
49672
|
+
pointerEvents: N ? "none" : void 0
|
|
49606
49673
|
};
|
|
49607
49674
|
}
|
|
49608
49675
|
}
|
|
@@ -49610,228 +49677,287 @@ function It({
|
|
|
49610
49677
|
flexGrow: n2?.[L] ?? 1
|
|
49611
49678
|
};
|
|
49612
49679
|
}
|
|
49613
|
-
),
|
|
49680
|
+
), R = ve({
|
|
49681
|
+
defaultLayout: n2,
|
|
49682
|
+
disableCursor: o
|
|
49683
|
+
}), X = useMemo(
|
|
49614
49684
|
() => ({
|
|
49615
|
-
|
|
49616
|
-
|
|
49685
|
+
get disableCursor() {
|
|
49686
|
+
return !!R.disableCursor;
|
|
49687
|
+
},
|
|
49688
|
+
getPanelStyles: C2,
|
|
49689
|
+
id: h2,
|
|
49617
49690
|
orientation: c2,
|
|
49618
|
-
registerPanel: (
|
|
49619
|
-
const L =
|
|
49620
|
-
return L.panels =
|
|
49691
|
+
registerPanel: (z2) => {
|
|
49692
|
+
const L = p.current;
|
|
49693
|
+
return L.panels = he(c2, [
|
|
49621
49694
|
...L.panels,
|
|
49622
|
-
|
|
49623
|
-
]),
|
|
49695
|
+
z2
|
|
49696
|
+
]), y2(), () => {
|
|
49624
49697
|
L.panels = L.panels.filter(
|
|
49625
|
-
(E) => E !==
|
|
49626
|
-
),
|
|
49698
|
+
(E) => E !== z2
|
|
49699
|
+
), y2();
|
|
49627
49700
|
};
|
|
49628
49701
|
},
|
|
49629
|
-
registerSeparator: (
|
|
49630
|
-
const L =
|
|
49631
|
-
return L.separators =
|
|
49702
|
+
registerSeparator: (z2) => {
|
|
49703
|
+
const L = p.current;
|
|
49704
|
+
return L.separators = he(c2, [
|
|
49632
49705
|
...L.separators,
|
|
49633
|
-
|
|
49634
|
-
]),
|
|
49706
|
+
z2
|
|
49707
|
+
]), y2(), () => {
|
|
49635
49708
|
L.separators = L.separators.filter(
|
|
49636
|
-
(E) => E !==
|
|
49637
|
-
),
|
|
49709
|
+
(E) => E !== z2
|
|
49710
|
+
), y2();
|
|
49638
49711
|
};
|
|
49712
|
+
},
|
|
49713
|
+
togglePanelDisabled: (z2, L) => {
|
|
49714
|
+
const M = p.current.panels.find(
|
|
49715
|
+
(T) => T.id === z2
|
|
49716
|
+
);
|
|
49717
|
+
M && (M.panelConstraints.disabled = L);
|
|
49718
|
+
const { mountedGroups: D } = G();
|
|
49719
|
+
for (const T of D.keys())
|
|
49720
|
+
if (T.id === h2) {
|
|
49721
|
+
const N = D.get(T);
|
|
49722
|
+
N && (N.derivedPanelConstraints = pe(T));
|
|
49723
|
+
}
|
|
49724
|
+
},
|
|
49725
|
+
toggleSeparatorDisabled: (z2, L) => {
|
|
49726
|
+
const M = p.current.separators.find(
|
|
49727
|
+
(D) => D.id === z2
|
|
49728
|
+
);
|
|
49729
|
+
M && (M.disabled = L);
|
|
49639
49730
|
}
|
|
49640
49731
|
}),
|
|
49641
|
-
[
|
|
49642
|
-
),
|
|
49643
|
-
|
|
49644
|
-
|
|
49645
|
-
|
|
49646
|
-
return $(() => {
|
|
49647
|
-
const b = v.current;
|
|
49648
|
-
if (b === null)
|
|
49732
|
+
[C2, h2, y2, c2, R]
|
|
49733
|
+
), V = useRef(null);
|
|
49734
|
+
return K(() => {
|
|
49735
|
+
const z2 = v.current;
|
|
49736
|
+
if (z2 === null)
|
|
49649
49737
|
return;
|
|
49650
|
-
const L =
|
|
49651
|
-
|
|
49652
|
-
|
|
49738
|
+
const L = p.current;
|
|
49739
|
+
let E;
|
|
49740
|
+
if (R.defaultLayout !== void 0 && Object.keys(R.defaultLayout).length === L.panels.length) {
|
|
49741
|
+
E = {};
|
|
49742
|
+
for (const H of L.panels) {
|
|
49743
|
+
const j = R.defaultLayout[H.id];
|
|
49744
|
+
j !== void 0 && (E[H.id] = j);
|
|
49745
|
+
}
|
|
49746
|
+
}
|
|
49747
|
+
const M = {
|
|
49748
|
+
defaultLayout: E,
|
|
49749
|
+
disableCursor: !!R.disableCursor,
|
|
49653
49750
|
disabled: !!i2,
|
|
49654
|
-
element:
|
|
49655
|
-
id:
|
|
49656
|
-
inMemoryLastExpandedPanelSizes:
|
|
49657
|
-
inMemoryLayouts:
|
|
49751
|
+
element: z2,
|
|
49752
|
+
id: h2,
|
|
49753
|
+
inMemoryLastExpandedPanelSizes: p.current.lastExpandedPanelSizes,
|
|
49754
|
+
inMemoryLayouts: p.current.layouts,
|
|
49658
49755
|
orientation: c2,
|
|
49659
49756
|
panels: L.panels,
|
|
49660
49757
|
resizeTargetMinimumSize: L.resizeTargetMinimumSize,
|
|
49661
49758
|
separators: L.separators
|
|
49662
49759
|
};
|
|
49663
|
-
|
|
49664
|
-
const
|
|
49665
|
-
if (
|
|
49666
|
-
const { defaultLayoutDeferred:
|
|
49667
|
-
!
|
|
49668
|
-
ue.scheduleUpdate();
|
|
49669
|
-
}));
|
|
49760
|
+
V.current = M;
|
|
49761
|
+
const D = It(M), N = G().mountedGroups.get(M);
|
|
49762
|
+
if (N) {
|
|
49763
|
+
const { defaultLayoutDeferred: H, derivedPanelConstraints: j, layout: ie } = N;
|
|
49764
|
+
!H && j.length > 0 && (d(ie), f(ie));
|
|
49670
49765
|
}
|
|
49671
|
-
const
|
|
49766
|
+
const Z = $.addListener(
|
|
49672
49767
|
"interactionStateChange",
|
|
49673
|
-
() => {
|
|
49674
|
-
|
|
49675
|
-
B.scheduleUpdate();
|
|
49676
|
-
});
|
|
49768
|
+
(H) => {
|
|
49769
|
+
H.state;
|
|
49677
49770
|
}
|
|
49678
|
-
),
|
|
49771
|
+
), Qe = $.addListener(
|
|
49679
49772
|
"mountedGroupsChange",
|
|
49680
|
-
(
|
|
49681
|
-
const
|
|
49682
|
-
if (
|
|
49683
|
-
const { defaultLayoutDeferred:
|
|
49684
|
-
if (
|
|
49773
|
+
(H) => {
|
|
49774
|
+
const j = H.get(M);
|
|
49775
|
+
if (j) {
|
|
49776
|
+
const { defaultLayoutDeferred: ie, derivedPanelConstraints: et, layout: ce } = j;
|
|
49777
|
+
if (ie || et.length === 0)
|
|
49685
49778
|
return;
|
|
49686
|
-
const {
|
|
49687
|
-
|
|
49688
|
-
|
|
49689
|
-
|
|
49779
|
+
const tt = M.panels.map(({ id: it2 }) => it2).join(",");
|
|
49780
|
+
M.inMemoryLayouts[tt] = ce;
|
|
49781
|
+
const { interactionState: nt } = G(), ot = nt.state !== "active";
|
|
49782
|
+
d(ce), ot && f(ce);
|
|
49690
49783
|
}
|
|
49691
49784
|
}
|
|
49692
49785
|
);
|
|
49693
49786
|
return () => {
|
|
49694
|
-
|
|
49787
|
+
V.current = null, D(), Z(), Qe();
|
|
49695
49788
|
};
|
|
49696
49789
|
}, [
|
|
49697
49790
|
i2,
|
|
49698
|
-
|
|
49699
|
-
|
|
49791
|
+
h2,
|
|
49792
|
+
f,
|
|
49700
49793
|
d,
|
|
49701
49794
|
c2,
|
|
49702
|
-
|
|
49703
|
-
|
|
49795
|
+
x2,
|
|
49796
|
+
R
|
|
49704
49797
|
]), useEffect(() => {
|
|
49705
|
-
const
|
|
49706
|
-
|
|
49707
|
-
}), /* @__PURE__ */ jsx(Ze.Provider, { value:
|
|
49798
|
+
const z2 = V.current;
|
|
49799
|
+
z2 && (z2.defaultLayout = n2, z2.disableCursor = !!o);
|
|
49800
|
+
}), /* @__PURE__ */ jsx(Ze.Provider, { value: X, children: /* @__PURE__ */ jsx(
|
|
49708
49801
|
"div",
|
|
49709
49802
|
{
|
|
49710
|
-
...
|
|
49711
|
-
"aria-orientation": c2,
|
|
49803
|
+
...S,
|
|
49712
49804
|
className: t2,
|
|
49713
49805
|
"data-group": !0,
|
|
49714
|
-
"data-testid":
|
|
49715
|
-
id:
|
|
49716
|
-
ref:
|
|
49806
|
+
"data-testid": h2,
|
|
49807
|
+
id: h2,
|
|
49808
|
+
ref: w,
|
|
49717
49809
|
style: {
|
|
49718
49810
|
height: "100%",
|
|
49719
49811
|
width: "100%",
|
|
49720
49812
|
overflow: "hidden",
|
|
49721
|
-
...
|
|
49813
|
+
...b,
|
|
49722
49814
|
display: "flex",
|
|
49723
49815
|
flexDirection: c2 === "horizontal" ? "row" : "column",
|
|
49724
|
-
flexWrap: "nowrap"
|
|
49816
|
+
flexWrap: "nowrap",
|
|
49817
|
+
// Inform the browser that the library is handling touch events for this element
|
|
49818
|
+
// but still allow users to scroll content within panels in the non-resizing direction
|
|
49819
|
+
// NOTE This is not an inherited style
|
|
49820
|
+
// See github.com/bvaughn/react-resizable-panels/issues/662
|
|
49821
|
+
touchAction: c2 === "horizontal" ? "pan-y" : "pan-x"
|
|
49725
49822
|
},
|
|
49726
49823
|
children: e2
|
|
49727
49824
|
}
|
|
49728
49825
|
) });
|
|
49729
49826
|
}
|
|
49730
|
-
|
|
49731
|
-
function
|
|
49827
|
+
Tt.displayName = "Group";
|
|
49828
|
+
function xe() {
|
|
49732
49829
|
const e2 = useContext(Ze);
|
|
49733
|
-
return
|
|
49830
|
+
return P(
|
|
49734
49831
|
e2,
|
|
49735
49832
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
49736
49833
|
), e2;
|
|
49737
49834
|
}
|
|
49738
|
-
function
|
|
49739
|
-
const { id: n2 } =
|
|
49740
|
-
collapse:
|
|
49741
|
-
expand:
|
|
49835
|
+
function Nt(e2, t2) {
|
|
49836
|
+
const { id: n2 } = xe(), o = useRef({
|
|
49837
|
+
collapse: fe,
|
|
49838
|
+
expand: fe,
|
|
49742
49839
|
getSize: () => ({
|
|
49743
49840
|
asPercentage: 0,
|
|
49744
49841
|
inPixels: 0
|
|
49745
49842
|
}),
|
|
49746
49843
|
isCollapsed: () => !1,
|
|
49747
|
-
resize:
|
|
49844
|
+
resize: fe
|
|
49748
49845
|
});
|
|
49749
|
-
useImperativeHandle(t2, () => o.current, []),
|
|
49846
|
+
useImperativeHandle(t2, () => o.current, []), K(() => {
|
|
49750
49847
|
Object.assign(
|
|
49751
49848
|
o.current,
|
|
49752
|
-
|
|
49849
|
+
We({ groupId: n2, panelId: e2 })
|
|
49753
49850
|
);
|
|
49754
49851
|
});
|
|
49755
49852
|
}
|
|
49756
|
-
function
|
|
49853
|
+
function _t({
|
|
49757
49854
|
children: e2,
|
|
49758
49855
|
className: t2,
|
|
49759
49856
|
collapsedSize: n2 = "0%",
|
|
49760
49857
|
collapsible: o = !1,
|
|
49761
49858
|
defaultSize: i2,
|
|
49762
|
-
|
|
49763
|
-
|
|
49764
|
-
|
|
49765
|
-
|
|
49766
|
-
|
|
49767
|
-
|
|
49768
|
-
|
|
49769
|
-
|
|
49859
|
+
disabled: s,
|
|
49860
|
+
elementRef: l,
|
|
49861
|
+
id: r2,
|
|
49862
|
+
maxSize: a2 = "100%",
|
|
49863
|
+
minSize: u = "0%",
|
|
49864
|
+
onResize: c2,
|
|
49865
|
+
panelRef: g,
|
|
49866
|
+
style: b,
|
|
49867
|
+
...S
|
|
49770
49868
|
}) {
|
|
49771
|
-
const m2 = !!
|
|
49772
|
-
|
|
49773
|
-
|
|
49869
|
+
const m2 = !!r2, d = ye(r2), f = ve({
|
|
49870
|
+
disabled: s
|
|
49871
|
+
}), h2 = useRef(null), v = Se(h2, l), {
|
|
49872
|
+
getPanelStyles: x2,
|
|
49873
|
+
id: y2,
|
|
49874
|
+
orientation: p,
|
|
49875
|
+
registerPanel: w,
|
|
49876
|
+
togglePanelDisabled: C2
|
|
49877
|
+
} = xe(), R = c2 !== null, X = ee(
|
|
49878
|
+
(z2, L, E) => {
|
|
49879
|
+
c2?.(z2, r2, E);
|
|
49774
49880
|
}
|
|
49775
49881
|
);
|
|
49776
|
-
|
|
49777
|
-
const
|
|
49778
|
-
if (
|
|
49779
|
-
|
|
49780
|
-
element:
|
|
49781
|
-
id:
|
|
49882
|
+
K(() => {
|
|
49883
|
+
const z2 = h2.current;
|
|
49884
|
+
if (z2 !== null) {
|
|
49885
|
+
const L = {
|
|
49886
|
+
element: z2,
|
|
49887
|
+
id: d,
|
|
49782
49888
|
idIsStable: m2,
|
|
49783
49889
|
mutableValues: {
|
|
49784
49890
|
expandToSize: void 0,
|
|
49785
49891
|
prevSize: void 0
|
|
49786
49892
|
},
|
|
49787
|
-
onResize:
|
|
49893
|
+
onResize: R ? X : void 0,
|
|
49788
49894
|
panelConstraints: {
|
|
49789
49895
|
collapsedSize: n2,
|
|
49790
49896
|
collapsible: o,
|
|
49791
49897
|
defaultSize: i2,
|
|
49792
|
-
|
|
49793
|
-
|
|
49794
|
-
|
|
49795
|
-
|
|
49796
|
-
}
|
|
49898
|
+
disabled: f.disabled,
|
|
49899
|
+
maxSize: a2,
|
|
49900
|
+
minSize: u
|
|
49901
|
+
}
|
|
49902
|
+
};
|
|
49903
|
+
return w(L);
|
|
49904
|
+
}
|
|
49797
49905
|
}, [
|
|
49798
49906
|
n2,
|
|
49799
49907
|
o,
|
|
49800
49908
|
i2,
|
|
49801
|
-
|
|
49802
|
-
|
|
49803
|
-
f,
|
|
49909
|
+
R,
|
|
49910
|
+
d,
|
|
49804
49911
|
m2,
|
|
49805
|
-
r2,
|
|
49806
49912
|
a2,
|
|
49807
|
-
|
|
49808
|
-
|
|
49809
|
-
|
|
49810
|
-
|
|
49913
|
+
u,
|
|
49914
|
+
X,
|
|
49915
|
+
w,
|
|
49916
|
+
f
|
|
49917
|
+
]), useEffect(() => {
|
|
49918
|
+
C2(d, !!s);
|
|
49919
|
+
}, [s, d, C2]), Nt(d, g);
|
|
49920
|
+
const V = useSyncExternalStore(
|
|
49921
|
+
(z2) => ($.addListener("mountedGroupsChange", z2), () => {
|
|
49922
|
+
$.removeListener("mountedGroupsChange", z2);
|
|
49923
|
+
}),
|
|
49924
|
+
// useSyncExternalStore does not support a custom equality check
|
|
49925
|
+
// stringify avoids re-rendering when the style value hasn't changed
|
|
49926
|
+
() => JSON.stringify(x2(y2, d)),
|
|
49927
|
+
() => JSON.stringify(x2(y2, d))
|
|
49928
|
+
);
|
|
49811
49929
|
return /* @__PURE__ */ jsx(
|
|
49812
49930
|
"div",
|
|
49813
49931
|
{
|
|
49814
|
-
...
|
|
49932
|
+
...S,
|
|
49933
|
+
"aria-disabled": s || void 0,
|
|
49815
49934
|
"data-panel": !0,
|
|
49816
|
-
"data-testid":
|
|
49817
|
-
id:
|
|
49818
|
-
ref:
|
|
49935
|
+
"data-testid": d,
|
|
49936
|
+
id: d,
|
|
49937
|
+
ref: v,
|
|
49819
49938
|
style: {
|
|
49820
|
-
...
|
|
49939
|
+
...Ft,
|
|
49821
49940
|
display: "flex",
|
|
49822
49941
|
flexBasis: 0,
|
|
49823
49942
|
flexShrink: 1,
|
|
49824
49943
|
// Prevent Panel content from interfering with panel size
|
|
49825
49944
|
overflow: "hidden",
|
|
49826
|
-
...
|
|
49945
|
+
...JSON.parse(V)
|
|
49827
49946
|
},
|
|
49828
49947
|
children: /* @__PURE__ */ jsx(
|
|
49829
49948
|
"div",
|
|
49830
49949
|
{
|
|
49831
49950
|
className: t2,
|
|
49832
49951
|
style: {
|
|
49952
|
+
maxHeight: "100%",
|
|
49953
|
+
maxWidth: "100%",
|
|
49833
49954
|
flexGrow: 1,
|
|
49834
|
-
...
|
|
49955
|
+
...b,
|
|
49956
|
+
// Inform the browser that the library is handling touch events for this element
|
|
49957
|
+
// but still allow users to scroll content within panels in the non-resizing direction
|
|
49958
|
+
// NOTE This is not an inherited style
|
|
49959
|
+
// See github.com/bvaughn/react-resizable-panels/issues/662
|
|
49960
|
+
touchAction: p === "horizontal" ? "pan-y" : "pan-x"
|
|
49835
49961
|
},
|
|
49836
49962
|
children: e2
|
|
49837
49963
|
}
|
|
@@ -49839,8 +49965,8 @@ function Ot({
|
|
|
49839
49965
|
}
|
|
49840
49966
|
);
|
|
49841
49967
|
}
|
|
49842
|
-
|
|
49843
|
-
const
|
|
49968
|
+
_t.displayName = "Panel";
|
|
49969
|
+
const Ft = {
|
|
49844
49970
|
minHeight: 0,
|
|
49845
49971
|
maxHeight: "100%",
|
|
49846
49972
|
height: "auto",
|
|
@@ -49852,7 +49978,7 @@ const _t = {
|
|
|
49852
49978
|
padding: 0,
|
|
49853
49979
|
margin: 0
|
|
49854
49980
|
};
|
|
49855
|
-
function
|
|
49981
|
+
function $t({
|
|
49856
49982
|
layout: e2,
|
|
49857
49983
|
panelConstraints: t2,
|
|
49858
49984
|
panelId: n2,
|
|
@@ -49863,25 +49989,23 @@ function At({
|
|
|
49863
49989
|
(a2) => a2.panelId === n2
|
|
49864
49990
|
);
|
|
49865
49991
|
if (r2) {
|
|
49866
|
-
const a2 = r2.maxSize, u =
|
|
49867
|
-
s =
|
|
49868
|
-
layout:
|
|
49992
|
+
const a2 = r2.maxSize, u = r2.collapsible ? r2.collapsedSize : r2.minSize, c2 = [o, o + 1];
|
|
49993
|
+
s = B({
|
|
49994
|
+
layout: oe({
|
|
49869
49995
|
delta: u - l,
|
|
49870
49996
|
initialLayout: e2,
|
|
49871
49997
|
panelConstraints: t2,
|
|
49872
49998
|
pivotIndices: c2,
|
|
49873
|
-
prevLayout: e2
|
|
49874
|
-
trigger: "keyboard"
|
|
49999
|
+
prevLayout: e2
|
|
49875
50000
|
}),
|
|
49876
50001
|
panelConstraints: t2
|
|
49877
|
-
})[n2], i2 =
|
|
49878
|
-
layout:
|
|
50002
|
+
})[n2], i2 = B({
|
|
50003
|
+
layout: oe({
|
|
49879
50004
|
delta: a2 - l,
|
|
49880
50005
|
initialLayout: e2,
|
|
49881
50006
|
panelConstraints: t2,
|
|
49882
50007
|
pivotIndices: c2,
|
|
49883
|
-
prevLayout: e2
|
|
49884
|
-
trigger: "keyboard"
|
|
50008
|
+
prevLayout: e2
|
|
49885
50009
|
}),
|
|
49886
50010
|
panelConstraints: t2
|
|
49887
50011
|
})[n2];
|
|
@@ -49893,49 +50017,55 @@ function At({
|
|
|
49893
50017
|
valueNow: l
|
|
49894
50018
|
};
|
|
49895
50019
|
}
|
|
49896
|
-
function
|
|
50020
|
+
function Ht({
|
|
49897
50021
|
children: e2,
|
|
49898
50022
|
className: t2,
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
|
|
49902
|
-
|
|
50023
|
+
disabled: n2,
|
|
50024
|
+
elementRef: o,
|
|
50025
|
+
id: i2,
|
|
50026
|
+
style: s,
|
|
50027
|
+
...l
|
|
49903
50028
|
}) {
|
|
49904
|
-
const
|
|
49905
|
-
|
|
49906
|
-
|
|
49907
|
-
|
|
49908
|
-
|
|
49909
|
-
|
|
49910
|
-
|
|
49911
|
-
|
|
49912
|
-
|
|
49913
|
-
|
|
49914
|
-
|
|
49915
|
-
|
|
50029
|
+
const r2 = ye(i2), a2 = ve({
|
|
50030
|
+
disabled: n2
|
|
50031
|
+
}), [u, c2] = useState({}), [g, b] = useState("inactive"), S = useRef(null), m2 = Se(S, o), {
|
|
50032
|
+
disableCursor: d,
|
|
50033
|
+
id: f,
|
|
50034
|
+
orientation: h2,
|
|
50035
|
+
registerSeparator: v,
|
|
50036
|
+
toggleSeparatorDisabled: x2
|
|
50037
|
+
} = xe(), y2 = h2 === "horizontal" ? "vertical" : "horizontal";
|
|
50038
|
+
K(() => {
|
|
50039
|
+
const w = S.current;
|
|
50040
|
+
if (w !== null) {
|
|
50041
|
+
const C2 = {
|
|
50042
|
+
disabled: a2.disabled,
|
|
50043
|
+
element: w,
|
|
50044
|
+
id: r2
|
|
50045
|
+
}, R = v(C2), X = $.addListener(
|
|
49916
50046
|
"interactionStateChange",
|
|
49917
|
-
(
|
|
49918
|
-
|
|
49919
|
-
|
|
49920
|
-
(
|
|
49921
|
-
) ?
|
|
50047
|
+
(z2) => {
|
|
50048
|
+
b(
|
|
50049
|
+
z2.state !== "inactive" && z2.hitRegions.some(
|
|
50050
|
+
(L) => L.separator === C2
|
|
50051
|
+
) ? z2.state : "inactive"
|
|
49922
50052
|
);
|
|
49923
50053
|
}
|
|
49924
|
-
),
|
|
50054
|
+
), V = $.addListener(
|
|
49925
50055
|
"mountedGroupsChange",
|
|
49926
|
-
(
|
|
49927
|
-
|
|
49928
|
-
({ derivedPanelConstraints:
|
|
49929
|
-
if (
|
|
49930
|
-
const
|
|
49931
|
-
if (
|
|
49932
|
-
const
|
|
49933
|
-
|
|
49934
|
-
|
|
49935
|
-
layout:
|
|
49936
|
-
panelConstraints:
|
|
49937
|
-
panelId:
|
|
49938
|
-
panelIndex:
|
|
50056
|
+
(z2) => {
|
|
50057
|
+
z2.forEach(
|
|
50058
|
+
({ derivedPanelConstraints: L, layout: E, separatorToPanels: M }, D) => {
|
|
50059
|
+
if (D.id === f) {
|
|
50060
|
+
const T = M.get(C2);
|
|
50061
|
+
if (T) {
|
|
50062
|
+
const N = T[0], Z = D.panels.indexOf(N);
|
|
50063
|
+
c2(
|
|
50064
|
+
$t({
|
|
50065
|
+
layout: E,
|
|
50066
|
+
panelConstraints: L,
|
|
50067
|
+
panelId: N.id,
|
|
50068
|
+
panelIndex: Z
|
|
49939
50069
|
})
|
|
49940
50070
|
);
|
|
49941
50071
|
}
|
|
@@ -49945,36 +50075,45 @@ function Nt({
|
|
|
49945
50075
|
}
|
|
49946
50076
|
);
|
|
49947
50077
|
return () => {
|
|
49948
|
-
|
|
50078
|
+
X(), V(), R();
|
|
49949
50079
|
};
|
|
49950
50080
|
}
|
|
49951
|
-
}, [
|
|
50081
|
+
}, [f, r2, v, a2]), useEffect(() => {
|
|
50082
|
+
x2(r2, !!n2);
|
|
50083
|
+
}, [n2, r2, x2]);
|
|
50084
|
+
let p;
|
|
50085
|
+
return n2 && !d && (p = "not-allowed"), /* @__PURE__ */ jsx(
|
|
49952
50086
|
"div",
|
|
49953
50087
|
{
|
|
49954
|
-
...
|
|
49955
|
-
"aria-controls":
|
|
49956
|
-
"aria-
|
|
49957
|
-
"aria-
|
|
49958
|
-
"aria-
|
|
49959
|
-
"aria-
|
|
50088
|
+
...l,
|
|
50089
|
+
"aria-controls": u.valueControls,
|
|
50090
|
+
"aria-disabled": n2 || void 0,
|
|
50091
|
+
"aria-orientation": y2,
|
|
50092
|
+
"aria-valuemax": u.valueMax,
|
|
50093
|
+
"aria-valuemin": u.valueMin,
|
|
50094
|
+
"aria-valuenow": u.valueNow,
|
|
49960
50095
|
children: e2,
|
|
49961
50096
|
className: t2,
|
|
49962
|
-
"data-separator":
|
|
49963
|
-
"data-testid":
|
|
49964
|
-
id:
|
|
49965
|
-
ref:
|
|
50097
|
+
"data-separator": n2 ? "disabled" : g,
|
|
50098
|
+
"data-testid": r2,
|
|
50099
|
+
id: r2,
|
|
50100
|
+
ref: m2,
|
|
49966
50101
|
role: "separator",
|
|
49967
50102
|
style: {
|
|
49968
50103
|
flexBasis: "auto",
|
|
49969
|
-
|
|
50104
|
+
cursor: p,
|
|
50105
|
+
...s,
|
|
49970
50106
|
flexGrow: 0,
|
|
49971
|
-
flexShrink: 0
|
|
50107
|
+
flexShrink: 0,
|
|
50108
|
+
// Inform the browser that the library is handling touch events for this element
|
|
50109
|
+
// See github.com/bvaughn/react-resizable-panels/issues/662
|
|
50110
|
+
touchAction: "none"
|
|
49972
50111
|
},
|
|
49973
|
-
tabIndex: 0
|
|
50112
|
+
tabIndex: n2 ? void 0 : 0
|
|
49974
50113
|
}
|
|
49975
50114
|
);
|
|
49976
50115
|
}
|
|
49977
|
-
|
|
50116
|
+
Ht.displayName = "Separator";
|
|
49978
50117
|
export {
|
|
49979
50118
|
assertEvent as $,
|
|
49980
50119
|
createTheme as A,
|
|
@@ -50210,9 +50349,9 @@ export {
|
|
|
50210
50349
|
RouterProvider as d7,
|
|
50211
50350
|
useRouter as d8,
|
|
50212
50351
|
useParams as d9,
|
|
50213
|
-
|
|
50214
|
-
|
|
50215
|
-
|
|
50352
|
+
Tt as dA,
|
|
50353
|
+
_t as dB,
|
|
50354
|
+
Ht as dC,
|
|
50216
50355
|
notFound as dD,
|
|
50217
50356
|
Navigate as dE,
|
|
50218
50357
|
object as dF,
|