@annotorious/react-manifold 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- import { j as r } from "./annotorious-react-manifold.es7.js";
2
- import { useContext as s, useEffect as a } from "react";
3
- import { OSDViewerContext as m } from "./annotorious-react-manifold.es3.js";
4
- import { OpenSeadragonViewer as w, useViewer as d } from "@annotorious/react";
5
- const f = (e) => {
6
- const n = d(), { setViewers: i } = s(m);
7
- return a(() => {
8
- if (n)
9
- return i((t) => new Map(t.entries()).set(e.id, n)), () => {
10
- i((t) => new Map(Array.from(t.entries()).filter(([o, p]) => o !== e.id)));
1
+ import { jsxs as s, Fragment as a, jsx as i } from "react/jsx-runtime";
2
+ import { useContext as m, useEffect as w } from "react";
3
+ import { OSDViewerContext as d } from "./annotorious-react-manifold.es3.js";
4
+ import { OpenSeadragonViewer as f, useViewer as c } from "@annotorious/react";
5
+ const p = (e) => {
6
+ const r = c(), { setViewers: t } = m(d);
7
+ return w(() => {
8
+ if (r)
9
+ return t((n) => new Map(n.entries()).set(e.id, r)), () => {
10
+ t((n) => new Map(Array.from(n.entries()).filter(([o, u]) => o !== e.id)));
11
11
  };
12
- }, [n]), null;
13
- }, S = (e) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
14
- /* @__PURE__ */ r.jsx(w, { ...e }),
15
- /* @__PURE__ */ r.jsx(f, { id: e.id })
12
+ }, [r]), null;
13
+ }, O = (e) => /* @__PURE__ */ s(a, { children: [
14
+ /* @__PURE__ */ i(f, { ...e }),
15
+ /* @__PURE__ */ i(p, { id: e.id })
16
16
  ] });
17
17
  export {
18
- S as OpenSeadragonViewer
18
+ O as OpenSeadragonViewer
19
19
  };
20
20
  //# sourceMappingURL=annotorious-react-manifold.es2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-react-manifold.es2.js","sources":["../src/openseadragon/OpenSeadragonViewer.tsx"],"sourcesContent":["import { useContext, useEffect } from 'react';\nimport { OSDViewerContext } from './OpenSeadragonViewerManifold';\nimport { \n OpenSeadragonViewer as OpenSeadragonViewerInstance, \n OpenSeadragonViewerProps as OpenSeadragonViewerInstanceProps, \n useViewer \n} from '@annotorious/react';\n\n/** Passes the OSD viewer instance upwards to the manifold **/\nconst OpenSeadragonViewerInstanceShim = (props: { id: string }) => {\n\n const viewer = useViewer();\n\n const { setViewers } = useContext(OSDViewerContext);\n\n useEffect(() => {\n if (viewer) {\n setViewers(m => new Map(m.entries()).set(props.id, viewer));\n\n return () => {\n setViewers(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== props.id)));\n }\n }\n }, [viewer]);\n\n return null;\n\n}\n\ntype OpenSeadragonViewerProps = OpenSeadragonViewerInstanceProps & {\n\n id: string\n\n};\n\n/**\n * An alternative <OpenSeadragonViewer /> component that mimics the original\n * from @annotorious/react, but injects a shim component that connects\n * the Viewer to the ViewerManifold.\n */\nexport const OpenSeadragonViewer = (props: OpenSeadragonViewerProps) => {\n\n return (\n <>\n <OpenSeadragonViewerInstance {...props} />\n <OpenSeadragonViewerInstanceShim id={props.id} />\n </>\n )\n\n}"],"names":["OpenSeadragonViewerInstanceShim","props","viewer","useViewer","setViewers","useContext","OSDViewerContext","useEffect","m","key","_","OpenSeadragonViewer","jsxs","Fragment","jsx","OpenSeadragonViewerInstance"],"mappings":";;;;AASA,MAAMA,IAAkC,CAACC,MAA0B;AAEjE,QAAMC,IAASC,EAAU,GAEnB,EAAE,YAAAC,EAAA,IAAeC,EAAWC,CAAgB;AAElD,SAAAC,EAAU,MAAM;AACd,QAAIL;AACS,aAAAE,EAAA,CAAAI,MAAK,IAAI,IAAIA,EAAE,SAAS,EAAE,IAAIP,EAAM,IAAIC,CAAM,CAAC,GAEnD,MAAM;AACX,QAAAE,EAAW,OAAK,IAAI,IAAI,MAAM,KAAKI,EAAE,QAAS,CAAA,EAAE,OAAO,CAAC,CAACC,GAAKC,CAAC,MAAMD,MAAQR,EAAM,EAAE,CAAC,CAAC;AAAA,MACzF;AAAA,EACF,GACC,CAACC,CAAM,CAAC,GAEJ;AAET,GAaaS,IAAsB,CAACV,MAI9BW,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,EAACC,gBAAAA,EAAAA,IAAAC,GAAA,EAA6B,GAAGd,GAAO;AAAA,EACvCa,gBAAAA,EAAAA,IAAAd,GAAA,EAAgC,IAAIC,EAAM,GAAI,CAAA;AAAA,GACjD;"}
1
+ {"version":3,"file":"annotorious-react-manifold.es2.js","sources":["../src/openseadragon/OpenSeadragonViewer.tsx"],"sourcesContent":["import { useContext, useEffect } from 'react';\nimport { OSDViewerContext } from './OpenSeadragonViewerManifold';\nimport { \n OpenSeadragonViewer as OpenSeadragonViewerInstance, \n OpenSeadragonViewerProps as OpenSeadragonViewerInstanceProps, \n useViewer \n} from '@annotorious/react';\n\n/** Passes the OSD viewer instance upwards to the manifold **/\nconst OpenSeadragonViewerInstanceShim = (props: { id: string }) => {\n\n const viewer = useViewer();\n\n const { setViewers } = useContext(OSDViewerContext);\n\n useEffect(() => {\n if (viewer) {\n setViewers(m => new Map(m.entries()).set(props.id, viewer));\n\n return () => {\n setViewers(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== props.id)));\n }\n }\n }, [viewer]);\n\n return null;\n\n}\n\ntype OpenSeadragonViewerProps = OpenSeadragonViewerInstanceProps & {\n\n id: string\n\n};\n\n/**\n * An alternative <OpenSeadragonViewer /> component that mimics the original\n * from @annotorious/react, but injects a shim component that connects\n * the Viewer to the ViewerManifold.\n */\nexport const OpenSeadragonViewer = (props: OpenSeadragonViewerProps) => {\n\n return (\n <>\n <OpenSeadragonViewerInstance {...props} />\n <OpenSeadragonViewerInstanceShim id={props.id} />\n </>\n )\n\n}"],"names":["OpenSeadragonViewerInstanceShim","props","viewer","useViewer","setViewers","useContext","OSDViewerContext","useEffect","m","key","_","OpenSeadragonViewer","jsxs","Fragment","jsx","OpenSeadragonViewerInstance"],"mappings":";;;;AASA,MAAMA,IAAkC,CAACC,MAA0B;AAEjE,QAAMC,IAASC,EAAU,GAEnB,EAAE,YAAAC,EAAA,IAAeC,EAAWC,CAAgB;AAElD,SAAAC,EAAU,MAAM;AACd,QAAIL;AACS,aAAAE,EAAA,CAAAI,MAAK,IAAI,IAAIA,EAAE,SAAS,EAAE,IAAIP,EAAM,IAAIC,CAAM,CAAC,GAEnD,MAAM;AACX,QAAAE,EAAW,OAAK,IAAI,IAAI,MAAM,KAAKI,EAAE,QAAS,CAAA,EAAE,OAAO,CAAC,CAACC,GAAKC,CAAC,MAAMD,MAAQR,EAAM,EAAE,CAAC,CAAC;AAAA,MACzF;AAAA,EACF,GACC,CAACC,CAAM,CAAC,GAEJ;AAET,GAaaS,IAAsB,CAACV,MAI9B,gBAAAW,EAAAC,GAAA,EAAA,UAAA;AAAA,EAAC,gBAAAC,EAAAC,GAAA,EAA6B,GAAGd,GAAO;AAAA,EACvC,gBAAAa,EAAAd,GAAA,EAAgC,IAAIC,EAAM,GAAI,CAAA;AAAA,GACjD;"}
@@ -1,18 +1,18 @@
1
- import { j as n } from "./annotorious-react-manifold.es7.js";
2
- import { createContext as i, useState as o, useContext as u } from "react";
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { createContext as i, useState as o, useContext as w } from "react";
3
3
  const r = i({
4
4
  viewers: void 0,
5
5
  setViewers: void 0
6
- }), d = (e) => {
7
- const [t, s] = o(/* @__PURE__ */ new Map());
8
- return /* @__PURE__ */ n.jsx(r.Provider, { value: { viewers: t, setViewers: s }, children: e.children });
9
- }, x = () => {
10
- const { viewers: e } = u(r);
6
+ }), u = (e) => {
7
+ const [t, n] = o(/* @__PURE__ */ new Map());
8
+ return /* @__PURE__ */ s(r.Provider, { value: { viewers: t, setViewers: n }, children: e.children });
9
+ }, a = () => {
10
+ const { viewers: e } = w(r);
11
11
  return e;
12
12
  };
