[2f988f42] readme.md wiederhergestellt.
readme.md wiederhergestellt.
This commit is contained in:
70
heatmap-tool/frontend/.vite/deps/@dnd-kit_core.js
Normal file
70
heatmap-tool/frontend/.vite/deps/@dnd-kit_core.js
Normal file
@@ -0,0 +1,70 @@
|
||||
import {
|
||||
AutoScrollActivator,
|
||||
DndContext,
|
||||
DragOverlay,
|
||||
KeyboardCode,
|
||||
KeyboardSensor,
|
||||
MeasuringFrequency,
|
||||
MeasuringStrategy,
|
||||
MouseSensor,
|
||||
PointerSensor,
|
||||
TouchSensor,
|
||||
TraversalOrder,
|
||||
applyModifiers,
|
||||
closestCenter,
|
||||
closestCorners,
|
||||
defaultAnnouncements,
|
||||
defaultCoordinates,
|
||||
defaultDropAnimationConfiguration,
|
||||
defaultDropAnimationSideEffects,
|
||||
defaultKeyboardCoordinateGetter,
|
||||
defaultScreenReaderInstructions,
|
||||
getClientRect,
|
||||
getFirstCollision,
|
||||
getScrollableAncestors,
|
||||
pointerWithin,
|
||||
rectIntersection,
|
||||
useDndContext,
|
||||
useDndMonitor,
|
||||
useDraggable,
|
||||
useDroppable,
|
||||
useSensor,
|
||||
useSensors
|
||||
} from "./chunk-KTM66X27.js";
|
||||
import "./chunk-BC2PPIIJ.js";
|
||||
import "./chunk-AU2MKR2E.js";
|
||||
import "./chunk-VX2H6PUQ.js";
|
||||
import "./chunk-G3PMV62Z.js";
|
||||
export {
|
||||
AutoScrollActivator,
|
||||
DndContext,
|
||||
DragOverlay,
|
||||
KeyboardCode,
|
||||
KeyboardSensor,
|
||||
MeasuringFrequency,
|
||||
MeasuringStrategy,
|
||||
MouseSensor,
|
||||
PointerSensor,
|
||||
TouchSensor,
|
||||
TraversalOrder,
|
||||
applyModifiers,
|
||||
closestCenter,
|
||||
closestCorners,
|
||||
defaultAnnouncements,
|
||||
defaultCoordinates,
|
||||
defaultDropAnimationConfiguration as defaultDropAnimation,
|
||||
defaultDropAnimationSideEffects,
|
||||
defaultKeyboardCoordinateGetter,
|
||||
defaultScreenReaderInstructions,
|
||||
getClientRect,
|
||||
getFirstCollision,
|
||||
getScrollableAncestors,
|
||||
pointerWithin,
|
||||
rectIntersection,
|
||||
useDndContext,
|
||||
useDndMonitor,
|
||||
useDraggable,
|
||||
useDroppable,
|
||||
useSensor,
|
||||
useSensors
|
||||
};
|
||||
7
heatmap-tool/frontend/.vite/deps/@dnd-kit_core.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/@dnd-kit_core.js.map
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
717
heatmap-tool/frontend/.vite/deps/@dnd-kit_sortable.js
Normal file
717
heatmap-tool/frontend/.vite/deps/@dnd-kit_sortable.js
Normal file
@@ -0,0 +1,717 @@
|
||||
import {
|
||||
KeyboardCode,
|
||||
closestCorners,
|
||||
getClientRect,
|
||||
getFirstCollision,
|
||||
getScrollableAncestors,
|
||||
useDndContext,
|
||||
useDraggable,
|
||||
useDroppable
|
||||
} from "./chunk-KTM66X27.js";
|
||||
import {
|
||||
CSS,
|
||||
isKeyboardEvent,
|
||||
subtract,
|
||||
useCombinedRefs,
|
||||
useIsomorphicLayoutEffect,
|
||||
useUniqueId
|
||||
} from "./chunk-BC2PPIIJ.js";
|
||||
import "./chunk-AU2MKR2E.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/@dnd-kit/sortable/dist/sortable.esm.js
|
||||
var import_react = __toESM(require_react());
|
||||
function arrayMove(array, from, to) {
|
||||
const newArray = array.slice();
|
||||
newArray.splice(to < 0 ? newArray.length + to : to, 0, newArray.splice(from, 1)[0]);
|
||||
return newArray;
|
||||
}
|
||||
function arraySwap(array, from, to) {
|
||||
const newArray = array.slice();
|
||||
newArray[from] = array[to];
|
||||
newArray[to] = array[from];
|
||||
return newArray;
|
||||
}
|
||||
function getSortedRects(items, rects) {
|
||||
return items.reduce((accumulator, id, index) => {
|
||||
const rect = rects.get(id);
|
||||
if (rect) {
|
||||
accumulator[index] = rect;
|
||||
}
|
||||
return accumulator;
|
||||
}, Array(items.length));
|
||||
}
|
||||
function isValidIndex(index) {
|
||||
return index !== null && index >= 0;
|
||||
}
|
||||
function itemsEqual(a, b) {
|
||||
if (a === b) {
|
||||
return true;
|
||||
}
|
||||
if (a.length !== b.length) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < a.length; i++) {
|
||||
if (a[i] !== b[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function normalizeDisabled(disabled) {
|
||||
if (typeof disabled === "boolean") {
|
||||
return {
|
||||
draggable: disabled,
|
||||
droppable: disabled
|
||||
};
|
||||
}
|
||||
return disabled;
|
||||
}
|
||||
var defaultScale = {
|
||||
scaleX: 1,
|
||||
scaleY: 1
|
||||
};
|
||||
var horizontalListSortingStrategy = (_ref) => {
|
||||
var _rects$activeIndex;
|
||||
let {
|
||||
rects,
|
||||
activeNodeRect: fallbackActiveRect,
|
||||
activeIndex,
|
||||
overIndex,
|
||||
index
|
||||
} = _ref;
|
||||
const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;
|
||||
if (!activeNodeRect) {
|
||||
return null;
|
||||
}
|
||||
const itemGap = getItemGap(rects, index, activeIndex);
|
||||
if (index === activeIndex) {
|
||||
const newIndexRect = rects[overIndex];
|
||||
if (!newIndexRect) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
x: activeIndex < overIndex ? newIndexRect.left + newIndexRect.width - (activeNodeRect.left + activeNodeRect.width) : newIndexRect.left - activeNodeRect.left,
|
||||
y: 0,
|
||||
...defaultScale
|
||||
};
|
||||
}
|
||||
if (index > activeIndex && index <= overIndex) {
|
||||
return {
|
||||
x: -activeNodeRect.width - itemGap,
|
||||
y: 0,
|
||||
...defaultScale
|
||||
};
|
||||
}
|
||||
if (index < activeIndex && index >= overIndex) {
|
||||
return {
|
||||
x: activeNodeRect.width + itemGap,
|
||||
y: 0,
|
||||
...defaultScale
|
||||
};
|
||||
}
|
||||
return {
|
||||
x: 0,
|
||||
y: 0,
|
||||
...defaultScale
|
||||
};
|
||||
};
|
||||
function getItemGap(rects, index, activeIndex) {
|
||||
const currentRect = rects[index];
|
||||
const previousRect = rects[index - 1];
|
||||
const nextRect = rects[index + 1];
|
||||
if (!currentRect || !previousRect && !nextRect) {
|
||||
return 0;
|
||||
}
|
||||
if (activeIndex < index) {
|
||||
return previousRect ? currentRect.left - (previousRect.left + previousRect.width) : nextRect.left - (currentRect.left + currentRect.width);
|
||||
}
|
||||
return nextRect ? nextRect.left - (currentRect.left + currentRect.width) : currentRect.left - (previousRect.left + previousRect.width);
|
||||
}
|
||||
var rectSortingStrategy = (_ref) => {
|
||||
let {
|
||||
rects,
|
||||
activeIndex,
|
||||
overIndex,
|
||||
index
|
||||
} = _ref;
|
||||
const newRects = arrayMove(rects, overIndex, activeIndex);
|
||||
const oldRect = rects[index];
|
||||
const newRect = newRects[index];
|
||||
if (!newRect || !oldRect) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
x: newRect.left - oldRect.left,
|
||||
y: newRect.top - oldRect.top,
|
||||
scaleX: newRect.width / oldRect.width,
|
||||
scaleY: newRect.height / oldRect.height
|
||||
};
|
||||
};
|
||||
var rectSwappingStrategy = (_ref) => {
|
||||
let {
|
||||
activeIndex,
|
||||
index,
|
||||
rects,
|
||||
overIndex
|
||||
} = _ref;
|
||||
let oldRect;
|
||||
let newRect;
|
||||
if (index === activeIndex) {
|
||||
oldRect = rects[index];
|
||||
newRect = rects[overIndex];
|
||||
}
|
||||
if (index === overIndex) {
|
||||
oldRect = rects[index];
|
||||
newRect = rects[activeIndex];
|
||||
}
|
||||
if (!newRect || !oldRect) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
x: newRect.left - oldRect.left,
|
||||
y: newRect.top - oldRect.top,
|
||||
scaleX: newRect.width / oldRect.width,
|
||||
scaleY: newRect.height / oldRect.height
|
||||
};
|
||||
};
|
||||
var defaultScale$1 = {
|
||||
scaleX: 1,
|
||||
scaleY: 1
|
||||
};
|
||||
var verticalListSortingStrategy = (_ref) => {
|
||||
var _rects$activeIndex;
|
||||
let {
|
||||
activeIndex,
|
||||
activeNodeRect: fallbackActiveRect,
|
||||
index,
|
||||
rects,
|
||||
overIndex
|
||||
} = _ref;
|
||||
const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;
|
||||
if (!activeNodeRect) {
|
||||
return null;
|
||||
}
|
||||
if (index === activeIndex) {
|
||||
const overIndexRect = rects[overIndex];
|
||||
if (!overIndexRect) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
x: 0,
|
||||
y: activeIndex < overIndex ? overIndexRect.top + overIndexRect.height - (activeNodeRect.top + activeNodeRect.height) : overIndexRect.top - activeNodeRect.top,
|
||||
...defaultScale$1
|
||||
};
|
||||
}
|
||||
const itemGap = getItemGap$1(rects, index, activeIndex);
|
||||
if (index > activeIndex && index <= overIndex) {
|
||||
return {
|
||||
x: 0,
|
||||
y: -activeNodeRect.height - itemGap,
|
||||
...defaultScale$1
|
||||
};
|
||||
}
|
||||
if (index < activeIndex && index >= overIndex) {
|
||||
return {
|
||||
x: 0,
|
||||
y: activeNodeRect.height + itemGap,
|
||||
...defaultScale$1
|
||||
};
|
||||
}
|
||||
return {
|
||||
x: 0,
|
||||
y: 0,
|
||||
...defaultScale$1
|
||||
};
|
||||
};
|
||||
function getItemGap$1(clientRects, index, activeIndex) {
|
||||
const currentRect = clientRects[index];
|
||||
const previousRect = clientRects[index - 1];
|
||||
const nextRect = clientRects[index + 1];
|
||||
if (!currentRect) {
|
||||
return 0;
|
||||
}
|
||||
if (activeIndex < index) {
|
||||
return previousRect ? currentRect.top - (previousRect.top + previousRect.height) : nextRect ? nextRect.top - (currentRect.top + currentRect.height) : 0;
|
||||
}
|
||||
return nextRect ? nextRect.top - (currentRect.top + currentRect.height) : previousRect ? currentRect.top - (previousRect.top + previousRect.height) : 0;
|
||||
}
|
||||
var ID_PREFIX = "Sortable";
|
||||
var Context = import_react.default.createContext({
|
||||
activeIndex: -1,
|
||||
containerId: ID_PREFIX,
|
||||
disableTransforms: false,
|
||||
items: [],
|
||||
overIndex: -1,
|
||||
useDragOverlay: false,
|
||||
sortedRects: [],
|
||||
strategy: rectSortingStrategy,
|
||||
disabled: {
|
||||
draggable: false,
|
||||
droppable: false
|
||||
}
|
||||
});
|
||||
function SortableContext(_ref) {
|
||||
let {
|
||||
children,
|
||||
id,
|
||||
items: userDefinedItems,
|
||||
strategy = rectSortingStrategy,
|
||||
disabled: disabledProp = false
|
||||
} = _ref;
|
||||
const {
|
||||
active,
|
||||
dragOverlay,
|
||||
droppableRects,
|
||||
over,
|
||||
measureDroppableContainers
|
||||
} = useDndContext();
|
||||
const containerId = useUniqueId(ID_PREFIX, id);
|
||||
const useDragOverlay = Boolean(dragOverlay.rect !== null);
|
||||
const items = (0, import_react.useMemo)(() => userDefinedItems.map((item) => typeof item === "object" && "id" in item ? item.id : item), [userDefinedItems]);
|
||||
const isDragging = active != null;
|
||||
const activeIndex = active ? items.indexOf(active.id) : -1;
|
||||
const overIndex = over ? items.indexOf(over.id) : -1;
|
||||
const previousItemsRef = (0, import_react.useRef)(items);
|
||||
const itemsHaveChanged = !itemsEqual(items, previousItemsRef.current);
|
||||
const disableTransforms = overIndex !== -1 && activeIndex === -1 || itemsHaveChanged;
|
||||
const disabled = normalizeDisabled(disabledProp);
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
if (itemsHaveChanged && isDragging) {
|
||||
measureDroppableContainers(items);
|
||||
}
|
||||
}, [itemsHaveChanged, items, isDragging, measureDroppableContainers]);
|
||||
(0, import_react.useEffect)(() => {
|
||||
previousItemsRef.current = items;
|
||||
}, [items]);
|
||||
const contextValue = (0, import_react.useMemo)(
|
||||
() => ({
|
||||
activeIndex,
|
||||
containerId,
|
||||
disabled,
|
||||
disableTransforms,
|
||||
items,
|
||||
overIndex,
|
||||
useDragOverlay,
|
||||
sortedRects: getSortedRects(items, droppableRects),
|
||||
strategy
|
||||
}),
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[activeIndex, containerId, disabled.draggable, disabled.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]
|
||||
);
|
||||
return import_react.default.createElement(Context.Provider, {
|
||||
value: contextValue
|
||||
}, children);
|
||||
}
|
||||
var defaultNewIndexGetter = (_ref) => {
|
||||
let {
|
||||
id,
|
||||
items,
|
||||
activeIndex,
|
||||
overIndex
|
||||
} = _ref;
|
||||
return arrayMove(items, activeIndex, overIndex).indexOf(id);
|
||||
};
|
||||
var defaultAnimateLayoutChanges = (_ref2) => {
|
||||
let {
|
||||
containerId,
|
||||
isSorting,
|
||||
wasDragging,
|
||||
index,
|
||||
items,
|
||||
newIndex,
|
||||
previousItems,
|
||||
previousContainerId,
|
||||
transition
|
||||
} = _ref2;
|
||||
if (!transition || !wasDragging) {
|
||||
return false;
|
||||
}
|
||||
if (previousItems !== items && index === newIndex) {
|
||||
return false;
|
||||
}
|
||||
if (isSorting) {
|
||||
return true;
|
||||
}
|
||||
return newIndex !== index && containerId === previousContainerId;
|
||||
};
|
||||
var defaultTransition = {
|
||||
duration: 200,
|
||||
easing: "ease"
|
||||
};
|
||||
var transitionProperty = "transform";
|
||||
var disabledTransition = CSS.Transition.toString({
|
||||
property: transitionProperty,
|
||||
duration: 0,
|
||||
easing: "linear"
|
||||
});
|
||||
var defaultAttributes = {
|
||||
roleDescription: "sortable"
|
||||
};
|
||||
function useDerivedTransform(_ref) {
|
||||
let {
|
||||
disabled,
|
||||
index,
|
||||
node,
|
||||
rect
|
||||
} = _ref;
|
||||
const [derivedTransform, setDerivedtransform] = (0, import_react.useState)(null);
|
||||
const previousIndex = (0, import_react.useRef)(index);
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
if (!disabled && index !== previousIndex.current && node.current) {
|
||||
const initial = rect.current;
|
||||
if (initial) {
|
||||
const current = getClientRect(node.current, {
|
||||
ignoreTransform: true
|
||||
});
|
||||
const delta = {
|
||||
x: initial.left - current.left,
|
||||
y: initial.top - current.top,
|
||||
scaleX: initial.width / current.width,
|
||||
scaleY: initial.height / current.height
|
||||
};
|
||||
if (delta.x || delta.y) {
|
||||
setDerivedtransform(delta);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (index !== previousIndex.current) {
|
||||
previousIndex.current = index;
|
||||
}
|
||||
}, [disabled, index, node, rect]);
|
||||
(0, import_react.useEffect)(() => {
|
||||
if (derivedTransform) {
|
||||
setDerivedtransform(null);
|
||||
}
|
||||
}, [derivedTransform]);
|
||||
return derivedTransform;
|
||||
}
|
||||
function useSortable(_ref) {
|
||||
let {
|
||||
animateLayoutChanges = defaultAnimateLayoutChanges,
|
||||
attributes: userDefinedAttributes,
|
||||
disabled: localDisabled,
|
||||
data: customData,
|
||||
getNewIndex = defaultNewIndexGetter,
|
||||
id,
|
||||
strategy: localStrategy,
|
||||
resizeObserverConfig,
|
||||
transition = defaultTransition
|
||||
} = _ref;
|
||||
const {
|
||||
items,
|
||||
containerId,
|
||||
activeIndex,
|
||||
disabled: globalDisabled,
|
||||
disableTransforms,
|
||||
sortedRects,
|
||||
overIndex,
|
||||
useDragOverlay,
|
||||
strategy: globalStrategy
|
||||
} = (0, import_react.useContext)(Context);
|
||||
const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);
|
||||
const index = items.indexOf(id);
|
||||
const data = (0, import_react.useMemo)(() => ({
|
||||
sortable: {
|
||||
containerId,
|
||||
index,
|
||||
items
|
||||
},
|
||||
...customData
|
||||
}), [containerId, customData, index, items]);
|
||||
const itemsAfterCurrentSortable = (0, import_react.useMemo)(() => items.slice(items.indexOf(id)), [items, id]);
|
||||
const {
|
||||
rect,
|
||||
node,
|
||||
isOver,
|
||||
setNodeRef: setDroppableNodeRef
|
||||
} = useDroppable({
|
||||
id,
|
||||
data,
|
||||
disabled: disabled.droppable,
|
||||
resizeObserverConfig: {
|
||||
updateMeasurementsFor: itemsAfterCurrentSortable,
|
||||
...resizeObserverConfig
|
||||
}
|
||||
});
|
||||
const {
|
||||
active,
|
||||
activatorEvent,
|
||||
activeNodeRect,
|
||||
attributes,
|
||||
setNodeRef: setDraggableNodeRef,
|
||||
listeners,
|
||||
isDragging,
|
||||
over,
|
||||
setActivatorNodeRef,
|
||||
transform
|
||||
} = useDraggable({
|
||||
id,
|
||||
data,
|
||||
attributes: {
|
||||
...defaultAttributes,
|
||||
...userDefinedAttributes
|
||||
},
|
||||
disabled: disabled.draggable
|
||||
});
|
||||
const setNodeRef = useCombinedRefs(setDroppableNodeRef, setDraggableNodeRef);
|
||||
const isSorting = Boolean(active);
|
||||
const displaceItem = isSorting && !disableTransforms && isValidIndex(activeIndex) && isValidIndex(overIndex);
|
||||
const shouldDisplaceDragSource = !useDragOverlay && isDragging;
|
||||
const dragSourceDisplacement = shouldDisplaceDragSource && displaceItem ? transform : null;
|
||||
const strategy = localStrategy != null ? localStrategy : globalStrategy;
|
||||
const finalTransform = displaceItem ? dragSourceDisplacement != null ? dragSourceDisplacement : strategy({
|
||||
rects: sortedRects,
|
||||
activeNodeRect,
|
||||
activeIndex,
|
||||
overIndex,
|
||||
index
|
||||
}) : null;
|
||||
const newIndex = isValidIndex(activeIndex) && isValidIndex(overIndex) ? getNewIndex({
|
||||
id,
|
||||
items,
|
||||
activeIndex,
|
||||
overIndex
|
||||
}) : index;
|
||||
const activeId = active == null ? void 0 : active.id;
|
||||
const previous = (0, import_react.useRef)({
|
||||
activeId,
|
||||
items,
|
||||
newIndex,
|
||||
containerId
|
||||
});
|
||||
const itemsHaveChanged = items !== previous.current.items;
|
||||
const shouldAnimateLayoutChanges = animateLayoutChanges({
|
||||
active,
|
||||
containerId,
|
||||
isDragging,
|
||||
isSorting,
|
||||
id,
|
||||
index,
|
||||
items,
|
||||
newIndex: previous.current.newIndex,
|
||||
previousItems: previous.current.items,
|
||||
previousContainerId: previous.current.containerId,
|
||||
transition,
|
||||
wasDragging: previous.current.activeId != null
|
||||
});
|
||||
const derivedTransform = useDerivedTransform({
|
||||
disabled: !shouldAnimateLayoutChanges,
|
||||
index,
|
||||
node,
|
||||
rect
|
||||
});
|
||||
(0, import_react.useEffect)(() => {
|
||||
if (isSorting && previous.current.newIndex !== newIndex) {
|
||||
previous.current.newIndex = newIndex;
|
||||
}
|
||||
if (containerId !== previous.current.containerId) {
|
||||
previous.current.containerId = containerId;
|
||||
}
|
||||
if (items !== previous.current.items) {
|
||||
previous.current.items = items;
|
||||
}
|
||||
}, [isSorting, newIndex, containerId, items]);
|
||||
(0, import_react.useEffect)(() => {
|
||||
if (activeId === previous.current.activeId) {
|
||||
return;
|
||||
}
|
||||
if (activeId != null && previous.current.activeId == null) {
|
||||
previous.current.activeId = activeId;
|
||||
return;
|
||||
}
|
||||
const timeoutId = setTimeout(() => {
|
||||
previous.current.activeId = activeId;
|
||||
}, 50);
|
||||
return () => clearTimeout(timeoutId);
|
||||
}, [activeId]);
|
||||
return {
|
||||
active,
|
||||
activeIndex,
|
||||
attributes,
|
||||
data,
|
||||
rect,
|
||||
index,
|
||||
newIndex,
|
||||
items,
|
||||
isOver,
|
||||
isSorting,
|
||||
isDragging,
|
||||
listeners,
|
||||
node,
|
||||
overIndex,
|
||||
over,
|
||||
setNodeRef,
|
||||
setActivatorNodeRef,
|
||||
setDroppableNodeRef,
|
||||
setDraggableNodeRef,
|
||||
transform: derivedTransform != null ? derivedTransform : finalTransform,
|
||||
transition: getTransition()
|
||||
};
|
||||
function getTransition() {
|
||||
if (
|
||||
// Temporarily disable transitions for a single frame to set up derived transforms
|
||||
derivedTransform || // Or to prevent items jumping to back to their "new" position when items change
|
||||
itemsHaveChanged && previous.current.newIndex === index
|
||||
) {
|
||||
return disabledTransition;
|
||||
}
|
||||
if (shouldDisplaceDragSource && !isKeyboardEvent(activatorEvent) || !transition) {
|
||||
return void 0;
|
||||
}
|
||||
if (isSorting || shouldAnimateLayoutChanges) {
|
||||
return CSS.Transition.toString({
|
||||
...transition,
|
||||
property: transitionProperty
|
||||
});
|
||||
}
|
||||
return void 0;
|
||||
}
|
||||
}
|
||||
function normalizeLocalDisabled(localDisabled, globalDisabled) {
|
||||
var _localDisabled$dragga, _localDisabled$droppa;
|
||||
if (typeof localDisabled === "boolean") {
|
||||
return {
|
||||
draggable: localDisabled,
|
||||
// Backwards compatibility
|
||||
droppable: false
|
||||
};
|
||||
}
|
||||
return {
|
||||
draggable: (_localDisabled$dragga = localDisabled == null ? void 0 : localDisabled.draggable) != null ? _localDisabled$dragga : globalDisabled.draggable,
|
||||
droppable: (_localDisabled$droppa = localDisabled == null ? void 0 : localDisabled.droppable) != null ? _localDisabled$droppa : globalDisabled.droppable
|
||||
};
|
||||
}
|
||||
function hasSortableData(entry) {
|
||||
if (!entry) {
|
||||
return false;
|
||||
}
|
||||
const data = entry.data.current;
|
||||
if (data && "sortable" in data && typeof data.sortable === "object" && "containerId" in data.sortable && "items" in data.sortable && "index" in data.sortable) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var directions = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];
|
||||
var sortableKeyboardCoordinates = (event, _ref) => {
|
||||
let {
|
||||
context: {
|
||||
active,
|
||||
collisionRect,
|
||||
droppableRects,
|
||||
droppableContainers,
|
||||
over,
|
||||
scrollableAncestors
|
||||
}
|
||||
} = _ref;
|
||||
if (directions.includes(event.code)) {
|
||||
event.preventDefault();
|
||||
if (!active || !collisionRect) {
|
||||
return;
|
||||
}
|
||||
const filteredContainers = [];
|
||||
droppableContainers.getEnabled().forEach((entry) => {
|
||||
if (!entry || entry != null && entry.disabled) {
|
||||
return;
|
||||
}
|
||||
const rect = droppableRects.get(entry.id);
|
||||
if (!rect) {
|
||||
return;
|
||||
}
|
||||
switch (event.code) {
|
||||
case KeyboardCode.Down:
|
||||
if (collisionRect.top < rect.top) {
|
||||
filteredContainers.push(entry);
|
||||
}
|
||||
break;
|
||||
case KeyboardCode.Up:
|
||||
if (collisionRect.top > rect.top) {
|
||||
filteredContainers.push(entry);
|
||||
}
|
||||
break;
|
||||
case KeyboardCode.Left:
|
||||
if (collisionRect.left > rect.left) {
|
||||
filteredContainers.push(entry);
|
||||
}
|
||||
break;
|
||||
case KeyboardCode.Right:
|
||||
if (collisionRect.left < rect.left) {
|
||||
filteredContainers.push(entry);
|
||||
}
|
||||
break;
|
||||
}
|
||||
});
|
||||
const collisions = closestCorners({
|
||||
active,
|
||||
collisionRect,
|
||||
droppableRects,
|
||||
droppableContainers: filteredContainers,
|
||||
pointerCoordinates: null
|
||||
});
|
||||
let closestId = getFirstCollision(collisions, "id");
|
||||
if (closestId === (over == null ? void 0 : over.id) && collisions.length > 1) {
|
||||
closestId = collisions[1].id;
|
||||
}
|
||||
if (closestId != null) {
|
||||
const activeDroppable = droppableContainers.get(active.id);
|
||||
const newDroppable = droppableContainers.get(closestId);
|
||||
const newRect = newDroppable ? droppableRects.get(newDroppable.id) : null;
|
||||
const newNode = newDroppable == null ? void 0 : newDroppable.node.current;
|
||||
if (newNode && newRect && activeDroppable && newDroppable) {
|
||||
const newScrollAncestors = getScrollableAncestors(newNode);
|
||||
const hasDifferentScrollAncestors = newScrollAncestors.some((element, index) => scrollableAncestors[index] !== element);
|
||||
const hasSameContainer = isSameContainer(activeDroppable, newDroppable);
|
||||
const isAfterActive = isAfter(activeDroppable, newDroppable);
|
||||
const offset = hasDifferentScrollAncestors || !hasSameContainer ? {
|
||||
x: 0,
|
||||
y: 0
|
||||
} : {
|
||||
x: isAfterActive ? collisionRect.width - newRect.width : 0,
|
||||
y: isAfterActive ? collisionRect.height - newRect.height : 0
|
||||
};
|
||||
const rectCoordinates = {
|
||||
x: newRect.left,
|
||||
y: newRect.top
|
||||
};
|
||||
const newCoordinates = offset.x && offset.y ? rectCoordinates : subtract(rectCoordinates, offset);
|
||||
return newCoordinates;
|
||||
}
|
||||
}
|
||||
}
|
||||
return void 0;
|
||||
};
|
||||
function isSameContainer(a, b) {
|
||||
if (!hasSortableData(a) || !hasSortableData(b)) {
|
||||
return false;
|
||||
}
|
||||
return a.data.current.sortable.containerId === b.data.current.sortable.containerId;
|
||||
}
|
||||
function isAfter(a, b) {
|
||||
if (!hasSortableData(a) || !hasSortableData(b)) {
|
||||
return false;
|
||||
}
|
||||
if (!isSameContainer(a, b)) {
|
||||
return false;
|
||||
}
|
||||
return a.data.current.sortable.index < b.data.current.sortable.index;
|
||||
}
|
||||
export {
|
||||
SortableContext,
|
||||
arrayMove,
|
||||
arraySwap,
|
||||
defaultAnimateLayoutChanges,
|
||||
defaultNewIndexGetter,
|
||||
hasSortableData,
|
||||
horizontalListSortingStrategy,
|
||||
rectSortingStrategy,
|
||||
rectSwappingStrategy,
|
||||
sortableKeyboardCoordinates,
|
||||
useSortable,
|
||||
verticalListSortingStrategy
|
||||
};
|
||||
//# sourceMappingURL=@dnd-kit_sortable.js.map
|
||||
File diff suppressed because one or more lines are too long
56
heatmap-tool/frontend/.vite/deps/@dnd-kit_utilities.js
Normal file
56
heatmap-tool/frontend/.vite/deps/@dnd-kit_utilities.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import {
|
||||
CSS,
|
||||
add,
|
||||
canUseDOM,
|
||||
findFirstFocusableNode,
|
||||
getEventCoordinates,
|
||||
getOwnerDocument,
|
||||
getWindow,
|
||||
hasViewportRelativeCoordinates,
|
||||
isDocument,
|
||||
isHTMLElement,
|
||||
isKeyboardEvent,
|
||||
isNode,
|
||||
isSVGElement,
|
||||
isTouchEvent,
|
||||
isWindow,
|
||||
subtract,
|
||||
useCombinedRefs,
|
||||
useEvent,
|
||||
useInterval,
|
||||
useIsomorphicLayoutEffect,
|
||||
useLatestValue,
|
||||
useLazyMemo,
|
||||
useNodeRef,
|
||||
usePrevious,
|
||||
useUniqueId
|
||||
} from "./chunk-BC2PPIIJ.js";
|
||||
import "./chunk-VX2H6PUQ.js";
|
||||
import "./chunk-G3PMV62Z.js";
|
||||
export {
|
||||
CSS,
|
||||
add,
|
||||
canUseDOM,
|
||||
findFirstFocusableNode,
|
||||
getEventCoordinates,
|
||||
getOwnerDocument,
|
||||
getWindow,
|
||||
hasViewportRelativeCoordinates,
|
||||
isDocument,
|
||||
isHTMLElement,
|
||||
isKeyboardEvent,
|
||||
isNode,
|
||||
isSVGElement,
|
||||
isTouchEvent,
|
||||
isWindow,
|
||||
subtract,
|
||||
useCombinedRefs,
|
||||
useEvent,
|
||||
useInterval,
|
||||
useIsomorphicLayoutEffect,
|
||||
useLatestValue,
|
||||
useLazyMemo,
|
||||
useNodeRef,
|
||||
usePrevious,
|
||||
useUniqueId
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
2639
heatmap-tool/frontend/.vite/deps/axios.js
Normal file
2639
heatmap-tool/frontend/.vite/deps/axios.js
Normal file
File diff suppressed because it is too large
Load Diff
7
heatmap-tool/frontend/.vite/deps/axios.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/axios.js.map
Normal file
File diff suppressed because one or more lines are too long
268
heatmap-tool/frontend/.vite/deps/chunk-AU2MKR2E.js
Normal file
268
heatmap-tool/frontend/.vite/deps/chunk-AU2MKR2E.js
Normal file
@@ -0,0 +1,268 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/react-dom/cjs/react-dom.development.js
|
||||
var require_react_dom_development = __commonJS({
|
||||
"node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
||||
"use strict";
|
||||
(function() {
|
||||
function noop() {
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function createPortal$1(children, containerInfo, implementation) {
|
||||
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
||||
try {
|
||||
testStringCoercion(key);
|
||||
var JSCompiler_inline_result = false;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = true;
|
||||
}
|
||||
JSCompiler_inline_result && (console.error(
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
||||
), testStringCoercion(key));
|
||||
return {
|
||||
$$typeof: REACT_PORTAL_TYPE,
|
||||
key: null == key ? null : "" + key,
|
||||
children,
|
||||
containerInfo,
|
||||
implementation
|
||||
};
|
||||
}
|
||||
function getCrossOriginStringAs(as, input) {
|
||||
if ("font" === as) return "";
|
||||
if ("string" === typeof input)
|
||||
return "use-credentials" === input ? input : "";
|
||||
}
|
||||
function getValueDescriptorExpectingObjectForWarning(thing) {
|
||||
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
||||
}
|
||||
function getValueDescriptorExpectingEnumForWarning(thing) {
|
||||
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
||||
}
|
||||
function resolveDispatcher() {
|
||||
var dispatcher = ReactSharedInternals.H;
|
||||
null === dispatcher && console.error(
|
||||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
||||
);
|
||||
return dispatcher;
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||
var React = require_react(), Internals = {
|
||||
d: {
|
||||
f: noop,
|
||||
r: function() {
|
||||
throw Error(
|
||||
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
||||
);
|
||||
},
|
||||
D: noop,
|
||||
C: noop,
|
||||
L: noop,
|
||||
m: noop,
|
||||
X: noop,
|
||||
S: noop,
|
||||
M: noop
|
||||
},
|
||||
p: 0,
|
||||
findDOMNode: null
|
||||
}, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
||||
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
||||
);
|
||||
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
||||
exports.createPortal = function(children, container) {
|
||||
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
||||
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
||||
throw Error("Target container is not a DOM element.");
|
||||
return createPortal$1(children, container, null, key);
|
||||
};
|
||||
exports.flushSync = function(fn) {
|
||||
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
||||
try {
|
||||
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
||||
return fn();
|
||||
} finally {
|
||||
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
||||
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
||||
);
|
||||
}
|
||||
};
|
||||
exports.preconnect = function(href, options) {
|
||||
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
||||
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
||||
getValueDescriptorExpectingEnumForWarning(options)
|
||||
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
||||
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
||||
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
||||
) : console.error(
|
||||
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||
getValueDescriptorExpectingObjectForWarning(href)
|
||||
);
|
||||
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
||||
};
|
||||
exports.prefetchDNS = function(href) {
|
||||
if ("string" !== typeof href || !href)
|
||||
console.error(
|
||||
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||
getValueDescriptorExpectingObjectForWarning(href)
|
||||
);
|
||||
else if (1 < arguments.length) {
|
||||
var options = arguments[1];
|
||||
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
||||
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
||||
getValueDescriptorExpectingEnumForWarning(options)
|
||||
) : console.error(
|
||||
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
||||
getValueDescriptorExpectingEnumForWarning(options)
|
||||
);
|
||||
}
|
||||
"string" === typeof href && Internals.d.D(href);
|
||||
};
|
||||
exports.preinit = function(href, options) {
|
||||
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
||||
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
||||
getValueDescriptorExpectingEnumForWarning(options)
|
||||
) : "style" !== options.as && "script" !== options.as && console.error(
|
||||
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
||||
getValueDescriptorExpectingEnumForWarning(options.as)
|
||||
) : console.error(
|
||||
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||
getValueDescriptorExpectingObjectForWarning(href)
|
||||
);
|
||||
if ("string" === typeof href && options && "string" === typeof options.as) {
|
||||
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
||||
"style" === as ? Internals.d.S(
|
||||
href,
|
||||
"string" === typeof options.precedence ? options.precedence : void 0,
|
||||
{
|
||||
crossOrigin,
|
||||
integrity,
|
||||
fetchPriority
|
||||
}
|
||||
) : "script" === as && Internals.d.X(href, {
|
||||
crossOrigin,
|
||||
integrity,
|
||||
fetchPriority,
|
||||
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.preinitModule = function(href, options) {
|
||||
var encountered = "";
|
||||
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
||||
if (encountered)
|
||||
console.error(
|
||||
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
||||
encountered
|
||||
);
|
||||
else
|
||||
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
||||
case "script":
|
||||
break;
|
||||
default:
|
||||
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
||||
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
||||
encountered,
|
||||
href
|
||||
);
|
||||
}
|
||||
if ("string" === typeof href)
|
||||
if ("object" === typeof options && null !== options) {
|
||||
if (null == options.as || "script" === options.as)
|
||||
encountered = getCrossOriginStringAs(
|
||||
options.as,
|
||||
options.crossOrigin
|
||||
), Internals.d.M(href, {
|
||||
crossOrigin: encountered,
|
||||
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
||||
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
||||
});
|
||||
} else null == options && Internals.d.M(href);
|
||||
};
|
||||
exports.preload = function(href, options) {
|
||||
var encountered = "";
|
||||
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||
null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
||||
encountered && console.error(
|
||||
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
||||
encountered
|
||||
);
|
||||
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
||||
encountered = options.as;
|
||||
var crossOrigin = getCrossOriginStringAs(
|
||||
encountered,
|
||||
options.crossOrigin
|
||||
);
|
||||
Internals.d.L(href, encountered, {
|
||||
crossOrigin,
|
||||
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
||||
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
||||
type: "string" === typeof options.type ? options.type : void 0,
|
||||
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
||||
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
||||
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
||||
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
||||
media: "string" === typeof options.media ? options.media : void 0
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.preloadModule = function(href, options) {
|
||||
var encountered = "";
|
||||
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
||||
encountered && console.error(
|
||||
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
||||
encountered
|
||||
);
|
||||
"string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
|
||||
options.as,
|
||||
options.crossOrigin
|
||||
), Internals.d.m(href, {
|
||||
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
||||
crossOrigin: encountered,
|
||||
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
||||
})) : Internals.d.m(href));
|
||||
};
|
||||
exports.requestFormReset = function(form) {
|
||||
Internals.d.r(form);
|
||||
};
|
||||
exports.unstable_batchedUpdates = function(fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.useFormState = function(action, initialState, permalink) {
|
||||
return resolveDispatcher().useFormState(action, initialState, permalink);
|
||||
};
|
||||
exports.useFormStatus = function() {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.4";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-dom/index.js
|
||||
var require_react_dom = __commonJS({
|
||||
"node_modules/react-dom/index.js"(exports, module) {
|
||||
"use strict";
|
||||
if (false) {
|
||||
checkDCE();
|
||||
module.exports = null;
|
||||
} else {
|
||||
module.exports = require_react_dom_development();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_react_dom
|
||||
};
|
||||
//# sourceMappingURL=chunk-AU2MKR2E.js.map
|
||||
7
heatmap-tool/frontend/.vite/deps/chunk-AU2MKR2E.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-AU2MKR2E.js.map
Normal file
File diff suppressed because one or more lines are too long
311
heatmap-tool/frontend/.vite/deps/chunk-BC2PPIIJ.js
Normal file
311
heatmap-tool/frontend/.vite/deps/chunk-BC2PPIIJ.js
Normal file
@@ -0,0 +1,311 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/@dnd-kit/utilities/dist/utilities.esm.js
|
||||
var import_react = __toESM(require_react());
|
||||
function useCombinedRefs() {
|
||||
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
refs[_key] = arguments[_key];
|
||||
}
|
||||
return (0, import_react.useMemo)(
|
||||
() => (node) => {
|
||||
refs.forEach((ref) => ref(node));
|
||||
},
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
refs
|
||||
);
|
||||
}
|
||||
var canUseDOM = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
||||
function isWindow(element) {
|
||||
const elementString = Object.prototype.toString.call(element);
|
||||
return elementString === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
||||
elementString === "[object global]";
|
||||
}
|
||||
function isNode(node) {
|
||||
return "nodeType" in node;
|
||||
}
|
||||
function getWindow(target) {
|
||||
var _target$ownerDocument, _target$ownerDocument2;
|
||||
if (!target) {
|
||||
return window;
|
||||
}
|
||||
if (isWindow(target)) {
|
||||
return target;
|
||||
}
|
||||
if (!isNode(target)) {
|
||||
return window;
|
||||
}
|
||||
return (_target$ownerDocument = (_target$ownerDocument2 = target.ownerDocument) == null ? void 0 : _target$ownerDocument2.defaultView) != null ? _target$ownerDocument : window;
|
||||
}
|
||||
function isDocument(node) {
|
||||
const {
|
||||
Document
|
||||
} = getWindow(node);
|
||||
return node instanceof Document;
|
||||
}
|
||||
function isHTMLElement(node) {
|
||||
if (isWindow(node)) {
|
||||
return false;
|
||||
}
|
||||
return node instanceof getWindow(node).HTMLElement;
|
||||
}
|
||||
function isSVGElement(node) {
|
||||
return node instanceof getWindow(node).SVGElement;
|
||||
}
|
||||
function getOwnerDocument(target) {
|
||||
if (!target) {
|
||||
return document;
|
||||
}
|
||||
if (isWindow(target)) {
|
||||
return target.document;
|
||||
}
|
||||
if (!isNode(target)) {
|
||||
return document;
|
||||
}
|
||||
if (isDocument(target)) {
|
||||
return target;
|
||||
}
|
||||
if (isHTMLElement(target) || isSVGElement(target)) {
|
||||
return target.ownerDocument;
|
||||
}
|
||||
return document;
|
||||
}
|
||||
var useIsomorphicLayoutEffect = canUseDOM ? import_react.useLayoutEffect : import_react.useEffect;
|
||||
function useEvent(handler) {
|
||||
const handlerRef = (0, import_react.useRef)(handler);
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
handlerRef.current = handler;
|
||||
});
|
||||
return (0, import_react.useCallback)(function() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
return handlerRef.current == null ? void 0 : handlerRef.current(...args);
|
||||
}, []);
|
||||
}
|
||||
function useInterval() {
|
||||
const intervalRef = (0, import_react.useRef)(null);
|
||||
const set = (0, import_react.useCallback)((listener, duration) => {
|
||||
intervalRef.current = setInterval(listener, duration);
|
||||
}, []);
|
||||
const clear = (0, import_react.useCallback)(() => {
|
||||
if (intervalRef.current !== null) {
|
||||
clearInterval(intervalRef.current);
|
||||
intervalRef.current = null;
|
||||
}
|
||||
}, []);
|
||||
return [set, clear];
|
||||
}
|
||||
function useLatestValue(value, dependencies) {
|
||||
if (dependencies === void 0) {
|
||||
dependencies = [value];
|
||||
}
|
||||
const valueRef = (0, import_react.useRef)(value);
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
if (valueRef.current !== value) {
|
||||
valueRef.current = value;
|
||||
}
|
||||
}, dependencies);
|
||||
return valueRef;
|
||||
}
|
||||
function useLazyMemo(callback, dependencies) {
|
||||
const valueRef = (0, import_react.useRef)();
|
||||
return (0, import_react.useMemo)(
|
||||
() => {
|
||||
const newValue = callback(valueRef.current);
|
||||
valueRef.current = newValue;
|
||||
return newValue;
|
||||
},
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[...dependencies]
|
||||
);
|
||||
}
|
||||
function useNodeRef(onChange) {
|
||||
const onChangeHandler = useEvent(onChange);
|
||||
const node = (0, import_react.useRef)(null);
|
||||
const setNodeRef = (0, import_react.useCallback)(
|
||||
(element) => {
|
||||
if (element !== node.current) {
|
||||
onChangeHandler == null ? void 0 : onChangeHandler(element, node.current);
|
||||
}
|
||||
node.current = element;
|
||||
},
|
||||
//eslint-disable-next-line
|
||||
[]
|
||||
);
|
||||
return [node, setNodeRef];
|
||||
}
|
||||
function usePrevious(value) {
|
||||
const ref = (0, import_react.useRef)();
|
||||
(0, import_react.useEffect)(() => {
|
||||
ref.current = value;
|
||||
}, [value]);
|
||||
return ref.current;
|
||||
}
|
||||
var ids = {};
|
||||
function useUniqueId(prefix, value) {
|
||||
return (0, import_react.useMemo)(() => {
|
||||
if (value) {
|
||||
return value;
|
||||
}
|
||||
const id = ids[prefix] == null ? 0 : ids[prefix] + 1;
|
||||
ids[prefix] = id;
|
||||
return prefix + "-" + id;
|
||||
}, [prefix, value]);
|
||||
}
|
||||
function createAdjustmentFn(modifier) {
|
||||
return function(object) {
|
||||
for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
adjustments[_key - 1] = arguments[_key];
|
||||
}
|
||||
return adjustments.reduce((accumulator, adjustment) => {
|
||||
const entries = Object.entries(adjustment);
|
||||
for (const [key, valueAdjustment] of entries) {
|
||||
const value = accumulator[key];
|
||||
if (value != null) {
|
||||
accumulator[key] = value + modifier * valueAdjustment;
|
||||
}
|
||||
}
|
||||
return accumulator;
|
||||
}, {
|
||||
...object
|
||||
});
|
||||
};
|
||||
}
|
||||
var add = createAdjustmentFn(1);
|
||||
var subtract = createAdjustmentFn(-1);
|
||||
function hasViewportRelativeCoordinates(event) {
|
||||
return "clientX" in event && "clientY" in event;
|
||||
}
|
||||
function isKeyboardEvent(event) {
|
||||
if (!event) {
|
||||
return false;
|
||||
}
|
||||
const {
|
||||
KeyboardEvent
|
||||
} = getWindow(event.target);
|
||||
return KeyboardEvent && event instanceof KeyboardEvent;
|
||||
}
|
||||
function isTouchEvent(event) {
|
||||
if (!event) {
|
||||
return false;
|
||||
}
|
||||
const {
|
||||
TouchEvent
|
||||
} = getWindow(event.target);
|
||||
return TouchEvent && event instanceof TouchEvent;
|
||||
}
|
||||
function getEventCoordinates(event) {
|
||||
if (isTouchEvent(event)) {
|
||||
if (event.touches && event.touches.length) {
|
||||
const {
|
||||
clientX: x,
|
||||
clientY: y
|
||||
} = event.touches[0];
|
||||
return {
|
||||
x,
|
||||
y
|
||||
};
|
||||
} else if (event.changedTouches && event.changedTouches.length) {
|
||||
const {
|
||||
clientX: x,
|
||||
clientY: y
|
||||
} = event.changedTouches[0];
|
||||
return {
|
||||
x,
|
||||
y
|
||||
};
|
||||
}
|
||||
}
|
||||
if (hasViewportRelativeCoordinates(event)) {
|
||||
return {
|
||||
x: event.clientX,
|
||||
y: event.clientY
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var CSS = Object.freeze({
|
||||
Translate: {
|
||||
toString(transform) {
|
||||
if (!transform) {
|
||||
return;
|
||||
}
|
||||
const {
|
||||
x,
|
||||
y
|
||||
} = transform;
|
||||
return "translate3d(" + (x ? Math.round(x) : 0) + "px, " + (y ? Math.round(y) : 0) + "px, 0)";
|
||||
}
|
||||
},
|
||||
Scale: {
|
||||
toString(transform) {
|
||||
if (!transform) {
|
||||
return;
|
||||
}
|
||||
const {
|
||||
scaleX,
|
||||
scaleY
|
||||
} = transform;
|
||||
return "scaleX(" + scaleX + ") scaleY(" + scaleY + ")";
|
||||
}
|
||||
},
|
||||
Transform: {
|
||||
toString(transform) {
|
||||
if (!transform) {
|
||||
return;
|
||||
}
|
||||
return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(" ");
|
||||
}
|
||||
},
|
||||
Transition: {
|
||||
toString(_ref) {
|
||||
let {
|
||||
property,
|
||||
duration,
|
||||
easing
|
||||
} = _ref;
|
||||
return property + " " + duration + "ms " + easing;
|
||||
}
|
||||
}
|
||||
});
|
||||
var SELECTOR = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
||||
function findFirstFocusableNode(element) {
|
||||
if (element.matches(SELECTOR)) {
|
||||
return element;
|
||||
}
|
||||
return element.querySelector(SELECTOR);
|
||||
}
|
||||
|
||||
export {
|
||||
useCombinedRefs,
|
||||
canUseDOM,
|
||||
isWindow,
|
||||
isNode,
|
||||
getWindow,
|
||||
isDocument,
|
||||
isHTMLElement,
|
||||
isSVGElement,
|
||||
getOwnerDocument,
|
||||
useIsomorphicLayoutEffect,
|
||||
useEvent,
|
||||
useInterval,
|
||||
useLatestValue,
|
||||
useLazyMemo,
|
||||
useNodeRef,
|
||||
usePrevious,
|
||||
useUniqueId,
|
||||
add,
|
||||
subtract,
|
||||
hasViewportRelativeCoordinates,
|
||||
isKeyboardEvent,
|
||||
isTouchEvent,
|
||||
getEventCoordinates,
|
||||
CSS,
|
||||
findFirstFocusableNode
|
||||
};
|
||||
//# sourceMappingURL=chunk-BC2PPIIJ.js.map
|
||||
7
heatmap-tool/frontend/.vite/deps/chunk-BC2PPIIJ.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-BC2PPIIJ.js.map
Normal file
File diff suppressed because one or more lines are too long
35
heatmap-tool/frontend/.vite/deps/chunk-G3PMV62Z.js
Normal file
35
heatmap-tool/frontend/.vite/deps/chunk-G3PMV62Z.js
Normal file
@@ -0,0 +1,35 @@
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __commonJS = (cb, mod) => function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
|
||||
export {
|
||||
__commonJS,
|
||||
__export,
|
||||
__toESM
|
||||
};
|
||||
7
heatmap-tool/frontend/.vite/deps/chunk-G3PMV62Z.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-G3PMV62Z.js.map
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
9907
heatmap-tool/frontend/.vite/deps/chunk-JCXQ6UP4.js
Normal file
9907
heatmap-tool/frontend/.vite/deps/chunk-JCXQ6UP4.js
Normal file
File diff suppressed because it is too large
Load Diff
7
heatmap-tool/frontend/.vite/deps/chunk-JCXQ6UP4.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-JCXQ6UP4.js.map
Normal file
File diff suppressed because one or more lines are too long
3592
heatmap-tool/frontend/.vite/deps/chunk-KTM66X27.js
Normal file
3592
heatmap-tool/frontend/.vite/deps/chunk-KTM66X27.js
Normal file
File diff suppressed because it is too large
Load Diff
7
heatmap-tool/frontend/.vite/deps/chunk-KTM66X27.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-KTM66X27.js.map
Normal file
File diff suppressed because one or more lines are too long
991
heatmap-tool/frontend/.vite/deps/chunk-VX2H6PUQ.js
Normal file
991
heatmap-tool/frontend/.vite/deps/chunk-VX2H6PUQ.js
Normal file
@@ -0,0 +1,991 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/react/cjs/react.development.js
|
||||
var require_react_development = __commonJS({
|
||||
"node_modules/react/cjs/react.development.js"(exports, module) {
|
||||
"use strict";
|
||||
(function() {
|
||||
function defineDeprecationWarning(methodName, info) {
|
||||
Object.defineProperty(Component.prototype, methodName, {
|
||||
get: function() {
|
||||
console.warn(
|
||||
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
||||
info[0],
|
||||
info[1]
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
function getIteratorFn(maybeIterable) {
|
||||
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
||||
return null;
|
||||
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
function warnNoop(publicInstance, callerName) {
|
||||
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
||||
var warningKey = publicInstance + "." + callerName;
|
||||
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
||||
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
||||
callerName,
|
||||
publicInstance
|
||||
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
||||
}
|
||||
function Component(props, context, updater) {
|
||||
this.props = props;
|
||||
this.context = context;
|
||||
this.refs = emptyObject;
|
||||
this.updater = updater || ReactNoopUpdateQueue;
|
||||
}
|
||||
function ComponentDummy() {
|
||||
}
|
||||
function PureComponent(props, context, updater) {
|
||||
this.props = props;
|
||||
this.context = context;
|
||||
this.refs = emptyObject;
|
||||
this.updater = updater || ReactNoopUpdateQueue;
|
||||
}
|
||||
function noop() {
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = false;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = true;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch ("number" === typeof type.tag && console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
), type.$$typeof) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return type.displayName || "Context";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return false;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = true;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
||||
var refProp = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type,
|
||||
key,
|
||||
props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
||||
enumerable: false,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
newKey = ReactElement(
|
||||
oldElement.type,
|
||||
newKey,
|
||||
oldElement.props,
|
||||
oldElement._owner,
|
||||
oldElement._debugStack,
|
||||
oldElement._debugTask
|
||||
);
|
||||
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
||||
return newKey;
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
||||
}
|
||||
function isValidElement(object) {
|
||||
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
return "$" + key.replace(/[=:]/g, function(match) {
|
||||
return escaperLookup[match];
|
||||
});
|
||||
}
|
||||
function getElementKey(element, index) {
|
||||
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
||||
}
|
||||
function resolveThenable(thenable) {
|
||||
switch (thenable.status) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
default:
|
||||
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
||||
function(fulfilledValue) {
|
||||
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
||||
},
|
||||
function(error) {
|
||||
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
||||
}
|
||||
)), thenable.status) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
}
|
||||
}
|
||||
throw thenable;
|
||||
}
|
||||
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
||||
var type = typeof children;
|
||||
if ("undefined" === type || "boolean" === type) children = null;
|
||||
var invokeCallback = false;
|
||||
if (null === children) invokeCallback = true;
|
||||
else
|
||||
switch (type) {
|
||||
case "bigint":
|
||||
case "string":
|
||||
case "number":
|
||||
invokeCallback = true;
|
||||
break;
|
||||
case "object":
|
||||
switch (children.$$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
case REACT_PORTAL_TYPE:
|
||||
invokeCallback = true;
|
||||
break;
|
||||
case REACT_LAZY_TYPE:
|
||||
return invokeCallback = children._init, mapIntoArray(
|
||||
invokeCallback(children._payload),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
);
|
||||
}
|
||||
}
|
||||
if (invokeCallback) {
|
||||
invokeCallback = children;
|
||||
callback = callback(invokeCallback);
|
||||
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
||||
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
||||
return c;
|
||||
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
||||
callback,
|
||||
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
||||
userProvidedKeyEscapeRegex,
|
||||
"$&/"
|
||||
) + "/") + childKey
|
||||
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
||||
return 1;
|
||||
}
|
||||
invokeCallback = 0;
|
||||
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
||||
if (isArrayImpl(children))
|
||||
for (var i = 0; i < children.length; i++)
|
||||
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
);
|
||||
else if (i = getIteratorFn(children), "function" === typeof i)
|
||||
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
||||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
||||
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
||||
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
);
|
||||
else if ("object" === type) {
|
||||
if ("function" === typeof children.then)
|
||||
return mapIntoArray(
|
||||
resolveThenable(children),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
);
|
||||
array = String(children);
|
||||
throw Error(
|
||||
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
||||
);
|
||||
}
|
||||
return invokeCallback;
|
||||
}
|
||||
function mapChildren(children, func, context) {
|
||||
if (null == children) return children;
|
||||
var result = [], count = 0;
|
||||
mapIntoArray(children, result, "", "", function(child) {
|
||||
return func.call(context, child, count++);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
function lazyInitializer(payload) {
|
||||
if (-1 === payload._status) {
|
||||
var ioInfo = payload._ioInfo;
|
||||
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
||||
ioInfo = payload._result;
|
||||
var thenable = ioInfo();
|
||||
thenable.then(
|
||||
function(moduleObject) {
|
||||
if (0 === payload._status || -1 === payload._status) {
|
||||
payload._status = 1;
|
||||
payload._result = moduleObject;
|
||||
var _ioInfo = payload._ioInfo;
|
||||
null != _ioInfo && (_ioInfo.end = performance.now());
|
||||
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
||||
}
|
||||
},
|
||||
function(error) {
|
||||
if (0 === payload._status || -1 === payload._status) {
|
||||
payload._status = 2;
|
||||
payload._result = error;
|
||||
var _ioInfo2 = payload._ioInfo;
|
||||
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
||||
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
||||
}
|
||||
}
|
||||
);
|
||||
ioInfo = payload._ioInfo;
|
||||
if (null != ioInfo) {
|
||||
ioInfo.value = thenable;
|
||||
var displayName = thenable.displayName;
|
||||
"string" === typeof displayName && (ioInfo.name = displayName);
|
||||
}
|
||||
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
||||
}
|
||||
if (1 === payload._status)
|
||||
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
||||
ioInfo
|
||||
), "default" in ioInfo || console.error(
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
||||
ioInfo
|
||||
), ioInfo.default;
|
||||
throw payload._result;
|
||||
}
|
||||
function resolveDispatcher() {
|
||||
var dispatcher = ReactSharedInternals.H;
|
||||
null === dispatcher && console.error(
|
||||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
||||
);
|
||||
return dispatcher;
|
||||
}
|
||||
function releaseAsyncTransition() {
|
||||
ReactSharedInternals.asyncTransitions--;
|
||||
}
|
||||
function enqueueTask(task) {
|
||||
if (null === enqueueTaskImpl)
|
||||
try {
|
||||
var requireString = ("require" + Math.random()).slice(0, 7);
|
||||
enqueueTaskImpl = (module && module[requireString]).call(
|
||||
module,
|
||||
"timers"
|
||||
).setImmediate;
|
||||
} catch (_err) {
|
||||
enqueueTaskImpl = function(callback) {
|
||||
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
||||
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
||||
));
|
||||
var channel = new MessageChannel();
|
||||
channel.port1.onmessage = callback;
|
||||
channel.port2.postMessage(void 0);
|
||||
};
|
||||
}
|
||||
return enqueueTaskImpl(task);
|
||||
}
|
||||
function aggregateErrors(errors) {
|
||||
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
||||
}
|
||||
function popActScope(prevActQueue, prevActScopeDepth) {
|
||||
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
||||
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
||||
);
|
||||
actScopeDepth = prevActScopeDepth;
|
||||
}
|
||||
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
||||
var queue = ReactSharedInternals.actQueue;
|
||||
if (null !== queue)
|
||||
if (0 !== queue.length)
|
||||
try {
|
||||
flushActQueue(queue);
|
||||
enqueueTask(function() {
|
||||
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
||||
});
|
||||
return;
|
||||
} catch (error) {
|
||||
ReactSharedInternals.thrownErrors.push(error);
|
||||
}
|
||||
else ReactSharedInternals.actQueue = null;
|
||||
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
||||
}
|
||||
function flushActQueue(queue) {
|
||||
if (!isFlushing) {
|
||||
isFlushing = true;
|
||||
var i = 0;
|
||||
try {
|
||||
for (; i < queue.length; i++) {
|
||||
var callback = queue[i];
|
||||
do {
|
||||
ReactSharedInternals.didUsePromise = false;
|
||||
var continuation = callback(false);
|
||||
if (null !== continuation) {
|
||||
if (ReactSharedInternals.didUsePromise) {
|
||||
queue[i] = callback;
|
||||
queue.splice(0, i);
|
||||
return;
|
||||
}
|
||||
callback = continuation;
|
||||
} else break;
|
||||
} while (1);
|
||||
}
|
||||
queue.length = 0;
|
||||
} catch (error) {
|
||||
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
||||
} finally {
|
||||
isFlushing = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
||||
isMounted: function() {
|
||||
return false;
|
||||
},
|
||||
enqueueForceUpdate: function(publicInstance) {
|
||||
warnNoop(publicInstance, "forceUpdate");
|
||||
},
|
||||
enqueueReplaceState: function(publicInstance) {
|
||||
warnNoop(publicInstance, "replaceState");
|
||||
},
|
||||
enqueueSetState: function(publicInstance) {
|
||||
warnNoop(publicInstance, "setState");
|
||||
}
|
||||
}, assign = Object.assign, emptyObject = {};
|
||||
Object.freeze(emptyObject);
|
||||
Component.prototype.isReactComponent = {};
|
||||
Component.prototype.setState = function(partialState, callback) {
|
||||
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
||||
throw Error(
|
||||
"takes an object of state variables to update or a function which returns an object of state variables."
|
||||
);
|
||||
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
||||
};
|
||||
Component.prototype.forceUpdate = function(callback) {
|
||||
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
||||
};
|
||||
var deprecatedAPIs = {
|
||||
isMounted: [
|
||||
"isMounted",
|
||||
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
||||
],
|
||||
replaceState: [
|
||||
"replaceState",
|
||||
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
||||
]
|
||||
};
|
||||
for (fnName in deprecatedAPIs)
|
||||
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
||||
ComponentDummy.prototype = Component.prototype;
|
||||
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
||||
deprecatedAPIs.constructor = PureComponent;
|
||||
assign(deprecatedAPIs, Component.prototype);
|
||||
deprecatedAPIs.isPureReactComponent = true;
|
||||
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
||||
H: null,
|
||||
A: null,
|
||||
T: null,
|
||||
S: null,
|
||||
actQueue: null,
|
||||
asyncTransitions: 0,
|
||||
isBatchingLegacy: false,
|
||||
didScheduleLegacyUpdate: false,
|
||||
didUsePromise: false,
|
||||
thrownErrors: [],
|
||||
getCurrentStack: null,
|
||||
recentlyCreatedOwnerStacks: 0
|
||||
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
||||
return null;
|
||||
};
|
||||
deprecatedAPIs = {
|
||||
react_stack_bottom_frame: function(callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
||||
deprecatedAPIs,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
||||
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
||||
var event = new window.ErrorEvent("error", {
|
||||
bubbles: true,
|
||||
cancelable: true,
|
||||
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
||||
error
|
||||
});
|
||||
if (!window.dispatchEvent(event)) return;
|
||||
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
||||
process.emit("uncaughtException", error);
|
||||
return;
|
||||
}
|
||||
console.error(error);
|
||||
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
||||
queueMicrotask(function() {
|
||||
return queueMicrotask(callback);
|
||||
});
|
||||
} : enqueueTask;
|
||||
deprecatedAPIs = Object.freeze({
|
||||
__proto__: null,
|
||||
c: function(size) {
|
||||
return resolveDispatcher().useMemoCache(size);
|
||||
}
|
||||
});
|
||||
var fnName = {
|
||||
map: mapChildren,
|
||||
forEach: function(children, forEachFunc, forEachContext) {
|
||||
mapChildren(
|
||||
children,
|
||||
function() {
|
||||
forEachFunc.apply(this, arguments);
|
||||
},
|
||||
forEachContext
|
||||
);
|
||||
},
|
||||
count: function(children) {
|
||||
var n = 0;
|
||||
mapChildren(children, function() {
|
||||
n++;
|
||||
});
|
||||
return n;
|
||||
},
|
||||
toArray: function(children) {
|
||||
return mapChildren(children, function(child) {
|
||||
return child;
|
||||
}) || [];
|
||||
},
|
||||
only: function(children) {
|
||||
if (!isValidElement(children))
|
||||
throw Error(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.Activity = REACT_ACTIVITY_TYPE;
|
||||
exports.Children = fnName;
|
||||
exports.Component = Component;
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
exports.PureComponent = PureComponent;
|
||||
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
exports.Suspense = REACT_SUSPENSE_TYPE;
|
||||
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
||||
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
||||
exports.act = function(callback) {
|
||||
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
||||
actScopeDepth++;
|
||||
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
||||
try {
|
||||
var result = callback();
|
||||
} catch (error) {
|
||||
ReactSharedInternals.thrownErrors.push(error);
|
||||
}
|
||||
if (0 < ReactSharedInternals.thrownErrors.length)
|
||||
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
||||
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
||||
var thenable = result;
|
||||
queueSeveralMicrotasks(function() {
|
||||
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
||||
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
||||
));
|
||||
});
|
||||
return {
|
||||
then: function(resolve, reject) {
|
||||
didAwaitActCall = true;
|
||||
thenable.then(
|
||||
function(returnValue) {
|
||||
popActScope(prevActQueue, prevActScopeDepth);
|
||||
if (0 === prevActScopeDepth) {
|
||||
try {
|
||||
flushActQueue(queue), enqueueTask(function() {
|
||||
return recursivelyFlushAsyncActWork(
|
||||
returnValue,
|
||||
resolve,
|
||||
reject
|
||||
);
|
||||
});
|
||||
} catch (error$0) {
|
||||
ReactSharedInternals.thrownErrors.push(error$0);
|
||||
}
|
||||
if (0 < ReactSharedInternals.thrownErrors.length) {
|
||||
var _thrownError = aggregateErrors(
|
||||
ReactSharedInternals.thrownErrors
|
||||
);
|
||||
ReactSharedInternals.thrownErrors.length = 0;
|
||||
reject(_thrownError);
|
||||
}
|
||||
} else resolve(returnValue);
|
||||
},
|
||||
function(error) {
|
||||
popActScope(prevActQueue, prevActScopeDepth);
|
||||
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
||||
ReactSharedInternals.thrownErrors
|
||||
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
var returnValue$jscomp$0 = result;
|
||||
popActScope(prevActQueue, prevActScopeDepth);
|
||||
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
||||
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
||||
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
||||
));
|
||||
}), ReactSharedInternals.actQueue = null);
|
||||
if (0 < ReactSharedInternals.thrownErrors.length)
|
||||
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
||||
return {
|
||||
then: function(resolve, reject) {
|
||||
didAwaitActCall = true;
|
||||
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
||||
return recursivelyFlushAsyncActWork(
|
||||
returnValue$jscomp$0,
|
||||
resolve,
|
||||
reject
|
||||
);
|
||||
})) : resolve(returnValue$jscomp$0);
|
||||
}
|
||||
};
|
||||
};
|
||||
exports.cache = function(fn) {
|
||||
return function() {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.cacheSignal = function() {
|
||||
return null;
|
||||
};
|
||||
exports.captureOwnerStack = function() {
|
||||
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
return null === getCurrentStack ? null : getCurrentStack();
|
||||
};
|
||||
exports.cloneElement = function(element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
"The argument must be a React element, but you passed " + element + "."
|
||||
);
|
||||
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
||||
if (null != config) {
|
||||
var JSCompiler_inline_result;
|
||||
a: {
|
||||
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
||||
config,
|
||||
"ref"
|
||||
).get) && JSCompiler_inline_result.isReactWarning) {
|
||||
JSCompiler_inline_result = false;
|
||||
break a;
|
||||
}
|
||||
JSCompiler_inline_result = void 0 !== config.ref;
|
||||
}
|
||||
JSCompiler_inline_result && (owner = getOwner());
|
||||
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
||||
for (propName in config)
|
||||
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
if (1 === propName) props.children = children;
|
||||
else if (1 < propName) {
|
||||
JSCompiler_inline_result = Array(propName);
|
||||
for (var i = 0; i < propName; i++)
|
||||
JSCompiler_inline_result[i] = arguments[i + 2];
|
||||
props.children = JSCompiler_inline_result;
|
||||
}
|
||||
props = ReactElement(
|
||||
element.type,
|
||||
key,
|
||||
props,
|
||||
owner,
|
||||
element._debugStack,
|
||||
element._debugTask
|
||||
);
|
||||
for (key = 2; key < arguments.length; key++)
|
||||
validateChildKeys(arguments[key]);
|
||||
return props;
|
||||
};
|
||||
exports.createContext = function(defaultValue) {
|
||||
defaultValue = {
|
||||
$$typeof: REACT_CONTEXT_TYPE,
|
||||
_currentValue: defaultValue,
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = defaultValue;
|
||||
defaultValue.Consumer = {
|
||||
$$typeof: REACT_CONSUMER_TYPE,
|
||||
_context: defaultValue
|
||||
};
|
||||
defaultValue._currentRenderer = null;
|
||||
defaultValue._currentRenderer2 = null;
|
||||
return defaultValue;
|
||||
};
|
||||
exports.createElement = function(type, config, children) {
|
||||
for (var i = 2; i < arguments.length; i++)
|
||||
validateChildKeys(arguments[i]);
|
||||
i = {};
|
||||
var key = null;
|
||||
if (null != config)
|
||||
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
||||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
||||
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
||||
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) i.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
||||
childArray[_i] = arguments[_i + 2];
|
||||
Object.freeze && Object.freeze(childArray);
|
||||
i.children = childArray;
|
||||
}
|
||||
if (type && type.defaultProps)
|
||||
for (propName in childrenLength = type.defaultProps, childrenLength)
|
||||
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
||||
key && defineKeyPropWarningGetter(
|
||||
i,
|
||||
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
||||
);
|
||||
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return ReactElement(
|
||||
type,
|
||||
key,
|
||||
i,
|
||||
getOwner(),
|
||||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.createRef = function() {
|
||||
var refObject = { current: null };
|
||||
Object.seal(refObject);
|
||||
return refObject;
|
||||
};
|
||||
exports.forwardRef = function(render) {
|
||||
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
||||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
||||
) : "function" !== typeof render ? console.error(
|
||||
"forwardRef requires a render function but was given %s.",
|
||||
null === render ? "null" : typeof render
|
||||
) : 0 !== render.length && 2 !== render.length && console.error(
|
||||
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
||||
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
||||
);
|
||||
null != render && null != render.defaultProps && console.error(
|
||||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
||||
);
|
||||
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
||||
Object.defineProperty(elementType, "displayName", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
get: function() {
|
||||
return ownName;
|
||||
},
|
||||
set: function(name) {
|
||||
ownName = name;
|
||||
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
||||
}
|
||||
});
|
||||
return elementType;
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.lazy = function(ctor) {
|
||||
ctor = { _status: -1, _result: ctor };
|
||||
var lazyType = {
|
||||
$$typeof: REACT_LAZY_TYPE,
|
||||
_payload: ctor,
|
||||
_init: lazyInitializer
|
||||
}, ioInfo = {
|
||||
name: "lazy",
|
||||
start: -1,
|
||||
end: -1,
|
||||
value: null,
|
||||
owner: null,
|
||||
debugStack: Error("react-stack-top-frame"),
|
||||
debugTask: console.createTask ? console.createTask("lazy()") : null
|
||||
};
|
||||
ctor._ioInfo = ioInfo;
|
||||
lazyType._debugInfo = [{ awaited: ioInfo }];
|
||||
return lazyType;
|
||||
};
|
||||
exports.memo = function(type, compare) {
|
||||
null == type && console.error(
|
||||
"memo: The first argument must be a component. Instead received: %s",
|
||||
null === type ? "null" : typeof type
|
||||
);
|
||||
compare = {
|
||||
$$typeof: REACT_MEMO_TYPE,
|
||||
type,
|
||||
compare: void 0 === compare ? null : compare
|
||||
};
|
||||
var ownName;
|
||||
Object.defineProperty(compare, "displayName", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
get: function() {
|
||||
return ownName;
|
||||
},
|
||||
set: function(name) {
|
||||
ownName = name;
|
||||
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
||||
}
|
||||
});
|
||||
return compare;
|
||||
};
|
||||
exports.startTransition = function(scope) {
|
||||
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
||||
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
||||
ReactSharedInternals.T = currentTransition;
|
||||
try {
|
||||
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
||||
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
||||
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
||||
} catch (error) {
|
||||
reportGlobalError(error);
|
||||
} finally {
|
||||
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
||||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
||||
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
||||
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
||||
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
||||
}
|
||||
};
|
||||
exports.unstable_useCacheRefresh = function() {
|
||||
return resolveDispatcher().useCacheRefresh();
|
||||
};
|
||||
exports.use = function(usable) {
|
||||
return resolveDispatcher().use(usable);
|
||||
};
|
||||
exports.useActionState = function(action, initialState, permalink) {
|
||||
return resolveDispatcher().useActionState(
|
||||
action,
|
||||
initialState,
|
||||
permalink
|
||||
);
|
||||
};
|
||||
exports.useCallback = function(callback, deps) {
|
||||
return resolveDispatcher().useCallback(callback, deps);
|
||||
};
|
||||
exports.useContext = function(Context) {
|
||||
var dispatcher = resolveDispatcher();
|
||||
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
||||
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
||||
);
|
||||
return dispatcher.useContext(Context);
|
||||
};
|
||||
exports.useDebugValue = function(value, formatterFn) {
|
||||
return resolveDispatcher().useDebugValue(value, formatterFn);
|
||||
};
|
||||
exports.useDeferredValue = function(value, initialValue) {
|
||||
return resolveDispatcher().useDeferredValue(value, initialValue);
|
||||
};
|
||||
exports.useEffect = function(create, deps) {
|
||||
null == create && console.warn(
|
||||
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||
);
|
||||
return resolveDispatcher().useEffect(create, deps);
|
||||
};
|
||||
exports.useEffectEvent = function(callback) {
|
||||
return resolveDispatcher().useEffectEvent(callback);
|
||||
};
|
||||
exports.useId = function() {
|
||||
return resolveDispatcher().useId();
|
||||
};
|
||||
exports.useImperativeHandle = function(ref, create, deps) {
|
||||
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
||||
};
|
||||
exports.useInsertionEffect = function(create, deps) {
|
||||
null == create && console.warn(
|
||||
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||
);
|
||||
return resolveDispatcher().useInsertionEffect(create, deps);
|
||||
};
|
||||
exports.useLayoutEffect = function(create, deps) {
|
||||
null == create && console.warn(
|
||||
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||
);
|
||||
return resolveDispatcher().useLayoutEffect(create, deps);
|
||||
};
|
||||
exports.useMemo = function(create, deps) {
|
||||
return resolveDispatcher().useMemo(create, deps);
|
||||
};
|
||||
exports.useOptimistic = function(passthrough, reducer) {
|
||||
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
||||
};
|
||||
exports.useReducer = function(reducer, initialArg, init) {
|
||||
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
||||
};
|
||||
exports.useRef = function(initialValue) {
|
||||
return resolveDispatcher().useRef(initialValue);
|
||||
};
|
||||
exports.useState = function(initialState) {
|
||||
return resolveDispatcher().useState(initialState);
|
||||
};
|
||||
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
||||
return resolveDispatcher().useSyncExternalStore(
|
||||
subscribe,
|
||||
getSnapshot,
|
||||
getServerSnapshot
|
||||
);
|
||||
};
|
||||
exports.useTransition = function() {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.4";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react/index.js
|
||||
var require_react = __commonJS({
|
||||
"node_modules/react/index.js"(exports, module) {
|
||||
if (false) {
|
||||
module.exports = null;
|
||||
} else {
|
||||
module.exports = require_react_development();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_react
|
||||
};
|
||||
//# sourceMappingURL=chunk-VX2H6PUQ.js.map
|
||||
7
heatmap-tool/frontend/.vite/deps/chunk-VX2H6PUQ.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/chunk-VX2H6PUQ.js.map
Normal file
File diff suppressed because one or more lines are too long
84
heatmap-tool/frontend/.vite/deps/leaflet__heat.js
Normal file
84
heatmap-tool/frontend/.vite/deps/leaflet__heat.js
Normal file
@@ -0,0 +1,84 @@
|
||||
// node_modules/leaflet.heat/dist/leaflet-heat.js
|
||||
!(function() {
|
||||
"use strict";
|
||||
function t(i) {
|
||||
return this instanceof t ? (this._canvas = i = "string" == typeof i ? document.getElementById(i) : i, this._ctx = i.getContext("2d"), this._width = i.width, this._height = i.height, this._max = 1, void this.clear()) : new t(i);
|
||||
}
|
||||
t.prototype = { defaultRadius: 25, defaultGradient: { 0.4: "blue", 0.6: "cyan", 0.7: "lime", 0.8: "yellow", 1: "red" }, data: function(t2, i) {
|
||||
return this._data = t2, this;
|
||||
}, max: function(t2) {
|
||||
return this._max = t2, this;
|
||||
}, add: function(t2) {
|
||||
return this._data.push(t2), this;
|
||||
}, clear: function() {
|
||||
return this._data = [], this;
|
||||
}, radius: function(t2, i) {
|
||||
i = i || 15;
|
||||
var a = this._circle = document.createElement("canvas"), s = a.getContext("2d"), e = this._r = t2 + i;
|
||||
return a.width = a.height = 2 * e, s.shadowOffsetX = s.shadowOffsetY = 200, s.shadowBlur = i, s.shadowColor = "black", s.beginPath(), s.arc(e - 200, e - 200, t2, 0, 2 * Math.PI, true), s.closePath(), s.fill(), this;
|
||||
}, gradient: function(t2) {
|
||||
var i = document.createElement("canvas"), a = i.getContext("2d"), s = a.createLinearGradient(0, 0, 0, 256);
|
||||
i.width = 1, i.height = 256;
|
||||
for (var e in t2) s.addColorStop(e, t2[e]);
|
||||
return a.fillStyle = s, a.fillRect(0, 0, 1, 256), this._grad = a.getImageData(0, 0, 1, 256).data, this;
|
||||
}, draw: function(t2) {
|
||||
this._circle || this.radius(this.defaultRadius), this._grad || this.gradient(this.defaultGradient);
|
||||
var i = this._ctx;
|
||||
i.clearRect(0, 0, this._width, this._height);
|
||||
for (var a, s = 0, e = this._data.length; e > s; s++) a = this._data[s], i.globalAlpha = Math.max(a[2] / this._max, t2 || 0.05), i.drawImage(this._circle, a[0] - this._r, a[1] - this._r);
|
||||
var n = i.getImageData(0, 0, this._width, this._height);
|
||||
return this._colorize(n.data, this._grad), i.putImageData(n, 0, 0), this;
|
||||
}, _colorize: function(t2, i) {
|
||||
for (var a, s = 3, e = t2.length; e > s; s += 4) a = 4 * t2[s], a && (t2[s - 3] = i[a], t2[s - 2] = i[a + 1], t2[s - 1] = i[a + 2]);
|
||||
} }, window.simpleheat = t;
|
||||
})(), /*
|
||||
(c) 2014, Vladimir Agafonkin
|
||||
Leaflet.heat, a tiny and fast heatmap plugin for Leaflet.
|
||||
https://github.com/Leaflet/Leaflet.heat
|
||||
*/
|
||||
L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({ initialize: function(t, i) {
|
||||
this._latlngs = t, L.setOptions(this, i);
|
||||
}, setLatLngs: function(t) {
|
||||
return this._latlngs = t, this.redraw();
|
||||
}, addLatLng: function(t) {
|
||||
return this._latlngs.push(t), this.redraw();
|
||||
}, setOptions: function(t) {
|
||||
return L.setOptions(this, t), this._heat && this._updateOptions(), this.redraw();
|
||||
}, redraw: function() {
|
||||
return !this._heat || this._frame || this._map._animating || (this._frame = L.Util.requestAnimFrame(this._redraw, this)), this;
|
||||
}, onAdd: function(t) {
|
||||
this._map = t, this._canvas || this._initCanvas(), t._panes.overlayPane.appendChild(this._canvas), t.on("moveend", this._reset, this), t.options.zoomAnimation && L.Browser.any3d && t.on("zoomanim", this._animateZoom, this), this._reset();
|
||||
}, onRemove: function(t) {
|
||||
t.getPanes().overlayPane.removeChild(this._canvas), t.off("moveend", this._reset, this), t.options.zoomAnimation && t.off("zoomanim", this._animateZoom, this);
|
||||
}, addTo: function(t) {
|
||||
return t.addLayer(this), this;
|
||||
}, _initCanvas: function() {
|
||||
var t = this._canvas = L.DomUtil.create("canvas", "leaflet-heatmap-layer leaflet-layer"), i = L.DomUtil.testProp(["transformOrigin", "WebkitTransformOrigin", "msTransformOrigin"]);
|
||||
t.style[i] = "50% 50%";
|
||||
var a = this._map.getSize();
|
||||
t.width = a.x, t.height = a.y;
|
||||
var s = this._map.options.zoomAnimation && L.Browser.any3d;
|
||||
L.DomUtil.addClass(t, "leaflet-zoom-" + (s ? "animated" : "hide")), this._heat = simpleheat(t), this._updateOptions();
|
||||
}, _updateOptions: function() {
|
||||
this._heat.radius(this.options.radius || this._heat.defaultRadius, this.options.blur), this.options.gradient && this._heat.gradient(this.options.gradient), this.options.max && this._heat.max(this.options.max);
|
||||
}, _reset: function() {
|
||||
var t = this._map.containerPointToLayerPoint([0, 0]);
|
||||
L.DomUtil.setPosition(this._canvas, t);
|
||||
var i = this._map.getSize();
|
||||
this._heat._width !== i.x && (this._canvas.width = this._heat._width = i.x), this._heat._height !== i.y && (this._canvas.height = this._heat._height = i.y), this._redraw();
|
||||
}, _redraw: function() {
|
||||
var t, i, a, s, e, n, h, o, r, d = [], _ = this._heat._r, l = this._map.getSize(), m = new L.Bounds(L.point([-_, -_]), l.add([_, _])), c = void 0 === this.options.max ? 1 : this.options.max, u = void 0 === this.options.maxZoom ? this._map.getMaxZoom() : this.options.maxZoom, f = 1 / Math.pow(2, Math.max(0, Math.min(u - this._map.getZoom(), 12))), g = _ / 2, p = [], v = this._map._getMapPanePos(), w = v.x % g, y = v.y % g;
|
||||
for (t = 0, i = this._latlngs.length; i > t; t++) if (a = this._map.latLngToContainerPoint(this._latlngs[t]), m.contains(a)) {
|
||||
e = Math.floor((a.x - w) / g) + 2, n = Math.floor((a.y - y) / g) + 2;
|
||||
var x = void 0 !== this._latlngs[t].alt ? this._latlngs[t].alt : void 0 !== this._latlngs[t][2] ? +this._latlngs[t][2] : 1;
|
||||
r = x * f, p[n] = p[n] || [], s = p[n][e], s ? (s[0] = (s[0] * s[2] + a.x * r) / (s[2] + r), s[1] = (s[1] * s[2] + a.y * r) / (s[2] + r), s[2] += r) : p[n][e] = [a.x, a.y, r];
|
||||
}
|
||||
for (t = 0, i = p.length; i > t; t++) if (p[t]) for (h = 0, o = p[t].length; o > h; h++) s = p[t][h], s && d.push([Math.round(s[0]), Math.round(s[1]), Math.min(s[2], c)]);
|
||||
this._heat.data(d).draw(this.options.minOpacity), this._frame = null;
|
||||
}, _animateZoom: function(t) {
|
||||
var i = this._map.getZoomScale(t.zoom), a = this._map._getCenterOffset(t.center)._multiplyBy(-i).subtract(this._map._getMapPanePos());
|
||||
L.DomUtil.setTransform ? L.DomUtil.setTransform(this._canvas, a, i) : this._canvas.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(a) + " scale(" + i + ")";
|
||||
} }), L.heatLayer = function(t, i) {
|
||||
return new L.HeatLayer(t, i);
|
||||
};
|
||||
//# sourceMappingURL=leaflet__heat.js.map
|
||||
7
heatmap-tool/frontend/.vite/deps/leaflet__heat.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/leaflet__heat.js.map
Normal file
File diff suppressed because one or more lines are too long
3
heatmap-tool/frontend/.vite/deps/package.json
Normal file
3
heatmap-tool/frontend/.vite/deps/package.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
20193
heatmap-tool/frontend/.vite/deps/react-dom_client.js
vendored
Normal file
20193
heatmap-tool/frontend/.vite/deps/react-dom_client.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
heatmap-tool/frontend/.vite/deps/react-dom_client.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/react-dom_client.js.map
Normal file
File diff suppressed because one or more lines are too long
1984
heatmap-tool/frontend/.vite/deps/react-leaflet-cluster.js
vendored
Normal file
1984
heatmap-tool/frontend/.vite/deps/react-leaflet-cluster.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
454
heatmap-tool/frontend/.vite/deps/react-leaflet-heatmap-layer-v3.js
vendored
Normal file
454
heatmap-tool/frontend/.vite/deps/react-leaflet-heatmap-layer-v3.js
vendored
Normal file
@@ -0,0 +1,454 @@
|
||||
import {
|
||||
createLayerComponent,
|
||||
require_leaflet_src
|
||||
} from "./chunk-JCXQ6UP4.js";
|
||||
import "./chunk-AU2MKR2E.js";
|
||||
import "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__commonJS,
|
||||
__toESM
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/simpleheat/simpleheat.js
|
||||
var require_simpleheat = __commonJS({
|
||||
"node_modules/simpleheat/simpleheat.js"(exports, module) {
|
||||
"use strict";
|
||||
if (typeof module !== "undefined") module.exports = simpleheat;
|
||||
function simpleheat(canvas) {
|
||||
if (!(this instanceof simpleheat)) return new simpleheat(canvas);
|
||||
this._canvas = canvas = typeof canvas === "string" ? document.getElementById(canvas) : canvas;
|
||||
this._ctx = canvas.getContext("2d");
|
||||
this._width = canvas.width;
|
||||
this._height = canvas.height;
|
||||
this._max = 1;
|
||||
this._data = [];
|
||||
}
|
||||
simpleheat.prototype = {
|
||||
defaultRadius: 25,
|
||||
defaultGradient: {
|
||||
0.4: "blue",
|
||||
0.6: "cyan",
|
||||
0.7: "lime",
|
||||
0.8: "yellow",
|
||||
1: "red"
|
||||
},
|
||||
data: function(data) {
|
||||
this._data = data;
|
||||
return this;
|
||||
},
|
||||
max: function(max2) {
|
||||
this._max = max2;
|
||||
return this;
|
||||
},
|
||||
add: function(point2) {
|
||||
this._data.push(point2);
|
||||
return this;
|
||||
},
|
||||
clear: function() {
|
||||
this._data = [];
|
||||
return this;
|
||||
},
|
||||
radius: function(r, blur) {
|
||||
blur = blur === void 0 ? 15 : blur;
|
||||
var circle = this._circle = this._createCanvas(), ctx = circle.getContext("2d"), r2 = this._r = r + blur;
|
||||
circle.width = circle.height = r2 * 2;
|
||||
ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
|
||||
ctx.shadowBlur = blur;
|
||||
ctx.shadowColor = "black";
|
||||
ctx.beginPath();
|
||||
ctx.arc(-r2, -r2, r, 0, Math.PI * 2, true);
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
return this;
|
||||
},
|
||||
resize: function() {
|
||||
this._width = this._canvas.width;
|
||||
this._height = this._canvas.height;
|
||||
},
|
||||
gradient: function(grad) {
|
||||
var canvas = this._createCanvas(), ctx = canvas.getContext("2d"), gradient = ctx.createLinearGradient(0, 0, 0, 256);
|
||||
canvas.width = 1;
|
||||
canvas.height = 256;
|
||||
for (var i in grad) {
|
||||
gradient.addColorStop(+i, grad[i]);
|
||||
}
|
||||
ctx.fillStyle = gradient;
|
||||
ctx.fillRect(0, 0, 1, 256);
|
||||
this._grad = ctx.getImageData(0, 0, 1, 256).data;
|
||||
return this;
|
||||
},
|
||||
draw: function(minOpacity) {
|
||||
if (!this._circle) this.radius(this.defaultRadius);
|
||||
if (!this._grad) this.gradient(this.defaultGradient);
|
||||
var ctx = this._ctx;
|
||||
ctx.clearRect(0, 0, this._width, this._height);
|
||||
for (var i = 0, len = this._data.length, p; i < len; i++) {
|
||||
p = this._data[i];
|
||||
ctx.globalAlpha = Math.max(p[2] / this._max, minOpacity === void 0 ? 0.05 : minOpacity);
|
||||
ctx.drawImage(this._circle, p[0] - this._r, p[1] - this._r);
|
||||
}
|
||||
var colored = ctx.getImageData(0, 0, this._width, this._height);
|
||||
this._colorize(colored.data, this._grad);
|
||||
ctx.putImageData(colored, 0, 0);
|
||||
return this;
|
||||
},
|
||||
_colorize: function(pixels, gradient) {
|
||||
for (var i = 0, len = pixels.length, j; i < len; i += 4) {
|
||||
j = pixels[i + 3] * 4;
|
||||
if (j) {
|
||||
pixels[i] = gradient[j];
|
||||
pixels[i + 1] = gradient[j + 1];
|
||||
pixels[i + 2] = gradient[j + 2];
|
||||
}
|
||||
}
|
||||
},
|
||||
_createCanvas: function() {
|
||||
if (typeof document !== "undefined") {
|
||||
return document.createElement("canvas");
|
||||
} else {
|
||||
return new this._canvas.constructor();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet-heatmap-layer-v3/lib/Heatmap.js
|
||||
var L = __toESM(require_leaflet_src());
|
||||
var import_simpleheat = __toESM(require_simpleheat());
|
||||
var max = (arr) => arr.reduce((_max, value) => Math.max(_max, value), Number.MIN_SAFE_INTEGER);
|
||||
var min = (arr) => arr.reduce((_min, value) => Math.min(_min, value), Number.MAX_SAFE_INTEGER);
|
||||
function isNumber(val) {
|
||||
return typeof val === "number";
|
||||
}
|
||||
function isInvalid(num) {
|
||||
return !isNumber(num) && !num;
|
||||
}
|
||||
function isValid(num) {
|
||||
return !isInvalid(num);
|
||||
}
|
||||
function isValidLatLngArray(arr) {
|
||||
return arr.filter(isValid).length === arr.length;
|
||||
}
|
||||
function isInvalidLatLngArray(arr) {
|
||||
return !isValidLatLngArray(arr);
|
||||
}
|
||||
function shouldIgnoreLocation(loc) {
|
||||
return isInvalid(loc.lng) || isInvalid(loc.lat);
|
||||
}
|
||||
function computeAggregate(agg, intensity, aggregateType = "sum") {
|
||||
const updateMeanAndSigma = (c, v) => {
|
||||
const newMean = agg.data.mean + fns.mean(agg.data.mean, c, v);
|
||||
agg.data.sigma += (v - newMean) * (v - agg.data.mean);
|
||||
agg.data.mean = newMean;
|
||||
};
|
||||
const fns = {
|
||||
mean: (m, c, v) => (v - m) / c,
|
||||
count: () => 1,
|
||||
sum: (m, c, v) => v,
|
||||
distinct: (m, c, v) => {
|
||||
agg.same.add(v);
|
||||
return agg.same.size;
|
||||
},
|
||||
min: (m, c, v) => Math.min(m, v),
|
||||
max: (m, c, v) => Math.max(m, v),
|
||||
variance: (m, c, v) => {
|
||||
updateMeanAndSigma(c, v);
|
||||
return c > 1 ? agg.data.sigma / (c - 1) : 0;
|
||||
},
|
||||
variancep: (m, c, v) => {
|
||||
updateMeanAndSigma(c, v);
|
||||
return c > 1 ? agg.data.sigma / c : 0;
|
||||
},
|
||||
stdev: (m, c, v) => Math.sqrt(fns.variance(m, c, v)),
|
||||
stdevp: (m, c, v) => Math.sqrt(fns.variancep(m, c, v))
|
||||
};
|
||||
const type = aggregateType.toLowerCase();
|
||||
if (!agg.data[type]) {
|
||||
if (type === "min") {
|
||||
agg.data[type] = Number.MAX_SAFE_INTEGER;
|
||||
} else if (type === "max") {
|
||||
agg.data[type] = Number.MIN_SAFE_INTEGER;
|
||||
} else if (["stdev", "stdevp", "variance", "variancep"].includes(type)) {
|
||||
if (!agg.data.mean) {
|
||||
agg.data.mean = 0;
|
||||
}
|
||||
if (!agg.data.sigma) {
|
||||
agg.data.sigma = 0;
|
||||
}
|
||||
agg.data[type] = 0;
|
||||
} else {
|
||||
agg.data[type] = 0;
|
||||
}
|
||||
}
|
||||
const res = (fns[type] || fns.sum)(agg.data[type], agg.seen, intensity);
|
||||
if (["mean", "count", "sum"].includes(type)) {
|
||||
agg.data[type] += res;
|
||||
} else {
|
||||
agg.data[type] = res;
|
||||
}
|
||||
return agg.data[type];
|
||||
}
|
||||
var Heatmap = class extends L.Layer {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
this.options = L.Util.setOptions(this, options);
|
||||
}
|
||||
get _heatmap() {
|
||||
if (!this.__heatmap) {
|
||||
this.__el = document.createElement("canvas");
|
||||
this.__heatmap = new import_simpleheat.default(this.__el);
|
||||
}
|
||||
return this.__heatmap;
|
||||
}
|
||||
get _el() {
|
||||
if (!this.__el) {
|
||||
this.__el = document.createElement("canvas");
|
||||
this.__heatmap = new import_simpleheat.default(this.__el);
|
||||
}
|
||||
return this.__el;
|
||||
}
|
||||
getPane() {
|
||||
var _a;
|
||||
return (_a = super.getPane()) !== null && _a !== void 0 ? _a : this._map.getPanes().overlayPane;
|
||||
}
|
||||
onAdd(map) {
|
||||
const canAnimate = map.options.zoomAnimation && L.Browser.any3d;
|
||||
const zoomClass = `leaflet-zoom-${canAnimate ? "animated" : "hide"}`;
|
||||
const mapSize = map.getSize();
|
||||
this._el.className = zoomClass;
|
||||
this._el.style.transformOrigin = "50% 50%";
|
||||
this._el.width = mapSize.x;
|
||||
this._el.height = mapSize.y;
|
||||
this._heatmap.resize();
|
||||
this.getPane().appendChild(this._el);
|
||||
this.reset();
|
||||
if (this.options.fitBoundsOnLoad) {
|
||||
this.fitBounds();
|
||||
}
|
||||
this.updateSimpleHeat(this.getSimpleHeatOptions());
|
||||
return this;
|
||||
}
|
||||
onRemove() {
|
||||
const pane = this.getPane();
|
||||
if (pane.contains(this._el)) {
|
||||
pane.removeChild(this._el);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
getEvents() {
|
||||
return {
|
||||
viewreset: this.reset,
|
||||
moveend: this.reset,
|
||||
zoomanim: this._animateZoom
|
||||
};
|
||||
}
|
||||
_animateZoom(e) {
|
||||
const _e = e;
|
||||
const scale = this._map.getZoomScale(_e.zoom);
|
||||
const offset = this._map.latLngToLayerPoint(_e.center).subtract(this._map.containerPointToLayerPoint(this._map.getSize().divideBy(2))).multiplyBy(-scale).subtract(this._map.layerPointToContainerPoint([0, 0]));
|
||||
L.DomUtil.setTransform(this._el, offset, scale);
|
||||
}
|
||||
fitBounds() {
|
||||
const { points, longitudeExtractor, latitudeExtractor } = this.options;
|
||||
const lngs = points.map(longitudeExtractor);
|
||||
const lats = points.map(latitudeExtractor);
|
||||
const ne = { lng: max(lngs), lat: max(lats) };
|
||||
const sw = { lng: min(lngs), lat: min(lats) };
|
||||
if (shouldIgnoreLocation(ne) || shouldIgnoreLocation(sw)) {
|
||||
return;
|
||||
}
|
||||
this._map.fitBounds(L.latLngBounds(L.latLng(sw), L.latLng(ne)));
|
||||
}
|
||||
resize() {
|
||||
if (!this._map) {
|
||||
return;
|
||||
}
|
||||
const size = this._map.getSize();
|
||||
if (size.x !== this._el.width || size.y !== this._el.height) {
|
||||
this._el.width = size.x;
|
||||
this._el.height = size.y;
|
||||
this._heatmap.resize();
|
||||
}
|
||||
}
|
||||
getMinOpacity() {
|
||||
var _a;
|
||||
return (_a = this.options.minOpacity) !== null && _a !== void 0 ? _a : 0.01;
|
||||
}
|
||||
getOpacity() {
|
||||
var _a;
|
||||
return (_a = this.options.opacity) !== null && _a !== void 0 ? _a : 1;
|
||||
}
|
||||
getMax() {
|
||||
var _a;
|
||||
return (_a = this.options.max) !== null && _a !== void 0 ? _a : 3;
|
||||
}
|
||||
getRadius() {
|
||||
var _a;
|
||||
return (_a = this.options.radius) !== null && _a !== void 0 ? _a : 30;
|
||||
}
|
||||
getMaxZoom() {
|
||||
var _a;
|
||||
return (_a = this.options.maxZoom) !== null && _a !== void 0 ? _a : 18;
|
||||
}
|
||||
getBlur() {
|
||||
var _a;
|
||||
return (_a = this.options.blur) !== null && _a !== void 0 ? _a : 15;
|
||||
}
|
||||
getSimpleHeatOptions() {
|
||||
return {
|
||||
opacity: this.getOpacity(),
|
||||
minOpacity: this.getMinOpacity(),
|
||||
maxZoom: this.getMaxZoom(),
|
||||
radius: this.getRadius(),
|
||||
blur: this.getBlur(),
|
||||
max: this.getMax(),
|
||||
gradient: this.options.gradient
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Update various heatmap properties like radius, gradient, and max
|
||||
*/
|
||||
updateSimpleHeat(options) {
|
||||
this.updateHeatmapRadius(options.radius, options.blur);
|
||||
this.updateHeatmapGradient(options.gradient);
|
||||
this.updateHeatmapMax(options.max);
|
||||
}
|
||||
/**
|
||||
* Update the heatmap's radius and blur (blur is optional)
|
||||
*/
|
||||
updateHeatmapRadius(radius, blur) {
|
||||
if (isNumber(radius)) {
|
||||
this._heatmap.radius(radius, blur);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Update the heatmap's gradient
|
||||
*/
|
||||
updateHeatmapGradient(gradient) {
|
||||
if (gradient) {
|
||||
this._heatmap.gradient(gradient);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Update the heatmap's maximum
|
||||
*/
|
||||
updateHeatmapMax(maximum) {
|
||||
if (isNumber(maximum)) {
|
||||
this._heatmap.max(maximum);
|
||||
}
|
||||
}
|
||||
redraw() {
|
||||
if (!this._map) {
|
||||
return;
|
||||
}
|
||||
const r = this._heatmap._r;
|
||||
const size = this._map.getSize();
|
||||
const cellSize = r / 2;
|
||||
const panePos = this._map.layerPointToContainerPoint([0, 0]);
|
||||
const offsetX = panePos.x % cellSize;
|
||||
const offsetY = panePos.y % cellSize;
|
||||
const getLat = this.options.latitudeExtractor;
|
||||
const getLng = this.options.longitudeExtractor;
|
||||
const getIntensity = this.options.intensityExtractor;
|
||||
const inBounds = (p, bounds) => bounds.contains(p);
|
||||
const filterUndefined = (row) => row.filter((c) => c !== void 0);
|
||||
const roundResults = (results) => results.reduce((result, row) => filterUndefined(row).map((cell) => [Math.round(cell[0]), Math.round(cell[1]), cell[2]]).concat(result), []);
|
||||
const aggregates = {};
|
||||
const accumulateInGrid = (points, leafletMap, bounds, aggregateType) => points.reduce((grid, point2) => {
|
||||
const latLng2 = [getLat(point2), getLng(point2)];
|
||||
if (isInvalidLatLngArray(latLng2)) {
|
||||
return grid;
|
||||
}
|
||||
const p = leafletMap.latLngToContainerPoint(latLng2);
|
||||
if (!inBounds(p, bounds)) {
|
||||
return grid;
|
||||
}
|
||||
const x = Math.floor((p.x - offsetX) / cellSize) + 2;
|
||||
const y = Math.floor((p.y - offsetY) / cellSize) + 2;
|
||||
grid[y] = grid[y] || [];
|
||||
const cell = grid[y][x];
|
||||
const key = `${x}-${y}`;
|
||||
if (!aggregates[key]) {
|
||||
aggregates[key] = {
|
||||
data: {},
|
||||
same: /* @__PURE__ */ new Set(),
|
||||
seen: 0
|
||||
};
|
||||
}
|
||||
aggregates[key].seen++;
|
||||
const intensity = getIntensity(point2);
|
||||
const agg = computeAggregate(aggregates[key], intensity, aggregateType);
|
||||
if (!cell) {
|
||||
grid[y][x] = [p.x, p.y, agg];
|
||||
} else {
|
||||
cell[0] = (cell[0] * cell[2] + p.x * agg) / (cell[2] + agg);
|
||||
cell[1] = (cell[1] * cell[2] + p.y * agg) / (cell[2] + agg);
|
||||
cell[2] = agg;
|
||||
}
|
||||
return grid;
|
||||
}, []);
|
||||
const getBounds = () => new L.Bounds(L.point([-r, -r]), size.add([r, r]));
|
||||
const getDataForHeatmap = (points, leafletMap, aggregateType) => roundResults(accumulateInGrid(points, leafletMap, getBounds(
|
||||
/*leafletMap*/
|
||||
), aggregateType));
|
||||
const data = getDataForHeatmap(this.options.points, this._map, this.options.aggregateType);
|
||||
const totalMax = max(data.map((m) => m[2]));
|
||||
this._heatmap.clear();
|
||||
this._heatmap.data(data);
|
||||
if (this.options.useLocalExtrema) {
|
||||
this.updateHeatmapMax(totalMax);
|
||||
}
|
||||
try {
|
||||
this._heatmap.draw(this.getMinOpacity());
|
||||
} catch (DOMException) {
|
||||
}
|
||||
this._frame = null;
|
||||
if (this.options.onStatsUpdate && this.options.points && this.options.points.length > 0) {
|
||||
this.options.onStatsUpdate({
|
||||
min: min(data.map((m) => m[2])),
|
||||
max: totalMax
|
||||
});
|
||||
}
|
||||
this._el.style.opacity = this.getOpacity().toString();
|
||||
}
|
||||
reset() {
|
||||
if (!this._map) {
|
||||
return;
|
||||
}
|
||||
const topLeft = this._map.containerPointToLayerPoint([0, 0]);
|
||||
L.DomUtil.setPosition(this._el, topLeft);
|
||||
this.resize();
|
||||
if (this._heatmap && !this._frame) {
|
||||
this._frame = L.Util.requestAnimFrame(this.redraw, this);
|
||||
}
|
||||
this.redraw();
|
||||
}
|
||||
};
|
||||
|
||||
// node_modules/react-leaflet-heatmap-layer-v3/lib/HeatmapLayer.js
|
||||
var L2 = __toESM(require_leaflet_src());
|
||||
var HeatmapLayer = (() => createLayerComponent(function createHeatmapLayer(props, context) {
|
||||
const instance = new Heatmap(props);
|
||||
return { instance, context };
|
||||
}, function updateHeatmapLayer(instance, { opacity, minOpacity, maxZoom, radius, blur, max: max2, gradient, latitudeExtractor, longitudeExtractor, intensityExtractor, points, aggregateType, useLocalExtrema = true }) {
|
||||
instance.updateSimpleHeat({ opacity, minOpacity, maxZoom, radius, blur, max: max2, gradient });
|
||||
L2.Util.setOptions(instance, {
|
||||
latitudeExtractor,
|
||||
longitudeExtractor,
|
||||
intensityExtractor,
|
||||
points,
|
||||
aggregateType,
|
||||
useLocalExtrema
|
||||
});
|
||||
instance.reset();
|
||||
}))();
|
||||
var HeatmapLayer_default = HeatmapLayer;
|
||||
var export_SimpleHeat = import_simpleheat.default;
|
||||
export {
|
||||
Heatmap,
|
||||
HeatmapLayer_default as HeatmapLayer,
|
||||
export_SimpleHeat as SimpleHeat,
|
||||
computeAggregate
|
||||
};
|
||||
//# sourceMappingURL=react-leaflet-heatmap-layer-v3.js.map
|
||||
File diff suppressed because one or more lines are too long
618
heatmap-tool/frontend/.vite/deps/react-leaflet.js
vendored
Normal file
618
heatmap-tool/frontend/.vite/deps/react-leaflet.js
vendored
Normal file
@@ -0,0 +1,618 @@
|
||||
import {
|
||||
LeafletContext,
|
||||
addClassName,
|
||||
createContainerComponent,
|
||||
createControlComponent,
|
||||
createControlHook,
|
||||
createElementHook,
|
||||
createElementObject,
|
||||
createLayerComponent,
|
||||
createLayerHook,
|
||||
createLeafletContext,
|
||||
createOverlayComponent,
|
||||
createPathComponent,
|
||||
createTileLayerComponent,
|
||||
extendContext,
|
||||
require_leaflet_src,
|
||||
updateCircle,
|
||||
updateGridLayer,
|
||||
updateMediaOverlay,
|
||||
useLeafletContext,
|
||||
withPane
|
||||
} from "./chunk-JCXQ6UP4.js";
|
||||
import {
|
||||
require_react_dom
|
||||
} from "./chunk-AU2MKR2E.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/react-leaflet/lib/hooks.js
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
function useMap() {
|
||||
return useLeafletContext().map;
|
||||
}
|
||||
function useMapEvent(type, handler) {
|
||||
const map = useMap();
|
||||
(0, import_react.useEffect)(function addMapEventHandler() {
|
||||
map.on(type, handler);
|
||||
return function removeMapEventHandler() {
|
||||
map.off(type, handler);
|
||||
};
|
||||
}, [
|
||||
map,
|
||||
type,
|
||||
handler
|
||||
]);
|
||||
return map;
|
||||
}
|
||||
function useMapEvents(handlers) {
|
||||
const map = useMap();
|
||||
(0, import_react.useEffect)(function addMapEventHandlers() {
|
||||
map.on(handlers);
|
||||
return function removeMapEventHandlers() {
|
||||
map.off(handlers);
|
||||
};
|
||||
}, [
|
||||
map,
|
||||
handlers
|
||||
]);
|
||||
return map;
|
||||
}
|
||||
|
||||
// node_modules/react-leaflet/lib/AttributionControl.js
|
||||
var import_leaflet = __toESM(require_leaflet_src(), 1);
|
||||
var AttributionControl = createControlComponent(function createAttributionControl(props) {
|
||||
return new import_leaflet.Control.Attribution(props);
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Circle.js
|
||||
var import_leaflet2 = __toESM(require_leaflet_src(), 1);
|
||||
var Circle = createPathComponent(function createCircle({ center, children: _c, ...options }, ctx) {
|
||||
const circle = new import_leaflet2.Circle(center, options);
|
||||
return createElementObject(circle, extendContext(ctx, {
|
||||
overlayContainer: circle
|
||||
}));
|
||||
}, updateCircle);
|
||||
|
||||
// node_modules/react-leaflet/lib/CircleMarker.js
|
||||
var import_leaflet3 = __toESM(require_leaflet_src(), 1);
|
||||
var CircleMarker = createPathComponent(function createCircleMarker({ center, children: _c, ...options }, ctx) {
|
||||
const marker = new import_leaflet3.CircleMarker(center, options);
|
||||
return createElementObject(marker, extendContext(ctx, {
|
||||
overlayContainer: marker
|
||||
}));
|
||||
}, updateCircle);
|
||||
|
||||
// node_modules/react-leaflet/lib/FeatureGroup.js
|
||||
var import_leaflet4 = __toESM(require_leaflet_src(), 1);
|
||||
var FeatureGroup = createPathComponent(function createFeatureGroup({ children: _c, ...options }, ctx) {
|
||||
const group = new import_leaflet4.FeatureGroup([], options);
|
||||
return createElementObject(group, extendContext(ctx, {
|
||||
layerContainer: group,
|
||||
overlayContainer: group
|
||||
}));
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/GeoJSON.js
|
||||
var import_leaflet5 = __toESM(require_leaflet_src(), 1);
|
||||
var GeoJSON = createPathComponent(function createGeoJSON({ data, ...options }, ctx) {
|
||||
const geoJSON = new import_leaflet5.GeoJSON(data, options);
|
||||
return createElementObject(geoJSON, extendContext(ctx, {
|
||||
overlayContainer: geoJSON
|
||||
}));
|
||||
}, function updateGeoJSON(layer, props, prevProps) {
|
||||
if (props.style !== prevProps.style) {
|
||||
if (props.style == null) {
|
||||
layer.resetStyle();
|
||||
} else {
|
||||
layer.setStyle(props.style);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/ImageOverlay.js
|
||||
var import_leaflet6 = __toESM(require_leaflet_src(), 1);
|
||||
var ImageOverlay = createLayerComponent(function createImageOverlay({ bounds, url, ...options }, ctx) {
|
||||
const overlay = new import_leaflet6.ImageOverlay(url, bounds, options);
|
||||
return createElementObject(overlay, extendContext(ctx, {
|
||||
overlayContainer: overlay
|
||||
}));
|
||||
}, function updateImageOverlay(overlay, props, prevProps) {
|
||||
updateMediaOverlay(overlay, props, prevProps);
|
||||
if (props.bounds !== prevProps.bounds) {
|
||||
const bounds = props.bounds instanceof import_leaflet6.LatLngBounds ? props.bounds : new import_leaflet6.LatLngBounds(props.bounds);
|
||||
overlay.setBounds(bounds);
|
||||
}
|
||||
if (props.url !== prevProps.url) {
|
||||
overlay.setUrl(props.url);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/LayerGroup.js
|
||||
var import_leaflet7 = __toESM(require_leaflet_src(), 1);
|
||||
var LayerGroup = createLayerComponent(function createLayerGroup({ children: _c, ...options }, ctx) {
|
||||
const group = new import_leaflet7.LayerGroup([], options);
|
||||
return createElementObject(group, extendContext(ctx, {
|
||||
layerContainer: group
|
||||
}));
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/LayersControl.js
|
||||
var import_leaflet8 = __toESM(require_leaflet_src(), 1);
|
||||
var import_react2 = __toESM(require_react(), 1);
|
||||
var useLayersControlElement = createElementHook(function createLayersControl({ children: _c, ...options }, ctx) {
|
||||
const control = new import_leaflet8.Control.Layers(void 0, void 0, options);
|
||||
return createElementObject(control, extendContext(ctx, {
|
||||
layersControl: control
|
||||
}));
|
||||
}, function updateLayersControl(control, props, prevProps) {
|
||||
if (props.collapsed !== prevProps.collapsed) {
|
||||
if (props.collapsed === true) {
|
||||
control.collapse();
|
||||
} else {
|
||||
control.expand();
|
||||
}
|
||||
}
|
||||
});
|
||||
var useLayersControl = createControlHook(useLayersControlElement);
|
||||
var LayersControl = createContainerComponent(useLayersControl);
|
||||
function createControlledLayer(addLayerToControl) {
|
||||
return function ControlledLayer(props) {
|
||||
const parentContext = useLeafletContext();
|
||||
const propsRef = (0, import_react2.useRef)(props);
|
||||
const [layer, setLayer] = (0, import_react2.useState)(null);
|
||||
const { layersControl, map } = parentContext;
|
||||
const addLayer = (0, import_react2.useCallback)((layerToAdd) => {
|
||||
if (layersControl != null) {
|
||||
if (propsRef.current.checked) {
|
||||
map.addLayer(layerToAdd);
|
||||
}
|
||||
addLayerToControl(layersControl, layerToAdd, propsRef.current.name);
|
||||
setLayer(layerToAdd);
|
||||
}
|
||||
}, [
|
||||
addLayerToControl,
|
||||
layersControl,
|
||||
map
|
||||
]);
|
||||
const removeLayer = (0, import_react2.useCallback)((layerToRemove) => {
|
||||
layersControl?.removeLayer(layerToRemove);
|
||||
setLayer(null);
|
||||
}, [
|
||||
layersControl
|
||||
]);
|
||||
const context = (0, import_react2.useMemo)(() => {
|
||||
return extendContext(parentContext, {
|
||||
layerContainer: {
|
||||
addLayer,
|
||||
removeLayer
|
||||
}
|
||||
});
|
||||
}, [
|
||||
parentContext,
|
||||
addLayer,
|
||||
removeLayer
|
||||
]);
|
||||
(0, import_react2.useEffect)(() => {
|
||||
if (layer !== null && propsRef.current !== props) {
|
||||
if (props.checked === true && (propsRef.current.checked == null || propsRef.current.checked === false)) {
|
||||
map.addLayer(layer);
|
||||
} else if (propsRef.current.checked === true && (props.checked == null || props.checked === false)) {
|
||||
map.removeLayer(layer);
|
||||
}
|
||||
propsRef.current = props;
|
||||
}
|
||||
});
|
||||
return props.children ? import_react2.default.createElement(LeafletContext, {
|
||||
value: context
|
||||
}, props.children) : null;
|
||||
};
|
||||
}
|
||||
LayersControl.BaseLayer = createControlledLayer(function addBaseLayer(layersControl, layer, name) {
|
||||
layersControl.addBaseLayer(layer, name);
|
||||
});
|
||||
LayersControl.Overlay = createControlledLayer(function addOverlay(layersControl, layer, name) {
|
||||
layersControl.addOverlay(layer, name);
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/MapContainer.js
|
||||
var import_leaflet9 = __toESM(require_leaflet_src(), 1);
|
||||
var import_react3 = __toESM(require_react(), 1);
|
||||
function MapContainerComponent({ bounds, boundsOptions, center, children, className, id, placeholder, style, whenReady, zoom, ...options }, forwardedRef) {
|
||||
const [props] = (0, import_react3.useState)({
|
||||
className,
|
||||
id,
|
||||
style
|
||||
});
|
||||
const [context, setContext] = (0, import_react3.useState)(null);
|
||||
const mapInstanceRef = (0, import_react3.useRef)(void 0);
|
||||
(0, import_react3.useImperativeHandle)(forwardedRef, () => context?.map ?? null, [
|
||||
context
|
||||
]);
|
||||
const mapRef = (0, import_react3.useCallback)((node) => {
|
||||
if (node !== null && !mapInstanceRef.current) {
|
||||
const map = new import_leaflet9.Map(node, options);
|
||||
mapInstanceRef.current = map;
|
||||
if (center != null && zoom != null) {
|
||||
map.setView(center, zoom);
|
||||
} else if (bounds != null) {
|
||||
map.fitBounds(bounds, boundsOptions);
|
||||
}
|
||||
if (whenReady != null) {
|
||||
map.whenReady(whenReady);
|
||||
}
|
||||
setContext(createLeafletContext(map));
|
||||
}
|
||||
}, []);
|
||||
(0, import_react3.useEffect)(() => {
|
||||
return () => {
|
||||
context?.map.remove();
|
||||
};
|
||||
}, [
|
||||
context
|
||||
]);
|
||||
const contents = context ? import_react3.default.createElement(LeafletContext, {
|
||||
value: context
|
||||
}, children) : placeholder ?? null;
|
||||
return import_react3.default.createElement("div", {
|
||||
...props,
|
||||
ref: mapRef
|
||||
}, contents);
|
||||
}
|
||||
var MapContainer = (0, import_react3.forwardRef)(MapContainerComponent);
|
||||
|
||||
// node_modules/react-leaflet/lib/Marker.js
|
||||
var import_leaflet10 = __toESM(require_leaflet_src(), 1);
|
||||
var Marker = createLayerComponent(function createMarker({ position, ...options }, ctx) {
|
||||
const marker = new import_leaflet10.Marker(position, options);
|
||||
return createElementObject(marker, extendContext(ctx, {
|
||||
overlayContainer: marker
|
||||
}));
|
||||
}, function updateMarker(marker, props, prevProps) {
|
||||
if (props.position !== prevProps.position) {
|
||||
marker.setLatLng(props.position);
|
||||
}
|
||||
if (props.icon != null && props.icon !== prevProps.icon) {
|
||||
marker.setIcon(props.icon);
|
||||
}
|
||||
if (props.zIndexOffset != null && props.zIndexOffset !== prevProps.zIndexOffset) {
|
||||
marker.setZIndexOffset(props.zIndexOffset);
|
||||
}
|
||||
if (props.opacity != null && props.opacity !== prevProps.opacity) {
|
||||
marker.setOpacity(props.opacity);
|
||||
}
|
||||
if (marker.dragging != null && props.draggable !== prevProps.draggable) {
|
||||
if (props.draggable === true) {
|
||||
marker.dragging.enable();
|
||||
} else {
|
||||
marker.dragging.disable();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Pane.js
|
||||
var import_react4 = __toESM(require_react(), 1);
|
||||
var import_react_dom = __toESM(require_react_dom(), 1);
|
||||
var DEFAULT_PANES = [
|
||||
"mapPane",
|
||||
"markerPane",
|
||||
"overlayPane",
|
||||
"popupPane",
|
||||
"shadowPane",
|
||||
"tilePane",
|
||||
"tooltipPane"
|
||||
];
|
||||
function omitPane(obj, pane) {
|
||||
const { [pane]: _p, ...others } = obj;
|
||||
return others;
|
||||
}
|
||||
function createPane(name, props, context) {
|
||||
if (DEFAULT_PANES.indexOf(name) !== -1) {
|
||||
throw new Error(`You must use a unique name for a pane that is not a default Leaflet pane: ${name}`);
|
||||
}
|
||||
if (context.map.getPane(name) != null) {
|
||||
throw new Error(`A pane with this name already exists: ${name}`);
|
||||
}
|
||||
const parentPaneName = props.pane ?? context.pane;
|
||||
const parentPane = parentPaneName ? context.map.getPane(parentPaneName) : void 0;
|
||||
const element = context.map.createPane(name, parentPane);
|
||||
if (props.className != null) {
|
||||
addClassName(element, props.className);
|
||||
}
|
||||
if (props.style != null) {
|
||||
for (const key of Object.keys(props.style)) {
|
||||
element.style[key] = props.style[key];
|
||||
}
|
||||
}
|
||||
return element;
|
||||
}
|
||||
function PaneComponent(props, forwardedRef) {
|
||||
const [paneName] = (0, import_react4.useState)(props.name);
|
||||
const [paneElement, setPaneElement] = (0, import_react4.useState)(null);
|
||||
(0, import_react4.useImperativeHandle)(forwardedRef, () => paneElement, [
|
||||
paneElement
|
||||
]);
|
||||
const context = useLeafletContext();
|
||||
const newContext = (0, import_react4.useMemo)(() => ({
|
||||
...context,
|
||||
pane: paneName
|
||||
}), [
|
||||
context
|
||||
]);
|
||||
(0, import_react4.useEffect)(() => {
|
||||
setPaneElement(createPane(paneName, props, context));
|
||||
return function removeCreatedPane() {
|
||||
const pane = context.map.getPane(paneName);
|
||||
pane?.remove?.();
|
||||
if (context.map._panes != null) {
|
||||
context.map._panes = omitPane(context.map._panes, paneName);
|
||||
context.map._paneRenderers = omitPane(
|
||||
// @ts-ignore map internals
|
||||
context.map._paneRenderers,
|
||||
paneName
|
||||
);
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
return props.children != null && paneElement != null ? (0, import_react_dom.createPortal)(import_react4.default.createElement(LeafletContext, {
|
||||
value: newContext
|
||||
}, props.children), paneElement) : null;
|
||||
}
|
||||
var Pane = (0, import_react4.forwardRef)(PaneComponent);
|
||||
|
||||
// node_modules/react-leaflet/lib/Polygon.js
|
||||
var import_leaflet11 = __toESM(require_leaflet_src(), 1);
|
||||
var Polygon = createPathComponent(function createPolygon({ positions, ...options }, ctx) {
|
||||
const polygon = new import_leaflet11.Polygon(positions, options);
|
||||
return createElementObject(polygon, extendContext(ctx, {
|
||||
overlayContainer: polygon
|
||||
}));
|
||||
}, function updatePolygon(layer, props, prevProps) {
|
||||
if (props.positions !== prevProps.positions) {
|
||||
layer.setLatLngs(props.positions);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Polyline.js
|
||||
var import_leaflet12 = __toESM(require_leaflet_src(), 1);
|
||||
var Polyline = createPathComponent(function createPolyline({ positions, ...options }, ctx) {
|
||||
const polyline = new import_leaflet12.Polyline(positions, options);
|
||||
return createElementObject(polyline, extendContext(ctx, {
|
||||
overlayContainer: polyline
|
||||
}));
|
||||
}, function updatePolyline(layer, props, prevProps) {
|
||||
if (props.positions !== prevProps.positions) {
|
||||
layer.setLatLngs(props.positions);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Popup.js
|
||||
var import_leaflet13 = __toESM(require_leaflet_src(), 1);
|
||||
var import_react5 = __toESM(require_react(), 1);
|
||||
var Popup = createOverlayComponent(function createPopup(props, context) {
|
||||
const popup = new import_leaflet13.Popup(props, context.overlayContainer);
|
||||
return createElementObject(popup, context);
|
||||
}, function usePopupLifecycle(element, context, { position }, setOpen) {
|
||||
(0, import_react5.useEffect)(function addPopup() {
|
||||
const { instance } = element;
|
||||
function onPopupOpen(event) {
|
||||
if (event.popup === instance) {
|
||||
instance.update();
|
||||
setOpen(true);
|
||||
}
|
||||
}
|
||||
function onPopupClose(event) {
|
||||
if (event.popup === instance) {
|
||||
setOpen(false);
|
||||
}
|
||||
}
|
||||
context.map.on({
|
||||
popupopen: onPopupOpen,
|
||||
popupclose: onPopupClose
|
||||
});
|
||||
if (context.overlayContainer == null) {
|
||||
if (position != null) {
|
||||
instance.setLatLng(position);
|
||||
}
|
||||
instance.openOn(context.map);
|
||||
} else {
|
||||
context.overlayContainer.bindPopup(instance);
|
||||
}
|
||||
return function removePopup() {
|
||||
context.map.off({
|
||||
popupopen: onPopupOpen,
|
||||
popupclose: onPopupClose
|
||||
});
|
||||
context.overlayContainer?.unbindPopup();
|
||||
context.map.removeLayer(instance);
|
||||
};
|
||||
}, [
|
||||
element,
|
||||
context,
|
||||
setOpen,
|
||||
position
|
||||
]);
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Rectangle.js
|
||||
var import_leaflet14 = __toESM(require_leaflet_src(), 1);
|
||||
var Rectangle = createPathComponent(function createRectangle({ bounds, ...options }, ctx) {
|
||||
const rectangle = new import_leaflet14.Rectangle(bounds, options);
|
||||
return createElementObject(rectangle, extendContext(ctx, {
|
||||
overlayContainer: rectangle
|
||||
}));
|
||||
}, function updateRectangle(layer, props, prevProps) {
|
||||
if (props.bounds !== prevProps.bounds) {
|
||||
layer.setBounds(props.bounds);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/ScaleControl.js
|
||||
var import_leaflet15 = __toESM(require_leaflet_src(), 1);
|
||||
var ScaleControl = createControlComponent(function createScaleControl(props) {
|
||||
return new import_leaflet15.Control.Scale(props);
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/SVGOverlay.js
|
||||
var import_leaflet16 = __toESM(require_leaflet_src(), 1);
|
||||
var import_react6 = __toESM(require_react(), 1);
|
||||
var import_react_dom2 = __toESM(require_react_dom(), 1);
|
||||
var useSVGOverlayElement = createElementHook(function createSVGOverlay(props, context) {
|
||||
const { attributes, bounds, ...options } = props;
|
||||
const container = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
||||
container.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
||||
if (attributes != null) {
|
||||
for (const name of Object.keys(attributes)) {
|
||||
container.setAttribute(name, attributes[name]);
|
||||
}
|
||||
}
|
||||
const overlay = new import_leaflet16.SVGOverlay(container, bounds, options);
|
||||
return createElementObject(overlay, context, container);
|
||||
}, updateMediaOverlay);
|
||||
var useSVGOverlay = createLayerHook(useSVGOverlayElement);
|
||||
function SVGOverlayComponent({ children, ...options }, forwardedRef) {
|
||||
const { instance, container } = useSVGOverlay(options).current;
|
||||
(0, import_react6.useImperativeHandle)(forwardedRef, () => instance);
|
||||
return container == null || children == null ? null : (0, import_react_dom2.createPortal)(children, container);
|
||||
}
|
||||
var SVGOverlay = (0, import_react6.forwardRef)(SVGOverlayComponent);
|
||||
|
||||
// node_modules/react-leaflet/lib/TileLayer.js
|
||||
var import_leaflet17 = __toESM(require_leaflet_src(), 1);
|
||||
var TileLayer = createTileLayerComponent(function createTileLayer({ url, ...options }, context) {
|
||||
const layer = new import_leaflet17.TileLayer(url, withPane(options, context));
|
||||
return createElementObject(layer, context);
|
||||
}, function updateTileLayer(layer, props, prevProps) {
|
||||
updateGridLayer(layer, props, prevProps);
|
||||
const { url } = props;
|
||||
if (url != null && url !== prevProps.url) {
|
||||
layer.setUrl(url);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/Tooltip.js
|
||||
var import_leaflet18 = __toESM(require_leaflet_src(), 1);
|
||||
var import_react7 = __toESM(require_react(), 1);
|
||||
var Tooltip = createOverlayComponent(function createTooltip(props, context) {
|
||||
const tooltip = new import_leaflet18.Tooltip(props, context.overlayContainer);
|
||||
return createElementObject(tooltip, context);
|
||||
}, function useTooltipLifecycle(element, context, { position }, setOpen) {
|
||||
(0, import_react7.useEffect)(function addTooltip() {
|
||||
const container = context.overlayContainer;
|
||||
if (container == null) {
|
||||
return;
|
||||
}
|
||||
const { instance } = element;
|
||||
const onTooltipOpen = (event) => {
|
||||
if (event.tooltip === instance) {
|
||||
if (position != null) {
|
||||
instance.setLatLng(position);
|
||||
}
|
||||
instance.update();
|
||||
setOpen(true);
|
||||
}
|
||||
};
|
||||
const onTooltipClose = (event) => {
|
||||
if (event.tooltip === instance) {
|
||||
setOpen(false);
|
||||
}
|
||||
};
|
||||
container.on({
|
||||
tooltipopen: onTooltipOpen,
|
||||
tooltipclose: onTooltipClose
|
||||
});
|
||||
container.bindTooltip(instance);
|
||||
return function removeTooltip() {
|
||||
container.off({
|
||||
tooltipopen: onTooltipOpen,
|
||||
tooltipclose: onTooltipClose
|
||||
});
|
||||
if (container._map != null) {
|
||||
container.unbindTooltip();
|
||||
}
|
||||
};
|
||||
}, [
|
||||
element,
|
||||
context,
|
||||
setOpen,
|
||||
position
|
||||
]);
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/VideoOverlay.js
|
||||
var import_leaflet19 = __toESM(require_leaflet_src(), 1);
|
||||
var VideoOverlay = createLayerComponent(function createVideoOverlay({ bounds, url, ...options }, ctx) {
|
||||
const overlay = new import_leaflet19.VideoOverlay(url, bounds, options);
|
||||
if (options.play === true) {
|
||||
overlay.getElement()?.play();
|
||||
}
|
||||
return createElementObject(overlay, extendContext(ctx, {
|
||||
overlayContainer: overlay
|
||||
}));
|
||||
}, function updateVideoOverlay(overlay, props, prevProps) {
|
||||
updateMediaOverlay(overlay, props, prevProps);
|
||||
if (typeof props.url === "string" && props.url !== prevProps.url) {
|
||||
overlay.setUrl(props.url);
|
||||
}
|
||||
const video = overlay.getElement();
|
||||
if (video != null) {
|
||||
if (props.play === true && !prevProps.play) {
|
||||
video.play();
|
||||
} else if (!props.play && prevProps.play === true) {
|
||||
video.pause();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/WMSTileLayer.js
|
||||
var import_leaflet20 = __toESM(require_leaflet_src(), 1);
|
||||
var WMSTileLayer = createTileLayerComponent(function createWMSTileLayer({ eventHandlers: _eh, params = {}, url, ...options }, context) {
|
||||
const layer = new import_leaflet20.TileLayer.WMS(url, {
|
||||
...params,
|
||||
...withPane(options, context)
|
||||
});
|
||||
return createElementObject(layer, context);
|
||||
}, function updateWMSTileLayer(layer, props, prevProps) {
|
||||
updateGridLayer(layer, props, prevProps);
|
||||
if (props.params != null && props.params !== prevProps.params) {
|
||||
layer.setParams(props.params);
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react-leaflet/lib/ZoomControl.js
|
||||
var import_leaflet21 = __toESM(require_leaflet_src(), 1);
|
||||
var ZoomControl = createControlComponent(function createZoomControl(props) {
|
||||
return new import_leaflet21.Control.Zoom(props);
|
||||
});
|
||||
export {
|
||||
AttributionControl,
|
||||
Circle,
|
||||
CircleMarker,
|
||||
FeatureGroup,
|
||||
GeoJSON,
|
||||
ImageOverlay,
|
||||
LayerGroup,
|
||||
LayersControl,
|
||||
MapContainer,
|
||||
Marker,
|
||||
Pane,
|
||||
Polygon,
|
||||
Polyline,
|
||||
Popup,
|
||||
Rectangle,
|
||||
SVGOverlay,
|
||||
ScaleControl,
|
||||
TileLayer,
|
||||
Tooltip,
|
||||
VideoOverlay,
|
||||
WMSTileLayer,
|
||||
ZoomControl,
|
||||
useMap,
|
||||
useMapEvent,
|
||||
useMapEvents
|
||||
};
|
||||
//# sourceMappingURL=react-leaflet.js.map
|
||||
7
heatmap-tool/frontend/.vite/deps/react-leaflet.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/react-leaflet.js.map
Normal file
File diff suppressed because one or more lines are too long
5
heatmap-tool/frontend/.vite/deps/react.js
vendored
Normal file
5
heatmap-tool/frontend/.vite/deps/react.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import "./chunk-G3PMV62Z.js";
|
||||
export default require_react();
|
||||
7
heatmap-tool/frontend/.vite/deps/react.js.map
Normal file
7
heatmap-tool/frontend/.vite/deps/react.js.map
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
265
heatmap-tool/frontend/.vite/deps/react_jsx-dev-runtime.js
Normal file
265
heatmap-tool/frontend/.vite/deps/react_jsx-dev-runtime.js
Normal file
@@ -0,0 +1,265 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-VX2H6PUQ.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-G3PMV62Z.js";
|
||||
|
||||
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
||||
var require_react_jsx_dev_runtime_development = __commonJS({
|
||||
"node_modules/react/cjs/react-jsx-dev-runtime.development.js"(exports) {
|
||||
"use strict";
|
||||
(function() {
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch ("number" === typeof type.tag && console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
), type.$$typeof) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return type.displayName || "Context";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = false;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = true;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return false;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = true;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
||||
var refProp = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type,
|
||||
key,
|
||||
props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
||||
enumerable: false,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
if (isArrayImpl(children)) {
|
||||
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
||||
validateChildKeys(children[isStaticChildren]);
|
||||
Object.freeze && Object.freeze(children);
|
||||
} else
|
||||
console.error(
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
);
|
||||
else validateChildKeys(children);
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
children = getComponentNameFromType(type);
|
||||
var keys = Object.keys(config).filter(function(k) {
|
||||
return "key" !== k;
|
||||
});
|
||||
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
||||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
||||
isStaticChildren,
|
||||
children,
|
||||
keys,
|
||||
children
|
||||
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
||||
}
|
||||
children = null;
|
||||
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
||||
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
children && defineKeyPropWarningGetter(
|
||||
maybeKey,
|
||||
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
||||
);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
maybeKey,
|
||||
getOwner(),
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
||||
}
|
||||
function isValidElement(object) {
|
||||
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
var React = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
||||
return null;
|
||||
};
|
||||
React = {
|
||||
react_stack_bottom_frame: function(callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
||||
React,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutKeySpread = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = function(type, config, maybeKey, isStaticChildren) {
|
||||
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/react/jsx-dev-runtime.js
|
||||
var require_jsx_dev_runtime = __commonJS({
|
||||
"node_modules/react/jsx-dev-runtime.js"(exports, module) {
|
||||
if (false) {
|
||||
module.exports = null;
|
||||
} else {
|
||||
module.exports = require_react_jsx_dev_runtime_development();
|
||||
}
|
||||
}
|
||||
});
|
||||
export default require_jsx_dev_runtime();
|
||||
//# sourceMappingURL=react_jsx-dev-runtime.js.map
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user