1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PlotlyPlot-CWyVriO7.js","./i18n-dpAHICcw.js","./index-CDZuCcOm.js","./index-DYz7DaJH.css","./i18n-UT_CQGRO.css","./BokehPlot-D-IwhnDm.js","./BokehPlot-6bmWV9d6.css","./MatplotlibPlot-BH8pkhWT.js","./MatplotlibPlot-CaRv3arg.css","./AltairPlot-D1o_hy6h.js","./color-BJpHXmrC.js","./mollweide-Ca6MRGcL.js","./ordinal-mJAyPK2n.js","./init-CT6u7j_0.js","./linear-BFftg_y2.js","./step-TZOpqHBK.js","./defaultLocale-DG5JsUjF.js","./time-uewm_MPu.js","./dispatch-tQmgj1It.js","./range-BRcAanmR.js","./index-OyOqWiks.js","./colors-CJG58WzC.js","./dsv-BhAd467f.js","./arc-BEcVRQAW.js","./AltairPlot-qXQqL0TB.css"])))=>i.map(i=>d[i]); 2import { a as append, f as from_svg, R as push, y as user_effect, z as untrack, x as set, w as get, a6 as comment, S as first_child, T as pop, u as state, ag as __vitePreload } from './index-CDZuCcOm.js'; 3import { i as if_block } from './i18n-dpAHICcw.js'; 4import { k as key } from './key-BkIRB637.js'; 5import { c as component } from './ScrollFade.svelte_svelte_type_style_lang-DUvCSfRk.js'; 6import { b as bubble_event } from './misc-C2MjMwBX.js'; 7import './MarkdownCode.svelte_svelte_type_style_lang-GeNUGzep.js'; 8import { E as Empty } from './Empty-617iGDfy.js'; 9 10var root = from_svg(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--carbon" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><circle cx="20" cy="4" r="2" fill="currentColor"></circle><circle cx="8" cy="16" r="2" fill="currentColor"></circle><circle cx="28" cy="12" r="2" fill="currentColor"></circle><circle cx="11" cy="7" r="2" fill="currentColor"></circle><circle cx="16" cy="24" r="2" fill="currentColor"></circle><path fill="currentColor" d="M30 3.413L28.586 2L4 26.585V2H2v26a2 2 0 0 0 2 2h26v-2H5.413Z"></path></svg>`); 11 12function Plot$2($$anchor) { 13 var svg = root(); 14 15 append($$anchor, svg); 16} 17 18function Plot($$anchor, $$props) { 19 push($$props, true); 20 21 //@ts-nocheck 22 let PlotComponent = state(null); 23 24 let loaded_plotly_css = state(false); 25 let key$1 = state(0); 26 27 const plotTypeMapping = { 28 plotly: () => __vitePreload(() => import('./PlotlyPlot-CWyVriO7.js'),true ?__vite__mapDeps([0,1,2,3,4]):void 0,import.meta.url), 29 bokeh: () => __vitePreload(() => import('./BokehPlot-D-IwhnDm.js'),true ?__vite__mapDeps([5,1,2,3,4,6]):void 0,import.meta.url), 30 matplotlib: () => __vitePreload(() => import('./MatplotlibPlot-BH8pkhWT.js'),true ?__vite__mapDeps([7,1,2,3,4,8]):void 0,import.meta.url), 31 altair: () => __vitePreload(() => import('./AltairPlot-D1o_hy6h.js'),true ?__vite__mapDeps([9,1,2,3,4,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]):void 0,import.meta.url) 32 }; 33 34 let loadedPlotTypeMapping = {}; 35 const is_browser = typeof window !== "undefined"; 36 let _type = state(null); 37 38 user_effect(() => { 39 let type = $$props.value?.type; 40 41 untrack(() => { 42 set(key$1, get(key$1) + 1); 43 44 if (type !== get(_type)) { 45 set(PlotComponent, null); 46 } 47 48 if (type && type in plotTypeMapping && is_browser) { 49 if (loadedPlotTypeMapping[type]) { 50 set(PlotComponent, loadedPlotTypeMapping[type], true); 51 } else { 52 plotTypeMapping[type]().then((module) => { 53 set(PlotComponent, module.default, true); 54 loadedPlotTypeMapping[type] = get(PlotComponent); 55 }); 56 } 57 } 58 59 set(_type, type, true); 60 }); 61 62 $$props.on_change(); 63 }); 64 65 var fragment = comment(); 66 var node = first_child(fragment); 67 68 { 69 var consequent = ($$anchor) => { 70 var fragment_1 = comment(); 71 var node_1 = first_child(fragment_1); 72 73 key(node_1, () => get(key$1), ($$anchor) => { 74 var fragment_2 = comment(); 75 var node_2 = first_child(fragment_2); 76 77 component(node_2, () => get(PlotComponent), ($$anchor, PlotComponent_1) => { 78 PlotComponent_1($$anchor, { 79 get value() { 80 return $$props.value; 81 }, 82 colors: [], 83 get theme_mode() { 84 return $$props.theme_mode; 85 }, 86 87 get show_label() { 88 return $$props.show_label; 89 }, 90 91 get caption() { 92 return $$props.caption; 93 }, 94 95 get bokeh_version() { 96 return $$props.bokeh_version; 97 }, 98 99 get show_actions_button() { 100 return $$props.show_actions_button; 101 }, 102 103 get _selectable() { 104 return $$props._selectable; 105 }, 106 107 get x_lim() { 108 return $$props.x_lim; 109 }, 110 111 get loaded_plotly_css() { 112 return get(loaded_plotly_css); 113 }, 114 115 set loaded_plotly_css($$value) { 116 set(loaded_plotly_css, $$value, true); 117 }, 118 119 $$events: { 120 select($$arg) { 121 bubble_event.call(this, $$props, $$arg); 122 } 123 } 124 }); 125 }); 126 127 append($$anchor, fragment_2); 128 }); 129 130 append($$anchor, fragment_1); 131 }; 132 133 var alternate = ($$anchor) => { 134 Empty($$anchor, { 135 unpadded_box: true, 136 size: 'large', 137 children: ($$anchor, $$slotProps) => { 138 Plot$2($$anchor); 139 }, 140 $$slots: { default: true } 141 }); 142 }; 143 144 if_block(node, ($$render) => { 145 if ($$props.value && get(PlotComponent)) $$render(consequent); else $$render(alternate, false); 146 }); 147 } 148 149 append($$anchor, fragment); 150 pop(); 151} 152 153const Plot$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ 154 __proto__: null, 155 default: Plot 156}, Symbol.toStringTag, { value: 'Module' })); 157 158export { Plot$2 as P, Plot as a, Plot$1 as b }; 159//# sourceMappingURL=Plot-C4DDLpW5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.