13
13
  export {
14
14
  r as OSDViewerContext,
15
- d as OSDViewerManifold,
16
- x as useViewers
15
+ u as OSDViewerManifold,
16
+ a as useViewers
17
17
  };
18
18
  //# sourceMappingURL=annotorious-react-manifold.es3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-react-manifold.es3.js","sources":["../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useState } from 'react';\nimport { Viewer } from '@annotorious/react';\n\ninterface OSDViewerContextValue {\n\n viewers: Map<string, Viewer>;\n\n setViewers: React.Dispatch<React.SetStateAction<Map<string, Viewer>>>\n\n}\n\nexport const OSDViewerContext = createContext<OSDViewerContextValue>({\n\n viewers: undefined,\n\n setViewers: undefined,\n\n});\n\nexport const OSDViewerManifold = (props: { children: ReactNode }) => {\n\n const [viewers, setViewers] = useState(new Map<string, Viewer>());\n\n return (\n <OSDViewerContext.Provider value={{ viewers, setViewers }}>\n {props.children}\n </OSDViewerContext.Provider>\n )\n\n}\n\nexport const useViewers = () => {\n const { viewers } = useContext(OSDViewerContext);\n return viewers;\n}"],"names":["OSDViewerContext","createContext","OSDViewerManifold","props","viewers","setViewers","useState","jsx","useViewers","useContext"],"mappings":";;AAWO,MAAMA,IAAmBC,EAAqC;AAAA,EAEnE,SAAS;AAAA,EAET,YAAY;AAEd,CAAC,GAEYC,IAAoB,CAACC,MAAmC;AAEnE,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,oBAAI,KAAqB;AAG9D,SAAAC,gBAAAA,MAACP,EAAiB,UAAjB,EAA0B,OAAO,EAAE,SAAAI,GAAS,YAAAC,KAC1C,UAAAF,EAAM,SACT,CAAA;AAGJ,GAEaK,IAAa,MAAM;AAC9B,QAAM,EAAE,SAAAJ,EAAA,IAAYK,EAAWT,CAAgB;AACxC,SAAAI;AACT;"}
1
+ {"version":3,"file":"annotorious-react-manifold.es3.js","sources":["../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useState } from 'react';\nimport { Viewer } from '@annotorious/react';\n\ninterface OSDViewerContextValue {\n\n viewers: Map<string, Viewer>;\n\n setViewers: React.Dispatch<React.SetStateAction<Map<string, Viewer>>>\n\n}\n\nexport const OSDViewerContext = createContext<OSDViewerContextValue>({\n\n viewers: undefined,\n\n setViewers: undefined,\n\n});\n\nexport const OSDViewerManifold = (props: { children: ReactNode }) => {\n\n const [viewers, setViewers] = useState(new Map<string, Viewer>());\n\n return (\n <OSDViewerContext.Provider value={{ viewers, setViewers }}>\n {props.children}\n </OSDViewerContext.Provider>\n )\n\n}\n\nexport const useViewers = () => {\n const { viewers } = useContext(OSDViewerContext);\n return viewers;\n}"],"names":["OSDViewerContext","createContext","OSDViewerManifold","props","viewers","setViewers","useState","jsx","useViewers","useContext"],"mappings":";;AAWO,MAAMA,IAAmBC,EAAqC;AAAA,EAEnE,SAAS;AAAA,EAET,YAAY;AAEd,CAAC,GAEYC,IAAoB,CAACC,MAAmC;AAEnE,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,oBAAI,KAAqB;AAG9D,SAAA,gBAAAC,EAACP,EAAiB,UAAjB,EAA0B,OAAO,EAAE,SAAAI,GAAS,YAAAC,KAC1C,UAAAF,EAAM,SACT,CAAA;AAGJ,GAEaK,IAAa,MAAM;AAC9B,QAAM,EAAE,SAAAJ,EAAA,IAAYK,EAAWT,CAAgB;AACxC,SAAAI;AACT;"}
@@ -1,15 +1,15 @@
1
- import { j as o } from "./annotorious-react-manifold.es7.js";
2
- import { useContext as i, useEffect as e } from "react";
3
- import { Annotorious as s, useAnnotator as c } from "@annotorious/react";
4
- import { AnnotoriousManifoldContext as u } from "./annotorious-react-manifold.es5.js";
5
- const m = (n) => {
6
- const t = c(), { connectAnnotator: r } = i(u);
7
- return e(() => {
8
- if (t)
9
- return r(n.id, t);
10
- }, [t]), /* @__PURE__ */ o.jsx(o.Fragment, { children: n.children });
11
- }, A = (n) => /* @__PURE__ */ o.jsx(s, { children: /* @__PURE__ */ o.jsx(m, { id: n.id, children: n.children }) });
1
+ import { jsx as t, Fragment as i } from "react/jsx-runtime";
2
+ import { useContext as e, useEffect as c } from "react";
3
+ import { Annotorious as s, useAnnotator as u } from "@annotorious/react";
4
+ import { AnnotoriousManifoldContext as m } from "./annotorious-react-manifold.es5.js";
5
+ const d = (n) => {
6
+ const o = u(), { connectAnnotator: r } = e(m);
7
+ return c(() => {
8
+ if (o)
9
+ return r(n.id, o);
10
+ }, [o]), /* @__PURE__ */ t(i, { children: n.children });
11
+ }, l = (n) => /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(d, { id: n.id, children: n.children }) });
12
12
  export {
13
- A as Annotorious
13
+ l as Annotorious
14
14
  };
