hysts HF Staff commited on
Commit
e1d6ed5
Β·
verified Β·
1 Parent(s): 48ccabc

state B: credentials same-origin (embed predict works cross-origin)

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. assets/{AltairPlot-DvtXjkKK.js β†’ AltairPlot-Dr6gM0_X.js} +0 -0
  2. assets/{ApiDocs-dJKk0kqa.js β†’ ApiDocs-CseUrmNn.js} +1 -1
  3. assets/{ApiRecorder-Bl4Lwcui.js β†’ ApiRecorder-D0-fBJqr.js} +1 -1
  4. assets/{ArrowUp-aILrPIpo.js β†’ ArrowUp-BNDE3Ai4.js} +1 -1
  5. assets/{BaseForm-DAripPNq.js β†’ BaseForm-CgXgHXvl.js} +1 -1
  6. assets/{Block-WPcVj6Bq.js β†’ Block-DkzyQHli.js} +1 -1
  7. assets/{BlockLabel-BzVeVrtL.js β†’ BlockLabel-CEOjqpu7.js} +1 -1
  8. assets/{BlockTitle-DNiCHWOR.js β†’ BlockTitle-B6Pgijwb.js} +1 -1
  9. assets/{Blocks-C9ppI-He.js β†’ Blocks-C4lA_Loz.js} +3 -3
  10. assets/{BokehPlot-B0xAqoU-.js β†’ BokehPlot-IYUvpdLF.js} +1 -1
  11. assets/{Button-CV36sOqf.js β†’ Button-j0-_VC-G.js} +1 -1
  12. assets/{Canvas3D-TG45VLbi.js β†’ Canvas3D-BbKV2SzE.js} +2 -2
  13. assets/{Canvas3DGS-CSEUG3T9.js β†’ Canvas3DGS-CPiRrZLZ.js} +1 -1
  14. assets/{Check-2f8HlfSn.js β†’ Check-DjGw_9dO.js} +1 -1
  15. assets/{Checkbox-Bh_yH8eu.js β†’ Checkbox-DdDaw1pY.js} +1 -1
  16. assets/{Clear-BR8cTgGu.js β†’ Clear-BiKSVifk.js} +1 -1
  17. assets/{Code-D1inKIZZ.js β†’ Code-B0D7Zxt1.js} +1 -1
  18. assets/{Code-Bhm2YgEI.js β†’ Code-D0Kw4ylG.js} +0 -0
  19. assets/{Copy-B3jzejpA.js β†’ Copy-eBznHIlR.js} +1 -1
  20. assets/{Download-DWSaBiea.js β†’ Download-0gCL6VXM.js} +1 -1
  21. assets/{DownloadLink-DM2QmhDx.js β†’ DownloadLink-Dk6GrGSA.js} +1 -1
  22. assets/{Dropdown-CVRP4i7q.js β†’ Dropdown-D5-31HWl.js} +1 -1
  23. assets/{DropdownArrow-Cq3QAKSv.js β†’ DropdownArrow-C0w6FgSo.js} +1 -1
  24. assets/{EXT_lights_area-CrwQ8aUg.js β†’ EXT_lights_area-DR-enfJq.js} +1 -1
  25. assets/{EXT_lights_ies-C2q7BoCe.js β†’ EXT_lights_ies-zmsFevvJ.js} +1 -1
  26. assets/{EXT_lights_image_based-VXkLlHnK.js β†’ EXT_lights_image_based-QdF5w0Gc.js} +1 -1
  27. assets/{EXT_mesh_gpu_instancing-_XEhXaiJ.js β†’ EXT_mesh_gpu_instancing-BBagtG9m.js} +1 -1
  28. assets/{EXT_meshopt_compression-CNfYzYbj.js β†’ EXT_meshopt_compression-uVDTMCPr.js} +1 -1
  29. assets/{EXT_texture_avif-8t8_Kyul.js β†’ EXT_texture_avif-5a0PhMZm.js} +1 -1
  30. assets/{EXT_texture_webp-2Si9vGim.js β†’ EXT_texture_webp-3jsgTjRP.js} +1 -1
  31. assets/{Edit-G5CCT_vc.js β†’ Edit-DfYRtNtw.js} +1 -1
  32. assets/{Empty-B15ItVsj.js β†’ Empty-Clj0ErcW.js} +1 -1
  33. assets/{Example-DT5PcEOk.js β†’ Example-5TvjAuj2.js} +1 -1
  34. assets/{Example-CCIKPQQj.js β†’ Example-7cNIWfNN.js} +1 -1
  35. assets/{Example-BGlyl4O8.js β†’ Example-BFvndbmT.js} +1 -1
  36. assets/{Example-BPjTUpdK.js β†’ Example-BK_3ogSC.js} +1 -1
  37. assets/{Example-ByqvSEWx.js β†’ Example-BTYUTWpe.js} +1 -1
  38. assets/{Example-B3rqw2Wc.js β†’ Example-BWxCDLr9.js} +1 -1
  39. assets/{Example-7FcnnBll.js β†’ Example-BdhvPMmU.js} +1 -1
  40. assets/Example-BfoDEvJC.js +0 -1
  41. assets/{Example-CXAPpj07.js β†’ Example-C2VbMl9n.js} +1 -1
  42. assets/{Example-q7qW2djY.js β†’ Example-C8kkgkoI.js} +1 -1
  43. assets/{Example-DXbKzhJW.js β†’ Example-CDBVWKus.js} +1 -1
  44. assets/{Example-DCvUey5Q.js β†’ Example-CGtPi4dj.js} +1 -1
  45. assets/{Example-Cjtz6ob8.js β†’ Example-CJXDEOIL.js} +1 -1
  46. assets/{Example-Cpd2Jjnh.js β†’ Example-CKTv7ur-.js} +1 -1
  47. assets/{Example-D-alj4yz.js β†’ Example-CYA1ZfQi.js} +1 -1
  48. assets/{Example-oI9QHs-R.js β†’ Example-CpSLgFlm.js} +1 -1
  49. assets/Example-CyVYJU_i.js +1 -0
  50. assets/{Example-Cr4dhaJx.js β†’ Example-D1yz72bP.js} +1 -1
assets/{AltairPlot-DvtXjkKK.js β†’ AltairPlot-Dr6gM0_X.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{ApiDocs-dJKk0kqa.js β†’ ApiDocs-CseUrmNn.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{p as m,a as Ee,e as st,i as G,q as ot,w as ct,b as Ie,j as qt,f as Pt,d as Tt,v as St,y as Xt,J as Kt}from"./i18n-CPHyzK9b.js";import{M as $e,t as R,a as l,O as ke,P as h,f as gt,a1 as Lt,N as re,S as n,Q as a,T as t,a5 as be,X as V,U as Te,R as w,a4 as xe,a3 as Ge,v as I,x as p,Z as e,Y as ve,_ as _t,a0 as B,$ as z,ad as Me,a7 as Bt,G as Vt,b1 as ea,a2 as Mt,ar as At,aq as jt,au as zt}from"./index-DydPgVMC.js";import{b as Gt}from"./misc-Dkc5KZ-v.js";import{C as Ft}from"./clear-DRfgZ-Qi.js";import{a as ta,g as aa}from"./Blocks-C9ppI-He.js";import{B as Yt}from"./Button-CV36sOqf.js";import{L as Wt}from"./index-CfM_uZQa.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";import"./StreamingBar.svelte_svelte_type_style_lang-BMYtrUWr.js";import{B as Le}from"./Block-WPcVj6Bq.js";import{h as Nt}from"./html-BZIV6tyB.js";import{a as sa}from"./input-BtIxlP_B.js";import"./size-D4lmUoTq.js";import"./state.svelte-DpHZj3x1.js";import"./index-CMKhGNWj.js";import"./index-tFQomdd2.js";import"./snippet-BtHMuX3s.js";import"./Image-CZ1Hb99p.js";/* empty css *//* empty css */import"./Clear-BR8cTgGu.js";import"./index-B_pwUImq.js";var ra=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M12.1 2a9.8 9.8 0 0 0-5.4 1.6l6.4 6.4a2.1 2.1 0 0 1 .2 3a2.1 2.1 0 0 1-3-.2L3.7 6.4A9.84 9.84 0 0 0 2 12.1a10.14 10.14 0 0 0 10.1 10.1a11 11 0 0 0 2.6-.3l6.7 6.7a5 5 0 0 0 7.1-7.1l-6.7-6.7a11 11 0 0 0 .3-2.6A10 10 0 0 0 12.1 2m8 10.1a7.6 7.6 0 0 1-.3 2.1l-.3 1.1l.8.8l6.7 6.7a2.88 2.88 0 0 1 .9 2.1A2.72 2.72 0 0 1 27 27a2.9 2.9 0 0 1-4.2 0l-6.7-6.7l-.8-.8l-1.1.3a7.6 7.6 0 0 1-2.1.3a8.27 8.27 0 0 1-5.7-2.3A7.63 7.63 0 0 1 4 12.1a8.3 8.3 0 0 1 .3-2.2l4.4 4.4a4.14 4.14 0 0 0 5.9.2a4.14 4.14 0 0 0-.2-5.9L10 4.2a6.5 6.5 0 0 1 2-.3a8.27 8.27 0 0 1 5.7 2.3a8.5 8.5 0 0 1 2.4 5.9"></path></svg>');function Et(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=ra();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var na=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"></path><path fill="currentColor" d="M8 10h16v2H8zm0 6h10v2H8z"></path></svg>');function Zt(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=na();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var ia=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7z"></path><path fill="currentColor" d="M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11l.002 18Z"></path></svg>');function Ht(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=ia();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var la=w('<div class="wrap prose svelte-1s0akg2"><h1>API Docs</h1> <p class="attention svelte-1s0akg2">No API Routes found for <code class="svelte-1s0akg2"> </code></p> <p>To expose an API endpoint of your app in this page, set the <code>api_name</code> parameter of the event listener. <br/> For more information, visit the <a href="https://gradio.app/sharing_your_app/#api-page" target="_blank">API Page guide</a> . To hide the API documentation button and this page, set <code>footer_links=["gradio", "settings"]</code> in the <code>Blocks.launch()</code> method.</p></div> <button class="svelte-1s0akg2"><!></button>',1);function oa(d,s){$e(s,!1);const i=Lt();let c=m(s,"root",12);var v={get root(){return c()},set root(E){c(E),h()}};st();var _=la(),H=re(_),O=n(a(H),2),Z=n(a(O)),M=a(Z,!0);t(Z),t(O),be(2),t(H);var x=n(H,2),b=a(x);return Ft(b),t(x),R(()=>V(M,c())),Te("click",x,()=>i("close")),l(d,_),ke(v)}var ca=w('<div class="loading-dot self-baseline svelte-urwr9f"></div> <p class="self-baseline btn-text svelte-urwr9f">API Recorder</p>',1),da=w('<h2 class="svelte-urwr9f"><img alt="" class="svelte-urwr9f"/> <div class="title svelte-urwr9f"><!> documentation <div class="url svelte-urwr9f"> </div></div> <span class="counts svelte-urwr9f"><!> <p><span class="url svelte-urwr9f"> </span> <!><!><br/></p></span></h2> <button class="svelte-urwr9f"><!></button>',1);function pa(d,s){$e(s,!1);let i=m(s,"root",12),c=m(s,"api_count",12),v=m(s,"current_language",12,"python");const _=Lt();var H={get root(){return i()},set root(y){i(y),h()},get api_count(){return c()},set api_count(y){c(y),h()},get current_language(){return v()},set current_language(y){v(y),h()}};st();var O=da(),Z=re(O),M=a(Z),x=n(M,2),b=a(x);{var E=y=>{var Y=xe("MCP");l(y,Y)},ce=y=>{var Y=Ge(),le=re(Y);{var te=$=>{var K=xe("CLI");l($,K)},C=$=>{var K=xe("API");l($,K)};G(le,$=>{v()==="cli"?$(te):$(C,!1)},!0)}l(y,Y)};G(b,y=>{v()==="mcp"?y(E):y(ce,!1)})}var ee=n(b,2),q=a(ee,!0);t(ee),t(x);var g=n(x,2),o=a(g);{var P=y=>{Yt(y,{size:"sm",variant:"secondary",elem_id:"start-api-recorder",onclick:()=>_("close",{api_recorder_visible:!0}),children:(Y,le)=>{var te=ca();be(2),l(Y,te)},$$slots:{default:!0}})};G(o,y=>{v()!=="mcp"&&v()!=="cli"&&y(P)})}var U=n(o,2),T=a(U),F=a(T,!0);t(T);var k=n(T,2);{var f=y=>{var Y=xe("MCP Tool");l(y,Y)},L=y=>{var Y=Ge(),le=re(Y);{var te=$=>{var K=xe(`CLI
2
  endpoint`);l($,K)},C=$=>{var K=xe("API endpoint");l($,K)};G(le,$=>{v()==="cli"?$(te):$(C,!1)},!0)}l(y,Y)};G(k,y=>{v()==="mcp"?y(f):y(L,!1)})}var de=n(k);{var j=y=>{var Y=xe("s");l(y,Y)};G(de,y=>{c()>1&&y(j)})}be(),t(U),t(g),t(Z);var S=n(Z,2),X=a(S);return Ft(X),t(S),R(()=>{Ee(M,"src",ta),V(q,i()),V(F,c())}),Te("click",S,()=>_("close")),l(d,O),ke(H)}function ut(d,s,i=null){return s===void 0?i==="py"?"None":null:d===null&&i==="py"?"None":s==="string"||s==="str"?i===null?d:'"'+d+'"':s==="number"?i===null?parseFloat(d):d:s==="boolean"||s=="bool"?i==="py"?(d=String(d),d==="true"?"True":"False"):i==="js"||i==="bash"?d:d==="true":s==="List[str]"?(d=JSON.stringify(d),d):s.startsWith("Literal['")?'"'+d+'"':i===null?d===""?null:JSON.parse(d):typeof d=="string"?d===""?i==="py"?"None":"null":d:(i==="bash"&&(d=Dt(d)),i==="py"&&(d=Rt(d)),va(d))}function Dt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?{path:d.url,meta:{_type:"gradio.FileData"}}:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Dt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Dt(d[s])}),d)}function Rt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?`handle_file('${d.url}')`:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Rt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Rt(d[s])}),d)}function va(d){let s=JSON.stringify(d,(v,_)=>_===null?"UNQUOTEDNone":typeof _=="string"&&_.startsWith("handle_file(")&&_.endsWith(")")?`UNQUOTED${_}`:_);const i=/"UNQUOTEDhandle_file\(([^)]*)\)"/g;s=s.replace(i,(v,_)=>`handle_file(${_})`);const c=/"UNQUOTEDNone"/g;return s.replace(c,"None")}function lt(d){return d<1?`${Math.round(d*1e3)} ms`:`${d.toFixed(2)} s`}var _a=w(" <!>:",1),ua=w(" <!>:",1),ga=w(" <!>",1),ma=w('<span style="font-weight:bold">Required</span>'),ha=w('<span>Default:</span><span class="code svelte-1n0q212" style="font-size: var(--text-sm);"> </span>',1),fa=w('<hr class="hr svelte-1n0q212"/> <div style="margin:10px;"><p style="white-space: nowrap; overflow-x: auto;"><span class="code svelte-1n0q212" style="margin-right: 10px;"> </span> <span class="code highlight svelte-1n0q212" style="margin-right: 10px;"><!></span> <!></p> <p class="desc svelte-1n0q212"> </p></div>',1),ya=w('<div class="load-wrap"><!></div>'),wa=w('<h4 class="svelte-1n0q212"><div class="toggle-icon svelte-1n0q212"><div class="toggle-dot svelte-1n0q212"></div></div> <!></h4> <div></div> <!>',1);function ba(d,s){$e(s,!1);let i=m(s,"is_running",12),c=m(s,"endpoint_returns",12),v=m(s,"js_returns",12),_=m(s,"current_language",12);var H={get is_running(){return i()},set is_running(g){i(g),h()},get endpoint_returns(){return c()},set endpoint_returns(g){c(g),h()},get js_returns(){return v()},set js_returns(g){v(g),h()},get current_language(){return _()},set current_language(g){_(g),h()}};st();var O=wa(),Z=re(O),M=n(a(Z),2);{var x=g=>{var o=_a(),P=re(o),U=n(P);{var T=F=>{var k=xe("s");l(F,k)};G(U,F=>{p(c()),I(()=>c().length!=1)&&F(T)})}be(),R(()=>V(P,`Accepts a JSON object with ${p(c()),I(()=>c().length)??""}
3
  key`)),l(g,o)},b=g=>{var o=ua(),P=re(o),U=n(P);{var T=F=>{var k=xe("s");l(F,k)};G(U,F=>{p(c()),I(()=>c().length!=1)&&F(T)})}be(),R(()=>V(P,`Accepts ${p(c()),I(()=>c().length)??""}
4
  parameter`)),l(g,o)};G(M,g=>{_()==="bash"?g(x):g(b,!1)})}t(Z);var E=n(Z,2);let ce;ot(E,5,c,ct,(g,o,P)=>{let U=()=>e(o).label,T=()=>e(o).python_type,F=()=>e(o).component,k=()=>e(o).parameter_name,f=()=>e(o).parameter_has_default,L=()=>e(o).parameter_default;var de=fa(),j=n(re(de),2),S=a(j),X=a(S),y=a(X,!0);t(X);var Y=n(X,2),le=a(Y);{var te=A=>{var W=ga(),ie=re(W,!0),_e=n(ie);{var fe=oe=>{var ue=xe(`Β |
 
1
+ import{p as m,a as Ee,e as st,i as G,q as ot,w as ct,b as Ie,j as qt,f as Pt,d as Tt,v as St,y as Xt,J as Kt}from"./i18n-DtG3MAQ1.js";import{M as $e,t as R,a as l,O as ke,P as h,f as gt,a1 as Lt,N as re,S as n,Q as a,T as t,a5 as be,X as V,U as Te,R as w,a4 as xe,a3 as Ge,v as I,x as p,Z as e,Y as ve,_ as _t,a0 as B,$ as z,ad as Me,a7 as Bt,G as Vt,b1 as ea,a2 as Mt,ar as At,aq as jt,au as zt}from"./index-BeNBoC9J.js";import{b as Gt}from"./misc-D-Y84gKJ.js";import{C as Ft}from"./clear-Dx2v97Qg.js";import{a as ta,g as aa}from"./Blocks-C4lA_Loz.js";import{B as Yt}from"./Button-j0-_VC-G.js";import{L as Wt}from"./index-1YthqPsU.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";import"./StreamingBar.svelte_svelte_type_style_lang-BUk4GIbA.js";import{B as Le}from"./Block-DkzyQHli.js";import{h as Nt}from"./html-DE4EmiOG.js";import{a as sa}from"./input-BLFxNjIx.js";import"./size-ChvveZyb.js";import"./state.svelte-COyO-AzF.js";import"./index-DCGrAb1j.js";import"./index-tFQomdd2.js";import"./snippet-BRIBYCwB.js";import"./Image-ALBOEs1f.js";/* empty css *//* empty css */import"./Clear-BiKSVifk.js";import"./index-B_pwUImq.js";var ra=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M12.1 2a9.8 9.8 0 0 0-5.4 1.6l6.4 6.4a2.1 2.1 0 0 1 .2 3a2.1 2.1 0 0 1-3-.2L3.7 6.4A9.84 9.84 0 0 0 2 12.1a10.14 10.14 0 0 0 10.1 10.1a11 11 0 0 0 2.6-.3l6.7 6.7a5 5 0 0 0 7.1-7.1l-6.7-6.7a11 11 0 0 0 .3-2.6A10 10 0 0 0 12.1 2m8 10.1a7.6 7.6 0 0 1-.3 2.1l-.3 1.1l.8.8l6.7 6.7a2.88 2.88 0 0 1 .9 2.1A2.72 2.72 0 0 1 27 27a2.9 2.9 0 0 1-4.2 0l-6.7-6.7l-.8-.8l-1.1.3a7.6 7.6 0 0 1-2.1.3a8.27 8.27 0 0 1-5.7-2.3A7.63 7.63 0 0 1 4 12.1a8.3 8.3 0 0 1 .3-2.2l4.4 4.4a4.14 4.14 0 0 0 5.9.2a4.14 4.14 0 0 0-.2-5.9L10 4.2a6.5 6.5 0 0 1 2-.3a8.27 8.27 0 0 1 5.7 2.3a8.5 8.5 0 0 1 2.4 5.9"></path></svg>');function Et(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=ra();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var na=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"></path><path fill="currentColor" d="M8 10h16v2H8zm0 6h10v2H8z"></path></svg>');function Zt(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=na();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var ia=gt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7z"></path><path fill="currentColor" d="M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11l.002 18Z"></path></svg>');function Ht(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),h()}},v=ia();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),l(d,v),ke(c)}var la=w('<div class="wrap prose svelte-1s0akg2"><h1>API Docs</h1> <p class="attention svelte-1s0akg2">No API Routes found for <code class="svelte-1s0akg2"> </code></p> <p>To expose an API endpoint of your app in this page, set the <code>api_name</code> parameter of the event listener. <br/> For more information, visit the <a href="https://gradio.app/sharing_your_app/#api-page" target="_blank">API Page guide</a> . To hide the API documentation button and this page, set <code>footer_links=["gradio", "settings"]</code> in the <code>Blocks.launch()</code> method.</p></div> <button class="svelte-1s0akg2"><!></button>',1);function oa(d,s){$e(s,!1);const i=Lt();let c=m(s,"root",12);var v={get root(){return c()},set root(E){c(E),h()}};st();var _=la(),H=re(_),O=n(a(H),2),Z=n(a(O)),M=a(Z,!0);t(Z),t(O),be(2),t(H);var x=n(H,2),b=a(x);return Ft(b),t(x),R(()=>V(M,c())),Te("click",x,()=>i("close")),l(d,_),ke(v)}var ca=w('<div class="loading-dot self-baseline svelte-urwr9f"></div> <p class="self-baseline btn-text svelte-urwr9f">API Recorder</p>',1),da=w('<h2 class="svelte-urwr9f"><img alt="" class="svelte-urwr9f"/> <div class="title svelte-urwr9f"><!> documentation <div class="url svelte-urwr9f"> </div></div> <span class="counts svelte-urwr9f"><!> <p><span class="url svelte-urwr9f"> </span> <!><!><br/></p></span></h2> <button class="svelte-urwr9f"><!></button>',1);function pa(d,s){$e(s,!1);let i=m(s,"root",12),c=m(s,"api_count",12),v=m(s,"current_language",12,"python");const _=Lt();var H={get root(){return i()},set root(y){i(y),h()},get api_count(){return c()},set api_count(y){c(y),h()},get current_language(){return v()},set current_language(y){v(y),h()}};st();var O=da(),Z=re(O),M=a(Z),x=n(M,2),b=a(x);{var E=y=>{var Y=xe("MCP");l(y,Y)},ce=y=>{var Y=Ge(),le=re(Y);{var te=$=>{var K=xe("CLI");l($,K)},C=$=>{var K=xe("API");l($,K)};G(le,$=>{v()==="cli"?$(te):$(C,!1)},!0)}l(y,Y)};G(b,y=>{v()==="mcp"?y(E):y(ce,!1)})}var ee=n(b,2),q=a(ee,!0);t(ee),t(x);var g=n(x,2),o=a(g);{var P=y=>{Yt(y,{size:"sm",variant:"secondary",elem_id:"start-api-recorder",onclick:()=>_("close",{api_recorder_visible:!0}),children:(Y,le)=>{var te=ca();be(2),l(Y,te)},$$slots:{default:!0}})};G(o,y=>{v()!=="mcp"&&v()!=="cli"&&y(P)})}var U=n(o,2),T=a(U),F=a(T,!0);t(T);var k=n(T,2);{var f=y=>{var Y=xe("MCP Tool");l(y,Y)},L=y=>{var Y=Ge(),le=re(Y);{var te=$=>{var K=xe(`CLI
2
  endpoint`);l($,K)},C=$=>{var K=xe("API endpoint");l($,K)};G(le,$=>{v()==="cli"?$(te):$(C,!1)},!0)}l(y,Y)};G(k,y=>{v()==="mcp"?y(f):y(L,!1)})}var de=n(k);{var j=y=>{var Y=xe("s");l(y,Y)};G(de,y=>{c()>1&&y(j)})}be(),t(U),t(g),t(Z);var S=n(Z,2),X=a(S);return Ft(X),t(S),R(()=>{Ee(M,"src",ta),V(q,i()),V(F,c())}),Te("click",S,()=>_("close")),l(d,O),ke(H)}function ut(d,s,i=null){return s===void 0?i==="py"?"None":null:d===null&&i==="py"?"None":s==="string"||s==="str"?i===null?d:'"'+d+'"':s==="number"?i===null?parseFloat(d):d:s==="boolean"||s=="bool"?i==="py"?(d=String(d),d==="true"?"True":"False"):i==="js"||i==="bash"?d:d==="true":s==="List[str]"?(d=JSON.stringify(d),d):s.startsWith("Literal['")?'"'+d+'"':i===null?d===""?null:JSON.parse(d):typeof d=="string"?d===""?i==="py"?"None":"null":d:(i==="bash"&&(d=Dt(d)),i==="py"&&(d=Rt(d)),va(d))}function Dt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?{path:d.url,meta:{_type:"gradio.FileData"}}:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Dt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Dt(d[s])}),d)}function Rt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?`handle_file('${d.url}')`:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Rt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Rt(d[s])}),d)}function va(d){let s=JSON.stringify(d,(v,_)=>_===null?"UNQUOTEDNone":typeof _=="string"&&_.startsWith("handle_file(")&&_.endsWith(")")?`UNQUOTED${_}`:_);const i=/"UNQUOTEDhandle_file\(([^)]*)\)"/g;s=s.replace(i,(v,_)=>`handle_file(${_})`);const c=/"UNQUOTEDNone"/g;return s.replace(c,"None")}function lt(d){return d<1?`${Math.round(d*1e3)} ms`:`${d.toFixed(2)} s`}var _a=w(" <!>:",1),ua=w(" <!>:",1),ga=w(" <!>",1),ma=w('<span style="font-weight:bold">Required</span>'),ha=w('<span>Default:</span><span class="code svelte-1n0q212" style="font-size: var(--text-sm);"> </span>',1),fa=w('<hr class="hr svelte-1n0q212"/> <div style="margin:10px;"><p style="white-space: nowrap; overflow-x: auto;"><span class="code svelte-1n0q212" style="margin-right: 10px;"> </span> <span class="code highlight svelte-1n0q212" style="margin-right: 10px;"><!></span> <!></p> <p class="desc svelte-1n0q212"> </p></div>',1),ya=w('<div class="load-wrap"><!></div>'),wa=w('<h4 class="svelte-1n0q212"><div class="toggle-icon svelte-1n0q212"><div class="toggle-dot svelte-1n0q212"></div></div> <!></h4> <div></div> <!>',1);function ba(d,s){$e(s,!1);let i=m(s,"is_running",12),c=m(s,"endpoint_returns",12),v=m(s,"js_returns",12),_=m(s,"current_language",12);var H={get is_running(){return i()},set is_running(g){i(g),h()},get endpoint_returns(){return c()},set endpoint_returns(g){c(g),h()},get js_returns(){return v()},set js_returns(g){v(g),h()},get current_language(){return _()},set current_language(g){_(g),h()}};st();var O=wa(),Z=re(O),M=n(a(Z),2);{var x=g=>{var o=_a(),P=re(o),U=n(P);{var T=F=>{var k=xe("s");l(F,k)};G(U,F=>{p(c()),I(()=>c().length!=1)&&F(T)})}be(),R(()=>V(P,`Accepts a JSON object with ${p(c()),I(()=>c().length)??""}
3
  key`)),l(g,o)},b=g=>{var o=ua(),P=re(o),U=n(P);{var T=F=>{var k=xe("s");l(F,k)};G(U,F=>{p(c()),I(()=>c().length!=1)&&F(T)})}be(),R(()=>V(P,`Accepts ${p(c()),I(()=>c().length)??""}
4
  parameter`)),l(g,o)};G(M,g=>{_()==="bash"?g(x):g(b,!1)})}t(Z);var E=n(Z,2);let ce;ot(E,5,c,ct,(g,o,P)=>{let U=()=>e(o).label,T=()=>e(o).python_type,F=()=>e(o).component,k=()=>e(o).parameter_name,f=()=>e(o).parameter_has_default,L=()=>e(o).parameter_default;var de=fa(),j=n(re(de),2),S=a(j),X=a(S),y=a(X,!0);t(X);var Y=n(X,2),le=a(Y);{var te=A=>{var W=ga(),ie=re(W,!0),_e=n(ie);{var fe=oe=>{var ue=xe(`Β |
assets/{ApiRecorder-Bl4Lwcui.js β†’ ApiRecorder-D0-fBJqr.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,e as S,i as z}from"./i18n-CPHyzK9b.js";import{M as C,Q as t,S as g,N as I,T as r,x as l,v as c,t as h,X as k,a as v,O as M,P as x,R as f}from"./index-DydPgVMC.js";import{B as N}from"./Button-CV36sOqf.js";import"./snippet-BtHMuX3s.js";import"./Image-CZ1Hb99p.js";import"./misc-Dkc5KZ-v.js";/* empty css */import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";/* empty css */var O=f('<span class="api-name svelte-ekrfl7"> </span>'),Q=f('<div class="loading-dot self-baseline svelte-ekrfl7"></div> <p class="self-baseline svelte-ekrfl7">Recording API Calls:</p> <p class="self-baseline api-section svelte-ekrfl7"><span class="api-count svelte-ekrfl7"> </span> <!></p>',1),T=f('<div id="api-recorder" class="svelte-ekrfl7"><!></div>');function K(b,i){C(i,!1);let e=u(i,"api_calls",28,()=>[]),s=u(i,"dependencies",12);var $={get api_calls(){return e()},set api_calls(a){e(a),x()},get dependencies(){return s()},set dependencies(a){s(a),x()}};S();var n=T(),P=t(n);return N(P,{size:"sm",variant:"secondary",children:(a,X)=>{var m=Q(),_=g(I(m),4),p=t(_),R=t(p);r(p);var y=g(p,2);{var A=o=>{var d=O(),B=t(d);r(d),h(()=>k(B,`/${l(s()),l(e()),c(()=>s()[e()[e().length-1].fn_index].api_name)??""}`)),v(o,d)};z(y,o=>{l(e()),c(()=>e().length>0)&&o(A)})}r(_),h(()=>k(R,`[${l(e()),c(()=>e().length)??""}]`)),v(a,m)},$$slots:{default:!0}}),r(n),v(b,n),M($)}export{K as default};
 
1
+ import{p as u,e as S,i as z}from"./i18n-DtG3MAQ1.js";import{M as C,Q as t,S as g,N as I,T as r,x as l,v as c,t as h,X as k,a as v,O as M,P as x,R as f}from"./index-BeNBoC9J.js";import{B as N}from"./Button-j0-_VC-G.js";import"./snippet-BRIBYCwB.js";import"./Image-ALBOEs1f.js";import"./misc-D-Y84gKJ.js";/* empty css */import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";/* empty css */var O=f('<span class="api-name svelte-ekrfl7"> </span>'),Q=f('<div class="loading-dot self-baseline svelte-ekrfl7"></div> <p class="self-baseline svelte-ekrfl7">Recording API Calls:</p> <p class="self-baseline api-section svelte-ekrfl7"><span class="api-count svelte-ekrfl7"> </span> <!></p>',1),T=f('<div id="api-recorder" class="svelte-ekrfl7"><!></div>');function K(b,i){C(i,!1);let e=u(i,"api_calls",28,()=>[]),s=u(i,"dependencies",12);var $={get api_calls(){return e()},set api_calls(a){e(a),x()},get dependencies(){return s()},set dependencies(a){s(a),x()}};S();var n=T(),P=t(n);return N(P,{size:"sm",variant:"secondary",children:(a,X)=>{var m=Q(),_=g(I(m),4),p=t(_),R=t(p);r(p);var y=g(p,2);{var A=o=>{var d=O(),B=t(d);r(d),h(()=>k(B,`/${l(s()),l(e()),c(()=>s()[e()[e().length-1].fn_index].api_name)??""}`)),v(o,d)};z(y,o=>{l(e()),c(()=>e().length>0)&&o(A)})}r(_),h(()=>k(R,`[${l(e()),c(()=>e().length)??""}]`)),v(a,m)},$$slots:{default:!0}}),r(n),v(b,n),M($)}export{K as default};
assets/{ArrowUp-aILrPIpo.js β†’ ArrowUp-BNDE3Ai4.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as n,f as e}from"./index-DydPgVMC.js";var i=e('<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>');function l(o){var r=i();n(o,r)}export{l as A};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as n,f as e}from"./index-BeNBoC9J.js";var i=e('<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>');function l(o){var r=i();n(o,r)}export{l as A};
assets/{BaseForm-DAripPNq.js β†’ BaseForm-CgXgHXvl.js} RENAMED
@@ -1 +1 @@
1
- import{p as l,s as c,b as h,a as n,f as u}from"./i18n-CPHyzK9b.js";import{t as v,a as b,Q as _,R as w,T as p}from"./index-DydPgVMC.js";var x=w("<div><!></div>");function B(r,a){let s=l(a,"visible",3,!0),f=l(a,"scale",3,null),m=l(a,"min_width",3,0),t=l(a,"label",3,void 0);var e=x();let i,d;var o=_(e);c(o,a,"default",{}),p(e),v(()=>{i=h(e,1,"form svelte-1rhwncb",null,i,{hidden:s()===!1,"hidden-css":s()==="hidden"}),n(e,"role",t()?"group":void 0),n(e,"aria-label",t()),d=u(e,"",d,{"flex-grow":f(),"min-width":`calc(min(${m()}px, 100%))`})}),b(r,e)}export{B};
 
1
+ import{p as l,s as c,b as h,a as n,f as u}from"./i18n-DtG3MAQ1.js";import{t as v,a as b,Q as _,R as w,T as p}from"./index-BeNBoC9J.js";var x=w("<div><!></div>");function B(r,a){let s=l(a,"visible",3,!0),f=l(a,"scale",3,null),m=l(a,"min_width",3,0),t=l(a,"label",3,void 0);var e=x();let i,d;var o=_(e);c(o,a,"default",{}),p(e),v(()=>{i=h(e,1,"form svelte-1rhwncb",null,i,{hidden:s()===!1,"hidden-css":s()==="hidden"}),n(e,"role",t()?"group":void 0),n(e,"aria-label",t()),d=u(e,"",d,{"flex-grow":f(),"min-width":`calc(min(${m()}px, 100%))`})}),b(r,e)}export{B};
assets/{Block-WPcVj6Bq.js β†’ Block-DkzyQHli.js} RENAMED
@@ -1 +1 @@
1
- import{B as ve,p as l,e as me,i as Z,d as we,c as xe,S as be,C as ye,s as ke,f as pe}from"./i18n-CPHyzK9b.js";import{p as Ee,E as Se,ak as O,al as Le,d as Be,am as Ce,b as Me,I as Ne,i as J,h as u,e as ie,an as ze,ao as Te,g as Ye,ap as re,s as Q,M as Ae,a0 as N,Y as se,x as o,Z as a,_ as Re,a3 as Pe,N as X,a as z,O as Fe,P as n,$ as p,S as de,R as $,v as _,U as He,t as Oe,f as Ue,aq as je}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";function qe(U,t,E,c,S,g){let L=u;u&&ie();var r=null;u&&J.nodeType===ze&&(r=J,ie());var b=u?J:U,v=new ve(b,!1);Ee(()=>{const d=t()||null;var y=d==="svg"?Le:null;if(d===null){v.ensure(null,null),O(!0);return}return v.ensure(d,k=>{if(d){if(r=u?r:y?document.createElementNS(y,d):document.createElement(d),Be(r,r),c){u&&Te(d)&&r.append(document.createComment(""));var m=u?Ye(r):r.appendChild(Ce());u&&(m===null?re(!1):Q(m)),c(r,m)}Me.nodes.end=r,k.before(r)}u&&Q(k)}),O(!0),()=>{d&&O(!1)}},Se),Ne(()=>{O(!0)}),L&&(re(!0),Q(b))}var De=Ue('<svg class="resize-handle svelte-alkeak" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="0.5" class="svelte-alkeak"></line><line x1="5" y1="9" x2="9" y2="5" stroke="gray" stroke-width="0.5" class="svelte-alkeak"></line></svg>'),Ge=$("<!> <!>",1),Ie=$('<div class="placeholder svelte-alkeak"></div>'),Ke=$("<!> <!>",1);function Je(U,t){Ae(t,!1);let E=l(t,"height",12,void 0),c=l(t,"min_height",12,void 0),S=l(t,"max_height",12,void 0),g=l(t,"width",12,void 0),L=l(t,"elem_id",12,""),r=l(t,"elem_classes",28,()=>[]),b=l(t,"variant",12,"solid"),v=l(t,"border_mode",12,"base"),d=l(t,"padding",12,!0),y=l(t,"type",12,"normal"),k=l(t,"test_id",12,void 0),m=l(t,"explicit_call",12,!1),j=l(t,"container",12,!0),w=l(t,"visible",12,!0),q=l(t,"allow_overflow",12,!0),D=l(t,"overflow_behavior",12,"auto"),T=l(t,"scale",12,null),G=l(t,"min_width",12,0),Y=l(t,"flex",12,!1),I=l(t,"resizable",12,!1),K=l(t,"rtl",12,!1),i=l(t,"fullscreen",12,!1),V=l(t,"label",12,void 0),W=N(i()),f=N(),oe=y()==="fieldset"?"fieldset":"div",ee=N(0),te=N(0),s=N(null);function ae(e){i()&&e.key==="Escape"&&i(!1)}const A=e=>{if(e!==void 0){if(typeof e=="number")return e+"px";if(typeof e=="string")return e}},fe=e=>{let B=e.clientY;const C=P=>{const h=P.clientY-B;B=P.clientY,je(f,a(f).style.height=`${a(f).offsetHeight+h}px`)},R=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",R)};window.addEventListener("mousemove",C),window.addEventListener("mouseup",R)};se(()=>(o(i()),a(W),a(f)),()=>{i()!==a(W)&&(p(W,i()),i()?(p(s,a(f).getBoundingClientRect()),p(ee,a(f).offsetHeight),p(te,a(f).offsetWidth),window.addEventListener("keydown",ae)):(p(s,null),window.removeEventListener("keydown",ae)))}),se(()=>o(w()),()=>{w()||Y(!1)}),Re();var ue={get height(){return E()},set height(e){E(e),n()},get min_height(){return c()},set min_height(e){c(e),n()},get max_height(){return S()},set max_height(e){S(e),n()},get width(){return g()},set width(e){g(e),n()},get elem_id(){return L()},set elem_id(e){L(e),n()},get elem_classes(){return r()},set elem_classes(e){r(e),n()},get variant(){return b()},set variant(e){b(e),n()},get border_mode(){return v()},set border_mode(e){v(e),n()},get padding(){return d()},set padding(e){d(e),n()},get type(){return y()},set type(e){y(e),n()},get test_id(){return k()},set test_id(e){k(e),n()},get explicit_call(){return m()},set explicit_call(e){m(e),n()},get container(){return j()},set container(e){j(e),n()},get visible(){return w()},set visible(e){w(e),n()},get allow_overflow(){return q()},set allow_overflow(e){q(e),n()},get overflow_behavior(){return D()},set overflow_behavior(e){D(e),n()},get scale(){return T()},set scale(e){T(e),n()},get min_width(){return G()},set min_width(e){G(e),n()},get flex(){return Y()},set flex(e){Y(e),n()},get resizable(){return I()},set resizable(e){I(e),n()},get rtl(){return K()},set rtl(e){K(e),n()},get fullscreen(){return i()},set fullscreen(e){i(e),n()},get label(){return V()},set label(e){V(e),n()}};me();var le=Pe(),_e=X(le);{var he=e=>{var B=Ke(),C=X(B);qe(C,()=>oe,!1,(h,F)=>{we(h,x=>p(f,x),()=>a(f)),xe(h,(x,H)=>({"data-testid":k(),id:L(),class:`block ${x??""}`,dir:K()?"rtl":"ltr","aria-label":V(),style:"",[ye]:{hidden:w()==="hidden",padded:d(),flex:Y(),border_focus:v()==="focus",border_contrast:v()==="contrast","hide-container":!m()&&!j(),fullscreen:i(),animating:i()&&a(s)!==null,"auto-margin":T()===null},[be]:H}),[()=>(o(r()),_(()=>r()?.join(" ")||"")),()=>({height:(o(i()),o(E()),_(()=>i()?void 0:A(E()))),"min-height":(o(i()),o(c()),_(()=>i()?void 0:A(c()))),"max-height":(o(i()),o(S()),_(()=>i()?void 0:A(S()))),"--start-top":(a(s),_(()=>a(s)?`${a(s).top}px`:"0px")),"--start-left":(a(s),_(()=>a(s)?`${a(s).left}px`:"0px")),"--start-width":(a(s),_(()=>a(s)?`${a(s).width}px`:"0px")),"--start-height":(a(s),_(()=>a(s)?`${a(s).height}px`:"0px")),width:(o(i()),o(g()),_(()=>i()?void 0:typeof g()=="number"?`calc(min(${g()}px, 100%))`:A(g()))),"border-style":b(),overflow:q()?D():"hidden","flex-grow":T(),"min-width":`calc(min(${G()}px, 100%))`})],void 0,void 0,"svelte-alkeak");var M=Ge(),ne=X(M);ke(ne,t,"default",{});var ce=de(ne,2);{var ge=x=>{var H=De();He("mousedown",H,fe),z(x,H)};Z(ce,x=>{I()&&x(ge)})}z(F,M)});var R=de(C,2);{var P=h=>{var F=Ie();let M;Oe(()=>M=pe(F,"",M,{height:a(ee)+"px",width:a(te)+"px"})),z(h,F)};Z(R,h=>{i()&&h(P)})}z(e,B)};Z(_e,e=>{(w()===!0||w()==="hidden")&&e(he)})}return z(U,le),Fe(ue)}export{Je as B};
 
1
+ import{B as ve,p as l,e as me,i as Z,d as we,c as xe,S as be,C as ye,s as ke,f as pe}from"./i18n-DtG3MAQ1.js";import{p as Ee,E as Se,ak as O,al as Le,d as Be,am as Ce,b as Me,I as Ne,i as J,h as u,e as ie,an as ze,ao as Te,g as Ye,ap as re,s as Q,M as Ae,a0 as N,Y as se,x as o,Z as a,_ as Re,a3 as Pe,N as X,a as z,O as Fe,P as n,$ as p,S as de,R as $,v as _,U as He,t as Oe,f as Ue,aq as je}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";function qe(U,t,E,c,S,g){let L=u;u&&ie();var r=null;u&&J.nodeType===ze&&(r=J,ie());var b=u?J:U,v=new ve(b,!1);Ee(()=>{const d=t()||null;var y=d==="svg"?Le:null;if(d===null){v.ensure(null,null),O(!0);return}return v.ensure(d,k=>{if(d){if(r=u?r:y?document.createElementNS(y,d):document.createElement(d),Be(r,r),c){u&&Te(d)&&r.append(document.createComment(""));var m=u?Ye(r):r.appendChild(Ce());u&&(m===null?re(!1):Q(m)),c(r,m)}Me.nodes.end=r,k.before(r)}u&&Q(k)}),O(!0),()=>{d&&O(!1)}},Se),Ne(()=>{O(!0)}),L&&(re(!0),Q(b))}var De=Ue('<svg class="resize-handle svelte-alkeak" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="0.5" class="svelte-alkeak"></line><line x1="5" y1="9" x2="9" y2="5" stroke="gray" stroke-width="0.5" class="svelte-alkeak"></line></svg>'),Ge=$("<!> <!>",1),Ie=$('<div class="placeholder svelte-alkeak"></div>'),Ke=$("<!> <!>",1);function Je(U,t){Ae(t,!1);let E=l(t,"height",12,void 0),c=l(t,"min_height",12,void 0),S=l(t,"max_height",12,void 0),g=l(t,"width",12,void 0),L=l(t,"elem_id",12,""),r=l(t,"elem_classes",28,()=>[]),b=l(t,"variant",12,"solid"),v=l(t,"border_mode",12,"base"),d=l(t,"padding",12,!0),y=l(t,"type",12,"normal"),k=l(t,"test_id",12,void 0),m=l(t,"explicit_call",12,!1),j=l(t,"container",12,!0),w=l(t,"visible",12,!0),q=l(t,"allow_overflow",12,!0),D=l(t,"overflow_behavior",12,"auto"),T=l(t,"scale",12,null),G=l(t,"min_width",12,0),Y=l(t,"flex",12,!1),I=l(t,"resizable",12,!1),K=l(t,"rtl",12,!1),i=l(t,"fullscreen",12,!1),V=l(t,"label",12,void 0),W=N(i()),f=N(),oe=y()==="fieldset"?"fieldset":"div",ee=N(0),te=N(0),s=N(null);function ae(e){i()&&e.key==="Escape"&&i(!1)}const A=e=>{if(e!==void 0){if(typeof e=="number")return e+"px";if(typeof e=="string")return e}},fe=e=>{let B=e.clientY;const C=P=>{const h=P.clientY-B;B=P.clientY,je(f,a(f).style.height=`${a(f).offsetHeight+h}px`)},R=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",R)};window.addEventListener("mousemove",C),window.addEventListener("mouseup",R)};se(()=>(o(i()),a(W),a(f)),()=>{i()!==a(W)&&(p(W,i()),i()?(p(s,a(f).getBoundingClientRect()),p(ee,a(f).offsetHeight),p(te,a(f).offsetWidth),window.addEventListener("keydown",ae)):(p(s,null),window.removeEventListener("keydown",ae)))}),se(()=>o(w()),()=>{w()||Y(!1)}),Re();var ue={get height(){return E()},set height(e){E(e),n()},get min_height(){return c()},set min_height(e){c(e),n()},get max_height(){return S()},set max_height(e){S(e),n()},get width(){return g()},set width(e){g(e),n()},get elem_id(){return L()},set elem_id(e){L(e),n()},get elem_classes(){return r()},set elem_classes(e){r(e),n()},get variant(){return b()},set variant(e){b(e),n()},get border_mode(){return v()},set border_mode(e){v(e),n()},get padding(){return d()},set padding(e){d(e),n()},get type(){return y()},set type(e){y(e),n()},get test_id(){return k()},set test_id(e){k(e),n()},get explicit_call(){return m()},set explicit_call(e){m(e),n()},get container(){return j()},set container(e){j(e),n()},get visible(){return w()},set visible(e){w(e),n()},get allow_overflow(){return q()},set allow_overflow(e){q(e),n()},get overflow_behavior(){return D()},set overflow_behavior(e){D(e),n()},get scale(){return T()},set scale(e){T(e),n()},get min_width(){return G()},set min_width(e){G(e),n()},get flex(){return Y()},set flex(e){Y(e),n()},get resizable(){return I()},set resizable(e){I(e),n()},get rtl(){return K()},set rtl(e){K(e),n()},get fullscreen(){return i()},set fullscreen(e){i(e),n()},get label(){return V()},set label(e){V(e),n()}};me();var le=Pe(),_e=X(le);{var he=e=>{var B=Ke(),C=X(B);qe(C,()=>oe,!1,(h,F)=>{we(h,x=>p(f,x),()=>a(f)),xe(h,(x,H)=>({"data-testid":k(),id:L(),class:`block ${x??""}`,dir:K()?"rtl":"ltr","aria-label":V(),style:"",[ye]:{hidden:w()==="hidden",padded:d(),flex:Y(),border_focus:v()==="focus",border_contrast:v()==="contrast","hide-container":!m()&&!j(),fullscreen:i(),animating:i()&&a(s)!==null,"auto-margin":T()===null},[be]:H}),[()=>(o(r()),_(()=>r()?.join(" ")||"")),()=>({height:(o(i()),o(E()),_(()=>i()?void 0:A(E()))),"min-height":(o(i()),o(c()),_(()=>i()?void 0:A(c()))),"max-height":(o(i()),o(S()),_(()=>i()?void 0:A(S()))),"--start-top":(a(s),_(()=>a(s)?`${a(s).top}px`:"0px")),"--start-left":(a(s),_(()=>a(s)?`${a(s).left}px`:"0px")),"--start-width":(a(s),_(()=>a(s)?`${a(s).width}px`:"0px")),"--start-height":(a(s),_(()=>a(s)?`${a(s).height}px`:"0px")),width:(o(i()),o(g()),_(()=>i()?void 0:typeof g()=="number"?`calc(min(${g()}px, 100%))`:A(g()))),"border-style":b(),overflow:q()?D():"hidden","flex-grow":T(),"min-width":`calc(min(${G()}px, 100%))`})],void 0,void 0,"svelte-alkeak");var M=Ge(),ne=X(M);ke(ne,t,"default",{});var ce=de(ne,2);{var ge=x=>{var H=De();He("mousedown",H,fe),z(x,H)};Z(ce,x=>{I()&&x(ge)})}z(F,M)});var R=de(C,2);{var P=h=>{var F=Ie();let M;Oe(()=>M=pe(F,"",M,{height:a(ee)+"px",width:a(te)+"px"})),z(h,F)};Z(R,h=>{i()&&h(P)})}z(e,B)};Z(_e,e=>{(w()===!0||w()==="hidden")&&e(he)})}return z(U,le),Fe(ue)}export{Je as B};
assets/{BlockLabel-BzVeVrtL.js β†’ BlockLabel-CEOjqpu7.js} RENAMED
@@ -1 +1 @@
1
- import{p as a,a as x,b as p}from"./i18n-CPHyzK9b.js";import{M as w,t as I,a as k,O as y,P as s,Q as c,R as B,S,X as L,T as h}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";var M=B('<label for="" data-testid="block-label"><span class="svelte-e9xhe"><!></span> </label>');function R(_,l){w(l,!1);let o=a(l,"label",12,null),n=a(l,"Icon",12),r=a(l,"show_label",12,!0),b=a(l,"disable",12,!1),i=a(l,"float",12,!0),f=a(l,"rtl",12,!1);var m={get label(){return o()},set label(e){o(e),s()},get Icon(){return n()},set Icon(e){n(e),s()},get show_label(){return r()},set show_label(e){r(e),s()},get disable(){return b()},set disable(e){b(e),s()},get float(){return i()},set float(e){i(e),s()},get rtl(){return f()},set rtl(e){f(e),s()}},t=M();let d;var u=c(t),v=c(u);n()(v,{}),h(u);var g=S(u);return h(t),I(()=>{x(t,"dir",f()?"rtl":"ltr"),d=p(t,1,"svelte-e9xhe",null,d,{hide:!r(),"sr-only":!r(),float:i(),"hide-label":b()}),L(g,` ${o()??""}`),t.dir=t.dir}),k(_,t),y(m)}export{R as B};
 
