Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/2.BS1fgMUm.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/AltairPlot.B-zEWRcw.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlockLabel.C_tdkFHA.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3D.WZNhCk7S.js +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DownloadLink.CzZp0moC.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DownloadLink.CzZp0moC.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BVeuag4v.js +118 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BuFZhJ-J.js +166 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BuFZhJ-J.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js +506 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C2EXtnCA.js +118 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C2EXtnCA.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CGUNrbfF.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CNa918u4.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CSI_-_PL.js +318 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CTo-xuiL.js +118 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CTo-xuiL.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CYe6rnxa.js +50 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.Ce2XkglX.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.DBkrk8px.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.DH7CNEn-.js +133 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js +581 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.TB9p9SUg.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.Ydb40JSe.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.wemIBKRq.js +205 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Gallery.HXgWnEV3.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/IconButtonWrapper.y99hkeYc.js +113 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/IconButtonWrapper.y99hkeYc.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ImagePreview.D_hY5OV7.js.br +0 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ImagePreview.D_hY5OV7.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.6zWlADsW.js +1718 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.8DzMSQRK.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BE9siB5D.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BQnekPhB.js +780 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BQuI7uWQ.js +462 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BR6IOxxo.js +626 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BR6IOxxo.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BT-Vdx4H.js +807 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BT-Vdx4H.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BcUqm4Zk.js.gz +3 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.Bq9du_gV.js +886 -0
- evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.Bq9du_gV.js.br +0 -0
.gitattributes
CHANGED
|
@@ -1350,3 +1350,4 @@ evalkit_tf437/lib/python3.10/lib-dynload/_struct.cpython-310-x86_64-linux-gnu.so
|
|
| 1350 |
evalkit_tf437/lib/python3.10/lib-dynload/_codecs_cn.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 1351 |
evalkit_tf446/lib/python3.10/site-packages/torch/distributed/__pycache__/distributed_c10d.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 1352 |
evalkit_tf446/lib/python3.10/site-packages/torch/_inductor/__pycache__/ir.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 1350 |
evalkit_tf437/lib/python3.10/lib-dynload/_codecs_cn.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 1351 |
evalkit_tf446/lib/python3.10/site-packages/torch/distributed/__pycache__/distributed_c10d.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 1352 |
evalkit_tf446/lib/python3.10/site-packages/torch/_inductor/__pycache__/ir.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 1353 |
+
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hls.CFPBCiRi.js.br filter=lfs diff=lfs merge=lfs -text
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/2.BS1fgMUm.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62d786879b7e4d3e0684218c38bbc72d2685a94d17b3c9b9fcc8c9ed6d5e2131
|
| 3 |
+
size 389529
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/AltairPlot.B-zEWRcw.js.br
ADDED
|
Binary file (2.62 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlockLabel.C_tdkFHA.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d56950c32f1a1d0eda3060c74de290fc93aad11b054bcedd5fbc80f3f8435d3a
|
| 3 |
+
size 1194
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3D.WZNhCk7S.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js.br
ADDED
|
Binary file (58 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Canvas3DGS.o8AhzH63.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5ddee473bbe4925aedfa357f0495cd999d9874db4c77133a0ce1f36e48167bb
|
| 3 |
+
size 75434
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DownloadLink.CzZp0moC.js.br
ADDED
|
Binary file (2.28 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DownloadLink.CzZp0moC.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:458b6c24b68cdf553326f5b3f9f30a2f3cb0423fd36a4ea6258cef3066ad6a96
|
| 3 |
+
size 2651
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BVeuag4v.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, text, claim_element, children, claim_text, detach, attr, toggle_class, insert_hydration, append_hydration, set_data, noop } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_fragment(ctx) {
|
| 4 |
+
let div;
|
| 5 |
+
let t_value = (
|
| 6 |
+
/*value*/
|
| 7 |
+
(ctx[0] !== null ? (
|
| 8 |
+
/*value*/
|
| 9 |
+
ctx[0].toLocaleString()
|
| 10 |
+
) : "") + ""
|
| 11 |
+
);
|
| 12 |
+
let t;
|
| 13 |
+
return {
|
| 14 |
+
c() {
|
| 15 |
+
div = element("div");
|
| 16 |
+
t = text(t_value);
|
| 17 |
+
this.h();
|
| 18 |
+
},
|
| 19 |
+
l(nodes) {
|
| 20 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 21 |
+
var div_nodes = children(div);
|
| 22 |
+
t = claim_text(div_nodes, t_value);
|
| 23 |
+
div_nodes.forEach(detach);
|
| 24 |
+
this.h();
|
| 25 |
+
},
|
| 26 |
+
h() {
|
| 27 |
+
attr(div, "class", "svelte-1ayixqk");
|
| 28 |
+
toggle_class(
|
| 29 |
+
div,
|
| 30 |
+
"table",
|
| 31 |
+
/*type*/
|
| 32 |
+
ctx[1] === "table"
|
| 33 |
+
);
|
| 34 |
+
toggle_class(
|
| 35 |
+
div,
|
| 36 |
+
"gallery",
|
| 37 |
+
/*type*/
|
| 38 |
+
ctx[1] === "gallery"
|
| 39 |
+
);
|
| 40 |
+
toggle_class(
|
| 41 |
+
div,
|
| 42 |
+
"selected",
|
| 43 |
+
/*selected*/
|
| 44 |
+
ctx[2]
|
| 45 |
+
);
|
| 46 |
+
},
|
| 47 |
+
m(target, anchor) {
|
| 48 |
+
insert_hydration(target, div, anchor);
|
| 49 |
+
append_hydration(div, t);
|
| 50 |
+
},
|
| 51 |
+
p(ctx2, [dirty]) {
|
| 52 |
+
if (dirty & /*value*/
|
| 53 |
+
1 && t_value !== (t_value = /*value*/
|
| 54 |
+
(ctx2[0] !== null ? (
|
| 55 |
+
/*value*/
|
| 56 |
+
ctx2[0].toLocaleString()
|
| 57 |
+
) : "") + ""))
|
| 58 |
+
set_data(t, t_value);
|
| 59 |
+
if (dirty & /*type*/
|
| 60 |
+
2) {
|
| 61 |
+
toggle_class(
|
| 62 |
+
div,
|
| 63 |
+
"table",
|
| 64 |
+
/*type*/
|
| 65 |
+
ctx2[1] === "table"
|
| 66 |
+
);
|
| 67 |
+
}
|
| 68 |
+
if (dirty & /*type*/
|
| 69 |
+
2) {
|
| 70 |
+
toggle_class(
|
| 71 |
+
div,
|
| 72 |
+
"gallery",
|
| 73 |
+
/*type*/
|
| 74 |
+
ctx2[1] === "gallery"
|
| 75 |
+
);
|
| 76 |
+
}
|
| 77 |
+
if (dirty & /*selected*/
|
| 78 |
+
4) {
|
| 79 |
+
toggle_class(
|
| 80 |
+
div,
|
| 81 |
+
"selected",
|
| 82 |
+
/*selected*/
|
| 83 |
+
ctx2[2]
|
| 84 |
+
);
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
i: noop,
|
| 88 |
+
o: noop,
|
| 89 |
+
d(detaching) {
|
| 90 |
+
if (detaching) {
|
| 91 |
+
detach(div);
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
};
|
| 95 |
+
}
|
| 96 |
+
function instance($$self, $$props, $$invalidate) {
|
| 97 |
+
let { value } = $$props;
|
| 98 |
+
let { type } = $$props;
|
| 99 |
+
let { selected = false } = $$props;
|
| 100 |
+
$$self.$$set = ($$props2) => {
|
| 101 |
+
if ("value" in $$props2)
|
| 102 |
+
$$invalidate(0, value = $$props2.value);
|
| 103 |
+
if ("type" in $$props2)
|
| 104 |
+
$$invalidate(1, type = $$props2.type);
|
| 105 |
+
if ("selected" in $$props2)
|
| 106 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 107 |
+
};
|
| 108 |
+
return [value, type, selected];
|
| 109 |
+
}
|
| 110 |
+
class Example extends SvelteComponent {
|
| 111 |
+
constructor(options) {
|
| 112 |
+
super();
|
| 113 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
export {
|
| 117 |
+
Example as default
|
| 118 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BuFZhJ-J.js
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, empty, insert_hydration, noop, detach, text, claim_text, set_data } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_else_block(ctx) {
|
| 4 |
+
let t0;
|
| 5 |
+
let t1;
|
| 6 |
+
let t2;
|
| 7 |
+
return {
|
| 8 |
+
c() {
|
| 9 |
+
t0 = text(
|
| 10 |
+
/*x*/
|
| 11 |
+
ctx[1]
|
| 12 |
+
);
|
| 13 |
+
t1 = text(" x ");
|
| 14 |
+
t2 = text(
|
| 15 |
+
/*y*/
|
| 16 |
+
ctx[2]
|
| 17 |
+
);
|
| 18 |
+
},
|
| 19 |
+
l(nodes) {
|
| 20 |
+
t0 = claim_text(
|
| 21 |
+
nodes,
|
| 22 |
+
/*x*/
|
| 23 |
+
ctx[1]
|
| 24 |
+
);
|
| 25 |
+
t1 = claim_text(nodes, " x ");
|
| 26 |
+
t2 = claim_text(
|
| 27 |
+
nodes,
|
| 28 |
+
/*y*/
|
| 29 |
+
ctx[2]
|
| 30 |
+
);
|
| 31 |
+
},
|
| 32 |
+
m(target, anchor) {
|
| 33 |
+
insert_hydration(target, t0, anchor);
|
| 34 |
+
insert_hydration(target, t1, anchor);
|
| 35 |
+
insert_hydration(target, t2, anchor);
|
| 36 |
+
},
|
| 37 |
+
p(ctx2, dirty) {
|
| 38 |
+
if (dirty & /*x*/
|
| 39 |
+
2)
|
| 40 |
+
set_data(
|
| 41 |
+
t0,
|
| 42 |
+
/*x*/
|
| 43 |
+
ctx2[1]
|
| 44 |
+
);
|
| 45 |
+
if (dirty & /*y*/
|
| 46 |
+
4)
|
| 47 |
+
set_data(
|
| 48 |
+
t2,
|
| 49 |
+
/*y*/
|
| 50 |
+
ctx2[2]
|
| 51 |
+
);
|
| 52 |
+
},
|
| 53 |
+
d(detaching) {
|
| 54 |
+
if (detaching) {
|
| 55 |
+
detach(t0);
|
| 56 |
+
detach(t1);
|
| 57 |
+
detach(t2);
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
};
|
| 61 |
+
}
|
| 62 |
+
function create_if_block(ctx) {
|
| 63 |
+
let t;
|
| 64 |
+
return {
|
| 65 |
+
c() {
|
| 66 |
+
t = text(
|
| 67 |
+
/*title*/
|
| 68 |
+
ctx[0]
|
| 69 |
+
);
|
| 70 |
+
},
|
| 71 |
+
l(nodes) {
|
| 72 |
+
t = claim_text(
|
| 73 |
+
nodes,
|
| 74 |
+
/*title*/
|
| 75 |
+
ctx[0]
|
| 76 |
+
);
|
| 77 |
+
},
|
| 78 |
+
m(target, anchor) {
|
| 79 |
+
insert_hydration(target, t, anchor);
|
| 80 |
+
},
|
| 81 |
+
p(ctx2, dirty) {
|
| 82 |
+
if (dirty & /*title*/
|
| 83 |
+
1)
|
| 84 |
+
set_data(
|
| 85 |
+
t,
|
| 86 |
+
/*title*/
|
| 87 |
+
ctx2[0]
|
| 88 |
+
);
|
| 89 |
+
},
|
| 90 |
+
d(detaching) {
|
| 91 |
+
if (detaching) {
|
| 92 |
+
detach(t);
|
| 93 |
+
}
|
| 94 |
+
}
|
| 95 |
+
};
|
| 96 |
+
}
|
| 97 |
+
function create_fragment(ctx) {
|
| 98 |
+
let if_block_anchor;
|
| 99 |
+
function select_block_type(ctx2, dirty) {
|
| 100 |
+
if (
|
| 101 |
+
/*title*/
|
| 102 |
+
ctx2[0]
|
| 103 |
+
)
|
| 104 |
+
return create_if_block;
|
| 105 |
+
return create_else_block;
|
| 106 |
+
}
|
| 107 |
+
let current_block_type = select_block_type(ctx);
|
| 108 |
+
let if_block = current_block_type(ctx);
|
| 109 |
+
return {
|
| 110 |
+
c() {
|
| 111 |
+
if_block.c();
|
| 112 |
+
if_block_anchor = empty();
|
| 113 |
+
},
|
| 114 |
+
l(nodes) {
|
| 115 |
+
if_block.l(nodes);
|
| 116 |
+
if_block_anchor = empty();
|
| 117 |
+
},
|
| 118 |
+
m(target, anchor) {
|
| 119 |
+
if_block.m(target, anchor);
|
| 120 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 121 |
+
},
|
| 122 |
+
p(ctx2, [dirty]) {
|
| 123 |
+
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
| 124 |
+
if_block.p(ctx2, dirty);
|
| 125 |
+
} else {
|
| 126 |
+
if_block.d(1);
|
| 127 |
+
if_block = current_block_type(ctx2);
|
| 128 |
+
if (if_block) {
|
| 129 |
+
if_block.c();
|
| 130 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
},
|
| 134 |
+
i: noop,
|
| 135 |
+
o: noop,
|
| 136 |
+
d(detaching) {
|
| 137 |
+
if (detaching) {
|
| 138 |
+
detach(if_block_anchor);
|
| 139 |
+
}
|
| 140 |
+
if_block.d(detaching);
|
| 141 |
+
}
|
| 142 |
+
};
|
| 143 |
+
}
|
| 144 |
+
function instance($$self, $$props, $$invalidate) {
|
| 145 |
+
let { title } = $$props;
|
| 146 |
+
let { x } = $$props;
|
| 147 |
+
let { y } = $$props;
|
| 148 |
+
$$self.$$set = ($$props2) => {
|
| 149 |
+
if ("title" in $$props2)
|
| 150 |
+
$$invalidate(0, title = $$props2.title);
|
| 151 |
+
if ("x" in $$props2)
|
| 152 |
+
$$invalidate(1, x = $$props2.x);
|
| 153 |
+
if ("y" in $$props2)
|
| 154 |
+
$$invalidate(2, y = $$props2.y);
|
| 155 |
+
};
|
| 156 |
+
return [title, x, y];
|
| 157 |
+
}
|
| 158 |
+
class Example extends SvelteComponent {
|
| 159 |
+
constructor(options) {
|
| 160 |
+
super();
|
| 161 |
+
init(this, options, instance, create_fragment, safe_not_equal, { title: 0, x: 1, y: 2 });
|
| 162 |
+
}
|
| 163 |
+
}
|
| 164 |
+
export {
|
| 165 |
+
Example as default
|
| 166 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.BuFZhJ-J.js.br
ADDED
|
Binary file (767 Bytes). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js
ADDED
|
@@ -0,0 +1,506 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, ensure_array_like, element, text, space, claim_element, children, claim_text, detach, claim_space, attr, add_render_callback, toggle_class, insert_hydration, append_hydration, add_iframe_resize_listener, set_data, transition_in, group_outros, check_outros, transition_out, destroy_each, onMount, empty, binding_callbacks, noop, src_url_equal, create_component, claim_component, mount_component, destroy_component } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { I as Image } from "./Image.eJ_qOnkr.js";
|
| 4 |
+
import "./2.BS1fgMUm.js";
|
| 5 |
+
/* empty css */
|
| 6 |
+
/* empty css */
|
| 7 |
+
import { V as Video } from "./Video.ML_kOajE.js";
|
| 8 |
+
function get_each_context(ctx, list, i) {
|
| 9 |
+
const child_ctx = ctx.slice();
|
| 10 |
+
child_ctx[8] = list[i];
|
| 11 |
+
return child_ctx;
|
| 12 |
+
}
|
| 13 |
+
function create_else_block(ctx) {
|
| 14 |
+
let t_value = (
|
| 15 |
+
/*file*/
|
| 16 |
+
ctx[8].orig_name + ""
|
| 17 |
+
);
|
| 18 |
+
let t;
|
| 19 |
+
return {
|
| 20 |
+
c() {
|
| 21 |
+
t = text(t_value);
|
| 22 |
+
},
|
| 23 |
+
l(nodes) {
|
| 24 |
+
t = claim_text(nodes, t_value);
|
| 25 |
+
},
|
| 26 |
+
m(target, anchor) {
|
| 27 |
+
insert_hydration(target, t, anchor);
|
| 28 |
+
},
|
| 29 |
+
p(ctx2, dirty) {
|
| 30 |
+
if (dirty & /*value*/
|
| 31 |
+
1 && t_value !== (t_value = /*file*/
|
| 32 |
+
ctx2[8].orig_name + ""))
|
| 33 |
+
set_data(t, t_value);
|
| 34 |
+
},
|
| 35 |
+
i: noop,
|
| 36 |
+
o: noop,
|
| 37 |
+
d(detaching) {
|
| 38 |
+
if (detaching) {
|
| 39 |
+
detach(t);
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
};
|
| 43 |
+
}
|
| 44 |
+
function create_if_block_2(ctx) {
|
| 45 |
+
let audio;
|
| 46 |
+
let audio_src_value;
|
| 47 |
+
return {
|
| 48 |
+
c() {
|
| 49 |
+
audio = element("audio");
|
| 50 |
+
this.h();
|
| 51 |
+
},
|
| 52 |
+
l(nodes) {
|
| 53 |
+
audio = claim_element(nodes, "AUDIO", { src: true });
|
| 54 |
+
children(audio).forEach(detach);
|
| 55 |
+
this.h();
|
| 56 |
+
},
|
| 57 |
+
h() {
|
| 58 |
+
if (!src_url_equal(audio.src, audio_src_value = /*file*/
|
| 59 |
+
ctx[8].url))
|
| 60 |
+
attr(audio, "src", audio_src_value);
|
| 61 |
+
audio.controls = true;
|
| 62 |
+
},
|
| 63 |
+
m(target, anchor) {
|
| 64 |
+
insert_hydration(target, audio, anchor);
|
| 65 |
+
},
|
| 66 |
+
p(ctx2, dirty) {
|
| 67 |
+
if (dirty & /*value*/
|
| 68 |
+
1 && !src_url_equal(audio.src, audio_src_value = /*file*/
|
| 69 |
+
ctx2[8].url)) {
|
| 70 |
+
attr(audio, "src", audio_src_value);
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
i: noop,
|
| 74 |
+
o: noop,
|
| 75 |
+
d(detaching) {
|
| 76 |
+
if (detaching) {
|
| 77 |
+
detach(audio);
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
};
|
| 81 |
+
}
|
| 82 |
+
function create_if_block_1(ctx) {
|
| 83 |
+
let video;
|
| 84 |
+
let current;
|
| 85 |
+
video = new Video({
|
| 86 |
+
props: {
|
| 87 |
+
src: (
|
| 88 |
+
/*file*/
|
| 89 |
+
ctx[8].url
|
| 90 |
+
),
|
| 91 |
+
alt: "",
|
| 92 |
+
loop: true,
|
| 93 |
+
is_stream: false
|
| 94 |
+
}
|
| 95 |
+
});
|
| 96 |
+
return {
|
| 97 |
+
c() {
|
| 98 |
+
create_component(video.$$.fragment);
|
| 99 |
+
},
|
| 100 |
+
l(nodes) {
|
| 101 |
+
claim_component(video.$$.fragment, nodes);
|
| 102 |
+
},
|
| 103 |
+
m(target, anchor) {
|
| 104 |
+
mount_component(video, target, anchor);
|
| 105 |
+
current = true;
|
| 106 |
+
},
|
| 107 |
+
p(ctx2, dirty) {
|
| 108 |
+
const video_changes = {};
|
| 109 |
+
if (dirty & /*value*/
|
| 110 |
+
1)
|
| 111 |
+
video_changes.src = /*file*/
|
| 112 |
+
ctx2[8].url;
|
| 113 |
+
video.$set(video_changes);
|
| 114 |
+
},
|
| 115 |
+
i(local) {
|
| 116 |
+
if (current)
|
| 117 |
+
return;
|
| 118 |
+
transition_in(video.$$.fragment, local);
|
| 119 |
+
current = true;
|
| 120 |
+
},
|
| 121 |
+
o(local) {
|
| 122 |
+
transition_out(video.$$.fragment, local);
|
| 123 |
+
current = false;
|
| 124 |
+
},
|
| 125 |
+
d(detaching) {
|
| 126 |
+
destroy_component(video, detaching);
|
| 127 |
+
}
|
| 128 |
+
};
|
| 129 |
+
}
|
| 130 |
+
function create_if_block(ctx) {
|
| 131 |
+
let image;
|
| 132 |
+
let current;
|
| 133 |
+
image = new Image({
|
| 134 |
+
props: { src: (
|
| 135 |
+
/*file*/
|
| 136 |
+
ctx[8].url
|
| 137 |
+
), alt: "" }
|
| 138 |
+
});
|
| 139 |
+
return {
|
| 140 |
+
c() {
|
| 141 |
+
create_component(image.$$.fragment);
|
| 142 |
+
},
|
| 143 |
+
l(nodes) {
|
| 144 |
+
claim_component(image.$$.fragment, nodes);
|
| 145 |
+
},
|
| 146 |
+
m(target, anchor) {
|
| 147 |
+
mount_component(image, target, anchor);
|
| 148 |
+
current = true;
|
| 149 |
+
},
|
| 150 |
+
p(ctx2, dirty) {
|
| 151 |
+
const image_changes = {};
|
| 152 |
+
if (dirty & /*value*/
|
| 153 |
+
1)
|
| 154 |
+
image_changes.src = /*file*/
|
| 155 |
+
ctx2[8].url;
|
| 156 |
+
image.$set(image_changes);
|
| 157 |
+
},
|
| 158 |
+
i(local) {
|
| 159 |
+
if (current)
|
| 160 |
+
return;
|
| 161 |
+
transition_in(image.$$.fragment, local);
|
| 162 |
+
current = true;
|
| 163 |
+
},
|
| 164 |
+
o(local) {
|
| 165 |
+
transition_out(image.$$.fragment, local);
|
| 166 |
+
current = false;
|
| 167 |
+
},
|
| 168 |
+
d(detaching) {
|
| 169 |
+
destroy_component(image, detaching);
|
| 170 |
+
}
|
| 171 |
+
};
|
| 172 |
+
}
|
| 173 |
+
function create_each_block(ctx) {
|
| 174 |
+
let show_if;
|
| 175 |
+
let show_if_1;
|
| 176 |
+
let show_if_2;
|
| 177 |
+
let current_block_type_index;
|
| 178 |
+
let if_block;
|
| 179 |
+
let if_block_anchor;
|
| 180 |
+
let current;
|
| 181 |
+
const if_block_creators = [create_if_block, create_if_block_1, create_if_block_2, create_else_block];
|
| 182 |
+
const if_blocks = [];
|
| 183 |
+
function select_block_type(ctx2, dirty) {
|
| 184 |
+
if (dirty & /*value*/
|
| 185 |
+
1)
|
| 186 |
+
show_if = null;
|
| 187 |
+
if (dirty & /*value*/
|
| 188 |
+
1)
|
| 189 |
+
show_if_1 = null;
|
| 190 |
+
if (dirty & /*value*/
|
| 191 |
+
1)
|
| 192 |
+
show_if_2 = null;
|
| 193 |
+
if (show_if == null)
|
| 194 |
+
show_if = !!/*file*/
|
| 195 |
+
(ctx2[8].mime_type && /*file*/
|
| 196 |
+
ctx2[8].mime_type.includes("image"));
|
| 197 |
+
if (show_if)
|
| 198 |
+
return 0;
|
| 199 |
+
if (show_if_1 == null)
|
| 200 |
+
show_if_1 = !!/*file*/
|
| 201 |
+
(ctx2[8].mime_type && /*file*/
|
| 202 |
+
ctx2[8].mime_type.includes("video"));
|
| 203 |
+
if (show_if_1)
|
| 204 |
+
return 1;
|
| 205 |
+
if (show_if_2 == null)
|
| 206 |
+
show_if_2 = !!/*file*/
|
| 207 |
+
(ctx2[8].mime_type && /*file*/
|
| 208 |
+
ctx2[8].mime_type.includes("audio"));
|
| 209 |
+
if (show_if_2)
|
| 210 |
+
return 2;
|
| 211 |
+
return 3;
|
| 212 |
+
}
|
| 213 |
+
current_block_type_index = select_block_type(ctx, -1);
|
| 214 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
| 215 |
+
return {
|
| 216 |
+
c() {
|
| 217 |
+
if_block.c();
|
| 218 |
+
if_block_anchor = empty();
|
| 219 |
+
},
|
| 220 |
+
l(nodes) {
|
| 221 |
+
if_block.l(nodes);
|
| 222 |
+
if_block_anchor = empty();
|
| 223 |
+
},
|
| 224 |
+
m(target, anchor) {
|
| 225 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
| 226 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 227 |
+
current = true;
|
| 228 |
+
},
|
| 229 |
+
p(ctx2, dirty) {
|
| 230 |
+
let previous_block_index = current_block_type_index;
|
| 231 |
+
current_block_type_index = select_block_type(ctx2, dirty);
|
| 232 |
+
if (current_block_type_index === previous_block_index) {
|
| 233 |
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
| 234 |
+
} else {
|
| 235 |
+
group_outros();
|
| 236 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
| 237 |
+
if_blocks[previous_block_index] = null;
|
| 238 |
+
});
|
| 239 |
+
check_outros();
|
| 240 |
+
if_block = if_blocks[current_block_type_index];
|
| 241 |
+
if (!if_block) {
|
| 242 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
| 243 |
+
if_block.c();
|
| 244 |
+
} else {
|
| 245 |
+
if_block.p(ctx2, dirty);
|
| 246 |
+
}
|
| 247 |
+
transition_in(if_block, 1);
|
| 248 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
i(local) {
|
| 252 |
+
if (current)
|
| 253 |
+
return;
|
| 254 |
+
transition_in(if_block);
|
| 255 |
+
current = true;
|
| 256 |
+
},
|
| 257 |
+
o(local) {
|
| 258 |
+
transition_out(if_block);
|
| 259 |
+
current = false;
|
| 260 |
+
},
|
| 261 |
+
d(detaching) {
|
| 262 |
+
if (detaching) {
|
| 263 |
+
detach(if_block_anchor);
|
| 264 |
+
}
|
| 265 |
+
if_blocks[current_block_type_index].d(detaching);
|
| 266 |
+
}
|
| 267 |
+
};
|
| 268 |
+
}
|
| 269 |
+
function create_fragment(ctx) {
|
| 270 |
+
let div;
|
| 271 |
+
let p;
|
| 272 |
+
let t0_value = (
|
| 273 |
+
/*value*/
|
| 274 |
+
(ctx[0].text ? (
|
| 275 |
+
/*value*/
|
| 276 |
+
ctx[0].text
|
| 277 |
+
) : "") + ""
|
| 278 |
+
);
|
| 279 |
+
let t0;
|
| 280 |
+
let t1;
|
| 281 |
+
let div_resize_listener;
|
| 282 |
+
let current;
|
| 283 |
+
let each_value = ensure_array_like(
|
| 284 |
+
/*value*/
|
| 285 |
+
ctx[0].files
|
| 286 |
+
);
|
| 287 |
+
let each_blocks = [];
|
| 288 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 289 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
| 290 |
+
}
|
| 291 |
+
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
| 292 |
+
each_blocks[i] = null;
|
| 293 |
+
});
|
| 294 |
+
return {
|
| 295 |
+
c() {
|
| 296 |
+
div = element("div");
|
| 297 |
+
p = element("p");
|
| 298 |
+
t0 = text(t0_value);
|
| 299 |
+
t1 = space();
|
| 300 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 301 |
+
each_blocks[i].c();
|
| 302 |
+
}
|
| 303 |
+
this.h();
|
| 304 |
+
},
|
| 305 |
+
l(nodes) {
|
| 306 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 307 |
+
var div_nodes = children(div);
|
| 308 |
+
p = claim_element(div_nodes, "P", {});
|
| 309 |
+
var p_nodes = children(p);
|
| 310 |
+
t0 = claim_text(p_nodes, t0_value);
|
| 311 |
+
p_nodes.forEach(detach);
|
| 312 |
+
t1 = claim_space(div_nodes);
|
| 313 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 314 |
+
each_blocks[i].l(div_nodes);
|
| 315 |
+
}
|
| 316 |
+
div_nodes.forEach(detach);
|
| 317 |
+
this.h();
|
| 318 |
+
},
|
| 319 |
+
h() {
|
| 320 |
+
attr(div, "class", "container svelte-1cl8bqt");
|
| 321 |
+
add_render_callback(() => (
|
| 322 |
+
/*div_elementresize_handler*/
|
| 323 |
+
ctx[5].call(div)
|
| 324 |
+
));
|
| 325 |
+
toggle_class(
|
| 326 |
+
div,
|
| 327 |
+
"table",
|
| 328 |
+
/*type*/
|
| 329 |
+
ctx[1] === "table"
|
| 330 |
+
);
|
| 331 |
+
toggle_class(
|
| 332 |
+
div,
|
| 333 |
+
"gallery",
|
| 334 |
+
/*type*/
|
| 335 |
+
ctx[1] === "gallery"
|
| 336 |
+
);
|
| 337 |
+
toggle_class(
|
| 338 |
+
div,
|
| 339 |
+
"selected",
|
| 340 |
+
/*selected*/
|
| 341 |
+
ctx[2]
|
| 342 |
+
);
|
| 343 |
+
toggle_class(
|
| 344 |
+
div,
|
| 345 |
+
"border",
|
| 346 |
+
/*value*/
|
| 347 |
+
ctx[0]
|
| 348 |
+
);
|
| 349 |
+
},
|
| 350 |
+
m(target, anchor) {
|
| 351 |
+
insert_hydration(target, div, anchor);
|
| 352 |
+
append_hydration(div, p);
|
| 353 |
+
append_hydration(p, t0);
|
| 354 |
+
append_hydration(div, t1);
|
| 355 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 356 |
+
if (each_blocks[i]) {
|
| 357 |
+
each_blocks[i].m(div, null);
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
+
div_resize_listener = add_iframe_resize_listener(
|
| 361 |
+
div,
|
| 362 |
+
/*div_elementresize_handler*/
|
| 363 |
+
ctx[5].bind(div)
|
| 364 |
+
);
|
| 365 |
+
ctx[6](div);
|
| 366 |
+
current = true;
|
| 367 |
+
},
|
| 368 |
+
p(ctx2, [dirty]) {
|
| 369 |
+
if ((!current || dirty & /*value*/
|
| 370 |
+
1) && t0_value !== (t0_value = /*value*/
|
| 371 |
+
(ctx2[0].text ? (
|
| 372 |
+
/*value*/
|
| 373 |
+
ctx2[0].text
|
| 374 |
+
) : "") + ""))
|
| 375 |
+
set_data(t0, t0_value);
|
| 376 |
+
if (dirty & /*value*/
|
| 377 |
+
1) {
|
| 378 |
+
each_value = ensure_array_like(
|
| 379 |
+
/*value*/
|
| 380 |
+
ctx2[0].files
|
| 381 |
+
);
|
| 382 |
+
let i;
|
| 383 |
+
for (i = 0; i < each_value.length; i += 1) {
|
| 384 |
+
const child_ctx = get_each_context(ctx2, each_value, i);
|
| 385 |
+
if (each_blocks[i]) {
|
| 386 |
+
each_blocks[i].p(child_ctx, dirty);
|
| 387 |
+
transition_in(each_blocks[i], 1);
|
| 388 |
+
} else {
|
| 389 |
+
each_blocks[i] = create_each_block(child_ctx);
|
| 390 |
+
each_blocks[i].c();
|
| 391 |
+
transition_in(each_blocks[i], 1);
|
| 392 |
+
each_blocks[i].m(div, null);
|
| 393 |
+
}
|
| 394 |
+
}
|
| 395 |
+
group_outros();
|
| 396 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
| 397 |
+
out(i);
|
| 398 |
+
}
|
| 399 |
+
check_outros();
|
| 400 |
+
}
|
| 401 |
+
if (!current || dirty & /*type*/
|
| 402 |
+
2) {
|
| 403 |
+
toggle_class(
|
| 404 |
+
div,
|
| 405 |
+
"table",
|
| 406 |
+
/*type*/
|
| 407 |
+
ctx2[1] === "table"
|
| 408 |
+
);
|
| 409 |
+
}
|
| 410 |
+
if (!current || dirty & /*type*/
|
| 411 |
+
2) {
|
| 412 |
+
toggle_class(
|
| 413 |
+
div,
|
| 414 |
+
"gallery",
|
| 415 |
+
/*type*/
|
| 416 |
+
ctx2[1] === "gallery"
|
| 417 |
+
);
|
| 418 |
+
}
|
| 419 |
+
if (!current || dirty & /*selected*/
|
| 420 |
+
4) {
|
| 421 |
+
toggle_class(
|
| 422 |
+
div,
|
| 423 |
+
"selected",
|
| 424 |
+
/*selected*/
|
| 425 |
+
ctx2[2]
|
| 426 |
+
);
|
| 427 |
+
}
|
| 428 |
+
if (!current || dirty & /*value*/
|
| 429 |
+
1) {
|
| 430 |
+
toggle_class(
|
| 431 |
+
div,
|
| 432 |
+
"border",
|
| 433 |
+
/*value*/
|
| 434 |
+
ctx2[0]
|
| 435 |
+
);
|
| 436 |
+
}
|
| 437 |
+
},
|
| 438 |
+
i(local) {
|
| 439 |
+
if (current)
|
| 440 |
+
return;
|
| 441 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 442 |
+
transition_in(each_blocks[i]);
|
| 443 |
+
}
|
| 444 |
+
current = true;
|
| 445 |
+
},
|
| 446 |
+
o(local) {
|
| 447 |
+
each_blocks = each_blocks.filter(Boolean);
|
| 448 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 449 |
+
transition_out(each_blocks[i]);
|
| 450 |
+
}
|
| 451 |
+
current = false;
|
| 452 |
+
},
|
| 453 |
+
d(detaching) {
|
| 454 |
+
if (detaching) {
|
| 455 |
+
detach(div);
|
| 456 |
+
}
|
| 457 |
+
destroy_each(each_blocks, detaching);
|
| 458 |
+
div_resize_listener();
|
| 459 |
+
ctx[6](null);
|
| 460 |
+
}
|
| 461 |
+
};
|
| 462 |
+
}
|
| 463 |
+
function instance($$self, $$props, $$invalidate) {
|
| 464 |
+
let { value = { text: "", files: [] } } = $$props;
|
| 465 |
+
let { type } = $$props;
|
| 466 |
+
let { selected = false } = $$props;
|
| 467 |
+
let size;
|
| 468 |
+
let el;
|
| 469 |
+
function set_styles(element2, el_width) {
|
| 470 |
+
if (!element2 || !el_width)
|
| 471 |
+
return;
|
| 472 |
+
el.style.setProperty("--local-text-width", `${el_width < 150 ? el_width : 200}px`);
|
| 473 |
+
$$invalidate(4, el.style.whiteSpace = "unset", el);
|
| 474 |
+
}
|
| 475 |
+
onMount(() => {
|
| 476 |
+
set_styles(el, size);
|
| 477 |
+
});
|
| 478 |
+
function div_elementresize_handler() {
|
| 479 |
+
size = this.clientWidth;
|
| 480 |
+
$$invalidate(3, size);
|
| 481 |
+
}
|
| 482 |
+
function div_binding($$value) {
|
| 483 |
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
| 484 |
+
el = $$value;
|
| 485 |
+
$$invalidate(4, el);
|
| 486 |
+
});
|
| 487 |
+
}
|
| 488 |
+
$$self.$$set = ($$props2) => {
|
| 489 |
+
if ("value" in $$props2)
|
| 490 |
+
$$invalidate(0, value = $$props2.value);
|
| 491 |
+
if ("type" in $$props2)
|
| 492 |
+
$$invalidate(1, type = $$props2.type);
|
| 493 |
+
if ("selected" in $$props2)
|
| 494 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 495 |
+
};
|
| 496 |
+
return [value, type, selected, size, el, div_elementresize_handler, div_binding];
|
| 497 |
+
}
|
| 498 |
+
class Example extends SvelteComponent {
|
| 499 |
+
constructor(options) {
|
| 500 |
+
super();
|
| 501 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 502 |
+
}
|
| 503 |
+
}
|
| 504 |
+
export {
|
| 505 |
+
Example as default
|
| 506 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js.br
ADDED
|
Binary file (2.44 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C0BgHxXm.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62139444bf803e51255bc24c69fd82cfccdf79bbc0a7b7845d06302e9199034
|
| 3 |
+
size 2778
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C2EXtnCA.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, text, claim_element, children, claim_text, detach, attr, toggle_class, insert_hydration, append_hydration, set_data, noop } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_fragment(ctx) {
|
| 4 |
+
let pre;
|
| 5 |
+
let t_value = (
|
| 6 |
+
/*value*/
|
| 7 |
+
(ctx[0] ? (
|
| 8 |
+
/*value*/
|
| 9 |
+
ctx[0]
|
| 10 |
+
) : "") + ""
|
| 11 |
+
);
|
| 12 |
+
let t;
|
| 13 |
+
return {
|
| 14 |
+
c() {
|
| 15 |
+
pre = element("pre");
|
| 16 |
+
t = text(t_value);
|
| 17 |
+
this.h();
|
| 18 |
+
},
|
| 19 |
+
l(nodes) {
|
| 20 |
+
pre = claim_element(nodes, "PRE", { class: true });
|
| 21 |
+
var pre_nodes = children(pre);
|
| 22 |
+
t = claim_text(pre_nodes, t_value);
|
| 23 |
+
pre_nodes.forEach(detach);
|
| 24 |
+
this.h();
|
| 25 |
+
},
|
| 26 |
+
h() {
|
| 27 |
+
attr(pre, "class", "svelte-agpzo2");
|
| 28 |
+
toggle_class(
|
| 29 |
+
pre,
|
| 30 |
+
"table",
|
| 31 |
+
/*type*/
|
| 32 |
+
ctx[1] === "table"
|
| 33 |
+
);
|
| 34 |
+
toggle_class(
|
| 35 |
+
pre,
|
| 36 |
+
"gallery",
|
| 37 |
+
/*type*/
|
| 38 |
+
ctx[1] === "gallery"
|
| 39 |
+
);
|
| 40 |
+
toggle_class(
|
| 41 |
+
pre,
|
| 42 |
+
"selected",
|
| 43 |
+
/*selected*/
|
| 44 |
+
ctx[2]
|
| 45 |
+
);
|
| 46 |
+
},
|
| 47 |
+
m(target, anchor) {
|
| 48 |
+
insert_hydration(target, pre, anchor);
|
| 49 |
+
append_hydration(pre, t);
|
| 50 |
+
},
|
| 51 |
+
p(ctx2, [dirty]) {
|
| 52 |
+
if (dirty & /*value*/
|
| 53 |
+
1 && t_value !== (t_value = /*value*/
|
| 54 |
+
(ctx2[0] ? (
|
| 55 |
+
/*value*/
|
| 56 |
+
ctx2[0]
|
| 57 |
+
) : "") + ""))
|
| 58 |
+
set_data(t, t_value);
|
| 59 |
+
if (dirty & /*type*/
|
| 60 |
+
2) {
|
| 61 |
+
toggle_class(
|
| 62 |
+
pre,
|
| 63 |
+
"table",
|
| 64 |
+
/*type*/
|
| 65 |
+
ctx2[1] === "table"
|
| 66 |
+
);
|
| 67 |
+
}
|
| 68 |
+
if (dirty & /*type*/
|
| 69 |
+
2) {
|
| 70 |
+
toggle_class(
|
| 71 |
+
pre,
|
| 72 |
+
"gallery",
|
| 73 |
+
/*type*/
|
| 74 |
+
ctx2[1] === "gallery"
|
| 75 |
+
);
|
| 76 |
+
}
|
| 77 |
+
if (dirty & /*selected*/
|
| 78 |
+
4) {
|
| 79 |
+
toggle_class(
|
| 80 |
+
pre,
|
| 81 |
+
"selected",
|
| 82 |
+
/*selected*/
|
| 83 |
+
ctx2[2]
|
| 84 |
+
);
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
i: noop,
|
| 88 |
+
o: noop,
|
| 89 |
+
d(detaching) {
|
| 90 |
+
if (detaching) {
|
| 91 |
+
detach(pre);
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
};
|
| 95 |
+
}
|
| 96 |
+
function instance($$self, $$props, $$invalidate) {
|
| 97 |
+
let { value } = $$props;
|
| 98 |
+
let { type } = $$props;
|
| 99 |
+
let { selected = false } = $$props;
|
| 100 |
+
$$self.$$set = ($$props2) => {
|
| 101 |
+
if ("value" in $$props2)
|
| 102 |
+
$$invalidate(0, value = $$props2.value);
|
| 103 |
+
if ("type" in $$props2)
|
| 104 |
+
$$invalidate(1, type = $$props2.type);
|
| 105 |
+
if ("selected" in $$props2)
|
| 106 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 107 |
+
};
|
| 108 |
+
return [value, type, selected];
|
| 109 |
+
}
|
| 110 |
+
class Example extends SvelteComponent {
|
| 111 |
+
constructor(options) {
|
| 112 |
+
super();
|
| 113 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
export {
|
| 117 |
+
Example as default
|
| 118 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.C2EXtnCA.js.br
ADDED
|
Binary file (765 Bytes). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CGUNrbfF.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c195bd81a3d57d33e3cf30cbfd1bc977931eadbddc4b91fa4a8c31ec33db9c48
|
| 3 |
+
size 835
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CNa918u4.js.br
ADDED
|
Binary file (773 Bytes). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CSI_-_PL.js
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, attr, toggle_class, insert_hydration, noop, ensure_array_like, space, empty, claim_space, destroy_each, text, claim_text, append_hydration, set_data, get_svelte_dataset } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function get_each_context(ctx, list, i) {
|
| 4 |
+
const child_ctx = ctx.slice();
|
| 5 |
+
child_ctx[3] = list[i];
|
| 6 |
+
return child_ctx;
|
| 7 |
+
}
|
| 8 |
+
function create_if_block(ctx) {
|
| 9 |
+
let t;
|
| 10 |
+
let show_if = Array.isArray(
|
| 11 |
+
/*value*/
|
| 12 |
+
ctx[0]
|
| 13 |
+
) && /*value*/
|
| 14 |
+
ctx[0].length > 3;
|
| 15 |
+
let if_block_anchor;
|
| 16 |
+
let each_value = ensure_array_like(Array.isArray(
|
| 17 |
+
/*value*/
|
| 18 |
+
ctx[0]
|
| 19 |
+
) ? (
|
| 20 |
+
/*value*/
|
| 21 |
+
ctx[0].slice(0, 3)
|
| 22 |
+
) : [
|
| 23 |
+
/*value*/
|
| 24 |
+
ctx[0]
|
| 25 |
+
]);
|
| 26 |
+
let each_blocks = [];
|
| 27 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 28 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
| 29 |
+
}
|
| 30 |
+
let if_block = show_if && create_if_block_1();
|
| 31 |
+
return {
|
| 32 |
+
c() {
|
| 33 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 34 |
+
each_blocks[i].c();
|
| 35 |
+
}
|
| 36 |
+
t = space();
|
| 37 |
+
if (if_block)
|
| 38 |
+
if_block.c();
|
| 39 |
+
if_block_anchor = empty();
|
| 40 |
+
},
|
| 41 |
+
l(nodes) {
|
| 42 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 43 |
+
each_blocks[i].l(nodes);
|
| 44 |
+
}
|
| 45 |
+
t = claim_space(nodes);
|
| 46 |
+
if (if_block)
|
| 47 |
+
if_block.l(nodes);
|
| 48 |
+
if_block_anchor = empty();
|
| 49 |
+
},
|
| 50 |
+
m(target, anchor) {
|
| 51 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 52 |
+
if (each_blocks[i]) {
|
| 53 |
+
each_blocks[i].m(target, anchor);
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
insert_hydration(target, t, anchor);
|
| 57 |
+
if (if_block)
|
| 58 |
+
if_block.m(target, anchor);
|
| 59 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 60 |
+
},
|
| 61 |
+
p(ctx2, dirty) {
|
| 62 |
+
if (dirty & /*Array, value*/
|
| 63 |
+
1) {
|
| 64 |
+
each_value = ensure_array_like(Array.isArray(
|
| 65 |
+
/*value*/
|
| 66 |
+
ctx2[0]
|
| 67 |
+
) ? (
|
| 68 |
+
/*value*/
|
| 69 |
+
ctx2[0].slice(0, 3)
|
| 70 |
+
) : [
|
| 71 |
+
/*value*/
|
| 72 |
+
ctx2[0]
|
| 73 |
+
]);
|
| 74 |
+
let i;
|
| 75 |
+
for (i = 0; i < each_value.length; i += 1) {
|
| 76 |
+
const child_ctx = get_each_context(ctx2, each_value, i);
|
| 77 |
+
if (each_blocks[i]) {
|
| 78 |
+
each_blocks[i].p(child_ctx, dirty);
|
| 79 |
+
} else {
|
| 80 |
+
each_blocks[i] = create_each_block(child_ctx);
|
| 81 |
+
each_blocks[i].c();
|
| 82 |
+
each_blocks[i].m(t.parentNode, t);
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
for (; i < each_blocks.length; i += 1) {
|
| 86 |
+
each_blocks[i].d(1);
|
| 87 |
+
}
|
| 88 |
+
each_blocks.length = each_value.length;
|
| 89 |
+
}
|
| 90 |
+
if (dirty & /*value*/
|
| 91 |
+
1)
|
| 92 |
+
show_if = Array.isArray(
|
| 93 |
+
/*value*/
|
| 94 |
+
ctx2[0]
|
| 95 |
+
) && /*value*/
|
| 96 |
+
ctx2[0].length > 3;
|
| 97 |
+
if (show_if) {
|
| 98 |
+
if (if_block)
|
| 99 |
+
;
|
| 100 |
+
else {
|
| 101 |
+
if_block = create_if_block_1();
|
| 102 |
+
if_block.c();
|
| 103 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
| 104 |
+
}
|
| 105 |
+
} else if (if_block) {
|
| 106 |
+
if_block.d(1);
|
| 107 |
+
if_block = null;
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
d(detaching) {
|
| 111 |
+
if (detaching) {
|
| 112 |
+
detach(t);
|
| 113 |
+
detach(if_block_anchor);
|
| 114 |
+
}
|
| 115 |
+
destroy_each(each_blocks, detaching);
|
| 116 |
+
if (if_block)
|
| 117 |
+
if_block.d(detaching);
|
| 118 |
+
}
|
| 119 |
+
};
|
| 120 |
+
}
|
| 121 |
+
function create_each_block(ctx) {
|
| 122 |
+
let li;
|
| 123 |
+
let code;
|
| 124 |
+
let t0;
|
| 125 |
+
let t1_value = (
|
| 126 |
+
/*path*/
|
| 127 |
+
ctx[3] + ""
|
| 128 |
+
);
|
| 129 |
+
let t1;
|
| 130 |
+
return {
|
| 131 |
+
c() {
|
| 132 |
+
li = element("li");
|
| 133 |
+
code = element("code");
|
| 134 |
+
t0 = text("./");
|
| 135 |
+
t1 = text(t1_value);
|
| 136 |
+
},
|
| 137 |
+
l(nodes) {
|
| 138 |
+
li = claim_element(nodes, "LI", {});
|
| 139 |
+
var li_nodes = children(li);
|
| 140 |
+
code = claim_element(li_nodes, "CODE", {});
|
| 141 |
+
var code_nodes = children(code);
|
| 142 |
+
t0 = claim_text(code_nodes, "./");
|
| 143 |
+
t1 = claim_text(code_nodes, t1_value);
|
| 144 |
+
code_nodes.forEach(detach);
|
| 145 |
+
li_nodes.forEach(detach);
|
| 146 |
+
},
|
| 147 |
+
m(target, anchor) {
|
| 148 |
+
insert_hydration(target, li, anchor);
|
| 149 |
+
append_hydration(li, code);
|
| 150 |
+
append_hydration(code, t0);
|
| 151 |
+
append_hydration(code, t1);
|
| 152 |
+
},
|
| 153 |
+
p(ctx2, dirty) {
|
| 154 |
+
if (dirty & /*value*/
|
| 155 |
+
1 && t1_value !== (t1_value = /*path*/
|
| 156 |
+
ctx2[3] + ""))
|
| 157 |
+
set_data(t1, t1_value);
|
| 158 |
+
},
|
| 159 |
+
d(detaching) {
|
| 160 |
+
if (detaching) {
|
| 161 |
+
detach(li);
|
| 162 |
+
}
|
| 163 |
+
}
|
| 164 |
+
};
|
| 165 |
+
}
|
| 166 |
+
function create_if_block_1(ctx) {
|
| 167 |
+
let li;
|
| 168 |
+
let textContent = "...";
|
| 169 |
+
return {
|
| 170 |
+
c() {
|
| 171 |
+
li = element("li");
|
| 172 |
+
li.textContent = textContent;
|
| 173 |
+
this.h();
|
| 174 |
+
},
|
| 175 |
+
l(nodes) {
|
| 176 |
+
li = claim_element(nodes, "LI", { class: true, ["data-svelte-h"]: true });
|
| 177 |
+
if (get_svelte_dataset(li) !== "svelte-17d9ayl")
|
| 178 |
+
li.textContent = textContent;
|
| 179 |
+
this.h();
|
| 180 |
+
},
|
| 181 |
+
h() {
|
| 182 |
+
attr(li, "class", "extra svelte-4tf8f");
|
| 183 |
+
},
|
| 184 |
+
m(target, anchor) {
|
| 185 |
+
insert_hydration(target, li, anchor);
|
| 186 |
+
},
|
| 187 |
+
d(detaching) {
|
| 188 |
+
if (detaching) {
|
| 189 |
+
detach(li);
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
};
|
| 193 |
+
}
|
| 194 |
+
function create_fragment(ctx) {
|
| 195 |
+
let ul;
|
| 196 |
+
let if_block = (
|
| 197 |
+
/*value*/
|
| 198 |
+
ctx[0] && create_if_block(ctx)
|
| 199 |
+
);
|
| 200 |
+
return {
|
| 201 |
+
c() {
|
| 202 |
+
ul = element("ul");
|
| 203 |
+
if (if_block)
|
| 204 |
+
if_block.c();
|
| 205 |
+
this.h();
|
| 206 |
+
},
|
| 207 |
+
l(nodes) {
|
| 208 |
+
ul = claim_element(nodes, "UL", { class: true });
|
| 209 |
+
var ul_nodes = children(ul);
|
| 210 |
+
if (if_block)
|
| 211 |
+
if_block.l(ul_nodes);
|
| 212 |
+
ul_nodes.forEach(detach);
|
| 213 |
+
this.h();
|
| 214 |
+
},
|
| 215 |
+
h() {
|
| 216 |
+
attr(ul, "class", "svelte-4tf8f");
|
| 217 |
+
toggle_class(
|
| 218 |
+
ul,
|
| 219 |
+
"table",
|
| 220 |
+
/*type*/
|
| 221 |
+
ctx[1] === "table"
|
| 222 |
+
);
|
| 223 |
+
toggle_class(
|
| 224 |
+
ul,
|
| 225 |
+
"gallery",
|
| 226 |
+
/*type*/
|
| 227 |
+
ctx[1] === "gallery"
|
| 228 |
+
);
|
| 229 |
+
toggle_class(
|
| 230 |
+
ul,
|
| 231 |
+
"selected",
|
| 232 |
+
/*selected*/
|
| 233 |
+
ctx[2]
|
| 234 |
+
);
|
| 235 |
+
},
|
| 236 |
+
m(target, anchor) {
|
| 237 |
+
insert_hydration(target, ul, anchor);
|
| 238 |
+
if (if_block)
|
| 239 |
+
if_block.m(ul, null);
|
| 240 |
+
},
|
| 241 |
+
p(ctx2, [dirty]) {
|
| 242 |
+
if (
|
| 243 |
+
/*value*/
|
| 244 |
+
ctx2[0]
|
| 245 |
+
) {
|
| 246 |
+
if (if_block) {
|
| 247 |
+
if_block.p(ctx2, dirty);
|
| 248 |
+
} else {
|
| 249 |
+
if_block = create_if_block(ctx2);
|
| 250 |
+
if_block.c();
|
| 251 |
+
if_block.m(ul, null);
|
| 252 |
+
}
|
| 253 |
+
} else if (if_block) {
|
| 254 |
+
if_block.d(1);
|
| 255 |
+
if_block = null;
|
| 256 |
+
}
|
| 257 |
+
if (dirty & /*type*/
|
| 258 |
+
2) {
|
| 259 |
+
toggle_class(
|
| 260 |
+
ul,
|
| 261 |
+
"table",
|
| 262 |
+
/*type*/
|
| 263 |
+
ctx2[1] === "table"
|
| 264 |
+
);
|
| 265 |
+
}
|
| 266 |
+
if (dirty & /*type*/
|
| 267 |
+
2) {
|
| 268 |
+
toggle_class(
|
| 269 |
+
ul,
|
| 270 |
+
"gallery",
|
| 271 |
+
/*type*/
|
| 272 |
+
ctx2[1] === "gallery"
|
| 273 |
+
);
|
| 274 |
+
}
|
| 275 |
+
if (dirty & /*selected*/
|
| 276 |
+
4) {
|
| 277 |
+
toggle_class(
|
| 278 |
+
ul,
|
| 279 |
+
"selected",
|
| 280 |
+
/*selected*/
|
| 281 |
+
ctx2[2]
|
| 282 |
+
);
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
i: noop,
|
| 286 |
+
o: noop,
|
| 287 |
+
d(detaching) {
|
| 288 |
+
if (detaching) {
|
| 289 |
+
detach(ul);
|
| 290 |
+
}
|
| 291 |
+
if (if_block)
|
| 292 |
+
if_block.d();
|
| 293 |
+
}
|
| 294 |
+
};
|
| 295 |
+
}
|
| 296 |
+
function instance($$self, $$props, $$invalidate) {
|
| 297 |
+
let { value } = $$props;
|
| 298 |
+
let { type } = $$props;
|
| 299 |
+
let { selected = false } = $$props;
|
| 300 |
+
$$self.$$set = ($$props2) => {
|
| 301 |
+
if ("value" in $$props2)
|
| 302 |
+
$$invalidate(0, value = $$props2.value);
|
| 303 |
+
if ("type" in $$props2)
|
| 304 |
+
$$invalidate(1, type = $$props2.type);
|
| 305 |
+
if ("selected" in $$props2)
|
| 306 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 307 |
+
};
|
| 308 |
+
return [value, type, selected];
|
| 309 |
+
}
|
| 310 |
+
class Example extends SvelteComponent {
|
| 311 |
+
constructor(options) {
|
| 312 |
+
super();
|
| 313 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 314 |
+
}
|
| 315 |
+
}
|
| 316 |
+
export {
|
| 317 |
+
Example as default
|
| 318 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CTo-xuiL.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, text, claim_element, children, claim_text, detach, attr, toggle_class, insert_hydration, append_hydration, set_data, noop } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_fragment(ctx) {
|
| 4 |
+
let div;
|
| 5 |
+
let t;
|
| 6 |
+
return {
|
| 7 |
+
c() {
|
| 8 |
+
div = element("div");
|
| 9 |
+
t = text(
|
| 10 |
+
/*value*/
|
| 11 |
+
ctx[0]
|
| 12 |
+
);
|
| 13 |
+
this.h();
|
| 14 |
+
},
|
| 15 |
+
l(nodes) {
|
| 16 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 17 |
+
var div_nodes = children(div);
|
| 18 |
+
t = claim_text(
|
| 19 |
+
div_nodes,
|
| 20 |
+
/*value*/
|
| 21 |
+
ctx[0]
|
| 22 |
+
);
|
| 23 |
+
div_nodes.forEach(detach);
|
| 24 |
+
this.h();
|
| 25 |
+
},
|
| 26 |
+
h() {
|
| 27 |
+
attr(div, "class", "svelte-1ayixqk");
|
| 28 |
+
toggle_class(
|
| 29 |
+
div,
|
| 30 |
+
"table",
|
| 31 |
+
/*type*/
|
| 32 |
+
ctx[1] === "table"
|
| 33 |
+
);
|
| 34 |
+
toggle_class(
|
| 35 |
+
div,
|
| 36 |
+
"gallery",
|
| 37 |
+
/*type*/
|
| 38 |
+
ctx[1] === "gallery"
|
| 39 |
+
);
|
| 40 |
+
toggle_class(
|
| 41 |
+
div,
|
| 42 |
+
"selected",
|
| 43 |
+
/*selected*/
|
| 44 |
+
ctx[2]
|
| 45 |
+
);
|
| 46 |
+
},
|
| 47 |
+
m(target, anchor) {
|
| 48 |
+
insert_hydration(target, div, anchor);
|
| 49 |
+
append_hydration(div, t);
|
| 50 |
+
},
|
| 51 |
+
p(ctx2, [dirty]) {
|
| 52 |
+
if (dirty & /*value*/
|
| 53 |
+
1)
|
| 54 |
+
set_data(
|
| 55 |
+
t,
|
| 56 |
+
/*value*/
|
| 57 |
+
ctx2[0]
|
| 58 |
+
);
|
| 59 |
+
if (dirty & /*type*/
|
| 60 |
+
2) {
|
| 61 |
+
toggle_class(
|
| 62 |
+
div,
|
| 63 |
+
"table",
|
| 64 |
+
/*type*/
|
| 65 |
+
ctx2[1] === "table"
|
| 66 |
+
);
|
| 67 |
+
}
|
| 68 |
+
if (dirty & /*type*/
|
| 69 |
+
2) {
|
| 70 |
+
toggle_class(
|
| 71 |
+
div,
|
| 72 |
+
"gallery",
|
| 73 |
+
/*type*/
|
| 74 |
+
ctx2[1] === "gallery"
|
| 75 |
+
);
|
| 76 |
+
}
|
| 77 |
+
if (dirty & /*selected*/
|
| 78 |
+
4) {
|
| 79 |
+
toggle_class(
|
| 80 |
+
div,
|
| 81 |
+
"selected",
|
| 82 |
+
/*selected*/
|
| 83 |
+
ctx2[2]
|
| 84 |
+
);
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
i: noop,
|
| 88 |
+
o: noop,
|
| 89 |
+
d(detaching) {
|
| 90 |
+
if (detaching) {
|
| 91 |
+
detach(div);
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
};
|
| 95 |
+
}
|
| 96 |
+
function instance($$self, $$props, $$invalidate) {
|
| 97 |
+
let { value } = $$props;
|
| 98 |
+
let { type } = $$props;
|
| 99 |
+
let { selected = false } = $$props;
|
| 100 |
+
$$self.$$set = ($$props2) => {
|
| 101 |
+
if ("value" in $$props2)
|
| 102 |
+
$$invalidate(0, value = $$props2.value);
|
| 103 |
+
if ("type" in $$props2)
|
| 104 |
+
$$invalidate(1, type = $$props2.type);
|
| 105 |
+
if ("selected" in $$props2)
|
| 106 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 107 |
+
};
|
| 108 |
+
return [value, type, selected];
|
| 109 |
+
}
|
| 110 |
+
class Example extends SvelteComponent {
|
| 111 |
+
constructor(options) {
|
| 112 |
+
super();
|
| 113 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
export {
|
| 117 |
+
Example as default
|
| 118 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CTo-xuiL.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbe21d4781d9fc216e2e81ee375b6a53f63c8ba89c9d3d8d43acaa9d6289a954
|
| 3 |
+
size 818
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.CYe6rnxa.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, text, claim_text, insert_hydration, set_data, noop, detach } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_fragment(ctx) {
|
| 4 |
+
let t_value = (
|
| 5 |
+
/*value*/
|
| 6 |
+
(ctx[0] || "") + ""
|
| 7 |
+
);
|
| 8 |
+
let t;
|
| 9 |
+
return {
|
| 10 |
+
c() {
|
| 11 |
+
t = text(t_value);
|
| 12 |
+
},
|
| 13 |
+
l(nodes) {
|
| 14 |
+
t = claim_text(nodes, t_value);
|
| 15 |
+
},
|
| 16 |
+
m(target, anchor) {
|
| 17 |
+
insert_hydration(target, t, anchor);
|
| 18 |
+
},
|
| 19 |
+
p(ctx2, [dirty]) {
|
| 20 |
+
if (dirty & /*value*/
|
| 21 |
+
1 && t_value !== (t_value = /*value*/
|
| 22 |
+
(ctx2[0] || "") + ""))
|
| 23 |
+
set_data(t, t_value);
|
| 24 |
+
},
|
| 25 |
+
i: noop,
|
| 26 |
+
o: noop,
|
| 27 |
+
d(detaching) {
|
| 28 |
+
if (detaching) {
|
| 29 |
+
detach(t);
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
};
|
| 33 |
+
}
|
| 34 |
+
function instance($$self, $$props, $$invalidate) {
|
| 35 |
+
let { value } = $$props;
|
| 36 |
+
$$self.$$set = ($$props2) => {
|
| 37 |
+
if ("value" in $$props2)
|
| 38 |
+
$$invalidate(0, value = $$props2.value);
|
| 39 |
+
};
|
| 40 |
+
return [value];
|
| 41 |
+
}
|
| 42 |
+
class Example extends SvelteComponent {
|
| 43 |
+
constructor(options) {
|
| 44 |
+
super();
|
| 45 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0 });
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
export {
|
| 49 |
+
Example as default
|
| 50 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.Ce2XkglX.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbe21d4781d9fc216e2e81ee375b6a53f63c8ba89c9d3d8d43acaa9d6289a954
|
| 3 |
+
size 818
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.DBkrk8px.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a11b8feb7f5e498c449d2972f9b09dadd80a20215758864642a123dcb0d74e48
|
| 3 |
+
size 922
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.DH7CNEn-.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, text, claim_element, children, claim_text, detach, attr, toggle_class, insert_hydration, append_hydration, set_data, noop } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function create_fragment(ctx) {
|
| 4 |
+
let div;
|
| 5 |
+
let t;
|
| 6 |
+
return {
|
| 7 |
+
c() {
|
| 8 |
+
div = element("div");
|
| 9 |
+
t = text(
|
| 10 |
+
/*name_string*/
|
| 11 |
+
ctx[2]
|
| 12 |
+
);
|
| 13 |
+
this.h();
|
| 14 |
+
},
|
| 15 |
+
l(nodes) {
|
| 16 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 17 |
+
var div_nodes = children(div);
|
| 18 |
+
t = claim_text(
|
| 19 |
+
div_nodes,
|
| 20 |
+
/*name_string*/
|
| 21 |
+
ctx[2]
|
| 22 |
+
);
|
| 23 |
+
div_nodes.forEach(detach);
|
| 24 |
+
this.h();
|
| 25 |
+
},
|
| 26 |
+
h() {
|
| 27 |
+
attr(div, "class", "svelte-1ayixqk");
|
| 28 |
+
toggle_class(
|
| 29 |
+
div,
|
| 30 |
+
"table",
|
| 31 |
+
/*type*/
|
| 32 |
+
ctx[0] === "table"
|
| 33 |
+
);
|
| 34 |
+
toggle_class(
|
| 35 |
+
div,
|
| 36 |
+
"gallery",
|
| 37 |
+
/*type*/
|
| 38 |
+
ctx[0] === "gallery"
|
| 39 |
+
);
|
| 40 |
+
toggle_class(
|
| 41 |
+
div,
|
| 42 |
+
"selected",
|
| 43 |
+
/*selected*/
|
| 44 |
+
ctx[1]
|
| 45 |
+
);
|
| 46 |
+
},
|
| 47 |
+
m(target, anchor) {
|
| 48 |
+
insert_hydration(target, div, anchor);
|
| 49 |
+
append_hydration(div, t);
|
| 50 |
+
},
|
| 51 |
+
p(ctx2, [dirty]) {
|
| 52 |
+
if (dirty & /*name_string*/
|
| 53 |
+
4)
|
| 54 |
+
set_data(
|
| 55 |
+
t,
|
| 56 |
+
/*name_string*/
|
| 57 |
+
ctx2[2]
|
| 58 |
+
);
|
| 59 |
+
if (dirty & /*type*/
|
| 60 |
+
1) {
|
| 61 |
+
toggle_class(
|
| 62 |
+
div,
|
| 63 |
+
"table",
|
| 64 |
+
/*type*/
|
| 65 |
+
ctx2[0] === "table"
|
| 66 |
+
);
|
| 67 |
+
}
|
| 68 |
+
if (dirty & /*type*/
|
| 69 |
+
1) {
|
| 70 |
+
toggle_class(
|
| 71 |
+
div,
|
| 72 |
+
"gallery",
|
| 73 |
+
/*type*/
|
| 74 |
+
ctx2[0] === "gallery"
|
| 75 |
+
);
|
| 76 |
+
}
|
| 77 |
+
if (dirty & /*selected*/
|
| 78 |
+
2) {
|
| 79 |
+
toggle_class(
|
| 80 |
+
div,
|
| 81 |
+
"selected",
|
| 82 |
+
/*selected*/
|
| 83 |
+
ctx2[1]
|
| 84 |
+
);
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
i: noop,
|
| 88 |
+
o: noop,
|
| 89 |
+
d(detaching) {
|
| 90 |
+
if (detaching) {
|
| 91 |
+
detach(div);
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
};
|
| 95 |
+
}
|
| 96 |
+
function instance($$self, $$props, $$invalidate) {
|
| 97 |
+
let { value } = $$props;
|
| 98 |
+
let { type } = $$props;
|
| 99 |
+
let { selected = false } = $$props;
|
| 100 |
+
let { choices } = $$props;
|
| 101 |
+
let name_string;
|
| 102 |
+
if (value === null) {
|
| 103 |
+
name_string = "";
|
| 104 |
+
} else {
|
| 105 |
+
let name = choices.find((pair) => pair[1] === value);
|
| 106 |
+
name_string = name ? name[0] : "";
|
| 107 |
+
}
|
| 108 |
+
$$self.$$set = ($$props2) => {
|
| 109 |
+
if ("value" in $$props2)
|
| 110 |
+
$$invalidate(3, value = $$props2.value);
|
| 111 |
+
if ("type" in $$props2)
|
| 112 |
+
$$invalidate(0, type = $$props2.type);
|
| 113 |
+
if ("selected" in $$props2)
|
| 114 |
+
$$invalidate(1, selected = $$props2.selected);
|
| 115 |
+
if ("choices" in $$props2)
|
| 116 |
+
$$invalidate(4, choices = $$props2.choices);
|
| 117 |
+
};
|
| 118 |
+
return [type, selected, name_string, value, choices];
|
| 119 |
+
}
|
| 120 |
+
class Example extends SvelteComponent {
|
| 121 |
+
constructor(options) {
|
| 122 |
+
super();
|
| 123 |
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
| 124 |
+
value: 3,
|
| 125 |
+
type: 0,
|
| 126 |
+
selected: 1,
|
| 127 |
+
choices: 4
|
| 128 |
+
});
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
export {
|
| 132 |
+
Example as default
|
| 133 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js
ADDED
|
@@ -0,0 +1,581 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, empty, insert_hydration, noop, detach, element, claim_element, children, attr, toggle_class, listen, run_all, ensure_array_like, space, claim_space, append_hydration, destroy_each, text, claim_text, set_data, get_svelte_dataset } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
function get_each_context(ctx, list, i) {
|
| 4 |
+
const child_ctx = ctx.slice();
|
| 5 |
+
child_ctx[8] = list[i];
|
| 6 |
+
child_ctx[10] = i;
|
| 7 |
+
return child_ctx;
|
| 8 |
+
}
|
| 9 |
+
function get_each_context_1(ctx, list, i) {
|
| 10 |
+
const child_ctx = ctx.slice();
|
| 11 |
+
child_ctx[11] = list[i];
|
| 12 |
+
child_ctx[13] = i;
|
| 13 |
+
return child_ctx;
|
| 14 |
+
}
|
| 15 |
+
function create_if_block(ctx) {
|
| 16 |
+
let div;
|
| 17 |
+
let mounted;
|
| 18 |
+
let dispose;
|
| 19 |
+
function select_block_type(ctx2, dirty) {
|
| 20 |
+
if (typeof /*value*/
|
| 21 |
+
ctx2[0] === "string")
|
| 22 |
+
return create_if_block_1;
|
| 23 |
+
return create_else_block;
|
| 24 |
+
}
|
| 25 |
+
let current_block_type = select_block_type(ctx);
|
| 26 |
+
let if_block = current_block_type(ctx);
|
| 27 |
+
return {
|
| 28 |
+
c() {
|
| 29 |
+
div = element("div");
|
| 30 |
+
if_block.c();
|
| 31 |
+
this.h();
|
| 32 |
+
},
|
| 33 |
+
l(nodes) {
|
| 34 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 35 |
+
var div_nodes = children(div);
|
| 36 |
+
if_block.l(div_nodes);
|
| 37 |
+
div_nodes.forEach(detach);
|
| 38 |
+
this.h();
|
| 39 |
+
},
|
| 40 |
+
h() {
|
| 41 |
+
attr(div, "class", "svelte-1cib1xd");
|
| 42 |
+
toggle_class(
|
| 43 |
+
div,
|
| 44 |
+
"table",
|
| 45 |
+
/*type*/
|
| 46 |
+
ctx[1] === "table"
|
| 47 |
+
);
|
| 48 |
+
toggle_class(
|
| 49 |
+
div,
|
| 50 |
+
"gallery",
|
| 51 |
+
/*type*/
|
| 52 |
+
ctx[1] === "gallery"
|
| 53 |
+
);
|
| 54 |
+
toggle_class(
|
| 55 |
+
div,
|
| 56 |
+
"selected",
|
| 57 |
+
/*selected*/
|
| 58 |
+
ctx[2]
|
| 59 |
+
);
|
| 60 |
+
},
|
| 61 |
+
m(target, anchor) {
|
| 62 |
+
insert_hydration(target, div, anchor);
|
| 63 |
+
if_block.m(div, null);
|
| 64 |
+
if (!mounted) {
|
| 65 |
+
dispose = [
|
| 66 |
+
listen(
|
| 67 |
+
div,
|
| 68 |
+
"mouseenter",
|
| 69 |
+
/*mouseenter_handler*/
|
| 70 |
+
ctx[6]
|
| 71 |
+
),
|
| 72 |
+
listen(
|
| 73 |
+
div,
|
| 74 |
+
"mouseleave",
|
| 75 |
+
/*mouseleave_handler*/
|
| 76 |
+
ctx[7]
|
| 77 |
+
)
|
| 78 |
+
];
|
| 79 |
+
mounted = true;
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
p(ctx2, dirty) {
|
| 83 |
+
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
| 84 |
+
if_block.p(ctx2, dirty);
|
| 85 |
+
} else {
|
| 86 |
+
if_block.d(1);
|
| 87 |
+
if_block = current_block_type(ctx2);
|
| 88 |
+
if (if_block) {
|
| 89 |
+
if_block.c();
|
| 90 |
+
if_block.m(div, null);
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
if (dirty & /*type*/
|
| 94 |
+
2) {
|
| 95 |
+
toggle_class(
|
| 96 |
+
div,
|
| 97 |
+
"table",
|
| 98 |
+
/*type*/
|
| 99 |
+
ctx2[1] === "table"
|
| 100 |
+
);
|
| 101 |
+
}
|
| 102 |
+
if (dirty & /*type*/
|
| 103 |
+
2) {
|
| 104 |
+
toggle_class(
|
| 105 |
+
div,
|
| 106 |
+
"gallery",
|
| 107 |
+
/*type*/
|
| 108 |
+
ctx2[1] === "gallery"
|
| 109 |
+
);
|
| 110 |
+
}
|
| 111 |
+
if (dirty & /*selected*/
|
| 112 |
+
4) {
|
| 113 |
+
toggle_class(
|
| 114 |
+
div,
|
| 115 |
+
"selected",
|
| 116 |
+
/*selected*/
|
| 117 |
+
ctx2[2]
|
| 118 |
+
);
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
d(detaching) {
|
| 122 |
+
if (detaching) {
|
| 123 |
+
detach(div);
|
| 124 |
+
}
|
| 125 |
+
if_block.d();
|
| 126 |
+
mounted = false;
|
| 127 |
+
run_all(dispose);
|
| 128 |
+
}
|
| 129 |
+
};
|
| 130 |
+
}
|
| 131 |
+
function create_else_block(ctx) {
|
| 132 |
+
let table;
|
| 133 |
+
let t;
|
| 134 |
+
let each_value = ensure_array_like(
|
| 135 |
+
/*value*/
|
| 136 |
+
ctx[0].slice(0, 3)
|
| 137 |
+
);
|
| 138 |
+
let each_blocks = [];
|
| 139 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 140 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
| 141 |
+
}
|
| 142 |
+
let if_block = (
|
| 143 |
+
/*value*/
|
| 144 |
+
ctx[0].length > 3 && create_if_block_2(ctx)
|
| 145 |
+
);
|
| 146 |
+
return {
|
| 147 |
+
c() {
|
| 148 |
+
table = element("table");
|
| 149 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 150 |
+
each_blocks[i].c();
|
| 151 |
+
}
|
| 152 |
+
t = space();
|
| 153 |
+
if (if_block)
|
| 154 |
+
if_block.c();
|
| 155 |
+
this.h();
|
| 156 |
+
},
|
| 157 |
+
l(nodes) {
|
| 158 |
+
table = claim_element(nodes, "TABLE", { class: true });
|
| 159 |
+
var table_nodes = children(table);
|
| 160 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 161 |
+
each_blocks[i].l(table_nodes);
|
| 162 |
+
}
|
| 163 |
+
t = claim_space(table_nodes);
|
| 164 |
+
if (if_block)
|
| 165 |
+
if_block.l(table_nodes);
|
| 166 |
+
table_nodes.forEach(detach);
|
| 167 |
+
this.h();
|
| 168 |
+
},
|
| 169 |
+
h() {
|
| 170 |
+
attr(table, "class", " svelte-1cib1xd");
|
| 171 |
+
},
|
| 172 |
+
m(target, anchor) {
|
| 173 |
+
insert_hydration(target, table, anchor);
|
| 174 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 175 |
+
if (each_blocks[i]) {
|
| 176 |
+
each_blocks[i].m(table, null);
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
append_hydration(table, t);
|
| 180 |
+
if (if_block)
|
| 181 |
+
if_block.m(table, null);
|
| 182 |
+
},
|
| 183 |
+
p(ctx2, dirty) {
|
| 184 |
+
if (dirty & /*value*/
|
| 185 |
+
1) {
|
| 186 |
+
each_value = ensure_array_like(
|
| 187 |
+
/*value*/
|
| 188 |
+
ctx2[0].slice(0, 3)
|
| 189 |
+
);
|
| 190 |
+
let i;
|
| 191 |
+
for (i = 0; i < each_value.length; i += 1) {
|
| 192 |
+
const child_ctx = get_each_context(ctx2, each_value, i);
|
| 193 |
+
if (each_blocks[i]) {
|
| 194 |
+
each_blocks[i].p(child_ctx, dirty);
|
| 195 |
+
} else {
|
| 196 |
+
each_blocks[i] = create_each_block(child_ctx);
|
| 197 |
+
each_blocks[i].c();
|
| 198 |
+
each_blocks[i].m(table, t);
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
for (; i < each_blocks.length; i += 1) {
|
| 202 |
+
each_blocks[i].d(1);
|
| 203 |
+
}
|
| 204 |
+
each_blocks.length = each_value.length;
|
| 205 |
+
}
|
| 206 |
+
if (
|
| 207 |
+
/*value*/
|
| 208 |
+
ctx2[0].length > 3
|
| 209 |
+
) {
|
| 210 |
+
if (if_block) {
|
| 211 |
+
if_block.p(ctx2, dirty);
|
| 212 |
+
} else {
|
| 213 |
+
if_block = create_if_block_2(ctx2);
|
| 214 |
+
if_block.c();
|
| 215 |
+
if_block.m(table, null);
|
| 216 |
+
}
|
| 217 |
+
} else if (if_block) {
|
| 218 |
+
if_block.d(1);
|
| 219 |
+
if_block = null;
|
| 220 |
+
}
|
| 221 |
+
},
|
| 222 |
+
d(detaching) {
|
| 223 |
+
if (detaching) {
|
| 224 |
+
detach(table);
|
| 225 |
+
}
|
| 226 |
+
destroy_each(each_blocks, detaching);
|
| 227 |
+
if (if_block)
|
| 228 |
+
if_block.d();
|
| 229 |
+
}
|
| 230 |
+
};
|
| 231 |
+
}
|
| 232 |
+
function create_if_block_1(ctx) {
|
| 233 |
+
let t;
|
| 234 |
+
return {
|
| 235 |
+
c() {
|
| 236 |
+
t = text(
|
| 237 |
+
/*value*/
|
| 238 |
+
ctx[0]
|
| 239 |
+
);
|
| 240 |
+
},
|
| 241 |
+
l(nodes) {
|
| 242 |
+
t = claim_text(
|
| 243 |
+
nodes,
|
| 244 |
+
/*value*/
|
| 245 |
+
ctx[0]
|
| 246 |
+
);
|
| 247 |
+
},
|
| 248 |
+
m(target, anchor) {
|
| 249 |
+
insert_hydration(target, t, anchor);
|
| 250 |
+
},
|
| 251 |
+
p(ctx2, dirty) {
|
| 252 |
+
if (dirty & /*value*/
|
| 253 |
+
1)
|
| 254 |
+
set_data(
|
| 255 |
+
t,
|
| 256 |
+
/*value*/
|
| 257 |
+
ctx2[0]
|
| 258 |
+
);
|
| 259 |
+
},
|
| 260 |
+
d(detaching) {
|
| 261 |
+
if (detaching) {
|
| 262 |
+
detach(t);
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
+
};
|
| 266 |
+
}
|
| 267 |
+
function create_each_block_1(ctx) {
|
| 268 |
+
let td;
|
| 269 |
+
let t_value = (
|
| 270 |
+
/*cell*/
|
| 271 |
+
ctx[11] + ""
|
| 272 |
+
);
|
| 273 |
+
let t;
|
| 274 |
+
return {
|
| 275 |
+
c() {
|
| 276 |
+
td = element("td");
|
| 277 |
+
t = text(t_value);
|
| 278 |
+
this.h();
|
| 279 |
+
},
|
| 280 |
+
l(nodes) {
|
| 281 |
+
td = claim_element(nodes, "TD", { class: true });
|
| 282 |
+
var td_nodes = children(td);
|
| 283 |
+
t = claim_text(td_nodes, t_value);
|
| 284 |
+
td_nodes.forEach(detach);
|
| 285 |
+
this.h();
|
| 286 |
+
},
|
| 287 |
+
h() {
|
| 288 |
+
attr(td, "class", "svelte-1cib1xd");
|
| 289 |
+
},
|
| 290 |
+
m(target, anchor) {
|
| 291 |
+
insert_hydration(target, td, anchor);
|
| 292 |
+
append_hydration(td, t);
|
| 293 |
+
},
|
| 294 |
+
p(ctx2, dirty) {
|
| 295 |
+
if (dirty & /*value*/
|
| 296 |
+
1 && t_value !== (t_value = /*cell*/
|
| 297 |
+
ctx2[11] + ""))
|
| 298 |
+
set_data(t, t_value);
|
| 299 |
+
},
|
| 300 |
+
d(detaching) {
|
| 301 |
+
if (detaching) {
|
| 302 |
+
detach(td);
|
| 303 |
+
}
|
| 304 |
+
}
|
| 305 |
+
};
|
| 306 |
+
}
|
| 307 |
+
function create_if_block_3(ctx) {
|
| 308 |
+
let td;
|
| 309 |
+
let textContent = "…";
|
| 310 |
+
return {
|
| 311 |
+
c() {
|
| 312 |
+
td = element("td");
|
| 313 |
+
td.textContent = textContent;
|
| 314 |
+
this.h();
|
| 315 |
+
},
|
| 316 |
+
l(nodes) {
|
| 317 |
+
td = claim_element(nodes, "TD", { class: true, ["data-svelte-h"]: true });
|
| 318 |
+
if (get_svelte_dataset(td) !== "svelte-1o35md4")
|
| 319 |
+
td.textContent = textContent;
|
| 320 |
+
this.h();
|
| 321 |
+
},
|
| 322 |
+
h() {
|
| 323 |
+
attr(td, "class", "svelte-1cib1xd");
|
| 324 |
+
},
|
| 325 |
+
m(target, anchor) {
|
| 326 |
+
insert_hydration(target, td, anchor);
|
| 327 |
+
},
|
| 328 |
+
d(detaching) {
|
| 329 |
+
if (detaching) {
|
| 330 |
+
detach(td);
|
| 331 |
+
}
|
| 332 |
+
}
|
| 333 |
+
};
|
| 334 |
+
}
|
| 335 |
+
function create_each_block(ctx) {
|
| 336 |
+
let tr;
|
| 337 |
+
let t;
|
| 338 |
+
let each_value_1 = ensure_array_like(
|
| 339 |
+
/*row*/
|
| 340 |
+
ctx[8].slice(0, 3)
|
| 341 |
+
);
|
| 342 |
+
let each_blocks = [];
|
| 343 |
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
| 344 |
+
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
| 345 |
+
}
|
| 346 |
+
let if_block = (
|
| 347 |
+
/*row*/
|
| 348 |
+
ctx[8].length > 3 && create_if_block_3()
|
| 349 |
+
);
|
| 350 |
+
return {
|
| 351 |
+
c() {
|
| 352 |
+
tr = element("tr");
|
| 353 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 354 |
+
each_blocks[i].c();
|
| 355 |
+
}
|
| 356 |
+
t = space();
|
| 357 |
+
if (if_block)
|
| 358 |
+
if_block.c();
|
| 359 |
+
},
|
| 360 |
+
l(nodes) {
|
| 361 |
+
tr = claim_element(nodes, "TR", {});
|
| 362 |
+
var tr_nodes = children(tr);
|
| 363 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 364 |
+
each_blocks[i].l(tr_nodes);
|
| 365 |
+
}
|
| 366 |
+
t = claim_space(tr_nodes);
|
| 367 |
+
if (if_block)
|
| 368 |
+
if_block.l(tr_nodes);
|
| 369 |
+
tr_nodes.forEach(detach);
|
| 370 |
+
},
|
| 371 |
+
m(target, anchor) {
|
| 372 |
+
insert_hydration(target, tr, anchor);
|
| 373 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 374 |
+
if (each_blocks[i]) {
|
| 375 |
+
each_blocks[i].m(tr, null);
|
| 376 |
+
}
|
| 377 |
+
}
|
| 378 |
+
append_hydration(tr, t);
|
| 379 |
+
if (if_block)
|
| 380 |
+
if_block.m(tr, null);
|
| 381 |
+
},
|
| 382 |
+
p(ctx2, dirty) {
|
| 383 |
+
if (dirty & /*value*/
|
| 384 |
+
1) {
|
| 385 |
+
each_value_1 = ensure_array_like(
|
| 386 |
+
/*row*/
|
| 387 |
+
ctx2[8].slice(0, 3)
|
| 388 |
+
);
|
| 389 |
+
let i;
|
| 390 |
+
for (i = 0; i < each_value_1.length; i += 1) {
|
| 391 |
+
const child_ctx = get_each_context_1(ctx2, each_value_1, i);
|
| 392 |
+
if (each_blocks[i]) {
|
| 393 |
+
each_blocks[i].p(child_ctx, dirty);
|
| 394 |
+
} else {
|
| 395 |
+
each_blocks[i] = create_each_block_1(child_ctx);
|
| 396 |
+
each_blocks[i].c();
|
| 397 |
+
each_blocks[i].m(tr, t);
|
| 398 |
+
}
|
| 399 |
+
}
|
| 400 |
+
for (; i < each_blocks.length; i += 1) {
|
| 401 |
+
each_blocks[i].d(1);
|
| 402 |
+
}
|
| 403 |
+
each_blocks.length = each_value_1.length;
|
| 404 |
+
}
|
| 405 |
+
if (
|
| 406 |
+
/*row*/
|
| 407 |
+
ctx2[8].length > 3
|
| 408 |
+
) {
|
| 409 |
+
if (if_block)
|
| 410 |
+
;
|
| 411 |
+
else {
|
| 412 |
+
if_block = create_if_block_3();
|
| 413 |
+
if_block.c();
|
| 414 |
+
if_block.m(tr, null);
|
| 415 |
+
}
|
| 416 |
+
} else if (if_block) {
|
| 417 |
+
if_block.d(1);
|
| 418 |
+
if_block = null;
|
| 419 |
+
}
|
| 420 |
+
},
|
| 421 |
+
d(detaching) {
|
| 422 |
+
if (detaching) {
|
| 423 |
+
detach(tr);
|
| 424 |
+
}
|
| 425 |
+
destroy_each(each_blocks, detaching);
|
| 426 |
+
if (if_block)
|
| 427 |
+
if_block.d();
|
| 428 |
+
}
|
| 429 |
+
};
|
| 430 |
+
}
|
| 431 |
+
function create_if_block_2(ctx) {
|
| 432 |
+
let div;
|
| 433 |
+
return {
|
| 434 |
+
c() {
|
| 435 |
+
div = element("div");
|
| 436 |
+
this.h();
|
| 437 |
+
},
|
| 438 |
+
l(nodes) {
|
| 439 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 440 |
+
children(div).forEach(detach);
|
| 441 |
+
this.h();
|
| 442 |
+
},
|
| 443 |
+
h() {
|
| 444 |
+
attr(div, "class", "overlay svelte-1cib1xd");
|
| 445 |
+
toggle_class(
|
| 446 |
+
div,
|
| 447 |
+
"odd",
|
| 448 |
+
/*index*/
|
| 449 |
+
ctx[3] % 2 != 0
|
| 450 |
+
);
|
| 451 |
+
toggle_class(
|
| 452 |
+
div,
|
| 453 |
+
"even",
|
| 454 |
+
/*index*/
|
| 455 |
+
ctx[3] % 2 == 0
|
| 456 |
+
);
|
| 457 |
+
toggle_class(
|
| 458 |
+
div,
|
| 459 |
+
"button",
|
| 460 |
+
/*type*/
|
| 461 |
+
ctx[1] === "gallery"
|
| 462 |
+
);
|
| 463 |
+
},
|
| 464 |
+
m(target, anchor) {
|
| 465 |
+
insert_hydration(target, div, anchor);
|
| 466 |
+
},
|
| 467 |
+
p(ctx2, dirty) {
|
| 468 |
+
if (dirty & /*index*/
|
| 469 |
+
8) {
|
| 470 |
+
toggle_class(
|
| 471 |
+
div,
|
| 472 |
+
"odd",
|
| 473 |
+
/*index*/
|
| 474 |
+
ctx2[3] % 2 != 0
|
| 475 |
+
);
|
| 476 |
+
}
|
| 477 |
+
if (dirty & /*index*/
|
| 478 |
+
8) {
|
| 479 |
+
toggle_class(
|
| 480 |
+
div,
|
| 481 |
+
"even",
|
| 482 |
+
/*index*/
|
| 483 |
+
ctx2[3] % 2 == 0
|
| 484 |
+
);
|
| 485 |
+
}
|
| 486 |
+
if (dirty & /*type*/
|
| 487 |
+
2) {
|
| 488 |
+
toggle_class(
|
| 489 |
+
div,
|
| 490 |
+
"button",
|
| 491 |
+
/*type*/
|
| 492 |
+
ctx2[1] === "gallery"
|
| 493 |
+
);
|
| 494 |
+
}
|
| 495 |
+
},
|
| 496 |
+
d(detaching) {
|
| 497 |
+
if (detaching) {
|
| 498 |
+
detach(div);
|
| 499 |
+
}
|
| 500 |
+
}
|
| 501 |
+
};
|
| 502 |
+
}
|
| 503 |
+
function create_fragment(ctx) {
|
| 504 |
+
let if_block_anchor;
|
| 505 |
+
let if_block = (
|
| 506 |
+
/*loaded*/
|
| 507 |
+
ctx[5] && create_if_block(ctx)
|
| 508 |
+
);
|
| 509 |
+
return {
|
| 510 |
+
c() {
|
| 511 |
+
if (if_block)
|
| 512 |
+
if_block.c();
|
| 513 |
+
if_block_anchor = empty();
|
| 514 |
+
},
|
| 515 |
+
l(nodes) {
|
| 516 |
+
if (if_block)
|
| 517 |
+
if_block.l(nodes);
|
| 518 |
+
if_block_anchor = empty();
|
| 519 |
+
},
|
| 520 |
+
m(target, anchor) {
|
| 521 |
+
if (if_block)
|
| 522 |
+
if_block.m(target, anchor);
|
| 523 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 524 |
+
},
|
| 525 |
+
p(ctx2, [dirty]) {
|
| 526 |
+
if (
|
| 527 |
+
/*loaded*/
|
| 528 |
+
ctx2[5]
|
| 529 |
+
)
|
| 530 |
+
if_block.p(ctx2, dirty);
|
| 531 |
+
},
|
| 532 |
+
i: noop,
|
| 533 |
+
o: noop,
|
| 534 |
+
d(detaching) {
|
| 535 |
+
if (detaching) {
|
| 536 |
+
detach(if_block_anchor);
|
| 537 |
+
}
|
| 538 |
+
if (if_block)
|
| 539 |
+
if_block.d(detaching);
|
| 540 |
+
}
|
| 541 |
+
};
|
| 542 |
+
}
|
| 543 |
+
function instance($$self, $$props, $$invalidate) {
|
| 544 |
+
let { value } = $$props;
|
| 545 |
+
let { type } = $$props;
|
| 546 |
+
let { selected = false } = $$props;
|
| 547 |
+
let { index } = $$props;
|
| 548 |
+
let hovered = false;
|
| 549 |
+
let loaded = Array.isArray(value);
|
| 550 |
+
const mouseenter_handler = () => $$invalidate(4, hovered = true);
|
| 551 |
+
const mouseleave_handler = () => $$invalidate(4, hovered = false);
|
| 552 |
+
$$self.$$set = ($$props2) => {
|
| 553 |
+
if ("value" in $$props2)
|
| 554 |
+
$$invalidate(0, value = $$props2.value);
|
| 555 |
+
if ("type" in $$props2)
|
| 556 |
+
$$invalidate(1, type = $$props2.type);
|
| 557 |
+
if ("selected" in $$props2)
|
| 558 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 559 |
+
if ("index" in $$props2)
|
| 560 |
+
$$invalidate(3, index = $$props2.index);
|
| 561 |
+
};
|
| 562 |
+
return [
|
| 563 |
+
value,
|
| 564 |
+
type,
|
| 565 |
+
selected,
|
| 566 |
+
index,
|
| 567 |
+
hovered,
|
| 568 |
+
loaded,
|
| 569 |
+
mouseenter_handler,
|
| 570 |
+
mouseleave_handler
|
| 571 |
+
];
|
| 572 |
+
}
|
| 573 |
+
class Example extends SvelteComponent {
|
| 574 |
+
constructor(options) {
|
| 575 |
+
super();
|
| 576 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2, index: 3 });
|
| 577 |
+
}
|
| 578 |
+
}
|
| 579 |
+
export {
|
| 580 |
+
Example as default
|
| 581 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js.br
ADDED
|
Binary file (2.05 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.LJcGc8OW.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cebc1331202777a6453094d5ac0366c37d7d1f8bace6c0a542a10b5e86b124a
|
| 3 |
+
size 2338
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.TB9p9SUg.js.br
ADDED
|
Binary file (1.76 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.Ydb40JSe.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe39120a51d001b14345c137e3e01184fa5ffc874d72ccb0ae9ef03d6b17bf22
|
| 3 |
+
size 867
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Example.wemIBKRq.js
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, attr, toggle_class, insert_hydration, transition_in, group_outros, transition_out, check_outros, create_component, claim_component, mount_component, destroy_component } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { I as Image } from "./Image.eJ_qOnkr.js";
|
| 4 |
+
/* empty css */
|
| 5 |
+
function create_if_block(ctx) {
|
| 6 |
+
let image;
|
| 7 |
+
let current;
|
| 8 |
+
image = new Image({
|
| 9 |
+
props: { src: (
|
| 10 |
+
/*value*/
|
| 11 |
+
ctx[0].url
|
| 12 |
+
), alt: "" }
|
| 13 |
+
});
|
| 14 |
+
return {
|
| 15 |
+
c() {
|
| 16 |
+
create_component(image.$$.fragment);
|
| 17 |
+
},
|
| 18 |
+
l(nodes) {
|
| 19 |
+
claim_component(image.$$.fragment, nodes);
|
| 20 |
+
},
|
| 21 |
+
m(target, anchor) {
|
| 22 |
+
mount_component(image, target, anchor);
|
| 23 |
+
current = true;
|
| 24 |
+
},
|
| 25 |
+
p(ctx2, dirty) {
|
| 26 |
+
const image_changes = {};
|
| 27 |
+
if (dirty & /*value*/
|
| 28 |
+
1)
|
| 29 |
+
image_changes.src = /*value*/
|
| 30 |
+
ctx2[0].url;
|
| 31 |
+
image.$set(image_changes);
|
| 32 |
+
},
|
| 33 |
+
i(local) {
|
| 34 |
+
if (current)
|
| 35 |
+
return;
|
| 36 |
+
transition_in(image.$$.fragment, local);
|
| 37 |
+
current = true;
|
| 38 |
+
},
|
| 39 |
+
o(local) {
|
| 40 |
+
transition_out(image.$$.fragment, local);
|
| 41 |
+
current = false;
|
| 42 |
+
},
|
| 43 |
+
d(detaching) {
|
| 44 |
+
destroy_component(image, detaching);
|
| 45 |
+
}
|
| 46 |
+
};
|
| 47 |
+
}
|
| 48 |
+
function create_fragment(ctx) {
|
| 49 |
+
let div;
|
| 50 |
+
let current;
|
| 51 |
+
let if_block = (
|
| 52 |
+
/*value*/
|
| 53 |
+
ctx[0] && create_if_block(ctx)
|
| 54 |
+
);
|
| 55 |
+
return {
|
| 56 |
+
c() {
|
| 57 |
+
div = element("div");
|
| 58 |
+
if (if_block)
|
| 59 |
+
if_block.c();
|
| 60 |
+
this.h();
|
| 61 |
+
},
|
| 62 |
+
l(nodes) {
|
| 63 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 64 |
+
var div_nodes = children(div);
|
| 65 |
+
if (if_block)
|
| 66 |
+
if_block.l(div_nodes);
|
| 67 |
+
div_nodes.forEach(detach);
|
| 68 |
+
this.h();
|
| 69 |
+
},
|
| 70 |
+
h() {
|
| 71 |
+
attr(div, "class", "container svelte-a9zvka");
|
| 72 |
+
toggle_class(
|
| 73 |
+
div,
|
| 74 |
+
"table",
|
| 75 |
+
/*type*/
|
| 76 |
+
ctx[1] === "table"
|
| 77 |
+
);
|
| 78 |
+
toggle_class(
|
| 79 |
+
div,
|
| 80 |
+
"gallery",
|
| 81 |
+
/*type*/
|
| 82 |
+
ctx[1] === "gallery"
|
| 83 |
+
);
|
| 84 |
+
toggle_class(
|
| 85 |
+
div,
|
| 86 |
+
"selected",
|
| 87 |
+
/*selected*/
|
| 88 |
+
ctx[2]
|
| 89 |
+
);
|
| 90 |
+
toggle_class(
|
| 91 |
+
div,
|
| 92 |
+
"border",
|
| 93 |
+
/*value*/
|
| 94 |
+
ctx[0]
|
| 95 |
+
);
|
| 96 |
+
},
|
| 97 |
+
m(target, anchor) {
|
| 98 |
+
insert_hydration(target, div, anchor);
|
| 99 |
+
if (if_block)
|
| 100 |
+
if_block.m(div, null);
|
| 101 |
+
current = true;
|
| 102 |
+
},
|
| 103 |
+
p(ctx2, [dirty]) {
|
| 104 |
+
if (
|
| 105 |
+
/*value*/
|
| 106 |
+
ctx2[0]
|
| 107 |
+
) {
|
| 108 |
+
if (if_block) {
|
| 109 |
+
if_block.p(ctx2, dirty);
|
| 110 |
+
if (dirty & /*value*/
|
| 111 |
+
1) {
|
| 112 |
+
transition_in(if_block, 1);
|
| 113 |
+
}
|
| 114 |
+
} else {
|
| 115 |
+
if_block = create_if_block(ctx2);
|
| 116 |
+
if_block.c();
|
| 117 |
+
transition_in(if_block, 1);
|
| 118 |
+
if_block.m(div, null);
|
| 119 |
+
}
|
| 120 |
+
} else if (if_block) {
|
| 121 |
+
group_outros();
|
| 122 |
+
transition_out(if_block, 1, 1, () => {
|
| 123 |
+
if_block = null;
|
| 124 |
+
});
|
| 125 |
+
check_outros();
|
| 126 |
+
}
|
| 127 |
+
if (!current || dirty & /*type*/
|
| 128 |
+
2) {
|
| 129 |
+
toggle_class(
|
| 130 |
+
div,
|
| 131 |
+
"table",
|
| 132 |
+
/*type*/
|
| 133 |
+
ctx2[1] === "table"
|
| 134 |
+
);
|
| 135 |
+
}
|
| 136 |
+
if (!current || dirty & /*type*/
|
| 137 |
+
2) {
|
| 138 |
+
toggle_class(
|
| 139 |
+
div,
|
| 140 |
+
"gallery",
|
| 141 |
+
/*type*/
|
| 142 |
+
ctx2[1] === "gallery"
|
| 143 |
+
);
|
| 144 |
+
}
|
| 145 |
+
if (!current || dirty & /*selected*/
|
| 146 |
+
4) {
|
| 147 |
+
toggle_class(
|
| 148 |
+
div,
|
| 149 |
+
"selected",
|
| 150 |
+
/*selected*/
|
| 151 |
+
ctx2[2]
|
| 152 |
+
);
|
| 153 |
+
}
|
| 154 |
+
if (!current || dirty & /*value*/
|
| 155 |
+
1) {
|
| 156 |
+
toggle_class(
|
| 157 |
+
div,
|
| 158 |
+
"border",
|
| 159 |
+
/*value*/
|
| 160 |
+
ctx2[0]
|
| 161 |
+
);
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
i(local) {
|
| 165 |
+
if (current)
|
| 166 |
+
return;
|
| 167 |
+
transition_in(if_block);
|
| 168 |
+
current = true;
|
| 169 |
+
},
|
| 170 |
+
o(local) {
|
| 171 |
+
transition_out(if_block);
|
| 172 |
+
current = false;
|
| 173 |
+
},
|
| 174 |
+
d(detaching) {
|
| 175 |
+
if (detaching) {
|
| 176 |
+
detach(div);
|
| 177 |
+
}
|
| 178 |
+
if (if_block)
|
| 179 |
+
if_block.d();
|
| 180 |
+
}
|
| 181 |
+
};
|
| 182 |
+
}
|
| 183 |
+
function instance($$self, $$props, $$invalidate) {
|
| 184 |
+
let { value } = $$props;
|
| 185 |
+
let { type } = $$props;
|
| 186 |
+
let { selected = false } = $$props;
|
| 187 |
+
$$self.$$set = ($$props2) => {
|
| 188 |
+
if ("value" in $$props2)
|
| 189 |
+
$$invalidate(0, value = $$props2.value);
|
| 190 |
+
if ("type" in $$props2)
|
| 191 |
+
$$invalidate(1, type = $$props2.type);
|
| 192 |
+
if ("selected" in $$props2)
|
| 193 |
+
$$invalidate(2, selected = $$props2.selected);
|
| 194 |
+
};
|
| 195 |
+
return [value, type, selected];
|
| 196 |
+
}
|
| 197 |
+
class Example extends SvelteComponent {
|
| 198 |
+
constructor(options) {
|
| 199 |
+
super();
|
| 200 |
+
init(this, options, instance, create_fragment, safe_not_equal, { value: 0, type: 1, selected: 2 });
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
export {
|
| 204 |
+
Example as default
|
| 205 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Gallery.HXgWnEV3.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79928e08b0ab7d2e4bbf6b8a078147124c99f1f0273f4ec017c1deb098028358
|
| 3 |
+
size 10165
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/IconButtonWrapper.y99hkeYc.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, create_slot, element, claim_element, children, detach, attr, null_to_empty, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import "./2.BS1fgMUm.js";
|
| 4 |
+
function create_fragment(ctx) {
|
| 5 |
+
let div;
|
| 6 |
+
let div_class_value;
|
| 7 |
+
let current;
|
| 8 |
+
const default_slot_template = (
|
| 9 |
+
/*#slots*/
|
| 10 |
+
ctx[2].default
|
| 11 |
+
);
|
| 12 |
+
const default_slot = create_slot(
|
| 13 |
+
default_slot_template,
|
| 14 |
+
ctx,
|
| 15 |
+
/*$$scope*/
|
| 16 |
+
ctx[1],
|
| 17 |
+
null
|
| 18 |
+
);
|
| 19 |
+
return {
|
| 20 |
+
c() {
|
| 21 |
+
div = element("div");
|
| 22 |
+
if (default_slot)
|
| 23 |
+
default_slot.c();
|
| 24 |
+
this.h();
|
| 25 |
+
},
|
| 26 |
+
l(nodes) {
|
| 27 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 28 |
+
var div_nodes = children(div);
|
| 29 |
+
if (default_slot)
|
| 30 |
+
default_slot.l(div_nodes);
|
| 31 |
+
div_nodes.forEach(detach);
|
| 32 |
+
this.h();
|
| 33 |
+
},
|
| 34 |
+
h() {
|
| 35 |
+
attr(div, "class", div_class_value = null_to_empty(`icon-button-wrapper ${/*top_panel*/
|
| 36 |
+
ctx[0] ? "top-panel" : ""}`) + " svelte-sr71km");
|
| 37 |
+
},
|
| 38 |
+
m(target, anchor) {
|
| 39 |
+
insert_hydration(target, div, anchor);
|
| 40 |
+
if (default_slot) {
|
| 41 |
+
default_slot.m(div, null);
|
| 42 |
+
}
|
| 43 |
+
current = true;
|
| 44 |
+
},
|
| 45 |
+
p(ctx2, [dirty]) {
|
| 46 |
+
if (default_slot) {
|
| 47 |
+
if (default_slot.p && (!current || dirty & /*$$scope*/
|
| 48 |
+
2)) {
|
| 49 |
+
update_slot_base(
|
| 50 |
+
default_slot,
|
| 51 |
+
default_slot_template,
|
| 52 |
+
ctx2,
|
| 53 |
+
/*$$scope*/
|
| 54 |
+
ctx2[1],
|
| 55 |
+
!current ? get_all_dirty_from_scope(
|
| 56 |
+
/*$$scope*/
|
| 57 |
+
ctx2[1]
|
| 58 |
+
) : get_slot_changes(
|
| 59 |
+
default_slot_template,
|
| 60 |
+
/*$$scope*/
|
| 61 |
+
ctx2[1],
|
| 62 |
+
dirty,
|
| 63 |
+
null
|
| 64 |
+
),
|
| 65 |
+
null
|
| 66 |
+
);
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
if (!current || dirty & /*top_panel*/
|
| 70 |
+
1 && div_class_value !== (div_class_value = null_to_empty(`icon-button-wrapper ${/*top_panel*/
|
| 71 |
+
ctx2[0] ? "top-panel" : ""}`) + " svelte-sr71km")) {
|
| 72 |
+
attr(div, "class", div_class_value);
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
i(local) {
|
| 76 |
+
if (current)
|
| 77 |
+
return;
|
| 78 |
+
transition_in(default_slot, local);
|
| 79 |
+
current = true;
|
| 80 |
+
},
|
| 81 |
+
o(local) {
|
| 82 |
+
transition_out(default_slot, local);
|
| 83 |
+
current = false;
|
| 84 |
+
},
|
| 85 |
+
d(detaching) {
|
| 86 |
+
if (detaching) {
|
| 87 |
+
detach(div);
|
| 88 |
+
}
|
| 89 |
+
if (default_slot)
|
| 90 |
+
default_slot.d(detaching);
|
| 91 |
+
}
|
| 92 |
+
};
|
| 93 |
+
}
|
| 94 |
+
function instance($$self, $$props, $$invalidate) {
|
| 95 |
+
let { $$slots: slots = {}, $$scope } = $$props;
|
| 96 |
+
let { top_panel = true } = $$props;
|
| 97 |
+
$$self.$$set = ($$props2) => {
|
| 98 |
+
if ("top_panel" in $$props2)
|
| 99 |
+
$$invalidate(0, top_panel = $$props2.top_panel);
|
| 100 |
+
if ("$$scope" in $$props2)
|
| 101 |
+
$$invalidate(1, $$scope = $$props2.$$scope);
|
| 102 |
+
};
|
| 103 |
+
return [top_panel, $$scope, slots];
|
| 104 |
+
}
|
| 105 |
+
class IconButtonWrapper extends SvelteComponent {
|
| 106 |
+
constructor(options) {
|
| 107 |
+
super();
|
| 108 |
+
init(this, options, instance, create_fragment, safe_not_equal, { top_panel: 0 });
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
export {
|
| 112 |
+
IconButtonWrapper as I
|
| 113 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/IconButtonWrapper.y99hkeYc.js.br
ADDED
|
Binary file (895 Bytes). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ImagePreview.D_hY5OV7.js.br
ADDED
|
Binary file (3.5 kB). View file
|
|
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ImagePreview.D_hY5OV7.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:691424c539ce870eaf0c17ca80440e1ac7c80144fcf44530d22565b76b79b7b6
|
| 3 |
+
size 4037
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.6zWlADsW.js
ADDED
|
@@ -0,0 +1,1718 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, svg_element, claim_svg_element, children, detach, attr, set_style, insert_hydration, append_hydration, noop, element, claim_element, toggle_class, listen, run_all, createEventDispatcher, ensure_array_like, transition_in, group_outros, check_outros, transition_out, destroy_each, create_component, space, text, claim_component, claim_space, claim_text, mount_component, set_data, destroy_component, bubble, src_url_equal, stop_propagation, flush, assign, empty, get_spread_update, get_spread_object, binding_callbacks, bind, add_flush_callback } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { B as Block, S as Static } from "./2.BS1fgMUm.js";
|
| 4 |
+
import { F as File } from "./File.DqOJDDoa.js";
|
| 5 |
+
import { B as BlockLabel } from "./BlockLabel.C_tdkFHA.js";
|
| 6 |
+
function create_fragment$4(ctx) {
|
| 7 |
+
let svg;
|
| 8 |
+
let g;
|
| 9 |
+
let path;
|
| 10 |
+
return {
|
| 11 |
+
c() {
|
| 12 |
+
svg = svg_element("svg");
|
| 13 |
+
g = svg_element("g");
|
| 14 |
+
path = svg_element("path");
|
| 15 |
+
this.h();
|
| 16 |
+
},
|
| 17 |
+
l(nodes) {
|
| 18 |
+
svg = claim_svg_element(nodes, "svg", {
|
| 19 |
+
width: true,
|
| 20 |
+
height: true,
|
| 21 |
+
viewBox: true,
|
| 22 |
+
version: true,
|
| 23 |
+
style: true
|
| 24 |
+
});
|
| 25 |
+
var svg_nodes = children(svg);
|
| 26 |
+
g = claim_svg_element(svg_nodes, "g", { transform: true });
|
| 27 |
+
var g_nodes = children(g);
|
| 28 |
+
path = claim_svg_element(g_nodes, "path", { d: true, style: true });
|
| 29 |
+
children(path).forEach(detach);
|
| 30 |
+
g_nodes.forEach(detach);
|
| 31 |
+
svg_nodes.forEach(detach);
|
| 32 |
+
this.h();
|
| 33 |
+
},
|
| 34 |
+
h() {
|
| 35 |
+
attr(path, "d", "M12.7,24.033C12.256,24.322 11.806,24.339 11.351,24.084C10.896,23.829 10.668,23.434 10.667,22.9L10.667,9.1C10.667,8.567 10.895,8.172 11.351,7.916C11.807,7.66 12.256,7.677 12.7,7.967L23.567,14.867C23.967,15.133 24.167,15.511 24.167,16C24.167,16.489 23.967,16.867 23.567,17.133L12.7,24.033Z");
|
| 36 |
+
set_style(path, "fill", "currentColor");
|
| 37 |
+
set_style(path, "fill-rule", "nonzero");
|
| 38 |
+
attr(g, "transform", "matrix(1,0,0,1,-10.6667,-7.73588)");
|
| 39 |
+
attr(svg, "width", "100%");
|
| 40 |
+
attr(svg, "height", "100%");
|
| 41 |
+
attr(svg, "viewBox", "0 0 14 17");
|
| 42 |
+
attr(svg, "version", "1.1");
|
| 43 |
+
set_style(svg, "fill-rule", "evenodd");
|
| 44 |
+
set_style(svg, "clip-rule", "evenodd");
|
| 45 |
+
set_style(svg, "stroke-linejoin", "round");
|
| 46 |
+
set_style(svg, "stroke-miterlimit", "2");
|
| 47 |
+
},
|
| 48 |
+
m(target, anchor) {
|
| 49 |
+
insert_hydration(target, svg, anchor);
|
| 50 |
+
append_hydration(svg, g);
|
| 51 |
+
append_hydration(g, path);
|
| 52 |
+
},
|
| 53 |
+
p: noop,
|
| 54 |
+
i: noop,
|
| 55 |
+
o: noop,
|
| 56 |
+
d(detaching) {
|
| 57 |
+
if (detaching) {
|
| 58 |
+
detach(svg);
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
};
|
| 62 |
+
}
|
| 63 |
+
class ArrowIcon extends SvelteComponent {
|
| 64 |
+
constructor(options) {
|
| 65 |
+
super();
|
| 66 |
+
init(this, options, null, create_fragment$4, safe_not_equal, {});
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
function create_fragment$3(ctx) {
|
| 70 |
+
let input;
|
| 71 |
+
let mounted;
|
| 72 |
+
let dispose;
|
| 73 |
+
return {
|
| 74 |
+
c() {
|
| 75 |
+
input = element("input");
|
| 76 |
+
this.h();
|
| 77 |
+
},
|
| 78 |
+
l(nodes) {
|
| 79 |
+
input = claim_element(nodes, "INPUT", { type: true, class: true });
|
| 80 |
+
this.h();
|
| 81 |
+
},
|
| 82 |
+
h() {
|
| 83 |
+
attr(input, "type", "checkbox");
|
| 84 |
+
input.disabled = /*disabled*/
|
| 85 |
+
ctx[1];
|
| 86 |
+
attr(input, "class", "svelte-1j130g3");
|
| 87 |
+
toggle_class(
|
| 88 |
+
input,
|
| 89 |
+
"disabled",
|
| 90 |
+
/*disabled*/
|
| 91 |
+
ctx[1] && !/*value*/
|
| 92 |
+
ctx[0]
|
| 93 |
+
);
|
| 94 |
+
},
|
| 95 |
+
m(target, anchor) {
|
| 96 |
+
insert_hydration(target, input, anchor);
|
| 97 |
+
input.checked = /*value*/
|
| 98 |
+
ctx[0];
|
| 99 |
+
if (!mounted) {
|
| 100 |
+
dispose = [
|
| 101 |
+
listen(
|
| 102 |
+
input,
|
| 103 |
+
"change",
|
| 104 |
+
/*input_change_handler*/
|
| 105 |
+
ctx[3]
|
| 106 |
+
),
|
| 107 |
+
listen(
|
| 108 |
+
input,
|
| 109 |
+
"input",
|
| 110 |
+
/*input_handler*/
|
| 111 |
+
ctx[4]
|
| 112 |
+
)
|
| 113 |
+
];
|
| 114 |
+
mounted = true;
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
p(ctx2, [dirty]) {
|
| 118 |
+
if (dirty & /*disabled*/
|
| 119 |
+
2) {
|
| 120 |
+
input.disabled = /*disabled*/
|
| 121 |
+
ctx2[1];
|
| 122 |
+
}
|
| 123 |
+
if (dirty & /*value*/
|
| 124 |
+
1) {
|
| 125 |
+
input.checked = /*value*/
|
| 126 |
+
ctx2[0];
|
| 127 |
+
}
|
| 128 |
+
if (dirty & /*disabled, value*/
|
| 129 |
+
3) {
|
| 130 |
+
toggle_class(
|
| 131 |
+
input,
|
| 132 |
+
"disabled",
|
| 133 |
+
/*disabled*/
|
| 134 |
+
ctx2[1] && !/*value*/
|
| 135 |
+
ctx2[0]
|
| 136 |
+
);
|
| 137 |
+
}
|
| 138 |
+
},
|
| 139 |
+
i: noop,
|
| 140 |
+
o: noop,
|
| 141 |
+
d(detaching) {
|
| 142 |
+
if (detaching) {
|
| 143 |
+
detach(input);
|
| 144 |
+
}
|
| 145 |
+
mounted = false;
|
| 146 |
+
run_all(dispose);
|
| 147 |
+
}
|
| 148 |
+
};
|
| 149 |
+
}
|
| 150 |
+
function instance$3($$self, $$props, $$invalidate) {
|
| 151 |
+
let { value } = $$props;
|
| 152 |
+
let { disabled } = $$props;
|
| 153 |
+
const dispatch = createEventDispatcher();
|
| 154 |
+
function input_change_handler() {
|
| 155 |
+
value = this.checked;
|
| 156 |
+
$$invalidate(0, value);
|
| 157 |
+
}
|
| 158 |
+
const input_handler = () => dispatch("change", !value);
|
| 159 |
+
$$self.$$set = ($$props2) => {
|
| 160 |
+
if ("value" in $$props2)
|
| 161 |
+
$$invalidate(0, value = $$props2.value);
|
| 162 |
+
if ("disabled" in $$props2)
|
| 163 |
+
$$invalidate(1, disabled = $$props2.disabled);
|
| 164 |
+
};
|
| 165 |
+
return [value, disabled, dispatch, input_change_handler, input_handler];
|
| 166 |
+
}
|
| 167 |
+
class Checkbox extends SvelteComponent {
|
| 168 |
+
constructor(options) {
|
| 169 |
+
super();
|
| 170 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { value: 0, disabled: 1 });
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
const FileIcon = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23888888'%20d='M6%202c-1.1%200-1.99.9-1.99%202L4%2020c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8l-6-6H6zm7%207V3.5L18.5%209H13z'/%3e%3c/svg%3e";
|
| 174 |
+
const FolderIcon = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2032%2032'%20version='1.1'%20id='svg7'%20sodipodi:docname='light-folder-new.svg'%20inkscape:version='1.3.2%20(091e20e,%202023-11-25)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3csodipodi:namedview%20id='namedview7'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='7.375'%20inkscape:cx='15.932203'%20inkscape:cy='16'%20inkscape:window-width='1312'%20inkscape:window-height='529'%20inkscape:window-x='0'%20inkscape:window-y='38'%20inkscape:window-maximized='0'%20inkscape:current-layer='svg7'%20/%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath1'%3e%3cpath%20d='m69.63%2012.145h-.052c-22.727-.292-46.47%204.077-46.709%204.122-2.424.451-4.946%202.974-5.397%205.397-.044.237-4.414%2023.983-4.122%2046.71-.292%2022.777%204.078%2046.523%204.122%2046.761.451%202.423%202.974%204.945%205.398%205.398.237.044%2023.982%204.413%2046.709%204.121%2022.779.292%2046.524-4.077%2046.761-4.121%202.423-.452%204.946-2.976%205.398-5.399.044-.236%204.413-23.981%204.121-46.709.292-22.777-4.077-46.523-4.121-46.761-.453-2.423-2.976-4.946-5.398-5.397-.238-.045-23.984-4.414-46.71-4.122'%20id='path1'%20/%3e%3c/clipPath%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='352.98'%20x2='-601.15'%20y1='663.95'%20x1='-591.02'%20id='2'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop1'%20/%3e%3cstop%20offset='1'%20stop-color='%23aaa'%20id='stop2'%20/%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='354.29'%20x2='-704.05'%20y1='647.77'%20x1='-701.19'%20id='1'%3e%3cstop%20stop-color='%23acabab'%20id='stop3'%20/%3e%3cstop%20offset='1'%20stop-color='%23d4d4d4'%20id='stop4'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='0'%20x1='59.12'%20y1='-19.888'%20x2='59.15'%20y2='-37.783'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(4.17478%200%200%204.16765-1069.7%20447.73)'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop5'%20/%3e%3cstop%20offset='1'%20stop-color='%23bdbdbd'%20id='stop6'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20transform='matrix(.07089%200%200%20.07017%2023.295-40.67)'%20fill='%2360aae5'%20id='g7'%20style='fill:%23888888;fill-opacity:1'%3e%3cpath%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20d='m-884.1%20294.78c-4.626%200-8.349%203.718-8.349%208.335v161.41l468.19%201v-121.2c0-4.618-3.724-8.335-8.35-8.335h-272.65c-8.51.751-9.607-.377-13.812-5.981-5.964-7.968-14.969-21.443-20.84-29.21-4.712-6.805-5.477-6.02-13.292-6.02z'%20fill='url(%230)'%20color='%23000'%20id='path6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20y='356.85'%20x='-890.28'%20height='295.13'%20width='463.85'%20fill='url(%231)'%20stroke='url(%231)'%20stroke-width='2.378'%20rx='9.63'%20id='rect6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20width='463.85'%20height='295.13'%20x='-890.28'%20y='356.85'%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20fill='none'%20stroke='url(%232)'%20stroke-linejoin='round'%20stroke-linecap='round'%20stroke-width='5.376'%20rx='9.63'%20id='rect7'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3c/g%3e%3c/svg%3e";
|
| 175 |
+
function get_each_context(ctx, list, i) {
|
| 176 |
+
const child_ctx = ctx.slice();
|
| 177 |
+
child_ctx[21] = list[i].type;
|
| 178 |
+
child_ctx[22] = list[i].name;
|
| 179 |
+
child_ctx[23] = list[i].valid;
|
| 180 |
+
child_ctx[25] = i;
|
| 181 |
+
return child_ctx;
|
| 182 |
+
}
|
| 183 |
+
function create_else_block(ctx) {
|
| 184 |
+
let span;
|
| 185 |
+
let img;
|
| 186 |
+
let img_src_value;
|
| 187 |
+
return {
|
| 188 |
+
c() {
|
| 189 |
+
span = element("span");
|
| 190 |
+
img = element("img");
|
| 191 |
+
this.h();
|
| 192 |
+
},
|
| 193 |
+
l(nodes) {
|
| 194 |
+
span = claim_element(nodes, "SPAN", { class: true });
|
| 195 |
+
var span_nodes = children(span);
|
| 196 |
+
img = claim_element(span_nodes, "IMG", { src: true, alt: true, class: true });
|
| 197 |
+
span_nodes.forEach(detach);
|
| 198 |
+
this.h();
|
| 199 |
+
},
|
| 200 |
+
h() {
|
| 201 |
+
if (!src_url_equal(img.src, img_src_value = /*name*/
|
| 202 |
+
ctx[22] === "." ? FolderIcon : FileIcon))
|
| 203 |
+
attr(img, "src", img_src_value);
|
| 204 |
+
attr(img, "alt", "file icon");
|
| 205 |
+
attr(img, "class", "svelte-hyugph");
|
| 206 |
+
attr(span, "class", "file-icon svelte-hyugph");
|
| 207 |
+
},
|
| 208 |
+
m(target, anchor) {
|
| 209 |
+
insert_hydration(target, span, anchor);
|
| 210 |
+
append_hydration(span, img);
|
| 211 |
+
},
|
| 212 |
+
p(ctx2, dirty) {
|
| 213 |
+
if (dirty & /*content*/
|
| 214 |
+
64 && !src_url_equal(img.src, img_src_value = /*name*/
|
| 215 |
+
ctx2[22] === "." ? FolderIcon : FileIcon)) {
|
| 216 |
+
attr(img, "src", img_src_value);
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
i: noop,
|
| 220 |
+
o: noop,
|
| 221 |
+
d(detaching) {
|
| 222 |
+
if (detaching) {
|
| 223 |
+
detach(span);
|
| 224 |
+
}
|
| 225 |
+
}
|
| 226 |
+
};
|
| 227 |
+
}
|
| 228 |
+
function create_if_block_1(ctx) {
|
| 229 |
+
let span;
|
| 230 |
+
let arrow;
|
| 231 |
+
let current;
|
| 232 |
+
let mounted;
|
| 233 |
+
let dispose;
|
| 234 |
+
arrow = new ArrowIcon({});
|
| 235 |
+
function click_handler() {
|
| 236 |
+
return (
|
| 237 |
+
/*click_handler*/
|
| 238 |
+
ctx[15](
|
| 239 |
+
/*i*/
|
| 240 |
+
ctx[25]
|
| 241 |
+
)
|
| 242 |
+
);
|
| 243 |
+
}
|
| 244 |
+
function keydown_handler(...args) {
|
| 245 |
+
return (
|
| 246 |
+
/*keydown_handler*/
|
| 247 |
+
ctx[16](
|
| 248 |
+
/*i*/
|
| 249 |
+
ctx[25],
|
| 250 |
+
...args
|
| 251 |
+
)
|
| 252 |
+
);
|
| 253 |
+
}
|
| 254 |
+
return {
|
| 255 |
+
c() {
|
| 256 |
+
span = element("span");
|
| 257 |
+
create_component(arrow.$$.fragment);
|
| 258 |
+
this.h();
|
| 259 |
+
},
|
| 260 |
+
l(nodes) {
|
| 261 |
+
span = claim_element(nodes, "SPAN", {
|
| 262 |
+
class: true,
|
| 263 |
+
role: true,
|
| 264 |
+
"aria-label": true,
|
| 265 |
+
tabindex: true
|
| 266 |
+
});
|
| 267 |
+
var span_nodes = children(span);
|
| 268 |
+
claim_component(arrow.$$.fragment, span_nodes);
|
| 269 |
+
span_nodes.forEach(detach);
|
| 270 |
+
this.h();
|
| 271 |
+
},
|
| 272 |
+
h() {
|
| 273 |
+
attr(span, "class", "icon svelte-hyugph");
|
| 274 |
+
attr(span, "role", "button");
|
| 275 |
+
attr(span, "aria-label", "expand directory");
|
| 276 |
+
attr(span, "tabindex", "0");
|
| 277 |
+
toggle_class(span, "hidden", !/*opened_folders*/
|
| 278 |
+
ctx[7].includes(
|
| 279 |
+
/*i*/
|
| 280 |
+
ctx[25]
|
| 281 |
+
));
|
| 282 |
+
},
|
| 283 |
+
m(target, anchor) {
|
| 284 |
+
insert_hydration(target, span, anchor);
|
| 285 |
+
mount_component(arrow, span, null);
|
| 286 |
+
current = true;
|
| 287 |
+
if (!mounted) {
|
| 288 |
+
dispose = [
|
| 289 |
+
listen(span, "click", stop_propagation(click_handler)),
|
| 290 |
+
listen(span, "keydown", keydown_handler)
|
| 291 |
+
];
|
| 292 |
+
mounted = true;
|
| 293 |
+
}
|
| 294 |
+
},
|
| 295 |
+
p(new_ctx, dirty) {
|
| 296 |
+
ctx = new_ctx;
|
| 297 |
+
if (!current || dirty & /*opened_folders*/
|
| 298 |
+
128) {
|
| 299 |
+
toggle_class(span, "hidden", !/*opened_folders*/
|
| 300 |
+
ctx[7].includes(
|
| 301 |
+
/*i*/
|
| 302 |
+
ctx[25]
|
| 303 |
+
));
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
i(local) {
|
| 307 |
+
if (current)
|
| 308 |
+
return;
|
| 309 |
+
transition_in(arrow.$$.fragment, local);
|
| 310 |
+
current = true;
|
| 311 |
+
},
|
| 312 |
+
o(local) {
|
| 313 |
+
transition_out(arrow.$$.fragment, local);
|
| 314 |
+
current = false;
|
| 315 |
+
},
|
| 316 |
+
d(detaching) {
|
| 317 |
+
if (detaching) {
|
| 318 |
+
detach(span);
|
| 319 |
+
}
|
| 320 |
+
destroy_component(arrow);
|
| 321 |
+
mounted = false;
|
| 322 |
+
run_all(dispose);
|
| 323 |
+
}
|
| 324 |
+
};
|
| 325 |
+
}
|
| 326 |
+
function create_if_block(ctx) {
|
| 327 |
+
let filetree;
|
| 328 |
+
let current;
|
| 329 |
+
function func_1(...args) {
|
| 330 |
+
return (
|
| 331 |
+
/*func_1*/
|
| 332 |
+
ctx[17](
|
| 333 |
+
/*name*/
|
| 334 |
+
ctx[22],
|
| 335 |
+
...args
|
| 336 |
+
)
|
| 337 |
+
);
|
| 338 |
+
}
|
| 339 |
+
function func_3(...args) {
|
| 340 |
+
return (
|
| 341 |
+
/*func_3*/
|
| 342 |
+
ctx[18](
|
| 343 |
+
/*name*/
|
| 344 |
+
ctx[22],
|
| 345 |
+
...args
|
| 346 |
+
)
|
| 347 |
+
);
|
| 348 |
+
}
|
| 349 |
+
function func_5(...args) {
|
| 350 |
+
return (
|
| 351 |
+
/*func_5*/
|
| 352 |
+
ctx[19](
|
| 353 |
+
/*name*/
|
| 354 |
+
ctx[22],
|
| 355 |
+
...args
|
| 356 |
+
)
|
| 357 |
+
);
|
| 358 |
+
}
|
| 359 |
+
filetree = new FileTree({
|
| 360 |
+
props: {
|
| 361 |
+
path: [
|
| 362 |
+
.../*path*/
|
| 363 |
+
ctx[0],
|
| 364 |
+
/*name*/
|
| 365 |
+
ctx[22]
|
| 366 |
+
],
|
| 367 |
+
selected_files: (
|
| 368 |
+
/*selected_files*/
|
| 369 |
+
ctx[1].filter(func_1).map(func_2)
|
| 370 |
+
),
|
| 371 |
+
selected_folders: (
|
| 372 |
+
/*selected_folders*/
|
| 373 |
+
ctx[2].filter(func_3).map(func_4)
|
| 374 |
+
),
|
| 375 |
+
is_selected_entirely: (
|
| 376 |
+
/*selected_folders*/
|
| 377 |
+
ctx[2].some(func_5)
|
| 378 |
+
),
|
| 379 |
+
interactive: (
|
| 380 |
+
/*interactive*/
|
| 381 |
+
ctx[3]
|
| 382 |
+
),
|
| 383 |
+
ls_fn: (
|
| 384 |
+
/*ls_fn*/
|
| 385 |
+
ctx[4]
|
| 386 |
+
),
|
| 387 |
+
file_count: (
|
| 388 |
+
/*file_count*/
|
| 389 |
+
ctx[5]
|
| 390 |
+
),
|
| 391 |
+
valid_for_selection: (
|
| 392 |
+
/*valid*/
|
| 393 |
+
ctx[23]
|
| 394 |
+
)
|
| 395 |
+
}
|
| 396 |
+
});
|
| 397 |
+
filetree.$on(
|
| 398 |
+
"check",
|
| 399 |
+
/*check_handler*/
|
| 400 |
+
ctx[20]
|
| 401 |
+
);
|
| 402 |
+
return {
|
| 403 |
+
c() {
|
| 404 |
+
create_component(filetree.$$.fragment);
|
| 405 |
+
},
|
| 406 |
+
l(nodes) {
|
| 407 |
+
claim_component(filetree.$$.fragment, nodes);
|
| 408 |
+
},
|
| 409 |
+
m(target, anchor) {
|
| 410 |
+
mount_component(filetree, target, anchor);
|
| 411 |
+
current = true;
|
| 412 |
+
},
|
| 413 |
+
p(new_ctx, dirty) {
|
| 414 |
+
ctx = new_ctx;
|
| 415 |
+
const filetree_changes = {};
|
| 416 |
+
if (dirty & /*path, content*/
|
| 417 |
+
65)
|
| 418 |
+
filetree_changes.path = [
|
| 419 |
+
.../*path*/
|
| 420 |
+
ctx[0],
|
| 421 |
+
/*name*/
|
| 422 |
+
ctx[22]
|
| 423 |
+
];
|
| 424 |
+
if (dirty & /*selected_files, content*/
|
| 425 |
+
66)
|
| 426 |
+
filetree_changes.selected_files = /*selected_files*/
|
| 427 |
+
ctx[1].filter(func_1).map(func_2);
|
| 428 |
+
if (dirty & /*selected_folders, content*/
|
| 429 |
+
68)
|
| 430 |
+
filetree_changes.selected_folders = /*selected_folders*/
|
| 431 |
+
ctx[2].filter(func_3).map(func_4);
|
| 432 |
+
if (dirty & /*selected_folders, content*/
|
| 433 |
+
68)
|
| 434 |
+
filetree_changes.is_selected_entirely = /*selected_folders*/
|
| 435 |
+
ctx[2].some(func_5);
|
| 436 |
+
if (dirty & /*interactive*/
|
| 437 |
+
8)
|
| 438 |
+
filetree_changes.interactive = /*interactive*/
|
| 439 |
+
ctx[3];
|
| 440 |
+
if (dirty & /*ls_fn*/
|
| 441 |
+
16)
|
| 442 |
+
filetree_changes.ls_fn = /*ls_fn*/
|
| 443 |
+
ctx[4];
|
| 444 |
+
if (dirty & /*file_count*/
|
| 445 |
+
32)
|
| 446 |
+
filetree_changes.file_count = /*file_count*/
|
| 447 |
+
ctx[5];
|
| 448 |
+
if (dirty & /*content*/
|
| 449 |
+
64)
|
| 450 |
+
filetree_changes.valid_for_selection = /*valid*/
|
| 451 |
+
ctx[23];
|
| 452 |
+
filetree.$set(filetree_changes);
|
| 453 |
+
},
|
| 454 |
+
i(local) {
|
| 455 |
+
if (current)
|
| 456 |
+
return;
|
| 457 |
+
transition_in(filetree.$$.fragment, local);
|
| 458 |
+
current = true;
|
| 459 |
+
},
|
| 460 |
+
o(local) {
|
| 461 |
+
transition_out(filetree.$$.fragment, local);
|
| 462 |
+
current = false;
|
| 463 |
+
},
|
| 464 |
+
d(detaching) {
|
| 465 |
+
destroy_component(filetree, detaching);
|
| 466 |
+
}
|
| 467 |
+
};
|
| 468 |
+
}
|
| 469 |
+
function create_each_block(ctx) {
|
| 470 |
+
let li;
|
| 471 |
+
let span;
|
| 472 |
+
let checkbox;
|
| 473 |
+
let t0;
|
| 474 |
+
let current_block_type_index;
|
| 475 |
+
let if_block0;
|
| 476 |
+
let t1;
|
| 477 |
+
let t2_value = (
|
| 478 |
+
/*name*/
|
| 479 |
+
ctx[22] + ""
|
| 480 |
+
);
|
| 481 |
+
let t2;
|
| 482 |
+
let t3;
|
| 483 |
+
let show_if = (
|
| 484 |
+
/*type*/
|
| 485 |
+
ctx[21] === "folder" && /*opened_folders*/
|
| 486 |
+
ctx[7].includes(
|
| 487 |
+
/*i*/
|
| 488 |
+
ctx[25]
|
| 489 |
+
)
|
| 490 |
+
);
|
| 491 |
+
let t4;
|
| 492 |
+
let current;
|
| 493 |
+
function func(...args) {
|
| 494 |
+
return (
|
| 495 |
+
/*func*/
|
| 496 |
+
ctx[13](
|
| 497 |
+
/*name*/
|
| 498 |
+
ctx[22],
|
| 499 |
+
...args
|
| 500 |
+
)
|
| 501 |
+
);
|
| 502 |
+
}
|
| 503 |
+
function change_handler(...args) {
|
| 504 |
+
return (
|
| 505 |
+
/*change_handler*/
|
| 506 |
+
ctx[14](
|
| 507 |
+
/*name*/
|
| 508 |
+
ctx[22],
|
| 509 |
+
/*type*/
|
| 510 |
+
ctx[21],
|
| 511 |
+
/*i*/
|
| 512 |
+
ctx[25],
|
| 513 |
+
...args
|
| 514 |
+
)
|
| 515 |
+
);
|
| 516 |
+
}
|
| 517 |
+
checkbox = new Checkbox({
|
| 518 |
+
props: {
|
| 519 |
+
disabled: !/*interactive*/
|
| 520 |
+
ctx[3] || /*type*/
|
| 521 |
+
ctx[21] === "folder" && /*file_count*/
|
| 522 |
+
ctx[5] === "single",
|
| 523 |
+
value: (
|
| 524 |
+
/*type*/
|
| 525 |
+
(ctx[21] === "file" ? (
|
| 526 |
+
/*selected_files*/
|
| 527 |
+
ctx[1]
|
| 528 |
+
) : (
|
| 529 |
+
/*selected_folders*/
|
| 530 |
+
ctx[2]
|
| 531 |
+
)).some(func)
|
| 532 |
+
)
|
| 533 |
+
}
|
| 534 |
+
});
|
| 535 |
+
checkbox.$on("change", change_handler);
|
| 536 |
+
const if_block_creators = [create_if_block_1, create_else_block];
|
| 537 |
+
const if_blocks = [];
|
| 538 |
+
function select_block_type(ctx2, dirty) {
|
| 539 |
+
if (
|
| 540 |
+
/*type*/
|
| 541 |
+
ctx2[21] === "folder"
|
| 542 |
+
)
|
| 543 |
+
return 0;
|
| 544 |
+
return 1;
|
| 545 |
+
}
|
| 546 |
+
current_block_type_index = select_block_type(ctx);
|
| 547 |
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
| 548 |
+
let if_block1 = show_if && create_if_block(ctx);
|
| 549 |
+
return {
|
| 550 |
+
c() {
|
| 551 |
+
li = element("li");
|
| 552 |
+
span = element("span");
|
| 553 |
+
create_component(checkbox.$$.fragment);
|
| 554 |
+
t0 = space();
|
| 555 |
+
if_block0.c();
|
| 556 |
+
t1 = space();
|
| 557 |
+
t2 = text(t2_value);
|
| 558 |
+
t3 = space();
|
| 559 |
+
if (if_block1)
|
| 560 |
+
if_block1.c();
|
| 561 |
+
t4 = space();
|
| 562 |
+
this.h();
|
| 563 |
+
},
|
| 564 |
+
l(nodes) {
|
| 565 |
+
li = claim_element(nodes, "LI", { class: true });
|
| 566 |
+
var li_nodes = children(li);
|
| 567 |
+
span = claim_element(li_nodes, "SPAN", { class: true });
|
| 568 |
+
var span_nodes = children(span);
|
| 569 |
+
claim_component(checkbox.$$.fragment, span_nodes);
|
| 570 |
+
t0 = claim_space(span_nodes);
|
| 571 |
+
if_block0.l(span_nodes);
|
| 572 |
+
t1 = claim_space(span_nodes);
|
| 573 |
+
t2 = claim_text(span_nodes, t2_value);
|
| 574 |
+
span_nodes.forEach(detach);
|
| 575 |
+
t3 = claim_space(li_nodes);
|
| 576 |
+
if (if_block1)
|
| 577 |
+
if_block1.l(li_nodes);
|
| 578 |
+
t4 = claim_space(li_nodes);
|
| 579 |
+
li_nodes.forEach(detach);
|
| 580 |
+
this.h();
|
| 581 |
+
},
|
| 582 |
+
h() {
|
| 583 |
+
attr(span, "class", "wrap svelte-hyugph");
|
| 584 |
+
attr(li, "class", "svelte-hyugph");
|
| 585 |
+
},
|
| 586 |
+
m(target, anchor) {
|
| 587 |
+
insert_hydration(target, li, anchor);
|
| 588 |
+
append_hydration(li, span);
|
| 589 |
+
mount_component(checkbox, span, null);
|
| 590 |
+
append_hydration(span, t0);
|
| 591 |
+
if_blocks[current_block_type_index].m(span, null);
|
| 592 |
+
append_hydration(span, t1);
|
| 593 |
+
append_hydration(span, t2);
|
| 594 |
+
append_hydration(li, t3);
|
| 595 |
+
if (if_block1)
|
| 596 |
+
if_block1.m(li, null);
|
| 597 |
+
append_hydration(li, t4);
|
| 598 |
+
current = true;
|
| 599 |
+
},
|
| 600 |
+
p(new_ctx, dirty) {
|
| 601 |
+
ctx = new_ctx;
|
| 602 |
+
const checkbox_changes = {};
|
| 603 |
+
if (dirty & /*interactive, content, file_count*/
|
| 604 |
+
104)
|
| 605 |
+
checkbox_changes.disabled = !/*interactive*/
|
| 606 |
+
ctx[3] || /*type*/
|
| 607 |
+
ctx[21] === "folder" && /*file_count*/
|
| 608 |
+
ctx[5] === "single";
|
| 609 |
+
if (dirty & /*content, selected_files, selected_folders*/
|
| 610 |
+
70)
|
| 611 |
+
checkbox_changes.value = /*type*/
|
| 612 |
+
(ctx[21] === "file" ? (
|
| 613 |
+
/*selected_files*/
|
| 614 |
+
ctx[1]
|
| 615 |
+
) : (
|
| 616 |
+
/*selected_folders*/
|
| 617 |
+
ctx[2]
|
| 618 |
+
)).some(func);
|
| 619 |
+
checkbox.$set(checkbox_changes);
|
| 620 |
+
let previous_block_index = current_block_type_index;
|
| 621 |
+
current_block_type_index = select_block_type(ctx);
|
| 622 |
+
if (current_block_type_index === previous_block_index) {
|
| 623 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
| 624 |
+
} else {
|
| 625 |
+
group_outros();
|
| 626 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
| 627 |
+
if_blocks[previous_block_index] = null;
|
| 628 |
+
});
|
| 629 |
+
check_outros();
|
| 630 |
+
if_block0 = if_blocks[current_block_type_index];
|
| 631 |
+
if (!if_block0) {
|
| 632 |
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
| 633 |
+
if_block0.c();
|
| 634 |
+
} else {
|
| 635 |
+
if_block0.p(ctx, dirty);
|
| 636 |
+
}
|
| 637 |
+
transition_in(if_block0, 1);
|
| 638 |
+
if_block0.m(span, t1);
|
| 639 |
+
}
|
| 640 |
+
if ((!current || dirty & /*content*/
|
| 641 |
+
64) && t2_value !== (t2_value = /*name*/
|
| 642 |
+
ctx[22] + ""))
|
| 643 |
+
set_data(t2, t2_value);
|
| 644 |
+
if (dirty & /*content, opened_folders*/
|
| 645 |
+
192)
|
| 646 |
+
show_if = /*type*/
|
| 647 |
+
ctx[21] === "folder" && /*opened_folders*/
|
| 648 |
+
ctx[7].includes(
|
| 649 |
+
/*i*/
|
| 650 |
+
ctx[25]
|
| 651 |
+
);
|
| 652 |
+
if (show_if) {
|
| 653 |
+
if (if_block1) {
|
| 654 |
+
if_block1.p(ctx, dirty);
|
| 655 |
+
if (dirty & /*content, opened_folders*/
|
| 656 |
+
192) {
|
| 657 |
+
transition_in(if_block1, 1);
|
| 658 |
+
}
|
| 659 |
+
} else {
|
| 660 |
+
if_block1 = create_if_block(ctx);
|
| 661 |
+
if_block1.c();
|
| 662 |
+
transition_in(if_block1, 1);
|
| 663 |
+
if_block1.m(li, t4);
|
| 664 |
+
}
|
| 665 |
+
} else if (if_block1) {
|
| 666 |
+
group_outros();
|
| 667 |
+
transition_out(if_block1, 1, 1, () => {
|
| 668 |
+
if_block1 = null;
|
| 669 |
+
});
|
| 670 |
+
check_outros();
|
| 671 |
+
}
|
| 672 |
+
},
|
| 673 |
+
i(local) {
|
| 674 |
+
if (current)
|
| 675 |
+
return;
|
| 676 |
+
transition_in(checkbox.$$.fragment, local);
|
| 677 |
+
transition_in(if_block0);
|
| 678 |
+
transition_in(if_block1);
|
| 679 |
+
current = true;
|
| 680 |
+
},
|
| 681 |
+
o(local) {
|
| 682 |
+
transition_out(checkbox.$$.fragment, local);
|
| 683 |
+
transition_out(if_block0);
|
| 684 |
+
transition_out(if_block1);
|
| 685 |
+
current = false;
|
| 686 |
+
},
|
| 687 |
+
d(detaching) {
|
| 688 |
+
if (detaching) {
|
| 689 |
+
detach(li);
|
| 690 |
+
}
|
| 691 |
+
destroy_component(checkbox);
|
| 692 |
+
if_blocks[current_block_type_index].d();
|
| 693 |
+
if (if_block1)
|
| 694 |
+
if_block1.d();
|
| 695 |
+
}
|
| 696 |
+
};
|
| 697 |
+
}
|
| 698 |
+
function create_fragment$2(ctx) {
|
| 699 |
+
let ul;
|
| 700 |
+
let current;
|
| 701 |
+
let each_value = ensure_array_like(
|
| 702 |
+
/*content*/
|
| 703 |
+
ctx[6]
|
| 704 |
+
);
|
| 705 |
+
let each_blocks = [];
|
| 706 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 707 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
| 708 |
+
}
|
| 709 |
+
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
| 710 |
+
each_blocks[i] = null;
|
| 711 |
+
});
|
| 712 |
+
return {
|
| 713 |
+
c() {
|
| 714 |
+
ul = element("ul");
|
| 715 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 716 |
+
each_blocks[i].c();
|
| 717 |
+
}
|
| 718 |
+
this.h();
|
| 719 |
+
},
|
| 720 |
+
l(nodes) {
|
| 721 |
+
ul = claim_element(nodes, "UL", { class: true });
|
| 722 |
+
var ul_nodes = children(ul);
|
| 723 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 724 |
+
each_blocks[i].l(ul_nodes);
|
| 725 |
+
}
|
| 726 |
+
ul_nodes.forEach(detach);
|
| 727 |
+
this.h();
|
| 728 |
+
},
|
| 729 |
+
h() {
|
| 730 |
+
attr(ul, "class", "svelte-hyugph");
|
| 731 |
+
},
|
| 732 |
+
m(target, anchor) {
|
| 733 |
+
insert_hydration(target, ul, anchor);
|
| 734 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 735 |
+
if (each_blocks[i]) {
|
| 736 |
+
each_blocks[i].m(ul, null);
|
| 737 |
+
}
|
| 738 |
+
}
|
| 739 |
+
current = true;
|
| 740 |
+
},
|
| 741 |
+
p(ctx2, [dirty]) {
|
| 742 |
+
if (dirty & /*path, content, selected_files, selected_folders, interactive, ls_fn, file_count, opened_folders, toggle_open_folder, dispatch, open_folder*/
|
| 743 |
+
2047) {
|
| 744 |
+
each_value = ensure_array_like(
|
| 745 |
+
/*content*/
|
| 746 |
+
ctx2[6]
|
| 747 |
+
);
|
| 748 |
+
let i;
|
| 749 |
+
for (i = 0; i < each_value.length; i += 1) {
|
| 750 |
+
const child_ctx = get_each_context(ctx2, each_value, i);
|
| 751 |
+
if (each_blocks[i]) {
|
| 752 |
+
each_blocks[i].p(child_ctx, dirty);
|
| 753 |
+
transition_in(each_blocks[i], 1);
|
| 754 |
+
} else {
|
| 755 |
+
each_blocks[i] = create_each_block(child_ctx);
|
| 756 |
+
each_blocks[i].c();
|
| 757 |
+
transition_in(each_blocks[i], 1);
|
| 758 |
+
each_blocks[i].m(ul, null);
|
| 759 |
+
}
|
| 760 |
+
}
|
| 761 |
+
group_outros();
|
| 762 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
| 763 |
+
out(i);
|
| 764 |
+
}
|
| 765 |
+
check_outros();
|
| 766 |
+
}
|
| 767 |
+
},
|
| 768 |
+
i(local) {
|
| 769 |
+
if (current)
|
| 770 |
+
return;
|
| 771 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
| 772 |
+
transition_in(each_blocks[i]);
|
| 773 |
+
}
|
| 774 |
+
current = true;
|
| 775 |
+
},
|
| 776 |
+
o(local) {
|
| 777 |
+
each_blocks = each_blocks.filter(Boolean);
|
| 778 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
| 779 |
+
transition_out(each_blocks[i]);
|
| 780 |
+
}
|
| 781 |
+
current = false;
|
| 782 |
+
},
|
| 783 |
+
d(detaching) {
|
| 784 |
+
if (detaching) {
|
| 785 |
+
detach(ul);
|
| 786 |
+
}
|
| 787 |
+
destroy_each(each_blocks, detaching);
|
| 788 |
+
}
|
| 789 |
+
};
|
| 790 |
+
}
|
| 791 |
+
const func_2 = (x) => x.slice(1);
|
| 792 |
+
const func_4 = (x) => x.slice(1);
|
| 793 |
+
function instance$2($$self, $$props, $$invalidate) {
|
| 794 |
+
let { path = [] } = $$props;
|
| 795 |
+
let { selected_files = [] } = $$props;
|
| 796 |
+
let { selected_folders = [] } = $$props;
|
| 797 |
+
let { is_selected_entirely = false } = $$props;
|
| 798 |
+
let { interactive } = $$props;
|
| 799 |
+
let { ls_fn } = $$props;
|
| 800 |
+
let { file_count = "multiple" } = $$props;
|
| 801 |
+
let { valid_for_selection } = $$props;
|
| 802 |
+
let content = [];
|
| 803 |
+
let opened_folders = [];
|
| 804 |
+
const toggle_open_folder = (i) => {
|
| 805 |
+
if (opened_folders.includes(i)) {
|
| 806 |
+
$$invalidate(7, opened_folders = opened_folders.filter((x) => x !== i));
|
| 807 |
+
} else {
|
| 808 |
+
$$invalidate(7, opened_folders = [...opened_folders, i]);
|
| 809 |
+
}
|
| 810 |
+
};
|
| 811 |
+
const open_folder = (i) => {
|
| 812 |
+
if (!opened_folders.includes(i)) {
|
| 813 |
+
$$invalidate(7, opened_folders = [...opened_folders, i]);
|
| 814 |
+
}
|
| 815 |
+
};
|
| 816 |
+
(async () => {
|
| 817 |
+
$$invalidate(6, content = await ls_fn(path));
|
| 818 |
+
if (valid_for_selection) {
|
| 819 |
+
$$invalidate(6, content = [{ name: ".", type: "file" }, ...content]);
|
| 820 |
+
}
|
| 821 |
+
$$invalidate(7, opened_folders = content.map((x, i) => x.type === "folder" && (is_selected_entirely || selected_files.some((y) => y[0] === x.name)) ? i : null).filter((x) => x !== null));
|
| 822 |
+
})();
|
| 823 |
+
const dispatch = createEventDispatcher();
|
| 824 |
+
const func = (name, x) => x[0] === name && x.length === 1;
|
| 825 |
+
const change_handler = (name, type, i, e) => {
|
| 826 |
+
let checked = e.detail;
|
| 827 |
+
dispatch("check", { path: [...path, name], checked, type });
|
| 828 |
+
if (type === "folder" && checked) {
|
| 829 |
+
open_folder(i);
|
| 830 |
+
}
|
| 831 |
+
};
|
| 832 |
+
const click_handler = (i) => toggle_open_folder(i);
|
| 833 |
+
const keydown_handler = (i, { key }) => {
|
| 834 |
+
if (key === " " || key === "Enter") {
|
| 835 |
+
toggle_open_folder(i);
|
| 836 |
+
}
|
| 837 |
+
};
|
| 838 |
+
const func_1 = (name, x) => x[0] === name;
|
| 839 |
+
const func_3 = (name, x) => x[0] === name;
|
| 840 |
+
const func_5 = (name, x) => x[0] === name && x.length === 1;
|
| 841 |
+
function check_handler(event) {
|
| 842 |
+
bubble.call(this, $$self, event);
|
| 843 |
+
}
|
| 844 |
+
$$self.$$set = ($$props2) => {
|
| 845 |
+
if ("path" in $$props2)
|
| 846 |
+
$$invalidate(0, path = $$props2.path);
|
| 847 |
+
if ("selected_files" in $$props2)
|
| 848 |
+
$$invalidate(1, selected_files = $$props2.selected_files);
|
| 849 |
+
if ("selected_folders" in $$props2)
|
| 850 |
+
$$invalidate(2, selected_folders = $$props2.selected_folders);
|
| 851 |
+
if ("is_selected_entirely" in $$props2)
|
| 852 |
+
$$invalidate(11, is_selected_entirely = $$props2.is_selected_entirely);
|
| 853 |
+
if ("interactive" in $$props2)
|
| 854 |
+
$$invalidate(3, interactive = $$props2.interactive);
|
| 855 |
+
if ("ls_fn" in $$props2)
|
| 856 |
+
$$invalidate(4, ls_fn = $$props2.ls_fn);
|
| 857 |
+
if ("file_count" in $$props2)
|
| 858 |
+
$$invalidate(5, file_count = $$props2.file_count);
|
| 859 |
+
if ("valid_for_selection" in $$props2)
|
| 860 |
+
$$invalidate(12, valid_for_selection = $$props2.valid_for_selection);
|
| 861 |
+
};
|
| 862 |
+
$$self.$$.update = () => {
|
| 863 |
+
if ($$self.$$.dirty & /*is_selected_entirely, content, path*/
|
| 864 |
+
2113) {
|
| 865 |
+
if (is_selected_entirely) {
|
| 866 |
+
content.forEach((x) => {
|
| 867 |
+
dispatch("check", {
|
| 868 |
+
path: [...path, x.name],
|
| 869 |
+
checked: true,
|
| 870 |
+
type: x.type
|
| 871 |
+
});
|
| 872 |
+
});
|
| 873 |
+
}
|
| 874 |
+
}
|
| 875 |
+
};
|
| 876 |
+
return [
|
| 877 |
+
path,
|
| 878 |
+
selected_files,
|
| 879 |
+
selected_folders,
|
| 880 |
+
interactive,
|
| 881 |
+
ls_fn,
|
| 882 |
+
file_count,
|
| 883 |
+
content,
|
| 884 |
+
opened_folders,
|
| 885 |
+
toggle_open_folder,
|
| 886 |
+
open_folder,
|
| 887 |
+
dispatch,
|
| 888 |
+
is_selected_entirely,
|
| 889 |
+
valid_for_selection,
|
| 890 |
+
func,
|
| 891 |
+
change_handler,
|
| 892 |
+
click_handler,
|
| 893 |
+
keydown_handler,
|
| 894 |
+
func_1,
|
| 895 |
+
func_3,
|
| 896 |
+
func_5,
|
| 897 |
+
check_handler
|
| 898 |
+
];
|
| 899 |
+
}
|
| 900 |
+
class FileTree extends SvelteComponent {
|
| 901 |
+
constructor(options) {
|
| 902 |
+
super();
|
| 903 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, {
|
| 904 |
+
path: 0,
|
| 905 |
+
selected_files: 1,
|
| 906 |
+
selected_folders: 2,
|
| 907 |
+
is_selected_entirely: 11,
|
| 908 |
+
interactive: 3,
|
| 909 |
+
ls_fn: 4,
|
| 910 |
+
file_count: 5,
|
| 911 |
+
valid_for_selection: 12
|
| 912 |
+
});
|
| 913 |
+
}
|
| 914 |
+
}
|
| 915 |
+
function create_fragment$1(ctx) {
|
| 916 |
+
let div;
|
| 917 |
+
let filetree;
|
| 918 |
+
let current;
|
| 919 |
+
filetree = new FileTree({
|
| 920 |
+
props: {
|
| 921 |
+
path: [],
|
| 922 |
+
selected_files: (
|
| 923 |
+
/*value*/
|
| 924 |
+
ctx[0]
|
| 925 |
+
),
|
| 926 |
+
selected_folders: (
|
| 927 |
+
/*selected_folders*/
|
| 928 |
+
ctx[4]
|
| 929 |
+
),
|
| 930 |
+
interactive: (
|
| 931 |
+
/*interactive*/
|
| 932 |
+
ctx[1]
|
| 933 |
+
),
|
| 934 |
+
ls_fn: (
|
| 935 |
+
/*ls_fn*/
|
| 936 |
+
ctx[3]
|
| 937 |
+
),
|
| 938 |
+
file_count: (
|
| 939 |
+
/*file_count*/
|
| 940 |
+
ctx[2]
|
| 941 |
+
),
|
| 942 |
+
valid_for_selection: false
|
| 943 |
+
}
|
| 944 |
+
});
|
| 945 |
+
filetree.$on(
|
| 946 |
+
"check",
|
| 947 |
+
/*check_handler*/
|
| 948 |
+
ctx[8]
|
| 949 |
+
);
|
| 950 |
+
return {
|
| 951 |
+
c() {
|
| 952 |
+
div = element("div");
|
| 953 |
+
create_component(filetree.$$.fragment);
|
| 954 |
+
this.h();
|
| 955 |
+
},
|
| 956 |
+
l(nodes) {
|
| 957 |
+
div = claim_element(nodes, "DIV", { class: true });
|
| 958 |
+
var div_nodes = children(div);
|
| 959 |
+
claim_component(filetree.$$.fragment, div_nodes);
|
| 960 |
+
div_nodes.forEach(detach);
|
| 961 |
+
this.h();
|
| 962 |
+
},
|
| 963 |
+
h() {
|
| 964 |
+
attr(div, "class", "file-wrap svelte-dicskc");
|
| 965 |
+
},
|
| 966 |
+
m(target, anchor) {
|
| 967 |
+
insert_hydration(target, div, anchor);
|
| 968 |
+
mount_component(filetree, div, null);
|
| 969 |
+
current = true;
|
| 970 |
+
},
|
| 971 |
+
p(ctx2, [dirty]) {
|
| 972 |
+
const filetree_changes = {};
|
| 973 |
+
if (dirty & /*value*/
|
| 974 |
+
1)
|
| 975 |
+
filetree_changes.selected_files = /*value*/
|
| 976 |
+
ctx2[0];
|
| 977 |
+
if (dirty & /*selected_folders*/
|
| 978 |
+
16)
|
| 979 |
+
filetree_changes.selected_folders = /*selected_folders*/
|
| 980 |
+
ctx2[4];
|
| 981 |
+
if (dirty & /*interactive*/
|
| 982 |
+
2)
|
| 983 |
+
filetree_changes.interactive = /*interactive*/
|
| 984 |
+
ctx2[1];
|
| 985 |
+
if (dirty & /*ls_fn*/
|
| 986 |
+
8)
|
| 987 |
+
filetree_changes.ls_fn = /*ls_fn*/
|
| 988 |
+
ctx2[3];
|
| 989 |
+
if (dirty & /*file_count*/
|
| 990 |
+
4)
|
| 991 |
+
filetree_changes.file_count = /*file_count*/
|
| 992 |
+
ctx2[2];
|
| 993 |
+
filetree.$set(filetree_changes);
|
| 994 |
+
},
|
| 995 |
+
i(local) {
|
| 996 |
+
if (current)
|
| 997 |
+
return;
|
| 998 |
+
transition_in(filetree.$$.fragment, local);
|
| 999 |
+
current = true;
|
| 1000 |
+
},
|
| 1001 |
+
o(local) {
|
| 1002 |
+
transition_out(filetree.$$.fragment, local);
|
| 1003 |
+
current = false;
|
| 1004 |
+
},
|
| 1005 |
+
d(detaching) {
|
| 1006 |
+
if (detaching) {
|
| 1007 |
+
detach(div);
|
| 1008 |
+
}
|
| 1009 |
+
destroy_component(filetree);
|
| 1010 |
+
}
|
| 1011 |
+
};
|
| 1012 |
+
}
|
| 1013 |
+
function instance$1($$self, $$props, $$invalidate) {
|
| 1014 |
+
let { interactive } = $$props;
|
| 1015 |
+
let { file_count = "multiple" } = $$props;
|
| 1016 |
+
let { value = [] } = $$props;
|
| 1017 |
+
let { ls_fn } = $$props;
|
| 1018 |
+
let selected_folders = [];
|
| 1019 |
+
const paths_equal = (path, path_2) => {
|
| 1020 |
+
return path.join("/") === path_2.join("/");
|
| 1021 |
+
};
|
| 1022 |
+
const path_in_set = (path, set) => {
|
| 1023 |
+
return set.some((x) => paths_equal(x, path));
|
| 1024 |
+
};
|
| 1025 |
+
const path_inside = (path, path_2) => {
|
| 1026 |
+
return path.join("/").startsWith(path_2.join("/"));
|
| 1027 |
+
};
|
| 1028 |
+
const check_handler = (e) => {
|
| 1029 |
+
const { path, checked, type } = e.detail;
|
| 1030 |
+
if (checked) {
|
| 1031 |
+
if (file_count === "single") {
|
| 1032 |
+
$$invalidate(0, value = [path]);
|
| 1033 |
+
} else if (type === "folder") {
|
| 1034 |
+
if (!path_in_set(path, selected_folders)) {
|
| 1035 |
+
$$invalidate(4, selected_folders = [...selected_folders, path]);
|
| 1036 |
+
}
|
| 1037 |
+
} else {
|
| 1038 |
+
if (!path_in_set(path, value)) {
|
| 1039 |
+
$$invalidate(0, value = [...value, path]);
|
| 1040 |
+
}
|
| 1041 |
+
}
|
| 1042 |
+
} else {
|
| 1043 |
+
$$invalidate(4, selected_folders = selected_folders.filter((folder) => !path_inside(path, folder)));
|
| 1044 |
+
if (type === "folder") {
|
| 1045 |
+
$$invalidate(4, selected_folders = selected_folders.filter((folder) => !path_inside(folder, path)));
|
| 1046 |
+
$$invalidate(0, value = value.filter((file) => !path_inside(file, path)));
|
| 1047 |
+
} else {
|
| 1048 |
+
$$invalidate(0, value = value.filter((x) => !paths_equal(x, path)));
|
| 1049 |
+
}
|
| 1050 |
+
}
|
| 1051 |
+
};
|
| 1052 |
+
$$self.$$set = ($$props2) => {
|
| 1053 |
+
if ("interactive" in $$props2)
|
| 1054 |
+
$$invalidate(1, interactive = $$props2.interactive);
|
| 1055 |
+
if ("file_count" in $$props2)
|
| 1056 |
+
$$invalidate(2, file_count = $$props2.file_count);
|
| 1057 |
+
if ("value" in $$props2)
|
| 1058 |
+
$$invalidate(0, value = $$props2.value);
|
| 1059 |
+
if ("ls_fn" in $$props2)
|
| 1060 |
+
$$invalidate(3, ls_fn = $$props2.ls_fn);
|
| 1061 |
+
};
|
| 1062 |
+
return [
|
| 1063 |
+
value,
|
| 1064 |
+
interactive,
|
| 1065 |
+
file_count,
|
| 1066 |
+
ls_fn,
|
| 1067 |
+
selected_folders,
|
| 1068 |
+
paths_equal,
|
| 1069 |
+
path_in_set,
|
| 1070 |
+
path_inside,
|
| 1071 |
+
check_handler
|
| 1072 |
+
];
|
| 1073 |
+
}
|
| 1074 |
+
class DirectoryExplorer extends SvelteComponent {
|
| 1075 |
+
constructor(options) {
|
| 1076 |
+
super();
|
| 1077 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, {
|
| 1078 |
+
interactive: 1,
|
| 1079 |
+
file_count: 2,
|
| 1080 |
+
value: 0,
|
| 1081 |
+
ls_fn: 3
|
| 1082 |
+
});
|
| 1083 |
+
}
|
| 1084 |
+
}
|
| 1085 |
+
function create_key_block(ctx) {
|
| 1086 |
+
let directoryexplorer;
|
| 1087 |
+
let updating_value;
|
| 1088 |
+
let current;
|
| 1089 |
+
function directoryexplorer_value_binding(value) {
|
| 1090 |
+
ctx[23](value);
|
| 1091 |
+
}
|
| 1092 |
+
let directoryexplorer_props = {
|
| 1093 |
+
file_count: (
|
| 1094 |
+
/*file_count*/
|
| 1095 |
+
ctx[9]
|
| 1096 |
+
),
|
| 1097 |
+
interactive: (
|
| 1098 |
+
/*interactive*/
|
| 1099 |
+
ctx[16]
|
| 1100 |
+
),
|
| 1101 |
+
ls_fn: (
|
| 1102 |
+
/*server*/
|
| 1103 |
+
ctx[15].ls
|
| 1104 |
+
)
|
| 1105 |
+
};
|
| 1106 |
+
if (
|
| 1107 |
+
/*value*/
|
| 1108 |
+
ctx[0] !== void 0
|
| 1109 |
+
) {
|
| 1110 |
+
directoryexplorer_props.value = /*value*/
|
| 1111 |
+
ctx[0];
|
| 1112 |
+
}
|
| 1113 |
+
directoryexplorer = new DirectoryExplorer({ props: directoryexplorer_props });
|
| 1114 |
+
binding_callbacks.push(() => bind(directoryexplorer, "value", directoryexplorer_value_binding));
|
| 1115 |
+
return {
|
| 1116 |
+
c() {
|
| 1117 |
+
create_component(directoryexplorer.$$.fragment);
|
| 1118 |
+
},
|
| 1119 |
+
l(nodes) {
|
| 1120 |
+
claim_component(directoryexplorer.$$.fragment, nodes);
|
| 1121 |
+
},
|
| 1122 |
+
m(target, anchor) {
|
| 1123 |
+
mount_component(directoryexplorer, target, anchor);
|
| 1124 |
+
current = true;
|
| 1125 |
+
},
|
| 1126 |
+
p(ctx2, dirty) {
|
| 1127 |
+
const directoryexplorer_changes = {};
|
| 1128 |
+
if (dirty & /*file_count*/
|
| 1129 |
+
512)
|
| 1130 |
+
directoryexplorer_changes.file_count = /*file_count*/
|
| 1131 |
+
ctx2[9];
|
| 1132 |
+
if (dirty & /*interactive*/
|
| 1133 |
+
65536)
|
| 1134 |
+
directoryexplorer_changes.interactive = /*interactive*/
|
| 1135 |
+
ctx2[16];
|
| 1136 |
+
if (dirty & /*server*/
|
| 1137 |
+
32768)
|
| 1138 |
+
directoryexplorer_changes.ls_fn = /*server*/
|
| 1139 |
+
ctx2[15].ls;
|
| 1140 |
+
if (!updating_value && dirty & /*value*/
|
| 1141 |
+
1) {
|
| 1142 |
+
updating_value = true;
|
| 1143 |
+
directoryexplorer_changes.value = /*value*/
|
| 1144 |
+
ctx2[0];
|
| 1145 |
+
add_flush_callback(() => updating_value = false);
|
| 1146 |
+
}
|
| 1147 |
+
directoryexplorer.$set(directoryexplorer_changes);
|
| 1148 |
+
},
|
| 1149 |
+
i(local) {
|
| 1150 |
+
if (current)
|
| 1151 |
+
return;
|
| 1152 |
+
transition_in(directoryexplorer.$$.fragment, local);
|
| 1153 |
+
current = true;
|
| 1154 |
+
},
|
| 1155 |
+
o(local) {
|
| 1156 |
+
transition_out(directoryexplorer.$$.fragment, local);
|
| 1157 |
+
current = false;
|
| 1158 |
+
},
|
| 1159 |
+
d(detaching) {
|
| 1160 |
+
destroy_component(directoryexplorer, detaching);
|
| 1161 |
+
}
|
| 1162 |
+
};
|
| 1163 |
+
}
|
| 1164 |
+
function create_default_slot(ctx) {
|
| 1165 |
+
let statustracker;
|
| 1166 |
+
let t0;
|
| 1167 |
+
let blocklabel;
|
| 1168 |
+
let t1;
|
| 1169 |
+
let previous_key = (
|
| 1170 |
+
/*rerender_key*/
|
| 1171 |
+
ctx[17]
|
| 1172 |
+
);
|
| 1173 |
+
let key_block_anchor;
|
| 1174 |
+
let current;
|
| 1175 |
+
const statustracker_spread_levels = [
|
| 1176 |
+
/*loading_status*/
|
| 1177 |
+
ctx[10],
|
| 1178 |
+
{
|
| 1179 |
+
autoscroll: (
|
| 1180 |
+
/*gradio*/
|
| 1181 |
+
ctx[14].autoscroll
|
| 1182 |
+
)
|
| 1183 |
+
},
|
| 1184 |
+
{ i18n: (
|
| 1185 |
+
/*gradio*/
|
| 1186 |
+
ctx[14].i18n
|
| 1187 |
+
) }
|
| 1188 |
+
];
|
| 1189 |
+
let statustracker_props = {};
|
| 1190 |
+
for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
|
| 1191 |
+
statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
|
| 1192 |
+
}
|
| 1193 |
+
statustracker = new Static({ props: statustracker_props });
|
| 1194 |
+
statustracker.$on(
|
| 1195 |
+
"clear_status",
|
| 1196 |
+
/*clear_status_handler*/
|
| 1197 |
+
ctx[22]
|
| 1198 |
+
);
|
| 1199 |
+
blocklabel = new BlockLabel({
|
| 1200 |
+
props: {
|
| 1201 |
+
show_label: (
|
| 1202 |
+
/*show_label*/
|
| 1203 |
+
ctx[5]
|
| 1204 |
+
),
|
| 1205 |
+
Icon: File,
|
| 1206 |
+
label: (
|
| 1207 |
+
/*label*/
|
| 1208 |
+
ctx[4] || "FileExplorer"
|
| 1209 |
+
),
|
| 1210 |
+
float: false
|
| 1211 |
+
}
|
| 1212 |
+
});
|
| 1213 |
+
let key_block = create_key_block(ctx);
|
| 1214 |
+
return {
|
| 1215 |
+
c() {
|
| 1216 |
+
create_component(statustracker.$$.fragment);
|
| 1217 |
+
t0 = space();
|
| 1218 |
+
create_component(blocklabel.$$.fragment);
|
| 1219 |
+
t1 = space();
|
| 1220 |
+
key_block.c();
|
| 1221 |
+
key_block_anchor = empty();
|
| 1222 |
+
},
|
| 1223 |
+
l(nodes) {
|
| 1224 |
+
claim_component(statustracker.$$.fragment, nodes);
|
| 1225 |
+
t0 = claim_space(nodes);
|
| 1226 |
+
claim_component(blocklabel.$$.fragment, nodes);
|
| 1227 |
+
t1 = claim_space(nodes);
|
| 1228 |
+
key_block.l(nodes);
|
| 1229 |
+
key_block_anchor = empty();
|
| 1230 |
+
},
|
| 1231 |
+
m(target, anchor) {
|
| 1232 |
+
mount_component(statustracker, target, anchor);
|
| 1233 |
+
insert_hydration(target, t0, anchor);
|
| 1234 |
+
mount_component(blocklabel, target, anchor);
|
| 1235 |
+
insert_hydration(target, t1, anchor);
|
| 1236 |
+
key_block.m(target, anchor);
|
| 1237 |
+
insert_hydration(target, key_block_anchor, anchor);
|
| 1238 |
+
current = true;
|
| 1239 |
+
},
|
| 1240 |
+
p(ctx2, dirty) {
|
| 1241 |
+
const statustracker_changes = dirty & /*loading_status, gradio*/
|
| 1242 |
+
17408 ? get_spread_update(statustracker_spread_levels, [
|
| 1243 |
+
dirty & /*loading_status*/
|
| 1244 |
+
1024 && get_spread_object(
|
| 1245 |
+
/*loading_status*/
|
| 1246 |
+
ctx2[10]
|
| 1247 |
+
),
|
| 1248 |
+
dirty & /*gradio*/
|
| 1249 |
+
16384 && {
|
| 1250 |
+
autoscroll: (
|
| 1251 |
+
/*gradio*/
|
| 1252 |
+
ctx2[14].autoscroll
|
| 1253 |
+
)
|
| 1254 |
+
},
|
| 1255 |
+
dirty & /*gradio*/
|
| 1256 |
+
16384 && { i18n: (
|
| 1257 |
+
/*gradio*/
|
| 1258 |
+
ctx2[14].i18n
|
| 1259 |
+
) }
|
| 1260 |
+
]) : {};
|
| 1261 |
+
statustracker.$set(statustracker_changes);
|
| 1262 |
+
const blocklabel_changes = {};
|
| 1263 |
+
if (dirty & /*show_label*/
|
| 1264 |
+
32)
|
| 1265 |
+
blocklabel_changes.show_label = /*show_label*/
|
| 1266 |
+
ctx2[5];
|
| 1267 |
+
if (dirty & /*label*/
|
| 1268 |
+
16)
|
| 1269 |
+
blocklabel_changes.label = /*label*/
|
| 1270 |
+
ctx2[4] || "FileExplorer";
|
| 1271 |
+
blocklabel.$set(blocklabel_changes);
|
| 1272 |
+
if (dirty & /*rerender_key*/
|
| 1273 |
+
131072 && safe_not_equal(previous_key, previous_key = /*rerender_key*/
|
| 1274 |
+
ctx2[17])) {
|
| 1275 |
+
group_outros();
|
| 1276 |
+
transition_out(key_block, 1, 1, noop);
|
| 1277 |
+
check_outros();
|
| 1278 |
+
key_block = create_key_block(ctx2);
|
| 1279 |
+
key_block.c();
|
| 1280 |
+
transition_in(key_block, 1);
|
| 1281 |
+
key_block.m(key_block_anchor.parentNode, key_block_anchor);
|
| 1282 |
+
} else {
|
| 1283 |
+
key_block.p(ctx2, dirty);
|
| 1284 |
+
}
|
| 1285 |
+
},
|
| 1286 |
+
i(local) {
|
| 1287 |
+
if (current)
|
| 1288 |
+
return;
|
| 1289 |
+
transition_in(statustracker.$$.fragment, local);
|
| 1290 |
+
transition_in(blocklabel.$$.fragment, local);
|
| 1291 |
+
transition_in(key_block);
|
| 1292 |
+
current = true;
|
| 1293 |
+
},
|
| 1294 |
+
o(local) {
|
| 1295 |
+
transition_out(statustracker.$$.fragment, local);
|
| 1296 |
+
transition_out(blocklabel.$$.fragment, local);
|
| 1297 |
+
transition_out(key_block);
|
| 1298 |
+
current = false;
|
| 1299 |
+
},
|
| 1300 |
+
d(detaching) {
|
| 1301 |
+
if (detaching) {
|
| 1302 |
+
detach(t0);
|
| 1303 |
+
detach(t1);
|
| 1304 |
+
detach(key_block_anchor);
|
| 1305 |
+
}
|
| 1306 |
+
destroy_component(statustracker, detaching);
|
| 1307 |
+
destroy_component(blocklabel, detaching);
|
| 1308 |
+
key_block.d(detaching);
|
| 1309 |
+
}
|
| 1310 |
+
};
|
| 1311 |
+
}
|
| 1312 |
+
function create_fragment(ctx) {
|
| 1313 |
+
let block;
|
| 1314 |
+
let current;
|
| 1315 |
+
block = new Block({
|
| 1316 |
+
props: {
|
| 1317 |
+
visible: (
|
| 1318 |
+
/*visible*/
|
| 1319 |
+
ctx[3]
|
| 1320 |
+
),
|
| 1321 |
+
variant: (
|
| 1322 |
+
/*value*/
|
| 1323 |
+
ctx[0] === null ? "dashed" : "solid"
|
| 1324 |
+
),
|
| 1325 |
+
border_mode: "base",
|
| 1326 |
+
padding: false,
|
| 1327 |
+
elem_id: (
|
| 1328 |
+
/*elem_id*/
|
| 1329 |
+
ctx[1]
|
| 1330 |
+
),
|
| 1331 |
+
elem_classes: (
|
| 1332 |
+
/*elem_classes*/
|
| 1333 |
+
ctx[2]
|
| 1334 |
+
),
|
| 1335 |
+
container: (
|
| 1336 |
+
/*container*/
|
| 1337 |
+
ctx[11]
|
| 1338 |
+
),
|
| 1339 |
+
scale: (
|
| 1340 |
+
/*scale*/
|
| 1341 |
+
ctx[12]
|
| 1342 |
+
),
|
| 1343 |
+
min_width: (
|
| 1344 |
+
/*min_width*/
|
| 1345 |
+
ctx[13]
|
| 1346 |
+
),
|
| 1347 |
+
allow_overflow: true,
|
| 1348 |
+
overflow_behavior: "auto",
|
| 1349 |
+
height: (
|
| 1350 |
+
/*height*/
|
| 1351 |
+
ctx[6]
|
| 1352 |
+
),
|
| 1353 |
+
max_height: (
|
| 1354 |
+
/*max_height*/
|
| 1355 |
+
ctx[8]
|
| 1356 |
+
),
|
| 1357 |
+
min_height: (
|
| 1358 |
+
/*min_height*/
|
| 1359 |
+
ctx[7]
|
| 1360 |
+
),
|
| 1361 |
+
$$slots: { default: [create_default_slot] },
|
| 1362 |
+
$$scope: { ctx }
|
| 1363 |
+
}
|
| 1364 |
+
});
|
| 1365 |
+
return {
|
| 1366 |
+
c() {
|
| 1367 |
+
create_component(block.$$.fragment);
|
| 1368 |
+
},
|
| 1369 |
+
l(nodes) {
|
| 1370 |
+
claim_component(block.$$.fragment, nodes);
|
| 1371 |
+
},
|
| 1372 |
+
m(target, anchor) {
|
| 1373 |
+
mount_component(block, target, anchor);
|
| 1374 |
+
current = true;
|
| 1375 |
+
},
|
| 1376 |
+
p(ctx2, [dirty]) {
|
| 1377 |
+
const block_changes = {};
|
| 1378 |
+
if (dirty & /*visible*/
|
| 1379 |
+
8)
|
| 1380 |
+
block_changes.visible = /*visible*/
|
| 1381 |
+
ctx2[3];
|
| 1382 |
+
if (dirty & /*value*/
|
| 1383 |
+
1)
|
| 1384 |
+
block_changes.variant = /*value*/
|
| 1385 |
+
ctx2[0] === null ? "dashed" : "solid";
|
| 1386 |
+
if (dirty & /*elem_id*/
|
| 1387 |
+
2)
|
| 1388 |
+
block_changes.elem_id = /*elem_id*/
|
| 1389 |
+
ctx2[1];
|
| 1390 |
+
if (dirty & /*elem_classes*/
|
| 1391 |
+
4)
|
| 1392 |
+
block_changes.elem_classes = /*elem_classes*/
|
| 1393 |
+
ctx2[2];
|
| 1394 |
+
if (dirty & /*container*/
|
| 1395 |
+
2048)
|
| 1396 |
+
block_changes.container = /*container*/
|
| 1397 |
+
ctx2[11];
|
| 1398 |
+
if (dirty & /*scale*/
|
| 1399 |
+
4096)
|
| 1400 |
+
block_changes.scale = /*scale*/
|
| 1401 |
+
ctx2[12];
|
| 1402 |
+
if (dirty & /*min_width*/
|
| 1403 |
+
8192)
|
| 1404 |
+
block_changes.min_width = /*min_width*/
|
| 1405 |
+
ctx2[13];
|
| 1406 |
+
if (dirty & /*height*/
|
| 1407 |
+
64)
|
| 1408 |
+
block_changes.height = /*height*/
|
| 1409 |
+
ctx2[6];
|
| 1410 |
+
if (dirty & /*max_height*/
|
| 1411 |
+
256)
|
| 1412 |
+
block_changes.max_height = /*max_height*/
|
| 1413 |
+
ctx2[8];
|
| 1414 |
+
if (dirty & /*min_height*/
|
| 1415 |
+
128)
|
| 1416 |
+
block_changes.min_height = /*min_height*/
|
| 1417 |
+
ctx2[7];
|
| 1418 |
+
if (dirty & /*$$scope, rerender_key, file_count, interactive, server, value, show_label, label, loading_status, gradio*/
|
| 1419 |
+
17024561) {
|
| 1420 |
+
block_changes.$$scope = { dirty, ctx: ctx2 };
|
| 1421 |
+
}
|
| 1422 |
+
block.$set(block_changes);
|
| 1423 |
+
},
|
| 1424 |
+
i(local) {
|
| 1425 |
+
if (current)
|
| 1426 |
+
return;
|
| 1427 |
+
transition_in(block.$$.fragment, local);
|
| 1428 |
+
current = true;
|
| 1429 |
+
},
|
| 1430 |
+
o(local) {
|
| 1431 |
+
transition_out(block.$$.fragment, local);
|
| 1432 |
+
current = false;
|
| 1433 |
+
},
|
| 1434 |
+
d(detaching) {
|
| 1435 |
+
destroy_component(block, detaching);
|
| 1436 |
+
}
|
| 1437 |
+
};
|
| 1438 |
+
}
|
| 1439 |
+
function instance($$self, $$props, $$invalidate) {
|
| 1440 |
+
let rerender_key;
|
| 1441 |
+
let { elem_id = "" } = $$props;
|
| 1442 |
+
let { elem_classes = [] } = $$props;
|
| 1443 |
+
let { visible = true } = $$props;
|
| 1444 |
+
let { value } = $$props;
|
| 1445 |
+
let old_value;
|
| 1446 |
+
let { label } = $$props;
|
| 1447 |
+
let { show_label } = $$props;
|
| 1448 |
+
let { height } = $$props;
|
| 1449 |
+
let { min_height } = $$props;
|
| 1450 |
+
let { max_height } = $$props;
|
| 1451 |
+
let { file_count = "multiple" } = $$props;
|
| 1452 |
+
let { root_dir } = $$props;
|
| 1453 |
+
let { glob } = $$props;
|
| 1454 |
+
let { ignore_glob } = $$props;
|
| 1455 |
+
let { loading_status } = $$props;
|
| 1456 |
+
let { container = true } = $$props;
|
| 1457 |
+
let { scale = null } = $$props;
|
| 1458 |
+
let { min_width = void 0 } = $$props;
|
| 1459 |
+
let { gradio } = $$props;
|
| 1460 |
+
let { server } = $$props;
|
| 1461 |
+
let { interactive } = $$props;
|
| 1462 |
+
const clear_status_handler = () => gradio.dispatch("clear_status", loading_status);
|
| 1463 |
+
function directoryexplorer_value_binding(value$1) {
|
| 1464 |
+
value = value$1;
|
| 1465 |
+
$$invalidate(0, value);
|
| 1466 |
+
}
|
| 1467 |
+
$$self.$$set = ($$props2) => {
|
| 1468 |
+
if ("elem_id" in $$props2)
|
| 1469 |
+
$$invalidate(1, elem_id = $$props2.elem_id);
|
| 1470 |
+
if ("elem_classes" in $$props2)
|
| 1471 |
+
$$invalidate(2, elem_classes = $$props2.elem_classes);
|
| 1472 |
+
if ("visible" in $$props2)
|
| 1473 |
+
$$invalidate(3, visible = $$props2.visible);
|
| 1474 |
+
if ("value" in $$props2)
|
| 1475 |
+
$$invalidate(0, value = $$props2.value);
|
| 1476 |
+
if ("label" in $$props2)
|
| 1477 |
+
$$invalidate(4, label = $$props2.label);
|
| 1478 |
+
if ("show_label" in $$props2)
|
| 1479 |
+
$$invalidate(5, show_label = $$props2.show_label);
|
| 1480 |
+
if ("height" in $$props2)
|
| 1481 |
+
$$invalidate(6, height = $$props2.height);
|
| 1482 |
+
if ("min_height" in $$props2)
|
| 1483 |
+
$$invalidate(7, min_height = $$props2.min_height);
|
| 1484 |
+
if ("max_height" in $$props2)
|
| 1485 |
+
$$invalidate(8, max_height = $$props2.max_height);
|
| 1486 |
+
if ("file_count" in $$props2)
|
| 1487 |
+
$$invalidate(9, file_count = $$props2.file_count);
|
| 1488 |
+
if ("root_dir" in $$props2)
|
| 1489 |
+
$$invalidate(18, root_dir = $$props2.root_dir);
|
| 1490 |
+
if ("glob" in $$props2)
|
| 1491 |
+
$$invalidate(19, glob = $$props2.glob);
|
| 1492 |
+
if ("ignore_glob" in $$props2)
|
| 1493 |
+
$$invalidate(20, ignore_glob = $$props2.ignore_glob);
|
| 1494 |
+
if ("loading_status" in $$props2)
|
| 1495 |
+
$$invalidate(10, loading_status = $$props2.loading_status);
|
| 1496 |
+
if ("container" in $$props2)
|
| 1497 |
+
$$invalidate(11, container = $$props2.container);
|
| 1498 |
+
if ("scale" in $$props2)
|
| 1499 |
+
$$invalidate(12, scale = $$props2.scale);
|
| 1500 |
+
if ("min_width" in $$props2)
|
| 1501 |
+
$$invalidate(13, min_width = $$props2.min_width);
|
| 1502 |
+
if ("gradio" in $$props2)
|
| 1503 |
+
$$invalidate(14, gradio = $$props2.gradio);
|
| 1504 |
+
if ("server" in $$props2)
|
| 1505 |
+
$$invalidate(15, server = $$props2.server);
|
| 1506 |
+
if ("interactive" in $$props2)
|
| 1507 |
+
$$invalidate(16, interactive = $$props2.interactive);
|
| 1508 |
+
};
|
| 1509 |
+
$$self.$$.update = () => {
|
| 1510 |
+
if ($$self.$$.dirty & /*root_dir, glob, ignore_glob*/
|
| 1511 |
+
1835008) {
|
| 1512 |
+
$$invalidate(17, rerender_key = [root_dir, glob, ignore_glob]);
|
| 1513 |
+
}
|
| 1514 |
+
if ($$self.$$.dirty & /*value, old_value, gradio*/
|
| 1515 |
+
2113537) {
|
| 1516 |
+
if (JSON.stringify(value) !== JSON.stringify(old_value)) {
|
| 1517 |
+
$$invalidate(21, old_value = value);
|
| 1518 |
+
gradio.dispatch("change");
|
| 1519 |
+
}
|
| 1520 |
+
}
|
| 1521 |
+
};
|
| 1522 |
+
return [
|
| 1523 |
+
value,
|
| 1524 |
+
elem_id,
|
| 1525 |
+
elem_classes,
|
| 1526 |
+
visible,
|
| 1527 |
+
label,
|
| 1528 |
+
show_label,
|
| 1529 |
+
height,
|
| 1530 |
+
min_height,
|
| 1531 |
+
max_height,
|
| 1532 |
+
file_count,
|
| 1533 |
+
loading_status,
|
| 1534 |
+
container,
|
| 1535 |
+
scale,
|
| 1536 |
+
min_width,
|
| 1537 |
+
gradio,
|
| 1538 |
+
server,
|
| 1539 |
+
interactive,
|
| 1540 |
+
rerender_key,
|
| 1541 |
+
root_dir,
|
| 1542 |
+
glob,
|
| 1543 |
+
ignore_glob,
|
| 1544 |
+
old_value,
|
| 1545 |
+
clear_status_handler,
|
| 1546 |
+
directoryexplorer_value_binding
|
| 1547 |
+
];
|
| 1548 |
+
}
|
| 1549 |
+
class Index extends SvelteComponent {
|
| 1550 |
+
constructor(options) {
|
| 1551 |
+
super();
|
| 1552 |
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
| 1553 |
+
elem_id: 1,
|
| 1554 |
+
elem_classes: 2,
|
| 1555 |
+
visible: 3,
|
| 1556 |
+
value: 0,
|
| 1557 |
+
label: 4,
|
| 1558 |
+
show_label: 5,
|
| 1559 |
+
height: 6,
|
| 1560 |
+
min_height: 7,
|
| 1561 |
+
max_height: 8,
|
| 1562 |
+
file_count: 9,
|
| 1563 |
+
root_dir: 18,
|
| 1564 |
+
glob: 19,
|
| 1565 |
+
ignore_glob: 20,
|
| 1566 |
+
loading_status: 10,
|
| 1567 |
+
container: 11,
|
| 1568 |
+
scale: 12,
|
| 1569 |
+
min_width: 13,
|
| 1570 |
+
gradio: 14,
|
| 1571 |
+
server: 15,
|
| 1572 |
+
interactive: 16
|
| 1573 |
+
});
|
| 1574 |
+
}
|
| 1575 |
+
get elem_id() {
|
| 1576 |
+
return this.$$.ctx[1];
|
| 1577 |
+
}
|
| 1578 |
+
set elem_id(elem_id) {
|
| 1579 |
+
this.$$set({ elem_id });
|
| 1580 |
+
flush();
|
| 1581 |
+
}
|
| 1582 |
+
get elem_classes() {
|
| 1583 |
+
return this.$$.ctx[2];
|
| 1584 |
+
}
|
| 1585 |
+
set elem_classes(elem_classes) {
|
| 1586 |
+
this.$$set({ elem_classes });
|
| 1587 |
+
flush();
|
| 1588 |
+
}
|
| 1589 |
+
get visible() {
|
| 1590 |
+
return this.$$.ctx[3];
|
| 1591 |
+
}
|
| 1592 |
+
set visible(visible) {
|
| 1593 |
+
this.$$set({ visible });
|
| 1594 |
+
flush();
|
| 1595 |
+
}
|
| 1596 |
+
get value() {
|
| 1597 |
+
return this.$$.ctx[0];
|
| 1598 |
+
}
|
| 1599 |
+
set value(value) {
|
| 1600 |
+
this.$$set({ value });
|
| 1601 |
+
flush();
|
| 1602 |
+
}
|
| 1603 |
+
get label() {
|
| 1604 |
+
return this.$$.ctx[4];
|
| 1605 |
+
}
|
| 1606 |
+
set label(label) {
|
| 1607 |
+
this.$$set({ label });
|
| 1608 |
+
flush();
|
| 1609 |
+
}
|
| 1610 |
+
get show_label() {
|
| 1611 |
+
return this.$$.ctx[5];
|
| 1612 |
+
}
|
| 1613 |
+
set show_label(show_label) {
|
| 1614 |
+
this.$$set({ show_label });
|
| 1615 |
+
flush();
|
| 1616 |
+
}
|
| 1617 |
+
get height() {
|
| 1618 |
+
return this.$$.ctx[6];
|
| 1619 |
+
}
|
| 1620 |
+
set height(height) {
|
| 1621 |
+
this.$$set({ height });
|
| 1622 |
+
flush();
|
| 1623 |
+
}
|
| 1624 |
+
get min_height() {
|
| 1625 |
+
return this.$$.ctx[7];
|
| 1626 |
+
}
|
| 1627 |
+
set min_height(min_height) {
|
| 1628 |
+
this.$$set({ min_height });
|
| 1629 |
+
flush();
|
| 1630 |
+
}
|
| 1631 |
+
get max_height() {
|
| 1632 |
+
return this.$$.ctx[8];
|
| 1633 |
+
}
|
| 1634 |
+
set max_height(max_height) {
|
| 1635 |
+
this.$$set({ max_height });
|
| 1636 |
+
flush();
|
| 1637 |
+
}
|
| 1638 |
+
get file_count() {
|
| 1639 |
+
return this.$$.ctx[9];
|
| 1640 |
+
}
|
| 1641 |
+
set file_count(file_count) {
|
| 1642 |
+
this.$$set({ file_count });
|
| 1643 |
+
flush();
|
| 1644 |
+
}
|
| 1645 |
+
get root_dir() {
|
| 1646 |
+
return this.$$.ctx[18];
|
| 1647 |
+
}
|
| 1648 |
+
set root_dir(root_dir) {
|
| 1649 |
+
this.$$set({ root_dir });
|
| 1650 |
+
flush();
|
| 1651 |
+
}
|
| 1652 |
+
get glob() {
|
| 1653 |
+
return this.$$.ctx[19];
|
| 1654 |
+
}
|
| 1655 |
+
set glob(glob) {
|
| 1656 |
+
this.$$set({ glob });
|
| 1657 |
+
flush();
|
| 1658 |
+
}
|
| 1659 |
+
get ignore_glob() {
|
| 1660 |
+
return this.$$.ctx[20];
|
| 1661 |
+
}
|
| 1662 |
+
set ignore_glob(ignore_glob) {
|
| 1663 |
+
this.$$set({ ignore_glob });
|
| 1664 |
+
flush();
|
| 1665 |
+
}
|
| 1666 |
+
get loading_status() {
|
| 1667 |
+
return this.$$.ctx[10];
|
| 1668 |
+
}
|
| 1669 |
+
set loading_status(loading_status) {
|
| 1670 |
+
this.$$set({ loading_status });
|
| 1671 |
+
flush();
|
| 1672 |
+
}
|
| 1673 |
+
get container() {
|
| 1674 |
+
return this.$$.ctx[11];
|
| 1675 |
+
}
|
| 1676 |
+
set container(container) {
|
| 1677 |
+
this.$$set({ container });
|
| 1678 |
+
flush();
|
| 1679 |
+
}
|
| 1680 |
+
get scale() {
|
| 1681 |
+
return this.$$.ctx[12];
|
| 1682 |
+
}
|
| 1683 |
+
set scale(scale) {
|
| 1684 |
+
this.$$set({ scale });
|
| 1685 |
+
flush();
|
| 1686 |
+
}
|
| 1687 |
+
get min_width() {
|
| 1688 |
+
return this.$$.ctx[13];
|
| 1689 |
+
}
|
| 1690 |
+
set min_width(min_width) {
|
| 1691 |
+
this.$$set({ min_width });
|
| 1692 |
+
flush();
|
| 1693 |
+
}
|
| 1694 |
+
get gradio() {
|
| 1695 |
+
return this.$$.ctx[14];
|
| 1696 |
+
}
|
| 1697 |
+
set gradio(gradio) {
|
| 1698 |
+
this.$$set({ gradio });
|
| 1699 |
+
flush();
|
| 1700 |
+
}
|
| 1701 |
+
get server() {
|
| 1702 |
+
return this.$$.ctx[15];
|
| 1703 |
+
}
|
| 1704 |
+
set server(server) {
|
| 1705 |
+
this.$$set({ server });
|
| 1706 |
+
flush();
|
| 1707 |
+
}
|
| 1708 |
+
get interactive() {
|
| 1709 |
+
return this.$$.ctx[16];
|
| 1710 |
+
}
|
| 1711 |
+
set interactive(interactive) {
|
| 1712 |
+
this.$$set({ interactive });
|
| 1713 |
+
flush();
|
| 1714 |
+
}
|
| 1715 |
+
}
|
| 1716 |
+
export {
|
| 1717 |
+
Index as default
|
| 1718 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.8DzMSQRK.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31aaa8d77427d206ffb8101984e718a805435a14db6c0467b04ba8a84ed235df
|
| 3 |
+
size 2884
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BE9siB5D.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d936768cce0b10a554bae2005230cc384c163b1bb6d97bda4e5808a5d78a6696
|
| 3 |
+
size 13095
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BQnekPhB.js
ADDED
|
@@ -0,0 +1,780 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, svg_element, claim_svg_element, children, detach, attr, insert_hydration, append_hydration, noop, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component, element, space, claim_element, claim_space, toggle_class, set_input_value, listen, run_all, binding_callbacks, text, claim_text, set_data } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { B as Block, f as BlockTitle } from "./2.BS1fgMUm.js";
|
| 4 |
+
import { default as default2 } from "./Example.CYe6rnxa.js";
|
| 5 |
+
function create_fragment$1(ctx) {
|
| 6 |
+
let svg;
|
| 7 |
+
let rect;
|
| 8 |
+
let line0;
|
| 9 |
+
let line1;
|
| 10 |
+
let line2;
|
| 11 |
+
return {
|
| 12 |
+
c() {
|
| 13 |
+
svg = svg_element("svg");
|
| 14 |
+
rect = svg_element("rect");
|
| 15 |
+
line0 = svg_element("line");
|
| 16 |
+
line1 = svg_element("line");
|
| 17 |
+
line2 = svg_element("line");
|
| 18 |
+
this.h();
|
| 19 |
+
},
|
| 20 |
+
l(nodes) {
|
| 21 |
+
svg = claim_svg_element(nodes, "svg", {
|
| 22 |
+
xmlns: true,
|
| 23 |
+
width: true,
|
| 24 |
+
height: true,
|
| 25 |
+
viewBox: true
|
| 26 |
+
});
|
| 27 |
+
var svg_nodes = children(svg);
|
| 28 |
+
rect = claim_svg_element(svg_nodes, "rect", {
|
| 29 |
+
x: true,
|
| 30 |
+
y: true,
|
| 31 |
+
width: true,
|
| 32 |
+
height: true,
|
| 33 |
+
stroke: true,
|
| 34 |
+
"stroke-width": true,
|
| 35 |
+
"stroke-linecap": true,
|
| 36 |
+
"stroke-linejoin": true,
|
| 37 |
+
fill: true
|
| 38 |
+
});
|
| 39 |
+
children(rect).forEach(detach);
|
| 40 |
+
line0 = claim_svg_element(svg_nodes, "line", {
|
| 41 |
+
x1: true,
|
| 42 |
+
y1: true,
|
| 43 |
+
x2: true,
|
| 44 |
+
y2: true,
|
| 45 |
+
stroke: true,
|
| 46 |
+
"stroke-width": true,
|
| 47 |
+
"stroke-linecap": true,
|
| 48 |
+
"stroke-linejoin": true,
|
| 49 |
+
fill: true
|
| 50 |
+
});
|
| 51 |
+
children(line0).forEach(detach);
|
| 52 |
+
line1 = claim_svg_element(svg_nodes, "line", {
|
| 53 |
+
x1: true,
|
| 54 |
+
y1: true,
|
| 55 |
+
x2: true,
|
| 56 |
+
y2: true,
|
| 57 |
+
stroke: true,
|
| 58 |
+
"stroke-width": true,
|
| 59 |
+
"stroke-linecap": true,
|
| 60 |
+
"stroke-linejoin": true,
|
| 61 |
+
fill: true
|
| 62 |
+
});
|
| 63 |
+
children(line1).forEach(detach);
|
| 64 |
+
line2 = claim_svg_element(svg_nodes, "line", {
|
| 65 |
+
x1: true,
|
| 66 |
+
y1: true,
|
| 67 |
+
x2: true,
|
| 68 |
+
y2: true,
|
| 69 |
+
stroke: true,
|
| 70 |
+
"stroke-width": true,
|
| 71 |
+
"stroke-linecap": true,
|
| 72 |
+
"stroke-linejoin": true,
|
| 73 |
+
fill: true
|
| 74 |
+
});
|
| 75 |
+
children(line2).forEach(detach);
|
| 76 |
+
svg_nodes.forEach(detach);
|
| 77 |
+
this.h();
|
| 78 |
+
},
|
| 79 |
+
h() {
|
| 80 |
+
attr(rect, "x", "2");
|
| 81 |
+
attr(rect, "y", "4");
|
| 82 |
+
attr(rect, "width", "20");
|
| 83 |
+
attr(rect, "height", "18");
|
| 84 |
+
attr(rect, "stroke", "currentColor");
|
| 85 |
+
attr(rect, "stroke-width", "2");
|
| 86 |
+
attr(rect, "stroke-linecap", "round");
|
| 87 |
+
attr(rect, "stroke-linejoin", "round");
|
| 88 |
+
attr(rect, "fill", "none");
|
| 89 |
+
attr(line0, "x1", "2");
|
| 90 |
+
attr(line0, "y1", "9");
|
| 91 |
+
attr(line0, "x2", "22");
|
| 92 |
+
attr(line0, "y2", "9");
|
| 93 |
+
attr(line0, "stroke", "currentColor");
|
| 94 |
+
attr(line0, "stroke-width", "2");
|
| 95 |
+
attr(line0, "stroke-linecap", "round");
|
| 96 |
+
attr(line0, "stroke-linejoin", "round");
|
| 97 |
+
attr(line0, "fill", "none");
|
| 98 |
+
attr(line1, "x1", "7");
|
| 99 |
+
attr(line1, "y1", "2");
|
| 100 |
+
attr(line1, "x2", "7");
|
| 101 |
+
attr(line1, "y2", "6");
|
| 102 |
+
attr(line1, "stroke", "currentColor");
|
| 103 |
+
attr(line1, "stroke-width", "2");
|
| 104 |
+
attr(line1, "stroke-linecap", "round");
|
| 105 |
+
attr(line1, "stroke-linejoin", "round");
|
| 106 |
+
attr(line1, "fill", "none");
|
| 107 |
+
attr(line2, "x1", "17");
|
| 108 |
+
attr(line2, "y1", "2");
|
| 109 |
+
attr(line2, "x2", "17");
|
| 110 |
+
attr(line2, "y2", "6");
|
| 111 |
+
attr(line2, "stroke", "currentColor");
|
| 112 |
+
attr(line2, "stroke-width", "2");
|
| 113 |
+
attr(line2, "stroke-linecap", "round");
|
| 114 |
+
attr(line2, "stroke-linejoin", "round");
|
| 115 |
+
attr(line2, "fill", "none");
|
| 116 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
| 117 |
+
attr(svg, "width", "24px");
|
| 118 |
+
attr(svg, "height", "24px");
|
| 119 |
+
attr(svg, "viewBox", "0 0 24 24");
|
| 120 |
+
},
|
| 121 |
+
m(target, anchor) {
|
| 122 |
+
insert_hydration(target, svg, anchor);
|
| 123 |
+
append_hydration(svg, rect);
|
| 124 |
+
append_hydration(svg, line0);
|
| 125 |
+
append_hydration(svg, line1);
|
| 126 |
+
append_hydration(svg, line2);
|
| 127 |
+
},
|
| 128 |
+
p: noop,
|
| 129 |
+
i: noop,
|
| 130 |
+
o: noop,
|
| 131 |
+
d(detaching) {
|
| 132 |
+
if (detaching) {
|
| 133 |
+
detach(svg);
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
};
|
| 137 |
+
}
|
| 138 |
+
class Calendar extends SvelteComponent {
|
| 139 |
+
constructor(options) {
|
| 140 |
+
super();
|
| 141 |
+
init(this, options, null, create_fragment$1, safe_not_equal, {});
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
function create_default_slot_1(ctx) {
|
| 145 |
+
let t;
|
| 146 |
+
return {
|
| 147 |
+
c() {
|
| 148 |
+
t = text(
|
| 149 |
+
/*label*/
|
| 150 |
+
ctx[1]
|
| 151 |
+
);
|
| 152 |
+
},
|
| 153 |
+
l(nodes) {
|
| 154 |
+
t = claim_text(
|
| 155 |
+
nodes,
|
| 156 |
+
/*label*/
|
| 157 |
+
ctx[1]
|
| 158 |
+
);
|
| 159 |
+
},
|
| 160 |
+
m(target, anchor) {
|
| 161 |
+
insert_hydration(target, t, anchor);
|
| 162 |
+
},
|
| 163 |
+
p(ctx2, dirty) {
|
| 164 |
+
if (dirty & /*label*/
|
| 165 |
+
2)
|
| 166 |
+
set_data(
|
| 167 |
+
t,
|
| 168 |
+
/*label*/
|
| 169 |
+
ctx2[1]
|
| 170 |
+
);
|
| 171 |
+
},
|
| 172 |
+
d(detaching) {
|
| 173 |
+
if (detaching) {
|
| 174 |
+
detach(t);
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
};
|
| 178 |
+
}
|
| 179 |
+
function create_else_block(ctx) {
|
| 180 |
+
let input;
|
| 181 |
+
let mounted;
|
| 182 |
+
let dispose;
|
| 183 |
+
return {
|
| 184 |
+
c() {
|
| 185 |
+
input = element("input");
|
| 186 |
+
this.h();
|
| 187 |
+
},
|
| 188 |
+
l(nodes) {
|
| 189 |
+
input = claim_element(nodes, "INPUT", { type: true, class: true, step: true });
|
| 190 |
+
this.h();
|
| 191 |
+
},
|
| 192 |
+
h() {
|
| 193 |
+
attr(input, "type", "date");
|
| 194 |
+
attr(input, "class", "datetime svelte-15bft71");
|
| 195 |
+
attr(input, "step", "1");
|
| 196 |
+
},
|
| 197 |
+
m(target, anchor) {
|
| 198 |
+
insert_hydration(target, input, anchor);
|
| 199 |
+
ctx[24](input);
|
| 200 |
+
set_input_value(
|
| 201 |
+
input,
|
| 202 |
+
/*datevalue*/
|
| 203 |
+
ctx[13]
|
| 204 |
+
);
|
| 205 |
+
if (!mounted) {
|
| 206 |
+
dispose = [
|
| 207 |
+
listen(
|
| 208 |
+
input,
|
| 209 |
+
"input",
|
| 210 |
+
/*input_input_handler_2*/
|
| 211 |
+
ctx[25]
|
| 212 |
+
),
|
| 213 |
+
listen(
|
| 214 |
+
input,
|
| 215 |
+
"input",
|
| 216 |
+
/*input_handler_1*/
|
| 217 |
+
ctx[26]
|
| 218 |
+
)
|
| 219 |
+
];
|
| 220 |
+
mounted = true;
|
| 221 |
+
}
|
| 222 |
+
},
|
| 223 |
+
p(ctx2, dirty) {
|
| 224 |
+
if (dirty & /*datevalue*/
|
| 225 |
+
8192) {
|
| 226 |
+
set_input_value(
|
| 227 |
+
input,
|
| 228 |
+
/*datevalue*/
|
| 229 |
+
ctx2[13]
|
| 230 |
+
);
|
| 231 |
+
}
|
| 232 |
+
},
|
| 233 |
+
d(detaching) {
|
| 234 |
+
if (detaching) {
|
| 235 |
+
detach(input);
|
| 236 |
+
}
|
| 237 |
+
ctx[24](null);
|
| 238 |
+
mounted = false;
|
| 239 |
+
run_all(dispose);
|
| 240 |
+
}
|
| 241 |
+
};
|
| 242 |
+
}
|
| 243 |
+
function create_if_block(ctx) {
|
| 244 |
+
let input;
|
| 245 |
+
let mounted;
|
| 246 |
+
let dispose;
|
| 247 |
+
return {
|
| 248 |
+
c() {
|
| 249 |
+
input = element("input");
|
| 250 |
+
this.h();
|
| 251 |
+
},
|
| 252 |
+
l(nodes) {
|
| 253 |
+
input = claim_element(nodes, "INPUT", { type: true, class: true, step: true });
|
| 254 |
+
this.h();
|
| 255 |
+
},
|
| 256 |
+
h() {
|
| 257 |
+
attr(input, "type", "datetime-local");
|
| 258 |
+
attr(input, "class", "datetime svelte-15bft71");
|
| 259 |
+
attr(input, "step", "1");
|
| 260 |
+
},
|
| 261 |
+
m(target, anchor) {
|
| 262 |
+
insert_hydration(target, input, anchor);
|
| 263 |
+
ctx[21](input);
|
| 264 |
+
set_input_value(
|
| 265 |
+
input,
|
| 266 |
+
/*datevalue*/
|
| 267 |
+
ctx[13]
|
| 268 |
+
);
|
| 269 |
+
if (!mounted) {
|
| 270 |
+
dispose = [
|
| 271 |
+
listen(
|
| 272 |
+
input,
|
| 273 |
+
"input",
|
| 274 |
+
/*input_input_handler_1*/
|
| 275 |
+
ctx[22]
|
| 276 |
+
),
|
| 277 |
+
listen(
|
| 278 |
+
input,
|
| 279 |
+
"input",
|
| 280 |
+
/*input_handler*/
|
| 281 |
+
ctx[23]
|
| 282 |
+
)
|
| 283 |
+
];
|
| 284 |
+
mounted = true;
|
| 285 |
+
}
|
| 286 |
+
},
|
| 287 |
+
p(ctx2, dirty) {
|
| 288 |
+
if (dirty & /*datevalue*/
|
| 289 |
+
8192) {
|
| 290 |
+
set_input_value(
|
| 291 |
+
input,
|
| 292 |
+
/*datevalue*/
|
| 293 |
+
ctx2[13]
|
| 294 |
+
);
|
| 295 |
+
}
|
| 296 |
+
},
|
| 297 |
+
d(detaching) {
|
| 298 |
+
if (detaching) {
|
| 299 |
+
detach(input);
|
| 300 |
+
}
|
| 301 |
+
ctx[21](null);
|
| 302 |
+
mounted = false;
|
| 303 |
+
run_all(dispose);
|
| 304 |
+
}
|
| 305 |
+
};
|
| 306 |
+
}
|
| 307 |
+
function create_default_slot(ctx) {
|
| 308 |
+
let div0;
|
| 309 |
+
let blocktitle;
|
| 310 |
+
let t0;
|
| 311 |
+
let div1;
|
| 312 |
+
let input;
|
| 313 |
+
let t1;
|
| 314 |
+
let t2;
|
| 315 |
+
let button;
|
| 316 |
+
let calendar;
|
| 317 |
+
let current;
|
| 318 |
+
let mounted;
|
| 319 |
+
let dispose;
|
| 320 |
+
blocktitle = new BlockTitle({
|
| 321 |
+
props: {
|
| 322 |
+
root: (
|
| 323 |
+
/*root*/
|
| 324 |
+
ctx[9]
|
| 325 |
+
),
|
| 326 |
+
show_label: (
|
| 327 |
+
/*show_label*/
|
| 328 |
+
ctx[2]
|
| 329 |
+
),
|
| 330 |
+
info: (
|
| 331 |
+
/*info*/
|
| 332 |
+
ctx[3]
|
| 333 |
+
),
|
| 334 |
+
$$slots: { default: [create_default_slot_1] },
|
| 335 |
+
$$scope: { ctx }
|
| 336 |
+
}
|
| 337 |
+
});
|
| 338 |
+
function select_block_type(ctx2, dirty) {
|
| 339 |
+
if (
|
| 340 |
+
/*include_time*/
|
| 341 |
+
ctx2[10]
|
| 342 |
+
)
|
| 343 |
+
return create_if_block;
|
| 344 |
+
return create_else_block;
|
| 345 |
+
}
|
| 346 |
+
let current_block_type = select_block_type(ctx);
|
| 347 |
+
let if_block = current_block_type(ctx);
|
| 348 |
+
calendar = new Calendar({});
|
| 349 |
+
return {
|
| 350 |
+
c() {
|
| 351 |
+
div0 = element("div");
|
| 352 |
+
create_component(blocktitle.$$.fragment);
|
| 353 |
+
t0 = space();
|
| 354 |
+
div1 = element("div");
|
| 355 |
+
input = element("input");
|
| 356 |
+
t1 = space();
|
| 357 |
+
if_block.c();
|
| 358 |
+
t2 = space();
|
| 359 |
+
button = element("button");
|
| 360 |
+
create_component(calendar.$$.fragment);
|
| 361 |
+
this.h();
|
| 362 |
+
},
|
| 363 |
+
l(nodes) {
|
| 364 |
+
div0 = claim_element(nodes, "DIV", { class: true });
|
| 365 |
+
var div0_nodes = children(div0);
|
| 366 |
+
claim_component(blocktitle.$$.fragment, div0_nodes);
|
| 367 |
+
div0_nodes.forEach(detach);
|
| 368 |
+
t0 = claim_space(nodes);
|
| 369 |
+
div1 = claim_element(nodes, "DIV", { class: true });
|
| 370 |
+
var div1_nodes = children(div1);
|
| 371 |
+
input = claim_element(div1_nodes, "INPUT", { class: true });
|
| 372 |
+
t1 = claim_space(div1_nodes);
|
| 373 |
+
if_block.l(div1_nodes);
|
| 374 |
+
t2 = claim_space(div1_nodes);
|
| 375 |
+
button = claim_element(div1_nodes, "BUTTON", { class: true });
|
| 376 |
+
var button_nodes = children(button);
|
| 377 |
+
claim_component(calendar.$$.fragment, button_nodes);
|
| 378 |
+
button_nodes.forEach(detach);
|
| 379 |
+
div1_nodes.forEach(detach);
|
| 380 |
+
this.h();
|
| 381 |
+
},
|
| 382 |
+
h() {
|
| 383 |
+
attr(div0, "class", "label-content svelte-15bft71");
|
| 384 |
+
attr(input, "class", "time svelte-15bft71");
|
| 385 |
+
toggle_class(input, "invalid", !/*valid*/
|
| 386 |
+
ctx[14]);
|
| 387 |
+
attr(button, "class", "calendar svelte-15bft71");
|
| 388 |
+
attr(div1, "class", "timebox svelte-15bft71");
|
| 389 |
+
},
|
| 390 |
+
m(target, anchor) {
|
| 391 |
+
insert_hydration(target, div0, anchor);
|
| 392 |
+
mount_component(blocktitle, div0, null);
|
| 393 |
+
insert_hydration(target, t0, anchor);
|
| 394 |
+
insert_hydration(target, div1, anchor);
|
| 395 |
+
append_hydration(div1, input);
|
| 396 |
+
set_input_value(
|
| 397 |
+
input,
|
| 398 |
+
/*entered_value*/
|
| 399 |
+
ctx[11]
|
| 400 |
+
);
|
| 401 |
+
append_hydration(div1, t1);
|
| 402 |
+
if_block.m(div1, null);
|
| 403 |
+
append_hydration(div1, t2);
|
| 404 |
+
append_hydration(div1, button);
|
| 405 |
+
mount_component(calendar, button, null);
|
| 406 |
+
current = true;
|
| 407 |
+
if (!mounted) {
|
| 408 |
+
dispose = [
|
| 409 |
+
listen(
|
| 410 |
+
input,
|
| 411 |
+
"input",
|
| 412 |
+
/*input_input_handler*/
|
| 413 |
+
ctx[19]
|
| 414 |
+
),
|
| 415 |
+
listen(
|
| 416 |
+
input,
|
| 417 |
+
"keydown",
|
| 418 |
+
/*keydown_handler*/
|
| 419 |
+
ctx[20]
|
| 420 |
+
),
|
| 421 |
+
listen(
|
| 422 |
+
input,
|
| 423 |
+
"blur",
|
| 424 |
+
/*submit_values*/
|
| 425 |
+
ctx[16]
|
| 426 |
+
),
|
| 427 |
+
listen(
|
| 428 |
+
button,
|
| 429 |
+
"click",
|
| 430 |
+
/*click_handler*/
|
| 431 |
+
ctx[27]
|
| 432 |
+
)
|
| 433 |
+
];
|
| 434 |
+
mounted = true;
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
p(ctx2, dirty) {
|
| 438 |
+
const blocktitle_changes = {};
|
| 439 |
+
if (dirty & /*root*/
|
| 440 |
+
512)
|
| 441 |
+
blocktitle_changes.root = /*root*/
|
| 442 |
+
ctx2[9];
|
| 443 |
+
if (dirty & /*show_label*/
|
| 444 |
+
4)
|
| 445 |
+
blocktitle_changes.show_label = /*show_label*/
|
| 446 |
+
ctx2[2];
|
| 447 |
+
if (dirty & /*info*/
|
| 448 |
+
8)
|
| 449 |
+
blocktitle_changes.info = /*info*/
|
| 450 |
+
ctx2[3];
|
| 451 |
+
if (dirty & /*$$scope, label*/
|
| 452 |
+
536870914) {
|
| 453 |
+
blocktitle_changes.$$scope = { dirty, ctx: ctx2 };
|
| 454 |
+
}
|
| 455 |
+
blocktitle.$set(blocktitle_changes);
|
| 456 |
+
if (dirty & /*entered_value*/
|
| 457 |
+
2048 && input.value !== /*entered_value*/
|
| 458 |
+
ctx2[11]) {
|
| 459 |
+
set_input_value(
|
| 460 |
+
input,
|
| 461 |
+
/*entered_value*/
|
| 462 |
+
ctx2[11]
|
| 463 |
+
);
|
| 464 |
+
}
|
| 465 |
+
if (!current || dirty & /*valid*/
|
| 466 |
+
16384) {
|
| 467 |
+
toggle_class(input, "invalid", !/*valid*/
|
| 468 |
+
ctx2[14]);
|
| 469 |
+
}
|
| 470 |
+
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
| 471 |
+
if_block.p(ctx2, dirty);
|
| 472 |
+
} else {
|
| 473 |
+
if_block.d(1);
|
| 474 |
+
if_block = current_block_type(ctx2);
|
| 475 |
+
if (if_block) {
|
| 476 |
+
if_block.c();
|
| 477 |
+
if_block.m(div1, t2);
|
| 478 |
+
}
|
| 479 |
+
}
|
| 480 |
+
},
|
| 481 |
+
i(local) {
|
| 482 |
+
if (current)
|
| 483 |
+
return;
|
| 484 |
+
transition_in(blocktitle.$$.fragment, local);
|
| 485 |
+
transition_in(calendar.$$.fragment, local);
|
| 486 |
+
current = true;
|
| 487 |
+
},
|
| 488 |
+
o(local) {
|
| 489 |
+
transition_out(blocktitle.$$.fragment, local);
|
| 490 |
+
transition_out(calendar.$$.fragment, local);
|
| 491 |
+
current = false;
|
| 492 |
+
},
|
| 493 |
+
d(detaching) {
|
| 494 |
+
if (detaching) {
|
| 495 |
+
detach(div0);
|
| 496 |
+
detach(t0);
|
| 497 |
+
detach(div1);
|
| 498 |
+
}
|
| 499 |
+
destroy_component(blocktitle);
|
| 500 |
+
if_block.d();
|
| 501 |
+
destroy_component(calendar);
|
| 502 |
+
mounted = false;
|
| 503 |
+
run_all(dispose);
|
| 504 |
+
}
|
| 505 |
+
};
|
| 506 |
+
}
|
| 507 |
+
function create_fragment(ctx) {
|
| 508 |
+
let block;
|
| 509 |
+
let current;
|
| 510 |
+
block = new Block({
|
| 511 |
+
props: {
|
| 512 |
+
visible: (
|
| 513 |
+
/*visible*/
|
| 514 |
+
ctx[6]
|
| 515 |
+
),
|
| 516 |
+
elem_id: (
|
| 517 |
+
/*elem_id*/
|
| 518 |
+
ctx[4]
|
| 519 |
+
),
|
| 520 |
+
elem_classes: (
|
| 521 |
+
/*elem_classes*/
|
| 522 |
+
ctx[5]
|
| 523 |
+
),
|
| 524 |
+
scale: (
|
| 525 |
+
/*scale*/
|
| 526 |
+
ctx[7]
|
| 527 |
+
),
|
| 528 |
+
min_width: (
|
| 529 |
+
/*min_width*/
|
| 530 |
+
ctx[8]
|
| 531 |
+
),
|
| 532 |
+
allow_overflow: false,
|
| 533 |
+
padding: true,
|
| 534 |
+
$$slots: { default: [create_default_slot] },
|
| 535 |
+
$$scope: { ctx }
|
| 536 |
+
}
|
| 537 |
+
});
|
| 538 |
+
return {
|
| 539 |
+
c() {
|
| 540 |
+
create_component(block.$$.fragment);
|
| 541 |
+
},
|
| 542 |
+
l(nodes) {
|
| 543 |
+
claim_component(block.$$.fragment, nodes);
|
| 544 |
+
},
|
| 545 |
+
m(target, anchor) {
|
| 546 |
+
mount_component(block, target, anchor);
|
| 547 |
+
current = true;
|
| 548 |
+
},
|
| 549 |
+
p(ctx2, [dirty]) {
|
| 550 |
+
const block_changes = {};
|
| 551 |
+
if (dirty & /*visible*/
|
| 552 |
+
64)
|
| 553 |
+
block_changes.visible = /*visible*/
|
| 554 |
+
ctx2[6];
|
| 555 |
+
if (dirty & /*elem_id*/
|
| 556 |
+
16)
|
| 557 |
+
block_changes.elem_id = /*elem_id*/
|
| 558 |
+
ctx2[4];
|
| 559 |
+
if (dirty & /*elem_classes*/
|
| 560 |
+
32)
|
| 561 |
+
block_changes.elem_classes = /*elem_classes*/
|
| 562 |
+
ctx2[5];
|
| 563 |
+
if (dirty & /*scale*/
|
| 564 |
+
128)
|
| 565 |
+
block_changes.scale = /*scale*/
|
| 566 |
+
ctx2[7];
|
| 567 |
+
if (dirty & /*min_width*/
|
| 568 |
+
256)
|
| 569 |
+
block_changes.min_width = /*min_width*/
|
| 570 |
+
ctx2[8];
|
| 571 |
+
if (dirty & /*$$scope, datetime, datevalue, entered_value, include_time, valid, gradio, root, show_label, info, label*/
|
| 572 |
+
536903183) {
|
| 573 |
+
block_changes.$$scope = { dirty, ctx: ctx2 };
|
| 574 |
+
}
|
| 575 |
+
block.$set(block_changes);
|
| 576 |
+
},
|
| 577 |
+
i(local) {
|
| 578 |
+
if (current)
|
| 579 |
+
return;
|
| 580 |
+
transition_in(block.$$.fragment, local);
|
| 581 |
+
current = true;
|
| 582 |
+
},
|
| 583 |
+
o(local) {
|
| 584 |
+
transition_out(block.$$.fragment, local);
|
| 585 |
+
current = false;
|
| 586 |
+
},
|
| 587 |
+
d(detaching) {
|
| 588 |
+
destroy_component(block, detaching);
|
| 589 |
+
}
|
| 590 |
+
};
|
| 591 |
+
}
|
| 592 |
+
function instance($$self, $$props, $$invalidate) {
|
| 593 |
+
let valid;
|
| 594 |
+
let { gradio } = $$props;
|
| 595 |
+
let { label = "Time" } = $$props;
|
| 596 |
+
let { show_label = true } = $$props;
|
| 597 |
+
let { info = void 0 } = $$props;
|
| 598 |
+
let { elem_id = "" } = $$props;
|
| 599 |
+
let { elem_classes = [] } = $$props;
|
| 600 |
+
let { visible = true } = $$props;
|
| 601 |
+
let { value = "" } = $$props;
|
| 602 |
+
let old_value = value;
|
| 603 |
+
let { scale = null } = $$props;
|
| 604 |
+
let { min_width = void 0 } = $$props;
|
| 605 |
+
let { root } = $$props;
|
| 606 |
+
let { include_time = true } = $$props;
|
| 607 |
+
const format_date = (date) => {
|
| 608 |
+
if (date.toJSON() === null)
|
| 609 |
+
return "";
|
| 610 |
+
const pad = (num) => num.toString().padStart(2, "0");
|
| 611 |
+
const year = date.getFullYear();
|
| 612 |
+
const month = pad(date.getMonth() + 1);
|
| 613 |
+
const day = pad(date.getDate());
|
| 614 |
+
const hours = pad(date.getHours());
|
| 615 |
+
const minutes = pad(date.getMinutes());
|
| 616 |
+
const seconds = pad(date.getSeconds());
|
| 617 |
+
const date_str = `${year}-${month}-${day}`;
|
| 618 |
+
const time_str = `${hours}:${minutes}:${seconds}`;
|
| 619 |
+
if (include_time) {
|
| 620 |
+
return `${date_str} ${time_str}`;
|
| 621 |
+
}
|
| 622 |
+
return date_str;
|
| 623 |
+
};
|
| 624 |
+
let entered_value = value;
|
| 625 |
+
let datetime;
|
| 626 |
+
let datevalue = value;
|
| 627 |
+
const date_is_valid_format = (date) => {
|
| 628 |
+
if (date === "")
|
| 629 |
+
return false;
|
| 630 |
+
const valid_regex = include_time ? /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/ : /^\d{4}-\d{2}-\d{2}$/;
|
| 631 |
+
const is_valid_date = date.match(valid_regex) !== null;
|
| 632 |
+
const is_valid_now = date.match(/^(?:\s*now\s*(?:-\s*\d+\s*[dmhs])?)?\s*$/) !== null;
|
| 633 |
+
return is_valid_date || is_valid_now;
|
| 634 |
+
};
|
| 635 |
+
const submit_values = () => {
|
| 636 |
+
if (entered_value === value)
|
| 637 |
+
return;
|
| 638 |
+
if (!date_is_valid_format(entered_value))
|
| 639 |
+
return;
|
| 640 |
+
$$invalidate(18, old_value = $$invalidate(17, value = entered_value));
|
| 641 |
+
gradio.dispatch("change");
|
| 642 |
+
};
|
| 643 |
+
function input_input_handler() {
|
| 644 |
+
entered_value = this.value;
|
| 645 |
+
$$invalidate(11, entered_value), $$invalidate(17, value), $$invalidate(18, old_value), $$invalidate(0, gradio);
|
| 646 |
+
}
|
| 647 |
+
const keydown_handler = (evt) => {
|
| 648 |
+
if (evt.key === "Enter") {
|
| 649 |
+
submit_values();
|
| 650 |
+
gradio.dispatch("submit");
|
| 651 |
+
}
|
| 652 |
+
};
|
| 653 |
+
function input_binding($$value) {
|
| 654 |
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
| 655 |
+
datetime = $$value;
|
| 656 |
+
$$invalidate(12, datetime);
|
| 657 |
+
});
|
| 658 |
+
}
|
| 659 |
+
function input_input_handler_1() {
|
| 660 |
+
datevalue = this.value;
|
| 661 |
+
$$invalidate(13, datevalue), $$invalidate(17, value), $$invalidate(18, old_value), $$invalidate(0, gradio);
|
| 662 |
+
}
|
| 663 |
+
const input_handler = () => {
|
| 664 |
+
const date = new Date(datevalue);
|
| 665 |
+
$$invalidate(11, entered_value = format_date(date));
|
| 666 |
+
submit_values();
|
| 667 |
+
};
|
| 668 |
+
function input_binding_1($$value) {
|
| 669 |
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
| 670 |
+
datetime = $$value;
|
| 671 |
+
$$invalidate(12, datetime);
|
| 672 |
+
});
|
| 673 |
+
}
|
| 674 |
+
function input_input_handler_2() {
|
| 675 |
+
datevalue = this.value;
|
| 676 |
+
$$invalidate(13, datevalue), $$invalidate(17, value), $$invalidate(18, old_value), $$invalidate(0, gradio);
|
| 677 |
+
}
|
| 678 |
+
const input_handler_1 = () => {
|
| 679 |
+
const date = new Date(datevalue);
|
| 680 |
+
$$invalidate(11, entered_value = format_date(date));
|
| 681 |
+
submit_values();
|
| 682 |
+
};
|
| 683 |
+
const click_handler = () => {
|
| 684 |
+
datetime.showPicker();
|
| 685 |
+
};
|
| 686 |
+
$$self.$$set = ($$props2) => {
|
| 687 |
+
if ("gradio" in $$props2)
|
| 688 |
+
$$invalidate(0, gradio = $$props2.gradio);
|
| 689 |
+
if ("label" in $$props2)
|
| 690 |
+
$$invalidate(1, label = $$props2.label);
|
| 691 |
+
if ("show_label" in $$props2)
|
| 692 |
+
$$invalidate(2, show_label = $$props2.show_label);
|
| 693 |
+
if ("info" in $$props2)
|
| 694 |
+
$$invalidate(3, info = $$props2.info);
|
| 695 |
+
if ("elem_id" in $$props2)
|
| 696 |
+
$$invalidate(4, elem_id = $$props2.elem_id);
|
| 697 |
+
if ("elem_classes" in $$props2)
|
| 698 |
+
$$invalidate(5, elem_classes = $$props2.elem_classes);
|
| 699 |
+
if ("visible" in $$props2)
|
| 700 |
+
$$invalidate(6, visible = $$props2.visible);
|
| 701 |
+
if ("value" in $$props2)
|
| 702 |
+
$$invalidate(17, value = $$props2.value);
|
| 703 |
+
if ("scale" in $$props2)
|
| 704 |
+
$$invalidate(7, scale = $$props2.scale);
|
| 705 |
+
if ("min_width" in $$props2)
|
| 706 |
+
$$invalidate(8, min_width = $$props2.min_width);
|
| 707 |
+
if ("root" in $$props2)
|
| 708 |
+
$$invalidate(9, root = $$props2.root);
|
| 709 |
+
if ("include_time" in $$props2)
|
| 710 |
+
$$invalidate(10, include_time = $$props2.include_time);
|
| 711 |
+
};
|
| 712 |
+
$$self.$$.update = () => {
|
| 713 |
+
if ($$self.$$.dirty & /*value, old_value, gradio*/
|
| 714 |
+
393217) {
|
| 715 |
+
if (value !== old_value) {
|
| 716 |
+
$$invalidate(18, old_value = value);
|
| 717 |
+
$$invalidate(11, entered_value = value);
|
| 718 |
+
$$invalidate(13, datevalue = value);
|
| 719 |
+
gradio.dispatch("change");
|
| 720 |
+
}
|
| 721 |
+
}
|
| 722 |
+
if ($$self.$$.dirty & /*entered_value*/
|
| 723 |
+
2048) {
|
| 724 |
+
$$invalidate(14, valid = date_is_valid_format(entered_value));
|
| 725 |
+
}
|
| 726 |
+
};
|
| 727 |
+
return [
|
| 728 |
+
gradio,
|
| 729 |
+
label,
|
| 730 |
+
show_label,
|
| 731 |
+
info,
|
| 732 |
+
elem_id,
|
| 733 |
+
elem_classes,
|
| 734 |
+
visible,
|
| 735 |
+
scale,
|
| 736 |
+
min_width,
|
| 737 |
+
root,
|
| 738 |
+
include_time,
|
| 739 |
+
entered_value,
|
| 740 |
+
datetime,
|
| 741 |
+
datevalue,
|
| 742 |
+
valid,
|
| 743 |
+
format_date,
|
| 744 |
+
submit_values,
|
| 745 |
+
value,
|
| 746 |
+
old_value,
|
| 747 |
+
input_input_handler,
|
| 748 |
+
keydown_handler,
|
| 749 |
+
input_binding,
|
| 750 |
+
input_input_handler_1,
|
| 751 |
+
input_handler,
|
| 752 |
+
input_binding_1,
|
| 753 |
+
input_input_handler_2,
|
| 754 |
+
input_handler_1,
|
| 755 |
+
click_handler
|
| 756 |
+
];
|
| 757 |
+
}
|
| 758 |
+
class Index extends SvelteComponent {
|
| 759 |
+
constructor(options) {
|
| 760 |
+
super();
|
| 761 |
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
| 762 |
+
gradio: 0,
|
| 763 |
+
label: 1,
|
| 764 |
+
show_label: 2,
|
| 765 |
+
info: 3,
|
| 766 |
+
elem_id: 4,
|
| 767 |
+
elem_classes: 5,
|
| 768 |
+
visible: 6,
|
| 769 |
+
value: 17,
|
| 770 |
+
scale: 7,
|
| 771 |
+
min_width: 8,
|
| 772 |
+
root: 9,
|
| 773 |
+
include_time: 10
|
| 774 |
+
});
|
| 775 |
+
}
|
| 776 |
+
}
|
| 777 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, create_slot, element, space, claim_element, children, claim_space, detach, attr, toggle_class, set_style, insert_hydration, append_hydration, transition_in, group_outros, transition_out, check_outros, update_slot_base, get_all_dirty_from_scope, get_slot_changes, assign, create_component, claim_component, mount_component, get_spread_update, get_spread_object, destroy_component } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { S as Static } from "./2.BS1fgMUm.js";
|
| 4 |
+
function create_if_block(ctx) {
|
| 5 |
+
let statustracker;
|
| 6 |
+
let current;
|
| 7 |
+
const statustracker_spread_levels = [
|
| 8 |
+
{ autoscroll: (
|
| 9 |
+
/*gradio*/
|
| 10 |
+
ctx[6].autoscroll
|
| 11 |
+
) },
|
| 12 |
+
{ i18n: (
|
| 13 |
+
/*gradio*/
|
| 14 |
+
ctx[6].i18n
|
| 15 |
+
) },
|
| 16 |
+
/*loading_status*/
|
| 17 |
+
ctx[5],
|
| 18 |
+
{
|
| 19 |
+
status: (
|
| 20 |
+
/*loading_status*/
|
| 21 |
+
ctx[5] ? (
|
| 22 |
+
/*loading_status*/
|
| 23 |
+
ctx[5].status == "pending" ? "generating" : (
|
| 24 |
+
/*loading_status*/
|
| 25 |
+
ctx[5].status
|
| 26 |
+
)
|
| 27 |
+
) : null
|
| 28 |
+
)
|
| 29 |
+
}
|
| 30 |
+
];
|
| 31 |
+
let statustracker_props = {};
|
| 32 |
+
for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
|
| 33 |
+
statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
|
| 34 |
+
}
|
| 35 |
+
statustracker = new Static({ props: statustracker_props });
|
| 36 |
+
return {
|
| 37 |
+
c() {
|
| 38 |
+
create_component(statustracker.$$.fragment);
|
| 39 |
+
},
|
| 40 |
+
l(nodes) {
|
| 41 |
+
claim_component(statustracker.$$.fragment, nodes);
|
| 42 |
+
},
|
| 43 |
+
m(target, anchor) {
|
| 44 |
+
mount_component(statustracker, target, anchor);
|
| 45 |
+
current = true;
|
| 46 |
+
},
|
| 47 |
+
p(ctx2, dirty) {
|
| 48 |
+
const statustracker_changes = dirty & /*gradio, loading_status*/
|
| 49 |
+
96 ? get_spread_update(statustracker_spread_levels, [
|
| 50 |
+
dirty & /*gradio*/
|
| 51 |
+
64 && { autoscroll: (
|
| 52 |
+
/*gradio*/
|
| 53 |
+
ctx2[6].autoscroll
|
| 54 |
+
) },
|
| 55 |
+
dirty & /*gradio*/
|
| 56 |
+
64 && { i18n: (
|
| 57 |
+
/*gradio*/
|
| 58 |
+
ctx2[6].i18n
|
| 59 |
+
) },
|
| 60 |
+
dirty & /*loading_status*/
|
| 61 |
+
32 && get_spread_object(
|
| 62 |
+
/*loading_status*/
|
| 63 |
+
ctx2[5]
|
| 64 |
+
),
|
| 65 |
+
dirty & /*loading_status*/
|
| 66 |
+
32 && {
|
| 67 |
+
status: (
|
| 68 |
+
/*loading_status*/
|
| 69 |
+
ctx2[5] ? (
|
| 70 |
+
/*loading_status*/
|
| 71 |
+
ctx2[5].status == "pending" ? "generating" : (
|
| 72 |
+
/*loading_status*/
|
| 73 |
+
ctx2[5].status
|
| 74 |
+
)
|
| 75 |
+
) : null
|
| 76 |
+
)
|
| 77 |
+
}
|
| 78 |
+
]) : {};
|
| 79 |
+
statustracker.$set(statustracker_changes);
|
| 80 |
+
},
|
| 81 |
+
i(local) {
|
| 82 |
+
if (current)
|
| 83 |
+
return;
|
| 84 |
+
transition_in(statustracker.$$.fragment, local);
|
| 85 |
+
current = true;
|
| 86 |
+
},
|
| 87 |
+
o(local) {
|
| 88 |
+
transition_out(statustracker.$$.fragment, local);
|
| 89 |
+
current = false;
|
| 90 |
+
},
|
| 91 |
+
d(detaching) {
|
| 92 |
+
destroy_component(statustracker, detaching);
|
| 93 |
+
}
|
| 94 |
+
};
|
| 95 |
+
}
|
| 96 |
+
function create_fragment(ctx) {
|
| 97 |
+
let div;
|
| 98 |
+
let t;
|
| 99 |
+
let div_class_value;
|
| 100 |
+
let current;
|
| 101 |
+
let if_block = (
|
| 102 |
+
/*loading_status*/
|
| 103 |
+
ctx[5] && /*show_progress*/
|
| 104 |
+
ctx[7] && /*gradio*/
|
| 105 |
+
ctx[6] && create_if_block(ctx)
|
| 106 |
+
);
|
| 107 |
+
const default_slot_template = (
|
| 108 |
+
/*#slots*/
|
| 109 |
+
ctx[13].default
|
| 110 |
+
);
|
| 111 |
+
const default_slot = create_slot(
|
| 112 |
+
default_slot_template,
|
| 113 |
+
ctx,
|
| 114 |
+
/*$$scope*/
|
| 115 |
+
ctx[12],
|
| 116 |
+
null
|
| 117 |
+
);
|
| 118 |
+
return {
|
| 119 |
+
c() {
|
| 120 |
+
div = element("div");
|
| 121 |
+
if (if_block)
|
| 122 |
+
if_block.c();
|
| 123 |
+
t = space();
|
| 124 |
+
if (default_slot)
|
| 125 |
+
default_slot.c();
|
| 126 |
+
this.h();
|
| 127 |
+
},
|
| 128 |
+
l(nodes) {
|
| 129 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
| 130 |
+
var div_nodes = children(div);
|
| 131 |
+
if (if_block)
|
| 132 |
+
if_block.l(div_nodes);
|
| 133 |
+
t = claim_space(div_nodes);
|
| 134 |
+
if (default_slot)
|
| 135 |
+
default_slot.l(div_nodes);
|
| 136 |
+
div_nodes.forEach(detach);
|
| 137 |
+
this.h();
|
| 138 |
+
},
|
| 139 |
+
h() {
|
| 140 |
+
attr(
|
| 141 |
+
div,
|
| 142 |
+
"id",
|
| 143 |
+
/*elem_id*/
|
| 144 |
+
ctx[1]
|
| 145 |
+
);
|
| 146 |
+
attr(div, "class", div_class_value = "row " + /*elem_classes*/
|
| 147 |
+
ctx[2].join(" ") + " svelte-hrj4a0");
|
| 148 |
+
toggle_class(
|
| 149 |
+
div,
|
| 150 |
+
"compact",
|
| 151 |
+
/*variant*/
|
| 152 |
+
ctx[4] === "compact"
|
| 153 |
+
);
|
| 154 |
+
toggle_class(
|
| 155 |
+
div,
|
| 156 |
+
"panel",
|
| 157 |
+
/*variant*/
|
| 158 |
+
ctx[4] === "panel"
|
| 159 |
+
);
|
| 160 |
+
toggle_class(
|
| 161 |
+
div,
|
| 162 |
+
"unequal-height",
|
| 163 |
+
/*equal_height*/
|
| 164 |
+
ctx[0] === false
|
| 165 |
+
);
|
| 166 |
+
toggle_class(
|
| 167 |
+
div,
|
| 168 |
+
"stretch",
|
| 169 |
+
/*equal_height*/
|
| 170 |
+
ctx[0]
|
| 171 |
+
);
|
| 172 |
+
toggle_class(div, "hide", !/*visible*/
|
| 173 |
+
ctx[3]);
|
| 174 |
+
set_style(
|
| 175 |
+
div,
|
| 176 |
+
"height",
|
| 177 |
+
/*get_dimension*/
|
| 178 |
+
ctx[11](
|
| 179 |
+
/*height*/
|
| 180 |
+
ctx[8]
|
| 181 |
+
)
|
| 182 |
+
);
|
| 183 |
+
set_style(
|
| 184 |
+
div,
|
| 185 |
+
"max-height",
|
| 186 |
+
/*get_dimension*/
|
| 187 |
+
ctx[11](
|
| 188 |
+
/*max_height*/
|
| 189 |
+
ctx[10]
|
| 190 |
+
)
|
| 191 |
+
);
|
| 192 |
+
set_style(
|
| 193 |
+
div,
|
| 194 |
+
"min-height",
|
| 195 |
+
/*get_dimension*/
|
| 196 |
+
ctx[11](
|
| 197 |
+
/*min_height*/
|
| 198 |
+
ctx[9]
|
| 199 |
+
)
|
| 200 |
+
);
|
| 201 |
+
},
|
| 202 |
+
m(target, anchor) {
|
| 203 |
+
insert_hydration(target, div, anchor);
|
| 204 |
+
if (if_block)
|
| 205 |
+
if_block.m(div, null);
|
| 206 |
+
append_hydration(div, t);
|
| 207 |
+
if (default_slot) {
|
| 208 |
+
default_slot.m(div, null);
|
| 209 |
+
}
|
| 210 |
+
current = true;
|
| 211 |
+
},
|
| 212 |
+
p(ctx2, [dirty]) {
|
| 213 |
+
if (
|
| 214 |
+
/*loading_status*/
|
| 215 |
+
ctx2[5] && /*show_progress*/
|
| 216 |
+
ctx2[7] && /*gradio*/
|
| 217 |
+
ctx2[6]
|
| 218 |
+
) {
|
| 219 |
+
if (if_block) {
|
| 220 |
+
if_block.p(ctx2, dirty);
|
| 221 |
+
if (dirty & /*loading_status, show_progress, gradio*/
|
| 222 |
+
224) {
|
| 223 |
+
transition_in(if_block, 1);
|
| 224 |
+
}
|
| 225 |
+
} else {
|
| 226 |
+
if_block = create_if_block(ctx2);
|
| 227 |
+
if_block.c();
|
| 228 |
+
transition_in(if_block, 1);
|
| 229 |
+
if_block.m(div, t);
|
| 230 |
+
}
|
| 231 |
+
} else if (if_block) {
|
| 232 |
+
group_outros();
|
| 233 |
+
transition_out(if_block, 1, 1, () => {
|
| 234 |
+
if_block = null;
|
| 235 |
+
});
|
| 236 |
+
check_outros();
|
| 237 |
+
}
|
| 238 |
+
if (default_slot) {
|
| 239 |
+
if (default_slot.p && (!current || dirty & /*$$scope*/
|
| 240 |
+
4096)) {
|
| 241 |
+
update_slot_base(
|
| 242 |
+
default_slot,
|
| 243 |
+
default_slot_template,
|
| 244 |
+
ctx2,
|
| 245 |
+
/*$$scope*/
|
| 246 |
+
ctx2[12],
|
| 247 |
+
!current ? get_all_dirty_from_scope(
|
| 248 |
+
/*$$scope*/
|
| 249 |
+
ctx2[12]
|
| 250 |
+
) : get_slot_changes(
|
| 251 |
+
default_slot_template,
|
| 252 |
+
/*$$scope*/
|
| 253 |
+
ctx2[12],
|
| 254 |
+
dirty,
|
| 255 |
+
null
|
| 256 |
+
),
|
| 257 |
+
null
|
| 258 |
+
);
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
if (!current || dirty & /*elem_id*/
|
| 262 |
+
2) {
|
| 263 |
+
attr(
|
| 264 |
+
div,
|
| 265 |
+
"id",
|
| 266 |
+
/*elem_id*/
|
| 267 |
+
ctx2[1]
|
| 268 |
+
);
|
| 269 |
+
}
|
| 270 |
+
if (!current || dirty & /*elem_classes*/
|
| 271 |
+
4 && div_class_value !== (div_class_value = "row " + /*elem_classes*/
|
| 272 |
+
ctx2[2].join(" ") + " svelte-hrj4a0")) {
|
| 273 |
+
attr(div, "class", div_class_value);
|
| 274 |
+
}
|
| 275 |
+
if (!current || dirty & /*elem_classes, variant*/
|
| 276 |
+
20) {
|
| 277 |
+
toggle_class(
|
| 278 |
+
div,
|
| 279 |
+
"compact",
|
| 280 |
+
/*variant*/
|
| 281 |
+
ctx2[4] === "compact"
|
| 282 |
+
);
|
| 283 |
+
}
|
| 284 |
+
if (!current || dirty & /*elem_classes, variant*/
|
| 285 |
+
20) {
|
| 286 |
+
toggle_class(
|
| 287 |
+
div,
|
| 288 |
+
"panel",
|
| 289 |
+
/*variant*/
|
| 290 |
+
ctx2[4] === "panel"
|
| 291 |
+
);
|
| 292 |
+
}
|
| 293 |
+
if (!current || dirty & /*elem_classes, equal_height*/
|
| 294 |
+
5) {
|
| 295 |
+
toggle_class(
|
| 296 |
+
div,
|
| 297 |
+
"unequal-height",
|
| 298 |
+
/*equal_height*/
|
| 299 |
+
ctx2[0] === false
|
| 300 |
+
);
|
| 301 |
+
}
|
| 302 |
+
if (!current || dirty & /*elem_classes, equal_height*/
|
| 303 |
+
5) {
|
| 304 |
+
toggle_class(
|
| 305 |
+
div,
|
| 306 |
+
"stretch",
|
| 307 |
+
/*equal_height*/
|
| 308 |
+
ctx2[0]
|
| 309 |
+
);
|
| 310 |
+
}
|
| 311 |
+
if (!current || dirty & /*elem_classes, visible*/
|
| 312 |
+
12) {
|
| 313 |
+
toggle_class(div, "hide", !/*visible*/
|
| 314 |
+
ctx2[3]);
|
| 315 |
+
}
|
| 316 |
+
if (dirty & /*height*/
|
| 317 |
+
256) {
|
| 318 |
+
set_style(
|
| 319 |
+
div,
|
| 320 |
+
"height",
|
| 321 |
+
/*get_dimension*/
|
| 322 |
+
ctx2[11](
|
| 323 |
+
/*height*/
|
| 324 |
+
ctx2[8]
|
| 325 |
+
)
|
| 326 |
+
);
|
| 327 |
+
}
|
| 328 |
+
if (dirty & /*max_height*/
|
| 329 |
+
1024) {
|
| 330 |
+
set_style(
|
| 331 |
+
div,
|
| 332 |
+
"max-height",
|
| 333 |
+
/*get_dimension*/
|
| 334 |
+
ctx2[11](
|
| 335 |
+
/*max_height*/
|
| 336 |
+
ctx2[10]
|
| 337 |
+
)
|
| 338 |
+
);
|
| 339 |
+
}
|
| 340 |
+
if (dirty & /*min_height*/
|
| 341 |
+
512) {
|
| 342 |
+
set_style(
|
| 343 |
+
div,
|
| 344 |
+
"min-height",
|
| 345 |
+
/*get_dimension*/
|
| 346 |
+
ctx2[11](
|
| 347 |
+
/*min_height*/
|
| 348 |
+
ctx2[9]
|
| 349 |
+
)
|
| 350 |
+
);
|
| 351 |
+
}
|
| 352 |
+
},
|
| 353 |
+
i(local) {
|
| 354 |
+
if (current)
|
| 355 |
+
return;
|
| 356 |
+
transition_in(if_block);
|
| 357 |
+
transition_in(default_slot, local);
|
| 358 |
+
current = true;
|
| 359 |
+
},
|
| 360 |
+
o(local) {
|
| 361 |
+
transition_out(if_block);
|
| 362 |
+
transition_out(default_slot, local);
|
| 363 |
+
current = false;
|
| 364 |
+
},
|
| 365 |
+
d(detaching) {
|
| 366 |
+
if (detaching) {
|
| 367 |
+
detach(div);
|
| 368 |
+
}
|
| 369 |
+
if (if_block)
|
| 370 |
+
if_block.d();
|
| 371 |
+
if (default_slot)
|
| 372 |
+
default_slot.d(detaching);
|
| 373 |
+
}
|
| 374 |
+
};
|
| 375 |
+
}
|
| 376 |
+
function instance($$self, $$props, $$invalidate) {
|
| 377 |
+
let { $$slots: slots = {}, $$scope } = $$props;
|
| 378 |
+
let { equal_height = true } = $$props;
|
| 379 |
+
let { elem_id } = $$props;
|
| 380 |
+
let { elem_classes = [] } = $$props;
|
| 381 |
+
let { visible = true } = $$props;
|
| 382 |
+
let { variant = "default" } = $$props;
|
| 383 |
+
let { loading_status = void 0 } = $$props;
|
| 384 |
+
let { gradio = void 0 } = $$props;
|
| 385 |
+
let { show_progress = false } = $$props;
|
| 386 |
+
let { height } = $$props;
|
| 387 |
+
let { min_height } = $$props;
|
| 388 |
+
let { max_height } = $$props;
|
| 389 |
+
const get_dimension = (dimension_value) => {
|
| 390 |
+
if (dimension_value === void 0) {
|
| 391 |
+
return void 0;
|
| 392 |
+
}
|
| 393 |
+
if (typeof dimension_value === "number") {
|
| 394 |
+
return dimension_value + "px";
|
| 395 |
+
} else if (typeof dimension_value === "string") {
|
| 396 |
+
return dimension_value;
|
| 397 |
+
}
|
| 398 |
+
};
|
| 399 |
+
$$self.$$set = ($$props2) => {
|
| 400 |
+
if ("equal_height" in $$props2)
|
| 401 |
+
$$invalidate(0, equal_height = $$props2.equal_height);
|
| 402 |
+
if ("elem_id" in $$props2)
|
| 403 |
+
$$invalidate(1, elem_id = $$props2.elem_id);
|
| 404 |
+
if ("elem_classes" in $$props2)
|
| 405 |
+
$$invalidate(2, elem_classes = $$props2.elem_classes);
|
| 406 |
+
if ("visible" in $$props2)
|
| 407 |
+
$$invalidate(3, visible = $$props2.visible);
|
| 408 |
+
if ("variant" in $$props2)
|
| 409 |
+
$$invalidate(4, variant = $$props2.variant);
|
| 410 |
+
if ("loading_status" in $$props2)
|
| 411 |
+
$$invalidate(5, loading_status = $$props2.loading_status);
|
| 412 |
+
if ("gradio" in $$props2)
|
| 413 |
+
$$invalidate(6, gradio = $$props2.gradio);
|
| 414 |
+
if ("show_progress" in $$props2)
|
| 415 |
+
$$invalidate(7, show_progress = $$props2.show_progress);
|
| 416 |
+
if ("height" in $$props2)
|
| 417 |
+
$$invalidate(8, height = $$props2.height);
|
| 418 |
+
if ("min_height" in $$props2)
|
| 419 |
+
$$invalidate(9, min_height = $$props2.min_height);
|
| 420 |
+
if ("max_height" in $$props2)
|
| 421 |
+
$$invalidate(10, max_height = $$props2.max_height);
|
| 422 |
+
if ("$$scope" in $$props2)
|
| 423 |
+
$$invalidate(12, $$scope = $$props2.$$scope);
|
| 424 |
+
};
|
| 425 |
+
return [
|
| 426 |
+
equal_height,
|
| 427 |
+
elem_id,
|
| 428 |
+
elem_classes,
|
| 429 |
+
visible,
|
| 430 |
+
variant,
|
| 431 |
+
loading_status,
|
| 432 |
+
gradio,
|
| 433 |
+
show_progress,
|
| 434 |
+
height,
|
| 435 |
+
min_height,
|
| 436 |
+
max_height,
|
| 437 |
+
get_dimension,
|
| 438 |
+
$$scope,
|
| 439 |
+
slots
|
| 440 |
+
];
|
| 441 |
+
}
|
| 442 |
+
class Index extends SvelteComponent {
|
| 443 |
+
constructor(options) {
|
| 444 |
+
super();
|
| 445 |
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
| 446 |
+
equal_height: 0,
|
| 447 |
+
elem_id: 1,
|
| 448 |
+
elem_classes: 2,
|
| 449 |
+
visible: 3,
|
| 450 |
+
variant: 4,
|
| 451 |
+
loading_status: 5,
|
| 452 |
+
gradio: 6,
|
| 453 |
+
show_progress: 7,
|
| 454 |
+
height: 8,
|
| 455 |
+
min_height: 9,
|
| 456 |
+
max_height: 10
|
| 457 |
+
});
|
| 458 |
+
}
|
| 459 |
+
}
|
| 460 |
+
export {
|
| 461 |
+
Index as default
|
| 462 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BR6IOxxo.js
ADDED
|
@@ -0,0 +1,626 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, element, space, text, claim_element, children, claim_space, claim_text, detach, attr, toggle_class, insert_hydration, append_hydration, listen, set_data, noop, run_all, createEventDispatcher, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component, afterUpdate, assign, binding_callbacks, bind, get_spread_update, get_spread_object, group_outros, check_outros, add_flush_callback } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { B as Block, S as Static, q as Info } from "./2.BS1fgMUm.js";
|
| 4 |
+
function create_fragment$1(ctx) {
|
| 5 |
+
let label_1;
|
| 6 |
+
let input;
|
| 7 |
+
let t0;
|
| 8 |
+
let span;
|
| 9 |
+
let t1;
|
| 10 |
+
let mounted;
|
| 11 |
+
let dispose;
|
| 12 |
+
return {
|
| 13 |
+
c() {
|
| 14 |
+
label_1 = element("label");
|
| 15 |
+
input = element("input");
|
| 16 |
+
t0 = space();
|
| 17 |
+
span = element("span");
|
| 18 |
+
t1 = text(
|
| 19 |
+
/*label*/
|
| 20 |
+
ctx[1]
|
| 21 |
+
);
|
| 22 |
+
this.h();
|
| 23 |
+
},
|
| 24 |
+
l(nodes) {
|
| 25 |
+
label_1 = claim_element(nodes, "LABEL", { class: true });
|
| 26 |
+
var label_1_nodes = children(label_1);
|
| 27 |
+
input = claim_element(label_1_nodes, "INPUT", {
|
| 28 |
+
type: true,
|
| 29 |
+
name: true,
|
| 30 |
+
"data-testid": true,
|
| 31 |
+
class: true
|
| 32 |
+
});
|
| 33 |
+
t0 = claim_space(label_1_nodes);
|
| 34 |
+
span = claim_element(label_1_nodes, "SPAN", { class: true });
|
| 35 |
+
var span_nodes = children(span);
|
| 36 |
+
t1 = claim_text(
|
| 37 |
+
span_nodes,
|
| 38 |
+
/*label*/
|
| 39 |
+
ctx[1]
|
| 40 |
+
);
|
| 41 |
+
span_nodes.forEach(detach);
|
| 42 |
+
label_1_nodes.forEach(detach);
|
| 43 |
+
this.h();
|
| 44 |
+
},
|
| 45 |
+
h() {
|
| 46 |
+
input.disabled = /*disabled*/
|
| 47 |
+
ctx[2];
|
| 48 |
+
attr(input, "type", "checkbox");
|
| 49 |
+
attr(input, "name", "test");
|
| 50 |
+
attr(input, "data-testid", "checkbox");
|
| 51 |
+
attr(input, "class", "svelte-5ncdh7");
|
| 52 |
+
attr(span, "class", "svelte-5ncdh7");
|
| 53 |
+
attr(label_1, "class", "svelte-5ncdh7");
|
| 54 |
+
toggle_class(
|
| 55 |
+
label_1,
|
| 56 |
+
"disabled",
|
| 57 |
+
/*disabled*/
|
| 58 |
+
ctx[2]
|
| 59 |
+
);
|
| 60 |
+
},
|
| 61 |
+
m(target, anchor) {
|
| 62 |
+
insert_hydration(target, label_1, anchor);
|
| 63 |
+
append_hydration(label_1, input);
|
| 64 |
+
input.checked = /*value*/
|
| 65 |
+
ctx[0];
|
| 66 |
+
append_hydration(label_1, t0);
|
| 67 |
+
append_hydration(label_1, span);
|
| 68 |
+
append_hydration(span, t1);
|
| 69 |
+
if (!mounted) {
|
| 70 |
+
dispose = [
|
| 71 |
+
listen(
|
| 72 |
+
input,
|
| 73 |
+
"change",
|
| 74 |
+
/*input_change_handler*/
|
| 75 |
+
ctx[6]
|
| 76 |
+
),
|
| 77 |
+
listen(
|
| 78 |
+
input,
|
| 79 |
+
"keydown",
|
| 80 |
+
/*handle_enter*/
|
| 81 |
+
ctx[3]
|
| 82 |
+
),
|
| 83 |
+
listen(
|
| 84 |
+
input,
|
| 85 |
+
"input",
|
| 86 |
+
/*handle_input*/
|
| 87 |
+
ctx[4]
|
| 88 |
+
)
|
| 89 |
+
];
|
| 90 |
+
mounted = true;
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
p(ctx2, [dirty]) {
|
| 94 |
+
if (dirty & /*disabled*/
|
| 95 |
+
4) {
|
| 96 |
+
input.disabled = /*disabled*/
|
| 97 |
+
ctx2[2];
|
| 98 |
+
}
|
| 99 |
+
if (dirty & /*value*/
|
| 100 |
+
1) {
|
| 101 |
+
input.checked = /*value*/
|
| 102 |
+
ctx2[0];
|
| 103 |
+
}
|
| 104 |
+
if (dirty & /*label*/
|
| 105 |
+
2)
|
| 106 |
+
set_data(
|
| 107 |
+
t1,
|
| 108 |
+
/*label*/
|
| 109 |
+
ctx2[1]
|
| 110 |
+
);
|
| 111 |
+
if (dirty & /*disabled*/
|
| 112 |
+
4) {
|
| 113 |
+
toggle_class(
|
| 114 |
+
label_1,
|
| 115 |
+
"disabled",
|
| 116 |
+
/*disabled*/
|
| 117 |
+
ctx2[2]
|
| 118 |
+
);
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
i: noop,
|
| 122 |
+
o: noop,
|
| 123 |
+
d(detaching) {
|
| 124 |
+
if (detaching) {
|
| 125 |
+
detach(label_1);
|
| 126 |
+
}
|
| 127 |
+
mounted = false;
|
| 128 |
+
run_all(dispose);
|
| 129 |
+
}
|
| 130 |
+
};
|
| 131 |
+
}
|
| 132 |
+
function instance$1($$self, $$props, $$invalidate) {
|
| 133 |
+
let disabled;
|
| 134 |
+
let { value = false } = $$props;
|
| 135 |
+
let { label = "Checkbox" } = $$props;
|
| 136 |
+
let { interactive } = $$props;
|
| 137 |
+
const dispatch = createEventDispatcher();
|
| 138 |
+
async function handle_enter(event) {
|
| 139 |
+
if (event.key === "Enter") {
|
| 140 |
+
$$invalidate(0, value = !value);
|
| 141 |
+
dispatch("select", {
|
| 142 |
+
index: 0,
|
| 143 |
+
value: event.currentTarget.checked,
|
| 144 |
+
selected: event.currentTarget.checked
|
| 145 |
+
});
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
async function handle_input(event) {
|
| 149 |
+
$$invalidate(0, value = event.currentTarget.checked);
|
| 150 |
+
dispatch("select", {
|
| 151 |
+
index: 0,
|
| 152 |
+
value: event.currentTarget.checked,
|
| 153 |
+
selected: event.currentTarget.checked
|
| 154 |
+
});
|
| 155 |
+
}
|
| 156 |
+
function input_change_handler() {
|
| 157 |
+
value = this.checked;
|
| 158 |
+
$$invalidate(0, value);
|
| 159 |
+
}
|
| 160 |
+
$$self.$$set = ($$props2) => {
|
| 161 |
+
if ("value" in $$props2)
|
| 162 |
+
$$invalidate(0, value = $$props2.value);
|
| 163 |
+
if ("label" in $$props2)
|
| 164 |
+
$$invalidate(1, label = $$props2.label);
|
| 165 |
+
if ("interactive" in $$props2)
|
| 166 |
+
$$invalidate(5, interactive = $$props2.interactive);
|
| 167 |
+
};
|
| 168 |
+
$$self.$$.update = () => {
|
| 169 |
+
if ($$self.$$.dirty & /*value*/
|
| 170 |
+
1) {
|
| 171 |
+
dispatch("change", value);
|
| 172 |
+
}
|
| 173 |
+
if ($$self.$$.dirty & /*interactive*/
|
| 174 |
+
32) {
|
| 175 |
+
$$invalidate(2, disabled = !interactive);
|
| 176 |
+
}
|
| 177 |
+
};
|
| 178 |
+
return [
|
| 179 |
+
value,
|
| 180 |
+
label,
|
| 181 |
+
disabled,
|
| 182 |
+
handle_enter,
|
| 183 |
+
handle_input,
|
| 184 |
+
interactive,
|
| 185 |
+
input_change_handler
|
| 186 |
+
];
|
| 187 |
+
}
|
| 188 |
+
class Checkbox extends SvelteComponent {
|
| 189 |
+
constructor(options) {
|
| 190 |
+
super();
|
| 191 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { value: 0, label: 1, interactive: 5 });
|
| 192 |
+
}
|
| 193 |
+
}
|
| 194 |
+
const BaseCheckbox = Checkbox;
|
| 195 |
+
function create_if_block(ctx) {
|
| 196 |
+
let info_1;
|
| 197 |
+
let current;
|
| 198 |
+
info_1 = new Info({
|
| 199 |
+
props: {
|
| 200 |
+
root: (
|
| 201 |
+
/*root*/
|
| 202 |
+
ctx[6]
|
| 203 |
+
),
|
| 204 |
+
info: (
|
| 205 |
+
/*info*/
|
| 206 |
+
ctx[5]
|
| 207 |
+
)
|
| 208 |
+
}
|
| 209 |
+
});
|
| 210 |
+
return {
|
| 211 |
+
c() {
|
| 212 |
+
create_component(info_1.$$.fragment);
|
| 213 |
+
},
|
| 214 |
+
l(nodes) {
|
| 215 |
+
claim_component(info_1.$$.fragment, nodes);
|
| 216 |
+
},
|
| 217 |
+
m(target, anchor) {
|
| 218 |
+
mount_component(info_1, target, anchor);
|
| 219 |
+
current = true;
|
| 220 |
+
},
|
| 221 |
+
p(ctx2, dirty) {
|
| 222 |
+
const info_1_changes = {};
|
| 223 |
+
if (dirty & /*root*/
|
| 224 |
+
64)
|
| 225 |
+
info_1_changes.root = /*root*/
|
| 226 |
+
ctx2[6];
|
| 227 |
+
if (dirty & /*info*/
|
| 228 |
+
32)
|
| 229 |
+
info_1_changes.info = /*info*/
|
| 230 |
+
ctx2[5];
|
| 231 |
+
info_1.$set(info_1_changes);
|
| 232 |
+
},
|
| 233 |
+
i(local) {
|
| 234 |
+
if (current)
|
| 235 |
+
return;
|
| 236 |
+
transition_in(info_1.$$.fragment, local);
|
| 237 |
+
current = true;
|
| 238 |
+
},
|
| 239 |
+
o(local) {
|
| 240 |
+
transition_out(info_1.$$.fragment, local);
|
| 241 |
+
current = false;
|
| 242 |
+
},
|
| 243 |
+
d(detaching) {
|
| 244 |
+
destroy_component(info_1, detaching);
|
| 245 |
+
}
|
| 246 |
+
};
|
| 247 |
+
}
|
| 248 |
+
function create_default_slot(ctx) {
|
| 249 |
+
let statustracker;
|
| 250 |
+
let t0;
|
| 251 |
+
let t1;
|
| 252 |
+
let basecheckbox;
|
| 253 |
+
let updating_value;
|
| 254 |
+
let current;
|
| 255 |
+
const statustracker_spread_levels = [
|
| 256 |
+
{
|
| 257 |
+
autoscroll: (
|
| 258 |
+
/*gradio*/
|
| 259 |
+
ctx[11].autoscroll
|
| 260 |
+
)
|
| 261 |
+
},
|
| 262 |
+
{ i18n: (
|
| 263 |
+
/*gradio*/
|
| 264 |
+
ctx[11].i18n
|
| 265 |
+
) },
|
| 266 |
+
/*loading_status*/
|
| 267 |
+
ctx[10]
|
| 268 |
+
];
|
| 269 |
+
let statustracker_props = {};
|
| 270 |
+
for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
|
| 271 |
+
statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
|
| 272 |
+
}
|
| 273 |
+
statustracker = new Static({ props: statustracker_props });
|
| 274 |
+
statustracker.$on(
|
| 275 |
+
"clear_status",
|
| 276 |
+
/*clear_status_handler*/
|
| 277 |
+
ctx[15]
|
| 278 |
+
);
|
| 279 |
+
let if_block = (
|
| 280 |
+
/*info*/
|
| 281 |
+
ctx[5] && create_if_block(ctx)
|
| 282 |
+
);
|
| 283 |
+
function basecheckbox_value_binding(value) {
|
| 284 |
+
ctx[16](value);
|
| 285 |
+
}
|
| 286 |
+
let basecheckbox_props = {
|
| 287 |
+
label: (
|
| 288 |
+
/*label*/
|
| 289 |
+
ctx[4]
|
| 290 |
+
),
|
| 291 |
+
interactive: (
|
| 292 |
+
/*interactive*/
|
| 293 |
+
ctx[12]
|
| 294 |
+
)
|
| 295 |
+
};
|
| 296 |
+
if (
|
| 297 |
+
/*value*/
|
| 298 |
+
ctx[0] !== void 0
|
| 299 |
+
) {
|
| 300 |
+
basecheckbox_props.value = /*value*/
|
| 301 |
+
ctx[0];
|
| 302 |
+
}
|
| 303 |
+
basecheckbox = new BaseCheckbox({ props: basecheckbox_props });
|
| 304 |
+
binding_callbacks.push(() => bind(basecheckbox, "value", basecheckbox_value_binding));
|
| 305 |
+
basecheckbox.$on(
|
| 306 |
+
"change",
|
| 307 |
+
/*handle_change*/
|
| 308 |
+
ctx[13]
|
| 309 |
+
);
|
| 310 |
+
basecheckbox.$on(
|
| 311 |
+
"select",
|
| 312 |
+
/*select_handler*/
|
| 313 |
+
ctx[17]
|
| 314 |
+
);
|
| 315 |
+
return {
|
| 316 |
+
c() {
|
| 317 |
+
create_component(statustracker.$$.fragment);
|
| 318 |
+
t0 = space();
|
| 319 |
+
if (if_block)
|
| 320 |
+
if_block.c();
|
| 321 |
+
t1 = space();
|
| 322 |
+
create_component(basecheckbox.$$.fragment);
|
| 323 |
+
},
|
| 324 |
+
l(nodes) {
|
| 325 |
+
claim_component(statustracker.$$.fragment, nodes);
|
| 326 |
+
t0 = claim_space(nodes);
|
| 327 |
+
if (if_block)
|
| 328 |
+
if_block.l(nodes);
|
| 329 |
+
t1 = claim_space(nodes);
|
| 330 |
+
claim_component(basecheckbox.$$.fragment, nodes);
|
| 331 |
+
},
|
| 332 |
+
m(target, anchor) {
|
| 333 |
+
mount_component(statustracker, target, anchor);
|
| 334 |
+
insert_hydration(target, t0, anchor);
|
| 335 |
+
if (if_block)
|
| 336 |
+
if_block.m(target, anchor);
|
| 337 |
+
insert_hydration(target, t1, anchor);
|
| 338 |
+
mount_component(basecheckbox, target, anchor);
|
| 339 |
+
current = true;
|
| 340 |
+
},
|
| 341 |
+
p(ctx2, dirty) {
|
| 342 |
+
const statustracker_changes = dirty & /*gradio, loading_status*/
|
| 343 |
+
3072 ? get_spread_update(statustracker_spread_levels, [
|
| 344 |
+
dirty & /*gradio*/
|
| 345 |
+
2048 && {
|
| 346 |
+
autoscroll: (
|
| 347 |
+
/*gradio*/
|
| 348 |
+
ctx2[11].autoscroll
|
| 349 |
+
)
|
| 350 |
+
},
|
| 351 |
+
dirty & /*gradio*/
|
| 352 |
+
2048 && { i18n: (
|
| 353 |
+
/*gradio*/
|
| 354 |
+
ctx2[11].i18n
|
| 355 |
+
) },
|
| 356 |
+
dirty & /*loading_status*/
|
| 357 |
+
1024 && get_spread_object(
|
| 358 |
+
/*loading_status*/
|
| 359 |
+
ctx2[10]
|
| 360 |
+
)
|
| 361 |
+
]) : {};
|
| 362 |
+
statustracker.$set(statustracker_changes);
|
| 363 |
+
if (
|
| 364 |
+
/*info*/
|
| 365 |
+
ctx2[5]
|
| 366 |
+
) {
|
| 367 |
+
if (if_block) {
|
| 368 |
+
if_block.p(ctx2, dirty);
|
| 369 |
+
if (dirty & /*info*/
|
| 370 |
+
32) {
|
| 371 |
+
transition_in(if_block, 1);
|
| 372 |
+
}
|
| 373 |
+
} else {
|
| 374 |
+
if_block = create_if_block(ctx2);
|
| 375 |
+
if_block.c();
|
| 376 |
+
transition_in(if_block, 1);
|
| 377 |
+
if_block.m(t1.parentNode, t1);
|
| 378 |
+
}
|
| 379 |
+
} else if (if_block) {
|
| 380 |
+
group_outros();
|
| 381 |
+
transition_out(if_block, 1, 1, () => {
|
| 382 |
+
if_block = null;
|
| 383 |
+
});
|
| 384 |
+
check_outros();
|
| 385 |
+
}
|
| 386 |
+
const basecheckbox_changes = {};
|
| 387 |
+
if (dirty & /*label*/
|
| 388 |
+
16)
|
| 389 |
+
basecheckbox_changes.label = /*label*/
|
| 390 |
+
ctx2[4];
|
| 391 |
+
if (dirty & /*interactive*/
|
| 392 |
+
4096)
|
| 393 |
+
basecheckbox_changes.interactive = /*interactive*/
|
| 394 |
+
ctx2[12];
|
| 395 |
+
if (!updating_value && dirty & /*value*/
|
| 396 |
+
1) {
|
| 397 |
+
updating_value = true;
|
| 398 |
+
basecheckbox_changes.value = /*value*/
|
| 399 |
+
ctx2[0];
|
| 400 |
+
add_flush_callback(() => updating_value = false);
|
| 401 |
+
}
|
| 402 |
+
basecheckbox.$set(basecheckbox_changes);
|
| 403 |
+
},
|
| 404 |
+
i(local) {
|
| 405 |
+
if (current)
|
| 406 |
+
return;
|
| 407 |
+
transition_in(statustracker.$$.fragment, local);
|
| 408 |
+
transition_in(if_block);
|
| 409 |
+
transition_in(basecheckbox.$$.fragment, local);
|
| 410 |
+
current = true;
|
| 411 |
+
},
|
| 412 |
+
o(local) {
|
| 413 |
+
transition_out(statustracker.$$.fragment, local);
|
| 414 |
+
transition_out(if_block);
|
| 415 |
+
transition_out(basecheckbox.$$.fragment, local);
|
| 416 |
+
current = false;
|
| 417 |
+
},
|
| 418 |
+
d(detaching) {
|
| 419 |
+
if (detaching) {
|
| 420 |
+
detach(t0);
|
| 421 |
+
detach(t1);
|
| 422 |
+
}
|
| 423 |
+
destroy_component(statustracker, detaching);
|
| 424 |
+
if (if_block)
|
| 425 |
+
if_block.d(detaching);
|
| 426 |
+
destroy_component(basecheckbox, detaching);
|
| 427 |
+
}
|
| 428 |
+
};
|
| 429 |
+
}
|
| 430 |
+
function create_fragment(ctx) {
|
| 431 |
+
let block;
|
| 432 |
+
let current;
|
| 433 |
+
block = new Block({
|
| 434 |
+
props: {
|
| 435 |
+
visible: (
|
| 436 |
+
/*visible*/
|
| 437 |
+
ctx[3]
|
| 438 |
+
),
|
| 439 |
+
elem_id: (
|
| 440 |
+
/*elem_id*/
|
| 441 |
+
ctx[1]
|
| 442 |
+
),
|
| 443 |
+
elem_classes: (
|
| 444 |
+
/*elem_classes*/
|
| 445 |
+
ctx[2]
|
| 446 |
+
),
|
| 447 |
+
container: (
|
| 448 |
+
/*container*/
|
| 449 |
+
ctx[7]
|
| 450 |
+
),
|
| 451 |
+
scale: (
|
| 452 |
+
/*scale*/
|
| 453 |
+
ctx[8]
|
| 454 |
+
),
|
| 455 |
+
min_width: (
|
| 456 |
+
/*min_width*/
|
| 457 |
+
ctx[9]
|
| 458 |
+
),
|
| 459 |
+
$$slots: { default: [create_default_slot] },
|
| 460 |
+
$$scope: { ctx }
|
| 461 |
+
}
|
| 462 |
+
});
|
| 463 |
+
return {
|
| 464 |
+
c() {
|
| 465 |
+
create_component(block.$$.fragment);
|
| 466 |
+
},
|
| 467 |
+
l(nodes) {
|
| 468 |
+
claim_component(block.$$.fragment, nodes);
|
| 469 |
+
},
|
| 470 |
+
m(target, anchor) {
|
| 471 |
+
mount_component(block, target, anchor);
|
| 472 |
+
current = true;
|
| 473 |
+
},
|
| 474 |
+
p(ctx2, [dirty]) {
|
| 475 |
+
const block_changes = {};
|
| 476 |
+
if (dirty & /*visible*/
|
| 477 |
+
8)
|
| 478 |
+
block_changes.visible = /*visible*/
|
| 479 |
+
ctx2[3];
|
| 480 |
+
if (dirty & /*elem_id*/
|
| 481 |
+
2)
|
| 482 |
+
block_changes.elem_id = /*elem_id*/
|
| 483 |
+
ctx2[1];
|
| 484 |
+
if (dirty & /*elem_classes*/
|
| 485 |
+
4)
|
| 486 |
+
block_changes.elem_classes = /*elem_classes*/
|
| 487 |
+
ctx2[2];
|
| 488 |
+
if (dirty & /*container*/
|
| 489 |
+
128)
|
| 490 |
+
block_changes.container = /*container*/
|
| 491 |
+
ctx2[7];
|
| 492 |
+
if (dirty & /*scale*/
|
| 493 |
+
256)
|
| 494 |
+
block_changes.scale = /*scale*/
|
| 495 |
+
ctx2[8];
|
| 496 |
+
if (dirty & /*min_width*/
|
| 497 |
+
512)
|
| 498 |
+
block_changes.min_width = /*min_width*/
|
| 499 |
+
ctx2[9];
|
| 500 |
+
if (dirty & /*$$scope, label, interactive, value, gradio, root, info, loading_status*/
|
| 501 |
+
269425) {
|
| 502 |
+
block_changes.$$scope = { dirty, ctx: ctx2 };
|
| 503 |
+
}
|
| 504 |
+
block.$set(block_changes);
|
| 505 |
+
},
|
| 506 |
+
i(local) {
|
| 507 |
+
if (current)
|
| 508 |
+
return;
|
| 509 |
+
transition_in(block.$$.fragment, local);
|
| 510 |
+
current = true;
|
| 511 |
+
},
|
| 512 |
+
o(local) {
|
| 513 |
+
transition_out(block.$$.fragment, local);
|
| 514 |
+
current = false;
|
| 515 |
+
},
|
| 516 |
+
d(detaching) {
|
| 517 |
+
destroy_component(block, detaching);
|
| 518 |
+
}
|
| 519 |
+
};
|
| 520 |
+
}
|
| 521 |
+
function instance($$self, $$props, $$invalidate) {
|
| 522 |
+
let { elem_id = "" } = $$props;
|
| 523 |
+
let { elem_classes = [] } = $$props;
|
| 524 |
+
let { visible = true } = $$props;
|
| 525 |
+
let { value = false } = $$props;
|
| 526 |
+
let { value_is_output = false } = $$props;
|
| 527 |
+
let { label = "Checkbox" } = $$props;
|
| 528 |
+
let { info = void 0 } = $$props;
|
| 529 |
+
let { root } = $$props;
|
| 530 |
+
let { container = true } = $$props;
|
| 531 |
+
let { scale = null } = $$props;
|
| 532 |
+
let { min_width = void 0 } = $$props;
|
| 533 |
+
let { loading_status } = $$props;
|
| 534 |
+
let { gradio } = $$props;
|
| 535 |
+
let { interactive } = $$props;
|
| 536 |
+
function handle_change() {
|
| 537 |
+
gradio.dispatch("change");
|
| 538 |
+
if (!value_is_output) {
|
| 539 |
+
gradio.dispatch("input");
|
| 540 |
+
}
|
| 541 |
+
}
|
| 542 |
+
afterUpdate(() => {
|
| 543 |
+
$$invalidate(14, value_is_output = false);
|
| 544 |
+
});
|
| 545 |
+
const clear_status_handler = () => gradio.dispatch("clear_status", loading_status);
|
| 546 |
+
function basecheckbox_value_binding(value$1) {
|
| 547 |
+
value = value$1;
|
| 548 |
+
$$invalidate(0, value);
|
| 549 |
+
}
|
| 550 |
+
const select_handler = (e) => gradio.dispatch("select", e.detail);
|
| 551 |
+
$$self.$$set = ($$props2) => {
|
| 552 |
+
if ("elem_id" in $$props2)
|
| 553 |
+
$$invalidate(1, elem_id = $$props2.elem_id);
|
| 554 |
+
if ("elem_classes" in $$props2)
|
| 555 |
+
$$invalidate(2, elem_classes = $$props2.elem_classes);
|
| 556 |
+
if ("visible" in $$props2)
|
| 557 |
+
$$invalidate(3, visible = $$props2.visible);
|
| 558 |
+
if ("value" in $$props2)
|
| 559 |
+
$$invalidate(0, value = $$props2.value);
|
| 560 |
+
if ("value_is_output" in $$props2)
|
| 561 |
+
$$invalidate(14, value_is_output = $$props2.value_is_output);
|
| 562 |
+
if ("label" in $$props2)
|
| 563 |
+
$$invalidate(4, label = $$props2.label);
|
| 564 |
+
if ("info" in $$props2)
|
| 565 |
+
$$invalidate(5, info = $$props2.info);
|
| 566 |
+
if ("root" in $$props2)
|
| 567 |
+
$$invalidate(6, root = $$props2.root);
|
| 568 |
+
if ("container" in $$props2)
|
| 569 |
+
$$invalidate(7, container = $$props2.container);
|
| 570 |
+
if ("scale" in $$props2)
|
| 571 |
+
$$invalidate(8, scale = $$props2.scale);
|
| 572 |
+
if ("min_width" in $$props2)
|
| 573 |
+
$$invalidate(9, min_width = $$props2.min_width);
|
| 574 |
+
if ("loading_status" in $$props2)
|
| 575 |
+
$$invalidate(10, loading_status = $$props2.loading_status);
|
| 576 |
+
if ("gradio" in $$props2)
|
| 577 |
+
$$invalidate(11, gradio = $$props2.gradio);
|
| 578 |
+
if ("interactive" in $$props2)
|
| 579 |
+
$$invalidate(12, interactive = $$props2.interactive);
|
| 580 |
+
};
|
| 581 |
+
return [
|
| 582 |
+
value,
|
| 583 |
+
elem_id,
|
| 584 |
+
elem_classes,
|
| 585 |
+
visible,
|
| 586 |
+
label,
|
| 587 |
+
info,
|
| 588 |
+
root,
|
| 589 |
+
container,
|
| 590 |
+
scale,
|
| 591 |
+
min_width,
|
| 592 |
+
loading_status,
|
| 593 |
+
gradio,
|
| 594 |
+
interactive,
|
| 595 |
+
handle_change,
|
| 596 |
+
value_is_output,
|
| 597 |
+
clear_status_handler,
|
| 598 |
+
basecheckbox_value_binding,
|
| 599 |
+
select_handler
|
| 600 |
+
];
|
| 601 |
+
}
|
| 602 |
+
class Index extends SvelteComponent {
|
| 603 |
+
constructor(options) {
|
| 604 |
+
super();
|
| 605 |
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
| 606 |
+
elem_id: 1,
|
| 607 |
+
elem_classes: 2,
|
| 608 |
+
visible: 3,
|
| 609 |
+
value: 0,
|
| 610 |
+
value_is_output: 14,
|
| 611 |
+
label: 4,
|
| 612 |
+
info: 5,
|
| 613 |
+
root: 6,
|
| 614 |
+
container: 7,
|
| 615 |
+
scale: 8,
|
| 616 |
+
min_width: 9,
|
| 617 |
+
loading_status: 10,
|
| 618 |
+
gradio: 11,
|
| 619 |
+
interactive: 12
|
| 620 |
+
});
|
| 621 |
+
}
|
| 622 |
+
}
|
| 623 |
+
export {
|
| 624 |
+
BaseCheckbox,
|
| 625 |
+
Index as default
|
| 626 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BR6IOxxo.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ea722f4645a5503277c81f6f906622c66f0d547ddb7ca59e98620ae8392b36b
|
| 3 |
+
size 3441
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BT-Vdx4H.js
ADDED
|
@@ -0,0 +1,807 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component, createEventDispatcher, assign, space, empty, claim_space, insert_hydration, get_spread_update, get_spread_object, group_outros, check_outros, detach, binding_callbacks, bind, add_flush_callback } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { B as Block, S as Static } from "./2.BS1fgMUm.js";
|
| 4 |
+
import { U as UploadText } from "./UploadText.Dr_Z3IFG.js";
|
| 5 |
+
import Gallery from "./Gallery.HXgWnEV3.js";
|
| 6 |
+
import { B as BaseFileUpload } from "./FileUpload.MIUDM8EV.js";
|
| 7 |
+
/* empty css */
|
| 8 |
+
function create_else_block(ctx) {
|
| 9 |
+
let gallery;
|
| 10 |
+
let updating_selected_index;
|
| 11 |
+
let updating_value;
|
| 12 |
+
let current;
|
| 13 |
+
function gallery_selected_index_binding(value) {
|
| 14 |
+
ctx[31](value);
|
| 15 |
+
}
|
| 16 |
+
function gallery_value_binding(value) {
|
| 17 |
+
ctx[32](value);
|
| 18 |
+
}
|
| 19 |
+
let gallery_props = {
|
| 20 |
+
label: (
|
| 21 |
+
/*label*/
|
| 22 |
+
ctx[4]
|
| 23 |
+
),
|
| 24 |
+
show_label: (
|
| 25 |
+
/*show_label*/
|
| 26 |
+
ctx[3]
|
| 27 |
+
),
|
| 28 |
+
columns: (
|
| 29 |
+
/*columns*/
|
| 30 |
+
ctx[13]
|
| 31 |
+
),
|
| 32 |
+
rows: (
|
| 33 |
+
/*rows*/
|
| 34 |
+
ctx[14]
|
| 35 |
+
),
|
| 36 |
+
height: (
|
| 37 |
+
/*height*/
|
| 38 |
+
ctx[15]
|
| 39 |
+
),
|
| 40 |
+
preview: (
|
| 41 |
+
/*preview*/
|
| 42 |
+
ctx[16]
|
| 43 |
+
),
|
| 44 |
+
object_fit: (
|
| 45 |
+
/*object_fit*/
|
| 46 |
+
ctx[18]
|
| 47 |
+
),
|
| 48 |
+
interactive: (
|
| 49 |
+
/*interactive*/
|
| 50 |
+
ctx[20]
|
| 51 |
+
),
|
| 52 |
+
allow_preview: (
|
| 53 |
+
/*allow_preview*/
|
| 54 |
+
ctx[17]
|
| 55 |
+
),
|
| 56 |
+
show_share_button: (
|
| 57 |
+
/*show_share_button*/
|
| 58 |
+
ctx[19]
|
| 59 |
+
),
|
| 60 |
+
show_download_button: (
|
| 61 |
+
/*show_download_button*/
|
| 62 |
+
ctx[21]
|
| 63 |
+
),
|
| 64 |
+
i18n: (
|
| 65 |
+
/*gradio*/
|
| 66 |
+
ctx[22].i18n
|
| 67 |
+
),
|
| 68 |
+
_fetch: (
|
| 69 |
+
/*func_2*/
|
| 70 |
+
ctx[30]
|
| 71 |
+
),
|
| 72 |
+
show_fullscreen_button: (
|
| 73 |
+
/*show_fullscreen_button*/
|
| 74 |
+
ctx[23]
|
| 75 |
+
)
|
| 76 |
+
};
|
| 77 |
+
if (
|
| 78 |
+
/*selected_index*/
|
| 79 |
+
ctx[1] !== void 0
|
| 80 |
+
) {
|
| 81 |
+
gallery_props.selected_index = /*selected_index*/
|
| 82 |
+
ctx[1];
|
| 83 |
+
}
|
| 84 |
+
if (
|
| 85 |
+
/*value*/
|
| 86 |
+
ctx[0] !== void 0
|
| 87 |
+
) {
|
| 88 |
+
gallery_props.value = /*value*/
|
| 89 |
+
ctx[0];
|
| 90 |
+
}
|
| 91 |
+
gallery = new Gallery({ props: gallery_props });
|
| 92 |
+
binding_callbacks.push(() => bind(gallery, "selected_index", gallery_selected_index_binding));
|
| 93 |
+
binding_callbacks.push(() => bind(gallery, "value", gallery_value_binding));
|
| 94 |
+
gallery.$on(
|
| 95 |
+
"change",
|
| 96 |
+
/*change_handler*/
|
| 97 |
+
ctx[33]
|
| 98 |
+
);
|
| 99 |
+
gallery.$on(
|
| 100 |
+
"select",
|
| 101 |
+
/*select_handler*/
|
| 102 |
+
ctx[34]
|
| 103 |
+
);
|
| 104 |
+
gallery.$on(
|
| 105 |
+
"share",
|
| 106 |
+
/*share_handler*/
|
| 107 |
+
ctx[35]
|
| 108 |
+
);
|
| 109 |
+
gallery.$on(
|
| 110 |
+
"error",
|
| 111 |
+
/*error_handler_1*/
|
| 112 |
+
ctx[36]
|
| 113 |
+
);
|
| 114 |
+
return {
|
| 115 |
+
c() {
|
| 116 |
+
create_component(gallery.$$.fragment);
|
| 117 |
+
},
|
| 118 |
+
l(nodes) {
|
| 119 |
+
claim_component(gallery.$$.fragment, nodes);
|
| 120 |
+
},
|
| 121 |
+
m(target, anchor) {
|
| 122 |
+
mount_component(gallery, target, anchor);
|
| 123 |
+
current = true;
|
| 124 |
+
},
|
| 125 |
+
p(ctx2, dirty) {
|
| 126 |
+
const gallery_changes = {};
|
| 127 |
+
if (dirty[0] & /*label*/
|
| 128 |
+
16)
|
| 129 |
+
gallery_changes.label = /*label*/
|
| 130 |
+
ctx2[4];
|
| 131 |
+
if (dirty[0] & /*show_label*/
|
| 132 |
+
8)
|
| 133 |
+
gallery_changes.show_label = /*show_label*/
|
| 134 |
+
ctx2[3];
|
| 135 |
+
if (dirty[0] & /*columns*/
|
| 136 |
+
8192)
|
| 137 |
+
gallery_changes.columns = /*columns*/
|
| 138 |
+
ctx2[13];
|
| 139 |
+
if (dirty[0] & /*rows*/
|
| 140 |
+
16384)
|
| 141 |
+
gallery_changes.rows = /*rows*/
|
| 142 |
+
ctx2[14];
|
| 143 |
+
if (dirty[0] & /*height*/
|
| 144 |
+
32768)
|
| 145 |
+
gallery_changes.height = /*height*/
|
| 146 |
+
ctx2[15];
|
| 147 |
+
if (dirty[0] & /*preview*/
|
| 148 |
+
65536)
|
| 149 |
+
gallery_changes.preview = /*preview*/
|
| 150 |
+
ctx2[16];
|
| 151 |
+
if (dirty[0] & /*object_fit*/
|
| 152 |
+
262144)
|
| 153 |
+
gallery_changes.object_fit = /*object_fit*/
|
| 154 |
+
ctx2[18];
|
| 155 |
+
if (dirty[0] & /*interactive*/
|
| 156 |
+
1048576)
|
| 157 |
+
gallery_changes.interactive = /*interactive*/
|
| 158 |
+
ctx2[20];
|
| 159 |
+
if (dirty[0] & /*allow_preview*/
|
| 160 |
+
131072)
|
| 161 |
+
gallery_changes.allow_preview = /*allow_preview*/
|
| 162 |
+
ctx2[17];
|
| 163 |
+
if (dirty[0] & /*show_share_button*/
|
| 164 |
+
524288)
|
| 165 |
+
gallery_changes.show_share_button = /*show_share_button*/
|
| 166 |
+
ctx2[19];
|
| 167 |
+
if (dirty[0] & /*show_download_button*/
|
| 168 |
+
2097152)
|
| 169 |
+
gallery_changes.show_download_button = /*show_download_button*/
|
| 170 |
+
ctx2[21];
|
| 171 |
+
if (dirty[0] & /*gradio*/
|
| 172 |
+
4194304)
|
| 173 |
+
gallery_changes.i18n = /*gradio*/
|
| 174 |
+
ctx2[22].i18n;
|
| 175 |
+
if (dirty[0] & /*gradio*/
|
| 176 |
+
4194304)
|
| 177 |
+
gallery_changes._fetch = /*func_2*/
|
| 178 |
+
ctx2[30];
|
| 179 |
+
if (dirty[0] & /*show_fullscreen_button*/
|
| 180 |
+
8388608)
|
| 181 |
+
gallery_changes.show_fullscreen_button = /*show_fullscreen_button*/
|
| 182 |
+
ctx2[23];
|
| 183 |
+
if (!updating_selected_index && dirty[0] & /*selected_index*/
|
| 184 |
+
2) {
|
| 185 |
+
updating_selected_index = true;
|
| 186 |
+
gallery_changes.selected_index = /*selected_index*/
|
| 187 |
+
ctx2[1];
|
| 188 |
+
add_flush_callback(() => updating_selected_index = false);
|
| 189 |
+
}
|
| 190 |
+
if (!updating_value && dirty[0] & /*value*/
|
| 191 |
+
1) {
|
| 192 |
+
updating_value = true;
|
| 193 |
+
gallery_changes.value = /*value*/
|
| 194 |
+
ctx2[0];
|
| 195 |
+
add_flush_callback(() => updating_value = false);
|
| 196 |
+
}
|
| 197 |
+
gallery.$set(gallery_changes);
|
| 198 |
+
},
|
| 199 |
+
i(local) {
|
| 200 |
+
if (current)
|
| 201 |
+
return;
|
| 202 |
+
transition_in(gallery.$$.fragment, local);
|
| 203 |
+
current = true;
|
| 204 |
+
},
|
| 205 |
+
o(local) {
|
| 206 |
+
transition_out(gallery.$$.fragment, local);
|
| 207 |
+
current = false;
|
| 208 |
+
},
|
| 209 |
+
d(detaching) {
|
| 210 |
+
destroy_component(gallery, detaching);
|
| 211 |
+
}
|
| 212 |
+
};
|
| 213 |
+
}
|
| 214 |
+
function create_if_block(ctx) {
|
| 215 |
+
let basefileupload;
|
| 216 |
+
let current;
|
| 217 |
+
basefileupload = new BaseFileUpload({
|
| 218 |
+
props: {
|
| 219 |
+
value: null,
|
| 220 |
+
root: (
|
| 221 |
+
/*root*/
|
| 222 |
+
ctx[5]
|
| 223 |
+
),
|
| 224 |
+
label: (
|
| 225 |
+
/*label*/
|
| 226 |
+
ctx[4]
|
| 227 |
+
),
|
| 228 |
+
max_file_size: (
|
| 229 |
+
/*gradio*/
|
| 230 |
+
ctx[22].max_file_size
|
| 231 |
+
),
|
| 232 |
+
file_count: "multiple",
|
| 233 |
+
file_types: (
|
| 234 |
+
/*file_types*/
|
| 235 |
+
ctx[9]
|
| 236 |
+
),
|
| 237 |
+
i18n: (
|
| 238 |
+
/*gradio*/
|
| 239 |
+
ctx[22].i18n
|
| 240 |
+
),
|
| 241 |
+
upload: (
|
| 242 |
+
/*func*/
|
| 243 |
+
ctx[26]
|
| 244 |
+
),
|
| 245 |
+
stream_handler: (
|
| 246 |
+
/*func_1*/
|
| 247 |
+
ctx[27]
|
| 248 |
+
),
|
| 249 |
+
$$slots: { default: [create_default_slot_1] },
|
| 250 |
+
$$scope: { ctx }
|
| 251 |
+
}
|
| 252 |
+
});
|
| 253 |
+
basefileupload.$on(
|
| 254 |
+
"upload",
|
| 255 |
+
/*upload_handler*/
|
| 256 |
+
ctx[28]
|
| 257 |
+
);
|
| 258 |
+
basefileupload.$on(
|
| 259 |
+
"error",
|
| 260 |
+
/*error_handler*/
|
| 261 |
+
ctx[29]
|
| 262 |
+
);
|
| 263 |
+
return {
|
| 264 |
+
c() {
|
| 265 |
+
create_component(basefileupload.$$.fragment);
|
| 266 |
+
},
|
| 267 |
+
l(nodes) {
|
| 268 |
+
claim_component(basefileupload.$$.fragment, nodes);
|
| 269 |
+
},
|
| 270 |
+
m(target, anchor) {
|
| 271 |
+
mount_component(basefileupload, target, anchor);
|
| 272 |
+
current = true;
|
| 273 |
+
},
|
| 274 |
+
p(ctx2, dirty) {
|
| 275 |
+
const basefileupload_changes = {};
|
| 276 |
+
if (dirty[0] & /*root*/
|
| 277 |
+
32)
|
| 278 |
+
basefileupload_changes.root = /*root*/
|
| 279 |
+
ctx2[5];
|
| 280 |
+
if (dirty[0] & /*label*/
|
| 281 |
+
16)
|
| 282 |
+
basefileupload_changes.label = /*label*/
|
| 283 |
+
ctx2[4];
|
| 284 |
+
if (dirty[0] & /*gradio*/
|
| 285 |
+
4194304)
|
| 286 |
+
basefileupload_changes.max_file_size = /*gradio*/
|
| 287 |
+
ctx2[22].max_file_size;
|
| 288 |
+
if (dirty[0] & /*file_types*/
|
| 289 |
+
512)
|
| 290 |
+
basefileupload_changes.file_types = /*file_types*/
|
| 291 |
+
ctx2[9];
|
| 292 |
+
if (dirty[0] & /*gradio*/
|
| 293 |
+
4194304)
|
| 294 |
+
basefileupload_changes.i18n = /*gradio*/
|
| 295 |
+
ctx2[22].i18n;
|
| 296 |
+
if (dirty[0] & /*gradio*/
|
| 297 |
+
4194304)
|
| 298 |
+
basefileupload_changes.upload = /*func*/
|
| 299 |
+
ctx2[26];
|
| 300 |
+
if (dirty[0] & /*gradio*/
|
| 301 |
+
4194304)
|
| 302 |
+
basefileupload_changes.stream_handler = /*func_1*/
|
| 303 |
+
ctx2[27];
|
| 304 |
+
if (dirty[0] & /*gradio*/
|
| 305 |
+
4194304 | dirty[1] & /*$$scope*/
|
| 306 |
+
128) {
|
| 307 |
+
basefileupload_changes.$$scope = { dirty, ctx: ctx2 };
|
| 308 |
+
}
|
| 309 |
+
basefileupload.$set(basefileupload_changes);
|
| 310 |
+
},
|
| 311 |
+
i(local) {
|
| 312 |
+
if (current)
|
| 313 |
+
return;
|
| 314 |
+
transition_in(basefileupload.$$.fragment, local);
|
| 315 |
+
current = true;
|
| 316 |
+
},
|
| 317 |
+
o(local) {
|
| 318 |
+
transition_out(basefileupload.$$.fragment, local);
|
| 319 |
+
current = false;
|
| 320 |
+
},
|
| 321 |
+
d(detaching) {
|
| 322 |
+
destroy_component(basefileupload, detaching);
|
| 323 |
+
}
|
| 324 |
+
};
|
| 325 |
+
}
|
| 326 |
+
function create_default_slot_1(ctx) {
|
| 327 |
+
let uploadtext;
|
| 328 |
+
let current;
|
| 329 |
+
uploadtext = new UploadText({
|
| 330 |
+
props: {
|
| 331 |
+
i18n: (
|
| 332 |
+
/*gradio*/
|
| 333 |
+
ctx[22].i18n
|
| 334 |
+
),
|
| 335 |
+
type: "gallery"
|
| 336 |
+
}
|
| 337 |
+
});
|
| 338 |
+
return {
|
| 339 |
+
c() {
|
| 340 |
+
create_component(uploadtext.$$.fragment);
|
| 341 |
+
},
|
| 342 |
+
l(nodes) {
|
| 343 |
+
claim_component(uploadtext.$$.fragment, nodes);
|
| 344 |
+
},
|
| 345 |
+
m(target, anchor) {
|
| 346 |
+
mount_component(uploadtext, target, anchor);
|
| 347 |
+
current = true;
|
| 348 |
+
},
|
| 349 |
+
p(ctx2, dirty) {
|
| 350 |
+
const uploadtext_changes = {};
|
| 351 |
+
if (dirty[0] & /*gradio*/
|
| 352 |
+
4194304)
|
| 353 |
+
uploadtext_changes.i18n = /*gradio*/
|
| 354 |
+
ctx2[22].i18n;
|
| 355 |
+
uploadtext.$set(uploadtext_changes);
|
| 356 |
+
},
|
| 357 |
+
i(local) {
|
| 358 |
+
if (current)
|
| 359 |
+
return;
|
| 360 |
+
transition_in(uploadtext.$$.fragment, local);
|
| 361 |
+
current = true;
|
| 362 |
+
},
|
| 363 |
+
o(local) {
|
| 364 |
+
transition_out(uploadtext.$$.fragment, local);
|
| 365 |
+
current = false;
|
| 366 |
+
},
|
| 367 |
+
d(detaching) {
|
| 368 |
+
destroy_component(uploadtext, detaching);
|
| 369 |
+
}
|
| 370 |
+
};
|
| 371 |
+
}
|
| 372 |
+
function create_default_slot(ctx) {
|
| 373 |
+
let statustracker;
|
| 374 |
+
let t;
|
| 375 |
+
let current_block_type_index;
|
| 376 |
+
let if_block;
|
| 377 |
+
let if_block_anchor;
|
| 378 |
+
let current;
|
| 379 |
+
const statustracker_spread_levels = [
|
| 380 |
+
{
|
| 381 |
+
autoscroll: (
|
| 382 |
+
/*gradio*/
|
| 383 |
+
ctx[22].autoscroll
|
| 384 |
+
)
|
| 385 |
+
},
|
| 386 |
+
{ i18n: (
|
| 387 |
+
/*gradio*/
|
| 388 |
+
ctx[22].i18n
|
| 389 |
+
) },
|
| 390 |
+
/*loading_status*/
|
| 391 |
+
ctx[2]
|
| 392 |
+
];
|
| 393 |
+
let statustracker_props = {};
|
| 394 |
+
for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
|
| 395 |
+
statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
|
| 396 |
+
}
|
| 397 |
+
statustracker = new Static({ props: statustracker_props });
|
| 398 |
+
statustracker.$on(
|
| 399 |
+
"clear_status",
|
| 400 |
+
/*clear_status_handler*/
|
| 401 |
+
ctx[25]
|
| 402 |
+
);
|
| 403 |
+
const if_block_creators = [create_if_block, create_else_block];
|
| 404 |
+
const if_blocks = [];
|
| 405 |
+
function select_block_type(ctx2, dirty) {
|
| 406 |
+
if (
|
| 407 |
+
/*interactive*/
|
| 408 |
+
ctx2[20] && /*no_value*/
|
| 409 |
+
ctx2[24]
|
| 410 |
+
)
|
| 411 |
+
return 0;
|
| 412 |
+
return 1;
|
| 413 |
+
}
|
| 414 |
+
current_block_type_index = select_block_type(ctx);
|
| 415 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
| 416 |
+
return {
|
| 417 |
+
c() {
|
| 418 |
+
create_component(statustracker.$$.fragment);
|
| 419 |
+
t = space();
|
| 420 |
+
if_block.c();
|
| 421 |
+
if_block_anchor = empty();
|
| 422 |
+
},
|
| 423 |
+
l(nodes) {
|
| 424 |
+
claim_component(statustracker.$$.fragment, nodes);
|
| 425 |
+
t = claim_space(nodes);
|
| 426 |
+
if_block.l(nodes);
|
| 427 |
+
if_block_anchor = empty();
|
| 428 |
+
},
|
| 429 |
+
m(target, anchor) {
|
| 430 |
+
mount_component(statustracker, target, anchor);
|
| 431 |
+
insert_hydration(target, t, anchor);
|
| 432 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
| 433 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 434 |
+
current = true;
|
| 435 |
+
},
|
| 436 |
+
p(ctx2, dirty) {
|
| 437 |
+
const statustracker_changes = dirty[0] & /*gradio, loading_status*/
|
| 438 |
+
4194308 ? get_spread_update(statustracker_spread_levels, [
|
| 439 |
+
dirty[0] & /*gradio*/
|
| 440 |
+
4194304 && {
|
| 441 |
+
autoscroll: (
|
| 442 |
+
/*gradio*/
|
| 443 |
+
ctx2[22].autoscroll
|
| 444 |
+
)
|
| 445 |
+
},
|
| 446 |
+
dirty[0] & /*gradio*/
|
| 447 |
+
4194304 && { i18n: (
|
| 448 |
+
/*gradio*/
|
| 449 |
+
ctx2[22].i18n
|
| 450 |
+
) },
|
| 451 |
+
dirty[0] & /*loading_status*/
|
| 452 |
+
4 && get_spread_object(
|
| 453 |
+
/*loading_status*/
|
| 454 |
+
ctx2[2]
|
| 455 |
+
)
|
| 456 |
+
]) : {};
|
| 457 |
+
statustracker.$set(statustracker_changes);
|
| 458 |
+
let previous_block_index = current_block_type_index;
|
| 459 |
+
current_block_type_index = select_block_type(ctx2);
|
| 460 |
+
if (current_block_type_index === previous_block_index) {
|
| 461 |
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
| 462 |
+
} else {
|
| 463 |
+
group_outros();
|
| 464 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
| 465 |
+
if_blocks[previous_block_index] = null;
|
| 466 |
+
});
|
| 467 |
+
check_outros();
|
| 468 |
+
if_block = if_blocks[current_block_type_index];
|
| 469 |
+
if (!if_block) {
|
| 470 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
| 471 |
+
if_block.c();
|
| 472 |
+
} else {
|
| 473 |
+
if_block.p(ctx2, dirty);
|
| 474 |
+
}
|
| 475 |
+
transition_in(if_block, 1);
|
| 476 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
i(local) {
|
| 480 |
+
if (current)
|
| 481 |
+
return;
|
| 482 |
+
transition_in(statustracker.$$.fragment, local);
|
| 483 |
+
transition_in(if_block);
|
| 484 |
+
current = true;
|
| 485 |
+
},
|
| 486 |
+
o(local) {
|
| 487 |
+
transition_out(statustracker.$$.fragment, local);
|
| 488 |
+
transition_out(if_block);
|
| 489 |
+
current = false;
|
| 490 |
+
},
|
| 491 |
+
d(detaching) {
|
| 492 |
+
if (detaching) {
|
| 493 |
+
detach(t);
|
| 494 |
+
detach(if_block_anchor);
|
| 495 |
+
}
|
| 496 |
+
destroy_component(statustracker, detaching);
|
| 497 |
+
if_blocks[current_block_type_index].d(detaching);
|
| 498 |
+
}
|
| 499 |
+
};
|
| 500 |
+
}
|
| 501 |
+
function create_fragment(ctx) {
|
| 502 |
+
let block;
|
| 503 |
+
let current;
|
| 504 |
+
block = new Block({
|
| 505 |
+
props: {
|
| 506 |
+
visible: (
|
| 507 |
+
/*visible*/
|
| 508 |
+
ctx[8]
|
| 509 |
+
),
|
| 510 |
+
variant: "solid",
|
| 511 |
+
padding: false,
|
| 512 |
+
elem_id: (
|
| 513 |
+
/*elem_id*/
|
| 514 |
+
ctx[6]
|
| 515 |
+
),
|
| 516 |
+
elem_classes: (
|
| 517 |
+
/*elem_classes*/
|
| 518 |
+
ctx[7]
|
| 519 |
+
),
|
| 520 |
+
container: (
|
| 521 |
+
/*container*/
|
| 522 |
+
ctx[10]
|
| 523 |
+
),
|
| 524 |
+
scale: (
|
| 525 |
+
/*scale*/
|
| 526 |
+
ctx[11]
|
| 527 |
+
),
|
| 528 |
+
min_width: (
|
| 529 |
+
/*min_width*/
|
| 530 |
+
ctx[12]
|
| 531 |
+
),
|
| 532 |
+
allow_overflow: false,
|
| 533 |
+
height: typeof /*height*/
|
| 534 |
+
ctx[15] === "number" ? (
|
| 535 |
+
/*height*/
|
| 536 |
+
ctx[15]
|
| 537 |
+
) : void 0,
|
| 538 |
+
$$slots: { default: [create_default_slot] },
|
| 539 |
+
$$scope: { ctx }
|
| 540 |
+
}
|
| 541 |
+
});
|
| 542 |
+
return {
|
| 543 |
+
c() {
|
| 544 |
+
create_component(block.$$.fragment);
|
| 545 |
+
},
|
| 546 |
+
l(nodes) {
|
| 547 |
+
claim_component(block.$$.fragment, nodes);
|
| 548 |
+
},
|
| 549 |
+
m(target, anchor) {
|
| 550 |
+
mount_component(block, target, anchor);
|
| 551 |
+
current = true;
|
| 552 |
+
},
|
| 553 |
+
p(ctx2, dirty) {
|
| 554 |
+
const block_changes = {};
|
| 555 |
+
if (dirty[0] & /*visible*/
|
| 556 |
+
256)
|
| 557 |
+
block_changes.visible = /*visible*/
|
| 558 |
+
ctx2[8];
|
| 559 |
+
if (dirty[0] & /*elem_id*/
|
| 560 |
+
64)
|
| 561 |
+
block_changes.elem_id = /*elem_id*/
|
| 562 |
+
ctx2[6];
|
| 563 |
+
if (dirty[0] & /*elem_classes*/
|
| 564 |
+
128)
|
| 565 |
+
block_changes.elem_classes = /*elem_classes*/
|
| 566 |
+
ctx2[7];
|
| 567 |
+
if (dirty[0] & /*container*/
|
| 568 |
+
1024)
|
| 569 |
+
block_changes.container = /*container*/
|
| 570 |
+
ctx2[10];
|
| 571 |
+
if (dirty[0] & /*scale*/
|
| 572 |
+
2048)
|
| 573 |
+
block_changes.scale = /*scale*/
|
| 574 |
+
ctx2[11];
|
| 575 |
+
if (dirty[0] & /*min_width*/
|
| 576 |
+
4096)
|
| 577 |
+
block_changes.min_width = /*min_width*/
|
| 578 |
+
ctx2[12];
|
| 579 |
+
if (dirty[0] & /*height*/
|
| 580 |
+
32768)
|
| 581 |
+
block_changes.height = typeof /*height*/
|
| 582 |
+
ctx2[15] === "number" ? (
|
| 583 |
+
/*height*/
|
| 584 |
+
ctx2[15]
|
| 585 |
+
) : void 0;
|
| 586 |
+
if (dirty[0] & /*root, label, gradio, file_types, value, loading_status, interactive, no_value, show_label, columns, rows, height, preview, object_fit, allow_preview, show_share_button, show_download_button, show_fullscreen_button, selected_index*/
|
| 587 |
+
33546815 | dirty[1] & /*$$scope*/
|
| 588 |
+
128) {
|
| 589 |
+
block_changes.$$scope = { dirty, ctx: ctx2 };
|
| 590 |
+
}
|
| 591 |
+
block.$set(block_changes);
|
| 592 |
+
},
|
| 593 |
+
i(local) {
|
| 594 |
+
if (current)
|
| 595 |
+
return;
|
| 596 |
+
transition_in(block.$$.fragment, local);
|
| 597 |
+
current = true;
|
| 598 |
+
},
|
| 599 |
+
o(local) {
|
| 600 |
+
transition_out(block.$$.fragment, local);
|
| 601 |
+
current = false;
|
| 602 |
+
},
|
| 603 |
+
d(detaching) {
|
| 604 |
+
destroy_component(block, detaching);
|
| 605 |
+
}
|
| 606 |
+
};
|
| 607 |
+
}
|
| 608 |
+
function instance($$self, $$props, $$invalidate) {
|
| 609 |
+
let no_value;
|
| 610 |
+
let { loading_status } = $$props;
|
| 611 |
+
let { show_label } = $$props;
|
| 612 |
+
let { label } = $$props;
|
| 613 |
+
let { root } = $$props;
|
| 614 |
+
let { elem_id = "" } = $$props;
|
| 615 |
+
let { elem_classes = [] } = $$props;
|
| 616 |
+
let { visible = true } = $$props;
|
| 617 |
+
let { value = null } = $$props;
|
| 618 |
+
let { file_types = ["image", "video"] } = $$props;
|
| 619 |
+
let { container = true } = $$props;
|
| 620 |
+
let { scale = null } = $$props;
|
| 621 |
+
let { min_width = void 0 } = $$props;
|
| 622 |
+
let { columns = [2] } = $$props;
|
| 623 |
+
let { rows = void 0 } = $$props;
|
| 624 |
+
let { height = "auto" } = $$props;
|
| 625 |
+
let { preview } = $$props;
|
| 626 |
+
let { allow_preview = true } = $$props;
|
| 627 |
+
let { selected_index = null } = $$props;
|
| 628 |
+
let { object_fit = "cover" } = $$props;
|
| 629 |
+
let { show_share_button = false } = $$props;
|
| 630 |
+
let { interactive } = $$props;
|
| 631 |
+
let { show_download_button = false } = $$props;
|
| 632 |
+
let { gradio } = $$props;
|
| 633 |
+
let { show_fullscreen_button = true } = $$props;
|
| 634 |
+
const dispatch = createEventDispatcher();
|
| 635 |
+
const clear_status_handler = () => gradio.dispatch("clear_status", loading_status);
|
| 636 |
+
const func = (...args) => gradio.client.upload(...args);
|
| 637 |
+
const func_1 = (...args) => gradio.client.stream(...args);
|
| 638 |
+
const upload_handler = (e) => {
|
| 639 |
+
const files = Array.isArray(e.detail) ? e.detail : [e.detail];
|
| 640 |
+
$$invalidate(0, value = files.map((x) => {
|
| 641 |
+
var _a;
|
| 642 |
+
return ((_a = x.mime_type) == null ? void 0 : _a.includes("video")) ? { video: x, caption: null } : { image: x, caption: null };
|
| 643 |
+
}));
|
| 644 |
+
gradio.dispatch("upload", value);
|
| 645 |
+
};
|
| 646 |
+
const error_handler = ({ detail }) => {
|
| 647 |
+
$$invalidate(2, loading_status = loading_status || {});
|
| 648 |
+
$$invalidate(2, loading_status.status = "error", loading_status);
|
| 649 |
+
gradio.dispatch("error", detail);
|
| 650 |
+
};
|
| 651 |
+
const func_2 = (...args) => gradio.client.fetch(...args);
|
| 652 |
+
function gallery_selected_index_binding(value2) {
|
| 653 |
+
selected_index = value2;
|
| 654 |
+
$$invalidate(1, selected_index);
|
| 655 |
+
}
|
| 656 |
+
function gallery_value_binding(value$1) {
|
| 657 |
+
value = value$1;
|
| 658 |
+
$$invalidate(0, value);
|
| 659 |
+
}
|
| 660 |
+
const change_handler = () => gradio.dispatch("change", value);
|
| 661 |
+
const select_handler = (e) => gradio.dispatch("select", e.detail);
|
| 662 |
+
const share_handler = (e) => gradio.dispatch("share", e.detail);
|
| 663 |
+
const error_handler_1 = (e) => gradio.dispatch("error", e.detail);
|
| 664 |
+
$$self.$$set = ($$props2) => {
|
| 665 |
+
if ("loading_status" in $$props2)
|
| 666 |
+
$$invalidate(2, loading_status = $$props2.loading_status);
|
| 667 |
+
if ("show_label" in $$props2)
|
| 668 |
+
$$invalidate(3, show_label = $$props2.show_label);
|
| 669 |
+
if ("label" in $$props2)
|
| 670 |
+
$$invalidate(4, label = $$props2.label);
|
| 671 |
+
if ("root" in $$props2)
|
| 672 |
+
$$invalidate(5, root = $$props2.root);
|
| 673 |
+
if ("elem_id" in $$props2)
|
| 674 |
+
$$invalidate(6, elem_id = $$props2.elem_id);
|
| 675 |
+
if ("elem_classes" in $$props2)
|
| 676 |
+
$$invalidate(7, elem_classes = $$props2.elem_classes);
|
| 677 |
+
if ("visible" in $$props2)
|
| 678 |
+
$$invalidate(8, visible = $$props2.visible);
|
| 679 |
+
if ("value" in $$props2)
|
| 680 |
+
$$invalidate(0, value = $$props2.value);
|
| 681 |
+
if ("file_types" in $$props2)
|
| 682 |
+
$$invalidate(9, file_types = $$props2.file_types);
|
| 683 |
+
if ("container" in $$props2)
|
| 684 |
+
$$invalidate(10, container = $$props2.container);
|
| 685 |
+
if ("scale" in $$props2)
|
| 686 |
+
$$invalidate(11, scale = $$props2.scale);
|
| 687 |
+
if ("min_width" in $$props2)
|
| 688 |
+
$$invalidate(12, min_width = $$props2.min_width);
|
| 689 |
+
if ("columns" in $$props2)
|
| 690 |
+
$$invalidate(13, columns = $$props2.columns);
|
| 691 |
+
if ("rows" in $$props2)
|
| 692 |
+
$$invalidate(14, rows = $$props2.rows);
|
| 693 |
+
if ("height" in $$props2)
|
| 694 |
+
$$invalidate(15, height = $$props2.height);
|
| 695 |
+
if ("preview" in $$props2)
|
| 696 |
+
$$invalidate(16, preview = $$props2.preview);
|
| 697 |
+
if ("allow_preview" in $$props2)
|
| 698 |
+
$$invalidate(17, allow_preview = $$props2.allow_preview);
|
| 699 |
+
if ("selected_index" in $$props2)
|
| 700 |
+
$$invalidate(1, selected_index = $$props2.selected_index);
|
| 701 |
+
if ("object_fit" in $$props2)
|
| 702 |
+
$$invalidate(18, object_fit = $$props2.object_fit);
|
| 703 |
+
if ("show_share_button" in $$props2)
|
| 704 |
+
$$invalidate(19, show_share_button = $$props2.show_share_button);
|
| 705 |
+
if ("interactive" in $$props2)
|
| 706 |
+
$$invalidate(20, interactive = $$props2.interactive);
|
| 707 |
+
if ("show_download_button" in $$props2)
|
| 708 |
+
$$invalidate(21, show_download_button = $$props2.show_download_button);
|
| 709 |
+
if ("gradio" in $$props2)
|
| 710 |
+
$$invalidate(22, gradio = $$props2.gradio);
|
| 711 |
+
if ("show_fullscreen_button" in $$props2)
|
| 712 |
+
$$invalidate(23, show_fullscreen_button = $$props2.show_fullscreen_button);
|
| 713 |
+
};
|
| 714 |
+
$$self.$$.update = () => {
|
| 715 |
+
if ($$self.$$.dirty[0] & /*value*/
|
| 716 |
+
1) {
|
| 717 |
+
$$invalidate(24, no_value = value === null ? true : value.length === 0);
|
| 718 |
+
}
|
| 719 |
+
if ($$self.$$.dirty[0] & /*selected_index*/
|
| 720 |
+
2) {
|
| 721 |
+
dispatch("prop_change", { selected_index });
|
| 722 |
+
}
|
| 723 |
+
};
|
| 724 |
+
return [
|
| 725 |
+
value,
|
| 726 |
+
selected_index,
|
| 727 |
+
loading_status,
|
| 728 |
+
show_label,
|
| 729 |
+
label,
|
| 730 |
+
root,
|
| 731 |
+
elem_id,
|
| 732 |
+
elem_classes,
|
| 733 |
+
visible,
|
| 734 |
+
file_types,
|
| 735 |
+
container,
|
| 736 |
+
scale,
|
| 737 |
+
min_width,
|
| 738 |
+
columns,
|
| 739 |
+
rows,
|
| 740 |
+
height,
|
| 741 |
+
preview,
|
| 742 |
+
allow_preview,
|
| 743 |
+
object_fit,
|
| 744 |
+
show_share_button,
|
| 745 |
+
interactive,
|
| 746 |
+
show_download_button,
|
| 747 |
+
gradio,
|
| 748 |
+
show_fullscreen_button,
|
| 749 |
+
no_value,
|
| 750 |
+
clear_status_handler,
|
| 751 |
+
func,
|
| 752 |
+
func_1,
|
| 753 |
+
upload_handler,
|
| 754 |
+
error_handler,
|
| 755 |
+
func_2,
|
| 756 |
+
gallery_selected_index_binding,
|
| 757 |
+
gallery_value_binding,
|
| 758 |
+
change_handler,
|
| 759 |
+
select_handler,
|
| 760 |
+
share_handler,
|
| 761 |
+
error_handler_1
|
| 762 |
+
];
|
| 763 |
+
}
|
| 764 |
+
class Index extends SvelteComponent {
|
| 765 |
+
constructor(options) {
|
| 766 |
+
super();
|
| 767 |
+
init(
|
| 768 |
+
this,
|
| 769 |
+
options,
|
| 770 |
+
instance,
|
| 771 |
+
create_fragment,
|
| 772 |
+
safe_not_equal,
|
| 773 |
+
{
|
| 774 |
+
loading_status: 2,
|
| 775 |
+
show_label: 3,
|
| 776 |
+
label: 4,
|
| 777 |
+
root: 5,
|
| 778 |
+
elem_id: 6,
|
| 779 |
+
elem_classes: 7,
|
| 780 |
+
visible: 8,
|
| 781 |
+
value: 0,
|
| 782 |
+
file_types: 9,
|
| 783 |
+
container: 10,
|
| 784 |
+
scale: 11,
|
| 785 |
+
min_width: 12,
|
| 786 |
+
columns: 13,
|
| 787 |
+
rows: 14,
|
| 788 |
+
height: 15,
|
| 789 |
+
preview: 16,
|
| 790 |
+
allow_preview: 17,
|
| 791 |
+
selected_index: 1,
|
| 792 |
+
object_fit: 18,
|
| 793 |
+
show_share_button: 19,
|
| 794 |
+
interactive: 20,
|
| 795 |
+
show_download_button: 21,
|
| 796 |
+
gradio: 22,
|
| 797 |
+
show_fullscreen_button: 23
|
| 798 |
+
},
|
| 799 |
+
null,
|
| 800 |
+
[-1, -1]
|
| 801 |
+
);
|
| 802 |
+
}
|
| 803 |
+
}
|
| 804 |
+
export {
|
| 805 |
+
Gallery as BaseGallery,
|
| 806 |
+
Index as default
|
| 807 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BT-Vdx4H.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ff55ff48be367ccc61829ee963ec66cbac0eda237d8dd3fbea3b029b09f6af9
|
| 3 |
+
size 4353
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.BcUqm4Zk.js.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7159a76834909efbcecb1f4e032cca4eade0eb214f1aa13588ea8134764c2333
|
| 3 |
+
size 3712
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.Bq9du_gV.js
ADDED
|
@@ -0,0 +1,886 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { SvelteComponent, init, safe_not_equal, flush, create_component, claim_component, mount_component, transition_in, transition_out, destroy_component, assign, space, empty, claim_space, insert_hydration, get_spread_update, get_spread_object, group_outros, check_outros, detach, binding_callbacks, bind, add_flush_callback } from "../../../svelte/svelte.js";
|
| 2 |
+
import "../../../svelte/svelte-submodules.js";
|
| 3 |
+
import { B as BaseFileUpload, F as File } from "./FileUpload.MIUDM8EV.js";
|
| 4 |
+
import { a } from "./FileUpload.MIUDM8EV.js";
|
| 5 |
+
import { B as Block, S as Static } from "./2.BS1fgMUm.js";
|
| 6 |
+
import { U as UploadText } from "./UploadText.Dr_Z3IFG.js";
|
| 7 |
+
import { default as default2 } from "./Example.DBkrk8px.js";
|
| 8 |
+
function create_else_block(ctx) {
|
| 9 |
+
let fileupload;
|
| 10 |
+
let updating_uploading;
|
| 11 |
+
let current;
|
| 12 |
+
function fileupload_uploading_binding(value) {
|
| 13 |
+
ctx[25](value);
|
| 14 |
+
}
|
| 15 |
+
let fileupload_props = {
|
| 16 |
+
upload: (
|
| 17 |
+
/*func*/
|
| 18 |
+
ctx[23]
|
| 19 |
+
),
|
| 20 |
+
stream_handler: (
|
| 21 |
+
/*func_1*/
|
| 22 |
+
ctx[24]
|
| 23 |
+
),
|
| 24 |
+
label: (
|
| 25 |
+
/*label*/
|
| 26 |
+
ctx[7]
|
| 27 |
+
),
|
| 28 |
+
show_label: (
|
| 29 |
+
/*show_label*/
|
| 30 |
+
ctx[8]
|
| 31 |
+
),
|
| 32 |
+
value: (
|
| 33 |
+
/*value*/
|
| 34 |
+
ctx[0]
|
| 35 |
+
),
|
| 36 |
+
file_count: (
|
| 37 |
+
/*file_count*/
|
| 38 |
+
ctx[15]
|
| 39 |
+
),
|
| 40 |
+
file_types: (
|
| 41 |
+
/*file_types*/
|
| 42 |
+
ctx[16]
|
| 43 |
+
),
|
| 44 |
+
selectable: (
|
| 45 |
+
/*_selectable*/
|
| 46 |
+
ctx[10]
|
| 47 |
+
),
|
| 48 |
+
root: (
|
| 49 |
+
/*root*/
|
| 50 |
+
ctx[6]
|
| 51 |
+
),
|
| 52 |
+
height: (
|
| 53 |
+
/*height*/
|
| 54 |
+
ctx[9]
|
| 55 |
+
),
|
| 56 |
+
max_file_size: (
|
| 57 |
+
/*gradio*/
|
| 58 |
+
ctx[14].max_file_size
|
| 59 |
+
),
|
| 60 |
+
i18n: (
|
| 61 |
+
/*gradio*/
|
| 62 |
+
ctx[14].i18n
|
| 63 |
+
),
|
| 64 |
+
$$slots: { default: [create_default_slot_1] },
|
| 65 |
+
$$scope: { ctx }
|
| 66 |
+
};
|
| 67 |
+
if (
|
| 68 |
+
/*uploading*/
|
| 69 |
+
ctx[17] !== void 0
|
| 70 |
+
) {
|
| 71 |
+
fileupload_props.uploading = /*uploading*/
|
| 72 |
+
ctx[17];
|
| 73 |
+
}
|
| 74 |
+
fileupload = new BaseFileUpload({ props: fileupload_props });
|
| 75 |
+
binding_callbacks.push(() => bind(fileupload, "uploading", fileupload_uploading_binding));
|
| 76 |
+
fileupload.$on(
|
| 77 |
+
"change",
|
| 78 |
+
/*change_handler*/
|
| 79 |
+
ctx[26]
|
| 80 |
+
);
|
| 81 |
+
fileupload.$on(
|
| 82 |
+
"drag",
|
| 83 |
+
/*drag_handler*/
|
| 84 |
+
ctx[27]
|
| 85 |
+
);
|
| 86 |
+
fileupload.$on(
|
| 87 |
+
"clear",
|
| 88 |
+
/*clear_handler*/
|
| 89 |
+
ctx[28]
|
| 90 |
+
);
|
| 91 |
+
fileupload.$on(
|
| 92 |
+
"select",
|
| 93 |
+
/*select_handler_1*/
|
| 94 |
+
ctx[29]
|
| 95 |
+
);
|
| 96 |
+
fileupload.$on(
|
| 97 |
+
"upload",
|
| 98 |
+
/*upload_handler*/
|
| 99 |
+
ctx[30]
|
| 100 |
+
);
|
| 101 |
+
fileupload.$on(
|
| 102 |
+
"error",
|
| 103 |
+
/*error_handler*/
|
| 104 |
+
ctx[31]
|
| 105 |
+
);
|
| 106 |
+
fileupload.$on(
|
| 107 |
+
"delete",
|
| 108 |
+
/*delete_handler*/
|
| 109 |
+
ctx[32]
|
| 110 |
+
);
|
| 111 |
+
return {
|
| 112 |
+
c() {
|
| 113 |
+
create_component(fileupload.$$.fragment);
|
| 114 |
+
},
|
| 115 |
+
l(nodes) {
|
| 116 |
+
claim_component(fileupload.$$.fragment, nodes);
|
| 117 |
+
},
|
| 118 |
+
m(target, anchor) {
|
| 119 |
+
mount_component(fileupload, target, anchor);
|
| 120 |
+
current = true;
|
| 121 |
+
},
|
| 122 |
+
p(ctx2, dirty) {
|
| 123 |
+
const fileupload_changes = {};
|
| 124 |
+
if (dirty[0] & /*gradio*/
|
| 125 |
+
16384)
|
| 126 |
+
fileupload_changes.upload = /*func*/
|
| 127 |
+
ctx2[23];
|
| 128 |
+
if (dirty[0] & /*gradio*/
|
| 129 |
+
16384)
|
| 130 |
+
fileupload_changes.stream_handler = /*func_1*/
|
| 131 |
+
ctx2[24];
|
| 132 |
+
if (dirty[0] & /*label*/
|
| 133 |
+
128)
|
| 134 |
+
fileupload_changes.label = /*label*/
|
| 135 |
+
ctx2[7];
|
| 136 |
+
if (dirty[0] & /*show_label*/
|
| 137 |
+
256)
|
| 138 |
+
fileupload_changes.show_label = /*show_label*/
|
| 139 |
+
ctx2[8];
|
| 140 |
+
if (dirty[0] & /*value*/
|
| 141 |
+
1)
|
| 142 |
+
fileupload_changes.value = /*value*/
|
| 143 |
+
ctx2[0];
|
| 144 |
+
if (dirty[0] & /*file_count*/
|
| 145 |
+
32768)
|
| 146 |
+
fileupload_changes.file_count = /*file_count*/
|
| 147 |
+
ctx2[15];
|
| 148 |
+
if (dirty[0] & /*file_types*/
|
| 149 |
+
65536)
|
| 150 |
+
fileupload_changes.file_types = /*file_types*/
|
| 151 |
+
ctx2[16];
|
| 152 |
+
if (dirty[0] & /*_selectable*/
|
| 153 |
+
1024)
|
| 154 |
+
fileupload_changes.selectable = /*_selectable*/
|
| 155 |
+
ctx2[10];
|
| 156 |
+
if (dirty[0] & /*root*/
|
| 157 |
+
64)
|
| 158 |
+
fileupload_changes.root = /*root*/
|
| 159 |
+
ctx2[6];
|
| 160 |
+
if (dirty[0] & /*height*/
|
| 161 |
+
512)
|
| 162 |
+
fileupload_changes.height = /*height*/
|
| 163 |
+
ctx2[9];
|
| 164 |
+
if (dirty[0] & /*gradio*/
|
| 165 |
+
16384)
|
| 166 |
+
fileupload_changes.max_file_size = /*gradio*/
|
| 167 |
+
ctx2[14].max_file_size;
|
| 168 |
+
if (dirty[0] & /*gradio*/
|
| 169 |
+
16384)
|
| 170 |
+
fileupload_changes.i18n = /*gradio*/
|
| 171 |
+
ctx2[14].i18n;
|
| 172 |
+
if (dirty[0] & /*gradio*/
|
| 173 |
+
16384 | dirty[1] & /*$$scope*/
|
| 174 |
+
4) {
|
| 175 |
+
fileupload_changes.$$scope = { dirty, ctx: ctx2 };
|
| 176 |
+
}
|
| 177 |
+
if (!updating_uploading && dirty[0] & /*uploading*/
|
| 178 |
+
131072) {
|
| 179 |
+
updating_uploading = true;
|
| 180 |
+
fileupload_changes.uploading = /*uploading*/
|
| 181 |
+
ctx2[17];
|
| 182 |
+
add_flush_callback(() => updating_uploading = false);
|
| 183 |
+
}
|
| 184 |
+
fileupload.$set(fileupload_changes);
|
| 185 |
+
},
|
| 186 |
+
i(local) {
|
| 187 |
+
if (current)
|
| 188 |
+
return;
|
| 189 |
+
transition_in(fileupload.$$.fragment, local);
|
| 190 |
+
current = true;
|
| 191 |
+
},
|
| 192 |
+
o(local) {
|
| 193 |
+
transition_out(fileupload.$$.fragment, local);
|
| 194 |
+
current = false;
|
| 195 |
+
},
|
| 196 |
+
d(detaching) {
|
| 197 |
+
destroy_component(fileupload, detaching);
|
| 198 |
+
}
|
| 199 |
+
};
|
| 200 |
+
}
|
| 201 |
+
function create_if_block(ctx) {
|
| 202 |
+
let file;
|
| 203 |
+
let current;
|
| 204 |
+
file = new File({
|
| 205 |
+
props: {
|
| 206 |
+
selectable: (
|
| 207 |
+
/*_selectable*/
|
| 208 |
+
ctx[10]
|
| 209 |
+
),
|
| 210 |
+
value: (
|
| 211 |
+
/*value*/
|
| 212 |
+
ctx[0]
|
| 213 |
+
),
|
| 214 |
+
label: (
|
| 215 |
+
/*label*/
|
| 216 |
+
ctx[7]
|
| 217 |
+
),
|
| 218 |
+
show_label: (
|
| 219 |
+
/*show_label*/
|
| 220 |
+
ctx[8]
|
| 221 |
+
),
|
| 222 |
+
height: (
|
| 223 |
+
/*height*/
|
| 224 |
+
ctx[9]
|
| 225 |
+
),
|
| 226 |
+
i18n: (
|
| 227 |
+
/*gradio*/
|
| 228 |
+
ctx[14].i18n
|
| 229 |
+
)
|
| 230 |
+
}
|
| 231 |
+
});
|
| 232 |
+
file.$on(
|
| 233 |
+
"select",
|
| 234 |
+
/*select_handler*/
|
| 235 |
+
ctx[22]
|
| 236 |
+
);
|
| 237 |
+
return {
|
| 238 |
+
c() {
|
| 239 |
+
create_component(file.$$.fragment);
|
| 240 |
+
},
|
| 241 |
+
l(nodes) {
|
| 242 |
+
claim_component(file.$$.fragment, nodes);
|
| 243 |
+
},
|
| 244 |
+
m(target, anchor) {
|
| 245 |
+
mount_component(file, target, anchor);
|
| 246 |
+
current = true;
|
| 247 |
+
},
|
| 248 |
+
p(ctx2, dirty) {
|
| 249 |
+
const file_changes = {};
|
| 250 |
+
if (dirty[0] & /*_selectable*/
|
| 251 |
+
1024)
|
| 252 |
+
file_changes.selectable = /*_selectable*/
|
| 253 |
+
ctx2[10];
|
| 254 |
+
if (dirty[0] & /*value*/
|
| 255 |
+
1)
|
| 256 |
+
file_changes.value = /*value*/
|
| 257 |
+
ctx2[0];
|
| 258 |
+
if (dirty[0] & /*label*/
|
| 259 |
+
128)
|
| 260 |
+
file_changes.label = /*label*/
|
| 261 |
+
ctx2[7];
|
| 262 |
+
if (dirty[0] & /*show_label*/
|
| 263 |
+
256)
|
| 264 |
+
file_changes.show_label = /*show_label*/
|
| 265 |
+
ctx2[8];
|
| 266 |
+
if (dirty[0] & /*height*/
|
| 267 |
+
512)
|
| 268 |
+
file_changes.height = /*height*/
|
| 269 |
+
ctx2[9];
|
| 270 |
+
if (dirty[0] & /*gradio*/
|
| 271 |
+
16384)
|
| 272 |
+
file_changes.i18n = /*gradio*/
|
| 273 |
+
ctx2[14].i18n;
|
| 274 |
+
file.$set(file_changes);
|
| 275 |
+
},
|
| 276 |
+
i(local) {
|
| 277 |
+
if (current)
|
| 278 |
+
return;
|
| 279 |
+
transition_in(file.$$.fragment, local);
|
| 280 |
+
current = true;
|
| 281 |
+
},
|
| 282 |
+
o(local) {
|
| 283 |
+
transition_out(file.$$.fragment, local);
|
| 284 |
+
current = false;
|
| 285 |
+
},
|
| 286 |
+
d(detaching) {
|
| 287 |
+
destroy_component(file, detaching);
|
| 288 |
+
}
|
| 289 |
+
};
|
| 290 |
+
}
|
| 291 |
+
function create_default_slot_1(ctx) {
|
| 292 |
+
let uploadtext;
|
| 293 |
+
let current;
|
| 294 |
+
uploadtext = new UploadText({
|
| 295 |
+
props: {
|
| 296 |
+
i18n: (
|
| 297 |
+
/*gradio*/
|
| 298 |
+
ctx[14].i18n
|
| 299 |
+
),
|
| 300 |
+
type: "file"
|
| 301 |
+
}
|
| 302 |
+
});
|
| 303 |
+
return {
|
| 304 |
+
c() {
|
| 305 |
+
create_component(uploadtext.$$.fragment);
|
| 306 |
+
},
|
| 307 |
+
l(nodes) {
|
| 308 |
+
claim_component(uploadtext.$$.fragment, nodes);
|
| 309 |
+
},
|
| 310 |
+
m(target, anchor) {
|
| 311 |
+
mount_component(uploadtext, target, anchor);
|
| 312 |
+
current = true;
|
| 313 |
+
},
|
| 314 |
+
p(ctx2, dirty) {
|
| 315 |
+
const uploadtext_changes = {};
|
| 316 |
+
if (dirty[0] & /*gradio*/
|
| 317 |
+
16384)
|
| 318 |
+
uploadtext_changes.i18n = /*gradio*/
|
| 319 |
+
ctx2[14].i18n;
|
| 320 |
+
uploadtext.$set(uploadtext_changes);
|
| 321 |
+
},
|
| 322 |
+
i(local) {
|
| 323 |
+
if (current)
|
| 324 |
+
return;
|
| 325 |
+
transition_in(uploadtext.$$.fragment, local);
|
| 326 |
+
current = true;
|
| 327 |
+
},
|
| 328 |
+
o(local) {
|
| 329 |
+
transition_out(uploadtext.$$.fragment, local);
|
| 330 |
+
current = false;
|
| 331 |
+
},
|
| 332 |
+
d(detaching) {
|
| 333 |
+
destroy_component(uploadtext, detaching);
|
| 334 |
+
}
|
| 335 |
+
};
|
| 336 |
+
}
|
| 337 |
+
function create_default_slot(ctx) {
|
| 338 |
+
var _a;
|
| 339 |
+
let statustracker;
|
| 340 |
+
let t;
|
| 341 |
+
let current_block_type_index;
|
| 342 |
+
let if_block;
|
| 343 |
+
let if_block_anchor;
|
| 344 |
+
let current;
|
| 345 |
+
const statustracker_spread_levels = [
|
| 346 |
+
{
|
| 347 |
+
autoscroll: (
|
| 348 |
+
/*gradio*/
|
| 349 |
+
ctx[14].autoscroll
|
| 350 |
+
)
|
| 351 |
+
},
|
| 352 |
+
{ i18n: (
|
| 353 |
+
/*gradio*/
|
| 354 |
+
ctx[14].i18n
|
| 355 |
+
) },
|
| 356 |
+
/*loading_status*/
|
| 357 |
+
ctx[1],
|
| 358 |
+
{
|
| 359 |
+
status: (
|
| 360 |
+
/*loading_status*/
|
| 361 |
+
((_a = ctx[1]) == null ? void 0 : _a.status) || "complete"
|
| 362 |
+
)
|
| 363 |
+
}
|
| 364 |
+
];
|
| 365 |
+
let statustracker_props = {};
|
| 366 |
+
for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
|
| 367 |
+
statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
|
| 368 |
+
}
|
| 369 |
+
statustracker = new Static({ props: statustracker_props });
|
| 370 |
+
statustracker.$on(
|
| 371 |
+
"clear_status",
|
| 372 |
+
/*clear_status_handler*/
|
| 373 |
+
ctx[21]
|
| 374 |
+
);
|
| 375 |
+
const if_block_creators = [create_if_block, create_else_block];
|
| 376 |
+
const if_blocks = [];
|
| 377 |
+
function select_block_type(ctx2, dirty) {
|
| 378 |
+
if (!/*interactive*/
|
| 379 |
+
ctx2[5])
|
| 380 |
+
return 0;
|
| 381 |
+
return 1;
|
| 382 |
+
}
|
| 383 |
+
current_block_type_index = select_block_type(ctx);
|
| 384 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
| 385 |
+
return {
|
| 386 |
+
c() {
|
| 387 |
+
create_component(statustracker.$$.fragment);
|
| 388 |
+
t = space();
|
| 389 |
+
if_block.c();
|
| 390 |
+
if_block_anchor = empty();
|
| 391 |
+
},
|
| 392 |
+
l(nodes) {
|
| 393 |
+
claim_component(statustracker.$$.fragment, nodes);
|
| 394 |
+
t = claim_space(nodes);
|
| 395 |
+
if_block.l(nodes);
|
| 396 |
+
if_block_anchor = empty();
|
| 397 |
+
},
|
| 398 |
+
m(target, anchor) {
|
| 399 |
+
mount_component(statustracker, target, anchor);
|
| 400 |
+
insert_hydration(target, t, anchor);
|
| 401 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
| 402 |
+
insert_hydration(target, if_block_anchor, anchor);
|
| 403 |
+
current = true;
|
| 404 |
+
},
|
| 405 |
+
p(ctx2, dirty) {
|
| 406 |
+
var _a2;
|
| 407 |
+
const statustracker_changes = dirty[0] & /*gradio, loading_status*/
|
| 408 |
+
16386 ? get_spread_update(statustracker_spread_levels, [
|
| 409 |
+
dirty[0] & /*gradio*/
|
| 410 |
+
16384 && {
|
| 411 |
+
autoscroll: (
|
| 412 |
+
/*gradio*/
|
| 413 |
+
ctx2[14].autoscroll
|
| 414 |
+
)
|
| 415 |
+
},
|
| 416 |
+
dirty[0] & /*gradio*/
|
| 417 |
+
16384 && { i18n: (
|
| 418 |
+
/*gradio*/
|
| 419 |
+
ctx2[14].i18n
|
| 420 |
+
) },
|
| 421 |
+
dirty[0] & /*loading_status*/
|
| 422 |
+
2 && get_spread_object(
|
| 423 |
+
/*loading_status*/
|
| 424 |
+
ctx2[1]
|
| 425 |
+
),
|
| 426 |
+
dirty[0] & /*loading_status*/
|
| 427 |
+
2 && {
|
| 428 |
+
status: (
|
| 429 |
+
/*loading_status*/
|
| 430 |
+
((_a2 = ctx2[1]) == null ? void 0 : _a2.status) || "complete"
|
| 431 |
+
)
|
| 432 |
+
}
|
| 433 |
+
]) : {};
|
| 434 |
+
statustracker.$set(statustracker_changes);
|
| 435 |
+
let previous_block_index = current_block_type_index;
|
| 436 |
+
current_block_type_index = select_block_type(ctx2);
|
| 437 |
+
if (current_block_type_index === previous_block_index) {
|
| 438 |
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
| 439 |
+
} else {
|
| 440 |
+
group_outros();
|
| 441 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
| 442 |
+
if_blocks[previous_block_index] = null;
|
| 443 |
+
});
|
| 444 |
+
check_outros();
|
| 445 |
+
if_block = if_blocks[current_block_type_index];
|
| 446 |
+
if (!if_block) {
|
| 447 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
| 448 |
+
if_block.c();
|
| 449 |
+
} else {
|
| 450 |
+
if_block.p(ctx2, dirty);
|
| 451 |
+
}
|
| 452 |
+
transition_in(if_block, 1);
|
| 453 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
| 454 |
+
}
|
| 455 |
+
},
|
| 456 |
+
i(local) {
|
| 457 |
+
if (current)
|
| 458 |
+
return;
|
| 459 |
+
transition_in(statustracker.$$.fragment, local);
|
| 460 |
+
transition_in(if_block);
|
| 461 |
+
current = true;
|
| 462 |
+
},
|
| 463 |
+
o(local) {
|
| 464 |
+
transition_out(statustracker.$$.fragment, local);
|
| 465 |
+
transition_out(if_block);
|
| 466 |
+
current = false;
|
| 467 |
+
},
|
| 468 |
+
d(detaching) {
|
| 469 |
+
if (detaching) {
|
| 470 |
+
detach(t);
|
| 471 |
+
detach(if_block_anchor);
|
| 472 |
+
}
|
| 473 |
+
destroy_component(statustracker, detaching);
|
| 474 |
+
if_blocks[current_block_type_index].d(detaching);
|
| 475 |
+
}
|
| 476 |
+
};
|
| 477 |
+
}
|
| 478 |
+
function create_fragment(ctx) {
|
| 479 |
+
let block;
|
| 480 |
+
let current;
|
| 481 |
+
block = new Block({
|
| 482 |
+
props: {
|
| 483 |
+
visible: (
|
| 484 |
+
/*visible*/
|
| 485 |
+
ctx[4]
|
| 486 |
+
),
|
| 487 |
+
variant: (
|
| 488 |
+
/*value*/
|
| 489 |
+
ctx[0] ? "solid" : "dashed"
|
| 490 |
+
),
|
| 491 |
+
border_mode: (
|
| 492 |
+
/*dragging*/
|
| 493 |
+
ctx[18] ? "focus" : "base"
|
| 494 |
+
),
|
| 495 |
+
padding: false,
|
| 496 |
+
elem_id: (
|
| 497 |
+
/*elem_id*/
|
| 498 |
+
ctx[2]
|
| 499 |
+
),
|
| 500 |
+
elem_classes: (
|
| 501 |
+
/*elem_classes*/
|
| 502 |
+
ctx[3]
|
| 503 |
+
),
|
| 504 |
+
container: (
|
| 505 |
+
/*container*/
|
| 506 |
+
ctx[11]
|
| 507 |
+
),
|
| 508 |
+
scale: (
|
| 509 |
+
/*scale*/
|
| 510 |
+
ctx[12]
|
| 511 |
+
),
|
| 512 |
+
min_width: (
|
| 513 |
+
/*min_width*/
|
| 514 |
+
ctx[13]
|
| 515 |
+
),
|
| 516 |
+
allow_overflow: false,
|
| 517 |
+
$$slots: { default: [create_default_slot] },
|
| 518 |
+
$$scope: { ctx }
|
| 519 |
+
}
|
| 520 |
+
});
|
| 521 |
+
return {
|
| 522 |
+
c() {
|
| 523 |
+
create_component(block.$$.fragment);
|
| 524 |
+
},
|
| 525 |
+
l(nodes) {
|
| 526 |
+
claim_component(block.$$.fragment, nodes);
|
| 527 |
+
},
|
| 528 |
+
m(target, anchor) {
|
| 529 |
+
mount_component(block, target, anchor);
|
| 530 |
+
current = true;
|
| 531 |
+
},
|
| 532 |
+
p(ctx2, dirty) {
|
| 533 |
+
const block_changes = {};
|
| 534 |
+
if (dirty[0] & /*visible*/
|
| 535 |
+
16)
|
| 536 |
+
block_changes.visible = /*visible*/
|
| 537 |
+
ctx2[4];
|
| 538 |
+
if (dirty[0] & /*value*/
|
| 539 |
+
1)
|
| 540 |
+
block_changes.variant = /*value*/
|
| 541 |
+
ctx2[0] ? "solid" : "dashed";
|
| 542 |
+
if (dirty[0] & /*dragging*/
|
| 543 |
+
262144)
|
| 544 |
+
block_changes.border_mode = /*dragging*/
|
| 545 |
+
ctx2[18] ? "focus" : "base";
|
| 546 |
+
if (dirty[0] & /*elem_id*/
|
| 547 |
+
4)
|
| 548 |
+
block_changes.elem_id = /*elem_id*/
|
| 549 |
+
ctx2[2];
|
| 550 |
+
if (dirty[0] & /*elem_classes*/
|
| 551 |
+
8)
|
| 552 |
+
block_changes.elem_classes = /*elem_classes*/
|
| 553 |
+
ctx2[3];
|
| 554 |
+
if (dirty[0] & /*container*/
|
| 555 |
+
2048)
|
| 556 |
+
block_changes.container = /*container*/
|
| 557 |
+
ctx2[11];
|
| 558 |
+
if (dirty[0] & /*scale*/
|
| 559 |
+
4096)
|
| 560 |
+
block_changes.scale = /*scale*/
|
| 561 |
+
ctx2[12];
|
| 562 |
+
if (dirty[0] & /*min_width*/
|
| 563 |
+
8192)
|
| 564 |
+
block_changes.min_width = /*min_width*/
|
| 565 |
+
ctx2[13];
|
| 566 |
+
if (dirty[0] & /*_selectable, value, label, show_label, height, gradio, interactive, file_count, file_types, root, uploading, dragging, loading_status*/
|
| 567 |
+
509923 | dirty[1] & /*$$scope*/
|
| 568 |
+
4) {
|
| 569 |
+
block_changes.$$scope = { dirty, ctx: ctx2 };
|
| 570 |
+
}
|
| 571 |
+
block.$set(block_changes);
|
| 572 |
+
},
|
| 573 |
+
i(local) {
|
| 574 |
+
if (current)
|
| 575 |
+
return;
|
| 576 |
+
transition_in(block.$$.fragment, local);
|
| 577 |
+
current = true;
|
| 578 |
+
},
|
| 579 |
+
o(local) {
|
| 580 |
+
transition_out(block.$$.fragment, local);
|
| 581 |
+
current = false;
|
| 582 |
+
},
|
| 583 |
+
d(detaching) {
|
| 584 |
+
destroy_component(block, detaching);
|
| 585 |
+
}
|
| 586 |
+
};
|
| 587 |
+
}
|
| 588 |
+
function instance($$self, $$props, $$invalidate) {
|
| 589 |
+
let { elem_id = "" } = $$props;
|
| 590 |
+
let { elem_classes = [] } = $$props;
|
| 591 |
+
let { visible = true } = $$props;
|
| 592 |
+
let { value } = $$props;
|
| 593 |
+
let { interactive } = $$props;
|
| 594 |
+
let { root } = $$props;
|
| 595 |
+
let { label } = $$props;
|
| 596 |
+
let { show_label } = $$props;
|
| 597 |
+
let { height = void 0 } = $$props;
|
| 598 |
+
let { _selectable = false } = $$props;
|
| 599 |
+
let { loading_status } = $$props;
|
| 600 |
+
let { container = true } = $$props;
|
| 601 |
+
let { scale = null } = $$props;
|
| 602 |
+
let { min_width = void 0 } = $$props;
|
| 603 |
+
let { gradio } = $$props;
|
| 604 |
+
let { file_count } = $$props;
|
| 605 |
+
let { file_types = ["file"] } = $$props;
|
| 606 |
+
let { input_ready } = $$props;
|
| 607 |
+
let uploading = false;
|
| 608 |
+
let old_value = value;
|
| 609 |
+
let dragging = false;
|
| 610 |
+
const clear_status_handler = () => gradio.dispatch("clear_status", loading_status);
|
| 611 |
+
const select_handler = ({ detail }) => gradio.dispatch("select", detail);
|
| 612 |
+
const func = (...args) => gradio.client.upload(...args);
|
| 613 |
+
const func_1 = (...args) => gradio.client.stream(...args);
|
| 614 |
+
function fileupload_uploading_binding(value2) {
|
| 615 |
+
uploading = value2;
|
| 616 |
+
$$invalidate(17, uploading);
|
| 617 |
+
}
|
| 618 |
+
const change_handler = ({ detail }) => {
|
| 619 |
+
$$invalidate(0, value = detail);
|
| 620 |
+
};
|
| 621 |
+
const drag_handler = ({ detail }) => $$invalidate(18, dragging = detail);
|
| 622 |
+
const clear_handler = () => gradio.dispatch("clear");
|
| 623 |
+
const select_handler_1 = ({ detail }) => gradio.dispatch("select", detail);
|
| 624 |
+
const upload_handler = () => gradio.dispatch("upload");
|
| 625 |
+
const error_handler = ({ detail }) => {
|
| 626 |
+
$$invalidate(1, loading_status = loading_status || {});
|
| 627 |
+
$$invalidate(1, loading_status.status = "error", loading_status);
|
| 628 |
+
gradio.dispatch("error", detail);
|
| 629 |
+
};
|
| 630 |
+
const delete_handler = ({ detail }) => {
|
| 631 |
+
gradio.dispatch("delete", detail);
|
| 632 |
+
};
|
| 633 |
+
$$self.$$set = ($$props2) => {
|
| 634 |
+
if ("elem_id" in $$props2)
|
| 635 |
+
$$invalidate(2, elem_id = $$props2.elem_id);
|
| 636 |
+
if ("elem_classes" in $$props2)
|
| 637 |
+
$$invalidate(3, elem_classes = $$props2.elem_classes);
|
| 638 |
+
if ("visible" in $$props2)
|
| 639 |
+
$$invalidate(4, visible = $$props2.visible);
|
| 640 |
+
if ("value" in $$props2)
|
| 641 |
+
$$invalidate(0, value = $$props2.value);
|
| 642 |
+
if ("interactive" in $$props2)
|
| 643 |
+
$$invalidate(5, interactive = $$props2.interactive);
|
| 644 |
+
if ("root" in $$props2)
|
| 645 |
+
$$invalidate(6, root = $$props2.root);
|
| 646 |
+
if ("label" in $$props2)
|
| 647 |
+
$$invalidate(7, label = $$props2.label);
|
| 648 |
+
if ("show_label" in $$props2)
|
| 649 |
+
$$invalidate(8, show_label = $$props2.show_label);
|
| 650 |
+
if ("height" in $$props2)
|
| 651 |
+
$$invalidate(9, height = $$props2.height);
|
| 652 |
+
if ("_selectable" in $$props2)
|
| 653 |
+
$$invalidate(10, _selectable = $$props2._selectable);
|
| 654 |
+
if ("loading_status" in $$props2)
|
| 655 |
+
$$invalidate(1, loading_status = $$props2.loading_status);
|
| 656 |
+
if ("container" in $$props2)
|
| 657 |
+
$$invalidate(11, container = $$props2.container);
|
| 658 |
+
if ("scale" in $$props2)
|
| 659 |
+
$$invalidate(12, scale = $$props2.scale);
|
| 660 |
+
if ("min_width" in $$props2)
|
| 661 |
+
$$invalidate(13, min_width = $$props2.min_width);
|
| 662 |
+
if ("gradio" in $$props2)
|
| 663 |
+
$$invalidate(14, gradio = $$props2.gradio);
|
| 664 |
+
if ("file_count" in $$props2)
|
| 665 |
+
$$invalidate(15, file_count = $$props2.file_count);
|
| 666 |
+
if ("file_types" in $$props2)
|
| 667 |
+
$$invalidate(16, file_types = $$props2.file_types);
|
| 668 |
+
if ("input_ready" in $$props2)
|
| 669 |
+
$$invalidate(19, input_ready = $$props2.input_ready);
|
| 670 |
+
};
|
| 671 |
+
$$self.$$.update = () => {
|
| 672 |
+
if ($$self.$$.dirty[0] & /*uploading*/
|
| 673 |
+
131072) {
|
| 674 |
+
$$invalidate(19, input_ready = !uploading);
|
| 675 |
+
}
|
| 676 |
+
if ($$self.$$.dirty[0] & /*old_value, value, gradio*/
|
| 677 |
+
1064961) {
|
| 678 |
+
if (JSON.stringify(old_value) !== JSON.stringify(value)) {
|
| 679 |
+
gradio.dispatch("change");
|
| 680 |
+
$$invalidate(20, old_value = value);
|
| 681 |
+
}
|
| 682 |
+
}
|
| 683 |
+
};
|
| 684 |
+
return [
|
| 685 |
+
value,
|
| 686 |
+
loading_status,
|
| 687 |
+
elem_id,
|
| 688 |
+
elem_classes,
|
| 689 |
+
visible,
|
| 690 |
+
interactive,
|
| 691 |
+
root,
|
| 692 |
+
label,
|
| 693 |
+
show_label,
|
| 694 |
+
height,
|
| 695 |
+
_selectable,
|
| 696 |
+
container,
|
| 697 |
+
scale,
|
| 698 |
+
min_width,
|
| 699 |
+
gradio,
|
| 700 |
+
file_count,
|
| 701 |
+
file_types,
|
| 702 |
+
uploading,
|
| 703 |
+
dragging,
|
| 704 |
+
input_ready,
|
| 705 |
+
old_value,
|
| 706 |
+
clear_status_handler,
|
| 707 |
+
select_handler,
|
| 708 |
+
func,
|
| 709 |
+
func_1,
|
| 710 |
+
fileupload_uploading_binding,
|
| 711 |
+
change_handler,
|
| 712 |
+
drag_handler,
|
| 713 |
+
clear_handler,
|
| 714 |
+
select_handler_1,
|
| 715 |
+
upload_handler,
|
| 716 |
+
error_handler,
|
| 717 |
+
delete_handler
|
| 718 |
+
];
|
| 719 |
+
}
|
| 720 |
+
class Index extends SvelteComponent {
|
| 721 |
+
constructor(options) {
|
| 722 |
+
super();
|
| 723 |
+
init(
|
| 724 |
+
this,
|
| 725 |
+
options,
|
| 726 |
+
instance,
|
| 727 |
+
create_fragment,
|
| 728 |
+
safe_not_equal,
|
| 729 |
+
{
|
| 730 |
+
elem_id: 2,
|
| 731 |
+
elem_classes: 3,
|
| 732 |
+
visible: 4,
|
| 733 |
+
value: 0,
|
| 734 |
+
interactive: 5,
|
| 735 |
+
root: 6,
|
| 736 |
+
label: 7,
|
| 737 |
+
show_label: 8,
|
| 738 |
+
height: 9,
|
| 739 |
+
_selectable: 10,
|
| 740 |
+
loading_status: 1,
|
| 741 |
+
container: 11,
|
| 742 |
+
scale: 12,
|
| 743 |
+
min_width: 13,
|
| 744 |
+
gradio: 14,
|
| 745 |
+
file_count: 15,
|
| 746 |
+
file_types: 16,
|
| 747 |
+
input_ready: 19
|
| 748 |
+
},
|
| 749 |
+
null,
|
| 750 |
+
[-1, -1]
|
| 751 |
+
);
|
| 752 |
+
}
|
| 753 |
+
get elem_id() {
|
| 754 |
+
return this.$$.ctx[2];
|
| 755 |
+
}
|
| 756 |
+
set elem_id(elem_id) {
|
| 757 |
+
this.$$set({ elem_id });
|
| 758 |
+
flush();
|
| 759 |
+
}
|
| 760 |
+
get elem_classes() {
|
| 761 |
+
return this.$$.ctx[3];
|
| 762 |
+
}
|
| 763 |
+
set elem_classes(elem_classes) {
|
| 764 |
+
this.$$set({ elem_classes });
|
| 765 |
+
flush();
|
| 766 |
+
}
|
| 767 |
+
get visible() {
|
| 768 |
+
return this.$$.ctx[4];
|
| 769 |
+
}
|
| 770 |
+
set visible(visible) {
|
| 771 |
+
this.$$set({ visible });
|
| 772 |
+
flush();
|
| 773 |
+
}
|
| 774 |
+
get value() {
|
| 775 |
+
return this.$$.ctx[0];
|
| 776 |
+
}
|
| 777 |
+
set value(value) {
|
| 778 |
+
this.$$set({ value });
|
| 779 |
+
flush();
|
| 780 |
+
}
|
| 781 |
+
get interactive() {
|
| 782 |
+
return this.$$.ctx[5];
|
| 783 |
+
}
|
| 784 |
+
set interactive(interactive) {
|
| 785 |
+
this.$$set({ interactive });
|
| 786 |
+
flush();
|
| 787 |
+
}
|
| 788 |
+
get root() {
|
| 789 |
+
return this.$$.ctx[6];
|
| 790 |
+
}
|
| 791 |
+
set root(root) {
|
| 792 |
+
this.$$set({ root });
|
| 793 |
+
flush();
|
| 794 |
+
}
|
| 795 |
+
get label() {
|
| 796 |
+
return this.$$.ctx[7];
|
| 797 |
+
}
|
| 798 |
+
set label(label) {
|
| 799 |
+
this.$$set({ label });
|
| 800 |
+
flush();
|
| 801 |
+
}
|
| 802 |
+
get show_label() {
|
| 803 |
+
return this.$$.ctx[8];
|
| 804 |
+
}
|
| 805 |
+
set show_label(show_label) {
|
| 806 |
+
this.$$set({ show_label });
|
| 807 |
+
flush();
|
| 808 |
+
}
|
| 809 |
+
get height() {
|
| 810 |
+
return this.$$.ctx[9];
|
| 811 |
+
}
|
| 812 |
+
set height(height) {
|
| 813 |
+
this.$$set({ height });
|
| 814 |
+
flush();
|
| 815 |
+
}
|
| 816 |
+
get _selectable() {
|
| 817 |
+
return this.$$.ctx[10];
|
| 818 |
+
}
|
| 819 |
+
set _selectable(_selectable) {
|
| 820 |
+
this.$$set({ _selectable });
|
| 821 |
+
flush();
|
| 822 |
+
}
|
| 823 |
+
get loading_status() {
|
| 824 |
+
return this.$$.ctx[1];
|
| 825 |
+
}
|
| 826 |
+
set loading_status(loading_status) {
|
| 827 |
+
this.$$set({ loading_status });
|
| 828 |
+
flush();
|
| 829 |
+
}
|
| 830 |
+
get container() {
|
| 831 |
+
return this.$$.ctx[11];
|
| 832 |
+
}
|
| 833 |
+
set container(container) {
|
| 834 |
+
this.$$set({ container });
|
| 835 |
+
flush();
|
| 836 |
+
}
|
| 837 |
+
get scale() {
|
| 838 |
+
return this.$$.ctx[12];
|
| 839 |
+
}
|
| 840 |
+
set scale(scale) {
|
| 841 |
+
this.$$set({ scale });
|
| 842 |
+
flush();
|
| 843 |
+
}
|
| 844 |
+
get min_width() {
|
| 845 |
+
return this.$$.ctx[13];
|
| 846 |
+
}
|
| 847 |
+
set min_width(min_width) {
|
| 848 |
+
this.$$set({ min_width });
|
| 849 |
+
flush();
|
| 850 |
+
}
|
| 851 |
+
get gradio() {
|
| 852 |
+
return this.$$.ctx[14];
|
| 853 |
+
}
|
| 854 |
+
set gradio(gradio) {
|
| 855 |
+
this.$$set({ gradio });
|
| 856 |
+
flush();
|
| 857 |
+
}
|
| 858 |
+
get file_count() {
|
| 859 |
+
return this.$$.ctx[15];
|
| 860 |
+
}
|
| 861 |
+
set file_count(file_count) {
|
| 862 |
+
this.$$set({ file_count });
|
| 863 |
+
flush();
|
| 864 |
+
}
|
| 865 |
+
get file_types() {
|
| 866 |
+
return this.$$.ctx[16];
|
| 867 |
+
}
|
| 868 |
+
set file_types(file_types) {
|
| 869 |
+
this.$$set({ file_types });
|
| 870 |
+
flush();
|
| 871 |
+
}
|
| 872 |
+
get input_ready() {
|
| 873 |
+
return this.$$.ctx[19];
|
| 874 |
+
}
|
| 875 |
+
set input_ready(input_ready) {
|
| 876 |
+
this.$$set({ input_ready });
|
| 877 |
+
flush();
|
| 878 |
+
}
|
| 879 |
+
}
|
| 880 |
+
export {
|
| 881 |
+
default2 as BaseExample,
|
| 882 |
+
File as BaseFile,
|
| 883 |
+
BaseFileUpload,
|
| 884 |
+
a as FilePreview,
|
| 885 |
+
Index as default
|
| 886 |
+
};
|
evalkit_tf446/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Index.Bq9du_gV.js.br
ADDED
|
Binary file (3.68 kB). View file
|
|
|