15
15
  //# sourceMappingURL=annotorious-react-manifold.es4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-react-manifold.es4.js","sources":["../src/Annotorious.tsx"],"sourcesContent":["import { ReactNode, useContext, useEffect } from 'react';\nimport { Annotation, Annotator, useAnnotator } from '@annotorious/react';\nimport { Annotorious as AnnotoriousInstance } from '@annotorious/react';\nimport { AnnotoriousManifoldContext } from './AnnotoriousManifold';\n\ninterface AnnotoriousProps {\n\n children: ReactNode;\n\n id: string;\n\n}\n\n/**\n * Consumes the standard Annotorious context, and passes the Annotator\n * upwards to the manifold.\n */\nconst AnnotoriousInstanceShim = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(props: AnnotoriousProps) => {\n\n const anno = useAnnotator<Annotator<I, E>>();\n\n const { connectAnnotator } = useContext(AnnotoriousManifoldContext);\n\n useEffect(() => { \n if (anno) {\n return connectAnnotator(props.id, anno);\n }\n }, [anno]);\n\n return <>{props.children}</>;\n\n}\n\n/**\n * An alternative <Annotorious /> component that mimics the original\n * from @annotorious/react, but injects the shim component, which connects\n * the Annotator to the Manifold.\n */\nexport const Annotorious = (props: AnnotoriousProps) => {\n\n return (\n <AnnotoriousInstance>\n <AnnotoriousInstanceShim id={props.id}>\n {props.children}\n </AnnotoriousInstanceShim>\n </AnnotoriousInstance>\n )\n\n}"],"names":["AnnotoriousInstanceShim","props","anno","useAnnotator","connectAnnotator","useContext","AnnotoriousManifoldContext","useEffect","jsx","Fragment","Annotorious","AnnotoriousInstance"],"mappings":";;;;AAiBA,MAAMA,IAA0B,CAA2EC,MAA4B;AAErI,QAAMC,IAAOC,EAA8B,GAErC,EAAE,kBAAAC,EAAA,IAAqBC,EAAWC,CAA0B;AAElE,SAAAC,EAAU,MAAM;AACd,QAAIL;AACK,aAAAE,EAAiBH,EAAM,IAAIC,CAAI;AAAA,EACxC,GACC,CAACA,CAAI,CAAC,GAEFM,gBAAAA,EAAAA,IAAAC,EAAAA,UAAA,EAAG,YAAM,SAAS,CAAA;AAE3B,GAOaC,IAAc,CAACT,MAGxBO,gBAAAA,EAAA,IAACG,KACC,UAACH,gBAAAA,EAAAA,IAAAR,GAAA,EAAwB,IAAIC,EAAM,IAChC,UAAMA,EAAA,SAAA,CACT,EACF,CAAA;"}
1
+ {"version":3,"file":"annotorious-react-manifold.es4.js","sources":["../src/Annotorious.tsx"],"sourcesContent":["import { ReactNode, useContext, useEffect } from 'react';\nimport { Annotation, Annotator, useAnnotator } from '@annotorious/react';\nimport { Annotorious as AnnotoriousInstance } from '@annotorious/react';\nimport { AnnotoriousManifoldContext } from './AnnotoriousManifold';\n\ninterface AnnotoriousProps {\n\n children: ReactNode;\n\n id: string;\n\n}\n\n/**\n * Consumes the standard Annotorious context, and passes the Annotator\n * upwards to the manifold.\n */\nconst AnnotoriousInstanceShim = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(props: AnnotoriousProps) => {\n\n const anno = useAnnotator<Annotator<I, E>>();\n\n const { connectAnnotator } = useContext(AnnotoriousManifoldContext);\n\n useEffect(() => { \n if (anno) {\n return connectAnnotator(props.id, anno);\n }\n }, [anno]);\n\n return <>{props.children}</>;\n\n}\n\n/**\n * An alternative <Annotorious /> component that mimics the original\n * from @annotorious/react, but injects the shim component, which connects\n * the Annotator to the Manifold.\n */\nexport const Annotorious = (props: AnnotoriousProps) => {\n\n return (\n <AnnotoriousInstance>\n <AnnotoriousInstanceShim id={props.id}>\n {props.children}\n </AnnotoriousInstanceShim>\n </AnnotoriousInstance>\n )\n\n}"],"names":["AnnotoriousInstanceShim","props","anno","useAnnotator","connectAnnotator","useContext","AnnotoriousManifoldContext","useEffect","jsx","Fragment","Annotorious","AnnotoriousInstance"],"mappings":";;;;AAiBA,MAAMA,IAA0B,CAA2EC,MAA4B;AAErI,QAAMC,IAAOC,EAA8B,GAErC,EAAE,kBAAAC,EAAA,IAAqBC,EAAWC,CAA0B;AAElE,SAAAC,EAAU,MAAM;AACd,QAAIL;AACK,aAAAE,EAAiBH,EAAM,IAAIC,CAAI;AAAA,EACxC,GACC,CAACA,CAAI,CAAC,GAEF,gBAAAM,EAAAC,GAAA,EAAG,YAAM,SAAS,CAAA;AAE3B,GAOaC,IAAc,CAACT,MAGxB,gBAAAO,EAACG,KACC,UAAC,gBAAAH,EAAAR,GAAA,EAAwB,IAAIC,EAAM,IAChC,UAAMA,EAAA,SAAA,CACT,EACF,CAAA;"}
@@ -1,41 +1,41 @@
1
- import { j as _ } from "./annotorious-react-manifold.es7.js";
2
- import { createContext as I, useState as M, useRef as O, useEffect as P, useContext as f } from "react";
1
+ import { jsx as I } from "react/jsx-runtime";
2
+ import { createContext as O, useState as M, useRef as P, useEffect as R, useContext as f } from "react";
3
3
  import { createManifoldInstance as k } from "./annotorious-react-manifold.es6.js";