1
+ import{p as a,a as x,b as p}from"./i18n-DtG3MAQ1.js";import{M as w,t as I,a as k,O as y,P as s,Q as c,R as B,S,X as L,T as h}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";var M=B('<label for="" data-testid="block-label"><span class="svelte-e9xhe"><!></span> </label>');function R(_,l){w(l,!1);let o=a(l,"label",12,null),n=a(l,"Icon",12),r=a(l,"show_label",12,!0),b=a(l,"disable",12,!1),i=a(l,"float",12,!0),f=a(l,"rtl",12,!1);var m={get label(){return o()},set label(e){o(e),s()},get Icon(){return n()},set Icon(e){n(e),s()},get show_label(){return r()},set show_label(e){r(e),s()},get disable(){return b()},set disable(e){b(e),s()},get float(){return i()},set float(e){i(e),s()},get rtl(){return f()},set rtl(e){f(e),s()}},t=M();let d;var u=c(t),v=c(u);n()(v,{}),h(u);var g=S(u);return h(t),I(()=>{x(t,"dir",f()?"rtl":"ltr"),d=p(t,1,"svelte-e9xhe",null,d,{hide:!r(),"sr-only":!r(),float:i(),"hide-label":b()}),L(g,` ${o()??""}`),t.dir=t.dir}),k(_,t),y(m)}export{R as B};
assets/{BlockTitle-DNiCHWOR.js β†’ BlockTitle-B6Pgijwb.js} RENAMED
@@ -1 +1 @@
1
- import{p as o,s as c,i as p,a as b,b as v}from"./i18n-CPHyzK9b.js";import{M as g,N as w,t as k,a as x,O as y,P as i,Q as B,R as I,S,T}from"./index-DydPgVMC.js";import{I as M}from"./Info-DfrMwI06.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";var N=I('<span data-testid="block-info"><!></span> <!>',1);function j(d,a){g(a,!1);let l=o(a,"show_label",12,!0),s=o(a,"info",12,void 0),r=o(a,"rtl",12,!1);var u={get show_label(){return l()},set show_label(t){l(t),i()},get info(){return s()},set info(t){s(t),i()},get rtl(){return r()},set rtl(t){r(t),i()}},n=N(),e=w(n);let f;var h=B(e);c(h,a,"default",{}),T(e);var m=S(e,2);{var _=t=>{M(t,{get info(){return s()}})};p(m,t=>{s()&&t(_)})}return k(()=>{b(e,"dir",r()?"rtl":"ltr"),f=v(e,1,"svelte-e0ig2",null,f,{hide:!l(),"has-info":s()!=null,"sr-only":!l()}),e.dir=e.dir}),x(d,n),y(u)}export{j as B};
 
1
+ import{p as o,s as c,i as p,a as b,b as v}from"./i18n-DtG3MAQ1.js";import{M as g,N as w,t as k,a as x,O as y,P as i,Q as B,R as I,S,T}from"./index-BeNBoC9J.js";import{I as M}from"./Info-BjDIKIgf.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";var N=I('<span data-testid="block-info"><!></span> <!>',1);function j(d,a){g(a,!1);let l=o(a,"show_label",12,!0),s=o(a,"info",12,void 0),r=o(a,"rtl",12,!1);var u={get show_label(){return l()},set show_label(t){l(t),i()},get info(){return s()},set info(t){s(t),i()},get rtl(){return r()},set rtl(t){r(t),i()}},n=N(),e=w(n);let f;var h=B(e);c(h,a,"default",{}),T(e);var m=S(e,2);{var _=t=>{M(t,{get info(){return s()}})};p(m,t=>{s()&&t(_)})}return k(()=>{b(e,"dir",r()?"rtl":"ltr"),f=v(e,1,"svelte-e0ig2",null,f,{hide:!l(),"has-info":s()!=null,"sr-only":!l()}),e.dir=e.dir}),x(d,n),y(u)}export{j as B};
assets/{Blocks-C9ppI-He.js β†’ Blocks-C4lA_Loz.js} RENAMED
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ApiDocs-dJKk0kqa.js","./i18n-CPHyzK9b.js","./index-DydPgVMC.js","./index-BSZrXtnz.css","./i18n-CawRO-sx.css","./misc-Dkc5KZ-v.js","./clear-DRfgZ-Qi.js","./Button-CV36sOqf.js","./snippet-BtHMuX3s.js","./Image-CZ1Hb99p.js","./Image-dcYq_y3_.css","./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js","./ScrollFade-FmR1tTNV.css","./Button-hbTB5kNr.css","./ImagePreview-BZaoS7p0.css","./index-CfM_uZQa.js","./StreamingBar.svelte_svelte_type_style_lang-BMYtrUWr.js","./html-BZIV6tyB.js","./index-B_pwUImq.js","./StreamingBar-C3YDZJTa.css","./Clear-BR8cTgGu.js","./Block-WPcVj6Bq.js","./input-BtIxlP_B.js","./size-D4lmUoTq.js","./state.svelte-DpHZj3x1.js","./index-CMKhGNWj.js","./index-tFQomdd2.js","./ApiDocs-Us1VUfyb.css","./ApiRecorder-Bl4Lwcui.js","./ApiRecorder-BIe6qN0x.css","./Settings-C5X1Bk7G.js","./Dropdown-CVRP4i7q.js","./window-D5YXrKnH.js","./BlockTitle-DNiCHWOR.js","./Info-DfrMwI06.js","./DropdownArrow-Cq3QAKSv.js","./IconButtonWrapper-PnNNNvqI.js","./Dropdown-DBcOp-Nh.css","./Checkbox-Bh_yH8eu.js","./universal-C9tCO36V.js","./Checkbox-CeUlgVWK.css","./Settings-BUk_hNi0.css","./Example-nXsgr46n.css","./Index-9wedEojI.js","./Code-Bhm2YgEI.js","./Code-C-hu7Aas.css","./Index.svelte_svelte_type_style_lang-C-orki39.js","./actions-4RaHFoGI.js","./Check-2f8HlfSn.js","./Copy-B3jzejpA.js","./MarkdownCode-BTj729_f.js","./prism-python-BGiTAEDL.js","./MarkdownCode-IpEvB2op.css","./Index-D-Qschx6.css","./Index-DfYZbHJT.css","./Example-DJcb6y4A.css","./Example--4J3Orww.css"])))=>i.map(i=>d[i]);
2
- import{aM as Et,B as Ct,aN as St,h as Se,ap as Le,s as Oe,i as ot,Z as d,e as Lt,aH as Ot,am as Mt,p as Rt,aO as At,C as Dt,j as Je,g as Tt,M as Pe,aP as dt,aQ as Te,aa as be,ac as lt,aR as Ft,a as v,O as ze,R as H,$ as P,a3 as Z,N as D,ab as Ye,v as jt,a7 as Pt,S as y,t as K,a2 as Ae,af as pe,Q as q,X as me,U as ie,aS as zt,T as I,aT as qt,a4 as Ke}from"./index-DydPgVMC.js";import{d as ct,q as $e,w as et,i as x,g as It,r as Ut,X as _t,p as Ce,Y as tt,f as it,u as at,t as Gt,b as st,a as V,F as Bt,H as Nt}from"./i18n-CPHyzK9b.js";import{h as Vt}from"./html-BZIV6tyB.js";import{c as we}from"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";import{b as Zt}from"./size-D4lmUoTq.js";import"./StreamingBar.svelte_svelte_type_style_lang-BMYtrUWr.js";import{L as Ht,T as Qt}from"./state.svelte-DpHZj3x1.js";import{AppTree as Wt}from"./index-CMKhGNWj.js";function $(l,e=[],i=[],a){var t=Et(),n=Ct,o=t.is_rendered();t.update_pending_count(1),n.increment(o);var c=Se;if(c){Lt();var g=ot,h=Ot(!1);Oe(h)}St(e,[],i,w=>{c&&(Le(!0),Oe(g));try{for(const E of w)d(E);a(l,...w)}finally{c&&Le(!1),t.update_pending_count(-1),n.decrement(o)}})}function Xt(l,e){let i=null,a=Se;var t;if(Se){i=ot;for(var n=Tt(document.head);n!==null&&(n.nodeType!==Dt||n.data!==l);)n=Je(n);if(n===null)Le(!1);else{var o=Je(n);n.remove(),Oe(o)}}Se||(t=document.head.appendChild(Mt()));try{Rt(()=>e(t),At)}finally{a&&(Le(!0),Oe(i))}}var Jt=H("<span></span>");function Yt(l,e){Pe(e,!0);var i,a,t,n=dt([async()=>i=await Te(()=>e.node.component),async()=>a=await Te(()=>e.node.runtime),()=>t=be(null),()=>{lt(()=>{if(!d(t)||!d(a)||!d(i))return;const c=e.node.props.shared_props,g=e.node.props.props,h=d(a),w=h.mount(d(i).default,{target:d(t),props:{shared_props:c,props:g,children:e.children}});return()=>{h.unmount(w)}})}]),o=Jt();Ft([n[2]],()=>{ct(o,c=>P(t,c),()=>d(t))}),v(l,o),ze()}function Fe(l,e){Pe(e,!0);let i=Ut(e,["$$slots","$$events","$$legacy","node"]);var a,t=dt([async()=>a=await Te(()=>e.node.component)]),n=Z(),o=D(n);$(o,[t[0]],[()=>e.node&&d(a)],(c,g)=>{var h=w=>{var E=Z(),u=D(E);$(u,[t[0]],[()=>e.node.props.shared_props.visible&&!e.node.runtime],(C,z)=>{var _=m=>{var b=Z(),k=D(b);$(k,[t[0]],void 0,S=>{we(k,()=>d(a).default,(G,T)=>{T(G,{get shared_props(){return e.node.props.shared_props},get props(){return e.node.props.props},children:(L,ae)=>{var B=Z(),N=D(B);$(N,[t[0]],[()=>e.node.children&&e.node.children.length],(W,ee)=>{var fe=se=>{var ne=Z(),re=D(ne);$(re,[t[0]],[()=>e.node.children],(X,oe)=>{$e(X,17,()=>d(oe),et,(J,de)=>{Fe(J,{get node(){return d(de)}})})}),v(se,ne)};x(W,se=>{d(ee)&&se(fe)})}),v(L,B)},$$slots:{default:!0}})})}),v(m,b)},Q=m=>{var b=Z(),k=D(b);$(k,[t[0]],[()=>e.node.props.shared_props.visible&&e.node.runtime],(S,G)=>{var T=L=>{$(L,[t[0]],void 0,ae=>{Yt(ae,It(()=>i,{get node(){return e.node},children:(B,N)=>{var W=Z(),ee=D(W);$(ee,[t[0]],[()=>e.node.children&&e.node.children.length],(fe,se)=>{var ne=re=>{var X=Z(),oe=D(X);$(oe,[t[0]],[()=>e.node.children],(J,de)=>{$e(J,17,()=>d(de),et,(Me,Re)=>{Fe(Me,{get node(){return d(Re)}})})}),v(re,X)};x(fe,re=>{d(se)&&re(ne)})}),v(B,W)},$$slots:{default:!0}}))})};x(S,L=>{d(G)&&L(T)},!0)}),v(m,b)};x(C,m=>{d(z)?m(_):m(Q,!1)})}),v(w,E)};x(c,w=>{d(g)&&w(h)})}),v(l,n),ze()}const Kt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",ei="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Outer%20gear%20teeth%20(gray)%20--%3e%3cpath%20d='M19.14%2012.94c.04-.3.06-.61.06-.94%200-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24%200-.43.17-.47.41l-.36%202.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47%200-.59.22L2.74%208.87c-.12.21-.08.47.12.61l2.03%201.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03%201.58c-.18.14-.23.41-.12.61l1.92%203.32c.12.22.37.29.59.22l2.39-.96c.5.38%201.03.7%201.62.94l.36%202.54c.05.24.24.41.48.41h3.84c.24%200%20.44-.17.47-.41l.36-2.54c.59-.24%201.13-.56%201.62-.94l2.39.96c.22.08.47%200%20.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12%2015.6c-1.98%200-3.6-1.62-3.6-3.6s1.62-3.6%203.6-3.6%203.6%201.62%203.6%203.6-1.62%203.6-3.6%203.6z'%20fill='%23808080'/%3e%3c!--%20Inner%20circle%20(now%20gray)%20--%3e%3ccircle%20cx='12'%20cy='12'%20r='2.5'%20fill='%23808080'/%3e%3c/svg%3e",ti="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3erecord%20[%23982]%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Dribbble-Light-Preview'%20transform='translate(-380.000000,%20-3839.000000)'%20fill='%23FF0000'%3e%3cg%20id='icons'%20transform='translate(56.000000,%20160.000000)'%3e%3cpath%20d='M338,3689%20C338,3691.209%20336.209,3693%20334,3693%20C331.791,3693%20330,3691.209%20330,3689%20C330,3686.791%20331.791,3685%20334,3685%20C336.209,3685%20338,3686.791%20338,3689%20M334,3697%20C329.589,3697%20326,3693.411%20326,3689%20C326,3684.589%20329.589,3681%20334,3681%20C338.411,3681%20342,3684.589%20342,3689%20C342,3693.411%20338.411,3697%20334,3697%20M334,3679%20C328.477,3679%20324,3683.477%20324,3689%20C324,3694.523%20328.477,3699%20334,3699%20C339.523,3699%20344,3694.523%20344,3689%20C344,3683.477%20339.523,3679%20334,3679'%20id='record-[%23982]'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";let ke=!1,ue=null,qe=[],ii=0,ye={},ai,je,si=null,De=[];async function ni(){if(!ke)try{const l=document.title;document.title="[Sharing] Gradio Tab";const e=await navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}},audio:!0,selfBrowserSurface:"include"});document.title=l;const i={videoBitsPerSecond:5e6};ue=new MediaRecorder(e,i),qe=[],ye={},ue.ondataavailable=oi,ue.onstop=di,ue.start(1e3),ke=!0,ii=Date.now()}catch(l){je("Recording Error","Failed to start recording: "+l.message,"error")}}function ri(){!ke||!ue||(ue.stop(),ke=!1)}function oi(l){l.data.size>0&&qe.push(l.data)}function di(){ke=!1;const l=new Blob(qe,{type:"video/mp4"});li(l),(ue?.stream?.getTracks()||[]).forEach(i=>i.stop())}async function li(l){try{je("Processing video","This may take a few seconds...","info");const e=new FormData;e.append("video",l,"recording.mp4"),ye.start!==void 0&&ye.end!==void 0&&(e.append("remove_segment_start",ye.start.toString()),e.append("remove_segment_end",ye.end.toString())),De.length>0&&e.append("zoom_effects",JSON.stringify(De));const i=await fetch(ai+"/gradio_api/process_recording",{method:"POST",body:e});if(!i.ok)throw new Error(`Server returned ${i.status}: ${i.statusText}`);const a=await i.blob(),t=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;nt(a,t),De=[]}catch{je("Processing Error","Failed to process recording. Saving original version.","warning");const i=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;nt(l,i)}}function nt(l,e){const i=URL.createObjectURL(l),a=document.createElement("a");a.style.display="none",a.href=i,a.download=e,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),URL.revokeObjectURL(i)},100)}const ci=/^'([^]+)'$/,rt=Symbol("NOVALUE");class _i{id;inputs;outputs;cancels;pending=!1;trigger_modes;event_args={};targets=[];connection_type;triggers=[];original_trigger_id=null;show_progress_on=null;component_prop_inputs=[];show_progress;functions;constructor(e){this.id=e.id,this.original_trigger_id=e.id,this.inputs=e.inputs,this.outputs=e.outputs,this.connection_type=e.connection,this.show_progress=e.show_progress,this.functions={frontend:e.js?hi(e.js,e.backend_fn,e.inputs.length,e.outputs.length):void 0,backend:e.backend_fn,backend_js:e.js_implementation?new _t(`let result = await (${e.js_implementation})(...arguments);
3
  return (!Array.isArray(result)) ? [result] : result;`):void 0},this.targets=e.targets,this.cancels=e.cancels,this.trigger_modes=e.trigger_mode,this.show_progress_on=e.show_progress_on||null,this.component_prop_inputs=e.component_prop_inputs||[];for(let i=0;i<e.event_specific_args?.length;i++){const a=e.event_specific_args[i];this.event_args[a]=e[a]??null}}async run(e,i,a,t){let n=i;return this.functions.backend_js?{type:"data",data:await this.functions.backend_js(...n)}:(this.functions.frontend&&(n=await this.functions.frontend(i)),this.functions.backend?{type:"submit",data:e.submit(this.id,n,a,t,void 0,{"x-gradio-user":"app"})}:this.functions.frontend?{type:"data",data:n}:{type:"void",data:null})}add_trigger(e,i){this.triggers.push([e,i])}get_triggers(){return{success:this.triggers.filter(([,e])=>e==="success").map(([e])=>e),failure:this.triggers.filter(([,e])=>e==="failure").map(([e])=>e),all:this.triggers.filter(([,e])=>e==="all").map(([e])=>e)}}}class ui{dependencies_by_fn=new Map;dependencies_by_event=new Map;render_id_deps=new Map;submissions=new Map;client;queue=new Set;add_to_api_calls;update_state_cb;get_state_cb;rerender_cb;log_cb;on_connection_lost_cb;loading_stati=new Ht;connection_lost=!1;constructor(e,i,a,t,n,o,c,g){this.add_to_api_calls=c,this.log_cb=o,this.update_state_cb=a,this.get_state_cb=t,this.rerender_cb=n,this.on_connection_lost_cb=g,this.client=i,this.reload(e,a,t,n,i)}reload(e,i,a,t,n){const{by_id:o,by_event:c}=this.create(e);this.dependencies_by_event=c,this.dependencies_by_fn=o,this.client=n,this.update_state_cb=i,this.get_state_cb=a,this.rerender_cb=t;for(const[g,h]of this.dependencies_by_fn)for(const[w]of h.targets)this.set_event_args(w,h.event_args);this.register_loading_stati(o)}register_loading_stati(e){for(const[i,a]of e)this.loading_stati.register(a.id,a.show_progress_on||a.outputs,a.inputs,a.show_progress)}clear_loading_status(e){this.loading_stati.clear(e)}async update_loading_stati_state(){for(const[e,i]of Object.entries(this.loading_stati.current))this.update_state_cb(Number(e),{loading_status:i},!1)}dispatch_state_change_events(e){if(e.changed_state_ids)for(const i of e.changed_state_ids)this.dependencies_by_event.get("change-"+i)?.forEach(t=>{this.dispatch({type:"fn",fn_index:t.id,target_id:i,event_data:null})})}async dispatch(e){if(this.connection_lost)return;let i;if(e.type==="fn"){const a=this.dependencies_by_fn.get(e.fn_index);a&&(i=[a])}else i=this.dependencies_by_event.get(`${e.event_name}-${e.target_id}`);for(let a=0;a<(i?.length||0);a++){const t=i?i[a]:void 0;if(t){this.cancel(t.cancels);const n=gi(t.trigger_modes,this.submissions.has(t.id));if(n==="skip")continue;if(n==="defer"){this.queue.add(t.id);continue}t.functions.backend&&(this.loading_stati.update({status:"pending",fn_index:t.id,stream_state:null}),this.update_loading_stati_state());const o=await this.gather_state(t.inputs,t.component_prop_inputs),c=await Promise.all(t.targets.map(([E])=>this.set_event_args(E,t.event_args))),{success:g,failure:h,all:w}=t.get_triggers();try{let E=null;if(e.target_id!==void 0||e.type==="event"?E=e.target_id||null:E=t.original_trigger_id,t.connection_type==="stream"&&this.submissions.has(t.id)){const C=this.submissions.get(t.id);let z={fn_index:t.id,data:o,event_data:e.event_data};C.send_chunk(z),c.forEach(_=>_());continue}this.add_to_api_calls({fn_index:t.id,data:o,event_data:e.event_data,trigger_id:E});const u=await t.run(this.client,o,e.event_data,E);if(u.type==="void")c.forEach(C=>C());else if(u.type==="data")await this.handle_data(t.outputs,u.data),c.forEach(C=>C());else{let C=null;t.connection_type==="stream"&&!this.submissions.has(t.id)&&(C="waiting"),this.submissions.set(t.id,u.data);let z=0;e:for await(const _ of u.data)if(z===0&&t.inputs.forEach(Q=>{this.update_state_cb(Q,{loading_status:{validation_error:null}},!1)}),z+=1,_!==null){if(_.type==="data"&&await this.handle_data(t.outputs,_.data),_.type==="status"){_.original_msg==="process_starts"&&t.connection_type==="stream"&&(C="open");const{fn_index:Q,...m}=_;if(_.stage==="complete"){C="closed",g.forEach(b=>{this.dispatch({type:"fn",fn_index:b,event_data:null,target_id:E})}),this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();break e}else if(_.stage==="generating")this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();else if(_.stage==="error"){if(_.broken||_.session_not_found){this.connection_lost||(this.connection_lost=!0,this.on_connection_lost_cb()),this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();break e}if(Array.isArray(_?.message)){_.message.forEach((k,S)=>{this.update_state_cb(t.inputs[S],{loading_status:{validation_error:k.is_valid?null:k.message,show_validation_error:!0}},!1)}),t.outputs.forEach(k=>{t.inputs.includes(k)||this.update_state_cb(k,{loading_status:{status:null}},!1)}),c.forEach(k=>k()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e));return}const b=_?.message?.replace(ci,(k,S)=>S);throw this.log_cb(_?._title??"Error",b||"",Q,"error",m.duration,m.visible),new Error("Dependency function failed")}else this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state()}if(_.type==="render"){this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();const{layout:Q,components:m,render_id:b,dependencies:k}=_.data;this.rerender_cb(m,Q);const{by_id:S,by_event:G}=this.create(k);this.register_loading_stati(S),S.forEach(L=>this.dependencies_by_fn.set(L.id,L)),G.forEach((L,ae)=>this.dependencies_by_event.set(ae,L));const T=this.render_id_deps.get(b);T&&T.forEach(L=>{S.has(L)||this.dependencies_by_fn.delete(L)}),this.render_id_deps.set(b,new Set(Array.from(S.keys()))),this.register_loading_stati(S);break e}_.type==="log"&&this.handle_log(_)}w.forEach(_=>{this.dispatch({type:"fn",fn_index:_,event_data:null,target_id:E})}),c.forEach(_=>_()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e))}}catch{this.loading_stati.update({status:"error",fn_index:t.id,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(t.id),h.forEach(u=>{this.dispatch({type:"fn",fn_index:u,event_data:null})})}}}}create(e){const i=new Map,a=new Map,t=[];for(const n of e){const o=new _i(n);for(const[c,g]of n.targets)a.has(`${g}-${c}`)||a.set(`${g}-${c}`,[]),a.get(`${g}-${c}`)?.push(o);if(i.set(n.id,o),n.trigger_after!==void 0){const c=n.trigger_only_on_failure?"failure":n.trigger_only_on_success?"success":"all";t.push([n.id,n.trigger_after,c])}}for(const[n,o,c]of t){const g=i.get(o);g&&(g.add_trigger(n,c),g.original_trigger_id=vi(e,o))}return{by_id:i,by_event:a}}handle_log(e){const{title:i,log:a,fn_index:t,level:n,duration:o,visible:c}=e;this.log_cb(i,a,t,n,o,c)}async handle_data(e,i){await Promise.all(e.map(async(a,t)=>{const n=i[t]===void 0?rt:i[t];if(n!==rt)if(fi(n)){let o=!1,c=null;for(const[g,h]of Object.entries(n))if(g!=="__type__"){if(g==="visible"){o=!0,c=h;continue}await this.update_state_cb(e[t],{[g]:h},!1)}o&&await this.update_state_cb(e[t],{visible:c},!0)}else await this.update_state_cb(a,{value:n},!1)}))}async gather_state(e,i=[]){return(await Promise.all(e.map(a=>this.get_state_cb(a)))).map((a,t)=>i.includes(t)?a??null:a?.value??null)}async set_event_args(e,i){let a={};const t=await this.get_state_cb?.(e);if(!t)return()=>{};for(const[n]of Object.entries(i))a[n]=t?.[n]??null;return Object.keys(i).length===0?()=>{}:(await this.update_state_cb(e,i,!1),()=>{this.update_state_cb(e,a,!1)})}async cancel(e){if(e)for(const i of e){const a=this.submissions.get(i);if(a){await a.cancel(),this.loading_stati.update({status:"complete",fn_index:i,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(i);const{failure:t,all:n}=this.dependencies_by_fn.get(i)?.get_triggers()||{failure:[],all:[]};t.forEach(o=>{this.dispatch({type:"fn",fn_index:o,event_data:null,target_id:i})}),n.forEach(o=>{this.dispatch({type:"fn",fn_index:o,event_data:null,target_id:i})})}}}dispatch_load_events(){this.dependencies_by_fn.forEach(e=>{e.targets.forEach(([i,a])=>{a==="load"&&this.dispatch({type:"fn",fn_index:e.id,event_data:null,target_id:i})})})}get_fns_from_targets(e){const i=[];return this.dependencies_by_event.forEach((a,t)=>{const[,n]=t.split("-");Number(n)===e&&a.forEach(o=>{i.push(o.id)})}),i}close_stream(e){const i=this.get_fns_from_targets(e);for(const a of i){const t=this.submissions.get(a);t&&(t.close_stream(),this.submissions.delete(a)),this.loading_stati.update({status:"complete",fn_index:a,eta:0,queue:!1,stream_state:"closed"})}this.update_loading_stati_state()}}function fi(l){return typeof l=="object"&&l!==null&&"__type__"in l&&l?.__type__==="update"}function gi(l,e){return e?l==="always_last"?"defer":l==="multiple"?"run":l==="once"?"skip":"run":"run"}function hi(l,e,i,a){const t=e?i===1:a===1;try{return new _t("__fn_args",` let result = await (${l})(...__fn_args);
