@industry-theme/repository-composition-panels 0.7.30 → 0.7.31

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.
@@ -10666,136 +10666,177 @@ function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }) {
10666
10666
  function getDefaultExportFromCjs(x2) {
10667
10667
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
10668
10668
  }
10669
+ function getAugmentedNamespace(n2) {
10670
+ if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
10671
+ var f2 = n2.default;
10672
+ if (typeof f2 == "function") {
10673
+ var a2 = function a3() {
10674
+ if (this instanceof a3) {
10675
+ return Reflect.construct(f2, arguments, this.constructor);
10676
+ }
10677
+ return f2.apply(this, arguments);
10678
+ };
10679
+ a2.prototype = f2.prototype;
10680
+ } else a2 = {};
10681
+ Object.defineProperty(a2, "__esModule", { value: true });
10682
+ Object.keys(n2).forEach(function(k2) {
10683
+ var d2 = Object.getOwnPropertyDescriptor(n2, k2);
10684
+ Object.defineProperty(a2, k2, d2.get ? d2 : {
10685
+ enumerable: true,
10686
+ get: function() {
10687
+ return n2[k2];
10688
+ }
10689
+ });
10690
+ });
10691
+ return a2;
10692
+ }
10669
10693
  var withSelector = { exports: {} };
10670
- var withSelector_production_min = {};
10694
+ var withSelector_production = {};
10671
10695
  var shim = { exports: {} };
10672
- var useSyncExternalStoreShim_production_min = {};
10696
+ var useSyncExternalStoreShim_production = {};
10673
10697
  /**
10674
10698
  * @license React
10675
- * use-sync-external-store-shim.production.min.js
10699
+ * use-sync-external-store-shim.production.js
10676
10700
  *
10677
- * Copyright (c) Facebook, Inc. and its affiliates.
10701
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10678
10702
  *
10679
10703
  * This source code is licensed under the MIT license found in the
10680
10704
  * LICENSE file in the root directory of this source tree.
10681
10705
  */
10682
- var hasRequiredUseSyncExternalStoreShim_production_min;
10683
- function requireUseSyncExternalStoreShim_production_min() {
10684
- if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
10685
- hasRequiredUseSyncExternalStoreShim_production_min = 1;
10686
- var e2 = React2__default;
10687
- function h2(a2, b2) {
10688
- return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
10689
- }
10690
- var k2 = "function" === typeof Object.is ? Object.is : h2, l2 = e2.useState, m2 = e2.useEffect, n2 = e2.useLayoutEffect, p2 = e2.useDebugValue;
10691
- function q2(a2, b2) {
10692
- var d2 = b2(), f2 = l2({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
10693
- n2(function() {
10694
- c2.value = d2;
10695
- c2.getSnapshot = b2;
10696
- r2(c2) && g2({ inst: c2 });
10697
- }, [a2, d2, b2]);
10698
- m2(function() {
10699
- r2(c2) && g2({ inst: c2 });
10700
- return a2(function() {
10701
- r2(c2) && g2({ inst: c2 });
10702
- });
10703
- }, [a2]);
10704
- p2(d2);
10705
- return d2;
10706
+ var hasRequiredUseSyncExternalStoreShim_production;
10707
+ function requireUseSyncExternalStoreShim_production() {
10708
+ if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
10709
+ hasRequiredUseSyncExternalStoreShim_production = 1;
10710
+ var React = React2__default;
10711
+ function is(x2, y2) {
10712
+ return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10713
+ }
10714
+ var objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
10715
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
10716
+ var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
10717
+ useLayoutEffect2(
10718
+ function() {
10719
+ inst.value = value;
10720
+ inst.getSnapshot = getSnapshot;
10721
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10722
+ },
10723
+ [subscribe, value, getSnapshot]
10724
+ );
10725
+ useEffect2(
10726
+ function() {
10727
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10728
+ return subscribe(function() {
10729
+ checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10730
+ });
10731
+ },
10732
+ [subscribe]
10733
+ );
10734
+ useDebugValue2(value);
10735
+ return value;
10706
10736
  }
10707
- function r2(a2) {
10708
- var b2 = a2.getSnapshot;
10709
- a2 = a2.value;
10737
+ function checkIfSnapshotChanged(inst) {
10738
+ var latestGetSnapshot = inst.getSnapshot;
10739
+ inst = inst.value;
10710
10740
  try {
10711
- var d2 = b2();
10712
- return !k2(a2, d2);
10713
- } catch (f2) {
10741
+ var nextValue = latestGetSnapshot();
10742
+ return !objectIs(inst, nextValue);
10743
+ } catch (error) {
10714
10744
  return true;
10715
10745
  }
10716
10746
  }
10717
- function t2(a2, b2) {
10718
- return b2();
10747
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
10748
+ return getSnapshot();
10719
10749
  }
10720
- var u2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q2;
10721
- useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u2;
10722
- return useSyncExternalStoreShim_production_min;
10750
+ var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
10751
+ useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
10752
+ return useSyncExternalStoreShim_production;
10723
10753
  }
10724
10754
  var hasRequiredShim;
10725
10755
  function requireShim() {
10726
10756
  if (hasRequiredShim) return shim.exports;
10727
10757
  hasRequiredShim = 1;
10728
10758
  {
10729
- shim.exports = requireUseSyncExternalStoreShim_production_min();
10759
+ shim.exports = requireUseSyncExternalStoreShim_production();
10730
10760
  }
10731
10761
  return shim.exports;
10732
10762
  }
10733
10763
  /**
10734
10764
  * @license React
10735
- * use-sync-external-store-shim/with-selector.production.min.js
10765
+ * use-sync-external-store-shim/with-selector.production.js
10736
10766
  *
10737
- * Copyright (c) Facebook, Inc. and its affiliates.
10767
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10738
10768
  *
10739
10769
  * This source code is licensed under the MIT license found in the
10740
10770
  * LICENSE file in the root directory of this source tree.
10741
10771
  */
10742
- var hasRequiredWithSelector_production_min;
10743
- function requireWithSelector_production_min() {
10744
- if (hasRequiredWithSelector_production_min) return withSelector_production_min;
10745
- hasRequiredWithSelector_production_min = 1;
10746
- var h2 = React2__default, n2 = requireShim();
10747
- function p2(a2, b2) {
10748
- return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
10749
- }
10750
- var q2 = "function" === typeof Object.is ? Object.is : p2, r2 = n2.useSyncExternalStore, t2 = h2.useRef, u2 = h2.useEffect, v2 = h2.useMemo, w2 = h2.useDebugValue;
10751
- withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2, e2, l2, g2) {
10752
- var c2 = t2(null);
10753
- if (null === c2.current) {
10754
- var f2 = { hasValue: false, value: null };
10755
- c2.current = f2;
10756
- } else f2 = c2.current;
10757
- c2 = v2(function() {
10758
- function a3(a4) {
10759
- if (!c3) {
10760
- c3 = true;
10761
- d3 = a4;
10762
- a4 = l2(a4);
10763
- if (void 0 !== g2 && f2.hasValue) {
10764
- var b3 = f2.value;
10765
- if (g2(b3, a4)) return k2 = b3;
10772
+ var hasRequiredWithSelector_production;
10773
+ function requireWithSelector_production() {
10774
+ if (hasRequiredWithSelector_production) return withSelector_production;
10775
+ hasRequiredWithSelector_production = 1;
10776
+ var React = React2__default, shim2 = requireShim();
10777
+ function is(x2, y2) {
10778
+ return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10779
+ }
10780
+ var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo2 = React.useMemo, useDebugValue2 = React.useDebugValue;
10781
+ withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
10782
+ var instRef = useRef2(null);
10783
+ if (null === instRef.current) {
10784
+ var inst = { hasValue: false, value: null };
10785
+ instRef.current = inst;
10786
+ } else inst = instRef.current;
10787
+ instRef = useMemo2(
10788
+ function() {
10789
+ function memoizedSelector(nextSnapshot) {
10790
+ if (!hasMemo) {
10791
+ hasMemo = true;
10792
+ memoizedSnapshot = nextSnapshot;
10793
+ nextSnapshot = selector2(nextSnapshot);
10794
+ if (void 0 !== isEqual && inst.hasValue) {
10795
+ var currentSelection = inst.value;
10796
+ if (isEqual(currentSelection, nextSnapshot))
10797
+ return memoizedSelection = currentSelection;
10798
+ }
10799
+ return memoizedSelection = nextSnapshot;
10800
+ }
10801
+ currentSelection = memoizedSelection;
10802
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
10803
+ var nextSelection = selector2(nextSnapshot);
10804
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
10805
+ return memoizedSnapshot = nextSnapshot, currentSelection;
10806
+ memoizedSnapshot = nextSnapshot;
10807
+ return memoizedSelection = nextSelection;
10808
+ }
10809
+ var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
10810
+ return [
10811
+ function() {
10812
+ return memoizedSelector(getSnapshot());
10813
+ },
10814
+ null === maybeGetServerSnapshot ? void 0 : function() {
10815
+ return memoizedSelector(maybeGetServerSnapshot());
10766
10816
  }
10767
- return k2 = a4;
10768
- }
10769
- b3 = k2;
10770
- if (q2(d3, a4)) return b3;
10771
- var e3 = l2(a4);
10772
- if (void 0 !== g2 && g2(b3, e3)) return b3;
10773
- d3 = a4;
10774
- return k2 = e3;
10775
- }
10776
- var c3 = false, d3, k2, m2 = void 0 === e2 ? null : e2;
10777
- return [function() {
10778
- return a3(b2());
10779
- }, null === m2 ? void 0 : function() {
10780
- return a3(m2());
10781
- }];
10782
- }, [b2, e2, l2, g2]);
10783
- var d2 = r2(a2, c2[0], c2[1]);
10784
- u2(function() {
10785
- f2.hasValue = true;
10786
- f2.value = d2;
10787
- }, [d2]);
10788
- w2(d2);
10789
- return d2;
10790
- };
10791
- return withSelector_production_min;
10817
+ ];
10818
+ },
10819
+ [getSnapshot, getServerSnapshot, selector2, isEqual]
10820
+ );
10821
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
10822
+ useEffect2(
10823
+ function() {
10824
+ inst.hasValue = true;
10825
+ inst.value = value;
10826
+ },
10827
+ [value]
10828
+ );
10829
+ useDebugValue2(value);
10830
+ return value;
10831
+ };
10832
+ return withSelector_production;
10792
10833
  }
10793
10834
  var hasRequiredWithSelector;
10794
10835
  function requireWithSelector() {
10795
10836
  if (hasRequiredWithSelector) return withSelector.exports;
10796
10837
  hasRequiredWithSelector = 1;
10797
10838
  {
10798
- withSelector.exports = requireWithSelector_production_min();
10839
+ withSelector.exports = requireWithSelector_production();
10799
10840
  }
10800
10841
  return withSelector.exports;
10801
10842
  }
@@ -10861,8 +10902,7 @@ function shallow$1(objA, objB) {
10861
10902
  return false;
10862
10903
  }
10863
10904
  if (objA instanceof Map && objB instanceof Map) {
10864
- if (objA.size !== objB.size)
10865
- return false;
10905
+ if (objA.size !== objB.size) return false;
10866
10906
  for (const [key, value] of objA) {
10867
10907
  if (!Object.is(value, objB.get(key))) {
10868
10908
  return false;
@@ -10871,8 +10911,7 @@ function shallow$1(objA, objB) {
10871
10911
  return true;
10872
10912
  }
10873
10913
  if (objA instanceof Set && objB instanceof Set) {
10874
- if (objA.size !== objB.size)
10875
- return false;
10914
+ if (objA.size !== objB.size) return false;
10876
10915
  for (const value of objA) {
10877
10916
  if (!objB.has(value)) {
10878
10917
  return false;
@@ -10884,8 +10923,8 @@ function shallow$1(objA, objB) {
10884
10923
  if (keysA.length !== Object.keys(objB).length) {
10885
10924
  return false;
10886
10925
  }
10887
- for (let i2 = 0; i2 < keysA.length; i2++) {
10888
- if (!Object.prototype.hasOwnProperty.call(objB, keysA[i2]) || !Object.is(objA[keysA[i2]], objB[keysA[i2]])) {
10926
+ for (const keyA of keysA) {
10927
+ if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
10889
10928
  return false;
10890
10929
  }
10891
10930
  }
@@ -13419,7 +13458,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
13419
13458
  const colorModeClassName = useColorModeClass(colorMode);
13420
13459
  return jsx("div", { ...rest, style: { ...style2, ...wrapperStyle }, ref, className: cc(["react-flow", className, colorModeClassName]), "data-testid": "rf__wrapper", id: id2, children: jsxs(Wrapper, { nodes, edges, width, height, fitView: fitView2, nodeOrigin, children: [jsx(GraphView, { onInit, onNodeClick, onEdgeClick, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, nodeTypes: nodeTypes2, edgeTypes: edgeTypes2, connectionLineType, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, selectionKeyCode, selectionOnDrag, selectionMode, deleteKeyCode, multiSelectionKeyCode, panActivationKeyCode, zoomActivationKeyCode, onlyRenderVisibleElements, defaultViewport: defaultViewport$1, translateExtent, minZoom, maxZoom, preventScrolling, zoomOnScroll, zoomOnPinch, zoomOnDoubleClick, panOnScroll, panOnScrollSpeed, panOnScrollMode, panOnDrag, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onReconnect, onReconnectStart, onReconnectEnd, onEdgeContextMenu, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, reconnectRadius, defaultMarkerColor, noDragClassName, noWheelClassName, noPanClassName, rfId, disableKeyboardA11y, nodeExtent, viewport, onViewportChange }), jsx(StoreUpdater, { nodes, edges, defaultNodes, defaultEdges, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, nodesDraggable, nodesConnectable, nodesFocusable, edgesFocusable, edgesReconnectable, elementsSelectable, elevateNodesOnSelect, elevateEdgesOnSelect, minZoom, maxZoom, nodeExtent, onNodesChange, onEdgesChange, snapToGrid, snapGrid, connectionMode, translateExtent, connectOnClick, defaultEdgeOptions, fitView: fitView2, fitViewOptions, onNodesDelete, onEdgesDelete, onDelete, onNodeDragStart, onNodeDrag, onNodeDragStop, onSelectionDrag, onSelectionDragStart, onSelectionDragStop, onMove, onMoveStart, onMoveEnd, noPanClassName, nodeOrigin, rfId, autoPanOnConnect, autoPanOnNodeDrag, autoPanSpeed, onError, connectionRadius, isValidConnection, selectNodesOnDrag, nodeDragThreshold, onBeforeDelete, paneClickDistance, debug }), jsx(SelectionListener, { onSelectionChange }), children2, jsx(Attribution, { proOptions, position: attributionPosition }), jsx(A11yDescriptions, { rfId, disableKeyboardA11y })] }) });
13421
13460
  }
13422
- var index$4 = fixedForwardRef(ReactFlow);
13461
+ var index$5 = fixedForwardRef(ReactFlow);
13423
13462
  const selector$6 = (s2) => {
13424
13463
  var _a;
13425
13464
  return (_a = s2.domNode) == null ? void 0 : _a.querySelector(".react-flow__edgelabel-renderer");
@@ -47570,7 +47609,7 @@ const ZoomOut = createLucideIcon("zoom-out", __iconNode);
47570
47609
  * This source code is licensed under the ISC license.
47571
47610
  * See the LICENSE file in the root directory of this source tree.
47572
47611
  */
47573
- const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47612
+ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47574
47613
  __proto__: null,
47575
47614
  AArrowDown,
47576
47615
  AArrowUp,
@@ -54901,7 +54940,7 @@ const LucideIcons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
54901
54940
  ZoomOut,
54902
54941
  ZoomOutIcon: ZoomOut,
54903
54942
  createLucideIcon,
54904
- icons: index$3
54943
+ icons: index$4
54905
54944
  }, Symbol.toStringTag, { value: "Module" }));
54906
54945
  function resolveIcon(icon, size = 20, className) {
54907
54946
  if (!icon)
@@ -56859,179 +56898,163 @@ function parse$2(value) {
56859
56898
  function stringify(values) {
56860
56899
  return values.join(" ").trim();
56861
56900
  }
56862
- var cjs$2 = {};
56863
- var cjs$1;
56864
- var hasRequiredCjs$2;
56865
- function requireCjs$2() {
56866
- if (hasRequiredCjs$2) return cjs$1;
56867
- hasRequiredCjs$2 = 1;
56868
- var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
56869
- var NEWLINE_REGEX = /\n/g;
56870
- var WHITESPACE_REGEX = /^\s*/;
56871
- var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
56872
- var COLON_REGEX = /^:\s*/;
56873
- var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
56874
- var SEMICOLON_REGEX = /^[;\s]*/;
56875
- var TRIM_REGEX = /^\s+|\s+$/g;
56876
- var NEWLINE = "\n";
56877
- var FORWARD_SLASH = "/";
56878
- var ASTERISK = "*";
56879
- var EMPTY_STRING = "";
56880
- var TYPE_COMMENT = "comment";
56881
- var TYPE_DECLARATION = "declaration";
56882
- function index2(style2, options) {
56883
- if (typeof style2 !== "string") {
56884
- throw new TypeError("First argument must be a string");
56885
- }
56886
- if (!style2) return [];
56887
- options = options || {};
56888
- var lineno = 1;
56889
- var column = 1;
56890
- function updatePosition(str2) {
56891
- var lines = str2.match(NEWLINE_REGEX);
56892
- if (lines) lineno += lines.length;
56893
- var i2 = str2.lastIndexOf(NEWLINE);
56894
- column = ~i2 ? str2.length - i2 : column + str2.length;
56895
- }
56896
- function position2() {
56897
- var start2 = { line: lineno, column };
56898
- return function(node2) {
56899
- node2.position = new Position2(start2);
56900
- whitespace2();
56901
- return node2;
56902
- };
56903
- }
56904
- function Position2(start2) {
56905
- this.start = start2;
56906
- this.end = { line: lineno, column };
56907
- this.source = options.source;
56908
- }
56909
- Position2.prototype.content = style2;
56910
- function error(msg) {
56911
- var err = new Error(
56912
- options.source + ":" + lineno + ":" + column + ": " + msg
56913
- );
56914
- err.reason = msg;
56915
- err.filename = options.source;
56916
- err.line = lineno;
56917
- err.column = column;
56918
- err.source = style2;
56919
- if (options.silent) ;
56920
- else {
56921
- throw err;
56922
- }
56923
- }
56924
- function match(re2) {
56925
- var m2 = re2.exec(style2);
56926
- if (!m2) return;
56927
- var str2 = m2[0];
56928
- updatePosition(str2);
56929
- style2 = style2.slice(str2.length);
56930
- return m2;
56931
- }
56932
- function whitespace2() {
56933
- match(WHITESPACE_REGEX);
56934
- }
56935
- function comments(rules) {
56936
- var c2;
56937
- rules = rules || [];
56938
- while (c2 = comment2()) {
56939
- if (c2 !== false) {
56940
- rules.push(c2);
56941
- }
56942
- }
56943
- return rules;
56944
- }
56945
- function comment2() {
56946
- var pos = position2();
56947
- if (FORWARD_SLASH != style2.charAt(0) || ASTERISK != style2.charAt(1)) return;
56948
- var i2 = 2;
56949
- while (EMPTY_STRING != style2.charAt(i2) && (ASTERISK != style2.charAt(i2) || FORWARD_SLASH != style2.charAt(i2 + 1))) {
56950
- ++i2;
56951
- }
56952
- i2 += 2;
56953
- if (EMPTY_STRING === style2.charAt(i2 - 1)) {
56954
- return error("End of comment missing");
56955
- }
56956
- var str2 = style2.slice(2, i2 - 2);
56957
- column += 2;
56958
- updatePosition(str2);
56959
- style2 = style2.slice(i2);
56960
- column += 2;
56961
- return pos({
56962
- type: TYPE_COMMENT,
56963
- comment: str2
56964
- });
56965
- }
56966
- function declaration() {
56967
- var pos = position2();
56968
- var prop = match(PROPERTY_REGEX);
56969
- if (!prop) return;
56970
- comment2();
56971
- if (!match(COLON_REGEX)) return error("property missing ':'");
56972
- var val = match(VALUE_REGEX);
56973
- var ret = pos({
56974
- type: TYPE_DECLARATION,
56975
- property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
56976
- value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
56977
- });
56978
- match(SEMICOLON_REGEX);
56979
- return ret;
56980
- }
56981
- function declarations() {
56982
- var decls = [];
56983
- comments(decls);
56984
- var decl;
56985
- while (decl = declaration()) {
56986
- if (decl !== false) {
56987
- decls.push(decl);
56988
- comments(decls);
56989
- }
56901
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
56902
+ var NEWLINE_REGEX = /\n/g;
56903
+ var WHITESPACE_REGEX = /^\s*/;
56904
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
56905
+ var COLON_REGEX = /^:\s*/;
56906
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
56907
+ var SEMICOLON_REGEX = /^[;\s]*/;
56908
+ var TRIM_REGEX = /^\s+|\s+$/g;
56909
+ var NEWLINE = "\n";
56910
+ var FORWARD_SLASH = "/";
56911
+ var ASTERISK = "*";
56912
+ var EMPTY_STRING = "";
56913
+ var TYPE_COMMENT = "comment";
56914
+ var TYPE_DECLARATION = "declaration";
56915
+ function index$3(style2, options) {
56916
+ if (typeof style2 !== "string") {
56917
+ throw new TypeError("First argument must be a string");
56918
+ }
56919
+ if (!style2) return [];
56920
+ options = options || {};
56921
+ var lineno = 1;
56922
+ var column = 1;
56923
+ function updatePosition(str2) {
56924
+ var lines = str2.match(NEWLINE_REGEX);
56925
+ if (lines) lineno += lines.length;
56926
+ var i2 = str2.lastIndexOf(NEWLINE);
56927
+ column = ~i2 ? str2.length - i2 : column + str2.length;
56928
+ }
56929
+ function position2() {
56930
+ var start2 = { line: lineno, column };
56931
+ return function(node2) {
56932
+ node2.position = new Position2(start2);
56933
+ whitespace2();
56934
+ return node2;
56935
+ };
56936
+ }
56937
+ function Position2(start2) {
56938
+ this.start = start2;
56939
+ this.end = { line: lineno, column };
56940
+ this.source = options.source;
56941
+ }
56942
+ Position2.prototype.content = style2;
56943
+ function error(msg) {
56944
+ var err = new Error(
56945
+ options.source + ":" + lineno + ":" + column + ": " + msg
56946
+ );
56947
+ err.reason = msg;
56948
+ err.filename = options.source;
56949
+ err.line = lineno;
56950
+ err.column = column;
56951
+ err.source = style2;
56952
+ if (options.silent) ;
56953
+ else {
56954
+ throw err;
56955
+ }
56956
+ }
56957
+ function match(re2) {
56958
+ var m2 = re2.exec(style2);
56959
+ if (!m2) return;
56960
+ var str2 = m2[0];
56961
+ updatePosition(str2);
56962
+ style2 = style2.slice(str2.length);
56963
+ return m2;
56964
+ }
56965
+ function whitespace2() {
56966
+ match(WHITESPACE_REGEX);
56967
+ }
56968
+ function comments(rules) {
56969
+ var c2;
56970
+ rules = rules || [];
56971
+ while (c2 = comment2()) {
56972
+ if (c2 !== false) {
56973
+ rules.push(c2);
56974
+ }
56975
+ }
56976
+ return rules;
56977
+ }
56978
+ function comment2() {
56979
+ var pos = position2();
56980
+ if (FORWARD_SLASH != style2.charAt(0) || ASTERISK != style2.charAt(1)) return;
56981
+ var i2 = 2;
56982
+ while (EMPTY_STRING != style2.charAt(i2) && (ASTERISK != style2.charAt(i2) || FORWARD_SLASH != style2.charAt(i2 + 1))) {
56983
+ ++i2;
56984
+ }
56985
+ i2 += 2;
56986
+ if (EMPTY_STRING === style2.charAt(i2 - 1)) {
56987
+ return error("End of comment missing");
56988
+ }
56989
+ var str2 = style2.slice(2, i2 - 2);
56990
+ column += 2;
56991
+ updatePosition(str2);
56992
+ style2 = style2.slice(i2);
56993
+ column += 2;
56994
+ return pos({
56995
+ type: TYPE_COMMENT,
56996
+ comment: str2
56997
+ });
56998
+ }
56999
+ function declaration() {
57000
+ var pos = position2();
57001
+ var prop = match(PROPERTY_REGEX);
57002
+ if (!prop) return;
57003
+ comment2();
57004
+ if (!match(COLON_REGEX)) return error("property missing ':'");
57005
+ var val = match(VALUE_REGEX);
57006
+ var ret = pos({
57007
+ type: TYPE_DECLARATION,
57008
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
57009
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
57010
+ });
57011
+ match(SEMICOLON_REGEX);
57012
+ return ret;
57013
+ }
57014
+ function declarations() {
57015
+ var decls = [];
57016
+ comments(decls);
57017
+ var decl;
57018
+ while (decl = declaration()) {
57019
+ if (decl !== false) {
57020
+ decls.push(decl);
57021
+ comments(decls);
56990
57022
  }
56991
- return decls;
56992
57023
  }
56993
- whitespace2();
56994
- return declarations();
57024
+ return decls;
56995
57025
  }
56996
- function trim(str2) {
56997
- return str2 ? str2.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
56998
- }
56999
- cjs$1 = index2;
57000
- return cjs$1;
57026
+ whitespace2();
57027
+ return declarations();
57001
57028
  }
57002
- var hasRequiredCjs$1;
57003
- function requireCjs$1() {
57004
- if (hasRequiredCjs$1) return cjs$2;
57005
- hasRequiredCjs$1 = 1;
57006
- var __importDefault = cjs$2 && cjs$2.__importDefault || function(mod) {
57007
- return mod && mod.__esModule ? mod : { "default": mod };
57008
- };
57009
- Object.defineProperty(cjs$2, "__esModule", { value: true });
57010
- cjs$2.default = StyleToObject;
57011
- const inline_style_parser_1 = __importDefault(requireCjs$2());
57012
- function StyleToObject(style2, iterator) {
57013
- let styleObject = null;
57014
- if (!style2 || typeof style2 !== "string") {
57015
- return styleObject;
57016
- }
57017
- const declarations = (0, inline_style_parser_1.default)(style2);
57018
- const hasIterator = typeof iterator === "function";
57019
- declarations.forEach((declaration) => {
57020
- if (declaration.type !== "declaration") {
57021
- return;
57022
- }
57023
- const { property, value } = declaration;
57024
- if (hasIterator) {
57025
- iterator(property, value, declaration);
57026
- } else if (value) {
57027
- styleObject = styleObject || {};
57028
- styleObject[property] = value;
57029
- }
57030
- });
57029
+ function trim(str2) {
57030
+ return str2 ? str2.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
57031
+ }
57032
+ function StyleToObject(style2, iterator) {
57033
+ let styleObject = null;
57034
+ if (!style2 || typeof style2 !== "string") {
57031
57035
  return styleObject;
57032
57036
  }
57033
- return cjs$2;
57037
+ const declarations = index$3(style2);
57038
+ const hasIterator = typeof iterator === "function";
57039
+ declarations.forEach((declaration) => {
57040
+ if (declaration.type !== "declaration") {
57041
+ return;
57042
+ }
57043
+ const { property, value } = declaration;
57044
+ if (hasIterator) {
57045
+ iterator(property, value, declaration);
57046
+ } else if (value) {
57047
+ styleObject = styleObject || {};
57048
+ styleObject[property] = value;
57049
+ }
57050
+ });
57051
+ return styleObject;
57034
57052
  }
57053
+ const esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
57054
+ __proto__: null,
57055
+ default: StyleToObject
57056
+ }, Symbol.toStringTag, { value: "Module" }));
57057
+ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(esm);
57035
57058
  var utilities = {};
57036
57059
  var hasRequiredUtilities;
57037
57060
  function requireUtilities() {
@@ -57079,7 +57102,7 @@ function requireCjs() {
57079
57102
  var __importDefault = cjs && cjs.__importDefault || function(mod) {
57080
57103
  return mod && mod.__esModule ? mod : { "default": mod };
57081
57104
  };
57082
- var style_to_object_1 = __importDefault(requireCjs$1());
57105
+ var style_to_object_1 = __importDefault(require$$0);
57083
57106
  var utilities_1 = requireUtilities();
57084
57107
  function StyleToJS(style2, options) {
57085
57108
  var output = {};
@@ -77040,7 +77063,7 @@ function swift(hljs) {
77040
77063
  3: "keyword"
77041
77064
  }
77042
77065
  };
77043
- const TYPE_DECLARATION = {
77066
+ const TYPE_DECLARATION2 = {
77044
77067
  begin: [
77045
77068
  /(struct|protocol|class|extension|enum|actor)/,
77046
77069
  /\s+/,
@@ -77102,7 +77125,7 @@ function swift(hljs) {
77102
77125
  INIT_SUBSCRIPT,
77103
77126
  CLASS_FUNC_DECLARATION,
77104
77127
  CLASS_VAR_DECLARATION,
77105
- TYPE_DECLARATION,
77128
+ TYPE_DECLARATION2,
77106
77129
  OPERATOR_DECLARATION,
77107
77130
  PRECEDENCEGROUP,
77108
77131
  {
@@ -100932,7 +100955,7 @@ const GraphRendererInner = ({ configuration, nodes: propNodes, edges: propEdges,
100932
100955
  }, 100);
100933
100956
  return () => clearTimeout(timeoutId);
100934
100957
  }, [baseNodesKey, baseEdgesKey, fitView2, fitViewDuration]);
100935
- return jsxs(Fragment, { children: [jsxs(index$4, { nodes: xyflowNodes, edges: xyflowEdges, nodeTypes, edgeTypes, minZoom: 0.1, maxZoom: 4, defaultEdgeOptions: { type: "custom" }, onEdgeClick, onNodeClick, onNodeDrag: handleNodeDrag, onNodeDragStop: handleNodeDragStop, proOptions: { hideAttribution: true }, nodesDraggable: editable, elementsSelectable: true, nodesConnectable: editable, edgesReconnectable: editable, reconnectRadius: 25, elevateEdgesOnSelect: true, onNodesChange: handleNodesChange, onEdgesChange: handleEdgesChange, onConnect: handleConnect, onReconnectStart: handleReconnectStart, onReconnect: handleReconnect, onReconnectEnd: handleReconnectEnd, onPaneClick, onSelectionChange: handleSelectionChange, panOnDrag: false, panOnScroll: true, zoomOnScroll: false, zoomOnPinch: true, selectionOnDrag: true, selectionKeyCode: null, multiSelectionKeyCode: null, children: [showBackground && jsx(Background, { color: backgroundVariant === "dots" ? theme2.colors.border : theme2.colors.textMuted, gap: backgroundGap ?? (backgroundVariant === "dots" ? 16 : 50), size: backgroundVariant === "dots" ? 1 : 0.5, variant: backgroundVariant === "dots" ? BackgroundVariant.Dots : backgroundVariant === "lines" ? BackgroundVariant.Lines : BackgroundVariant.Cross }), showControls && jsx(Controls, { showZoom: true, showFitView: true, showInteractive: true }), showMinimap && jsx(MiniMap, { nodeColor: (node2) => {
100958
+ return jsxs(Fragment, { children: [jsxs(index$5, { nodes: xyflowNodes, edges: xyflowEdges, nodeTypes, edgeTypes, minZoom: 0.1, maxZoom: 4, defaultEdgeOptions: { type: "custom" }, onEdgeClick, onNodeClick, onNodeDrag: handleNodeDrag, onNodeDragStop: handleNodeDragStop, proOptions: { hideAttribution: true }, nodesDraggable: editable, elementsSelectable: true, nodesConnectable: editable, edgesReconnectable: editable, reconnectRadius: 25, elevateEdgesOnSelect: true, onNodesChange: handleNodesChange, onEdgesChange: handleEdgesChange, onConnect: handleConnect, onReconnectStart: handleReconnectStart, onReconnect: handleReconnect, onReconnectEnd: handleReconnectEnd, onPaneClick, onSelectionChange: handleSelectionChange, panOnDrag: false, panOnScroll: true, zoomOnScroll: false, zoomOnPinch: true, selectionOnDrag: true, selectionKeyCode: null, multiSelectionKeyCode: null, children: [showBackground && jsx(Background, { color: backgroundVariant === "dots" ? theme2.colors.border : theme2.colors.textMuted, gap: backgroundGap ?? (backgroundVariant === "dots" ? 16 : 50), size: backgroundVariant === "dots" ? 1 : 0.5, variant: backgroundVariant === "dots" ? BackgroundVariant.Dots : backgroundVariant === "lines" ? BackgroundVariant.Lines : BackgroundVariant.Cross }), showControls && jsx(Controls, { showZoom: true, showFitView: true, showInteractive: true }), showMinimap && jsx(MiniMap, { nodeColor: (node2) => {
100936
100959
  var _a;
100937
100960
  const nodeData = node2.data;
100938
100961
  return ((_a = nodeData == null ? void 0 : nodeData.typeDefinition) == null ? void 0 : _a.color) || theme2.colors.secondary;
@@ -106207,7 +106230,7 @@ const browserExt = {
106207
106230
  },
106208
106231
  test: () => true,
106209
106232
  load: async () => {
106210
- await import("./browserAll-DPf_9c30.js");
106233
+ await import("./browserAll-CTmQ_vRe.js");
106211
106234
  }
106212
106235
  };
106213
106236
  const webworkerExt = {
@@ -106218,7 +106241,7 @@ const webworkerExt = {
106218
106241
  },
106219
106242
  test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
106220
106243
  load: async () => {
106221
- await import("./webworkerAll-qtgeoODS.js");
106244
+ await import("./webworkerAll-CjJZV9Yl.js");
106222
106245
  }
106223
106246
  };
106224
106247
  class ObservablePoint {
@@ -109035,15 +109058,15 @@ class TextureMatrix {
109035
109058
  const uvs = tex.uvs;
109036
109059
  this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
109037
109060
  const orig = tex.orig;
109038
- const trim = tex.trim;
109039
- if (trim) {
109061
+ const trim2 = tex.trim;
109062
+ if (trim2) {
109040
109063
  tempMat.set(
109041
- orig.width / trim.width,
109064
+ orig.width / trim2.width,
109042
109065
  0,
109043
109066
  0,
109044
- orig.height / trim.height,
109045
- -trim.x / trim.width,
109046
- -trim.y / trim.height
109067
+ orig.height / trim2.height,
109068
+ -trim2.x / trim2.width,
109069
+ -trim2.y / trim2.height
109047
109070
  );
109048
109071
  this.mapCoord.append(tempMat);
109049
109072
  }
@@ -109070,7 +109093,7 @@ class Texture extends EventEmitter {
109070
109093
  label,
109071
109094
  frame: frame2,
109072
109095
  orig,
109073
- trim,
109096
+ trim: trim2,
109074
109097
  defaultAnchor,
109075
109098
  defaultBorders,
109076
109099
  rotate,
@@ -109094,7 +109117,7 @@ class Texture extends EventEmitter {
109094
109117
  this.frame.height = height;
109095
109118
  }
109096
109119
  this.orig = orig || this.frame;
109097
- this.trim = trim;
109120
+ this.trim = trim2;
109098
109121
  this.rotate = rotate ?? 0;
109099
109122
  this.defaultAnchor = defaultAnchor;
109100
109123
  this.defaultBorders = defaultBorders;
@@ -109222,13 +109245,13 @@ Texture.WHITE = new Texture({
109222
109245
  Texture.WHITE.destroy = NOOP;
109223
109246
  function updateQuadBounds(bounds, anchor, texture) {
109224
109247
  const { width, height } = texture.orig;
109225
- const trim = texture.trim;
109226
- if (trim) {
109227
- const sourceWidth = trim.width;
109228
- const sourceHeight = trim.height;
109229
- bounds.minX = trim.x - anchor._x * width;
109248
+ const trim2 = texture.trim;
109249
+ if (trim2) {
109250
+ const sourceWidth = trim2.width;
109251
+ const sourceHeight = trim2.height;
109252
+ bounds.minX = trim2.x - anchor._x * width;
109230
109253
  bounds.maxX = bounds.minX + sourceWidth;
109231
- bounds.minY = trim.y - anchor._y * height;
109254
+ bounds.minY = trim2.y - anchor._y * height;
109232
109255
  bounds.maxY = bounds.minY + sourceHeight;
109233
109256
  } else {
109234
109257
  bounds.minX = -anchor._x * width;
@@ -116235,7 +116258,7 @@ const _Spritesheet = class _Spritesheet2 {
116235
116258
  const rect = data.frame;
116236
116259
  if (rect) {
116237
116260
  let frame2 = null;
116238
- let trim = null;
116261
+ let trim2 = null;
116239
116262
  const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame;
116240
116263
  const orig = new Rectangle(
116241
116264
  0,
@@ -116259,7 +116282,7 @@ const _Spritesheet = class _Spritesheet2 {
116259
116282
  );
116260
116283
  }
116261
116284
  if (data.trimmed !== false && data.spriteSourceSize) {
116262
- trim = new Rectangle(
116285
+ trim2 = new Rectangle(
116263
116286
  Math.floor(data.spriteSourceSize.x) / this.resolution,
116264
116287
  Math.floor(data.spriteSourceSize.y) / this.resolution,
116265
116288
  Math.floor(rect.w) / this.resolution,
@@ -116270,7 +116293,7 @@ const _Spritesheet = class _Spritesheet2 {
116270
116293
  source: this.textureSource,
116271
116294
  frame: frame2,
116272
116295
  orig,
116273
- trim,
116296
+ trim: trim2,
116274
116297
  rotate: data.rotated ? 2 : 0,
116275
116298
  defaultAnchor: data.anchor,
116276
116299
  defaultBorders: data.borders,
@@ -155284,4 +155307,4 @@ export {
155284
155307
  RepoCardStatic as y,
155285
155308
  renderSpriteToDataUrl as z
155286
155309
  };
155287
- //# sourceMappingURL=index-BltudByL.js.map
155310
+ //# sourceMappingURL=index-D8MSY071.js.map