4
- const i = I(), D = (t) => {
5
- const [r, S] = M(/* @__PURE__ */ new Map()), [g, d] = M(/* @__PURE__ */ new Map()), [u, b] = M({ selected: [] }), p = O(!1), C = (n, a) => {
4
+ const i = O(), D = (t) => {
5
+ const [r, S] = M(/* @__PURE__ */ new Map()), [g, d] = M(/* @__PURE__ */ new Map()), [l, b] = M({ selected: [] }), p = P(!1), C = (n, a) => {
6
6
  S((e) => new Map(e.entries()).set(n, a));
7
- const { store: o } = a.state, E = a.state.selection;
7
+ const { store: o } = a.state, y = a.state.selection;
8
8
  d((e) => new Map(e.entries()).set(n, o.all()));
9
9
  const v = () => d((e) => new Map(e.entries()).set(n, o.all()));
10
10
  o.observe(v);
11
- let l;
12
- const j = E.subscribe(({ selected: e, event: s }) => {
13
- l && o.unobserve(l);
11
+ let u;
12
+ const E = y.subscribe(({ selected: e, event: s }) => {
13
+ u && o.unobserve(u);
14
14
  const m = (e || []).map(({ id: c, editable: A }) => ({ annotation: o.getAnnotation(c), editable: A }));
15
- p.current || b({ id: n, selected: m, event: s }), l = (c) => {
15
+ p.current || b({ id: n, selected: m, event: s }), u = (c) => {
16
16
  const { updated: A } = c.changes;
17
- b(({ id: y, selected: R }) => ({
18
- id: y,
19
- selected: R.map(({ annotation: w, editable: x }) => {
20
- const h = A.find((V) => V.oldValue.id === w.id);
17
+ b(({ id: V, selected: _ }) => ({
18
+ id: V,
19
+ selected: _.map(({ annotation: w, editable: x }) => {
20
+ const h = A.find((j) => j.oldValue.id === w.id);
21
21
  return h ? { annotation: h.newValue, editable: x } : { annotation: w, editable: x };
22
22
  }),
23
23
  event: s
24
24
  }));
25
- }, o.observe(l, { annotations: e.map(({ id: c }) => c) });
25
+ }, o.observe(u, { annotations: e.map(({ id: c }) => c) });
26
26
  });
27
27
  return () => {
28
- S((e) => new Map(Array.from(e.entries()).filter(([s, m]) => s !== n))), d((e) => new Map(Array.from(e.entries()).filter(([s, m]) => s !== n))), o.unobserve(v), j();
28
+ S((e) => new Map(Array.from(e.entries()).filter(([s, m]) => s !== n))), d((e) => new Map(Array.from(e.entries()).filter(([s, m]) => s !== n))), o.unobserve(v), E();
29
29
  };
30
30
  };
31
- return P(() => {
32
- u.id && (p.current = !0, Array.from(r.entries()).forEach(([n, a]) => {
33
- n !== u.id && a.setSelected();
31
+ return R(() => {
32
+ l.id && (p.current = !0, Array.from(r.entries()).forEach(([n, a]) => {
33
+ n !== l.id && a.setSelected();
34
34
  }), p.current = !1);
35
- }, [u, r]), /* @__PURE__ */ _.jsx(i.Provider, { value: {
35
+ }, [l, r]), /* @__PURE__ */ I(i.Provider, { value: {
36
36
  annotators: r,
37
37
  annotations: g,
38
- selection: u,
38
+ selection: l,
39
39
  connectAnnotator: C
40
40
  }, children: t.children });
41
41
  }, F = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-react-manifold.es5.js","sources":["../src/AnnotoriousManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useEffect, useRef, useState } from 'react';\nimport type { Annotation, Annotator } from '@annotorious/react';\nimport type { StoreChangeEvent } from '@annotorious/react';\nimport { AnnotoriousManifoldInstance, createManifoldInstance } from './AnnotoriousManifoldInstance';\n\ninterface AnnotoriousManifoldContextValue {\n\n annotators: Map<string, Annotator<any, { id: string }>>;\n\n annotations: Map<string, Annotation[]>;\n\n selection: ManifoldSelection;\n\n connectAnnotator(source: string, anno: Annotator<any, { id: string }>): () => void;\n\n}\n\ninterface ManifoldSelection<T extends Annotation = Annotation> {\n\n id?: string;\n\n selected: { annotation: T, editable?: boolean }[],\n\n event?: PointerEvent | KeyboardEvent;\n\n}\n\n// @ts-ignore\nexport const AnnotoriousManifoldContext = createContext<AnnotoriousManifoldContextValue>();\n\nexport const AnnotoriousManifold = (props: { children: ReactNode }) => {\n\n const [annotators, setAnnotators] = useState<Map<string, Annotator<any, { id: string }>>>(new Map());\n\n const [annotations, setAnnotations] = useState<Map<string, Annotation[]>>(new Map());\n\n const [selection, setSelection] = \n useState<ManifoldSelection>({ selected: [] });\n\n // To prevent selection state updates when de-selecting other annotators\n const muteSelectionEvents = useRef<boolean>(false);\n\n const connectAnnotator = (id: string, anno: Annotator<any, { id: string }>) => {\n // Add the annotator to the state\n setAnnotators(m => new Map(m.entries()).set(id, anno))\n\n const { store } = anno.state;\n\n const selectionState = anno.state.selection;\n\n // Add the annotations to the state\n setAnnotations(m => new Map(m.entries()).set(id, store.all()));\n\n const onStoreChange = () =>\n setAnnotations(m => new Map(m.entries()).set(id, store.all()));\n\n store.observe(onStoreChange);\n\n // Track selection\n let selectionStoreObserver: (event: StoreChangeEvent<Annotation>) => void;\n\n const unsubscribeSelection = selectionState.subscribe(({ selected, event }) => {\n if (selectionStoreObserver) \n store.unobserve(selectionStoreObserver);\n\n const resolved = (selected || [])\n .map(({ id, editable }) => ({ annotation: store.getAnnotation(id), editable }));\n\n // Set the new selection\n if (!muteSelectionEvents.current)\n setSelection({ id, selected: resolved, event });\n\n // Track the state of the selected annotations in the store\n selectionStoreObserver = e => {\n const { updated } = e.changes;\n\n setSelection(({ id, selected }) => ({\n id,\n selected: selected.map(({ annotation, editable }) => {\n const next = updated.find(u => u.oldValue.id === annotation.id);\n return next ? { annotation: next.newValue, editable } : { annotation, editable };\n }),\n event\n }));\n }\n\n store.observe(selectionStoreObserver, { annotations: selected.map(({ id }) => id) });\n });\n\n return () => {\n // Remove annotator\n setAnnotators(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== id)));\n\n // Remove & untrack annotations\n setAnnotations(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== id)));\n store.unobserve(onStoreChange);\n\n // Un-track selection\n unsubscribeSelection();\n }\n }\n\n useEffect(() => {\n if (selection.id) {\n muteSelectionEvents.current = true;\n\n Array.from(annotators.entries()).forEach(([source, anno]) => {\n if (source !== selection.id)\n anno.setSelected();\n });\n\n muteSelectionEvents.current = false;\n }\n }, [selection, annotators]);\n\n return (\n <AnnotoriousManifoldContext.Provider value={{ \n annotators, \n annotations,\n selection,\n connectAnnotator \n }}>\n {props.children}\n </AnnotoriousManifoldContext.Provider>\n )\n\n}\n\nexport const useAnnotoriousManifold = <I extends Annotation = Annotation, E extends { id: string } = Annotation>() => {\n const { annotators } = useContext(AnnotoriousManifoldContext);\n return createManifoldInstance(annotators) as AnnotoriousManifoldInstance<I, E>;\n}\n\nexport const useAnnotator = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(id: string) => {\n const { annotators } = useContext(AnnotoriousManifoldContext);\n return annotators.get(id) as Annotator<I, E>;\n}\n\nexport const useAnnotations = <T extends Annotation>() => {\n const { annotations } = useContext(AnnotoriousManifoldContext);\n return annotations as Map<string, T[]>;\n}\n\nexport const useSelection = <T extends Annotation>() => {\n const { selection } = useContext(AnnotoriousManifoldContext);\n return selection as ManifoldSelection<T>;\n}\n"],"names":["AnnotoriousManifoldContext","createContext","AnnotoriousManifold","props","annotators","setAnnotators","useState","annotations","setAnnotations","selection","setSelection","muteSelectionEvents","useRef","connectAnnotator","id","anno","m","store","selectionState","onStoreChange","selectionStoreObserver","unsubscribeSelection","selected","event","resolved","editable","e","updated","annotation","next","u","key","_","useEffect","source","jsx","useAnnotoriousManifold","useContext","createManifoldInstance","useAnnotator","useAnnotations","useSelection"],"mappings":";;;AA4BO,MAAMA,IAA6BC,EAA+C,GAE5EC,IAAsB,CAACC,MAAmC;AAErE,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAsD,oBAAI,KAAK,GAE7F,CAACC,GAAaC,CAAc,IAAIF,EAAoC,oBAAI,KAAK,GAE7E,CAACG,GAAWC,CAAY,IAC5BJ,EAA4B,EAAE,UAAU,CAAA,GAAI,GAGxCK,IAAsBC,EAAgB,EAAK,GAE3CC,IAAmB,CAACC,GAAYC,MAAyC;AAE/D,IAAAV,EAAA,CAAAW,MAAK,IAAI,IAAIA,EAAE,QAAS,CAAA,EAAE,IAAIF,GAAIC,CAAI,CAAC;AAE/C,UAAA,EAAE,OAAAE,MAAUF,EAAK,OAEjBG,IAAiBH,EAAK,MAAM;AAGlC,IAAAP,EAAe,CAAKQ,MAAA,IAAI,IAAIA,EAAE,SAAS,EAAE,IAAIF,GAAIG,EAAM,IAAK,CAAA,CAAC;AAE7D,UAAME,IAAgB,MACpBX,EAAe,CAAAQ,MAAK,IAAI,IAAIA,EAAE,QAAS,CAAA,EAAE,IAAIF,GAAIG,EAAM,IAAK,CAAA,CAAC;AAE/D,IAAAA,EAAM,QAAQE,CAAa;AAGvB,QAAAC;AAEJ,UAAMC,IAAuBH,EAAe,UAAU,CAAC,EAAE,UAAAI,GAAU,OAAAC,QAAY;AACzE,MAAAH,KACFH,EAAM,UAAUG,CA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,QAAS,CAAA,EAAE,QAAQ,CAAC,CAAC8B,GAAQnB,CAAI,MAAM;AAC3D,MAAImB,MAAWzB,EAAU,MACvBM,EAAK,YAAY;AAAA,IAAA,CACpB,GAEDJ,EAAoB,UAAU;AAAA,EAChC,GACC,CAACF,GAAWL,CAAU,CAAC,GAGvB+B,gBAAAA,MAAAnC,EAA2B,UAA3B,EAAoC,OAAO;AAAA,IAC1C,YAAAI;AAAA,IACA,aAAAG;AAAA,IACA,WAAAE;AAAA,IACA,kBAAAI;AAAA,EAAA,GAEC,YAAM,UACT;AAGJ,GAEauB,IAAyB,MAAgF;AACpH,QAAM,EAAE,YAAAhC,EAAA,IAAeiC,EAAWrC,CAA0B;AAC5D,SAAOsC,EAAuBlC,CAAU;AAC1C,GAEamC,IAAe,CAA2EzB,MAAe;AACpH,QAAM,EAAE,YAAAV,EAAA,IAAeiC,EAAWrC,CAA0B;AACrD,SAAAI,EAAW,IAAIU,CAAE;AAC1B,GAEa0B,IAAiB,MAA4B;AACxD,QAAM,EAAE,aAAAjC,EAAA,IAAgB8B,EAAWrC,CAA0B;AACtD,SAAAO;AACT,GAEakC,IAAe,MAA4B;AACtD,QAAM,EAAE,WAAAhC,EAAA,IAAc4B,EAAWrC,CAA0B;AACpD,SAAAS;AACT;"}
1
+ {"version":3,"file":"annotorious-react-manifold.es5.js","sources":["../src/AnnotoriousManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useEffect, useRef, useState } from 'react';\nimport type { Annotation, Annotator } from '@annotorious/react';\nimport type { StoreChangeEvent } from '@annotorious/react';\nimport { AnnotoriousManifoldInstance, createManifoldInstance } from './AnnotoriousManifoldInstance';\n\ninterface AnnotoriousManifoldContextValue {\n\n annotators: Map<string, Annotator<any, { id: string }>>;\n\n annotations: Map<string, Annotation[]>;\n\n selection: ManifoldSelection;\n\n connectAnnotator(source: string, anno: Annotator<any, { id: string }>): () => void;\n\n}\n\ninterface ManifoldSelection<T extends Annotation = Annotation> {\n\n id?: string;\n\n selected: { annotation: T, editable?: boolean }[],\n\n event?: PointerEvent | KeyboardEvent;\n\n}\n\n// @ts-ignore\nexport const AnnotoriousManifoldContext = createContext<AnnotoriousManifoldContextValue>();\n\nexport const AnnotoriousManifold = (props: { children: ReactNode }) => {\n\n const [annotators, setAnnotators] = useState<Map<string, Annotator<any, { id: string }>>>(new Map());\n\n const [annotations, setAnnotations] = useState<Map<string, Annotation[]>>(new Map());\n\n const [selection, setSelection] = \n useState<ManifoldSelection>({ selected: [] });\n\n // To prevent selection state updates when de-selecting other annotators\n const muteSelectionEvents = useRef<boolean>(false);\n\n const connectAnnotator = (id: string, anno: Annotator<any, { id: string }>) => {\n // Add the annotator to the state\n setAnnotators(m => new Map(m.entries()).set(id, anno))\n\n const { store } = anno.state;\n\n const selectionState = anno.state.selection;\n\n // Add the annotations to the state\n setAnnotations(m => new Map(m.entries()).set(id, store.all()));\n\n const onStoreChange = () =>\n setAnnotations(m => new Map(m.entries()).set(id, store.all()));\n\n store.observe(onStoreChange);\n\n // Track selection\n let selectionStoreObserver: (event: StoreChangeEvent<Annotation>) => void;\n\n const unsubscribeSelection = selectionState.subscribe(({ selected, event }) => {\n if (selectionStoreObserver) \n store.unobserve(selectionStoreObserver);\n\n const resolved = (selected || [])\n .map(({ id, editable }) => ({ annotation: store.getAnnotation(id), editable }));\n\n // Set the new selection\n if (!muteSelectionEvents.current)\n setSelection({ id, selected: resolved, event });\n\n // Track the state of the selected annotations in the store\n selectionStoreObserver = e => {\n const { updated } = e.changes;\n\n setSelection(({ id, selected }) => ({\n id,\n selected: selected.map(({ annotation, editable }) => {\n const next = updated.find(u => u.oldValue.id === annotation.id);\n return next ? { annotation: next.newValue, editable } : { annotation, editable };\n }),\n event\n }));\n }\n\n store.observe(selectionStoreObserver, { annotations: selected.map(({ id }) => id) });\n });\n\n return () => {\n // Remove annotator\n setAnnotators(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== id)));\n\n // Remove & untrack annotations\n setAnnotations(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== id)));\n store.unobserve(onStoreChange);\n\n // Un-track selection\n unsubscribeSelection();\n }\n }\n\n useEffect(() => {\n if (selection.id) {\n muteSelectionEvents.current = true;\n\n Array.from(annotators.entries()).forEach(([source, anno]) => {\n if (source !== selection.id)\n anno.setSelected();\n });\n\n muteSelectionEvents.current = false;\n }\n }, [selection, annotators]);\n\n return (\n <AnnotoriousManifoldContext.Provider value={{ \n annotators, \n annotations,\n selection,\n connectAnnotator \n }}>\n {props.children}\n </AnnotoriousManifoldContext.Provider>\n )\n\n}\n\nexport const useAnnotoriousManifold = <I extends Annotation = Annotation, E extends { id: string } = Annotation>() => {\n const { annotators } = useContext(AnnotoriousManifoldContext);\n return createManifoldInstance(annotators) as AnnotoriousManifoldInstance<I, E>;\n}\n\nexport const useAnnotator = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(id: string) => {\n const { annotators } = useContext(AnnotoriousManifoldContext);\n return annotators.get(id) as Annotator<I, E>;\n}\n\nexport const useAnnotations = <T extends Annotation>() => {\n const { annotations } = useContext(AnnotoriousManifoldContext);\n return annotations as Map<string, T[]>;\n}\n\nexport const useSelection = <T extends Annotation>() => {\n const { selection } = useContext(AnnotoriousManifoldContext);\n return selection as ManifoldSelection<T>;\n}\n"],"names":["AnnotoriousManifoldContext","createContext","AnnotoriousManifold","props","annotators","setAnnotators","useState","annotations","setAnnotations","selection","setSelection","muteSelectionEvents","useRef","connectAnnotator","id","anno","m","store","selectionState","onStoreChange","selectionStoreObserver","unsubscribeSelection","selected","event","resolved","editable","e","updated","annotation","next","u","key","_","useEffect","source","jsx","useAnnotoriousManifold","useContext","createManifoldInstance","useAnnotator","useAnnotations","useSelection"],"mappings":";;;AA4BO,MAAMA,IAA6BC,EAA+C,GAE5EC,IAAsB,CAACC,MAAmC;AAErE,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAsD,oBAAI,KAAK,GAE7F,CAACC,GAAaC,CAAc,IAAIF,EAAoC,oBAAI,K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AAWrC,CAA0B;AACrD,SAAAI,EAAW,IAAIU,CAAE;AAC1B,GAEa0B,IAAiB,MAA4B;AACxD,QAAM,EAAE,aAAAjC,EAAA,IAAgB8B,EAAWrC,CAA0B;AACtD,SAAAO;AACT,GAEakC,IAAe,MAA4B;AACtD,QAAM,EAAE,WAAAhC,EAAA,IAAc4B,EAAWrC,CAA0B;AACpD,SAAAS;AACT;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annotorious/react-manifold",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A utility to manage multiple parallel Annotorious instances more efficiently",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -40,7 +40,7 @@
40
40
  "vite-tsconfig-paths": "^5.1.4"
41
41
  },
42
42
  "peerDependencies": {
43
- "@annotorious/react": "3.1.1",
43
+ "@annotorious/react": "3.1.2",
44
44
  "openseadragon": "^5.0.1",
45
45
  "react": "16.8.0 || >=17.x || >=18.x || >=19.x",
46
46
  "react-dom": "16.8.0 || >=17.x || >=18.x|| >=19.x"
@@ -1,409 +0,0 @@
1
- import { __exports as _ } from "./annotorious-react-manifold.es12.js";
2
- import we from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.development.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var ue;
13
- function he() {
14
- return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
15
- function s(e) {
16
- if (e == null) return null;
17
- if (typeof e == "function")
18
- return e.$$typeof === me ? null : e.displayName || e.name || null;
19
- if (typeof e == "string") return e;
20
- switch (e) {
21
- case j:
22
- return "Fragment";
23
- case ge:
24
- return "Portal";
25
- case H:
26
- return "Profiler";
27
- case G:
28
- return "StrictMode";
29
- case A:
30
- return "Suspense";
31
- case k:
32
- return "SuspenseList";
33
- }
34
- if (typeof e == "object")
35
- switch (typeof e.tag == "number" && console.error(
36
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
37
- ), e.$$typeof) {
38
- case X:
39
- return (e.displayName || "Context") + ".Provider";
40
- case K:
41
- return (e._context.displayName || "Context") + ".Consumer";
42
- case S:
43
- var r = e.render;
44
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
45
- case p:
46
- return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
47
- case N:
48
- r = e._payload, e = e._init;
49
- try {
50
- return s(e(r));
51
- } catch {
52
- }
53
- }
54
- return null;
55
- }
56
- function M(e) {
57
- return "" + e;
58
- }
59
- function W(e) {
60
- try {
61
- M(e);
62
- var r = !1;
63
- } catch {
64
- r = !0;
65
- }
66
- if (r) {
67
- r = console;
68
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
69
- return t.call(
70
- r,
71
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
72
- n
73
- ), M(e);
74
- }
75
- }
76
- function $() {
77
- }
78
- function le() {
79
- if (v === 0) {
80
- Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
81
- var e = {
82
- configurable: !0,
83
- enumerable: !0,
84
- value: $,
85
- writable: !0
86
- };
87
- Object.defineProperties(console, {
88
- info: e,
89
- log: e,
90
- warn: e,
91
- error: e,
92
- group: e,
93
- groupCollapsed: e,
94
- groupEnd: e
95
- });
96
- }
97
- v++;
98
- }
99
- function fe() {
100
- if (v--, v === 0) {
101
- var e = { configurable: !0, enumerable: !0, writable: !0 };
102
- Object.defineProperties(console, {
103
- log: E({}, e, { value: Z }),
104
- info: E({}, e, { value: F }),
105
- warn: E({}, e, { value: I }),
106
- error: E({}, e, { value: L }),
107
- group: E({}, e, { value: Q }),
108
- groupCollapsed: E({}, e, { value: D }),
109
- groupEnd: E({}, e, { value: ee })
110
- });
111
- }
112
- 0 > v && console.error(
113
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
114
- );
115
- }
116
- function y(e) {
117
- if (x === void 0)
118
- try {
119
- throw Error();
120
- } catch (t) {
121
- var r = t.stack.trim().match(/\n( *(at )?)/);
122
- x = r && r[1] || "", re = -1 < t.stack.indexOf(`
123
- at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
124
- }
125
- return `
126
- ` + x + e + re;
127
- }
128
- function U(e, r) {
129
- if (!e || P) return "";
130
- var t = Y.get(e);
131
- if (t !== void 0) return t;
132
- P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
133
- var n = null;
134
- n = d.H, d.H = null, le();
135
- try {
136
- var u = {
137
- DetermineComponentFrameRoot: function() {
138
- try {
139
- if (r) {
140
- var i = function() {
141
- throw Error();
142
- };
143
- if (Object.defineProperty(i.prototype, "props", {
144
- set: function() {
145
- throw Error();
146
- }
147
- }), typeof Reflect == "object" && Reflect.construct) {
148
- try {
149
- Reflect.construct(i, []);
150
- } catch (c) {
151
- var w = c;
152
- }
153
- Reflect.construct(e, [], i);
154
- } else {
155
- try {
156
- i.call();
157
- } catch (c) {
158
- w = c;
159
- }
160
- e.call(i.prototype);
161
- }
162
- } else {
163
- try {
164
- throw Error();
165
- } catch (c) {
166
- w = c;
167
- }
168
- (i = e()) && typeof i.catch == "function" && i.catch(function() {
169
- });
170
- }
171
- } catch (c) {
172
- if (c && w && typeof c.stack == "string")
173
- return [c.stack, w.stack];
174
- }
175
- return [null, null];
176
- }
177
- };
178
- u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
179
- var a = Object.getOwnPropertyDescriptor(
180
- u.DetermineComponentFrameRoot,
181
- "name"
182
- );
183
- a && a.configurable && Object.defineProperty(
184
- u.DetermineComponentFrameRoot,
185
- "name",
186
- { value: "DetermineComponentFrameRoot" }
187
- );
188
- var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
189
- if (f && g) {
190
- var l = f.split(`
191
- `), b = g.split(`
192
- `);
193
- for (o = a = 0; a < l.length && !l[a].includes(
194
- "DetermineComponentFrameRoot"
195
- ); )
196
- a++;
197
- for (; o < b.length && !b[o].includes(
198
- "DetermineComponentFrameRoot"
199
- ); )
200
- o++;
201
- if (a === l.length || o === b.length)
202
- for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
203
- o--;
204
- for (; 1 <= a && 0 <= o; a--, o--)
205
- if (l[a] !== b[o]) {
206
- if (a !== 1 || o !== 1)
207
- do
208
- if (a--, o--, 0 > o || l[a] !== b[o]) {
209
- var m = `
210
- ` + l[a].replace(
211
- " at new ",
212
- " at "
213
- );
214
- return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
215
- }
216
- while (1 <= a && 0 <= o);
217
- break;
218
- }
219
- }
220
- } finally {
221
- P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
222
- }
223
- return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
224
- }
225
- function T(e) {
226
- if (e == null) return "";
227
- if (typeof e == "function") {
228
- var r = e.prototype;
229
- return U(
230
- e,
231
- !(!r || !r.isReactComponent)
232
- );
233
- }
234
- if (typeof e == "string") return y(e);
235
- switch (e) {
236
- case A:
237
- return y("Suspense");
238
- case k:
239
- return y("SuspenseList");
240
- }
241
- if (typeof e == "object")
242
- switch (e.$$typeof) {
243
- case S:
244
- return e = U(e.render, !1), e;
245
- case p:
246
- return T(e.type);
247
- case N:
248
- r = e._payload, e = e._init;
249
- try {
250
- return T(e(r));
251
- } catch {
252
- }
253
- }
254
- return "";
255
- }
256
- function C() {
257
- var e = d.A;
258
- return e === null ? null : e.getOwner();
259
- }
260
- function ce(e) {
261
- if (J.call(e, "key")) {
262
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
263
- if (r && r.isReactWarning) return !1;
264
- }
265
- return e.key !== void 0;
266
- }
267
- function se(e, r) {
268
- function t() {
269
- te || (te = !0, console.error(
270
- "%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)",
271
- r
272
- ));
273
- }
274
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
275
- get: t,
276
- configurable: !0
277
- });
278
- }
279
- function ie() {
280
- var e = s(this.type);
281
- return oe[e] || (oe[e] = !0, console.error(
282
- "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."
283
- )), e = this.props.ref, e !== void 0 ? e : null;
284
- }
285
- function de(e, r, t, n, u, a) {
286
- return t = a.ref, e = {
287
- $$typeof: O,
288
- type: e,
289
- key: r,
290
- props: a,
291
- _owner: u
292
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
293
- enumerable: !1,
294
- get: ie
295
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
296
- configurable: !1,
297
- enumerable: !1,
298
- writable: !0,
299
- value: 0
300
- }), Object.defineProperty(e, "_debugInfo", {
301
- configurable: !1,
302
- enumerable: !1,
303
- writable: !0,
304
- value: null
305
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
306
- }
307
- function z(e, r, t, n, u, a) {
308
- if (typeof e == "string" || typeof e == "function" || e === j || e === H || e === G || e === A || e === k || e === ve || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === p || e.$$typeof === X || e.$$typeof === K || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
- var o = r.children;
310
- if (o !== void 0)
311
- if (n)
312
- if (R(o)) {
313
- for (n = 0; n < o.length; n++)
314
- V(o[n], e);
315
- Object.freeze && Object.freeze(o);
316
- } else
317
- console.error(
318
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
319
- );
320
- else V(o, e);
321
- } else
322
- o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : R(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
323
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
324
- n,
325
- o
326
- );
327
- if (J.call(r, "key")) {
328
- o = s(e);
329
- var f = Object.keys(r).filter(function(l) {
330
- return l !== "key";
331
- });
332
- n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
333
- `A props object containing a "key" prop is being spread into JSX:
334
- let props = %s;
335
- <%s {...props} />
336
- React keys must be passed directly to JSX without using spread:
337
- let props = %s;
338
- <%s key={someKey} {...props} />`,
339
- n,
340
- o,
341
- f,
342
- o
343
- ), ne[o + n] = !0);
344
- }
345
- if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
346
- t = {};
347
- for (var g in r)
348
- g !== "key" && (t[g] = r[g]);
349
- } else t = r;
350
- return o && se(
351
- t,
352
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
353
- ), de(e, o, a, u, C(), t);
354
- }
355
- function V(e, r) {
356
- if (typeof e == "object" && e && e.$$typeof !== ye) {
357
- if (R(e))
358
- for (var t = 0; t < e.length; t++) {
359
- var n = e[t];
360
- h(n) && q(n, r);
361
- }
362
- else if (h(e))
363
- e._store && (e._store.validated = 1);
364
- else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
365
- for (; !(e = t.next()).done; )
366
- h(e.value) && q(e.value, r);
367
- }
368
- }
369
- function h(e) {
370
- return typeof e == "object" && e !== null && e.$$typeof === O;
371
- }
372
- function q(e, r) {
373
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
374
- ae[r] = !0;
375
- var t = "";
376
- e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
377
- var n = d.getCurrentStack;
378
- d.getCurrentStack = function() {
379
- var u = T(e.type);
380
- return n && (u += n() || ""), u;
381
- }, console.error(
382
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
383
- r,
384
- t
385
- ), d.getCurrentStack = n;
386
- }
387
- }
388
- function Ee(e) {
389
- var r = "", t = C();
390
- return t && (t = s(t.type)) && (r = `
391
-
392
- Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
393
-
394
- Check the top-level render call using <` + e + ">."), r;
395
- }
396
- var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), G = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), X = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), R = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
397
- $.__reactDisabledLog = !0;
398
- var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
399
- _.Fragment = j, _.jsx = function(e, r, t, n, u) {
400
- return z(e, r, t, !1, n, u);
401
- }, _.jsxs = function(e, r, t, n, u) {
402
- return z(e, r, t, !0, n, u);
403
- };
404
- }(), _);
405
- }
406
- export {
407
- he as __require
408
- };
409
- //# sourceMappingURL=annotorious-react-manifold.es10.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es10.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE$2\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function disabledLog() {}\n function disableLogs() {\n if (0 === disabledDepth) {\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd;\n var props = {\n configurable: !0,\n enumerable: !0,\n value: disabledLog,\n writable: !0\n };\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n }\n disabledDepth++;\n }\n function reenableLogs() {\n disabledDepth--;\n if (0 === disabledDepth) {\n var props = { configurable: !0, enumerable: !0, writable: !0 };\n Object.defineProperties(console, {\n log: assign({}, props, { value: prevLog }),\n info: assign({}, props, { value: prevInfo }),\n warn: assign({}, props, { value: prevWarn }),\n error: assign({}, props, { value: prevError }),\n group: assign({}, props, { value: prevGroup }),\n groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),\n groupEnd: assign({}, props, { value: prevGroupEnd })\n });\n }\n 0 > disabledDepth &&\n console.error(\n \"disabledDepth fell below zero. This is a bug in React. Please file an issue.\"\n );\n }\n function describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" (<anonymous>)\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n }\n function describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n var frame = componentFrameCache.get(fn);\n if (void 0 !== frame) return frame;\n reentry = !0;\n frame = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var previousDispatcher = null;\n previousDispatcher = ReactSharedInternals.H;\n ReactSharedInternals.H = null;\n disableLogs();\n try {\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$0) {\n control = x$0;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$1) {\n control = x$1;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\",\n { value: \"DetermineComponentFrameRoot\" }\n );\n var _RunInRootFrame$Deter =\n RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n _RunInRootFrame$Deter = namePropDescriptor = 0;\n namePropDescriptor < sampleLines.length &&\n !sampleLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n for (\n ;\n _RunInRootFrame$Deter < controlLines.length &&\n !controlLines[_RunInRootFrame$Deter].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n _RunInRootFrame$Deter++;\n if (\n namePropDescriptor === sampleLines.length ||\n _RunInRootFrame$Deter === controlLines.length\n )\n for (\n namePropDescriptor = sampleLines.length - 1,\n _RunInRootFrame$Deter = controlLines.length - 1;\n 1 <= namePropDescriptor &&\n 0 <= _RunInRootFrame$Deter &&\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter];\n\n )\n _RunInRootFrame$Deter--;\n for (\n ;\n 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;\n namePropDescriptor--, _RunInRootFrame$Deter--\n )\n if (\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter]\n ) {\n if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {\n do\n if (\n (namePropDescriptor--,\n _RunInRootFrame$Deter--,\n 0 > _RunInRootFrame$Deter ||\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter])\n ) {\n var _frame =\n \"\\n\" +\n sampleLines[namePropDescriptor].replace(\n \" at new \",\n \" at \"\n );\n fn.displayName &&\n _frame.includes(\"<anonymous>\") &&\n (_frame = _frame.replace(\"<anonymous>\", fn.displayName));\n \"function\" === typeof fn &&\n componentFrameCache.set(fn, _frame);\n return _frame;\n }\n while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);\n }\n break;\n }\n }\n } finally {\n (reentry = !1),\n (ReactSharedInternals.H = previousDispatcher),\n reenableLogs(),\n (Error.prepareStackTrace = frame);\n }\n sampleLines = (sampleLines = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(sampleLines)\n : \"\";\n \"function\" === typeof fn && componentFrameCache.set(fn, sampleLines);\n return sampleLines;\n }\n function describeUnknownElementTypeFrameInDEV(type) {\n if (null == type) return \"\";\n if (\"function\" === typeof type) {\n var prototype = type.prototype;\n return describeNativeComponentFrame(\n type,\n !(!prototype || !prototype.isReactComponent)\n );\n }\n if (\"string\" === typeof type) return describeBuiltInComponentFrame(type);\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame(\"Suspense\");\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return (type = describeNativeComponentFrame(type.render, !1)), type;\n case REACT_MEMO_TYPE:\n return describeUnknownElementTypeFrameInDEV(type.type);\n case REACT_LAZY_TYPE:\n prototype = type._payload;\n type = type._init;\n try {\n return describeUnknownElementTypeFrameInDEV(type(prototype));\n } catch (x) {}\n }\n return \"\";\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%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)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"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.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, self, source, owner, props) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self\n ) {\n if (\n \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n type === REACT_OFFSCREEN_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE$1 ||\n void 0 !== type.getModuleId))\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren], type);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children, type);\n } else {\n children = \"\";\n if (\n void 0 === type ||\n (\"object\" === typeof type &&\n null !== type &&\n 0 === Object.keys(type).length)\n )\n children +=\n \" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\";\n null === type\n ? (isStaticChildren = \"null\")\n : isArrayImpl(type)\n ? (isStaticChildren = \"array\")\n : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE\n ? ((isStaticChildren =\n \"<\" +\n (getComponentNameFromType(type.type) || \"Unknown\") +\n \" />\"),\n (children =\n \" Did you accidentally export a JSX literal instead of a component?\"))\n : (isStaticChildren = typeof type);\n console.error(\n \"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",\n isStaticChildren,\n children\n );\n }\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n '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} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(type, children, self, source, getOwner(), maybeKey);\n }\n function validateChildKeys(node, parentType) {\n if (\n \"object\" === typeof node &&\n node &&\n node.$$typeof !== REACT_CLIENT_REFERENCE\n )\n if (isArrayImpl(node))\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n isValidElement(child) && validateExplicitKey(child, parentType);\n }\n else if (isValidElement(node))\n node._store && (node._store.validated = 1);\n else if (\n (null === node || \"object\" !== typeof node\n ? (i = null)\n : ((i =\n (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||\n node[\"@@iterator\"]),\n (i = \"function\" === typeof i ? i : null)),\n \"function\" === typeof i &&\n i !== node.entries &&\n ((i = i.call(node)), i !== node))\n )\n for (; !(node = i.next()).done; )\n isValidElement(node.value) &&\n validateExplicitKey(node.value, parentType);\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n function validateExplicitKey(element, parentType) {\n if (\n element._store &&\n !element._store.validated &&\n null == element.key &&\n ((element._store.validated = 1),\n (parentType = getCurrentComponentErrorInfo(parentType)),\n !ownerHasKeyUseWarning[parentType])\n ) {\n ownerHasKeyUseWarning[parentType] = !0;\n var childOwner = \"\";\n element &&\n null != element._owner &&\n element._owner !== getOwner() &&\n ((childOwner = null),\n \"number\" === typeof element._owner.tag\n ? (childOwner = getComponentNameFromType(element._owner.type))\n : \"string\" === typeof element._owner.name &&\n (childOwner = element._owner.name),\n (childOwner = \" It was passed a child from \" + childOwner + \".\"));\n var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;\n ReactSharedInternals.getCurrentStack = function () {\n var stack = describeUnknownElementTypeFrameInDEV(element.type);\n prevGetCurrentStack && (stack += prevGetCurrentStack() || \"\");\n return stack;\n };\n console.error(\n 'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.',\n parentType,\n childOwner\n );\n ReactSharedInternals.getCurrentStack = prevGetCurrentStack;\n }\n }\n function getCurrentComponentErrorInfo(parentType) {\n var info = \"\",\n owner = getOwner();\n owner &&\n (owner = getComponentNameFromType(owner.type)) &&\n (info = \"\\n\\nCheck the render method of `\" + owner + \"`.\");\n info ||\n ((parentType = getComponentNameFromType(parentType)) &&\n (info =\n \"\\n\\nCheck the top-level render call using <\" + parentType + \">.\"));\n return info;\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_OFFSCREEN_TYPE = Symbol.for(\"react.offscreen\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n REACT_CLIENT_REFERENCE$2 = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n assign = Object.assign,\n REACT_CLIENT_REFERENCE$1 = Symbol.for(\"react.client.reference\"),\n isArrayImpl = Array.isArray,\n disabledDepth = 0,\n prevLog,\n prevInfo,\n prevWarn,\n prevError,\n prevGroup,\n prevGroupCollapsed,\n prevGroupEnd;\n disabledLog.__reactDisabledLog = !0;\n var prefix,\n suffix,\n reentry = !1;\n var componentFrameCache = new (\n \"function\" === typeof WeakMap ? WeakMap : Map\n )();\n var REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var didWarnAboutKeySpread = {},\n ownerHasKeyUseWarning = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n return jsxDEVImpl(type, config, maybeKey, !1, source, self);\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n return jsxDEVImpl(type, config, maybeKey, !0, source, self);\n };\n })();\n"],"names":["getComponentNameFromType","type","REACT_CLIENT_REFERENCE$2","REACT_FRAGMENT_TYPE","REACT_PORTAL_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","disabledLog","disableLogs","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","props","reenableLogs","assign","describeBuiltInComponentFrame","name","prefix","x","match","suffix","describeNativeComponentFrame","fn","construct","reentry","frame","componentFrameCache","previousDispatcher","ReactSharedInternals","RunInRootFrame","Fake","control","x$0","x$1","sample","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","controlLines","_frame","describeUnknownElementTypeFrameInDEV","prototype","getOwner","dispatcher","hasValidKey","config","hasOwnProperty","getter","defineKeyPropWarningGetter","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","key","self","source","owner","REACT_ELEMENT_TYPE","jsxDEVImpl","maybeKey","isStaticChildren","REACT_OFFSCREEN_TYPE","REACT_CLIENT_REFERENCE$1","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","propName","node","parentType","REACT_CLIENT_REFERENCE","i","child","isValidElement","validateExplicitKey","MAYBE_ITERATOR_SYMBOL","object","element","getCurrentComponentErrorInfo","ownerHasKeyUseWarning","childOwner","prevGetCurrentStack","stack","info","React","require$$0","reactJsxRuntime_development"],"mappings":";;;;;;;;;;;;;2BAWiB,QAAQ,IAAI,aAA7B,gBACG,WAAY;AACX,aAASA,EAAyBC,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,aAAaC,KACrB,OACAD,EAAK,eAAeA,EAAK,QAAQ;AACvC,UAAiB,OAAOA,KAApB,SAA0B,QAAOA;AACrC,cAAQA,GAAI;AAAA,QACV,KAAKE;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA;AAEX,UAAiB,OAAOP,KAApB;AACF,gBACgB,OAAOA,EAAK,OAAzB,YACC,QAAQ;AAAA,UACN;AAAA,QACD,GACHA,EAAK,UACf;AAAA,UACU,KAAKQ;AACH,oBAAQR,EAAK,eAAe,aAAa;AAAA,UAC3C,KAAKS;AACH,oBAAQT,EAAK,SAAS,eAAe,aAAa;AAAA,UACpD,KAAKU;AACH,gBAAI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AAI,wBAAwB,GAC9DxB,IACEG,KAAyB,CAAE,GAC3BiB,KAAwB,CAAE,GAC5Ba,KAAwB,CAAE;AAC5B,IAAAO,EAAA,WAAmB7G,GACnB6G,EAAW,MAAG,SAAU/G,GAAMiE,GAAQiB,GAAUJ,GAAQD,GAAM;AAC5D,aAAOI,EAAWjF,GAAMiE,GAAQiB,GAAU,IAAIJ,GAAQD,CAAI;AAAA,IAC3D,GACDkC,EAAY,OAAG,SAAU/G,GAAMiE,GAAQiB,GAAUJ,GAAQD,GAAM;AAC7D,aAAOI,EAAWjF,GAAMiE,GAAQiB,GAAU,IAAIJ,GAAQD,CAAI;AAAA,IAC3D;AAAA,EACL,EAAM;;","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
5
- //# sourceMappingURL=annotorious-react-manifold.es11.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es11.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
5
- //# sourceMappingURL=annotorious-react-manifold.es12.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es12.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,9 +0,0 @@
1
- import { __module as e } from "./annotorious-react-manifold.es8.js";
2
- import { __require as r } from "./annotorious-react-manifold.es9.js";
3
- import { __require as o } from "./annotorious-react-manifold.es10.js";
4
- process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
- var m = e.exports;
6
- export {
7
- m as j
8
- };
9
- //# sourceMappingURL=annotorious-react-manifold.es7.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es7.js","sources":["../../../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;AAEI,QAAQ,IAAI,aAAa,eAC3BA,EAAA,UAAiBC,EAAgD,IAEjED,EAAA,UAAiBE,EAAiD;;","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=annotorious-react-manifold.es8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,36 +0,0 @@
1
- import { __exports as t } from "./annotorious-react-manifold.es11.js";
2
- /**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- var i;
12
- function R() {
13
- if (i) return t;
14
- i = 1;
15
- var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
16
- function s(_, r, e) {
17
- var n = null;
18
- if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
19
- e = {};
20
- for (var u in r)
21
- u !== "key" && (e[u] = r[u]);
22
- } else e = r;
23
- return r = e.ref, {
24
- $$typeof: d,
25
- type: _,
26
- key: n,
27
- ref: r !== void 0 ? r : null,
28
- props: e
29
- };
30
- }
31
- return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
32
- }
33
- export {
34
- R as __require
35
- };
36
- //# sourceMappingURL=annotorious-react-manifold.es9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-react-manifold.es9.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production"],"mappings":";;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAE;AACb,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IAC9D,MAAM,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA,IACR;AAAA;AAEa,SAAAG,EAAA,WAAGP,GACRO,EAAA,MAAGN,GACdM,EAAA,OAAeN;;","x_google_ignoreList":[0]}