4
  if (typeof result === "undefined") return [];
5
- return (${t} && !Array.isArray(result)) ? [result] : result;`)}catch(n){throw n}}function vi(l,e){let i=new Map,a=e,t=0;for(;t<100;){const n=i.get(a)||l.find(o=>o.id===a);if(!n||(i.set(n.id,n),n.trigger_after===null||n.trigger_after===void 0))break;a=n.trigger_after,t+=1}return a}var pi=H("<!> <!>",1),mi=H('<button class="show-api svelte-1vd13eo"><!> <img class="svelte-1vd13eo"/></button>'),bi=H('<div class="divider show-api-divider svelte-1vd13eo">Β·</div> <a href="https://gradio.app" class="built-with svelte-1vd13eo" target="_blank" rel="noreferrer"> <img class="svelte-1vd13eo"/></a>',1),wi=H('<div>Β·</div> <button class="settings svelte-1vd13eo"> <img class="svelte-1vd13eo"/></button>',1),yi=H('<footer aria-label="Gradio footer navigation" class="svelte-1vd13eo"><!> <!> <button> <img class="svelte-1vd13eo"/></button> <div class="divider svelte-1vd13eo">Β·</div> <!></footer>'),ki=H('<div id="api-recorder-container" class="svelte-1vd13eo"><!></div>'),xi=H('<div class="api-docs svelte-1vd13eo" role="dialog" aria-modal="true"><div class="backdrop svelte-1vd13eo"></div> <div class="api-docs-wrap svelte-1vd13eo" role="document"><!></div></div>'),Ei=H('<div class="api-docs svelte-1vd13eo" role="dialog" aria-modal="true"><div class="backdrop svelte-1vd13eo"></div> <div class="api-docs-wrap svelte-1vd13eo" role="document"><!></div></div>'),Ci=H('<div class="wrap svelte-1vd13eo"><main class="contain svelte-1vd13eo"><!></main> <!> <!> <!> <!> <!></div> <!>',1);function Si(l,e){Pe(e,!0);const i=()=>at(tt,"$reactive_formatter",t),a=()=>at(Re,"$is_screen_recording",t),[t,n]=Gt();Ce(e,"render_complete",11,!1);let o=Ce(e,"ready",15,!1),c=Ce(e,"reload_count",11,0),g=Ce(e,"add_new_message",15);e.components.forEach(s=>{s.props.i18n||(s.props.i18n=i()),s.props.i18n_store=tt});let h=be(Ye([])),w=null;function E(s,r,f){if(r==="share"){const{title:p,description:M}=f}else if(r==="error")J("Error",f,-1,r,10,!0);else if(r==="warning")J("Warning",f,-1,r,10,!0);else if(r==="info")J("Info",f,-1,r,10,!0);else if(r==="gradio_expand"||r==="gradio_tab_select"){const p=r==="gradio_expand"?s:f.component_id;u.render_previously_invisible_children(p)}else if(r=="clear_status")u.update_state(s,{loading_status:{}},!1),b.clear_loading_status(s);else if(r=="close_stream")b.close_stream(s);else if(r==="custom_button_click"){const p=f.id;C(p,"click",null)}else r==="select"&&s in u.initial_tabs&&(s=f.id),b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let u=new Wt(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height},e.app,i(),E);function C(s,r,f){b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let z=be(Ye([])),_=be(null),Q=s=>{P(_,s,!0),d(T)&&P(z,[...d(z),d(_)],!0)};function m(){P(h,d(h).filter(s=>s.type!=="error"),!0),++de,d(h).push({title:"Connection Lost",message:Me,fn_index:-1,type:"error",id:de,duration:null,visible:!0}),w=setInterval(async()=>{try{const s=await e.app.reconnect();(s==="connected"||s==="changed")&&(clearInterval(w),w=null,window.location.reload())}catch(s){console.debug(s)}},2e3)}let b=new ui(e.dependencies,e.app,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),J,Q,m);lt(()=>{c(),jt(()=>{u.reload(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height}),b.reload(e.dependencies,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),e.app)})});let k=350,S=Ae(()=>e.search_params.get("view")==="api"&&e.footer_links.includes("api")),G=Ae(()=>e.search_params.get("view")==="settings"),T=Ae(()=>e.search_params.get("view")==="api-recorder"&&e.footer_links.includes("api")),L=!0,ae=!0,B=null,N=null,W=null,ee=be(null);async function fe(){if(!B||!N){const s=await pe(()=>import("./ApiDocs-dJKk0kqa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),r=await pe(()=>import("./ApiRecorder-Bl4Lwcui.js"),__vite__mapDeps([28,1,2,3,4,7,8,9,5,10,11,12,13,14,29]),import.meta.url);B||(B=s?.default),N||(N=r?.default)}}async function se(){N||(N=(await pe(()=>import("./ApiRecorder-Bl4Lwcui.js"),__vite__mapDeps([28,1,2,3,4,7,8,9,5,10,11,12,13,14,29]),import.meta.url)).default)}async function ne(){W||(W=(await pe(()=>import("./Settings-C5X1Bk7G.js"),__vite__mapDeps([30,1,2,3,4,6,11,8,12,31,22,16,17,18,19,32,33,34,35,36,37,38,39,40,23,24,15,20,25,26,41,42]),import.meta.url)).default)}async function re(){if(!d(ee)){const s=await pe(()=>import("./Index-9wedEojI.js"),__vite__mapDeps([43,1,2,3,4,22,16,17,11,8,12,18,19,44,45,46,47,48,49,36,50,51,52,53,54,55,56]),import.meta.url);P(ee,s.default,!0)}}async function X(s){P(T,!1),s&&await fe(),P(S,s);let r=new URLSearchParams(window.location.search);s?r.set("view","api"):r.delete("view"),history.replaceState(null,"","?"+r.toString())}async function oe(s){s&&await ne();let r=new URLSearchParams(window.location.search);s?r.set("view","settings"):r.delete("view"),history.replaceState(null,"","?"+r.toString()),P(G,!d(G))}function J(s,r,f,p,M=10,A=!1){A&&d(h).push({title:s,message:r,fn_index:f,type:p,id:++de,duration:M,visible:A})}g(J);let de=-1;i()("blocks.long_requests_queue"),i()("blocks.connection_can_break");const Me="Connection to the server was lost. Attempting reconnection...";i()("blocks.waiting_for_inputs");let Re=Bt(!1),Ie=0,ge;function Ue(){if("parentIFrame"in window){const s=ge.children[0].getBoundingClientRect();if(!s)return;window.parentIFrame?.size(s.bottom+Ie+32)}}function Ge(){a()?ri():ni()}Pt(()=>{"parentIFrame"in window&&window.parentIFrame?.autoResize(!1);const s=new MutationObserver(Ue),r=new ResizeObserver(Ue);return s.observe(ge,{childList:!0,subtree:!0,attributes:!0}),r.observe(ge),u.ready.then(()=>{o(!0),b.dispatch_load_events()}),e.vibe_mode&&re(),()=>{s.disconnect(),r.disconnect(),w&&clearInterval(w)}});function ut(s){P(h,d(h).filter(r=>r.id!==s),!0)}var Be=Ci();Xt("1vd13eo",s=>{var r=pi(),f=D(r);{var p=O=>{zt(()=>{qt.title=e.title??""})};x(f,O=>{e.control_page_title&&O(p)})}var M=y(f,2);{var A=O=>{var U=Z(),Ee=D(U);Vt(Ee,()=>`<style>${Nt(e.css,e.version)}</style>`),v(O,U)};x(M,O=>{e.css&&O(A)})}v(s,r)});var xe=D(Be);let Ne;var he=q(xe);let Ve;var ft=q(he);Fe(ft,{get node(){return u.root}}),I(he),ct(he,s=>ge=s,()=>ge);var Ze=y(he,2);{var gt=s=>{var r=yi(),f=q(r);{var p=R=>{var F=mi(),te=q(F);{var le=j=>{var _e=Ke();K(ve=>me(_e,ve),[()=>i()("errors.use_via_api_or_mcp")]),v(j,_e)},Y=j=>{var _e=Ke();K(ve=>me(_e,ve),[()=>i()("errors.use_via_api")]),v(j,_e)};x(te,j=>{e.app.config?.mcp_server?j(le):j(Y,!1)})}var ce=y(te,2);I(F),K(j=>{V(ce,"src",$t),V(ce,"alt",j)},[()=>i()("common.logo")]),ie("click",F,()=>{X(!d(S))}),ie("mouseenter",F,()=>{fe(),se()}),v(R,F)};x(f,R=>{e.footer_links.includes("api")&&R(p)})}var M=y(f,2);{var A=R=>{var F=bi(),te=y(D(F),2),le=q(te),Y=y(le);I(te),K((ce,j)=>{me(le,`${ce??""} `),V(Y,"src",Kt),V(Y,"alt",j)},[()=>i()("common.built_with_gradio"),()=>i()("common.logo")]),v(R,F)};x(M,R=>{e.footer_links.includes("gradio")&&R(A)})}var O=y(M,2);let U;var Ee=q(O),Xe=y(Ee);I(O);var kt=y(O,4);{var xt=R=>{var F=wi(),te=D(F);let le;var Y=y(te,2),ce=q(Y),j=y(ce);I(Y),K((_e,ve)=>{le=st(te,1,"divider svelte-1vd13eo",null,le,{hidden:!a()}),me(ce,`${_e??""} `),V(j,"src",ei),V(j,"alt",ve)},[()=>i()("common.settings"),()=>i()("common.settings")]),ie("click",Y,()=>{oe(!d(G))}),ie("mouseenter",Y,()=>{ne()}),v(R,F)};x(kt,R=>{e.footer_links.includes("settings")&&R(xt)})}I(r),K((R,F)=>{U=st(O,1,"record svelte-1vd13eo",null,U,{hidden:!a()}),me(Ee,`${R??""} `),V(Xe,"src",ti),V(Xe,"alt",F)},[()=>i()("common.stop_recording"),()=>i()("common.stop_recording")]),ie("click",O,()=>{Ge()}),Zt(r,"clientHeight",R=>Ie=R),v(s,r)};x(Ze,s=>{e.footer_links.length>0&&s(gt)})}var He=y(Ze,2);{var ht=s=>{var r=ki(),f=q(r);we(f,()=>N,(p,M)=>{M(p,{get api_calls(){return d(z)},get dependencies(){return e.dependencies}})}),I(r),ie("click",r,()=>{X(!0),P(T,!1)}),v(s,r)};x(He,s=>{d(T)&&N&&s(ht)})}var Qe=y(He,2);{var vt=s=>{var r=xi(),f=q(r),p=y(f,2),M=q(p);we(M,()=>B,(A,O)=>{O(A,{get root_node(){return u.root},get dependencies(){return e.dependencies},get root(){return e.root},get app(){return e.app},get space_id(){return e.space_id},get api_calls(){return d(z)},get username(){return e.username},get last_api_call(){return d(_)},$$events:{close:U=>{X(!1),P(z,[],!0),P(T,P(T,U.detail?.api_recorder_visible))}}})}),I(p),I(r),K(A=>V(r,"aria-label",A),[()=>i()("errors.use_via_api")]),ie("click",f,()=>{X(!1)}),v(s,r)};x(Qe,s=>{d(S)&&u.root&&B&&s(vt)})}var We=y(Qe,2);{var pt=s=>{var r=Ei(),f=q(r),p=y(f,2),M=q(p);we(M,()=>W,(A,O)=>{O(A,{onclose:()=>{oe(!1)},start_recording:()=>{Ge()},get pwa_enabled(){return e.app.config.pwa},get root(){return e.root},get space_id(){return e.space_id},get i18n(){return i()},get allow_zoom(){return L},set allow_zoom(U){L=U},get allow_video_trim(){return ae},set allow_video_trim(U){ae=U}})}),I(p),I(r),K(A=>V(r,"aria-label",A),[()=>i()("common.settings")]),ie("click",f,()=>{oe(!1)}),v(s,r)};x(We,s=>{d(G)&&e.app.config&&u.root&&W&&s(pt)})}var mt=y(We,2);{var bt=s=>{var r=Z(),f=D(r);we(f,()=>d(ee),(p,M)=>{M(p,{get app(){return e.app},get root(){return e.root}})}),v(s,r)};x(mt,s=>{e.vibe_mode&&d(ee)&&s(bt)})}I(xe);var wt=y(xe,2);{var yt=s=>{Qt(s,{get messages(){return d(h)},on_close:ut})};x(wt,s=>{d(h)&&s(yt)})}K(()=>{Ne=it(xe,"",Ne,{"min-height":e.app_mode?"100%":"auto"}),Ve=it(he,"",Ve,{"flex-grow":e.app_mode?"1":"auto","margin-right":e.vibe_mode?`${k}px`:"0"})}),v(l,Be),ze(),n()}const ji=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"}));export{ji as B,$t as a,Kt as g,ei as s};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ApiDocs-CseUrmNn.js","./i18n-DtG3MAQ1.js","./index-BeNBoC9J.js","./index-BSZrXtnz.css","./i18n-CawRO-sx.css","./misc-D-Y84gKJ.js","./clear-Dx2v97Qg.js","./Button-j0-_VC-G.js","./snippet-BRIBYCwB.js","./Image-ALBOEs1f.js","./Image-dcYq_y3_.css","./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js","./ScrollFade-FmR1tTNV.css","./Button-hbTB5kNr.css","./ImagePreview-BZaoS7p0.css","./index-1YthqPsU.js","./StreamingBar.svelte_svelte_type_style_lang-BUk4GIbA.js","./html-DE4EmiOG.js","./index-B_pwUImq.js","./StreamingBar-C3YDZJTa.css","./Clear-BiKSVifk.js","./Block-DkzyQHli.js","./input-BLFxNjIx.js","./size-ChvveZyb.js","./state.svelte-COyO-AzF.js","./index-DCGrAb1j.js","./index-tFQomdd2.js","./ApiDocs-Us1VUfyb.css","./ApiRecorder-D0-fBJqr.js","./ApiRecorder-BIe6qN0x.css","./Settings-D-eohf8z.js","./Dropdown-D5-31HWl.js","./window-ChwzOWAi.js","./BlockTitle-B6Pgijwb.js","./Info-BjDIKIgf.js","./DropdownArrow-C0w6FgSo.js","./IconButtonWrapper-Ce5bzAyh.js","./Dropdown-DBcOp-Nh.css","./Checkbox-DdDaw1pY.js","./universal-DqSjxxHG.js","./Checkbox-CeUlgVWK.css","./Settings-BUk_hNi0.css","./Example-nXsgr46n.css","./Index-MykHl5RI.js","./Code-D0Kw4ylG.js","./Code-C-hu7Aas.css","./Index.svelte_svelte_type_style_lang-CZFWgj20.js","./actions-BbCJS635.js","./Check-DjGw_9dO.js","./Copy-eBznHIlR.js","./MarkdownCode-QLelNkfo.js","./prism-python-DV2ZTlpc.js","./MarkdownCode-IpEvB2op.css","./Index-D-Qschx6.css","./Index-DfYZbHJT.css","./Example-DJcb6y4A.css","./Example--4J3Orww.css"])))=>i.map(i=>d[i]);
2
+ import{aM as Et,B as Ct,aN as St,h as Se,ap as Le,s as Oe,i as ot,Z as d,e as Lt,aH as Ot,am as Mt,p as Rt,aO as At,C as Dt,j as Je,g as Tt,M as Pe,aP as dt,aQ as Te,aa as be,ac as lt,aR as Ft,a as v,O as ze,R as H,$ as P,a3 as Z,N as D,ab as Ye,v as jt,a7 as Pt,S as y,t as K,a2 as Ae,af as pe,Q as q,X as me,U as ie,aS as zt,T as I,aT as qt,a4 as Ke}from"./index-BeNBoC9J.js";import{d as ct,q as $e,w as et,i as x,g as It,r as Ut,X as _t,p as Ce,Y as tt,f as it,u as at,t as Gt,b as st,a as V,F as Bt,H as Nt}from"./i18n-DtG3MAQ1.js";import{h as Vt}from"./html-DE4EmiOG.js";import{c as we}from"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";import{b as Zt}from"./size-ChvveZyb.js";import"./StreamingBar.svelte_svelte_type_style_lang-BUk4GIbA.js";import{L as Ht,T as Qt}from"./state.svelte-COyO-AzF.js";import{AppTree as Wt}from"./index-DCGrAb1j.js";function $(l,e=[],i=[],a){var t=Et(),n=Ct,o=t.is_rendered();t.update_pending_count(1),n.increment(o);var c=Se;if(c){Lt();var g=ot,h=Ot(!1);Oe(h)}St(e,[],i,w=>{c&&(Le(!0),Oe(g));try{for(const E of w)d(E);a(l,...w)}finally{c&&Le(!1),t.update_pending_count(-1),n.decrement(o)}})}function Xt(l,e){let i=null,a=Se;var t;if(Se){i=ot;for(var n=Tt(document.head);n!==null&&(n.nodeType!==Dt||n.data!==l);)n=Je(n);if(n===null)Le(!1);else{var o=Je(n);n.remove(),Oe(o)}}Se||(t=document.head.appendChild(Mt()));try{Rt(()=>e(t),At)}finally{a&&(Le(!0),Oe(i))}}var Jt=H("<span></span>");function Yt(l,e){Pe(e,!0);var i,a,t,n=dt([async()=>i=await Te(()=>e.node.component),async()=>a=await Te(()=>e.node.runtime),()=>t=be(null),()=>{lt(()=>{if(!d(t)||!d(a)||!d(i))return;const c=e.node.props.shared_props,g=e.node.props.props,h=d(a),w=h.mount(d(i).default,{target:d(t),props:{shared_props:c,props:g,children:e.children}});return()=>{h.unmount(w)}})}]),o=Jt();Ft([n[2]],()=>{ct(o,c=>P(t,c),()=>d(t))}),v(l,o),ze()}function Fe(l,e){Pe(e,!0);let i=Ut(e,["$$slots","$$events","$$legacy","node"]);var a,t=dt([async()=>a=await Te(()=>e.node.component)]),n=Z(),o=D(n);$(o,[t[0]],[()=>e.node&&d(a)],(c,g)=>{var h=w=>{var E=Z(),u=D(E);$(u,[t[0]],[()=>e.node.props.shared_props.visible&&!e.node.runtime],(C,z)=>{var _=m=>{var b=Z(),k=D(b);$(k,[t[0]],void 0,S=>{we(k,()=>d(a).default,(G,T)=>{T(G,{get shared_props(){return e.node.props.shared_props},get props(){return e.node.props.props},children:(L,ae)=>{var B=Z(),N=D(B);$(N,[t[0]],[()=>e.node.children&&e.node.children.length],(W,ee)=>{var fe=se=>{var ne=Z(),re=D(ne);$(re,[t[0]],[()=>e.node.children],(X,oe)=>{$e(X,17,()=>d(oe),et,(J,de)=>{Fe(J,{get node(){return d(de)}})})}),v(se,ne)};x(W,se=>{d(ee)&&se(fe)})}),v(L,B)},$$slots:{default:!0}})})}),v(m,b)},Q=m=>{var b=Z(),k=D(b);$(k,[t[0]],[()=>e.node.props.shared_props.visible&&e.node.runtime],(S,G)=>{var T=L=>{$(L,[t[0]],void 0,ae=>{Yt(ae,It(()=>i,{get node(){return e.node},children:(B,N)=>{var W=Z(),ee=D(W);$(ee,[t[0]],[()=>e.node.children&&e.node.children.length],(fe,se)=>{var ne=re=>{var X=Z(),oe=D(X);$(oe,[t[0]],[()=>e.node.children],(J,de)=>{$e(J,17,()=>d(de),et,(Me,Re)=>{Fe(Me,{get node(){return d(Re)}})})}),v(re,X)};x(fe,re=>{d(se)&&re(ne)})}),v(B,W)},$$slots:{default:!0}}))})};x(S,L=>{d(G)&&L(T)},!0)}),v(m,b)};x(C,m=>{d(z)?m(_):m(Q,!1)})}),v(w,E)};x(c,w=>{d(g)&&w(h)})}),v(l,n),ze()}const Kt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",$t="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",ei="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Outer%20gear%20teeth%20(gray)%20--%3e%3cpath%20d='M19.14%2012.94c.04-.3.06-.61.06-.94%200-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24%200-.43.17-.47.41l-.36%202.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47%200-.59.22L2.74%208.87c-.12.21-.08.47.12.61l2.03%201.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03%201.58c-.18.14-.23.41-.12.61l1.92%203.32c.12.22.37.29.59.22l2.39-.96c.5.38%201.03.7%201.62.94l.36%202.54c.05.24.24.41.48.41h3.84c.24%200%20.44-.17.47-.41l.36-2.54c.59-.24%201.13-.56%201.62-.94l2.39.96c.22.08.47%200%20.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12%2015.6c-1.98%200-3.6-1.62-3.6-3.6s1.62-3.6%203.6-3.6%203.6%201.62%203.6%203.6-1.62%203.6-3.6%203.6z'%20fill='%23808080'/%3e%3c!--%20Inner%20circle%20(now%20gray)%20--%3e%3ccircle%20cx='12'%20cy='12'%20r='2.5'%20fill='%23808080'/%3e%3c/svg%3e",ti="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3erecord%20[%23982]%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Dribbble-Light-Preview'%20transform='translate(-380.000000,%20-3839.000000)'%20fill='%23FF0000'%3e%3cg%20id='icons'%20transform='translate(56.000000,%20160.000000)'%3e%3cpath%20d='M338,3689%20C338,3691.209%20336.209,3693%20334,3693%20C331.791,3693%20330,3691.209%20330,3689%20C330,3686.791%20331.791,3685%20334,3685%20C336.209,3685%20338,3686.791%20338,3689%20M334,3697%20C329.589,3697%20326,3693.411%20326,3689%20C326,3684.589%20329.589,3681%20334,3681%20C338.411,3681%20342,3684.589%20342,3689%20C342,3693.411%20338.411,3697%20334,3697%20M334,3679%20C328.477,3679%20324,3683.477%20324,3689%20C324,3694.523%20328.477,3699%20334,3699%20C339.523,3699%20344,3694.523%20344,3689%20C344,3683.477%20339.523,3679%20334,3679'%20id='record-[%23982]'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";let ke=!1,ue=null,qe=[],ii=0,ye={},ai,je,si=null,De=[];async function ni(){if(!ke)try{const l=document.title;document.title="[Sharing] Gradio Tab";const e=await navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}},audio:!0,selfBrowserSurface:"include"});document.title=l;const i={videoBitsPerSecond:5e6};ue=new MediaRecorder(e,i),qe=[],ye={},ue.ondataavailable=oi,ue.onstop=di,ue.start(1e3),ke=!0,ii=Date.now()}catch(l){je("Recording Error","Failed to start recording: "+l.message,"error")}}function ri(){!ke||!ue||(ue.stop(),ke=!1)}function oi(l){l.data.size>0&&qe.push(l.data)}function di(){ke=!1;const l=new Blob(qe,{type:"video/mp4"});li(l),(ue?.stream?.getTracks()||[]).forEach(i=>i.stop())}async function li(l){try{je("Processing video","This may take a few seconds...","info");const e=new FormData;e.append("video",l,"recording.mp4"),ye.start!==void 0&&ye.end!==void 0&&(e.append("remove_segment_start",ye.start.toString()),e.append("remove_segment_end",ye.end.toString())),De.length>0&&e.append("zoom_effects",JSON.stringify(De));const i=await fetch(ai+"/gradio_api/process_recording",{method:"POST",body:e});if(!i.ok)throw new Error(`Server returned ${i.status}: ${i.statusText}`);const a=await i.blob(),t=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;nt(a,t),De=[]}catch{je("Processing Error","Failed to process recording. Saving original version.","warning");const i=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;nt(l,i)}}function nt(l,e){const i=URL.createObjectURL(l),a=document.createElement("a");a.style.display="none",a.href=i,a.download=e,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),URL.revokeObjectURL(i)},100)}const ci=/^'([^]+)'$/,rt=Symbol("NOVALUE");class _i{id;inputs;outputs;cancels;pending=!1;trigger_modes;event_args={};targets=[];connection_type;triggers=[];original_trigger_id=null;show_progress_on=null;component_prop_inputs=[];show_progress;functions;constructor(e){this.id=e.id,this.original_trigger_id=e.id,this.inputs=e.inputs,this.outputs=e.outputs,this.connection_type=e.connection,this.show_progress=e.show_progress,this.functions={frontend:e.js?hi(e.js,e.backend_fn,e.inputs.length,e.outputs.length):void 0,backend:e.backend_fn,backend_js:e.js_implementation?new _t(`let result = await (${e.js_implementation})(...arguments);
3
  return (!Array.isArray(result)) ? [result] : result;`):void 0},this.targets=e.targets,this.cancels=e.cancels,this.trigger_modes=e.trigger_mode,this.show_progress_on=e.show_progress_on||null,this.component_prop_inputs=e.component_prop_inputs||[];for(let i=0;i<e.event_specific_args?.length;i++){const a=e.event_specific_args[i];this.event_args[a]=e[a]??null}}async run(e,i,a,t){let n=i;return this.functions.backend_js?{type:"data",data:await this.functions.backend_js(...n)}:(this.functions.frontend&&(n=await this.functions.frontend(i)),this.functions.backend?{type:"submit",data:e.submit(this.id,n,a,t,void 0,{"x-gradio-user":"app"})}:this.functions.frontend?{type:"data",data:n}:{type:"void",data:null})}add_trigger(e,i){this.triggers.push([e,i])}get_triggers(){return{success:this.triggers.filter(([,e])=>e==="success").map(([e])=>e),failure:this.triggers.filter(([,e])=>e==="failure").map(([e])=>e),all:this.triggers.filter(([,e])=>e==="all").map(([e])=>e)}}}class ui{dependencies_by_fn=new Map;dependencies_by_event=new Map;render_id_deps=new Map;submissions=new Map;client;queue=new Set;add_to_api_calls;update_state_cb;get_state_cb;rerender_cb;log_cb;on_connection_lost_cb;loading_stati=new Ht;connection_lost=!1;constructor(e,i,a,t,n,o,c,g){this.add_to_api_calls=c,this.log_cb=o,this.update_state_cb=a,this.get_state_cb=t,this.rerender_cb=n,this.on_connection_lost_cb=g,this.client=i,this.reload(e,a,t,n,i)}reload(e,i,a,t,n){const{by_id:o,by_event:c}=this.create(e);this.dependencies_by_event=c,this.dependencies_by_fn=o,this.client=n,this.update_state_cb=i,this.get_state_cb=a,this.rerender_cb=t;for(const[g,h]of this.dependencies_by_fn)for(const[w]of h.targets)this.set_event_args(w,h.event_args);this.register_loading_stati(o)}register_loading_stati(e){for(const[i,a]of e)this.loading_stati.register(a.id,a.show_progress_on||a.outputs,a.inputs,a.show_progress)}clear_loading_status(e){this.loading_stati.clear(e)}async update_loading_stati_state(){for(const[e,i]of Object.entries(this.loading_stati.current))this.update_state_cb(Number(e),{loading_status:i},!1)}dispatch_state_change_events(e){if(e.changed_state_ids)for(const i of e.changed_state_ids)this.dependencies_by_event.get("change-"+i)?.forEach(t=>{this.dispatch({type:"fn",fn_index:t.id,target_id:i,event_data:null})})}async dispatch(e){if(this.connection_lost)return;let i;if(e.type==="fn"){const a=this.dependencies_by_fn.get(e.fn_index);a&&(i=[a])}else i=this.dependencies_by_event.get(`${e.event_name}-${e.target_id}`);for(let a=0;a<(i?.length||0);a++){const t=i?i[a]:void 0;if(t){this.cancel(t.cancels);const n=gi(t.trigger_modes,this.submissions.has(t.id));if(n==="skip")continue;if(n==="defer"){this.queue.add(t.id);continue}t.functions.backend&&(this.loading_stati.update({status:"pending",fn_index:t.id,stream_state:null}),this.update_loading_stati_state());const o=await this.gather_state(t.inputs,t.component_prop_inputs),c=await Promise.all(t.targets.map(([E])=>this.set_event_args(E,t.event_args))),{success:g,failure:h,all:w}=t.get_triggers();try{let E=null;if(e.target_id!==void 0||e.type==="event"?E=e.target_id||null:E=t.original_trigger_id,t.connection_type==="stream"&&this.submissions.has(t.id)){const C=this.submissions.get(t.id);let z={fn_index:t.id,data:o,event_data:e.event_data};C.send_chunk(z),c.forEach(_=>_());continue}this.add_to_api_calls({fn_index:t.id,data:o,event_data:e.event_data,trigger_id:E});const u=await t.run(this.client,o,e.event_data,E);if(u.type==="void")c.forEach(C=>C());else if(u.type==="data")await this.handle_data(t.outputs,u.data),c.forEach(C=>C());else{let C=null;t.connection_type==="stream"&&!this.submissions.has(t.id)&&(C="waiting"),this.submissions.set(t.id,u.data);let z=0;e:for await(const _ of u.data)if(z===0&&t.inputs.forEach(Q=>{this.update_state_cb(Q,{loading_status:{validation_error:null}},!1)}),z+=1,_!==null){if(_.type==="data"&&await this.handle_data(t.outputs,_.data),_.type==="status"){_.original_msg==="process_starts"&&t.connection_type==="stream"&&(C="open");const{fn_index:Q,...m}=_;if(_.stage==="complete"){C="closed",g.forEach(b=>{this.dispatch({type:"fn",fn_index:b,event_data:null,target_id:E})}),this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();break e}else if(_.stage==="generating")this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();else if(_.stage==="error"){if(_.broken||_.session_not_found){this.connection_lost||(this.connection_lost=!0,this.on_connection_lost_cb()),this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();break e}if(Array.isArray(_?.message)){_.message.forEach((k,S)=>{this.update_state_cb(t.inputs[S],{loading_status:{validation_error:k.is_valid?null:k.message,show_validation_error:!0}},!1)}),t.outputs.forEach(k=>{t.inputs.includes(k)||this.update_state_cb(k,{loading_status:{status:null}},!1)}),c.forEach(k=>k()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e));return}const b=_?.message?.replace(ci,(k,S)=>S);throw this.log_cb(_?._title??"Error",b||"",Q,"error",m.duration,m.visible),new Error("Dependency function failed")}else this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state()}if(_.type==="render"){this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();const{layout:Q,components:m,render_id:b,dependencies:k}=_.data;this.rerender_cb(m,Q);const{by_id:S,by_event:G}=this.create(k);this.register_loading_stati(S),S.forEach(L=>this.dependencies_by_fn.set(L.id,L)),G.forEach((L,ae)=>this.dependencies_by_event.set(ae,L));const T=this.render_id_deps.get(b);T&&T.forEach(L=>{S.has(L)||this.dependencies_by_fn.delete(L)}),this.render_id_deps.set(b,new Set(Array.from(S.keys()))),this.register_loading_stati(S);break e}_.type==="log"&&this.handle_log(_)}w.forEach(_=>{this.dispatch({type:"fn",fn_index:_,event_data:null,target_id:E})}),c.forEach(_=>_()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e))}}catch{this.loading_stati.update({status:"error",fn_index:t.id,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(t.id),h.forEach(u=>{this.dispatch({type:"fn",fn_index:u,event_data:null})})}}}}create(e){const i=new Map,a=new Map,t=[];for(const n of e){const o=new _i(n);for(const[c,g]of n.targets)a.has(`${g}-${c}`)||a.set(`${g}-${c}`,[]),a.get(`${g}-${c}`)?.push(o);if(i.set(n.id,o),n.trigger_after!==void 0){const c=n.trigger_only_on_failure?"failure":n.trigger_only_on_success?"success":"all";t.push([n.id,n.trigger_after,c])}}for(const[n,o,c]of t){const g=i.get(o);g&&(g.add_trigger(n,c),g.original_trigger_id=vi(e,o))}return{by_id:i,by_event:a}}handle_log(e){const{title:i,log:a,fn_index:t,level:n,duration:o,visible:c}=e;this.log_cb(i,a,t,n,o,c)}async handle_data(e,i){await Promise.all(e.map(async(a,t)=>{const n=i[t]===void 0?rt:i[t];if(n!==rt)if(fi(n)){let o=!1,c=null;for(const[g,h]of Object.entries(n))if(g!=="__type__"){if(g==="visible"){o=!0,c=h;continue}await this.update_state_cb(e[t],{[g]:h},!1)}o&&await this.update_state_cb(e[t],{visible:c},!0)}else await this.update_state_cb(a,{value:n},!1)}))}async gather_state(e,i=[]){return(await Promise.all(e.map(a=>this.get_state_cb(a)))).map((a,t)=>i.includes(t)?a??null:a?.value??null)}async set_event_args(e,i){let a={};const t=await this.get_state_cb?.(e);if(!t)return()=>{};for(const[n]of Object.entries(i))a[n]=t?.[n]??null;return Object.keys(i).length===0?()=>{}:(await this.update_state_cb(e,i,!1),()=>{this.update_state_cb(e,a,!1)})}async cancel(e){if(e)for(const i of e){const a=this.submissions.get(i);if(a){await a.cancel(),this.loading_stati.update({status:"complete",fn_index:i,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(i);const{failure:t,all:n}=this.dependencies_by_fn.get(i)?.get_triggers()||{failure:[],all:[]};t.forEach(o=>{this.dispatch({type:"fn",fn_index:o,event_data:null,target_id:i})}),n.forEach(o=>{this.dispatch({type:"fn",fn_index:o,event_data:null,target_id:i})})}}}dispatch_load_events(){this.dependencies_by_fn.forEach(e=>{e.targets.forEach(([i,a])=>{a==="load"&&this.dispatch({type:"fn",fn_index:e.id,event_data:null,target_id:i})})})}get_fns_from_targets(e){const i=[];return this.dependencies_by_event.forEach((a,t)=>{const[,n]=t.split("-");Number(n)===e&&a.forEach(o=>{i.push(o.id)})}),i}close_stream(e){const i=this.get_fns_from_targets(e);for(const a of i){const t=this.submissions.get(a);t&&(t.close_stream(),this.submissions.delete(a)),this.loading_stati.update({status:"complete",fn_index:a,eta:0,queue:!1,stream_state:"closed"})}this.update_loading_stati_state()}}function fi(l){return typeof l=="object"&&l!==null&&"__type__"in l&&l?.__type__==="update"}function gi(l,e){return e?l==="always_last"?"defer":l==="multiple"?"run":l==="once"?"skip":"run":"run"}function hi(l,e,i,a){const t=e?i===1:a===1;try{return new _t("__fn_args",` let result = await (${l})(...__fn_args);
4
  if (typeof result === "undefined") return [];
5
+ return (${t} && !Array.isArray(result)) ? [result] : result;`)}catch(n){throw n}}function vi(l,e){let i=new Map,a=e,t=0;for(;t<100;){const n=i.get(a)||l.find(o=>o.id===a);if(!n||(i.set(n.id,n),n.trigger_after===null||n.trigger_after===void 0))break;a=n.trigger_after,t+=1}return a}var pi=H("<!> <!>",1),mi=H('<button class="show-api svelte-1vd13eo"><!> <img class="svelte-1vd13eo"/></button>'),bi=H('<div class="divider show-api-divider svelte-1vd13eo">Β·</div> <a href="https://gradio.app" class="built-with svelte-1vd13eo" target="_blank" rel="noreferrer"> <img class="svelte-1vd13eo"/></a>',1),wi=H('<div>Β·</div> <button class="settings svelte-1vd13eo"> <img class="svelte-1vd13eo"/></button>',1),yi=H('<footer aria-label="Gradio footer navigation" class="svelte-1vd13eo"><!> <!> <button> <img class="svelte-1vd13eo"/></button> <div class="divider svelte-1vd13eo">Β·</div> <!></footer>'),ki=H('<div id="api-recorder-container" class="svelte-1vd13eo"><!></div>'),xi=H('<div class="api-docs svelte-1vd13eo" role="dialog" aria-modal="true"><div class="backdrop svelte-1vd13eo"></div> <div class="api-docs-wrap svelte-1vd13eo" role="document"><!></div></div>'),Ei=H('<div class="api-docs svelte-1vd13eo" role="dialog" aria-modal="true"><div class="backdrop svelte-1vd13eo"></div> <div class="api-docs-wrap svelte-1vd13eo" role="document"><!></div></div>'),Ci=H('<div class="wrap svelte-1vd13eo"><main class="contain svelte-1vd13eo"><!></main> <!> <!> <!> <!> <!></div> <!>',1);function Si(l,e){Pe(e,!0);const i=()=>at(tt,"$reactive_formatter",t),a=()=>at(Re,"$is_screen_recording",t),[t,n]=Gt();Ce(e,"render_complete",11,!1);let o=Ce(e,"ready",15,!1),c=Ce(e,"reload_count",11,0),g=Ce(e,"add_new_message",15);e.components.forEach(s=>{s.props.i18n||(s.props.i18n=i()),s.props.i18n_store=tt});let h=be(Ye([])),w=null;function E(s,r,f){if(r==="share"){const{title:p,description:M}=f}else if(r==="error")J("Error",f,-1,r,10,!0);else if(r==="warning")J("Warning",f,-1,r,10,!0);else if(r==="info")J("Info",f,-1,r,10,!0);else if(r==="gradio_expand"||r==="gradio_tab_select"){const p=r==="gradio_expand"?s:f.component_id;u.render_previously_invisible_children(p)}else if(r=="clear_status")u.update_state(s,{loading_status:{}},!1),b.clear_loading_status(s);else if(r=="close_stream")b.close_stream(s);else if(r==="custom_button_click"){const p=f.id;C(p,"click",null)}else r==="select"&&s in u.initial_tabs&&(s=f.id),b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let u=new Wt(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height},e.app,i(),E);function C(s,r,f){b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let z=be(Ye([])),_=be(null),Q=s=>{P(_,s,!0),d(T)&&P(z,[...d(z),d(_)],!0)};function m(){P(h,d(h).filter(s=>s.type!=="error"),!0),++de,d(h).push({title:"Connection Lost",message:Me,fn_index:-1,type:"error",id:de,duration:null,visible:!0}),w=setInterval(async()=>{try{const s=await e.app.reconnect();(s==="connected"||s==="changed")&&(clearInterval(w),w=null,window.location.reload())}catch(s){console.debug(s)}},2e3)}let b=new ui(e.dependencies,e.app,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),J,Q,m);lt(()=>{c(),jt(()=>{u.reload(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height}),b.reload(e.dependencies,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),e.app)})});let k=350,S=Ae(()=>e.search_params.get("view")==="api"&&e.footer_links.includes("api")),G=Ae(()=>e.search_params.get("view")==="settings"),T=Ae(()=>e.search_params.get("view")==="api-recorder"&&e.footer_links.includes("api")),L=!0,ae=!0,B=null,N=null,W=null,ee=be(null);async function fe(){if(!B||!N){const s=await pe(()=>import("./ApiDocs-CseUrmNn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),r=await pe(()=>import("./ApiRecorder-D0-fBJqr.js"),__vite__mapDeps([28,1,2,3,4,7,8,9,5,10,11,12,13,14,29]),import.meta.url);B||(B=s?.default),N||(N=r?.default)}}async function se(){N||(N=(await pe(()=>import("./ApiRecorder-D0-fBJqr.js"),__vite__mapDeps([28,1,2,3,4,7,8,9,5,10,11,12,13,14,29]),import.meta.url)).default)}async function ne(){W||(W=(await pe(()=>import("./Settings-D-eohf8z.js"),__vite__mapDeps([30,1,2,3,4,6,11,8,12,31,22,16,17,18,19,32,33,34,35,36,37,38,39,40,23,24,15,20,25,26,41,42]),import.meta.url)).default)}async function re(){if(!d(ee)){const s=await pe(()=>import("./Index-MykHl5RI.js"),__vite__mapDeps([43,1,2,3,4,22,16,17,11,8,12,18,19,44,45,46,47,48,49,36,50,51,52,53,54,55,56]),import.meta.url);P(ee,s.default,!0)}}async function X(s){P(T,!1),s&&await fe(),P(S,s);let r=new URLSearchParams(window.location.search);s?r.set("view","api"):r.delete("view"),history.replaceState(null,"","?"+r.toString())}async function oe(s){s&&await ne();let r=new URLSearchParams(window.location.search);s?r.set("view","settings"):r.delete("view"),history.replaceState(null,"","?"+r.toString()),P(G,!d(G))}function J(s,r,f,p,M=10,A=!1){A&&d(h).push({title:s,message:r,fn_index:f,type:p,id:++de,duration:M,visible:A})}g(J);let de=-1;i()("blocks.long_requests_queue"),i()("blocks.connection_can_break");const Me="Connection to the server was lost. Attempting reconnection...";i()("blocks.waiting_for_inputs");let Re=Bt(!1),Ie=0,ge;function Ue(){if("parentIFrame"in window){const s=ge.children[0].getBoundingClientRect();if(!s)return;window.parentIFrame?.size(s.bottom+Ie+32)}}function Ge(){a()?ri():ni()}Pt(()=>{"parentIFrame"in window&&window.parentIFrame?.autoResize(!1);const s=new MutationObserver(Ue),r=new ResizeObserver(Ue);return s.observe(ge,{childList:!0,subtree:!0,attributes:!0}),r.observe(ge),u.ready.then(()=>{o(!0),b.dispatch_load_events()}),e.vibe_mode&&re(),()=>{s.disconnect(),r.disconnect(),w&&clearInterval(w)}});function ut(s){P(h,d(h).filter(r=>r.id!==s),!0)}var Be=Ci();Xt("1vd13eo",s=>{var r=pi(),f=D(r);{var p=O=>{zt(()=>{qt.title=e.title??""})};x(f,O=>{e.control_page_title&&O(p)})}var M=y(f,2);{var A=O=>{var U=Z(),Ee=D(U);Vt(Ee,()=>`<style>${Nt(e.css,e.version)}</style>`),v(O,U)};x(M,O=>{e.css&&O(A)})}v(s,r)});var xe=D(Be);let Ne;var he=q(xe);let Ve;var ft=q(he);Fe(ft,{get node(){return u.root}}),I(he),ct(he,s=>ge=s,()=>ge);var Ze=y(he,2);{var gt=s=>{var r=yi(),f=q(r);{var p=R=>{var F=mi(),te=q(F);{var le=j=>{var _e=Ke();K(ve=>me(_e,ve),[()=>i()("errors.use_via_api_or_mcp")]),v(j,_e)},Y=j=>{var _e=Ke();K(ve=>me(_e,ve),[()=>i()("errors.use_via_api")]),v(j,_e)};x(te,j=>{e.app.config?.mcp_server?j(le):j(Y,!1)})}var ce=y(te,2);I(F),K(j=>{V(ce,"src",$t),V(ce,"alt",j)},[()=>i()("common.logo")]),ie("click",F,()=>{X(!d(S))}),ie("mouseenter",F,()=>{fe(),se()}),v(R,F)};x(f,R=>{e.footer_links.includes("api")&&R(p)})}var M=y(f,2);{var A=R=>{var F=bi(),te=y(D(F),2),le=q(te),Y=y(le);I(te),K((ce,j)=>{me(le,`${ce??""} `),V(Y,"src",Kt),V(Y,"alt",j)},[()=>i()("common.built_with_gradio"),()=>i()("common.logo")]),v(R,F)};x(M,R=>{e.footer_links.includes("gradio")&&R(A)})}var O=y(M,2);let U;var Ee=q(O),Xe=y(Ee);I(O);var kt=y(O,4);{var xt=R=>{var F=wi(),te=D(F);let le;var Y=y(te,2),ce=q(Y),j=y(ce);I(Y),K((_e,ve)=>{le=st(te,1,"divider svelte-1vd13eo",null,le,{hidden:!a()}),me(ce,`${_e??""} `),V(j,"src",ei),V(j,"alt",ve)},[()=>i()("common.settings"),()=>i()("common.settings")]),ie("click",Y,()=>{oe(!d(G))}),ie("mouseenter",Y,()=>{ne()}),v(R,F)};x(kt,R=>{e.footer_links.includes("settings")&&R(xt)})}I(r),K((R,F)=>{U=st(O,1,"record svelte-1vd13eo",null,U,{hidden:!a()}),me(Ee,`${R??""} `),V(Xe,"src",ti),V(Xe,"alt",F)},[()=>i()("common.stop_recording"),()=>i()("common.stop_recording")]),ie("click",O,()=>{Ge()}),Zt(r,"clientHeight",R=>Ie=R),v(s,r)};x(Ze,s=>{e.footer_links.length>0&&s(gt)})}var He=y(Ze,2);{var ht=s=>{var r=ki(),f=q(r);we(f,()=>N,(p,M)=>{M(p,{get api_calls(){return d(z)},get dependencies(){return e.dependencies}})}),I(r),ie("click",r,()=>{X(!0),P(T,!1)}),v(s,r)};x(He,s=>{d(T)&&N&&s(ht)})}var Qe=y(He,2);{var vt=s=>{var r=xi(),f=q(r),p=y(f,2),M=q(p);we(M,()=>B,(A,O)=>{O(A,{get root_node(){return u.root},get dependencies(){return e.dependencies},get root(){return e.root},get app(){return e.app},get space_id(){return e.space_id},get api_calls(){return d(z)},get username(){return e.username},get last_api_call(){return d(_)},$$events:{close:U=>{X(!1),P(z,[],!0),P(T,P(T,U.detail?.api_recorder_visible))}}})}),I(p),I(r),K(A=>V(r,"aria-label",A),[()=>i()("errors.use_via_api")]),ie("click",f,()=>{X(!1)}),v(s,r)};x(Qe,s=>{d(S)&&u.root&&B&&s(vt)})}var We=y(Qe,2);{var pt=s=>{var r=Ei(),f=q(r),p=y(f,2),M=q(p);we(M,()=>W,(A,O)=>{O(A,{onclose:()=>{oe(!1)},start_recording:()=>{Ge()},get pwa_enabled(){return e.app.config.pwa},get root(){return e.root},get space_id(){return e.space_id},get i18n(){return i()},get allow_zoom(){return L},set allow_zoom(U){L=U},get allow_video_trim(){return ae},set allow_video_trim(U){ae=U}})}),I(p),I(r),K(A=>V(r,"aria-label",A),[()=>i()("common.settings")]),ie("click",f,()=>{oe(!1)}),v(s,r)};x(We,s=>{d(G)&&e.app.config&&u.root&&W&&s(pt)})}var mt=y(We,2);{var bt=s=>{var r=Z(),f=D(r);we(f,()=>d(ee),(p,M)=>{M(p,{get app(){return e.app},get root(){return e.root}})}),v(s,r)};x(mt,s=>{e.vibe_mode&&d(ee)&&s(bt)})}I(xe);var wt=y(xe,2);{var yt=s=>{Qt(s,{get messages(){return d(h)},on_close:ut})};x(wt,s=>{d(h)&&s(yt)})}K(()=>{Ne=it(xe,"",Ne,{"min-height":e.app_mode?"100%":"auto"}),Ve=it(he,"",Ve,{"flex-grow":e.app_mode?"1":"auto","margin-right":e.vibe_mode?`${k}px`:"0"})}),v(l,Be),ze(),n()}const ji=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"}));export{ji as B,$t as a,Kt as g,ei as s};
assets/{BokehPlot-B0xAqoU-.js β†’ BokehPlot-IYUvpdLF.js} RENAMED
@@ -1 +1 @@
1
- import{a as y}from"./i18n-CPHyzK9b.js";import{M as q,aa as E,ab as D,ac as B,Z as s,t as H,a as I,O as J,a2 as L,R as N,$ as C}from"./index-DydPgVMC.js";var R=N('<div class="gradio-bokeh svelte-1fu2whl"></div>');function z(F,e){q(e,!0);const d=`bokehDiv-${Math.random().toString(5).substring(2)}`;let b=L(()=>e.value?.plot);function M(o){return`${typeof window<"u"&&window.gradio_config?.root||""}/static/bokeh/${o}`}function t(o,n){return`${M(o)}/${n}`}function i(o,n){return n===`bokeh-${o}.min.js`?`https://cdn.bokeh.org/bokeh/release/${n}`:`https://cdn.pydata.org/bokeh/release/${n}`}function _(o,n){return new Promise((w,j)=>{const a=document.createElement("script");a.onload=()=>w(a),a.onerror=()=>{if(n){const r=document.createElement("script");r.onload=()=>w(r),r.onerror=()=>{console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},r.src=n,document.head.appendChild(r)}else console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},a.src=o,document.head.appendChild(a)})}async function O(o){if(document){const n=document.getElementById(d);n&&(n.innerHTML="")}if(window.Bokeh){g();let n=JSON.parse(o);await window.Bokeh.embed.embed_item(n,d)}}const k=e.bokeh_version?t(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,u=e.bokeh_version?i(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,P=e.bokeh_version?[t(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[],S=e.bokeh_version?[i(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[];let m=E(!1),v=E(D([]));async function x(){C(v,await Promise.all(P.map((o,n)=>_(o,S[n]))),!0),C(m,!0)}function h(){x()}let f=!1;function g(){const o=document.createElement("script");return o.onload=h,o.onerror=()=>{u&&_(u).then(h).catch(()=>{})},o.src=k,document.head.querySelector(`script[src="${k}"]`)?(h(),null):(document.head.appendChild(o),f=!0,o)}const c=e.bokeh_version?g():null;B(()=>{s(m)&&s(b)&&O(s(b))}),B(()=>()=>{f&&c&&document.head.contains(c)&&document.head.removeChild(c),s(v).forEach(o=>{document.head.contains(o)&&document.head.removeChild(o)})});var l=R();y(l,"data-testid","bokeh"),H(()=>y(l,"id",d)),I(F,l),J()}export{z as default};
 
1
+ import{a as y}from"./i18n-DtG3MAQ1.js";import{M as q,aa as E,ab as D,ac as B,Z as s,t as H,a as I,O as J,a2 as L,R as N,$ as C}from"./index-BeNBoC9J.js";var R=N('<div class="gradio-bokeh svelte-1fu2whl"></div>');function z(F,e){q(e,!0);const d=`bokehDiv-${Math.random().toString(5).substring(2)}`;let b=L(()=>e.value?.plot);function M(o){return`${typeof window<"u"&&window.gradio_config?.root||""}/static/bokeh/${o}`}function t(o,n){return`${M(o)}/${n}`}function i(o,n){return n===`bokeh-${o}.min.js`?`https://cdn.bokeh.org/bokeh/release/${n}`:`https://cdn.pydata.org/bokeh/release/${n}`}function _(o,n){return new Promise((w,j)=>{const a=document.createElement("script");a.onload=()=>w(a),a.onerror=()=>{if(n){const r=document.createElement("script");r.onload=()=>w(r),r.onerror=()=>{console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},r.src=n,document.head.appendChild(r)}else console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},a.src=o,document.head.appendChild(a)})}async function O(o){if(document){const n=document.getElementById(d);n&&(n.innerHTML="")}if(window.Bokeh){g();let n=JSON.parse(o);await window.Bokeh.embed.embed_item(n,d)}}const k=e.bokeh_version?t(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,u=e.bokeh_version?i(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,P=e.bokeh_version?[t(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[],S=e.bokeh_version?[i(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[];let m=E(!1),v=E(D([]));async function x(){C(v,await Promise.all(P.map((o,n)=>_(o,S[n]))),!0),C(m,!0)}function h(){x()}let f=!1;function g(){const o=document.createElement("script");return o.onload=h,o.onerror=()=>{u&&_(u).then(h).catch(()=>{})},o.src=k,document.head.querySelector(`script[src="${k}"]`)?(h(),null):(document.head.appendChild(o),f=!0,o)}const c=e.bokeh_version?g():null;B(()=>{s(m)&&s(b)&&O(s(b))}),B(()=>()=>{f&&c&&document.head.contains(c)&&document.head.removeChild(c),s(v).forEach(o=>{document.head.contains(o)&&document.head.removeChild(o)})});var l=R();y(l,"data-testid","bokeh"),H(()=>y(l,"id",d)),I(F,l),J()}export{z as default};
assets/{Button-CV36sOqf.js β†’ Button-j0-_VC-G.js} RENAMED
@@ -1 +1 @@
1
- import{p as l,i as m,a as s,b as M,f as N}from"./i18n-CPHyzK9b.js";import{M as J,a3 as x,N as j,a as o,O as K,ah as L,Q as O,S as Q,T as R,t as S,R as A,Z as _,a2 as u}from"./index-DydPgVMC.js";import{s as T}from"./snippet-BtHMuX3s.js";import{I as Z}from"./Image-CZ1Hb99p.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";/* empty css */var U=A("<a><!> <!></a>"),V=A("<button><!> <!></button>");function te(C,e){J(e,!0);let q=l(e,"elem_classes",19,()=>[]),v=l(e,"visible",3,!0),z=l(e,"variant",3,"secondary"),B=l(e,"size",3,"md"),g=l(e,"value",3,null),I=l(e,"link_target",3,"_self"),h=l(e,"disabled",3,!1),b=l(e,"scale",3,null),D=l(e,"onclick",3,()=>{});var P=x(),E=j(P);{var F=r=>{var a=U();let d,c;var f=O(a);{var k=t=>{{let i=u(()=>e.icon.url??""),n=u(()=>({alt:`${g()} icon`,class:"button-icon"}));Z(t,{get src(){return _(i)},get restProps(){return _(n)}})}};m(f,t=>{e.icon&&t(k)})}var w=Q(f,2);{var y=t=>{var i=x(),n=j(i);T(n,()=>e.children),o(t,i)};m(w,t=>{e.children&&t(y)})}R(a),S(t=>{s(a,"href",e.link),s(a,"target",I()),s(a,"rel",I()==="_blank"?"noopener noreferrer":void 0),s(a,"aria-disabled",h()),d=M(a,1,`${B()??""} ${z()??""} ${t??""}`,"svelte-7f1dq6",d,{hidden:v()===!1||v()==="hidden",disabled:h()}),s(a,"id",e.elem_id),c=N(a,"",c,{"flex-grow":b(),"pointer-events":h()?"none":null,width:b()===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>(q()??[]).join(" ")]),o(r,a)},G=r=>{var a=V();a.__click=function(...t){D()?.apply(this,t)};let d,c;var f=O(a);{var k=t=>{{let i=u(()=>({alt:`${g()} icon`})),n=u(()=>[`button-icon ${g()?"right-padded":""}`]),H=u(()=>e.icon.url??"");Z(t,{get restProps(){return _(i)},get class_names(){return _(n)},get src(){return _(H)}})}};m(f,t=>{e.icon&&t(k)})}var w=Q(f,2);{var y=t=>{var i=x(),n=j(i);T(n,()=>e.children),o(t,i)};m(w,t=>{e.children&&t(y)})}R(a),S(t=>{d=M(a,1,`${B()??""} ${z()??""} ${t??""}`,"svelte-7f1dq6",d,{hidden:v()===!1||v()==="hidden"}),s(a,"id",e.elem_id),a.disabled=h(),c=N(a,"",c,{"flex-grow":b(),width:b()===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>(q()??[]).join(" ")]),o(r,a)};m(E,r=>{e.link&&e.link.length>0?r(F):r(G,!1)})}o(C,P),K()}L(["click"]);export{te as B};
 
1
+ import{p as l,i as m,a as s,b as M,f as N}from"./i18n-DtG3MAQ1.js";import{M as J,a3 as x,N as j,a as o,O as K,ah as L,Q as O,S as Q,T as R,t as S,R as A,Z as _,a2 as u}from"./index-BeNBoC9J.js";import{s as T}from"./snippet-BRIBYCwB.js";import{I as Z}from"./Image-ALBOEs1f.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";/* empty css */var U=A("<a><!> <!></a>"),V=A("<button><!> <!></button>");function te(C,e){J(e,!0);let q=l(e,"elem_classes",19,()=>[]),v=l(e,"visible",3,!0),z=l(e,"variant",3,"secondary"),B=l(e,"size",3,"md"),g=l(e,"value",3,null),I=l(e,"link_target",3,"_self"),h=l(e,"disabled",3,!1),b=l(e,"scale",3,null),D=l(e,"onclick",3,()=>{});var P=x(),E=j(P);{var F=r=>{var a=U();let d,c;var f=O(a);{var k=t=>{{let i=u(()=>e.icon.url??""),n=u(()=>({alt:`${g()} icon`,class:"button-icon"}));Z(t,{get src(){return _(i)},get restProps(){return _(n)}})}};m(f,t=>{e.icon&&t(k)})}var w=Q(f,2);{var y=t=>{var i=x(),n=j(i);T(n,()=>e.children),o(t,i)};m(w,t=>{e.children&&t(y)})}R(a),S(t=>{s(a,"href",e.link),s(a,"target",I()),s(a,"rel",I()==="_blank"?"noopener noreferrer":void 0),s(a,"aria-disabled",h()),d=M(a,1,`${B()??""} ${z()??""} ${t??""}`,"svelte-7f1dq6",d,{hidden:v()===!1||v()==="hidden",disabled:h()}),s(a,"id",e.elem_id),c=N(a,"",c,{"flex-grow":b(),"pointer-events":h()?"none":null,width:b()===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>(q()??[]).join(" ")]),o(r,a)},G=r=>{var a=V();a.__click=function(...t){D()?.apply(this,t)};let d,c;var f=O(a);{var k=t=>{{let i=u(()=>({alt:`${g()} icon`})),n=u(()=>[`button-icon ${g()?"right-padded":""}`]),H=u(()=>e.icon.url??"");Z(t,{get restProps(){return _(i)},get class_names(){return _(n)},get src(){return _(H)}})}};m(f,t=>{e.icon&&t(k)})}var w=Q(f,2);{var y=t=>{var i=x(),n=j(i);T(n,()=>e.children),o(t,i)};m(w,t=>{e.children&&t(y)})}R(a),S(t=>{d=M(a,1,`${B()??""} ${z()??""} ${t??""}`,"svelte-7f1dq6",d,{hidden:v()===!1||v()==="hidden"}),s(a,"id",e.elem_id),a.disabled=h(),c=N(a,"",c,{"flex-grow":b(),width:b()===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>(q()??[]).join(" ")]),o(r,a)};m(E,r=>{e.link&&e.link.length>0?r(F):r(G,!1)})}o(C,P),K()}L(["click"]);export{te as B};
assets/{Canvas3D-TG45VLbi.js β†’ Canvas3D-BbKV2SzE.js} RENAMED
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-GY9JDBGV.js","./index-DydPgVMC.js","./index-BSZrXtnz.css"])))=>i.map(i=>d[i]);
2
- import{M as V,a7 as M,ac as P,Z as a,a as I,O,a2 as R,aa as f,R as g,$ as u,af as A}from"./index-DydPgVMC.js";import{d as x}from"./i18n-CPHyzK9b.js";var E=g("<canvas></canvas>");function S(h,i){V(i,!0);let c,p=R(()=>i.value.url),d,n=f(void 0),s=f(void 0),l=f(!1);M(()=>{let e=!0;return(async()=>{c=await A(()=>import("./index-GY9JDBGV.js").then(t=>t.cx),__vite__mapDeps([0,1,2]),import.meta.url);const o=await c.CreateViewerForCanvas(d,{clearColor:i.clear_color,useRightHandedSystem:!0,animationAutoPlay:!0,cameraAutoOrbit:{enabled:!1},onInitialized:t=>{u(s,t,!0)}});if(!e){o.dispose();return}u(n,o,!0),u(l,!0)})(),()=>{e=!1,u(l,!1),a(n)?.dispose(),u(n,void 0)}}),P(()=>{a(l)&&b(a(p))});function m(e,r){a(s)&&(a(s).scene.forcePointsCloud=e,a(s).scene.forceWireframe=r)}async function b(e){const r=a(n);if(r)if(e){try{await r.loadModel(e,{pluginOptions:{obj:{importVertexColors:!0}}})}catch(o){a(l)&&r===a(n)&&console.error(o);return}if(!a(l)||r!==a(n))return;i.display_mode==="point_cloud"?m(!0,!1):i.display_mode==="wireframe"?m(!1,!0):v(i.camera_position,i.zoom_speed,i.pan_speed)}else r.resetModel()}function v(e,r,o){if(!a(s))return;const t=a(s).camera;e[0]!==null&&(t.alpha=e[0]*Math.PI/180),e[1]!==null&&(t.beta=e[1]*Math.PI/180),e[2]!==null&&(t.radius=e[2]),t.lowerRadiusLimit=.1;const w=()=>{t.wheelPrecision=250/(t.radius*r),t.panningSensibility=1e4*o/t.radius};w(),t.onAfterCheckInputsObservable.add(w)}function y(){a(s)&&a(n)&&a(n).resetCamera()}var C={update_camera:v,reset_camera_position:y},_=E();return x(_,e=>d=e,()=>d),I(h,_),O(C)}export{S as default};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DmfQKmJL.js","./index-BeNBoC9J.js","./index-BSZrXtnz.css"])))=>i.map(i=>d[i]);
2
+ import{M as V,a7 as M,ac as P,Z as a,a as I,O,a2 as R,aa as f,R as g,$ as u,af as A}from"./index-BeNBoC9J.js";import{d as x}from"./i18n-DtG3MAQ1.js";var E=g("<canvas></canvas>");function S(h,i){V(i,!0);let c,p=R(()=>i.value.url),d,n=f(void 0),s=f(void 0),l=f(!1);M(()=>{let e=!0;return(async()=>{c=await A(()=>import("./index-DmfQKmJL.js").then(t=>t.cx),__vite__mapDeps([0,1,2]),import.meta.url);const o=await c.CreateViewerForCanvas(d,{clearColor:i.clear_color,useRightHandedSystem:!0,animationAutoPlay:!0,cameraAutoOrbit:{enabled:!1},onInitialized:t=>{u(s,t,!0)}});if(!e){o.dispose();return}u(n,o,!0),u(l,!0)})(),()=>{e=!1,u(l,!1),a(n)?.dispose(),u(n,void 0)}}),P(()=>{a(l)&&b(a(p))});function m(e,r){a(s)&&(a(s).scene.forcePointsCloud=e,a(s).scene.forceWireframe=r)}async function b(e){const r=a(n);if(r)if(e){try{await r.loadModel(e,{pluginOptions:{obj:{importVertexColors:!0}}})}catch(o){a(l)&&r===a(n)&&console.error(o);return}if(!a(l)||r!==a(n))return;i.display_mode==="point_cloud"?m(!0,!1):i.display_mode==="wireframe"?m(!1,!0):v(i.camera_position,i.zoom_speed,i.pan_speed)}else r.resetModel()}function v(e,r,o){if(!a(s))return;const t=a(s).camera;e[0]!==null&&(t.alpha=e[0]*Math.PI/180),e[1]!==null&&(t.beta=e[1]*Math.PI/180),e[2]!==null&&(t.radius=e[2]),t.lowerRadiusLimit=.1;const w=()=>{t.wheelPrecision=250/(t.radius*r),t.panningSensibility=1e4*o/t.radius};w(),t.onAfterCheckInputsObservable.add(w)}function y(){a(s)&&a(n)&&a(n).resetCamera()}var C={update_camera:v,reset_camera_position:y},_=E();return x(_,e=>d=e,()=>d),I(h,_),O(C)}export{S as default};
assets/{Canvas3DGS-CSEUG3T9.js β†’ Canvas3DGS-CPiRrZLZ.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{d as It}from"./i18n-CPHyzK9b.js";import{M as lt,a7 as dt,ac as ht,a as Rt,O as ct,R as Et,$ as St,aa as Jt,Z as tt,a2 as At}from"./index-DydPgVMC.js";class h{constructor(t=0,e=0,A=0){this.x=t,this.y=e,this.z=A}equals(t){return!(this.x!==t.x||this.y!==t.y||this.z!==t.z)}add(t){return typeof t=="number"?new h(this.x+t,this.y+t,this.z+t):new h(this.x+t.x,this.y+t.y,this.z+t.z)}subtract(t){return typeof t=="number"?new h(this.x-t,this.y-t,this.z-t):new h(this.x-t.x,this.y-t.y,this.z-t.z)}multiply(t){return typeof t=="number"?new h(this.x*t,this.y*t,this.z*t):t instanceof h?new h(this.x*t.x,this.y*t.y,this.z*t.z):new h(this.x*t.buffer[0]+this.y*t.buffer[4]+this.z*t.buffer[8]+t.buffer[12],this.x*t.buffer[1]+this.y*t.buffer[5]+this.z*t.buffer[9]+t.buffer[13],this.x*t.buffer[2]+this.y*t.buffer[6]+this.z*t.buffer[10]+t.buffer[14])}divide(t){return typeof t=="number"?new h(this.x/t,this.y/t,this.z/t):new h(this.x/t.x,this.y/t.y,this.z/t.z)}cross(t){const e=this.y*t.z-this.z*t.y,A=this.z*t.x-this.x*t.z,Q=this.x*t.y-this.y*t.x;return new h(e,A,Q)}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lerp(t,e){return new h(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e,this.z+(t.z-this.z)*e)}min(t){return new h(Math.min(this.x,t.x),Math.min(this.y,t.y),Math.min(this.z,t.z))}max(t){return new h(Math.max(this.x,t.x),Math.max(this.y,t.y),Math.max(this.z,t.z))}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error(`Invalid component index: ${t}`)}}minComponent(){return this.x<this.y&&this.x<this.z?0:this.y<this.z?1:2}maxComponent(){return this.x>this.y&&this.x>this.z?0:this.y>this.z?1:2}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}distanceTo(t){return Math.sqrt((this.x-t.x)**2+(this.y-t.y)**2+(this.z-t.z)**2)}normalize(){const t=this.magnitude();return new h(this.x/t,this.y/t,this.z/t)}flat(){return[this.x,this.y,this.z]}clone(){return new h(this.x,this.y,this.z)}toString(){return`[${this.flat().join(", ")}]`}static One(t=1){return new h(t,t,t)}}class f{constructor(t=0,e=0,A=0,Q=1){this.x=t,this.y=e,this.z=A,this.w=Q}equals(t){return!(this.x!==t.x||this.y!==t.y||this.z!==t.z||this.w!==t.w)}normalize(){const t=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);return new f(this.x/t,this.y/t,this.z/t,this.w/t)}multiply(t){const e=this.w,A=this.x,Q=this.y,s=this.z,n=t.w,U=t.x,F=t.y,i=t.z;return new f(e*U+A*n+Q*i-s*F,e*F-A*i+Q*n+s*U,e*i+A*F-Q*U+s*n,e*n-A*U-Q*F-s*i)}inverse(){const t=this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w;return new f(-this.x/t,-this.y/t,-this.z/t,this.w/t)}apply(t){const e=new f(t.x,t.y,t.z,0),A=new f(-this.x,-this.y,-this.z,this.w),Q=this.multiply(e).multiply(A);return new h(Q.x,Q.y,Q.z)}flat(){return[this.x,this.y,this.z,this.w]}clone(){return new f(this.x,this.y,this.z,this.w)}static FromEuler(t){const e=t.x/2,A=t.y/2,Q=t.z/2,s=Math.cos(A),n=Math.sin(A),U=Math.cos(e),F=Math.sin(e),i=Math.cos(Q),l=Math.sin(Q);return new f(s*F*i+n*U*l,n*U*i-s*F*l,s*U*l-n*F*i,s*U*i+n*F*l)}toEuler(){const t=2*(this.w*this.x+this.y*this.z),e=1-2*(this.x*this.x+this.y*this.y),A=Math.atan2(t,e);let Q;const s=2*(this.w*this.y-this.z*this.x);Math.abs(s)>=1?Q=Math.sign(s)*Math.PI/2:Q=Math.asin(s);const n=2*(this.w*this.z+this.x*this.y),U=1-2*(this.y*this.y+this.z*this.z),F=Math.atan2(n,U);return new h(A,Q,F)}static FromMatrix3(t){const e=t.buffer,A=e[0]+e[4]+e[8];let Q,s,n,U;if(A>0){const F=.5/Math.sqrt(A+1);U=.25/F,Q=(e[7]-e[5])*F,s=(e[2]-e[6])*F,n=(e[3]-e[1])*F}else if(e[0]>e[4]&&e[0]>e[8]){const F=2*Math.sqrt(1+e[0]-e[4]-e[8]);U=(e[7]-e[5])/F,Q=.25*F,s=(e[1]+e[3])/F,n=(e[2]+e[6])/F}else if(e[4]>e[8]){const F=2*Math.sqrt(1+e[4]-e[0]-e[8]);U=(e[2]-e[6])/F,Q=(e[1]+e[3])/F,s=.25*F,n=(e[5]+e[7])/F}else{const F=2*Math.sqrt(1+e[8]-e[0]-e[4]);U=(e[3]-e[1])/F,Q=(e[2]+e[6])/F,s=(e[5]+e[7])/F,n=.25*F}return new f(Q,s,n,U)}static FromAxisAngle(t,e){const A=e/2,Q=Math.sin(A),s=Math.cos(A);return new f(t.x*Q,t.y*Q,t.z*Q,s)}static LookRotation(t){const e=new h(0,0,1),A=e.dot(t);if(Math.abs(A- -1)<1e-6)return new f(0,1,0,Math.PI);if(Math.abs(A-1)<1e-6)return new f;const Q=Math.acos(A),s=e.cross(t).normalize();return f.FromAxisAngle(s,Q)}toString(){return`[${this.flat().join(", ")}]`}}class it{constructor(){const t=new Map;this.addEventListener=(e,A)=>{t.has(e)||t.set(e,new Set),t.get(e).add(A)},this.removeEventListener=(e,A)=>{t.has(e)&&t.get(e).delete(A)},this.hasEventListener=(e,A)=>t.has(e)?t.get(e).has(A):!1,this.dispatchEvent=e=>{if(t.has(e.type))for(const A of t.get(e.type))A(e)}}}class X{constructor(t=1,e=0,A=0,Q=0,s=0,n=1,U=0,F=0,i=0,l=0,d=1,B=0,r=0,C=0,I=0,a=1){this.buffer=[t,e,A,Q,s,n,U,F,i,l,d,B,r,C,I,a]}equals(t){if(this.buffer.length!==t.buffer.length)return!1;if(this.buffer===t.buffer)return!0;for(let e=0;e<this.buffer.length;e++)if(this.buffer[e]!==t.buffer[e])return!1;return!0}multiply(t){const e=this.buffer,A=t.buffer;return new X(A[0]*e[0]+A[1]*e[4]+A[2]*e[8]+A[3]*e[12],A[0]*e[1]+A[1]*e[5]+A[2]*e[9]+A[3]*e[13],A[0]*e[2]+A[1]*e[6]+A[2]*e[10]+A[3]*e[14],A[0]*e[3]+A[1]*e[7]+A[2]*e[11]+A[3]*e[15],A[4]*e[0]+A[5]*e[4]+A[6]*e[8]+A[7]*e[12],A[4]*e[1]+A[5]*e[5]+A[6]*e[9]+A[7]*e[13],A[4]*e[2]+A[5]*e[6]+A[6]*e[10]+A[7]*e[14],A[4]*e[3]+A[5]*e[7]+A[6]*e[11]+A[7]*e[15],A[8]*e[0]+A[9]*e[4]+A[10]*e[8]+A[11]*e[12],A[8]*e[1]+A[9]*e[5]+A[10]*e[9]+A[11]*e[13],A[8]*e[2]+A[9]*e[6]+A[10]*e[10]+A[11]*e[14],A[8]*e[3]+A[9]*e[7]+A[10]*e[11]+A[11]*e[15],A[12]*e[0]+A[13]*e[4]+A[14]*e[8]+A[15]*e[12],A[12]*e[1]+A[13]*e[5]+A[14]*e[9]+A[15]*e[13],A[12]*e[2]+A[13]*e[6]+A[14]*e[10]+A[15]*e[14],A[12]*e[3]+A[13]*e[7]+A[14]*e[11]+A[15]*e[15])}clone(){const t=this.buffer;return new X(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}determinant(){const t=this.buffer;return t[12]*t[9]*t[6]*t[3]-t[8]*t[13]*t[6]*t[3]-t[12]*t[5]*t[10]*t[3]+t[4]*t[13]*t[10]*t[3]+t[8]*t[5]*t[14]*t[3]-t[4]*t[9]*t[14]*t[3]-t[12]*t[9]*t[2]*t[7]+t[8]*t[13]*t[2]*t[7]+t[12]*t[1]*t[10]*t[7]-t[0]*t[13]*t[10]*t[7]-t[8]*t[1]*t[14]*t[7]+t[0]*t[9]*t[14]*t[7]+t[12]*t[5]*t[2]*t[11]-t[4]*t[13]*t[2]*t[11]-t[12]*t[1]*t[6]*t[11]+t[0]*t[13]*t[6]*t[11]+t[4]*t[1]*t[14]*t[11]-t[0]*t[5]*t[14]*t[11]-t[8]*t[5]*t[2]*t[15]+t[4]*t[9]*t[2]*t[15]+t[8]*t[1]*t[6]*t[15]-t[0]*t[9]*t[6]*t[15]-t[4]*t[1]*t[10]*t[15]+t[0]*t[5]*t[10]*t[15]}invert(){const t=this.buffer,e=this.determinant();if(e===0)throw new Error("Matrix is not invertible.");const A=1/e;return new X(A*(t[5]*t[10]*t[15]-t[5]*t[11]*t[14]-t[9]*t[6]*t[15]+t[9]*t[7]*t[14]+t[13]*t[6]*t[11]-t[13]*t[7]*t[10]),A*(-t[1]*t[10]*t[15]+t[1]*t[11]*t[14]+t[9]*t[2]*t[15]-t[9]*t[3]*t[14]-t[13]*t[2]*t[11]+t[13]*t[3]*t[10]),A*(t[1]*t[6]*t[15]-t[1]*t[7]*t[14]-t[5]*t[2]*t[15]+t[5]*t[3]*t[14]+t[13]*t[2]*t[7]-t[13]*t[3]*t[6]),A*(-t[1]*t[6]*t[11]+t[1]*t[7]*t[10]+t[5]*t[2]*t[11]-t[5]*t[3]*t[10]-t[9]*t[2]*t[7]+t[9]*t[3]*t[6]),A*(-t[4]*t[10]*t[15]+t[4]*t[11]*t[14]+t[8]*t[6]*t[15]-t[8]*t[7]*t[14]-t[12]*t[6]*t[11]+t[12]*t[7]*t[10]),A*(t[0]*t[10]*t[15]-t[0]*t[11]*t[14]-t[8]*t[2]*t[15]+t[8]*t[3]*t[14]+t[12]*t[2]*t[11]-t[12]*t[3]*t[10]),A*(-t[0]*t[6]*t[15]+t[0]*t[7]*t[14]+t[4]*t[2]*t[15]-t[4]*t[3]*t[14]-t[12]*t[2]*t[7]+t[12]*t[3]*t[6]),A*(t[0]*t[6]*t[11]-t[0]*t[7]*t[10]-t[4]*t[2]*t[11]+t[4]*t[3]*t[10]+t[8]*t[2]*t[7]-t[8]*t[3]*t[6]),A*(t[4]*t[9]*t[15]-t[4]*t[11]*t[13]-t[8]*t[5]*t[15]+t[8]*t[7]*t[13]+t[12]*t[5]*t[11]-t[12]*t[7]*t[9]),A*(-t[0]*t[9]*t[15]+t[0]*t[11]*t[13]+t[8]*t[1]*t[15]-t[8]*t[3]*t[13]-t[12]*t[1]*t[11]+t[12]*t[3]*t[9]),A*(t[0]*t[5]*t[15]-t[0]*t[7]*t[13]-t[4]*t[1]*t[15]+t[4]*t[3]*t[13]+t[12]*t[1]*t[7]-t[12]*t[3]*t[5]),A*(-t[0]*t[5]*t[11]+t[0]*t[7]*t[9]+t[4]*t[1]*t[11]-t[4]*t[3]*t[9]-t[8]*t[1]*t[7]+t[8]*t[3]*t[5]),A*(-t[4]*t[9]*t[14]+t[4]*t[10]*t[13]+t[8]*t[5]*t[14]-t[8]*t[6]*t[13]-t[12]*t[5]*t[10]+t[12]*t[6]*t[9]),A*(t[0]*t[9]*t[14]-t[0]*t[10]*t[13]-t[8]*t[1]*t[14]+t[8]*t[2]*t[13]+t[12]*t[1]*t[10]-t[12]*t[2]*t[9]),A*(-t[0]*t[5]*t[14]+t[0]*t[6]*t[13]+t[4]*t[1]*t[14]-t[4]*t[2]*t[13]-t[12]*t[1]*t[6]+t[12]*t[2]*t[5]),A*(t[0]*t[5]*t[10]-t[0]*t[6]*t[9]-t[4]*t[1]*t[10]+t[4]*t[2]*t[9]+t[8]*t[1]*t[6]-t[8]*t[2]*t[5]))}static Compose(t,e,A){const Q=e.x,s=e.y,n=e.z,U=e.w,F=Q+Q,i=s+s,l=n+n,d=Q*F,B=Q*i,r=Q*l,C=s*i,I=s*l,a=n*l,R=U*F,c=U*i,W=U*l,w=A.x,D=A.y,k=A.z;return new X((1-(C+a))*w,(B+W)*w,(r-c)*w,0,(B-W)*D,(1-(d+a))*D,(I+R)*D,0,(r+c)*k,(I-R)*k,(1-(d+C))*k,0,t.x,t.y,t.z,1)}toString(){return`[${this.buffer.join(", ")}]`}}class Vt extends Event{constructor(t){super("objectAdded"),this.object=t}}class Zt extends Event{constructor(t){super("objectRemoved"),this.object=t}}class mt extends Event{constructor(t){super("objectChanged"),this.object=t}}class st extends it{constructor(){super(),this.positionChanged=!1,this.rotationChanged=!1,this.scaleChanged=!1,this._position=new h,this._rotation=new f,this._scale=new h(1,1,1),this._transform=new X,this._changeEvent=new mt(this),this.update=()=>{},this.applyPosition=()=>{this.position=new h},this.applyRotation=()=>{this.rotation=new f},this.applyScale=()=>{this.scale=new h(1,1,1)},this.raiseChangeEvent=()=>{this.dispatchEvent(this._changeEvent)}}_updateMatrix(){this._transform=X.Compose(this._position,this._rotation,this._scale)}get position(){return this._position}set position(t){this._position.equals(t)||(this._position=t,this.positionChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get rotation(){return this._rotation}set rotation(t){this._rotation.equals(t)||(this._rotation=t,this.rotationChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get scale(){return this._scale}set scale(t){this._scale.equals(t)||(this._scale=t,this.scaleChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get forward(){let t=new h(0,0,1);return t=this.rotation.apply(t),t}get transform(){return this._transform}}class j{constructor(t=1,e=0,A=0,Q=0,s=1,n=0,U=0,F=0,i=1){this.buffer=[t,e,A,Q,s,n,U,F,i]}equals(t){if(this.buffer.length!==t.buffer.length)return!1;if(this.buffer===t.buffer)return!0;for(let e=0;e<this.buffer.length;e++)if(this.buffer[e]!==t.buffer[e])return!1;return!0}multiply(t){const e=this.buffer,A=t.buffer;return new j(A[0]*e[0]+A[3]*e[1]+A[6]*e[2],A[1]*e[0]+A[4]*e[1]+A[7]*e[2],A[2]*e[0]+A[5]*e[1]+A[8]*e[2],A[0]*e[3]+A[3]*e[4]+A[6]*e[5],A[1]*e[3]+A[4]*e[4]+A[7]*e[5],A[2]*e[3]+A[5]*e[4]+A[8]*e[5],A[0]*e[6]+A[3]*e[7]+A[6]*e[8],A[1]*e[6]+A[4]*e[7]+A[7]*e[8],A[2]*e[6]+A[5]*e[7]+A[8]*e[8])}clone(){const t=this.buffer;return new j(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}static Eye(t=1){return new j(t,0,0,0,t,0,0,0,t)}static Diagonal(t){return new j(t.x,0,0,0,t.y,0,0,0,t.z)}static RotationFromQuaternion(t){return new j(1-2*t.y*t.y-2*t.z*t.z,2*t.x*t.y-2*t.z*t.w,2*t.x*t.z+2*t.y*t.w,2*t.x*t.y+2*t.z*t.w,1-2*t.x*t.x-2*t.z*t.z,2*t.y*t.z-2*t.x*t.w,2*t.x*t.z-2*t.y*t.w,2*t.y*t.z+2*t.x*t.w,1-2*t.x*t.x-2*t.y*t.y)}static RotationFromEuler(t){const e=Math.cos(t.x),A=Math.sin(t.x),Q=Math.cos(t.y),s=Math.sin(t.y),n=Math.cos(t.z),U=Math.sin(t.z),F=[Q*n+s*A*U,-Q*U+s*A*n,s*e,e*U,e*n,-A,-s*n+Q*A*U,s*U+Q*A*n,Q*e];return new j(...F)}toString(){return`[${this.buffer.join(", ")}]`}}class K{constructor(t=0,e=null,A=null,Q=null,s=null){this.changed=!1,this.detached=!1,this._vertexCount=t,this._positions=e||new Float32Array(0),this._rotations=A||new Float32Array(0),this._scales=Q||new Float32Array(0),this._colors=s||new Uint8Array(0),this._selection=new Uint8Array(this.vertexCount),this.translate=n=>{for(let U=0;U<this.vertexCount;U++)this.positions[3*U+0]+=n.x,this.positions[3*U+1]+=n.y,this.positions[3*U+2]+=n.z;this.changed=!0},this.rotate=n=>{const U=j.RotationFromQuaternion(n).buffer;for(let F=0;F<this.vertexCount;F++){const i=this.positions[3*F+0],l=this.positions[3*F+1],d=this.positions[3*F+2];this.positions[3*F+0]=U[0]*i+U[1]*l+U[2]*d,this.positions[3*F+1]=U[3]*i+U[4]*l+U[5]*d,this.positions[3*F+2]=U[6]*i+U[7]*l+U[8]*d;const B=new f(this.rotations[4*F+1],this.rotations[4*F+2],this.rotations[4*F+3],this.rotations[4*F+0]),r=n.multiply(B);this.rotations[4*F+1]=r.x,this.rotations[4*F+2]=r.y,this.rotations[4*F+3]=r.z,this.rotations[4*F+0]=r.w}this.changed=!0},this.scale=n=>{for(let U=0;U<this.vertexCount;U++)this.positions[3*U+0]*=n.x,this.positions[3*U+1]*=n.y,this.positions[3*U+2]*=n.z,this.scales[3*U+0]*=n.x,this.scales[3*U+1]*=n.y,this.scales[3*U+2]*=n.z;this.changed=!0},this.serialize=()=>{const n=new Uint8Array(this.vertexCount*K.RowLength),U=new Float32Array(n.buffer),F=new Uint8Array(n.buffer);for(let i=0;i<this.vertexCount;i++)U[8*i+0]=this.positions[3*i+0],U[8*i+1]=this.positions[3*i+1],U[8*i+2]=this.positions[3*i+2],F[32*i+24+0]=this.colors[4*i+0],F[32*i+24+1]=this.colors[4*i+1],F[32*i+24+2]=this.colors[4*i+2],F[32*i+24+3]=this.colors[4*i+3],U[8*i+3+0]=this.scales[3*i+0],U[8*i+3+1]=this.scales[3*i+1],U[8*i+3+2]=this.scales[3*i+2],F[32*i+28+0]=this.rotations[4*i+0]*128+128&255,F[32*i+28+1]=this.rotations[4*i+1]*128+128&255,F[32*i+28+2]=this.rotations[4*i+2]*128+128&255,F[32*i+28+3]=this.rotations[4*i+3]*128+128&255;return n},this.reattach=(n,U,F,i,l)=>{console.assert(n.byteLength===this.vertexCount*3*4,`Expected ${this.vertexCount*3*4} bytes, got ${n.byteLength} bytes`),this._positions=new Float32Array(n),this._rotations=new Float32Array(U),this._scales=new Float32Array(F),this._colors=new Uint8Array(i),this._selection=new Uint8Array(l),this.detached=!1}}static{this.RowLength=32}static Deserialize(t){const e=t.length/K.RowLength,A=new Float32Array(3*e),Q=new Float32Array(4*e),s=new Float32Array(3*e),n=new Uint8Array(4*e),U=new Float32Array(t.buffer),F=new Uint8Array(t.buffer);for(let i=0;i<e;i++)A[3*i+0]=U[8*i+0],A[3*i+1]=U[8*i+1],A[3*i+2]=U[8*i+2],Q[4*i+0]=(F[32*i+28+0]-128)/128,Q[4*i+1]=(F[32*i+28+1]-128)/128,Q[4*i+2]=(F[32*i+28+2]-128)/128,Q[4*i+3]=(F[32*i+28+3]-128)/128,s[3*i+0]=U[8*i+3+0],s[3*i+1]=U[8*i+3+1],s[3*i+2]=U[8*i+3+2],n[4*i+0]=F[32*i+24+0],n[4*i+1]=F[32*i+24+1],n[4*i+2]=F[32*i+24+2],n[4*i+3]=F[32*i+24+3];return new K(e,A,Q,s,n)}get vertexCount(){return this._vertexCount}get positions(){return this._positions}get rotations(){return this._rotations}get scales(){return this._scales}get colors(){return this._colors}get selection(){return this._selection}clone(){return new K(this.vertexCount,new Float32Array(this.positions),new Float32Array(this.rotations),new Float32Array(this.scales),new Uint8Array(this.colors))}}class et{static{this.SH_C0=.28209479177387814}static SplatToPLY(t,e){let A=`ply
2
  format binary_little_endian 1.0
3
  `;A+=`element vertex ${e}
4
  `;const Q=["x","y","z","nx","ny","nz","f_dc_0","f_dc_1","f_dc_2"];for(let a=0;a<45;a++)Q.push(`f_rest_${a}`);Q.push("opacity"),Q.push("scale_0"),Q.push("scale_1"),Q.push("scale_2"),Q.push("rot_0"),Q.push("rot_1"),Q.push("rot_2"),Q.push("rot_3");for(const a of Q)A+=`property float ${a}
 
1
+ import{d as It}from"./i18n-DtG3MAQ1.js";import{M as lt,a7 as dt,ac as ht,a as Rt,O as ct,R as Et,$ as St,aa as Jt,Z as tt,a2 as At}from"./index-BeNBoC9J.js";class h{constructor(t=0,e=0,A=0){this.x=t,this.y=e,this.z=A}equals(t){return!(this.x!==t.x||this.y!==t.y||this.z!==t.z)}add(t){return typeof t=="number"?new h(this.x+t,this.y+t,this.z+t):new h(this.x+t.x,this.y+t.y,this.z+t.z)}subtract(t){return typeof t=="number"?new h(this.x-t,this.y-t,this.z-t):new h(this.x-t.x,this.y-t.y,this.z-t.z)}multiply(t){return typeof t=="number"?new h(this.x*t,this.y*t,this.z*t):t instanceof h?new h(this.x*t.x,this.y*t.y,this.z*t.z):new h(this.x*t.buffer[0]+this.y*t.buffer[4]+this.z*t.buffer[8]+t.buffer[12],this.x*t.buffer[1]+this.y*t.buffer[5]+this.z*t.buffer[9]+t.buffer[13],this.x*t.buffer[2]+this.y*t.buffer[6]+this.z*t.buffer[10]+t.buffer[14])}divide(t){return typeof t=="number"?new h(this.x/t,this.y/t,this.z/t):new h(this.x/t.x,this.y/t.y,this.z/t.z)}cross(t){const e=this.y*t.z-this.z*t.y,A=this.z*t.x-this.x*t.z,Q=this.x*t.y-this.y*t.x;return new h(e,A,Q)}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lerp(t,e){return new h(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e,this.z+(t.z-this.z)*e)}min(t){return new h(Math.min(this.x,t.x),Math.min(this.y,t.y),Math.min(this.z,t.z))}max(t){return new h(Math.max(this.x,t.x),Math.max(this.y,t.y),Math.max(this.z,t.z))}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error(`Invalid component index: ${t}`)}}minComponent(){return this.x<this.y&&this.x<this.z?0:this.y<this.z?1:2}maxComponent(){return this.x>this.y&&this.x>this.z?0:this.y>this.z?1:2}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}distanceTo(t){return Math.sqrt((this.x-t.x)**2+(this.y-t.y)**2+(this.z-t.z)**2)}normalize(){const t=this.magnitude();return new h(this.x/t,this.y/t,this.z/t)}flat(){return[this.x,this.y,this.z]}clone(){return new h(this.x,this.y,this.z)}toString(){return`[${this.flat().join(", ")}]`}static One(t=1){return new h(t,t,t)}}class f{constructor(t=0,e=0,A=0,Q=1){this.x=t,this.y=e,this.z=A,this.w=Q}equals(t){return!(this.x!==t.x||this.y!==t.y||this.z!==t.z||this.w!==t.w)}normalize(){const t=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);return new f(this.x/t,this.y/t,this.z/t,this.w/t)}multiply(t){const e=this.w,A=this.x,Q=this.y,s=this.z,n=t.w,U=t.x,F=t.y,i=t.z;return new f(e*U+A*n+Q*i-s*F,e*F-A*i+Q*n+s*U,e*i+A*F-Q*U+s*n,e*n-A*U-Q*F-s*i)}inverse(){const t=this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w;return new f(-this.x/t,-this.y/t,-this.z/t,this.w/t)}apply(t){const e=new f(t.x,t.y,t.z,0),A=new f(-this.x,-this.y,-this.z,this.w),Q=this.multiply(e).multiply(A);return new h(Q.x,Q.y,Q.z)}flat(){return[this.x,this.y,this.z,this.w]}clone(){return new f(this.x,this.y,this.z,this.w)}static FromEuler(t){const e=t.x/2,A=t.y/2,Q=t.z/2,s=Math.cos(A),n=Math.sin(A),U=Math.cos(e),F=Math.sin(e),i=Math.cos(Q),l=Math.sin(Q);return new f(s*F*i+n*U*l,n*U*i-s*F*l,s*U*l-n*F*i,s*U*i+n*F*l)}toEuler(){const t=2*(this.w*this.x+this.y*this.z),e=1-2*(this.x*this.x+this.y*this.y),A=Math.atan2(t,e);let Q;const s=2*(this.w*this.y-this.z*this.x);Math.abs(s)>=1?Q=Math.sign(s)*Math.PI/2:Q=Math.asin(s);const n=2*(this.w*this.z+this.x*this.y),U=1-2*(this.y*this.y+this.z*this.z),F=Math.atan2(n,U);return new h(A,Q,F)}static FromMatrix3(t){const e=t.buffer,A=e[0]+e[4]+e[8];let Q,s,n,U;if(A>0){const F=.5/Math.sqrt(A+1);U=.25/F,Q=(e[7]-e[5])*F,s=(e[2]-e[6])*F,n=(e[3]-e[1])*F}else if(e[0]>e[4]&&e[0]>e[8]){const F=2*Math.sqrt(1+e[0]-e[4]-e[8]);U=(e[7]-e[5])/F,Q=.25*F,s=(e[1]+e[3])/F,n=(e[2]+e[6])/F}else if(e[4]>e[8]){const F=2*Math.sqrt(1+e[4]-e[0]-e[8]);U=(e[2]-e[6])/F,Q=(e[1]+e[3])/F,s=.25*F,n=(e[5]+e[7])/F}else{const F=2*Math.sqrt(1+e[8]-e[0]-e[4]);U=(e[3]-e[1])/F,Q=(e[2]+e[6])/F,s=(e[5]+e[7])/F,n=.25*F}return new f(Q,s,n,U)}static FromAxisAngle(t,e){const A=e/2,Q=Math.sin(A),s=Math.cos(A);return new f(t.x*Q,t.y*Q,t.z*Q,s)}static LookRotation(t){const e=new h(0,0,1),A=e.dot(t);if(Math.abs(A- -1)<1e-6)return new f(0,1,0,Math.PI);if(Math.abs(A-1)<1e-6)return new f;const Q=Math.acos(A),s=e.cross(t).normalize();return f.FromAxisAngle(s,Q)}toString(){return`[${this.flat().join(", ")}]`}}class it{constructor(){const t=new Map;this.addEventListener=(e,A)=>{t.has(e)||t.set(e,new Set),t.get(e).add(A)},this.removeEventListener=(e,A)=>{t.has(e)&&t.get(e).delete(A)},this.hasEventListener=(e,A)=>t.has(e)?t.get(e).has(A):!1,this.dispatchEvent=e=>{if(t.has(e.type))for(const A of t.get(e.type))A(e)}}}class X{constructor(t=1,e=0,A=0,Q=0,s=0,n=1,U=0,F=0,i=0,l=0,d=1,B=0,r=0,C=0,I=0,a=1){this.buffer=[t,e,A,Q,s,n,U,F,i,l,d,B,r,C,I,a]}equals(t){if(this.buffer.length!==t.buffer.length)return!1;if(this.buffer===t.buffer)return!0;for(let e=0;e<this.buffer.length;e++)if(this.buffer[e]!==t.buffer[e])return!1;return!0}multiply(t){const e=this.buffer,A=t.buffer;return new X(A[0]*e[0]+A[1]*e[4]+A[2]*e[8]+A[3]*e[12],A[0]*e[1]+A[1]*e[5]+A[2]*e[9]+A[3]*e[13],A[0]*e[2]+A[1]*e[6]+A[2]*e[10]+A[3]*e[14],A[0]*e[3]+A[1]*e[7]+A[2]*e[11]+A[3]*e[15],A[4]*e[0]+A[5]*e[4]+A[6]*e[8]+A[7]*e[12],A[4]*e[1]+A[5]*e[5]+A[6]*e[9]+A[7]*e[13],A[4]*e[2]+A[5]*e[6]+A[6]*e[10]+A[7]*e[14],A[4]*e[3]+A[5]*e[7]+A[6]*e[11]+A[7]*e[15],A[8]*e[0]+A[9]*e[4]+A[10]*e[8]+A[11]*e[12],A[8]*e[1]+A[9]*e[5]+A[10]*e[9]+A[11]*e[13],A[8]*e[2]+A[9]*e[6]+A[10]*e[10]+A[11]*e[14],A[8]*e[3]+A[9]*e[7]+A[10]*e[11]+A[11]*e[15],A[12]*e[0]+A[13]*e[4]+A[14]*e[8]+A[15]*e[12],A[12]*e[1]+A[13]*e[5]+A[14]*e[9]+A[15]*e[13],A[12]*e[2]+A[13]*e[6]+A[14]*e[10]+A[15]*e[14],A[12]*e[3]+A[13]*e[7]+A[14]*e[11]+A[15]*e[15])}clone(){const t=this.buffer;return new X(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}determinant(){const t=this.buffer;return t[12]*t[9]*t[6]*t[3]-t[8]*t[13]*t[6]*t[3]-t[12]*t[5]*t[10]*t[3]+t[4]*t[13]*t[10]*t[3]+t[8]*t[5]*t[14]*t[3]-t[4]*t[9]*t[14]*t[3]-t[12]*t[9]*t[2]*t[7]+t[8]*t[13]*t[2]*t[7]+t[12]*t[1]*t[10]*t[7]-t[0]*t[13]*t[10]*t[7]-t[8]*t[1]*t[14]*t[7]+t[0]*t[9]*t[14]*t[7]+t[12]*t[5]*t[2]*t[11]-t[4]*t[13]*t[2]*t[11]-t[12]*t[1]*t[6]*t[11]+t[0]*t[13]*t[6]*t[11]+t[4]*t[1]*t[14]*t[11]-t[0]*t[5]*t[14]*t[11]-t[8]*t[5]*t[2]*t[15]+t[4]*t[9]*t[2]*t[15]+t[8]*t[1]*t[6]*t[15]-t[0]*t[9]*t[6]*t[15]-t[4]*t[1]*t[10]*t[15]+t[0]*t[5]*t[10]*t[15]}invert(){const t=this.buffer,e=this.determinant();if(e===0)throw new Error("Matrix is not invertible.");const A=1/e;return new X(A*(t[5]*t[10]*t[15]-t[5]*t[11]*t[14]-t[9]*t[6]*t[15]+t[9]*t[7]*t[14]+t[13]*t[6]*t[11]-t[13]*t[7]*t[10]),A*(-t[1]*t[10]*t[15]+t[1]*t[11]*t[14]+t[9]*t[2]*t[15]-t[9]*t[3]*t[14]-t[13]*t[2]*t[11]+t[13]*t[3]*t[10]),A*(t[1]*t[6]*t[15]-t[1]*t[7]*t[14]-t[5]*t[2]*t[15]+t[5]*t[3]*t[14]+t[13]*t[2]*t[7]-t[13]*t[3]*t[6]),A*(-t[1]*t[6]*t[11]+t[1]*t[7]*t[10]+t[5]*t[2]*t[11]-t[5]*t[3]*t[10]-t[9]*t[2]*t[7]+t[9]*t[3]*t[6]),A*(-t[4]*t[10]*t[15]+t[4]*t[11]*t[14]+t[8]*t[6]*t[15]-t[8]*t[7]*t[14]-t[12]*t[6]*t[11]+t[12]*t[7]*t[10]),A*(t[0]*t[10]*t[15]-t[0]*t[11]*t[14]-t[8]*t[2]*t[15]+t[8]*t[3]*t[14]+t[12]*t[2]*t[11]-t[12]*t[3]*t[10]),A*(-t[0]*t[6]*t[15]+t[0]*t[7]*t[14]+t[4]*t[2]*t[15]-t[4]*t[3]*t[14]-t[12]*t[2]*t[7]+t[12]*t[3]*t[6]),A*(t[0]*t[6]*t[11]-t[0]*t[7]*t[10]-t[4]*t[2]*t[11]+t[4]*t[3]*t[10]+t[8]*t[2]*t[7]-t[8]*t[3]*t[6]),A*(t[4]*t[9]*t[15]-t[4]*t[11]*t[13]-t[8]*t[5]*t[15]+t[8]*t[7]*t[13]+t[12]*t[5]*t[11]-t[12]*t[7]*t[9]),A*(-t[0]*t[9]*t[15]+t[0]*t[11]*t[13]+t[8]*t[1]*t[15]-t[8]*t[3]*t[13]-t[12]*t[1]*t[11]+t[12]*t[3]*t[9]),A*(t[0]*t[5]*t[15]-t[0]*t[7]*t[13]-t[4]*t[1]*t[15]+t[4]*t[3]*t[13]+t[12]*t[1]*t[7]-t[12]*t[3]*t[5]),A*(-t[0]*t[5]*t[11]+t[0]*t[7]*t[9]+t[4]*t[1]*t[11]-t[4]*t[3]*t[9]-t[8]*t[1]*t[7]+t[8]*t[3]*t[5]),A*(-t[4]*t[9]*t[14]+t[4]*t[10]*t[13]+t[8]*t[5]*t[14]-t[8]*t[6]*t[13]-t[12]*t[5]*t[10]+t[12]*t[6]*t[9]),A*(t[0]*t[9]*t[14]-t[0]*t[10]*t[13]-t[8]*t[1]*t[14]+t[8]*t[2]*t[13]+t[12]*t[1]*t[10]-t[12]*t[2]*t[9]),A*(-t[0]*t[5]*t[14]+t[0]*t[6]*t[13]+t[4]*t[1]*t[14]-t[4]*t[2]*t[13]-t[12]*t[1]*t[6]+t[12]*t[2]*t[5]),A*(t[0]*t[5]*t[10]-t[0]*t[6]*t[9]-t[4]*t[1]*t[10]+t[4]*t[2]*t[9]+t[8]*t[1]*t[6]-t[8]*t[2]*t[5]))}static Compose(t,e,A){const Q=e.x,s=e.y,n=e.z,U=e.w,F=Q+Q,i=s+s,l=n+n,d=Q*F,B=Q*i,r=Q*l,C=s*i,I=s*l,a=n*l,R=U*F,c=U*i,W=U*l,w=A.x,D=A.y,k=A.z;return new X((1-(C+a))*w,(B+W)*w,(r-c)*w,0,(B-W)*D,(1-(d+a))*D,(I+R)*D,0,(r+c)*k,(I-R)*k,(1-(d+C))*k,0,t.x,t.y,t.z,1)}toString(){return`[${this.buffer.join(", ")}]`}}class Vt extends Event{constructor(t){super("objectAdded"),this.object=t}}class Zt extends Event{constructor(t){super("objectRemoved"),this.object=t}}class mt extends Event{constructor(t){super("objectChanged"),this.object=t}}class st extends it{constructor(){super(),this.positionChanged=!1,this.rotationChanged=!1,this.scaleChanged=!1,this._position=new h,this._rotation=new f,this._scale=new h(1,1,1),this._transform=new X,this._changeEvent=new mt(this),this.update=()=>{},this.applyPosition=()=>{this.position=new h},this.applyRotation=()=>{this.rotation=new f},this.applyScale=()=>{this.scale=new h(1,1,1)},this.raiseChangeEvent=()=>{this.dispatchEvent(this._changeEvent)}}_updateMatrix(){this._transform=X.Compose(this._position,this._rotation,this._scale)}get position(){return this._position}set position(t){this._position.equals(t)||(this._position=t,this.positionChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get rotation(){return this._rotation}set rotation(t){this._rotation.equals(t)||(this._rotation=t,this.rotationChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get scale(){return this._scale}set scale(t){this._scale.equals(t)||(this._scale=t,this.scaleChanged=!0,this._updateMatrix(),this.dispatchEvent(this._changeEvent))}get forward(){let t=new h(0,0,1);return t=this.rotation.apply(t),t}get transform(){return this._transform}}class j{constructor(t=1,e=0,A=0,Q=0,s=1,n=0,U=0,F=0,i=1){this.buffer=[t,e,A,Q,s,n,U,F,i]}equals(t){if(this.buffer.length!==t.buffer.length)return!1;if(this.buffer===t.buffer)return!0;for(let e=0;e<this.buffer.length;e++)if(this.buffer[e]!==t.buffer[e])return!1;return!0}multiply(t){const e=this.buffer,A=t.buffer;return new j(A[0]*e[0]+A[3]*e[1]+A[6]*e[2],A[1]*e[0]+A[4]*e[1]+A[7]*e[2],A[2]*e[0]+A[5]*e[1]+A[8]*e[2],A[0]*e[3]+A[3]*e[4]+A[6]*e[5],A[1]*e[3]+A[4]*e[4]+A[7]*e[5],A[2]*e[3]+A[5]*e[4]+A[8]*e[5],A[0]*e[6]+A[3]*e[7]+A[6]*e[8],A[1]*e[6]+A[4]*e[7]+A[7]*e[8],A[2]*e[6]+A[5]*e[7]+A[8]*e[8])}clone(){const t=this.buffer;return new j(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}static Eye(t=1){return new j(t,0,0,0,t,0,0,0,t)}static Diagonal(t){return new j(t.x,0,0,0,t.y,0,0,0,t.z)}static RotationFromQuaternion(t){return new j(1-2*t.y*t.y-2*t.z*t.z,2*t.x*t.y-2*t.z*t.w,2*t.x*t.z+2*t.y*t.w,2*t.x*t.y+2*t.z*t.w,1-2*t.x*t.x-2*t.z*t.z,2*t.y*t.z-2*t.x*t.w,2*t.x*t.z-2*t.y*t.w,2*t.y*t.z+2*t.x*t.w,1-2*t.x*t.x-2*t.y*t.y)}static RotationFromEuler(t){const e=Math.cos(t.x),A=Math.sin(t.x),Q=Math.cos(t.y),s=Math.sin(t.y),n=Math.cos(t.z),U=Math.sin(t.z),F=[Q*n+s*A*U,-Q*U+s*A*n,s*e,e*U,e*n,-A,-s*n+Q*A*U,s*U+Q*A*n,Q*e];return new j(...F)}toString(){return`[${this.buffer.join(", ")}]`}}class K{constructor(t=0,e=null,A=null,Q=null,s=null){this.changed=!1,this.detached=!1,this._vertexCount=t,this._positions=e||new Float32Array(0),this._rotations=A||new Float32Array(0),this._scales=Q||new Float32Array(0),this._colors=s||new Uint8Array(0),this._selection=new Uint8Array(this.vertexCount),this.translate=n=>{for(let U=0;U<this.vertexCount;U++)this.positions[3*U+0]+=n.x,this.positions[3*U+1]+=n.y,this.positions[3*U+2]+=n.z;this.changed=!0},this.rotate=n=>{const U=j.RotationFromQuaternion(n).buffer;for(let F=0;F<this.vertexCount;F++){const i=this.positions[3*F+0],l=this.positions[3*F+1],d=this.positions[3*F+2];this.positions[3*F+0]=U[0]*i+U[1]*l+U[2]*d,this.positions[3*F+1]=U[3]*i+U[4]*l+U[5]*d,this.positions[3*F+2]=U[6]*i+U[7]*l+U[8]*d;const B=new f(this.rotations[4*F+1],this.rotations[4*F+2],this.rotations[4*F+3],this.rotations[4*F+0]),r=n.multiply(B);this.rotations[4*F+1]=r.x,this.rotations[4*F+2]=r.y,this.rotations[4*F+3]=r.z,this.rotations[4*F+0]=r.w}this.changed=!0},this.scale=n=>{for(let U=0;U<this.vertexCount;U++)this.positions[3*U+0]*=n.x,this.positions[3*U+1]*=n.y,this.positions[3*U+2]*=n.z,this.scales[3*U+0]*=n.x,this.scales[3*U+1]*=n.y,this.scales[3*U+2]*=n.z;this.changed=!0},this.serialize=()=>{const n=new Uint8Array(this.vertexCount*K.RowLength),U=new Float32Array(n.buffer),F=new Uint8Array(n.buffer);for(let i=0;i<this.vertexCount;i++)U[8*i+0]=this.positions[3*i+0],U[8*i+1]=this.positions[3*i+1],U[8*i+2]=this.positions[3*i+2],F[32*i+24+0]=this.colors[4*i+0],F[32*i+24+1]=this.colors[4*i+1],F[32*i+24+2]=this.colors[4*i+2],F[32*i+24+3]=this.colors[4*i+3],U[8*i+3+0]=this.scales[3*i+0],U[8*i+3+1]=this.scales[3*i+1],U[8*i+3+2]=this.scales[3*i+2],F[32*i+28+0]=this.rotations[4*i+0]*128+128&255,F[32*i+28+1]=this.rotations[4*i+1]*128+128&255,F[32*i+28+2]=this.rotations[4*i+2]*128+128&255,F[32*i+28+3]=this.rotations[4*i+3]*128+128&255;return n},this.reattach=(n,U,F,i,l)=>{console.assert(n.byteLength===this.vertexCount*3*4,`Expected ${this.vertexCount*3*4} bytes, got ${n.byteLength} bytes`),this._positions=new Float32Array(n),this._rotations=new Float32Array(U),this._scales=new Float32Array(F),this._colors=new Uint8Array(i),this._selection=new Uint8Array(l),this.detached=!1}}static{this.RowLength=32}static Deserialize(t){const e=t.length/K.RowLength,A=new Float32Array(3*e),Q=new Float32Array(4*e),s=new Float32Array(3*e),n=new Uint8Array(4*e),U=new Float32Array(t.buffer),F=new Uint8Array(t.buffer);for(let i=0;i<e;i++)A[3*i+0]=U[8*i+0],A[3*i+1]=U[8*i+1],A[3*i+2]=U[8*i+2],Q[4*i+0]=(F[32*i+28+0]-128)/128,Q[4*i+1]=(F[32*i+28+1]-128)/128,Q[4*i+2]=(F[32*i+28+2]-128)/128,Q[4*i+3]=(F[32*i+28+3]-128)/128,s[3*i+0]=U[8*i+3+0],s[3*i+1]=U[8*i+3+1],s[3*i+2]=U[8*i+3+2],n[4*i+0]=F[32*i+24+0],n[4*i+1]=F[32*i+24+1],n[4*i+2]=F[32*i+24+2],n[4*i+3]=F[32*i+24+3];return new K(e,A,Q,s,n)}get vertexCount(){return this._vertexCount}get positions(){return this._positions}get rotations(){return this._rotations}get scales(){return this._scales}get colors(){return this._colors}get selection(){return this._selection}clone(){return new K(this.vertexCount,new Float32Array(this.positions),new Float32Array(this.rotations),new Float32Array(this.scales),new Uint8Array(this.colors))}}class et{static{this.SH_C0=.28209479177387814}static SplatToPLY(t,e){let A=`ply
2
  format binary_little_endian 1.0
3
  `;A+=`element vertex ${e}
4
  `;const Q=["x","y","z","nx","ny","nz","f_dc_0","f_dc_1","f_dc_2"];for(let a=0;a<45;a++)Q.push(`f_rest_${a}`);Q.push("opacity"),Q.push("scale_0"),Q.push("scale_1"),Q.push("scale_2"),Q.push("rot_0"),Q.push("rot_1"),Q.push("rot_2"),Q.push("rot_3");for(const a of Q)A+=`property float ${a}
assets/{Check-2f8HlfSn.js β†’ Check-DjGw_9dO.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as t,f as e}from"./index-DydPgVMC.js";var s=e('<svg width="100%" height="100%" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M5 13L9 17L19 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function a(o){var r=s();t(o,r)}export{a as C};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as t,f as e}from"./index-BeNBoC9J.js";var s=e('<svg width="100%" height="100%" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M5 13L9 17L19 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function a(o){var r=s();t(o,r)}export{a as C};
assets/{Checkbox-Bh_yH8eu.js β†’ Checkbox-DdDaw1pY.js} RENAMED
@@ -1 +1 @@
1
- import{p as l,m as M,i as O,b as Q,v as R}from"./i18n-CPHyzK9b.js";import{M as S,aa as U,ab as X,ac as Z,Z as r,$ as j,t as b,U as _,a as f,O as q,Q as h,S as z,R as m,a2 as A,T as v,X as B}from"./index-DydPgVMC.js";import{a as D}from"./input-BtIxlP_B.js";import{b as F}from"./universal-C9tCO36V.js";var G=m('<span class="label-text svelte-1fynlvy"> </span>'),H=m('<label><input type="checkbox" name="test" data-testid="checkbox" class="svelte-1fynlvy"/> <!></label>');function N(k,a){S(a,!0);let y=l(a,"label",3,"Checkbox"),t=l(a,"value",15),i=l(a,"indeterminate",7,!1),x=l(a,"interactive",3,!0),p=l(a,"show_label",3,!0),d=A(()=>!x()),o=U(X(t()));Z(()=>{r(o)!==t()&&(j(o,t(),!0),a.on_change?.(M(t())))});async function g(e){e.key==="Enter"&&(t(!t()),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}))}async function T(e){t(e.currentTarget.checked),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}),a.on_input?.()}var n=H();let u;var s=h(n);R(s);var w=z(s,2);{var C=e=>{var c=G(),E=h(c,!0);v(c),b(()=>B(E,y())),f(e,c)};O(w,e=>{p()&&e(C)})}v(n),b(()=>{u=Q(n,1,"checkbox-container svelte-1fynlvy",null,u,{disabled:r(d)}),s.disabled=r(d)}),D(s,t),F("indeterminate","change",s,i,i),_("keydown",s,g),_("input",s,T),f(k,n),q()}export{N as C};
 
1
+ import{p as l,m as M,i as O,b as Q,v as R}from"./i18n-DtG3MAQ1.js";import{M as S,aa as U,ab as X,ac as Z,Z as r,$ as j,t as b,U as _,a as f,O as q,Q as h,S as z,R as m,a2 as A,T as v,X as B}from"./index-BeNBoC9J.js";import{a as D}from"./input-BLFxNjIx.js";import{b as F}from"./universal-DqSjxxHG.js";var G=m('<span class="label-text svelte-1fynlvy"> </span>'),H=m('<label><input type="checkbox" name="test" data-testid="checkbox" class="svelte-1fynlvy"/> <!></label>');function N(k,a){S(a,!0);let y=l(a,"label",3,"Checkbox"),t=l(a,"value",15),i=l(a,"indeterminate",7,!1),x=l(a,"interactive",3,!0),p=l(a,"show_label",3,!0),d=A(()=>!x()),o=U(X(t()));Z(()=>{r(o)!==t()&&(j(o,t(),!0),a.on_change?.(M(t())))});async function g(e){e.key==="Enter"&&(t(!t()),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}))}async function T(e){t(e.currentTarget.checked),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}),a.on_input?.()}var n=H();let u;var s=h(n);R(s);var w=z(s,2);{var C=e=>{var c=G(),E=h(c,!0);v(c),b(()=>B(E,y())),f(e,c)};O(w,e=>{p()&&e(C)})}v(n),b(()=>{u=Q(n,1,"checkbox-container svelte-1fynlvy",null,u,{disabled:r(d)}),s.disabled=r(d)}),D(s,t),F("indeterminate","change",s,i,i),_("keydown",s,g),_("input",s,T),f(k,n),q()}export{N as C};
assets/{Clear-BR8cTgGu.js β†’ Clear-BiKSVifk.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as o,f as t}from"./index-DydPgVMC.js";var l=t('<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" stroke="currentColor" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;"><g transform="matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"><path d="M18,6L6.087,17.913" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></g><path d="M4.364,4.364L19.636,19.636" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></svg>');function i(e){var r=l();o(e,r)}export{i as C};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as o,f as t}from"./index-BeNBoC9J.js";var l=t('<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" stroke="currentColor" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;"><g transform="matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"><path d="M18,6L6.087,17.913" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></g><path d="M4.364,4.364L19.636,19.636" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></svg>');function i(e){var r=l();o(e,r)}export{i as C};
assets/{Code-D1inKIZZ.js β†’ Code-B0D7Zxt1.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as r,f as t}from"./index-DydPgVMC.js";var a=t('<svg width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7zm11.42 9.484L17.64 6l1.932.517L14.352 26z"></path></svg>');function s(l){var o=a();r(l,o)}export{s as C};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as r,f as t}from"./index-BeNBoC9J.js";var a=t('<svg width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7zm11.42 9.484L17.64 6l1.932.517L14.352 26z"></path></svg>');function s(l){var o=a();r(l,o)}export{s as C};
assets/{Code-Bhm2YgEI.js β†’ Code-D0Kw4ylG.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{Copy-B3jzejpA.js β†’ Copy-eBznHIlR.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a,f as t}from"./index-DydPgVMC.js";var h=t('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 33 33" color="currentColor" aria-hidden="true" width="100%" height="100%"><path fill="currentColor" d="M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"></path><path fill="currentColor" d="M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"></path></svg>');function i(r){var o=h();a(r,o)}export{i as C};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a,f as t}from"./index-BeNBoC9J.js";var h=t('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 33 33" color="currentColor" aria-hidden="true" width="100%" height="100%"><path fill="currentColor" d="M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"></path><path fill="currentColor" d="M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"></path></svg>');function i(r){var o=h();a(r,o)}export{i as C};
assets/{Download-DWSaBiea.js β†’ Download-0gCL6VXM.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a,f as r}from"./index-DydPgVMC.js";var t=r('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>');function h(o){var v=t();a(o,v)}export{h as D};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a,f as r}from"./index-BeNBoC9J.js";var t=r('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>');function h(o){var v=t();a(o,v)}export{h as D};
assets/{DownloadLink-DM2QmhDx.js β†’ DownloadLink-Dk6GrGSA.js} RENAMED
@@ -1 +1 @@
1
- import{l as s,p as r,e as h,c as w,s as _,S as m}from"./i18n-CPHyzK9b.js";import{M as k,a1 as g,U as y,a as b,O as $,P as d,v as D,Q as S,R as x,Z as E,a2 as L,T as P}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";var T=x("<a><!></a>");function Q(l,e){const i=s(e,["children","$$slots","$$events","$$legacy"]),c=s(i,["href","download"]);k(e,!1);let o=r(e,"href",12,void 0),n=r(e,"download",12);const f=g();var p={get href(){return o()},set href(t){o(t),d()},get download(){return n()},set download(t){n(t),d()}};h();var a=T(),u=L(()=>f.bind(null,"click"));w(a,()=>({class:"download-link","data-testid":"download-link",href:o(),target:D(()=>typeof window<"u"&&window.__is_colab__?"_blank":null),rel:"noopener noreferrer",download:n(),...c,[m]:{position:"relative"}}),void 0,void 0,void 0,"svelte-m62ue3");var v=S(a);return _(v,e,"default",{}),P(a),y("click",a,function(...t){E(u)?.apply(this,t)}),b(l,a),$(p)}export{Q as D};
 
1
+ import{l as s,p as r,e as h,c as w,s as _,S as m}from"./i18n-DtG3MAQ1.js";import{M as k,a1 as g,U as y,a as b,O as $,P as d,v as D,Q as S,R as x,Z as E,a2 as L,T as P}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";var T=x("<a><!></a>");function Q(l,e){const i=s(e,["children","$$slots","$$events","$$legacy"]),c=s(i,["href","download"]);k(e,!1);let o=r(e,"href",12,void 0),n=r(e,"download",12);const f=g();var p={get href(){return o()},set href(t){o(t),d()},get download(){return n()},set download(t){n(t),d()}};h();var a=T(),u=L(()=>f.bind(null,"click"));w(a,()=>({class:"download-link","data-testid":"download-link",href:o(),target:D(()=>typeof window<"u"&&window.__is_colab__?"_blank":null),rel:"noopener noreferrer",download:n(),...c,[m]:{position:"relative"}}),void 0,void 0,void 0,"svelte-m62ue3");var v=S(a);return _(v,e,"default",{}),P(a),y("click",a,function(...t){E(u)?.apply(this,t)}),b(l,a),$(p)}export{Q as D};
assets/{Dropdown-CVRP4i7q.js β†’ Dropdown-D5-31HWl.js} RENAMED
@@ -1 +1 @@
1
- import{p as s,d as ue,i as de,q as xe,b as K,a as O,f as _e,w as Ae,v as ze}from"./i18n-CPHyzK9b.js";import{M as be,ac as ae,Z as e,$ as t,U as oe,N as De,a as Q,O as he,aa as v,au as Oe,S as P,R as V,ah as we,Q as M,T as S,t as ie,X as ge,av as Te,ab as ve,a4 as Ee,a2 as J,G as Be,ar as Ce,a5 as Ue}from"./index-DydPgVMC.js";import{b as Ie}from"./input-BtIxlP_B.js";import{t as Ne,a as Re}from"./StreamingBar.svelte_svelte_type_style_lang-BMYtrUWr.js";import{b as Se}from"./window-D5YXrKnH.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";import{B as qe}from"./BlockTitle-DNiCHWOR.js";import{D as He}from"./DropdownArrow-Cq3QAKSv.js";import{I as Le}from"./IconButtonWrapper-PnNNNvqI.js";var Ge=V('<li data-testid="dropdown-option" role="option"><span>βœ“</span> </li>'),Me=V('<ul class="options svelte-1auz4p0" role="listbox"></ul>'),Pe=V('<div class="reference"></div> <!>',1);function Qe(p,l){be(l,!0);let u=s(l,"show_options",3,!1),B=s(l,"disabled",3,!1),k=s(l,"selected_indices",19,()=>[]),W=s(l,"active_index",3,null),m=s(l,"remember_scroll",3,!1),b=s(l,"offset_from_top",3,0),Y=s(l,"from_top",3,!1),q=s(l,"listbox_id",3,void 0),C=v(0),T=v(0),H=v(0),U=v(0),I,h,N=v(null),c=v(null),A=v(0),E=v(0),a=0;function o(){const{top:w,bottom:_}=I.getBoundingClientRect();Y()?t(C,b()):t(C,w,!0),t(T,e(E)-_)}let z=null;function X(){u()&&(z!==null&&clearTimeout(z),z=setTimeout(()=>{o(),z=null},10))}function re(){h?.scrollTo?.(0,a)}ae(()=>{if(u()&&I){if(m())re();else if(h&&k().length>0){let _=h.querySelectorAll("li");for(const R of Array.from(_))if(R.getAttribute("data-index")===k()[0].toString()){h?.scrollTo?.(0,R.offsetTop);break}}o();const w=I.parentElement?.getBoundingClientRect();t(H,w?.height||0,!0),t(U,w?.width||0,!0),l.onload?.()}e(T)>e(C)||Y()?(t(N,`${e(C)}px`),t(A,e(T),!0),t(c,null)):(t(c,`${e(T)+e(H)}px`),t(A,e(C)-e(H)),t(N,null))});var L=Pe();oe("scroll",Oe,X);var f=De(L);ue(f,w=>I=w,()=>I);var i=P(f,2);{var se=w=>{var _=Me();_.__mousedown=D=>{D.preventDefault(),l.onchange?.(D.target.dataset.index)};let R;xe(_,21,()=>l.filtered_indices,Ae,(D,y)=>{var g=Ge();let Z,j;var $=M(g);let F;var ee=P($);S(g),ie((G,te,le)=>{Z=K(g,1,"item svelte-1auz4p0",null,Z,G),O(g,"data-index",e(y)),O(g,"id",q()?`${q()}-option-${e(y)}`:void 0),O(g,"aria-label",l.choices[e(y)][0]),O(g,"aria-selected",te),j=_e(g,"",j,{width:e(U)+"px"}),F=K($,1,"inner-item svelte-1auz4p0",null,F,le),ge(ee,` ${l.choices[e(y)][0]??""}`)},[()=>({selected:k().includes(e(y)),active:e(y)===W(),"bg-gray-100":e(y)===W(),"dark:bg-gray-600":e(y)===W()}),()=>k().includes(e(y)),()=>({hide:!k().includes(e(y))})]),Q(D,g)}),S(_),ue(_,D=>h=D,()=>h),ie(()=>{O(_,"id",q()),R=_e(_,"",R,{top:e(N),bottom:e(c),"max-height":`calc(${e(A)}px - var(--window-padding))`,width:e(U)+"px"})}),oe("scroll",_,D=>a=D.currentTarget.scrollTop),Ne(3,_,()=>Re,()=>({duration:200,y:5})),Q(w,_)};de(i,w=>{u()&&!B()&&w(se)})}Se("innerHeight",w=>t(E,w,!0)),Q(p,L),he()}we(["mousedown"]);function We(p,l){return(p%l+l)%l}function me(p,l){return p.reduce((u,B,k)=>((!l||B[0].toLowerCase().includes(l.toLowerCase()))&&u.push(k),u),[])}function Xe(p,l,u){if(p.key==="Escape")return[!1,l];if((p.key==="ArrowDown"||p.key==="ArrowUp")&&u.length>0)if(l===null)l=p.key==="ArrowDown"?u[0]:u[u.length-1];else{const B=u.indexOf(l),k=p.key==="ArrowUp"?-1:1;l=u[We(B+k,u.length)]}return[!0,l]}var Ze=V('<div class="icon-wrap svelte-zf372m"><!></div>'),je=V('<div><!> <!> <div class="wrap svelte-zf372m"><div><div class="secondary-wrap svelte-zf372m"><input role="combobox" autocomplete="off"/> <!></div></div> <!></div></div>');function nt(p,l){const u=Te();be(l,!0);const B=typeof window<"u";let k=s(l,"label",3,"Dropdown"),W=s(l,"info",3,void 0),m=s(l,"value",15),b=s(l,"choices",19,()=>[]),Y=s(l,"interactive",3,!0),q=s(l,"show_label",3,!0),C=s(l,"container",3,!0),T=s(l,"allow_custom_value",3,!1),H=s(l,"filterable",3,!0),U=s(l,"buttons",3,null),I=s(l,"oncustom_button_click",3,null),h;const N=`${u}-options`;let c=J(()=>B&&h===document.activeElement),A=J(()=>b().map(n=>n[0])),E=J(()=>b().map(n=>n[1])),a=v(""),o=v(null),z=e(a),X=v(!1);ae(()=>{const n=m(),r=e(E),x=e(A);e(X)||(n==null||Array.isArray(n)&&n.length===0?(t(a,""),t(o,null)):r.includes(n)?(t(a,x[r.indexOf(n)],!0),t(o,r.indexOf(n),!0)):T()?(t(a,n,!0),t(o,null)):(t(a,""),t(o,null)),z=e(a))});let re=v(!1),L=J(()=>!Y()),f=v(ve(b().map((n,r)=>r))),i=v(null),se=J(()=>e(o)===null?[]:[e(o)]);ae(()=>{b(),t(f,b().map((n,r)=>r),!0)});function w(n){if(t(o,parseInt(n),!0),isNaN(e(o))){t(o,null);return}let[r,x]=b()[e(o)];t(a,r,!0),z=e(a),m(x),l.on_select?.({index:e(o),value:e(E)[e(o)],selected:!0}),t(c,!1),t(i,null),l.on_input?.(),h.blur()}function _(n){t(X,!0),t(f,b().map((r,x)=>x),!0),t(i,e(o),!0),t(c,!0),l.on_focus?.()}function R(){T()?e(a)!==z&&(e(A).includes(e(a))?(t(o,e(A).indexOf(e(a)),!0),m(e(E)[e(o)])):(m(e(a)),t(o,null))):t(a,e(A)[e(E).indexOf(m())],!0),t(c,!1),t(i,null),t(f,b().map((n,r)=>r),!0),t(X,!1),l.on_blur?.(),l.on_input?.()}async function D(n){await Be();const r=n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Enter"||n.key==="Escape",x=e(a)!==z;r?(t(f,x?me(b(),e(a)):b().map((fe,ne)=>ne),!0),e(i)!==null&&!e(f).includes(e(i))&&t(i,e(f).length>0?e(f)[0]:null,!0)):(t(f,me(b(),e(a)),!0),t(i,e(f).length>0?e(f)[0]:null,!0)),(fe=>{var ne=Ce(fe,2);t(c,ne[0]),t(i,ne[1],!0)})(Xe(n,e(i),e(f))),n.key==="Enter"&&(z=e(a),e(i)!==null?(t(o,e(i),!0),m(e(E)[e(i)]),t(c,!1),h.blur(),t(i,null)):e(A).includes(e(a))?(t(o,e(A).indexOf(e(a)),!0),m(e(E)[e(o)]),t(c,!1),t(i,null),h.blur()):T()&&(m(e(a)),t(o,null),t(c,!1),t(i,null),h.blur()))}let y=v(ve(m()));ae(()=>{e(y)!==m()&&(t(y,m(),!0),l.on_change?.(m()))});var g=je();let Z;var j=M(g);{var $=n=>{Le(n,{get buttons(){return U()},get on_custom_button_click(){return I()}})};de(j,n=>{q()&&U()&&U().length>0&&n($)})}var F=P(j,2);qe(F,{get show_label(){return q()},get info(){return W()},children:(n,r)=>{Ue();var x=Ee();ie(()=>ge(x,k())),Q(n,x)},$$slots:{default:!0}});var ee=P(F,2),G=M(ee);let te;var le=M(G),d=M(le);ze(d);let ce;d.__keydown=D,d.__keyup=n=>{l.on_key_up?.({key:n.key,input_value:e(a)})},ue(d,n=>h=n,()=>h);var pe=P(d,2);{var ye=n=>{var r=Ze(),x=M(r);He(x),S(r),Q(n,r)};de(pe,n=>{e(L)||n(ye)})}S(le),S(G);var ke=P(G,2);Qe(ke,{get show_options(){return e(c)},get choices(){return b()},get filtered_indices(){return e(f)},get disabled(){return e(L)},get selected_indices(){return e(se)},get active_index(){return e(i)},get listbox_id(){return N},onchange:w,onload:()=>t(re,!0)}),S(ee),S(g),ie(n=>{Z=K(g,1,"svelte-zf372m",null,Z,{container:C()}),te=K(G,1,"wrap-inner svelte-zf372m",null,te,{show_options:e(c)}),O(d,"aria-controls",N),O(d,"aria-expanded",e(c)),O(d,"aria-activedescendant",e(c)&&e(i)!==null?`${N}-option-${e(i)}`:void 0),O(d,"aria-autocomplete",H()?"list":"none"),O(d,"aria-label",k()),ce=K(d,1,"border-none svelte-zf372m",null,ce,n),d.disabled=e(L),d.readOnly=!H()},[()=>({subdued:!e(A).includes(e(a))&&!T()})]),oe("blur",d,R),oe("focus",d,_),Ie(d,()=>e(a),n=>t(a,n)),Q(p,g),he()}we(["keydown","keyup"]);export{Qe as D,me as a,nt as b,Xe as h};
 
1
+ import{p as s,d as ue,i as de,q as xe,b as K,a as O,f as _e,w as Ae,v as ze}from"./i18n-DtG3MAQ1.js";import{M as be,ac as ae,Z as e,$ as t,U as oe,N as De,a as Q,O as he,aa as v,au as Oe,S as P,R as V,ah as we,Q as M,T as S,t as ie,X as ge,av as Te,ab as ve,a4 as Ee,a2 as J,G as Be,ar as Ce,a5 as Ue}from"./index-BeNBoC9J.js";import{b as Ie}from"./input-BLFxNjIx.js";import{t as Ne,a as Re}from"./StreamingBar.svelte_svelte_type_style_lang-BUk4GIbA.js";import{b as Se}from"./window-ChwzOWAi.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";import{B as qe}from"./BlockTitle-B6Pgijwb.js";import{D as He}from"./DropdownArrow-C0w6FgSo.js";import{I as Le}from"./IconButtonWrapper-Ce5bzAyh.js";var Ge=V('<li data-testid="dropdown-option" role="option"><span>βœ“</span> </li>'),Me=V('<ul class="options svelte-1auz4p0" role="listbox"></ul>'),Pe=V('<div class="reference"></div> <!>',1);function Qe(p,l){be(l,!0);let u=s(l,"show_options",3,!1),B=s(l,"disabled",3,!1),k=s(l,"selected_indices",19,()=>[]),W=s(l,"active_index",3,null),m=s(l,"remember_scroll",3,!1),b=s(l,"offset_from_top",3,0),Y=s(l,"from_top",3,!1),q=s(l,"listbox_id",3,void 0),C=v(0),T=v(0),H=v(0),U=v(0),I,h,N=v(null),c=v(null),A=v(0),E=v(0),a=0;function o(){const{top:w,bottom:_}=I.getBoundingClientRect();Y()?t(C,b()):t(C,w,!0),t(T,e(E)-_)}let z=null;function X(){u()&&(z!==null&&clearTimeout(z),z=setTimeout(()=>{o(),z=null},10))}function re(){h?.scrollTo?.(0,a)}ae(()=>{if(u()&&I){if(m())re();else if(h&&k().length>0){let _=h.querySelectorAll("li");for(const R of Array.from(_))if(R.getAttribute("data-index")===k()[0].toString()){h?.scrollTo?.(0,R.offsetTop);break}}o();const w=I.parentElement?.getBoundingClientRect();t(H,w?.height||0,!0),t(U,w?.width||0,!0),l.onload?.()}e(T)>e(C)||Y()?(t(N,`${e(C)}px`),t(A,e(T),!0),t(c,null)):(t(c,`${e(T)+e(H)}px`),t(A,e(C)-e(H)),t(N,null))});var L=Pe();oe("scroll",Oe,X);var f=De(L);ue(f,w=>I=w,()=>I);var i=P(f,2);{var se=w=>{var _=Me();_.__mousedown=D=>{D.preventDefault(),l.onchange?.(D.target.dataset.index)};let R;xe(_,21,()=>l.filtered_indices,Ae,(D,y)=>{var g=Ge();let Z,j;var $=M(g);let F;var ee=P($);S(g),ie((G,te,le)=>{Z=K(g,1,"item svelte-1auz4p0",null,Z,G),O(g,"data-index",e(y)),O(g,"id",q()?`${q()}-option-${e(y)}`:void 0),O(g,"aria-label",l.choices[e(y)][0]),O(g,"aria-selected",te),j=_e(g,"",j,{width:e(U)+"px"}),F=K($,1,"inner-item svelte-1auz4p0",null,F,le),ge(ee,` ${l.choices[e(y)][0]??""}`)},[()=>({selected:k().includes(e(y)),active:e(y)===W(),"bg-gray-100":e(y)===W(),"dark:bg-gray-600":e(y)===W()}),()=>k().includes(e(y)),()=>({hide:!k().includes(e(y))})]),Q(D,g)}),S(_),ue(_,D=>h=D,()=>h),ie(()=>{O(_,"id",q()),R=_e(_,"",R,{top:e(N),bottom:e(c),"max-height":`calc(${e(A)}px - var(--window-padding))`,width:e(U)+"px"})}),oe("scroll",_,D=>a=D.currentTarget.scrollTop),Ne(3,_,()=>Re,()=>({duration:200,y:5})),Q(w,_)};de(i,w=>{u()&&!B()&&w(se)})}Se("innerHeight",w=>t(E,w,!0)),Q(p,L),he()}we(["mousedown"]);function We(p,l){return(p%l+l)%l}function me(p,l){return p.reduce((u,B,k)=>((!l||B[0].toLowerCase().includes(l.toLowerCase()))&&u.push(k),u),[])}function Xe(p,l,u){if(p.key==="Escape")return[!1,l];if((p.key==="ArrowDown"||p.key==="ArrowUp")&&u.length>0)if(l===null)l=p.key==="ArrowDown"?u[0]:u[u.length-1];else{const B=u.indexOf(l),k=p.key==="ArrowUp"?-1:1;l=u[We(B+k,u.length)]}return[!0,l]}var Ze=V('<div class="icon-wrap svelte-zf372m"><!></div>'),je=V('<div><!> <!> <div class="wrap svelte-zf372m"><div><div class="secondary-wrap svelte-zf372m"><input role="combobox" autocomplete="off"/> <!></div></div> <!></div></div>');function nt(p,l){const u=Te();be(l,!0);const B=typeof window<"u";let k=s(l,"label",3,"Dropdown"),W=s(l,"info",3,void 0),m=s(l,"value",15),b=s(l,"choices",19,()=>[]),Y=s(l,"interactive",3,!0),q=s(l,"show_label",3,!0),C=s(l,"container",3,!0),T=s(l,"allow_custom_value",3,!1),H=s(l,"filterable",3,!0),U=s(l,"buttons",3,null),I=s(l,"oncustom_button_click",3,null),h;const N=`${u}-options`;let c=J(()=>B&&h===document.activeElement),A=J(()=>b().map(n=>n[0])),E=J(()=>b().map(n=>n[1])),a=v(""),o=v(null),z=e(a),X=v(!1);ae(()=>{const n=m(),r=e(E),x=e(A);e(X)||(n==null||Array.isArray(n)&&n.length===0?(t(a,""),t(o,null)):r.includes(n)?(t(a,x[r.indexOf(n)],!0),t(o,r.indexOf(n),!0)):T()?(t(a,n,!0),t(o,null)):(t(a,""),t(o,null)),z=e(a))});let re=v(!1),L=J(()=>!Y()),f=v(ve(b().map((n,r)=>r))),i=v(null),se=J(()=>e(o)===null?[]:[e(o)]);ae(()=>{b(),t(f,b().map((n,r)=>r),!0)});function w(n){if(t(o,parseInt(n),!0),isNaN(e(o))){t(o,null);return}let[r,x]=b()[e(o)];t(a,r,!0),z=e(a),m(x),l.on_select?.({index:e(o),value:e(E)[e(o)],selected:!0}),t(c,!1),t(i,null),l.on_input?.(),h.blur()}function _(n){t(X,!0),t(f,b().map((r,x)=>x),!0),t(i,e(o),!0),t(c,!0),l.on_focus?.()}function R(){T()?e(a)!==z&&(e(A).includes(e(a))?(t(o,e(A).indexOf(e(a)),!0),m(e(E)[e(o)])):(m(e(a)),t(o,null))):t(a,e(A)[e(E).indexOf(m())],!0),t(c,!1),t(i,null),t(f,b().map((n,r)=>r),!0),t(X,!1),l.on_blur?.(),l.on_input?.()}async function D(n){await Be();const r=n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Enter"||n.key==="Escape",x=e(a)!==z;r?(t(f,x?me(b(),e(a)):b().map((fe,ne)=>ne),!0),e(i)!==null&&!e(f).includes(e(i))&&t(i,e(f).length>0?e(f)[0]:null,!0)):(t(f,me(b(),e(a)),!0),t(i,e(f).length>0?e(f)[0]:null,!0)),(fe=>{var ne=Ce(fe,2);t(c,ne[0]),t(i,ne[1],!0)})(Xe(n,e(i),e(f))),n.key==="Enter"&&(z=e(a),e(i)!==null?(t(o,e(i),!0),m(e(E)[e(i)]),t(c,!1),h.blur(),t(i,null)):e(A).includes(e(a))?(t(o,e(A).indexOf(e(a)),!0),m(e(E)[e(o)]),t(c,!1),t(i,null),h.blur()):T()&&(m(e(a)),t(o,null),t(c,!1),t(i,null),h.blur()))}let y=v(ve(m()));ae(()=>{e(y)!==m()&&(t(y,m(),!0),l.on_change?.(m()))});var g=je();let Z;var j=M(g);{var $=n=>{Le(n,{get buttons(){return U()},get on_custom_button_click(){return I()}})};de(j,n=>{q()&&U()&&U().length>0&&n($)})}var F=P(j,2);qe(F,{get show_label(){return q()},get info(){return W()},children:(n,r)=>{Ue();var x=Ee();ie(()=>ge(x,k())),Q(n,x)},$$slots:{default:!0}});var ee=P(F,2),G=M(ee);let te;var le=M(G),d=M(le);ze(d);let ce;d.__keydown=D,d.__keyup=n=>{l.on_key_up?.({key:n.key,input_value:e(a)})},ue(d,n=>h=n,()=>h);var pe=P(d,2);{var ye=n=>{var r=Ze(),x=M(r);He(x),S(r),Q(n,r)};de(pe,n=>{e(L)||n(ye)})}S(le),S(G);var ke=P(G,2);Qe(ke,{get show_options(){return e(c)},get choices(){return b()},get filtered_indices(){return e(f)},get disabled(){return e(L)},get selected_indices(){return e(se)},get active_index(){return e(i)},get listbox_id(){return N},onchange:w,onload:()=>t(re,!0)}),S(ee),S(g),ie(n=>{Z=K(g,1,"svelte-zf372m",null,Z,{container:C()}),te=K(G,1,"wrap-inner svelte-zf372m",null,te,{show_options:e(c)}),O(d,"aria-controls",N),O(d,"aria-expanded",e(c)),O(d,"aria-activedescendant",e(c)&&e(i)!==null?`${N}-option-${e(i)}`:void 0),O(d,"aria-autocomplete",H()?"list":"none"),O(d,"aria-label",k()),ce=K(d,1,"border-none svelte-zf372m",null,ce,n),d.disabled=e(L),d.readOnly=!H()},[()=>({subdued:!e(A).includes(e(a))&&!T()})]),oe("blur",d,R),oe("focus",d,_),Ie(d,()=>e(a),n=>t(a,n)),Q(p,g),he()}we(["keydown","keyup"]);export{Qe as D,me as a,nt as b,Xe as h};
assets/{DropdownArrow-Cq3QAKSv.js β†’ DropdownArrow-C0w6FgSo.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as s,f as t}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";var a=t('<svg class="dropdown-arrow svelte-1is64h1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 18 18"><path d="M5 8l4 4 4-4z"></path></svg>');function i(o){var r=a();s(o,r)}export{i as D};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as s,f as t}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";var a=t('<svg class="dropdown-arrow svelte-1is64h1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 18 18"><path d="M5 8l4 4 4-4z"></path></svg>');function i(o){var r=a();s(o,r)}export{i as D};
assets/{EXT_lights_area-CrwQ8aUg.js β†’ EXT_lights_area-DR-enfJq.js} RENAMED
@@ -1 +1 @@
1
- import{d as L,aI as g,T as u,L as w,V as n,an as R,_ as b,s as E,R as D,C as y,bh as S,ao as B,aG as z,aH as F}from"./index-GY9JDBGV.js";import{R as x}from"./rawTexture-BDsvmix4.js";import{ArrayItem as A,GLTFLoader as C}from"./glTFLoader-CdfQ_yvy.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";async function M(){const i=new Uint16Array(16384),t=new Uint16Array(4096*4),s=await L.LoadFileAsync(L.GetAssetUrl("https://assets.babylonjs.com/core/areaLights/areaLightsLTC.bin")),e=new Uint16Array(s),a=e.length/8;for(let r=0;r<a;r++)i[r*4]=e[r*8],i[r*4+1]=e[r*8+1],i[r*4+2]=e[r*8+2],i[r*4+3]=e[r*8+3],t[r*4]=e[r*8+4],t[r*4+1]=e[r*8+5],t[r*4+2]=e[r*8+6],t[r*4+3]=e[r*8+7];return[i,t]}function P(i){const t=i.useDelayedTextureLoading;i.useDelayedTextureLoading=!1;const s=i._blockEntityCollection;i._blockEntityCollection=!1,i._ltcTextures={LTC1:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0),LTC2:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0)},i._blockEntityCollection=s,i._ltcTextures.LTC1.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC1.wrapV=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapV=u.CLAMP_ADDRESSMODE,i.useDelayedTextureLoading=t,M().then(e=>{i._ltcTextures&&((i._ltcTextures?.LTC1).update(e[0]),(i._ltcTextures?.LTC2).update(e[1]),i.onDisposeObservable.addOnce(()=>{i._ltcTextures?.LTC1.dispose(),i._ltcTextures?.LTC2.dispose()}))}).catch(e=>{w.Error(`Area Light fail to get LTC textures data. Error: ${e}`)})}class U extends g{constructor(t,s,e,a){super(t,e,a),this.position=s,this._scene._ltcTextures||P(this._scene)}transferTexturesToEffect(t){return this._scene._ltcTextures&&(t.setTexture("areaLightsLTC1Sampler",this._scene._ltcTextures.LTC1),t.setTexture("areaLightsLTC2Sampler",this._scene._ltcTextures.LTC2)),this}prepareLightSpecificDefines(t,s){t["AREALIGHT"+s]=!0,t.AREALIGHTUSED=!0}_isReady(){return this._scene._ltcTextures?this._scene._ltcTextures.LTC1.isReady()&&this._scene._ltcTextures.LTC2.isReady():!1}}R.AddNodeConstructor("Light_Type_4",(i,t)=>()=>new l(i,n.Zero(),1,1,t));class l extends U{get width(){return this._width.x}set width(t){this._width.x=t}get height(){return this._height.y}set height(t){this._height.y=t}constructor(t,s,e,a,r,f){super(t,s,r,f),this._width=new n(e,0,0),this._height=new n(0,a,0),this._pointTransformedPosition=n.Zero(),this._pointTransformedWidth=n.Zero(),this._pointTransformedHeight=n.Zero()}getClassName(){return"RectAreaLight"}getTypeID(){return g.LIGHTTYPEID_RECT_AREALIGHT}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightWidth",4),this._uniformBuffer.addUniform("vLightHeight",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeTransformedInformation(){return this.parent&&this.parent.getWorldMatrix?(n.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this._pointTransformedPosition),n.TransformNormalToRef(this._width,this.parent.getWorldMatrix(),this._pointTransformedWidth),n.TransformNormalToRef(this._height,this.parent.getWorldMatrix(),this._pointTransformedHeight),!0):!1}transferToEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._pointTransformedWidth.x/2,this._pointTransformedWidth.y/2,this._pointTransformedWidth.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._pointTransformedHeight.x/2,this._pointTransformedHeight.y/2,this._pointTransformedHeight.z/2,0,s)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-e.x,this.position.y-e.y,this.position.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._width.x/2,this._width.y/2,this._width.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._height.x/2,this._height.y/2,this._height.z/2,0,s)),this}transferToNodeMaterialEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?t.setFloat3(s,this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z):t.setFloat3(s,this.position.x-e.x,this.position.y-e.y,this.position.z-e.z),this}}b([E()],l.prototype,"width",null);b([E()],l.prototype,"height",null);D("BABYLON.RectAreaLight",l);const c="EXT_lights_area";class v{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const s=t[this.name];this._lights=s.lights,A.Assign(this._lights)}}loadNodeAsync(t,s,e){return C.LoadExtensionAsync(t,s,this.name,async(a,r)=>(this._loader._allMaterialsDirtyRequired=!0,await this._loader.loadNodeAsync(t,s,f=>{let h;const o=A.Get(a,this._lights,r.light),T=o.name||f.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer;const d=o.size!==void 0?o.size:1;switch(o.type){case"rect":{const _=o.rect?.aspect!==void 0?o.rect.aspect*d:d,m=d;h=new l(T,n.Zero(),_,m,this._loader.babylonScene);break}case"disk":{const _=Math.sqrt(d*d*.25*Math.PI);h=new l(T,n.Zero(),_,_,this._loader.babylonScene);break}default:throw this._loader.babylonScene._blockEntityCollection=!1,new Error(`${a}: Invalid area light type (${o.type})`)}h._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,o._babylonLight=h,h.falloffType=g.FALLOFF_GLTF,h.diffuse=o.color?y.FromArray(o.color):y.White(),h.intensity=o.intensity==null?1:o.intensity;const p=new S(`${T}_orientation`,this._loader.babylonScene);p.rotationQuaternion=B.RotationAxis(n.Up(),Math.PI),p.parent=f,h.parent=p,this._loader._babylonLights.push(h),C.AddPointerMetadata(h,a),e(f)})))}}z(c);F(c,!0,i=>new v(i));export{v as EXT_lights_area};
 
1
+ import{d as L,aI as g,T as u,L as w,V as n,an as R,_ as b,s as E,R as D,C as y,bh as S,ao as B,aG as z,aH as F}from"./index-DmfQKmJL.js";import{R as x}from"./rawTexture-3EXxZD4a.js";import{ArrayItem as A,GLTFLoader as C}from"./glTFLoader-BBmdTKVx.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";async function M(){const i=new Uint16Array(16384),t=new Uint16Array(4096*4),s=await L.LoadFileAsync(L.GetAssetUrl("https://assets.babylonjs.com/core/areaLights/areaLightsLTC.bin")),e=new Uint16Array(s),a=e.length/8;for(let r=0;r<a;r++)i[r*4]=e[r*8],i[r*4+1]=e[r*8+1],i[r*4+2]=e[r*8+2],i[r*4+3]=e[r*8+3],t[r*4]=e[r*8+4],t[r*4+1]=e[r*8+5],t[r*4+2]=e[r*8+6],t[r*4+3]=e[r*8+7];return[i,t]}function P(i){const t=i.useDelayedTextureLoading;i.useDelayedTextureLoading=!1;const s=i._blockEntityCollection;i._blockEntityCollection=!1,i._ltcTextures={LTC1:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0),LTC2:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0)},i._blockEntityCollection=s,i._ltcTextures.LTC1.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC1.wrapV=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapV=u.CLAMP_ADDRESSMODE,i.useDelayedTextureLoading=t,M().then(e=>{i._ltcTextures&&((i._ltcTextures?.LTC1).update(e[0]),(i._ltcTextures?.LTC2).update(e[1]),i.onDisposeObservable.addOnce(()=>{i._ltcTextures?.LTC1.dispose(),i._ltcTextures?.LTC2.dispose()}))}).catch(e=>{w.Error(`Area Light fail to get LTC textures data. Error: ${e}`)})}class U extends g{constructor(t,s,e,a){super(t,e,a),this.position=s,this._scene._ltcTextures||P(this._scene)}transferTexturesToEffect(t){return this._scene._ltcTextures&&(t.setTexture("areaLightsLTC1Sampler",this._scene._ltcTextures.LTC1),t.setTexture("areaLightsLTC2Sampler",this._scene._ltcTextures.LTC2)),this}prepareLightSpecificDefines(t,s){t["AREALIGHT"+s]=!0,t.AREALIGHTUSED=!0}_isReady(){return this._scene._ltcTextures?this._scene._ltcTextures.LTC1.isReady()&&this._scene._ltcTextures.LTC2.isReady():!1}}R.AddNodeConstructor("Light_Type_4",(i,t)=>()=>new l(i,n.Zero(),1,1,t));class l extends U{get width(){return this._width.x}set width(t){this._width.x=t}get height(){return this._height.y}set height(t){this._height.y=t}constructor(t,s,e,a,r,f){super(t,s,r,f),this._width=new n(e,0,0),this._height=new n(0,a,0),this._pointTransformedPosition=n.Zero(),this._pointTransformedWidth=n.Zero(),this._pointTransformedHeight=n.Zero()}getClassName(){return"RectAreaLight"}getTypeID(){return g.LIGHTTYPEID_RECT_AREALIGHT}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightWidth",4),this._uniformBuffer.addUniform("vLightHeight",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeTransformedInformation(){return this.parent&&this.parent.getWorldMatrix?(n.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this._pointTransformedPosition),n.TransformNormalToRef(this._width,this.parent.getWorldMatrix(),this._pointTransformedWidth),n.TransformNormalToRef(this._height,this.parent.getWorldMatrix(),this._pointTransformedHeight),!0):!1}transferToEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._pointTransformedWidth.x/2,this._pointTransformedWidth.y/2,this._pointTransformedWidth.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._pointTransformedHeight.x/2,this._pointTransformedHeight.y/2,this._pointTransformedHeight.z/2,0,s)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-e.x,this.position.y-e.y,this.position.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._width.x/2,this._width.y/2,this._width.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._height.x/2,this._height.y/2,this._height.z/2,0,s)),this}transferToNodeMaterialEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?t.setFloat3(s,this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z):t.setFloat3(s,this.position.x-e.x,this.position.y-e.y,this.position.z-e.z),this}}b([E()],l.prototype,"width",null);b([E()],l.prototype,"height",null);D("BABYLON.RectAreaLight",l);const c="EXT_lights_area";class v{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const s=t[this.name];this._lights=s.lights,A.Assign(this._lights)}}loadNodeAsync(t,s,e){return C.LoadExtensionAsync(t,s,this.name,async(a,r)=>(this._loader._allMaterialsDirtyRequired=!0,await this._loader.loadNodeAsync(t,s,f=>{let h;const o=A.Get(a,this._lights,r.light),T=o.name||f.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer;const d=o.size!==void 0?o.size:1;switch(o.type){case"rect":{const _=o.rect?.aspect!==void 0?o.rect.aspect*d:d,m=d;h=new l(T,n.Zero(),_,m,this._loader.babylonScene);break}case"disk":{const _=Math.sqrt(d*d*.25*Math.PI);h=new l(T,n.Zero(),_,_,this._loader.babylonScene);break}default:throw this._loader.babylonScene._blockEntityCollection=!1,new Error(`${a}: Invalid area light type (${o.type})`)}h._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,o._babylonLight=h,h.falloffType=g.FALLOFF_GLTF,h.diffuse=o.color?y.FromArray(o.color):y.White(),h.intensity=o.intensity==null?1:o.intensity;const p=new S(`${T}_orientation`,this._loader.babylonScene);p.rotationQuaternion=B.RotationAxis(n.Up(),Math.PI),p.parent=f,h.parent=p,this._loader._babylonLights.push(h),C.AddPointerMetadata(h,a),e(f)})))}}z(c);F(c,!0,i=>new v(i));export{v as EXT_lights_area};
assets/{EXT_lights_ies-C2q7BoCe.js β†’ EXT_lights_ies-zmsFevvJ.js} RENAMED
@@ -1 +1 @@
1
- import{V as f,aI as b,C as _,T as y,aG as p,aH as L}from"./index-GY9JDBGV.js";import{a as A}from"./objectModelMapping-CpTIXcMS.js";import{ArrayItem as l,GLTFLoader as u}from"./glTFLoader-CdfQ_yvy.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";const n="EXT_lights_ies";class w{constructor(i){this.name=n,this._loader=i,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null,delete this._lights}onLoading(){const i=this._loader.gltf.extensions;if(i&&i[this.name]){const r=i[this.name];this._lights=r.lights,l.Assign(this._lights)}}loadNodeAsync(i,r,c){return u.LoadExtensionAsync(i,r,this.name,async(h,a)=>{this._loader._allMaterialsDirtyRequired=!0;let e,t;const m=await this._loader.loadNodeAsync(i,r,s=>{t=l.Get(h,this._lights,a.light);const g=t.name||s.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer,e=new A(g,f.Zero(),f.Backward(),0,1,this._loader.babylonScene),e.angle=Math.PI/2,e.innerAngle=0,e._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,t._babylonLight=e,e.falloffType=b.FALLOFF_GLTF,e.diffuse=a.color?_.FromArray(a.color):_.White(),e.intensity=a.multiplier||1,e.range=Number.MAX_VALUE,e.parent=s,this._loader._babylonLights.push(e),u.AddPointerMetadata(e,h),c(s)});let o;if(t.uri)o=await this._loader.loadUriAsync(i,t,t.uri);else{const s=l.Get(`${i}/bufferView`,this._loader.gltf.bufferViews,t.bufferView);o=await this._loader.loadBufferViewAsync(`/bufferViews/${s.index}`,s)}return e.iesProfileTexture=new y(name+"_iesProfile",this._loader.babylonScene,!0,!1,void 0,null,null,o,!0,void 0,void 0,void 0,void 0,".ies"),m})}}p(n);L(n,!0,d=>new w(d));export{w as EXT_lights_ies};
 
1
+ import{V as f,aI as b,C as _,T as y,aG as p,aH as L}from"./index-DmfQKmJL.js";import{a as A}from"./objectModelMapping-BHbejOcH.js";import{ArrayItem as l,GLTFLoader as u}from"./glTFLoader-BBmdTKVx.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";const n="EXT_lights_ies";class w{constructor(i){this.name=n,this._loader=i,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null,delete this._lights}onLoading(){const i=this._loader.gltf.extensions;if(i&&i[this.name]){const r=i[this.name];this._lights=r.lights,l.Assign(this._lights)}}loadNodeAsync(i,r,c){return u.LoadExtensionAsync(i,r,this.name,async(h,a)=>{this._loader._allMaterialsDirtyRequired=!0;let e,t;const m=await this._loader.loadNodeAsync(i,r,s=>{t=l.Get(h,this._lights,a.light);const g=t.name||s.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer,e=new A(g,f.Zero(),f.Backward(),0,1,this._loader.babylonScene),e.angle=Math.PI/2,e.innerAngle=0,e._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,t._babylonLight=e,e.falloffType=b.FALLOFF_GLTF,e.diffuse=a.color?_.FromArray(a.color):_.White(),e.intensity=a.multiplier||1,e.range=Number.MAX_VALUE,e.parent=s,this._loader._babylonLights.push(e),u.AddPointerMetadata(e,h),c(s)});let o;if(t.uri)o=await this._loader.loadUriAsync(i,t,t.uri);else{const s=l.Get(`${i}/bufferView`,this._loader.gltf.bufferViews,t.bufferView);o=await this._loader.loadBufferViewAsync(`/bufferViews/${s.index}`,s)}return e.iesProfileTexture=new y(name+"_iesProfile",this._loader.babylonScene,!0,!1,void 0,null,null,o,!0,void 0,void 0,void 0,void 0,".ies"),m})}}p(n);L(n,!0,d=>new w(d));export{w as EXT_lights_ies};
assets/{EXT_lights_image_based-VXkLlHnK.js β†’ EXT_lights_image_based-QdF5w0Gc.js} RENAMED
@@ -1 +1 @@
1
- import{e as y,ao as u,M as g,bj as f,ay as x,aG as b,aH as A}from"./index-GY9JDBGV.js";import{_ as w}from"./environmentTextureTools-4Y2q4Eto.js";import{CubeTexture as T}from"./cubeTexture-C4jc6f6g.js";import{GLTFLoader as S,ArrayItem as h}from"./glTFLoader-CdfQ_yvy.js";import"./index-DydPgVMC.js";import"./dumpTools-CmFNDulw.js";import"./abstractEngine.cubeTexture-BED8U2gm.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";class m extends T{constructor(t,e,a,n=5,r=0,s=!1,o=!1,l=3,i=null){super("",t),this._texture=t.getEngine().createRawCubeTexture(e,a,n,r,s,o,l,i)}update(t,e,a,n,r=null){this._texture.getEngine().updateRawCubeTexture(this._texture,t,e,a,n,r)}updateRGBDAsync(t,e=null,a=.8,n=0){return w(this._texture,t,e,a,n).then(()=>{})}clone(){return y.Clone(()=>{const t=this.getScene(),e=this._texture,a=new m(t,e._bufferViewArray,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression);return e.source===13&&a.updateRGBDAsync(e._bufferViewArrayArray,e._sphericalPolynomial,e._lodGenerationScale,e._lodGenerationOffset),a},this)}}const c="EXT_lights_image_based";class G{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const e=t[this.name];this._lights=e.lights}}loadSceneAsync(t,e){return S.LoadExtensionAsync(t,e,this.name,async(a,n)=>{this._loader._allMaterialsDirtyRequired=!0;const r=new Array;r.push(this._loader.loadSceneAsync(t,e)),this._loader.logOpen(`${a}`);const s=h.Get(`${a}/light`,this._lights,n.light);return r.push(this._loadLightAsync(`/extensions/${this.name}/lights/${n.light}`,s).then(o=>{this._loader.babylonScene.environmentTexture=o})),this._loader.logClose(),await Promise.all(r).then(()=>{})})}_loadLightAsync(t,e){if(!e._loaded){const a=new Array;this._loader.logOpen(`${t}`);const n=new Array(e.specularImages.length);for(let r=0;r<e.specularImages.length;r++){const s=e.specularImages[r];n[r]=new Array(s.length);for(let o=0;o<s.length;o++){const l=`${t}/specularImages/${r}/${o}`;this._loader.logOpen(`${l}`);const i=s[o],p=h.Get(l,this._loader.gltf.images,i);a.push(this._loader.loadImageAsync(`/images/${i}`,p).then(_=>{n[r][o]=_})),this._loader.logClose()}}this._loader.logClose(),e._loaded=Promise.all(a).then(async()=>{const r=new m(this._loader.babylonScene,null,e.specularImageSize);if(r.name=e.name||"environment",e._babylonTexture=r,e.intensity!=null&&(r.level=e.intensity),e.rotation){let i=u.FromArray(e.rotation);this._loader.babylonScene.useRightHandedSystem||(i=u.Inverse(i)),g.FromQuaternionToRef(i,r.getReflectionTextureMatrix())}if(!e.irradianceCoefficients)throw new Error(`${t}: Irradiance coefficients are missing`);const s=f.FromArray(e.irradianceCoefficients);s.scaleInPlace(e.intensity),s.convertIrradianceToLambertianRadiance();const o=x.FromHarmonics(s),l=(n.length-1)/Math.log2(e.specularImageSize);return await r.updateRGBDAsync(n,o,l)})}return e._loaded.then(()=>e._babylonTexture)}}b(c);A(c,!0,d=>new G(d));export{G as EXT_lights_image_based};
 
1
+ import{e as y,ao as u,M as g,bj as f,ay as x,aG as b,aH as A}from"./index-DmfQKmJL.js";import{_ as w}from"./environmentTextureTools-CZ2Js-0F.js";import{CubeTexture as T}from"./cubeTexture-_waJYc-4.js";import{GLTFLoader as S,ArrayItem as h}from"./glTFLoader-BBmdTKVx.js";import"./index-BeNBoC9J.js";import"./dumpTools-lUQLjcLM.js";import"./abstractEngine.cubeTexture-BIRfp8hN.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";class m extends T{constructor(t,e,a,n=5,r=0,s=!1,o=!1,l=3,i=null){super("",t),this._texture=t.getEngine().createRawCubeTexture(e,a,n,r,s,o,l,i)}update(t,e,a,n,r=null){this._texture.getEngine().updateRawCubeTexture(this._texture,t,e,a,n,r)}updateRGBDAsync(t,e=null,a=.8,n=0){return w(this._texture,t,e,a,n).then(()=>{})}clone(){return y.Clone(()=>{const t=this.getScene(),e=this._texture,a=new m(t,e._bufferViewArray,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression);return e.source===13&&a.updateRGBDAsync(e._bufferViewArrayArray,e._sphericalPolynomial,e._lodGenerationScale,e._lodGenerationOffset),a},this)}}const c="EXT_lights_image_based";class G{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const e=t[this.name];this._lights=e.lights}}loadSceneAsync(t,e){return S.LoadExtensionAsync(t,e,this.name,async(a,n)=>{this._loader._allMaterialsDirtyRequired=!0;const r=new Array;r.push(this._loader.loadSceneAsync(t,e)),this._loader.logOpen(`${a}`);const s=h.Get(`${a}/light`,this._lights,n.light);return r.push(this._loadLightAsync(`/extensions/${this.name}/lights/${n.light}`,s).then(o=>{this._loader.babylonScene.environmentTexture=o})),this._loader.logClose(),await Promise.all(r).then(()=>{})})}_loadLightAsync(t,e){if(!e._loaded){const a=new Array;this._loader.logOpen(`${t}`);const n=new Array(e.specularImages.length);for(let r=0;r<e.specularImages.length;r++){const s=e.specularImages[r];n[r]=new Array(s.length);for(let o=0;o<s.length;o++){const l=`${t}/specularImages/${r}/${o}`;this._loader.logOpen(`${l}`);const i=s[o],p=h.Get(l,this._loader.gltf.images,i);a.push(this._loader.loadImageAsync(`/images/${i}`,p).then(_=>{n[r][o]=_})),this._loader.logClose()}}this._loader.logClose(),e._loaded=Promise.all(a).then(async()=>{const r=new m(this._loader.babylonScene,null,e.specularImageSize);if(r.name=e.name||"environment",e._babylonTexture=r,e.intensity!=null&&(r.level=e.intensity),e.rotation){let i=u.FromArray(e.rotation);this._loader.babylonScene.useRightHandedSystem||(i=u.Inverse(i)),g.FromQuaternionToRef(i,r.getReflectionTextureMatrix())}if(!e.irradianceCoefficients)throw new Error(`${t}: Irradiance coefficients are missing`);const s=f.FromArray(e.irradianceCoefficients);s.scaleInPlace(e.intensity),s.convertIrradianceToLambertianRadiance();const o=x.FromHarmonics(s),l=(n.length-1)/Math.log2(e.specularImageSize);return await r.updateRGBDAsync(n,o,l)})}return e._loaded.then(()=>e._babylonTexture)}}b(c);A(c,!0,d=>new G(d));export{G as EXT_lights_image_based};
assets/{EXT_mesh_gpu_instancing-_XEhXaiJ.js β†’ EXT_mesh_gpu_instancing-BBagtG9m.js} RENAMED
@@ -1 +1 @@
1
- import{c as r,V as A,ao as F,M as b,L as g,aG as L,aH as M}from"./index-GY9JDBGV.js";import{GLTFLoader as V,ArrayItem as w}from"./glTFLoader-CdfQ_yvy.js";import"./thinInstanceMesh-B_Va_jLC.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";const c="EXT_mesh_gpu_instancing";class B{constructor(l){this.name=c,this._loader=l,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null}loadNodeAsync(l,s,T){return V.LoadExtensionAsync(l,s,this.name,async(m,h)=>{this._loader._disableInstancedMesh++;const p=this._loader.loadNodeAsync(`/nodes/${s.index}`,s,T);if(this._loader._disableInstancedMesh--,!s._primitiveBabylonMeshes)return await p;const u=new Array;let t=0;const i=a=>{if(h.attributes[a]==null){u.push(Promise.resolve(null));return}const o=w.Get(`${m}/attributes/${a}`,this._loader.gltf.accessors,h.attributes[a]);if(u.push(this._loader._loadFloatAccessorAsync(`/accessors/${o.bufferView}`,o)),t===0)t=o.count;else if(t!==o.count)throw new Error(`${m}/attributes: Instance buffer accessors do not have the same count.`)};return i("TRANSLATION"),i("ROTATION"),i("SCALE"),i("_COLOR_0"),await p.then(async a=>{const[o,d,_,n]=await Promise.all(u),y=new Float32Array(t*16);r.Vector3[0].copyFromFloats(0,0,0),r.Quaternion[0].copyFromFloats(0,0,0,1),r.Vector3[1].copyFromFloats(1,1,1);for(let e=0;e<t;++e)o&&A.FromArrayToRef(o,e*3,r.Vector3[0]),d&&F.FromArrayToRef(d,e*4,r.Quaternion[0]),_&&A.FromArrayToRef(_,e*3,r.Vector3[1]),b.ComposeToRef(r.Vector3[1],r.Quaternion[0],r.Vector3[0],r.Matrix[0]),r.Matrix[0].copyToArray(y,e*16);for(const e of s._primitiveBabylonMeshes)e.thinInstanceSetBuffer("matrix",y,16,!0),n&&(n.length===t*3?e.thinInstanceSetBuffer("color",n,3,!0):n.length===t*4?e.thinInstanceSetBuffer("color",n,4,!0):g.Warn("Unexpected size of _COLOR_0 attribute for mesh "+e.name));return a})})}}L(c);M(c,!0,f=>new B(f));export{B as EXT_mesh_gpu_instancing};
 
1
+ import{c as r,V as A,ao as F,M as b,L as g,aG as L,aH as M}from"./index-DmfQKmJL.js";import{GLTFLoader as V,ArrayItem as w}from"./glTFLoader-BBmdTKVx.js";import"./thinInstanceMesh-CzFstZ7V.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";const c="EXT_mesh_gpu_instancing";class B{constructor(l){this.name=c,this._loader=l,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null}loadNodeAsync(l,s,T){return V.LoadExtensionAsync(l,s,this.name,async(m,h)=>{this._loader._disableInstancedMesh++;const p=this._loader.loadNodeAsync(`/nodes/${s.index}`,s,T);if(this._loader._disableInstancedMesh--,!s._primitiveBabylonMeshes)return await p;const u=new Array;let t=0;const i=a=>{if(h.attributes[a]==null){u.push(Promise.resolve(null));return}const o=w.Get(`${m}/attributes/${a}`,this._loader.gltf.accessors,h.attributes[a]);if(u.push(this._loader._loadFloatAccessorAsync(`/accessors/${o.bufferView}`,o)),t===0)t=o.count;else if(t!==o.count)throw new Error(`${m}/attributes: Instance buffer accessors do not have the same count.`)};return i("TRANSLATION"),i("ROTATION"),i("SCALE"),i("_COLOR_0"),await p.then(async a=>{const[o,d,_,n]=await Promise.all(u),y=new Float32Array(t*16);r.Vector3[0].copyFromFloats(0,0,0),r.Quaternion[0].copyFromFloats(0,0,0,1),r.Vector3[1].copyFromFloats(1,1,1);for(let e=0;e<t;++e)o&&A.FromArrayToRef(o,e*3,r.Vector3[0]),d&&F.FromArrayToRef(d,e*4,r.Quaternion[0]),_&&A.FromArrayToRef(_,e*3,r.Vector3[1]),b.ComposeToRef(r.Vector3[1],r.Quaternion[0],r.Vector3[0],r.Matrix[0]),r.Matrix[0].copyToArray(y,e*16);for(const e of s._primitiveBabylonMeshes)e.thinInstanceSetBuffer("matrix",y,16,!0),n&&(n.length===t*3?e.thinInstanceSetBuffer("color",n,3,!0):n.length===t*4?e.thinInstanceSetBuffer("color",n,4,!0):g.Warn("Unexpected size of _COLOR_0 attribute for mesh "+e.name));return a})})}}L(c);M(c,!0,f=>new B(f));export{B as EXT_mesh_gpu_instancing};
assets/{EXT_meshopt_compression-CNfYzYbj.js β†’ EXT_meshopt_compression-uVDTMCPr.js} RENAMED
@@ -1 +1 @@
1
- import{GLTFLoader as m,ArrayItem as h}from"./glTFLoader-CdfQ_yvy.js";import{d as n,aG as p,aH as y}from"./index-GY9JDBGV.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";let i=0,u=null;class r{static get Default(){return r._Default||(r._Default=new r),r._Default}constructor(){const e=r.Configuration.decoder;this._decoderModulePromise=n.LoadBabylonScriptAsync(e.url).then(()=>MeshoptDecoder.ready)}dispose(){delete this._decoderModulePromise}async decodeGltfBufferAsync(e,s,l,t,o){await this._decoderModulePromise,i===0&&(MeshoptDecoder.useWorkers(1),i=1);const a=await MeshoptDecoder.decodeGltfBufferAsync(s,l,e,t,o);return u!==null&&clearTimeout(u),u=setTimeout(()=>{MeshoptDecoder.useWorkers(0),i=0,u=null},1e3),a}}r.Configuration={decoder:{url:`${n._DefaultCdnUrl}/meshopt_decoder.js`}};r._Default=null;const d="EXT_meshopt_compression";class _{constructor(e){this.name=d,this.enabled=e.isExtensionUsed(d),this._loader=e}dispose(){this._loader=null}loadBufferViewAsync(e,s){return m.LoadExtensionAsync(e,s,this.name,async(l,t)=>{const o=s;if(o._meshOptData)return await o._meshOptData;const a=h.Get(`${e}/buffer`,this._loader.gltf.buffers,t.buffer);return o._meshOptData=this._loader.loadBufferAsync(`/buffers/${a.index}`,a,t.byteOffset||0,t.byteLength).then(async c=>await r.Default.decodeGltfBufferAsync(c,t.count,t.byteStride,t.mode,t.filter)),await o._meshOptData})}}p(d);y(d,!0,f=>new _(f));export{_ as EXT_meshopt_compression};
 
1
+ import{GLTFLoader as m,ArrayItem as h}from"./glTFLoader-BBmdTKVx.js";import{d as n,aG as p,aH as y}from"./index-DmfQKmJL.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";let i=0,u=null;class r{static get Default(){return r._Default||(r._Default=new r),r._Default}constructor(){const e=r.Configuration.decoder;this._decoderModulePromise=n.LoadBabylonScriptAsync(e.url).then(()=>MeshoptDecoder.ready)}dispose(){delete this._decoderModulePromise}async decodeGltfBufferAsync(e,s,l,t,o){await this._decoderModulePromise,i===0&&(MeshoptDecoder.useWorkers(1),i=1);const a=await MeshoptDecoder.decodeGltfBufferAsync(s,l,e,t,o);return u!==null&&clearTimeout(u),u=setTimeout(()=>{MeshoptDecoder.useWorkers(0),i=0,u=null},1e3),a}}r.Configuration={decoder:{url:`${n._DefaultCdnUrl}/meshopt_decoder.js`}};r._Default=null;const d="EXT_meshopt_compression";class _{constructor(e){this.name=d,this.enabled=e.isExtensionUsed(d),this._loader=e}dispose(){this._loader=null}loadBufferViewAsync(e,s){return m.LoadExtensionAsync(e,s,this.name,async(l,t)=>{const o=s;if(o._meshOptData)return await o._meshOptData;const a=h.Get(`${e}/buffer`,this._loader.gltf.buffers,t.buffer);return o._meshOptData=this._loader.loadBufferAsync(`/buffers/${a.index}`,a,t.byteOffset||0,t.byteLength).then(async c=>await r.Default.decodeGltfBufferAsync(c,t.count,t.byteStride,t.mode,t.filter)),await o._meshOptData})}}p(d);y(d,!0,f=>new _(f));export{_ as EXT_meshopt_compression};
assets/{EXT_texture_avif-8t8_Kyul.js β†’ EXT_texture_avif-5a0PhMZm.js} RENAMED
@@ -1 +1 @@
1
- import{GLTFLoader as a,ArrayItem as o}from"./glTFLoader-CdfQ_yvy.js";import{aG as u,aH as _}from"./index-GY9JDBGV.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";const s="EXT_texture_avif";class c{constructor(e){this.name=s,this._loader=e,this.enabled=e.isExtensionUsed(s)}dispose(){this._loader=null}_loadTextureAsync(e,r,i){return a.LoadExtensionAsync(e,r,this.name,async(n,m)=>{const l=r.sampler==null?a.DefaultSampler:o.Get(`${e}/sampler`,this._loader.gltf.samplers,r.sampler),p=o.Get(`${n}/source`,this._loader.gltf.images,m.source);return await this._loader._createTextureAsync(e,l,p,d=>{i(d)},void 0,!r._textureInfo.nonColorData)})}}u(s);_(s,!0,t=>new c(t));export{c as EXT_texture_avif};
 
1
+ import{GLTFLoader as a,ArrayItem as o}from"./glTFLoader-BBmdTKVx.js";import{aG as u,aH as _}from"./index-DmfQKmJL.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";const s="EXT_texture_avif";class c{constructor(e){this.name=s,this._loader=e,this.enabled=e.isExtensionUsed(s)}dispose(){this._loader=null}_loadTextureAsync(e,r,i){return a.LoadExtensionAsync(e,r,this.name,async(n,m)=>{const l=r.sampler==null?a.DefaultSampler:o.Get(`${e}/sampler`,this._loader.gltf.samplers,r.sampler),p=o.Get(`${n}/source`,this._loader.gltf.images,m.source);return await this._loader._createTextureAsync(e,l,p,d=>{i(d)},void 0,!r._textureInfo.nonColorData)})}}u(s);_(s,!0,t=>new c(t));export{c as EXT_texture_avif};
assets/{EXT_texture_webp-2Si9vGim.js β†’ EXT_texture_webp-3jsgTjRP.js} RENAMED
@@ -1 +1 @@
1
- import{GLTFLoader as o,ArrayItem as a}from"./glTFLoader-CdfQ_yvy.js";import{aG as u,aH as _}from"./index-GY9JDBGV.js";import"./index-DydPgVMC.js";import"./bone-CnpD8dWY.js";import"./skeleton-CQeK9qOO.js";import"./rawTexture-BDsvmix4.js";import"./assetContainer-X8dc1NDD.js";import"./objectModelMapping-CpTIXcMS.js";const s="EXT_texture_webp";class c{constructor(e){this.name=s,this._loader=e,this.enabled=e.isExtensionUsed(s)}dispose(){this._loader=null}_loadTextureAsync(e,r,i){return o.LoadExtensionAsync(e,r,this.name,async(n,m)=>{const l=r.sampler==null?o.DefaultSampler:a.Get(`${e}/sampler`,this._loader.gltf.samplers,r.sampler),p=a.Get(`${n}/source`,this._loader.gltf.images,m.source);return await this._loader._createTextureAsync(e,l,p,d=>{i(d)},void 0,!r._textureInfo.nonColorData)})}}u(s);_(s,!0,t=>new c(t));export{c as EXT_texture_webp};
 
1
+ import{GLTFLoader as o,ArrayItem as a}from"./glTFLoader-BBmdTKVx.js";import{aG as u,aH as _}from"./index-DmfQKmJL.js";import"./index-BeNBoC9J.js";import"./bone-DcPUF7Rw.js";import"./skeleton-CiiOtZPn.js";import"./rawTexture-3EXxZD4a.js";import"./assetContainer-CT42NrOs.js";import"./objectModelMapping-BHbejOcH.js";const s="EXT_texture_webp";class c{constructor(e){this.name=s,this._loader=e,this.enabled=e.isExtensionUsed(s)}dispose(){this._loader=null}_loadTextureAsync(e,r,i){return o.LoadExtensionAsync(e,r,this.name,async(n,m)=>{const l=r.sampler==null?o.DefaultSampler:a.Get(`${e}/sampler`,this._loader.gltf.samplers,r.sampler),p=a.Get(`${n}/source`,this._loader.gltf.images,m.source);return await this._loader._createTextureAsync(e,l,p,d=>{i(d)},void 0,!r._textureInfo.nonColorData)})}}u(s);_(s,!0,t=>new c(t));export{c as EXT_texture_webp};
assets/{Edit-G5CCT_vc.js β†’ Edit-DfYRtNtw.js} RENAMED
@@ -1 +1 @@
1
- import"./i18n-CPHyzK9b.js";import{a as r,f as e}from"./index-DydPgVMC.js";var s=e('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>');function n(t){var o=s();r(t,o)}export{n as E};
 
1
+ import"./i18n-DtG3MAQ1.js";import{a as r,f as e}from"./index-BeNBoC9J.js";var s=e('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>');function n(t){var o=s();r(t,o)}export{n as E};
assets/{Empty-B15ItVsj.js β†’ Empty-Clj0ErcW.js} RENAMED
@@ -1 +1 @@
1
- import{p as _,s as z,d as E,b as R}from"./i18n-CPHyzK9b.js";import{M as k,Y as B,Z as r,_ as C,$ as u,t as M,a as O,O as P,a0 as c,P as m,Q as f,R as Q,T as g}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";var S=Q('<div aria-label="Empty value"><div class="icon svelte-1p786k8"><!></div></div>');function j(h,a){k(a,!1);const i=c();let s=_(a,"size",12,"small"),n=_(a,"unpadded_box",12,!1),l=c();function v(e){if(!e)return!1;const{height:p}=e.getBoundingClientRect(),{height:y}=e.parentElement?.getBoundingClientRect()||{height:p};return p>y+2}B(()=>r(l),()=>{u(i,v(r(l)))}),C();var b={get size(){return s()},set size(e){s(e),m()},get unpadded_box(){return n()},set unpadded_box(e){n(e),m()}},t=S();let d;var o=f(t),x=f(o);return z(x,a,"default",{}),g(o),g(t),E(t,e=>u(l,e),()=>r(l)),M(()=>d=R(t,1,"empty svelte-1p786k8",null,d,{small:s()==="small",large:s()==="large",unpadded_box:n(),small_parent:r(i)})),O(h,t),P(b)}export{j as E};
 
1
+ import{p as _,s as z,d as E,b as R}from"./i18n-DtG3MAQ1.js";import{M as k,Y as B,Z as r,_ as C,$ as u,t as M,a as O,O as P,a0 as c,P as m,Q as f,R as Q,T as g}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";var S=Q('<div aria-label="Empty value"><div class="icon svelte-1p786k8"><!></div></div>');function j(h,a){k(a,!1);const i=c();let s=_(a,"size",12,"small"),n=_(a,"unpadded_box",12,!1),l=c();function v(e){if(!e)return!1;const{height:p}=e.getBoundingClientRect(),{height:y}=e.parentElement?.getBoundingClientRect()||{height:p};return p>y+2}B(()=>r(l),()=>{u(i,v(r(l)))}),C();var b={get size(){return s()},set size(e){s(e),m()},get unpadded_box(){return n()},set unpadded_box(e){n(e),m()}},t=S();let d;var o=f(t),x=f(o);return z(x,a,"default",{}),g(o),g(t),E(t,e=>u(l,e),()=>r(l)),M(()=>d=R(t,1,"empty svelte-1p786k8",null,d,{small:s()==="small",large:s()==="large",unpadded_box:n(),small_parent:r(i)})),O(h,t),P(b)}export{j as E};
assets/{Example-DT5PcEOk.js β†’ Example-5TvjAuj2.js} RENAMED
@@ -1 +1 @@
1
- import{p as r,i as n,b as v}from"./i18n-CPHyzK9b.js";import{t as _,a as u,R as h,Q as p,T as b}from"./index-DydPgVMC.js";import{J as y}from"./JSON-DVsUg528.js";import"./Check-2f8HlfSn.js";import"./Copy-B3jzejpA.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";import"./snippet-BtHMuX3s.js";import"./Empty-B15ItVsj.js";import"./IconButtonWrapper-PnNNNvqI.js";var g=h("<div><!></div>");function R(s,e){let o=r(e,"theme_mode",3,"system"),i=r(e,"selected",3,!1),m=!1,d=0;var t=g();let l;var f=p(t);{var c=a=>{y(a,{get value(){return e.value},open:!0,get theme_mode(){return o()},show_indices:m,label_height:d,interactive:!1,show_copy_button:!1})};n(f,a=>{e.value&&a(c)})}b(t),_(()=>l=v(t,1,"container svelte-1skdjd4",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:i(),border:e.value})),u(s,t)}export{R as default};
 
1
+ import{p as r,i as n,b as v}from"./i18n-DtG3MAQ1.js";import{t as _,a as u,R as h,Q as p,T as b}from"./index-BeNBoC9J.js";import{J as y}from"./JSON-BMd6yQaN.js";import"./Check-DjGw_9dO.js";import"./Copy-eBznHIlR.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";import"./snippet-BRIBYCwB.js";import"./Empty-Clj0ErcW.js";import"./IconButtonWrapper-Ce5bzAyh.js";var g=h("<div><!></div>");function R(s,e){let o=r(e,"theme_mode",3,"system"),i=r(e,"selected",3,!1),m=!1,d=0;var t=g();let l;var f=p(t);{var c=a=>{y(a,{get value(){return e.value},open:!0,get theme_mode(){return o()},show_indices:m,label_height:d,interactive:!1,show_copy_button:!1})};n(f,a=>{e.value&&a(c)})}b(t),_(()=>l=v(t,1,"container svelte-1skdjd4",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:i(),border:e.value})),u(s,t)}export{R as default};
assets/{Example-CCIKPQQj.js β†’ Example-7cNIWfNN.js} RENAMED
@@ -1 +1 @@
1
- import{p,b as i}from"./i18n-CPHyzK9b.js";import{t as u,X as m,a as d,R as v,Q as _,T as y}from"./index-DydPgVMC.js";/* empty css */var b=v("<pre> </pre>");function w(c,e){let n=p(e,"selected",3,!1);function f(r,s=60){if(!r)return"";const a=String(r);return a.length<=s?a:a.slice(0,s)+"..."}var t=b();let l;var o=_(t,!0);y(t),u(r=>{l=i(t,1,"svelte-9powsr",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:n()}),m(o,r)},[()=>f(e.value)]),d(c,t)}export{w as default};
 
1
+ import{p,b as i}from"./i18n-DtG3MAQ1.js";import{t as u,X as m,a as d,R as v,Q as _,T as y}from"./index-BeNBoC9J.js";/* empty css */var b=v("<pre> </pre>");function w(c,e){let n=p(e,"selected",3,!1);function f(r,s=60){if(!r)return"";const a=String(r);return a.length<=s?a:a.slice(0,s)+"..."}var t=b();let l;var o=_(t,!0);y(t),u(r=>{l=i(t,1,"svelte-9powsr",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:n()}),m(o,r)},[()=>f(e.value)]),d(c,t)}export{w as default};
assets/{Example-BGlyl4O8.js β†’ Example-BFvndbmT.js} RENAMED
@@ -1 +1 @@
1
- import{p as v,b as d}from"./i18n-CPHyzK9b.js";import{M as n,t as f,a as c,O as y,R as _,X as o,Q as b,T as h}from"./index-DydPgVMC.js";/* empty css */var x=_("<div> </div>");function M(s,e){n(e,!0);let r=v(e,"selected",3,!1),i=(e.value?Array.isArray(e.value)?e.value:[e.value]:[]).map(t=>e.choices.find(u=>u[1]===t)?.[0]).filter(t=>t!==void 0).join(", ");var a=x();let l;var m=b(a,!0);h(a),f(()=>{l=d(a,1,"svelte-1ti2sjb",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:r()}),o(m,i)}),c(s,a),y()}export{M as default};
 
1
+ import{p as v,b as d}from"./i18n-DtG3MAQ1.js";import{M as n,t as f,a as c,O as y,R as _,X as o,Q as b,T as h}from"./index-BeNBoC9J.js";/* empty css */var x=_("<div> </div>");function M(s,e){n(e,!0);let r=v(e,"selected",3,!1),i=(e.value?Array.isArray(e.value)?e.value:[e.value]:[]).map(t=>e.choices.find(u=>u[1]===t)?.[0]).filter(t=>t!==void 0).join(", ");var a=x();let l;var m=b(a,!0);h(a),f(()=>{l=d(a,1,"svelte-1ti2sjb",null,l,{table:e.type==="table",gallery:e.type==="gallery",selected:r()}),o(m,i)}),c(s,a),y()}export{M as default};
assets/{Example-BPjTUpdK.js β†’ Example-BK_3ogSC.js} RENAMED
@@ -1 +1 @@
1
- import{p as d,b as i}from"./i18n-CPHyzK9b.js";import{M as u,t as c,X as m,a as f,O as n,R as o,Q as y,T as x}from"./index-DydPgVMC.js";/* empty css */var _=o("<div> </div>");function p(l,e){u(e,!0);let s=d(e,"selected",3,!1);var a=_();let t;var r=y(a,!0);x(a),c(v=>{t=i(a,1,"svelte-nkzdzc",null,t,{table:e.type==="table",gallery:e.type==="gallery",selected:s()}),m(r,v)},[()=>e.value?Array.isArray(e.value)?e.value.join(", "):e.value:""]),f(l,a),n()}export{p as default};
 
1
+ import{p as d,b as i}from"./i18n-DtG3MAQ1.js";import{M as u,t as c,X as m,a as f,O as n,R as o,Q as y,T as x}from"./index-BeNBoC9J.js";/* empty css */var _=o("<div> </div>");function p(l,e){u(e,!0);let s=d(e,"selected",3,!1);var a=_();let t;var r=y(a,!0);x(a),c(v=>{t=i(a,1,"svelte-nkzdzc",null,t,{table:e.type==="table",gallery:e.type==="gallery",selected:s()}),m(r,v)},[()=>e.value?Array.isArray(e.value)?e.value.join(", "):e.value:""]),f(l,a),n()}export{p as default};
assets/{Example-ByqvSEWx.js β†’ Example-BTYUTWpe.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,e as o,b as f}from"./i18n-CPHyzK9b.js";import{M as i,t as m,x as y,v as g,X as x,a as _,O as h,P as c,R as b,Q as S,T as k}from"./index-DydPgVMC.js";var z=b("<div> </div>");function M(n,a){i(a,!1);let t=u(a,"value",12),l=u(a,"type",12),r=u(a,"selected",12,!1);var p={get value(){return t()},set value(e){t(e),c()},get type(){return l()},set type(e){l(e),c()},get selected(){return r()},set selected(e){r(e),c()}};o();var s=z();let d;var v=S(s,!0);return k(s),m(e=>{d=f(s,1,"svelte-zt6t97",null,d,{table:l()==="table",gallery:l()==="gallery",selected:r()}),x(v,e)},[()=>(y(t()),g(()=>t()!==null?t().toLocaleString():""))]),_(n,s),h(p)}export{M as default};
 
1
+ import{p as u,e as o,b as f}from"./i18n-DtG3MAQ1.js";import{M as i,t as m,x as y,v as g,X as x,a as _,O as h,P as c,R as b,Q as S,T as k}from"./index-BeNBoC9J.js";var z=b("<div> </div>");function M(n,a){i(a,!1);let t=u(a,"value",12),l=u(a,"type",12),r=u(a,"selected",12,!1);var p={get value(){return t()},set value(e){t(e),c()},get type(){return l()},set type(e){l(e),c()},get selected(){return r()},set selected(e){r(e),c()}};o();var s=z();let d;var v=S(s,!0);return k(s),m(e=>{d=f(s,1,"svelte-zt6t97",null,d,{table:l()==="table",gallery:l()==="gallery",selected:r()}),x(v,e)},[()=>(y(t()),g(()=>t()!==null?t().toLocaleString():""))]),_(n,s),h(p)}export{M as default};
assets/{Example-B3rqw2Wc.js β†’ Example-BWxCDLr9.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,b as n}from"./i18n-CPHyzK9b.js";import{M as o,t as m,a as i,O as y,P as v,R as g,X as x,Q as b,T as h}from"./index-DydPgVMC.js";var _=g("<div> </div>");function M(p,t){o(t,!1);let s=u(t,"value",12),a=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return s()},set value(e){s(e),v()},get type(){return a()},set type(e){a(e),v()},get selected(){return r()},set selected(e){r(e),v()}},l=_();let c;var f=b(l,!0);return h(l),m(()=>{c=n(l,1,"svelte-1cjvr6b",null,c,{table:a()==="table",gallery:a()==="gallery",selected:r()}),x(f,s())}),i(p,l),y(d)}export{M as default};
 
1
+ import{p as u,b as n}from"./i18n-DtG3MAQ1.js";import{M as o,t as m,a as i,O as y,P as v,R as g,X as x,Q as b,T as h}from"./index-BeNBoC9J.js";var _=g("<div> </div>");function M(p,t){o(t,!1);let s=u(t,"value",12),a=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return s()},set value(e){s(e),v()},get type(){return a()},set type(e){a(e),v()},get selected(){return r()},set selected(e){r(e),v()}},l=_();let c;var f=b(l,!0);return h(l),m(()=>{c=n(l,1,"svelte-1cjvr6b",null,c,{table:a()==="table",gallery:a()==="gallery",selected:r()}),x(f,s())}),i(p,l),y(d)}export{M as default};
assets/{Example-7FcnnBll.js β†’ Example-BdhvPMmU.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,b as n}from"./i18n-CPHyzK9b.js";import{M as o,t as m,a as i,O as y,P as p,R as g,X as x,Q as h,T as _}from"./index-DydPgVMC.js";var b=g("<div> </div>");function O(c,t){o(t,!1);let a=u(t,"value",12),l=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return a()},set value(e){a(e),p()},get type(){return l()},set type(e){l(e),p()},get selected(){return r()},set selected(e){r(e),p()}},s=b();let v;var f=h(s,!0);return _(s),m(()=>{v=n(s,1,"svelte-1trg192",null,v,{table:l()==="table",gallery:l()==="gallery",selected:r()}),x(f,a()?a():"")}),i(c,s),y(d)}export{O as default};
 
1
+ import{p as u,b as n}from"./i18n-DtG3MAQ1.js";import{M as o,t as m,a as i,O as y,P as p,R as g,X as x,Q as h,T as _}from"./index-BeNBoC9J.js";var b=g("<div> </div>");function O(c,t){o(t,!1);let a=u(t,"value",12),l=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return a()},set value(e){a(e),p()},get type(){return l()},set type(e){l(e),p()},get selected(){return r()},set selected(e){r(e),p()}},s=b();let v;var f=h(s,!0);return _(s),m(()=>{v=n(s,1,"svelte-1trg192",null,v,{table:l()==="table",gallery:l()==="gallery",selected:r()}),x(f,a()?a():"")}),i(c,s),y(d)}export{O as default};
assets/Example-BfoDEvJC.js DELETED
@@ -1 +0,0 @@
1
- import"./i18n-CPHyzK9b.js";import{a4 as p,t as s,a as x,X as f,a5 as m}from"./index-DydPgVMC.js";function l(a,e){m();var t=p();s(()=>f(t,e.value||"")),x(a,t)}export{l as default};
 
 
assets/{Example-CXAPpj07.js β†’ Example-C2VbMl9n.js} RENAMED
@@ -1 +1 @@
1
- import{p as q,i as n,b as w,q as E,w as M}from"./i18n-CPHyzK9b.js";import{M as N,t as m,a as t,O,R as r,Q as c,N as Q,T as d,X as R,Z as S,S as T}from"./index-DydPgVMC.js";var X=r("<li><code> </code></li>"),Z=r('<li class="extra svelte-4dxvaf">...</li>'),j=r("<!> <!>",1),z=r("<ul><!></ul>");function D(x,a){N(a,!0);let y=q(a,"selected",3,!1);var l=z();let f;var g=c(l);{var h=s=>{var o=j(),u=Q(o);E(u,17,()=>Array.isArray(a.value)?a.value.slice(0,3):[a.value],M,(e,v)=>{var i=X(),_=c(i),k=c(_);d(_),d(i),m(()=>R(k,`./${S(v)??""}`)),t(e,i)});var b=T(u,2);{var A=e=>{var v=Z();t(e,v)};n(b,e=>{Array.isArray(a.value)&&a.value.length>3&&e(A)})}t(s,o)};n(g,s=>{a.value&&s(h)})}d(l),m(()=>f=w(l,1,"svelte-4dxvaf",null,f,{table:a.type==="table",gallery:a.type==="gallery",selected:y()})),t(x,l),O()}export{D as default};
 
1
+ import{p as q,i as n,b as w,q as E,w as M}from"./i18n-DtG3MAQ1.js";import{M as N,t as m,a as t,O,R as r,Q as c,N as Q,T as d,X as R,Z as S,S as T}from"./index-BeNBoC9J.js";var X=r("<li><code> </code></li>"),Z=r('<li class="extra svelte-4dxvaf">...</li>'),j=r("<!> <!>",1),z=r("<ul><!></ul>");function D(x,a){N(a,!0);let y=q(a,"selected",3,!1);var l=z();let f;var g=c(l);{var h=s=>{var o=j(),u=Q(o);E(u,17,()=>Array.isArray(a.value)?a.value.slice(0,3):[a.value],M,(e,v)=>{var i=X(),_=c(i),k=c(_);d(_),d(i),m(()=>R(k,`./${S(v)??""}`)),t(e,i)});var b=T(u,2);{var A=e=>{var v=Z();t(e,v)};n(b,e=>{Array.isArray(a.value)&&a.value.length>3&&e(A)})}t(s,o)};n(g,s=>{a.value&&s(h)})}d(l),m(()=>f=w(l,1,"svelte-4dxvaf",null,f,{table:a.type==="table",gallery:a.type==="gallery",selected:y()})),t(x,l),O()}export{D as default};
assets/{Example-q7qW2djY.js β†’ Example-C8kkgkoI.js} RENAMED
@@ -1 +1 @@
1
- import{p,b as f}from"./i18n-CPHyzK9b.js";import{M as m,t as n,a as i,O as y,P as u,R as h,Q as g,T as x}from"./index-DydPgVMC.js";import{h as b}from"./html-BZIV6tyB.js";var _=h("<div><!></div>");function O(d,t){m(t,!1);let s=p(t,"value",12),a=p(t,"type",12),r=p(t,"selected",12,!1);var v={get value(){return s()},set value(e){s(e),u()},get type(){return a()},set type(e){a(e),u()},get selected(){return r()},set selected(e){r(e),u()}},l=_();let o;var c=g(l);return b(c,s),x(l),n(()=>o=f(l,1,"prose svelte-uax3w3",null,o,{table:a()==="table",gallery:a()==="gallery",selected:r()})),i(d,l),y(v)}export{O as default};
 
1
+ import{p,b as f}from"./i18n-DtG3MAQ1.js";import{M as m,t as n,a as i,O as y,P as u,R as h,Q as g,T as x}from"./index-BeNBoC9J.js";import{h as b}from"./html-DE4EmiOG.js";var _=h("<div><!></div>");function O(d,t){m(t,!1);let s=p(t,"value",12),a=p(t,"type",12),r=p(t,"selected",12,!1);var v={get value(){return s()},set value(e){s(e),u()},get type(){return a()},set type(e){a(e),u()},get selected(){return r()},set selected(e){r(e),u()}},l=_();let o;var c=g(l);return b(c,s),x(l),n(()=>o=f(l,1,"prose svelte-uax3w3",null,o,{table:a()==="table",gallery:a()==="gallery",selected:r()})),i(d,l),y(v)}export{O as default};
assets/{Example-DXbKzhJW.js β†’ Example-CDBVWKus.js} RENAMED
@@ -1 +1 @@
1
- import{p as v,b as d}from"./i18n-CPHyzK9b.js";import{t as c,a as f,R as m,X as i,Q as u,T as o}from"./index-DydPgVMC.js";var x=m("<div> </div>");function y(l,e){let s=v(e,"selected",3,!1);var t=x();let a;var r=u(t,!0);o(t),c(()=>{a=d(t,1,"svelte-vxg88u",null,a,{table:e.type==="table",gallery:e.type==="gallery",selected:s()}),i(r,e.value?e.value:"")}),f(l,t)}export{y as default};
 
1
+ import{p as v,b as d}from"./i18n-DtG3MAQ1.js";import{t as c,a as f,R as m,X as i,Q as u,T as o}from"./index-BeNBoC9J.js";var x=m("<div> </div>");function y(l,e){let s=v(e,"selected",3,!1);var t=x();let a;var r=u(t,!0);o(t),c(()=>{a=d(t,1,"svelte-vxg88u",null,a,{table:e.type==="table",gallery:e.type==="gallery",selected:s()}),i(r,e.value?e.value:"")}),f(l,t)}export{y as default};
assets/{Example-DCvUey5Q.js β†’ Example-CGtPi4dj.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,b as n}from"./i18n-CPHyzK9b.js";import{M as o,t as m,a as i,O as y,P as p,R as g,X as x,Q as h,T as _}from"./index-DydPgVMC.js";var b=g("<div> </div>");function O(c,t){o(t,!1);let l=u(t,"value",12),a=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return l()},set value(e){l(e),p()},get type(){return a()},set type(e){a(e),p()},get selected(){return r()},set selected(e){r(e),p()}},s=b();let v;var f=h(s,!0);return _(s),m(()=>{v=n(s,1,"svelte-l6o67f",null,v,{table:a()==="table",gallery:a()==="gallery",selected:r()}),x(f,l()!==null?l():"")}),i(c,s),y(d)}export{O as default};
 
1
+ import{p as u,b as n}from"./i18n-DtG3MAQ1.js";import{M as o,t as m,a as i,O as y,P as p,R as g,X as x,Q as h,T as _}from"./index-BeNBoC9J.js";var b=g("<div> </div>");function O(c,t){o(t,!1);let l=u(t,"value",12),a=u(t,"type",12),r=u(t,"selected",12,!1);var d={get value(){return l()},set value(e){l(e),p()},get type(){return a()},set type(e){a(e),p()},get selected(){return r()},set selected(e){r(e),p()}},s=b();let v;var f=h(s,!0);return _(s),m(()=>{v=n(s,1,"svelte-l6o67f",null,v,{table:a()==="table",gallery:a()==="gallery",selected:r()}),x(f,l()!==null?l():"")}),i(c,s),y(d)}export{O as default};
assets/{Example-Cjtz6ob8.js β†’ Example-CJXDEOIL.js} RENAMED
@@ -1 +1 @@
1
- import{p as u,f,b as n}from"./i18n-CPHyzK9b.js";import{M as v,t as m,a as y,O as g,P as c,R as i}from"./index-DydPgVMC.js";var b=i("<div></div>");function x(p,t){v(t,!1);let l=u(t,"value",12),a=u(t,"type",12),s=u(t,"selected",12,!1);var d={get value(){return l()},set value(e){l(e),c()},get type(){return a()},set type(e){a(e),c()},get selected(){return s()},set selected(e){s(e),c()}},r=b();let o;return m(()=>{f(r,`background-color: ${(l()?l():"black")??""}`),o=n(r,1,"svelte-1wshq4n",null,o,{table:a()==="table",gallery:a()==="gallery",selected:s()})}),y(p,r),g(d)}export{x as default};
 
1
+ import{p as u,f,b as n}from"./i18n-DtG3MAQ1.js";import{M as v,t as m,a as y,O as g,P as c,R as i}from"./index-BeNBoC9J.js";var b=i("<div></div>");function x(p,t){v(t,!1);let l=u(t,"value",12),a=u(t,"type",12),s=u(t,"selected",12,!1);var d={get value(){return l()},set value(e){l(e),c()},get type(){return a()},set type(e){a(e),c()},get selected(){return s()},set selected(e){s(e),c()}},r=b();let o;return m(()=>{f(r,`background-color: ${(l()?l():"black")??""}`),o=n(r,1,"svelte-1wshq4n",null,o,{table:a()==="table",gallery:a()==="gallery",selected:s()})}),y(p,r),g(d)}export{x as default};
assets/{Example-Cpd2Jjnh.js β†’ Example-CKTv7ur-.js} RENAMED
@@ -1 +1 @@
1
- import{p as m,i as v,b as w}from"./i18n-CPHyzK9b.js";import{M as A,a3 as f,N as p,a as o,O as E,Q as I,$ as M,Z as t,T as N,t as O,R as Q,aa as R,a2 as T}from"./index-DydPgVMC.js";import{V as Z}from"./Video-BOdhnjQz.js";import"./snippet-BtHMuX3s.js";import"./actions-4RaHFoGI.js";import"./universal-C9tCO36V.js";var q=Q("<div><!></div>");function H(c,a){A(a,!0);let _=m(a,"selected",3,!1),i=m(a,"value",3,null),e=R(void 0);async function y(){t(e)&&(t(e).muted=!0,t(e).playsInline=!0,t(e).controls=!1,t(e).setAttribute("muted",""),await t(e).play(),t(e).pause())}var n=f(),g=p(n);{var b=s=>{var u=f(),h=p(u);{var k=l=>{var r=q();let d;var x=I(r);{let V=T(()=>i()?.url);Z(x,{muted:!0,playsinline:!0,onloadeddata:y,onmouseover:()=>t(e)?.play(),onmouseout:()=>t(e)?.pause(),get src(){return t(V)},is_stream:!1,get loop(){return a.loop},get node(){return t(e)},set node(j){M(e,j,!0)}})}N(r),O(()=>d=w(r,1,"container svelte-cjpdkh",null,d,{table:a.type==="table",gallery:a.type==="gallery",selected:_()})),o(l,r)};v(h,l=>{l(k)})}o(s,u)};v(g,s=>{i()&&s(b)})}o(c,n),E()}export{H as default};
 
1
+ import{p as m,i as v,b as w}from"./i18n-DtG3MAQ1.js";import{M as A,a3 as f,N as p,a as o,O as E,Q as I,$ as M,Z as t,T as N,t as O,R as Q,aa as R,a2 as T}from"./index-BeNBoC9J.js";import{V as Z}from"./Video-BXpoIN7o.js";import"./snippet-BRIBYCwB.js";import"./actions-BbCJS635.js";import"./universal-DqSjxxHG.js";var q=Q("<div><!></div>");function H(c,a){A(a,!0);let _=m(a,"selected",3,!1),i=m(a,"value",3,null),e=R(void 0);async function y(){t(e)&&(t(e).muted=!0,t(e).playsInline=!0,t(e).controls=!1,t(e).setAttribute("muted",""),await t(e).play(),t(e).pause())}var n=f(),g=p(n);{var b=s=>{var u=f(),h=p(u);{var k=l=>{var r=q();let d;var x=I(r);{let V=T(()=>i()?.url);Z(x,{muted:!0,playsinline:!0,onloadeddata:y,onmouseover:()=>t(e)?.play(),onmouseout:()=>t(e)?.pause(),get src(){return t(V)},is_stream:!1,get loop(){return a.loop},get node(){return t(e)},set node(j){M(e,j,!0)}})}N(r),O(()=>d=w(r,1,"container svelte-cjpdkh",null,d,{table:a.type==="table",gallery:a.type==="gallery",selected:_()})),o(l,r)};v(h,l=>{l(k)})}o(s,u)};v(g,s=>{i()&&s(b)})}o(c,n),E()}export{H as default};
assets/{Example-D-alj4yz.js β†’ Example-CYA1ZfQi.js} RENAMED
@@ -1 +1 @@
1
- import{p as o,e as c,b as n}from"./i18n-CPHyzK9b.js";import{M as v,Z as f,t as g,a as y,O as _,P as p,Q as b,ad as h,x,v as k,R as w,T as I}from"./index-DydPgVMC.js";import"./ScrollFade.svelte_svelte_type_style_lang-DM1x-AZw.js";import{I as q}from"./Image-CZ1Hb99p.js";/* empty css */import"./StreamingBar.svelte_svelte_type_style_lang-BMYtrUWr.js";/* empty css */import"./Upload-Bq9KuxCu.js";/* empty css */import"./snippet-BtHMuX3s.js";import"./misc-Dkc5KZ-v.js";/* empty css */import"./html-BZIV6tyB.js";import"./index-B_pwUImq.js";import"./actions-4RaHFoGI.js";var E=w("<div><!></div>");function G(m,a){v(a,!1);let t=o(a,"value",12),r=o(a,"type",12),l=o(a,"selected",12,!1);var u={get value(){return t()},set value(e){t(e),p()},get type(){return r()},set type(e){r(e),p()},get selected(){return l()},set selected(e){l(e),p()}};c();var s=E();let i;var d=b(s);{let e=h(()=>(x(t()),k(()=>t().composite?.url||t().background?.url)));q(d,{get src(){return f(e)},alt:""})}return I(s),g(()=>i=n(s,1,"container svelte-aw21w",null,i,{table:r()==="table",gallery:r()==="gallery",selected:l()})),y(m,s),_(u)}export{G as default};
 
1
+ import{p as o,e as c,b as n}from"./i18n-DtG3MAQ1.js";import{M as v,Z as f,t as g,a as y,O as _,P as p,Q as b,ad as h,x,v as k,R as w,T as I}from"./index-BeNBoC9J.js";import"./ScrollFade.svelte_svelte_type_style_lang-DgbEBGDD.js";import{I as q}from"./Image-ALBOEs1f.js";/* empty css */import"./StreamingBar.svelte_svelte_type_style_lang-BUk4GIbA.js";/* empty css */import"./Upload-CGTpHDBO.js";/* empty css */import"./snippet-BRIBYCwB.js";import"./misc-D-Y84gKJ.js";/* empty css */import"./html-DE4EmiOG.js";import"./index-B_pwUImq.js";import"./actions-BbCJS635.js";var E=w("<div><!></div>");function G(m,a){v(a,!1);let t=o(a,"value",12),r=o(a,"type",12),l=o(a,"selected",12,!1);var u={get value(){return t()},set value(e){t(e),p()},get type(){return r()},set type(e){r(e),p()},get selected(){return l()},set selected(e){l(e),p()}};c();var s=E();let i;var d=b(s);{let e=h(()=>(x(t()),k(()=>t().composite?.url||t().background?.url)));q(d,{get src(){return f(e)},alt:""})}return I(s),g(()=>i=n(s,1,"container svelte-aw21w",null,i,{table:r()==="table",gallery:r()==="gallery",selected:l()})),y(m,s),_(u)}export{G as default};
assets/{Example-oI9QHs-R.js β†’ Example-CpSLgFlm.js} RENAMED
@@ -1 +1 @@
1
- import{p as o,e as m,i as v,b as f}from"./i18n-CPHyzK9b.js";import{M as g,t as y,a as _,O as b,P as p,R as h,Q as x,x as k,v as I,T as E}from"./index-DydPgVMC.js";import{I as M}from"./Image-CZ1Hb99p.js";/* empty css */import"./misc-Dkc5KZ-v.js";/* empty css */var O=h("<div><!></div>");function q(u,a){g(a,!1);let t=o(a,"value",12),r=o(a,"type",12),l=o(a,"selected",12,!1);var d={get value(){return t()},set value(e){t(e),p()},get type(){return r()},set type(e){r(e),p()},get selected(){return l()},set selected(e){l(e),p()}};m();var s=O();let i;var c=x(s);{var n=e=>{M(e,{get src(){return k(t()),I(()=>t().url)},alt:""})};v(c,e=>{t()&&e(n)})}return E(s),y(()=>i=f(s,1,"container svelte-1pdautr",null,i,{table:r()==="table",gallery:r()==="gallery",selected:l(),border:t()})),_(u,s),b(d)}export{q as default};
 
1
+ import{p as o,e as m,i as v,b as f}from"./i18n-DtG3MAQ1.js";import{M as g,t as y,a as _,O as b,P as p,R as h,Q as x,x as k,v as I,T as E}from"./index-BeNBoC9J.js";import{I as M}from"./Image-ALBOEs1f.js";/* empty css */import"./misc-D-Y84gKJ.js";/* empty css */var O=h("<div><!></div>");function q(u,a){g(a,!1);let t=o(a,"value",12),r=o(a,"type",12),l=o(a,"selected",12,!1);var d={get value(){return t()},set value(e){t(e),p()},get type(){return r()},set type(e){r(e),p()},get selected(){return l()},set selected(e){l(e),p()}};m();var s=O();let i;var c=x(s);{var n=e=>{M(e,{get src(){return k(t()),I(()=>t().url)},alt:""})};v(c,e=>{t()&&e(n)})}return E(s),y(()=>i=f(s,1,"container svelte-1pdautr",null,i,{table:r()==="table",gallery:r()==="gallery",selected:l(),border:t()})),_(u,s),b(d)}export{q as default};
assets/Example-CyVYJU_i.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-DtG3MAQ1.js";import{a4 as p,t as s,a as x,X as f,a5 as m}from"./index-BeNBoC9J.js";function l(a,e){m();var t=p();s(()=>f(t,e.value||"")),x(a,t)}export{l as default};
assets/{Example-Cr4dhaJx.js β†’ Example-D1yz72bP.js} RENAMED
@@ -1 +1 @@
1
- import{p as c,e as h,d as S,b as z}from"./i18n-CPHyzK9b.js";import{M,a7 as P,t as k,x as w,v as E,X as O,a as Q,O as R,P as o,R as T,Q as W,$ as v,a0 as m,Z as p,T as X}from"./index-DydPgVMC.js";import{b as Z}from"./size-D4lmUoTq.js";/* empty css */var j=T("<div> </div>");function D(y,a){M(a,!1);let l=c(a,"value",12),r=c(a,"type",12),n=c(a,"selected",12,!1),d=m(),u=m();function _(e,s){e.style.setProperty("--local-text-width",`${s&&s<150?s:200}px`),e.style.whiteSpace="unset"}function b(e,s=60){if(!e)return"";const i=String(e);return i.length<=s?i:i.slice(0,s)+"..."}P(()=>{_(p(u),p(d))});var g={get value(){return l()},set value(e){l(e),o()},get type(){return r()},set type(e){r(e),o()},get selected(){return n()},set selected(e){n(e),o()}};h();var t=j();let f;var x=W(t,!0);return X(t),S(t,e=>v(u,e),()=>p(u)),k(e=>{f=z(t,1,"svelte-1w3nss4",null,f,{table:r()==="table",gallery:r()==="gallery",selected:n()}),O(x,e)},[()=>(w(l()),E(()=>b(l())))]),Z(t,"clientWidth",e=>v(d,e)),Q(y,t),R(g)}export{D as default};
 
1
+ import{p as c,e as h,d as S,b as z}from"./i18n-DtG3MAQ1.js";import{M,a7 as P,t as k,x as w,v as E,X as O,a as Q,O as R,P as o,R as T,Q as W,$ as v,a0 as m,Z as p,T as X}from"./index-BeNBoC9J.js";import{b as Z}from"./size-ChvveZyb.js";/* empty css */var j=T("<div> </div>");function D(y,a){M(a,!1);let l=c(a,"value",12),r=c(a,"type",12),n=c(a,"selected",12,!1),d=m(),u=m();function _(e,s){e.style.setProperty("--local-text-width",`${s&&s<150?s:200}px`),e.style.whiteSpace="unset"}function b(e,s=60){if(!e)return"";const i=String(e);return i.length<=s?i:i.slice(0,s)+"..."}P(()=>{_(p(u),p(d))});var g={get value(){return l()},set value(e){l(e),o()},get type(){return r()},set type(e){r(e),o()},get selected(){return n()},set selected(e){n(e),o()}};h();var t=j();let f;var x=W(t,!0);return X(t),S(t,e=>v(u,e),()=>p(u)),k(e=>{f=z(t,1,"svelte-1w3nss4",null,f,{table:r()==="table",gallery:r()==="gallery",selected:n()}),O(x,e)},[()=>(w(l()),E(()=>b(l())))]),Z(t,"clientWidth",e=>v(d,e)),Q(y,t),R(g)}export{D as default};