streamlit-nightly 1.34.1.dev20240505__py2.py3-none-any.whl → 1.34.1.dev20240507__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. streamlit/__init__.py +1 -0
  2. streamlit/commands/logo.py +107 -0
  3. streamlit/components/v1/component_registry.py +8 -3
  4. streamlit/proto/ForwardMsg_pb2.py +10 -9
  5. streamlit/proto/ForwardMsg_pb2.pyi +9 -3
  6. streamlit/proto/Logo_pb2.py +26 -0
  7. streamlit/proto/Logo_pb2.pyi +51 -0
  8. streamlit/runtime/app_session.py +2 -6
  9. streamlit/runtime/forward_msg_queue.py +23 -3
  10. streamlit/runtime/runtime.py +0 -2
  11. streamlit/runtime/state/query_params.py +4 -2
  12. streamlit/runtime/state/query_params_proxy.py +11 -5
  13. streamlit/runtime/state/session_state_proxy.py +11 -3
  14. streamlit/runtime/websocket_session_manager.py +0 -2
  15. streamlit/static/asset-manifest.json +23 -23
  16. streamlit/static/index.html +1 -1
  17. streamlit/static/static/js/1168.7452e363.chunk.js +1 -0
  18. streamlit/static/static/js/1307.0f0cca93.chunk.js +1 -0
  19. streamlit/static/static/js/1792.8bd6ce2a.chunk.js +1 -0
  20. streamlit/static/static/js/1955.426e67ca.chunk.js +2 -0
  21. streamlit/static/static/js/2178.90362aae.chunk.js +1 -0
  22. streamlit/static/static/js/{2469.3e9c3ce9.chunk.js → 2469.09ea79bb.chunk.js} +1 -1
  23. streamlit/static/static/js/{7217.d970c074.chunk.js → 2736.4336e2b9.chunk.js} +1 -1
  24. streamlit/static/static/js/3092.21bb8f7b.chunk.js +1 -0
  25. streamlit/static/static/js/329.464ed8ec.chunk.js +2 -0
  26. streamlit/static/static/js/3513.ebc278c4.chunk.js +1 -0
  27. streamlit/static/static/js/4113.9b2db2e3.chunk.js +1 -0
  28. streamlit/static/static/js/{4477.e10e4373.chunk.js → 4477.1bd49702.chunk.js} +1 -1
  29. streamlit/static/static/js/5249.f2f4070d.chunk.js +1 -0
  30. streamlit/static/static/js/5441.5bacdeda.chunk.js +1 -0
  31. streamlit/static/static/js/6853.93dd1c4c.chunk.js +1 -0
  32. streamlit/static/static/js/{7323.2808d029.chunk.js → 7323.b74cc85b.chunk.js} +2 -2
  33. streamlit/static/static/js/7805.acc6316a.chunk.js +1 -0
  34. streamlit/static/static/js/8427.bd0a7cf3.chunk.js +1 -0
  35. streamlit/static/static/js/8477.de889fe5.chunk.js +1 -0
  36. streamlit/static/static/js/{8492.3e609489.chunk.js → 8492.0d93bd08.chunk.js} +1 -1
  37. streamlit/static/static/js/8536.f8de3d9a.chunk.js +1 -0
  38. streamlit/static/static/js/main.b84b6de2.js +2 -0
  39. {streamlit_nightly-1.34.1.dev20240505.dist-info → streamlit_nightly-1.34.1.dev20240507.dist-info}/METADATA +2 -2
  40. {streamlit_nightly-1.34.1.dev20240505.dist-info → streamlit_nightly-1.34.1.dev20240507.dist-info}/RECORD +48 -45
  41. streamlit/static/static/js/1168.fc5c673b.chunk.js +0 -1
  42. streamlit/static/static/js/1307.8ea033f1.chunk.js +0 -1
  43. streamlit/static/static/js/1792.b8efa879.chunk.js +0 -1
  44. streamlit/static/static/js/2736.914069e5.chunk.js +0 -2
  45. streamlit/static/static/js/3061.67758376.chunk.js +0 -1
  46. streamlit/static/static/js/3092.bc07c48b.chunk.js +0 -1
  47. streamlit/static/static/js/3513.e3e7300a.chunk.js +0 -1
  48. streamlit/static/static/js/4113.1e7eff4d.chunk.js +0 -1
  49. streamlit/static/static/js/4253.749d5244.chunk.js +0 -2
  50. streamlit/static/static/js/5441.71804c26.chunk.js +0 -1
  51. streamlit/static/static/js/6150.427a30f5.chunk.js +0 -1
  52. streamlit/static/static/js/6853.3cbd385e.chunk.js +0 -1
  53. streamlit/static/static/js/7805.51638fbc.chunk.js +0 -1
  54. streamlit/static/static/js/8427.65ddaf36.chunk.js +0 -1
  55. streamlit/static/static/js/8477.7419a0aa.chunk.js +0 -1
  56. streamlit/static/static/js/8536.f13dff49.chunk.js +0 -1
  57. streamlit/static/static/js/main.3b0201f6.js +0 -2
  58. /streamlit/static/static/js/{4253.749d5244.chunk.js.LICENSE.txt → 1955.426e67ca.chunk.js.LICENSE.txt} +0 -0
  59. /streamlit/static/static/js/{2736.914069e5.chunk.js.LICENSE.txt → 329.464ed8ec.chunk.js.LICENSE.txt} +0 -0
  60. /streamlit/static/static/js/{7323.2808d029.chunk.js.LICENSE.txt → 7323.b74cc85b.chunk.js.LICENSE.txt} +0 -0
  61. /streamlit/static/static/js/{main.3b0201f6.js.LICENSE.txt → main.b84b6de2.js.LICENSE.txt} +0 -0
  62. {streamlit_nightly-1.34.1.dev20240505.data → streamlit_nightly-1.34.1.dev20240507.data}/scripts/streamlit.cmd +0 -0
  63. {streamlit_nightly-1.34.1.dev20240505.dist-info → streamlit_nightly-1.34.1.dev20240507.dist-info}/WHEEL +0 -0
  64. {streamlit_nightly-1.34.1.dev20240505.dist-info → streamlit_nightly-1.34.1.dev20240507.dist-info}/entry_points.txt +0 -0
  65. {streamlit_nightly-1.34.1.dev20240505.dist-info → streamlit_nightly-1.34.1.dev20240507.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3061],{94319:(n,t,r)=>{function e(n,t){return null==n||null==t?NaN:n<t?-1:n>t?1:n>=t?0:NaN}r.d(t,{Z:()=>e})},94712:(n,t,r)=>{r.d(t,{Nw:()=>c,ZP:()=>l,ml:()=>u});var e=r(94319),i=r(53619),o=r(75961);const a=(0,i.Z)(e.Z),u=a.right,c=a.left,l=((0,i.Z)(o.Z).center,u)},53619:(n,t,r)=>{r.d(t,{Z:()=>o});var e=r(94319);function i(n,t){return null==n||null==t?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function o(n){let t,r,o;function u(n,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length;if(i<o){if(0!==t(e,e))return o;do{const t=i+o>>>1;r(n[t],e)<0?i=t+1:o=t}while(i<o)}return i}return 2!==n.length?(t=e.Z,r=(t,r)=>(0,e.Z)(n(t),r),o=(t,r)=>n(t)-r):(t=n===e.Z||n===i?n:a,r=n,o=n),{left:u,center:function(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const e=u(n,t,r,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length)-1);return e>r&&o(n[e-1],t)>-o(n[e],t)?e-1:e},right:function(n,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length;if(i<o){if(0!==t(e,e))return o;do{const t=i+o>>>1;r(n[t],e)<=0?i=t+1:o=t}while(i<o)}return i}}}function a(){return 0}},26379:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(30730);function i(n,t){const r=(0,e.Z)(n,t);return r?Math.sqrt(r):r}},84128:(n,t,r)=>{function e(n,t){let r;if(void 0===t)for(const e of n)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let e=-1;for(let i of n)null!=(i=t(i,++e,n))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{Z:()=>e})},88048:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(88643);function i(n,t){return(0,e.ZP)(n,.5,t)}},36397:(n,t,r)=>{function e(n,t){let r;if(void 0===t)for(const e of n)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let e=-1;for(let i of n)null!=(i=t(i,++e,n))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{Z:()=>e})},75961:(n,t,r)=>{function e(n){return null===n?NaN:+n}function*i(n,t){if(void 0===t)for(let r of n)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let e of n)null!=(e=t(e,++r,n))&&(e=+e)>=e&&(yield e)}}r.d(t,{K:()=>i,Z:()=>e})},24120:(n,t,r)=>{function e(n,t){return Array.from(t,(t=>n[t]))}r.d(t,{Z:()=>e})},88643:(n,t,r)=>{r.d(t,{ZP:()=>l,s7:()=>s});var e=r(84128),i=r(36397),o=r(47833);function a(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),e=Math.floor(Math.min(n.length-1,e)),!(r<=t&&t<=e))return n;for(i=void 0===i?o.Wv:(0,o.di)(i);e>r;){if(e-r>600){const o=e-r+1,u=t-r+1,c=Math.log(o),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(o-l)/o)*(u-o/2<0?-1:1);a(n,t,Math.max(r,Math.floor(t-u*l/o+s)),Math.min(e,Math.floor(t+(o-u)*l/o+s)),i)}const o=n[t];let c=r,l=e;for(u(n,r,t),i(n[e],o)>0&&u(n,r,e);c<l;){for(u(n,c,l),++c,--l;i(n[c],o)<0;)++c;for(;i(n[l],o)>0;)--l}0===i(n[r],o)?u(n,r,l):(++l,u(n,l,e)),l<=t&&(r=l+1),t<=l&&(e=l-1)}return n}function u(n,t,r){const e=n[t];n[t]=n[r],n[r]=e}var c=r(75961);function l(n,t,r){if((o=(n=Float64Array.from((0,c.K)(n,r))).length)&&!isNaN(t=+t)){if(t<=0||o<2)return(0,i.Z)(n);if(t>=1)return(0,e.Z)(n);var o,u=(o-1)*t,l=Math.floor(u),s=(0,e.Z)(a(n,l).subarray(0,l+1));return s+((0,i.Z)(n.subarray(l+1))-s)*(u-l)}}function s(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.Z;if((e=n.length)&&!isNaN(t=+t)){if(t<=0||e<2)return+r(n[0],0,n);if(t>=1)return+r(n[e-1],e-1,n);var e,i=(e-1)*t,o=Math.floor(i),a=+r(n[o],o,n);return a+(+r(n[o+1],o+1,n)-a)*(i-o)}}},82601:(n,t,r)=>{function e(n,t,r){n=+n,t=+t,r=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+r;for(var e=-1,i=0|Math.max(0,Math.ceil((t-n)/r)),o=new Array(i);++e<i;)o[e]=n+e*r;return o}r.d(t,{Z:()=>e})},47833:(n,t,r)=>{r.d(t,{Wv:()=>u,ZP:()=>o,di:()=>a});var e=r(94319),i=r(24120);function o(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("function"!==typeof n[Symbol.iterator])throw new TypeError("values is not iterable");n=Array.from(n);let[o]=r;if(o&&2!==o.length||r.length>1){const t=Uint32Array.from(n,((n,t)=>t));return r.length>1?(r=r.map((t=>n.map(t))),t.sort(((n,t)=>{for(const e of r){const r=u(e[n],e[t]);if(r)return r}}))):(o=n.map(o),t.sort(((n,t)=>u(o[n],o[t])))),(0,i.Z)(n,t)}return n.sort(a(o))}function a(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.Z;if(n===e.Z)return u;if("function"!==typeof n)throw new TypeError("compare is not a function");return(t,r)=>{const e=n(t,r);return e||0===e?e:(0===n(r,r))-(0===n(t,t))}}function u(n,t){return(null==n||!(n>=n))-(null==t||!(t>=t))||(n<t?-1:n>t?1:0)}},88747:(n,t,r)=>{r.d(t,{G9:()=>c,ZP:()=>u,ly:()=>l});const e=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(n,t,r){const u=(t-n)/Math.max(0,r),c=Math.floor(Math.log10(u)),l=u/Math.pow(10,c),s=l>=e?10:l>=i?5:l>=o?2:1;let h,f,g;return c<0?(g=Math.pow(10,-c)/s,h=Math.round(n*g),f=Math.round(t*g),h/g<n&&++h,f/g>t&&--f,g=-g):(g=Math.pow(10,c)*s,h=Math.round(n/g),f=Math.round(t/g),h*g<n&&++h,f*g>t&&--f),f<h&&.5<=r&&r<2?a(n,t,2*r):[h,f,g]}function u(n,t,r){if(!((r=+r)>0))return[];if((n=+n)===(t=+t))return[n];const e=t<n,[i,o,u]=e?a(t,n,r):a(n,t,r);if(!(o>=i))return[];const c=o-i+1,l=new Array(c);if(e)if(u<0)for(let a=0;a<c;++a)l[a]=(o-a)/-u;else for(let a=0;a<c;++a)l[a]=(o-a)*u;else if(u<0)for(let a=0;a<c;++a)l[a]=(i+a)/-u;else for(let a=0;a<c;++a)l[a]=(i+a)*u;return l}function c(n,t,r){return a(n=+n,t=+t,r=+r)[2]}function l(n,t,r){r=+r;const e=(t=+t)<(n=+n),i=e?c(t,n,r):c(n,t,r);return(e?-1:1)*(i<0?1/-i:i)}},30730:(n,t,r)=>{function e(n,t){let r,e=0,i=0,o=0;if(void 0===t)for(let a of n)null!=a&&(a=+a)>=a&&(r=a-i,i+=r/++e,o+=r*(a-i));else{let a=-1;for(let u of n)null!=(u=t(u,++a,n))&&(u=+u)>=u&&(r=u-i,i+=r/++e,o+=r*(u-i))}if(e>1)return o/(e-1)}r.d(t,{Z:()=>e})},52017:(n,t,r)=>{r.d(t,{B8:()=>N,Il:()=>i,J5:()=>a,SU:()=>x,Ss:()=>k,Ym:()=>_,ZP:()=>b,xV:()=>o});var e=r(20322);function i(){}var o=.7,a=1/o,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),f=new RegExp("^rgb\\(".concat(l,",").concat(l,",").concat(l,"\\)$")),g=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(c,"\\)$")),d=new RegExp("^rgba\\(".concat(l,",").concat(l,",").concat(l,",").concat(c,"\\)$")),p=new RegExp("^hsl\\(".concat(c,",").concat(l,",").concat(l,"\\)$")),m=new RegExp("^hsla\\(".concat(c,",").concat(l,",").concat(l,",").concat(c,"\\)$")),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function M(){return this.rgb().formatRgb()}function b(n){var t,r;return n=(n+"").trim().toLowerCase(),(t=s.exec(n))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Z(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(n))?new k(t[1],t[2],t[3],1):(t=f.exec(n))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=g.exec(n))?Z(t[1],t[2],t[3],t[4]):(t=d.exec(n))?Z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=p.exec(n))?q(t[1],t[2]/100,t[3]/100,1):(t=m.exec(n))?q(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(n)?w(v[n]):"transparent"===n?new k(NaN,NaN,NaN,0):null}function w(n){return new k(n>>16&255,n>>8&255,255&n,1)}function Z(n,t,r,e){return e<=0&&(n=t=r=NaN),new k(n,t,r,e)}function x(n){return n instanceof i||(n=b(n)),n?new k((n=n.rgb()).r,n.g,n.b,n.opacity):new k}function N(n,t,r,e){return 1===arguments.length?x(n):new k(n,t,r,null==e?1:e)}function k(n,t,r,e){this.r=+n,this.g=+t,this.b=+r,this.opacity=+e}function A(){return"#".concat(j(this.r)).concat(j(this.g)).concat(j(this.b))}function P(){const n=E(this.opacity);return"".concat(1===n?"rgb(":"rgba(").concat(S(this.r),", ").concat(S(this.g),", ").concat(S(this.b)).concat(1===n?")":", ".concat(n,")"))}function E(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function S(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function j(n){return((n=S(n))<16?"0":"")+n.toString(16)}function q(n,t,r,e){return e<=0?n=t=r=NaN:r<=0||r>=1?n=t=NaN:t<=0&&(n=NaN),new H(n,t,r,e)}function R(n){if(n instanceof H)return new H(n.h,n.s,n.l,n.opacity);if(n instanceof i||(n=b(n)),!n)return new H;if(n instanceof H)return n;var t=(n=n.rgb()).r/255,r=n.g/255,e=n.b/255,o=Math.min(t,r,e),a=Math.max(t,r,e),u=NaN,c=a-o,l=(a+o)/2;return c?(u=t===a?(r-e)/c+6*(r<e):r===a?(e-t)/c+2:(t-r)/c+4,c/=l<.5?a+o:2-a-o,u*=60):c=l>0&&l<1?0:u,new H(u,c,l,n.opacity)}function _(n,t,r,e){return 1===arguments.length?R(n):new H(n,t,r,null==e?1:e)}function H(n,t,r,e){this.h=+n,this.s=+t,this.l=+r,this.opacity=+e}function O(n){return(n=(n||0)%360)<0?n+360:n}function $(n){return Math.max(0,Math.min(1,n||0))}function z(n,t,r){return 255*(n<60?t+(r-t)*n/60:n<180?r:n<240?t+(r-t)*(240-n)/60:t)}(0,e.Z)(i,b,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:M,toString:M}),(0,e.Z)(k,N,(0,e.l)(i,{brighter(n){return n=null==n?a:Math.pow(a,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=null==n?o:Math.pow(o,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new k(S(this.r),S(this.g),S(this.b),E(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:function(){return"#".concat(j(this.r)).concat(j(this.g)).concat(j(this.b)).concat(j(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:P,toString:P})),(0,e.Z)(H,_,(0,e.l)(i,{brighter(n){return n=null==n?a:Math.pow(a,n),new H(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=null==n?o:Math.pow(o,n),new H(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+360*(this.h<0),t=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,e=r+(r<.5?r:1-r)*t,i=2*r-e;return new k(z(n>=240?n-240:n+120,i,e),z(n,i,e),z(n<120?n+240:n-120,i,e),this.opacity)},clamp(){return new H(O(this.h),$(this.s),$(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=E(this.opacity);return"".concat(1===n?"hsl(":"hsla(").concat(O(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(1===n?")":", ".concat(n,")"))}}))},20322:(n,t,r)=>{function e(n,t,r){n.prototype=t.prototype=r,r.constructor=n}function i(n,t){var r=Object.create(n.prototype);for(var e in t)r[e]=t[e];return r}r.d(t,{Z:()=>e,l:()=>i})},86425:(n,t,r)=>{r.d(t,{WU:()=>i,jH:()=>o});var e,i,o,a,u=r(28159);a={thousands:",",grouping:[3],currency:["$",""]},e=(0,u.Z)(a),i=e.format,o=e.formatPrefix},87e3:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(35915);function i(n){return(n=(0,e.V)(Math.abs(n)))?n[1]:NaN}},35915:(n,t,r)=>{function e(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function i(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,e=n.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+n.slice(r+1)]}r.d(t,{V:()=>i,Z:()=>e})},14547:(n,t,r)=>{r.d(t,{Z:()=>i});var e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(n){if(!(t=e.exec(n)))throw new Error("invalid format: "+n);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},28159:(n,t,r)=>{r.d(t,{Z:()=>f});var e=r(87e3);var i=r(14547);var o,a=r(35915);function u(n,t){var r=(0,a.V)(n,t);if(!r)return n+"";var e=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+e:e.length>i+1?e.slice(0,i+1)+"."+e.slice(i+1):e+new Array(i-e.length+2).join("0")}const c={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:a.Z,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>u(100*n,t),r:u,s:function(n,t){var r=(0,a.V)(n,t);if(!r)return n+"";var e=r[0],i=r[1],u=i-(o=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=e.length;return u===c?e:u>c?e+new Array(u-c+1).join("0"):u>0?e.slice(0,u)+"."+e.slice(u):"0."+new Array(1-u).join("0")+(0,a.V)(n,Math.max(0,t+u-1))[0]},X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function l(n){return n}var s=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(n){var t,r,a=void 0===n.grouping||void 0===n.thousands?l:(t=s.call(n.grouping,Number),r=n.thousands+"",function(n,e){for(var i=n.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>e&&(u=Math.max(1,e-c)),o.push(n.substring(i-=u,i+u)),!((c+=u+1)>e));)u=t[a=(a+1)%t.length];return o.reverse().join(r)}),u=void 0===n.currency?"":n.currency[0]+"",f=void 0===n.currency?"":n.currency[1]+"",g=void 0===n.decimal?".":n.decimal+"",d=void 0===n.numerals?l:function(n){return function(t){return t.replace(/[0-9]/g,(function(t){return n[+t]}))}}(s.call(n.numerals,String)),p=void 0===n.percent?"%":n.percent+"",m=void 0===n.minus?"\u2212":n.minus+"",v=void 0===n.nan?"NaN":n.nan+"";function y(n){var t=(n=(0,i.Z)(n)).fill,r=n.align,e=n.sign,l=n.symbol,s=n.zero,y=n.width,M=n.comma,b=n.precision,w=n.trim,Z=n.type;"n"===Z?(M=!0,Z="g"):c[Z]||(void 0===b&&(b=12),w=!0,Z="g"),(s||"0"===t&&"="===r)&&(s=!0,t="0",r="=");var x="$"===l?u:"#"===l&&/[boxX]/.test(Z)?"0"+Z.toLowerCase():"",N="$"===l?f:/[%p]/.test(Z)?p:"",k=c[Z],A=/[defgprs%]/.test(Z);function P(n){var i,u,c,l=x,f=N;if("c"===Z)f=k(n)+f,n="";else{var p=(n=+n)<0||1/n<0;if(n=isNaN(n)?v:k(Math.abs(n),b),w&&(n=function(n){n:for(var t,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=t=e;break;case"0":0===i&&(i=e),t=e;break;default:if(!+n[e])break n;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(t+1):n}(n)),p&&0===+n&&"+"!==e&&(p=!1),l=(p?"("===e?e:m:"-"===e||"("===e?"":e)+l,f=("s"===Z?h[8+o/3]:"")+f+(p&&"("===e?")":""),A)for(i=-1,u=n.length;++i<u;)if(48>(c=n.charCodeAt(i))||c>57){f=(46===c?g+n.slice(i+1):n.slice(i))+f,n=n.slice(0,i);break}}M&&!s&&(n=a(n,1/0));var P=l.length+n.length+f.length,E=P<y?new Array(y-P+1).join(t):"";switch(M&&s&&(n=a(E+n,E.length?y-f.length:1/0),E=""),r){case"<":n=l+n+f+E;break;case"=":n=l+E+n+f;break;case"^":n=E.slice(0,P=E.length>>1)+l+n+f+E.slice(P);break;default:n=E+l+n+f}return d(n)}return b=void 0===b?6:/[gprs]/.test(Z)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),P.toString=function(){return n+""},P}return{format:y,formatPrefix:function(n,t){var r=y(((n=(0,i.Z)(n)).type="f",n)),o=3*Math.max(-8,Math.min(8,Math.floor((0,e.Z)(t)/3))),a=Math.pow(10,-o),u=h[8+o/3];return function(n){return r(a*n)+u}}}}},86790:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(87e3);function i(n){return Math.max(0,-(0,e.Z)(Math.abs(n)))}},37012:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(87e3);function i(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,e.Z)(t)/3)))-(0,e.Z)(Math.abs(n)))}},29641:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(87e3);function i(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,(0,e.Z)(t)-(0,e.Z)(n))+1}},15507:(n,t,r)=>{r.d(t,{M:()=>a,Z:()=>o});var e=r(34588),i=r(29232);function o(n,t){return((0,i.v)(t)?i.Z:a)(n,t)}function a(n,t){var r,i=t?t.length:0,o=n?Math.min(i,n.length):0,a=new Array(o),u=new Array(i);for(r=0;r<o;++r)a[r]=(0,e.Z)(n[r],t[r]);for(;r<i;++r)u[r]=t[r];return function(n){for(r=0;r<o;++r)u[r]=a[r](n);return u}}},5535:(n,t,r)=>{function e(n,t,r,e,i){var o=n*n,a=o*n;return((1-3*n+3*o-a)*t+(4-6*o+3*a)*r+(1+3*n+3*o-3*a)*e+a*i)/6}function i(n){var t=n.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=n[i],a=n[i+1],u=i>0?n[i-1]:2*o-a,c=i<t-1?n[i+2]:2*a-o;return e((r-i/t)*t,u,o,a,c)}}r.d(t,{Z:()=>i,t:()=>e})},20943:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(5535);function i(n){var t=n.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),o=n[(i+t-1)%t],a=n[i%t],u=n[(i+1)%t],c=n[(i+2)%t];return(0,e.t)((r-i/t)*t,o,a,u,c)}}},97017:(n,t,r)=>{r.d(t,{ZP:()=>u,wx:()=>o,yi:()=>a});var e=r(31874);function i(n,t){return function(r){return n+r*t}}function o(n,t){var r=t-n;return r?i(n,r>180||r<-180?r-360*Math.round(r/360):r):(0,e.Z)(isNaN(n)?t:n)}function a(n){return 1===(n=+n)?u:function(t,r){return r-t?function(n,t,r){return n=Math.pow(n,r),t=Math.pow(t,r)-n,r=1/r,function(e){return Math.pow(n+e*t,r)}}(t,r,n):(0,e.Z)(isNaN(t)?r:t)}}function u(n,t){var r=t-n;return r?i(n,r):(0,e.Z)(isNaN(n)?t:n)}},31874:(n,t,r)=>{r.d(t,{Z:()=>e});const e=n=>()=>n},30155:(n,t,r)=>{function e(n,t){var r=new Date;return n=+n,t=+t,function(e){return r.setTime(n*(1-e)+t*e),r}}r.d(t,{Z:()=>e})},74552:(n,t,r)=>{function e(n,t){return n=+n,t=+t,function(r){return n*(1-r)+t*r}}r.d(t,{Z:()=>e})},29232:(n,t,r)=>{function e(n,t){t||(t=[]);var r,e=n?Math.min(t.length,n.length):0,i=t.slice();return function(o){for(r=0;r<e;++r)i[r]=n[r]*(1-o)+t[r]*o;return i}}function i(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}r.d(t,{Z:()=>e,v:()=>i})},88246:(n,t,r)=>{r.d(t,{Z:()=>i});var e=r(34588);function i(n,t){var r,i={},o={};for(r in null!==n&&"object"===typeof n||(n={}),null!==t&&"object"===typeof t||(t={}),t)r in n?i[r]=(0,e.Z)(n[r],t[r]):o[r]=t[r];return function(n){for(r in i)o[r]=i[r](n);return o}}},30975:(n,t,r)=>{r.d(t,{YD:()=>s,ZP:()=>u,hD:()=>l});var e=r(52017),i=r(5535),o=r(20943),a=r(97017);const u=function n(t){var r=(0,a.yi)(t);function i(n,t){var i=r((n=(0,e.B8)(n)).r,(t=(0,e.B8)(t)).r),o=r(n.g,t.g),u=r(n.b,t.b),c=(0,a.ZP)(n.opacity,t.opacity);return function(t){return n.r=i(t),n.g=o(t),n.b=u(t),n.opacity=c(t),n+""}}return i.gamma=n,i}(1);function c(n){return function(t){var r,i,o=t.length,a=new Array(o),u=new Array(o),c=new Array(o);for(r=0;r<o;++r)i=(0,e.B8)(t[r]),a[r]=i.r||0,u[r]=i.g||0,c[r]=i.b||0;return a=n(a),u=n(u),c=n(c),i.opacity=1,function(n){return i.r=a(n),i.g=u(n),i.b=c(n),i+""}}}var l=c(i.Z),s=c(o.Z)},40602:(n,t,r)=>{function e(n,t){return n=+n,t=+t,function(r){return Math.round(n*(1-r)+t*r)}}r.d(t,{Z:()=>e})},71413:(n,t,r)=>{r.d(t,{Z:()=>a});var e=r(74552),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(n,t){var r,a,u,c=i.lastIndex=o.lastIndex=0,l=-1,s=[],h=[];for(n+="",t+="";(r=i.exec(n))&&(a=o.exec(t));)(u=a.index)>c&&(u=t.slice(c,u),s[l]?s[l]+=u:s[++l]=u),(r=r[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,h.push({i:l,x:(0,e.Z)(r,a)})),c=o.lastIndex;return c<t.length&&(u=t.slice(c),s[l]?s[l]+=u:s[++l]=u),s.length<2?h[0]?function(n){return function(t){return n(t)+""}}(h[0].x):function(n){return function(){return n}}(t):(t=h.length,function(n){for(var r,e=0;e<t;++e)s[(r=h[e]).i]=r.x(n);return s.join("")})}},34588:(n,t,r)=>{r.d(t,{Z:()=>f});var e=r(52017),i=r(30975),o=r(15507),a=r(30155),u=r(74552),c=r(88246),l=r(71413),s=r(31874),h=r(29232);function f(n,t){var r,f=typeof t;return null==t||"boolean"===f?(0,s.Z)(t):("number"===f?u.Z:"string"===f?(r=(0,e.ZP)(t))?(t=r,i.ZP):l.Z:t instanceof e.ZP?i.ZP:t instanceof Date?a.Z:(0,h.v)(t)?h.Z:Array.isArray(t)?o.M:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?c.Z:u.Z)(n,t)}},1885:(n,t,r)=>{r.d(t,{JG:()=>g,ZP:()=>p,yR:()=>l,l4:()=>d});var e=r(94712),i=r(34588),o=r(74552),a=r(40602);var u=r(94923),c=[0,1];function l(n){return n}function s(n,t){return(t-=n=+n)?function(r){return(r-n)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function h(n,t,r){var e=n[0],i=n[1],o=t[0],a=t[1];return i<e?(e=s(i,e),o=r(a,o)):(e=s(e,i),o=r(o,a)),function(n){return o(e(n))}}function f(n,t,r){var i=Math.min(n.length,t.length)-1,o=new Array(i),a=new Array(i),u=-1;for(n[i]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<i;)o[u]=s(n[u],n[u+1]),a[u]=r(t[u],t[u+1]);return function(t){var r=(0,e.ZP)(n,t,1,i)-1;return a[r](o[r](t))}}function g(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function d(){var n,t,r,e,s,g,d=c,p=c,m=i.Z,v=l;function y(){var n=Math.min(d.length,p.length);return v!==l&&(v=function(n,t){var r;return n>t&&(r=n,n=t,t=r),function(r){return Math.max(n,Math.min(t,r))}}(d[0],d[n-1])),e=n>2?f:h,s=g=null,M}function M(t){return null==t||isNaN(t=+t)?r:(s||(s=e(d.map(n),p,m)))(n(v(t)))}return M.invert=function(r){return v(t((g||(g=e(p,d.map(n),o.Z)))(r)))},M.domain=function(n){return arguments.length?(d=Array.from(n,u.Z),y()):d.slice()},M.range=function(n){return arguments.length?(p=Array.from(n),y()):p.slice()},M.rangeRound=function(n){return p=Array.from(n),m=a.Z,y()},M.clamp=function(n){return arguments.length?(v=!!n||l,y()):v!==l},M.interpolate=function(n){return arguments.length?(m=n,y()):m},M.unknown=function(n){return arguments.length?(r=n,M):r},function(r,e){return n=r,t=e,y()}}function p(){return d()(l,l)}},8896:(n,t,r)=>{function e(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function i(n,t){switch(arguments.length){case 0:break;case 1:"function"===typeof n?this.interpolator(n):this.range(n);break;default:this.domain(n),"function"===typeof t?this.interpolator(t):this.range(t)}return this}r.d(t,{O:()=>i,o:()=>e})},13629:(n,t,r)=>{r.d(t,{Q:()=>u,Z:()=>c});var e=r(88747),i=r(1885),o=r(8896),a=r(73113);function u(n){var t=n.domain;return n.ticks=function(n){var r=t();return(0,e.ZP)(r[0],r[r.length-1],null==n?10:n)},n.tickFormat=function(n,r){var e=t();return(0,a.Z)(e[0],e[e.length-1],null==n?10:n,r)},n.nice=function(r){null==r&&(r=10);var i,o,a=t(),u=0,c=a.length-1,l=a[u],s=a[c],h=10;for(s<l&&(o=l,l=s,s=o,o=u,u=c,c=o);h-- >0;){if((o=(0,e.G9)(l,s,r))===i)return a[u]=l,a[c]=s,t(a);if(o>0)l=Math.floor(l/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,s=Math.floor(s*o)/o}i=o}return n},n}function c(){var n=(0,i.ZP)();return n.copy=function(){return(0,i.JG)(n,c())},o.o.apply(n,arguments),u(n)}},95658:(n,t,r)=>{r.d(t,{Q:()=>p,Z:()=>m});var e=r(88747),i=r(14547),o=r(86425),a=r(48033),u=r(1885),c=r(8896);function l(n){return Math.log(n)}function s(n){return Math.exp(n)}function h(n){return-Math.log(-n)}function f(n){return-Math.exp(-n)}function g(n){return isFinite(n)?+("1e"+n):n<0?0:n}function d(n){return(t,r)=>-n(-t,r)}function p(n){const t=n(l,s),r=t.domain;let u,c,p=10;function m(){return u=function(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}(p),c=function(n){return 10===n?g:n===Math.E?Math.exp:t=>Math.pow(n,t)}(p),r()[0]<0?(u=d(u),c=d(c),n(h,f)):n(l,s),t}return t.base=function(n){return arguments.length?(p=+n,m()):p},t.domain=function(n){return arguments.length?(r(n),m()):r()},t.ticks=n=>{const t=r();let i=t[0],o=t[t.length-1];const a=o<i;a&&([i,o]=[o,i]);let l,s,h=u(i),f=u(o);const g=null==n?10:+n;let d=[];if(!(p%1)&&f-h<g){if(h=Math.floor(h),f=Math.ceil(f),i>0){for(;h<=f;++h)for(l=1;l<p;++l)if(s=h<0?l/c(-h):l*c(h),!(s<i)){if(s>o)break;d.push(s)}}else for(;h<=f;++h)for(l=p-1;l>=1;--l)if(s=h>0?l/c(-h):l*c(h),!(s<i)){if(s>o)break;d.push(s)}2*d.length<g&&(d=(0,e.ZP)(i,o,g))}else d=(0,e.ZP)(h,f,Math.min(f-h,g)).map(c);return a?d.reverse():d},t.tickFormat=(n,r)=>{if(null==n&&(n=10),null==r&&(r=10===p?"s":","),"function"!==typeof r&&(p%1||null!=(r=(0,i.Z)(r)).precision||(r.trim=!0),r=(0,o.WU)(r)),n===1/0)return r;const e=Math.max(1,p*n/t.ticks().length);return n=>{let t=n/c(Math.round(u(n)));return t*p<p-.5&&(t*=p),t<=e?r(n):""}},t.nice=()=>r((0,a.Z)(r(),{floor:n=>c(Math.floor(u(n))),ceil:n=>c(Math.ceil(u(n)))})),t}function m(){const n=p((0,u.l4)()).domain([1,10]);return n.copy=()=>(0,u.JG)(n,m()).base(n.base()),c.o.apply(n,arguments),n}},48033:(n,t,r)=>{function e(n,t){var r,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(r=e,e=i,i=r,r=o,o=a,a=r),n[e]=t.floor(o),n[i]=t.ceil(a),n}r.d(t,{Z:()=>e})},94923:(n,t,r)=>{function e(n){return+n}r.d(t,{Z:()=>e})},58458:(n,t,r)=>{r.d(t,{O:()=>o,Z:()=>a});var e=r(20905),i=r(8896);const o=Symbol("implicit");function a(){var n=new e.L,t=[],r=[],u=o;function c(e){let i=n.get(e);if(void 0===i){if(u!==o)return u;n.set(e,i=t.push(e)-1)}return r[i%r.length]}return c.domain=function(r){if(!arguments.length)return t.slice();t=[],n=new e.L;for(const e of r)n.has(e)||n.set(e,t.push(e)-1);return c},c.range=function(n){return arguments.length?(r=Array.from(n),c):r.slice()},c.unknown=function(n){return arguments.length?(u=n,c):u},c.copy=function(){return a(t,r).unknown(u)},i.o.apply(c,arguments),c}},66042:(n,t,r)=>{r.d(t,{Hh:()=>l,ZP:()=>s,_b:()=>h});var e=r(13629),i=r(1885),o=r(8896);function a(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function u(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function c(n){return n<0?-n*n:n*n}function l(n){var t=n(i.yR,i.yR),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?n(i.yR,i.yR):.5===r?n(u,c):n(a(r),a(1/r)):r},(0,e.Q)(t)}function s(){var n=l((0,i.l4)());return n.copy=function(){return(0,i.JG)(n,s()).exponent(n.exponent())},o.o.apply(n,arguments),n}function h(){return s.apply(null,arguments).exponent(.5)}},79978:(n,t,r)=>{r.d(t,{Z:()=>u});var e=r(88643),i=r(94712),o=r(94319),a=r(8896);function u(){var n,t=[],r=[],c=[];function l(){var n=0,i=Math.max(1,r.length);for(c=new Array(i-1);++n<i;)c[n-1]=(0,e.s7)(t,n/i);return s}function s(t){return null==t||isNaN(t=+t)?n:r[(0,i.ZP)(c,t)]}return s.invertExtent=function(n){var e=r.indexOf(n);return e<0?[NaN,NaN]:[e>0?c[e-1]:t[0],e<c.length?c[e]:t[t.length-1]]},s.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let r of n)null==r||isNaN(r=+r)||t.push(r);return t.sort(o.Z),l()},s.range=function(n){return arguments.length?(r=Array.from(n),l()):r.slice()},s.unknown=function(t){return arguments.length?(n=t,s):n},s.quantiles=function(){return c.slice()},s.copy=function(){return u().domain(t).range(r).unknown(n)},a.o.apply(s,arguments)}},90983:(n,t,r)=>{r.d(t,{Z:()=>a});var e=r(94712),i=r(13629),o=r(8896);function a(){var n,t=0,r=1,u=1,c=[.5],l=[0,1];function s(t){return null!=t&&t<=t?l[(0,e.ZP)(c,t,0,u)]:n}function h(){var n=-1;for(c=new Array(u);++n<u;)c[n]=((n+1)*r-(n-u)*t)/(u+1);return s}return s.domain=function(n){return arguments.length?([t,r]=n,t=+t,r=+r,h()):[t,r]},s.range=function(n){return arguments.length?(u=(l=Array.from(n)).length-1,h()):l.slice()},s.invertExtent=function(n){var e=l.indexOf(n);return e<0?[NaN,NaN]:e<1?[t,c[0]]:e>=u?[c[u-1],r]:[c[e-1],c[e]]},s.unknown=function(t){return arguments.length?(n=t,s):s},s.thresholds=function(){return c.slice()},s.copy=function(){return a().domain([t,r]).range(l).unknown(n)},o.o.apply((0,i.Q)(s),arguments)}},87758:(n,t,r)=>{r.d(t,{Z:()=>o});var e=r(94712),i=r(8896);function o(){var n,t=[.5],r=[0,1],a=1;function u(i){return null!=i&&i<=i?r[(0,e.ZP)(t,i,0,a)]:n}return u.domain=function(n){return arguments.length?(t=Array.from(n),a=Math.min(t.length,r.length-1),u):t.slice()},u.range=function(n){return arguments.length?(r=Array.from(n),a=Math.min(t.length,r.length-1),u):r.slice()},u.invertExtent=function(n){var e=r.indexOf(n);return[t[e-1],t[e]]},u.unknown=function(t){return arguments.length?(n=t,u):n},u.copy=function(){return o().domain(t).range(r).unknown(n)},i.o.apply(u,arguments)}},73113:(n,t,r)=>{r.d(t,{Z:()=>l});var e=r(88747),i=r(14547),o=r(37012),a=r(86425),u=r(29641),c=r(86790);function l(n,t,r,l){var s,h=(0,e.ly)(n,t,r);switch((l=(0,i.Z)(null==l?",f":l)).type){case"s":var f=Math.max(Math.abs(n),Math.abs(t));return null!=l.precision||isNaN(s=(0,o.Z)(h,f))||(l.precision=s),(0,a.jH)(l,f);case"":case"e":case"g":case"p":case"r":null!=l.precision||isNaN(s=(0,u.Z)(h,Math.max(Math.abs(n),Math.abs(t))))||(l.precision=s-("e"===l.type));break;case"f":case"%":null!=l.precision||isNaN(s=(0,c.Z)(h))||(l.precision=s-2*("%"===l.type))}return(0,a.WU)(l)}},20905:(n,t,r)=>{r.d(t,{H:()=>i,L:()=>e});class e extends Map{constructor(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const[r,e]of n)this.set(r,e)}get(n){return super.get(o(this,n))}has(n){return super.has(o(this,n))}set(n,t){return super.set(a(this,n),t)}delete(n){return super.delete(u(this,n))}}class i extends Set{constructor(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const r of n)this.add(r)}has(n){return super.has(o(this,n))}add(n){return super.add(a(this,n))}delete(n){return super.delete(u(this,n))}}function o(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)?r.get(i):t}function a(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)?r.get(i):(r.set(i,t),t)}function u(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)&&(t=r.get(i),r.delete(i)),t}function c(n){return null!==n&&"object"===typeof n?n.valueOf():n}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3092],{49839:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Nt});var i=n(66845),o=n(67930),a=n(6998),r=n(17330),l=n(57463),s=n(97943),d=n(41342),c=n(17875),u=n(87814),m=n(62622),h=n(16295),p=n(50641),g=n(25621),f=n(34367),b=n(31011),v=n(21e3),y=n(68411),w=n(9003),x=n(81354),C=n(46927),E=n(1515),M=n(27466);const T=(0,E.Z)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:i}=e;return{padding:"0.5rem 0 0.5rem 0.5rem",position:"absolute",top:n?"-2.4rem":"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:"-2.4rem"},...i&&{["".concat(i,":hover &, ").concat(i,":active &, ").concat(i,":focus-visible &")]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:"-2.4rem"}}}}}),""),k=(0,E.Z)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,M.Iy)(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.lg,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var R=n(40864);function N(e){let{label:t,show_label:n,icon:i,onClick:o}=e;const a=(0,g.u)(),r=n?t:"";return(0,R.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,R.jsx)(y.Z,{content:(0,R.jsx)(v.ZP,{source:t,allowHTML:!1,style:{fontSize:a.fontSizes.sm}}),placement:y.u.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,R.jsxs)(w.ZP,{onClick:e=>{o&&o(),e.stopPropagation()},kind:x.nW.ELEMENT_TOOLBAR,children:[i&&(0,R.jsx)(C.Z,{content:i,size:"md",testid:"stElementToolbarButtonIcon"}),r&&(0,R.jsx)("span",{children:r})]})})})}const S=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:o,children:a,target:r,disableFullscreenMode:l}=e;return(0,R.jsx)(T,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:o||i,target:r,children:(0,R.jsxs)(k,{children:[a,t&&!l&&!i&&(0,R.jsx)(N,{label:"Fullscreen",icon:f.i,onClick:()=>t()}),n&&!l&&i&&(0,R.jsx)(N,{label:"Close fullscreen",icon:b.m,onClick:()=>n()})]})})};var _=n(38145),I=n.n(_),O=n(96825),D=n.n(O),F=n(29724),A=n.n(F),H=n(52347),z=n(53608),V=n.n(z),j=(n(87717),n(55842),n(91191));const L=["true","t","yes","y","on","1"],W=["false","f","no","n","off","0"];function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e="\u26a0\ufe0f ".concat(e),{kind:o.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?"\n\n".concat(t,"\n"):""),displayData:e,isError:!0}}function Y(e){return e.hasOwnProperty("isError")&&e.isError}function P(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function Z(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.p6.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.p6.Loading,allowOverlay:!1}}function q(e,t){const n=t?"faded":"normal";return{kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function J(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function U(e,t){return(0,p.le)(e)?t||{}:(0,p.le)(t)?e||{}:D()(e,t)}function K(e){if((0,p.le)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(t){return[e]}}try{const t=JSON.parse(JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)));return Array.isArray(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:G(e))):[G(t)]}catch(t){return[G(e)]}}function G(e){try{try{return I()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return"[".concat(typeof e,"]")}}function X(e){if((0,p.le)(e))return null;if("boolean"===typeof e)return e;const t=G(e).toLowerCase().trim();return""===t?null:!!L.includes(t)||!W.includes(t)&&void 0}function Q(e){if((0,p.le)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=A().unformat(e.trim());if((0,p.bb)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function $(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,p.le)(t)||""===t?(0===n&&(e=Math.round(e)),A()(e).format((0,p.bb)(n)?"0,0.".concat("0".repeat(n)):"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):"duration[ns]"===t?V().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?j.fu.formatPeriodType(BigInt(e),t):(0,H.sprintf)(t,e)}function ee(e,t){return"locale"===t?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate()):"distance"===t?e.fromNow():"relative"===t?e.calendar():e.format(t)}function te(e){if((0,p.le)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{const t=Number(e);if(!isNaN(t)){let e=t;t>=10**18?e=t/1e3**3:t>=10**15?e=t/1e6:t>=10**12&&(e=t/1e3);const n=V().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=V().utc(e);if(t.isValid())return t.toDate();const n=V().utc(e,[V().HTML5_FMT.TIME_MS,V().HTML5_FMT.TIME_SECONDS,V().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function ne(e){if(e%1===0)return 0;let t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}const ie=new RegExp(/(\r\n|\n|\r)/gm);function oe(e){return-1!==e.indexOf("\n")?e.replace(ie," "):e}var ae=n(23849);function re(e){const t={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return{...e,kind:"object",sortMode:"default",isEditable:!1,getCell(e){try{const n=(0,p.bb)(e)?G(e):null,i=(0,p.bb)(n)?oe(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,p.le)(e)}}catch(n){return B(G(e),"The value cannot be interpreted as a string. Error: ".concat(n))}},getCellValue:e=>void 0===e.data?null:e.data}}re.isEditableType=!1;const le=re;function se(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(r){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(r)}const i={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},a=i=>{if((0,p.le)(i))return!e.isRequired;let o=G(i),a=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),a=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!a||o)};return{...e,kind:"text",sortMode:"default",validateInput:a,getCell(e,t){if("string"===typeof n)return B(G(e),n);if(t){const t=a(e);if(!1===t)return B(G(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,p.bb)(e)?G(e):null,n=(0,p.bb)(t)?oe(t):"";return{...i,isMissingValue:(0,p.le)(t),data:t,displayData:n}}catch(r){return B("Incompatible value","The value cannot be interpreted as string. Error: ".concat(r))}},getCellValue:e=>void 0===e.data?null:e.data}}se.isEditableType=!0;const de=se;function ce(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function ue(e,t,n,i,a,r,l){var s;const d=U({format:n,step:i,timezone:l},t.columnTypeOptions);let c,u,m;if((0,p.bb)(d.timezone))try{var h;c=(null===(h=ce(V()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(b){}(0,p.bb)(d.min_value)&&(u=te(d.min_value)||void 0),(0,p.bb)(d.max_value)&&(m=te(d.max_value)||void 0);const g={kind:o.p6.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-picker-cell",date:void 0,displayDate:"",step:(null===(s=d.step)||void 0===s?void 0:s.toString())||"1",format:a,min:u,max:m}},f=e=>{const n=te(e);return null===n?!t.isRequired:void 0!==n&&(!((0,p.bb)(u)&&r(n)<r(u))&&!((0,p.bb)(m)&&r(n)>r(m)))};return{...t,kind:e,sortMode:"default",validateInput:f,getCell(e,t){if(!0===t){const t=f(e);if(!1===t)return B(G(e),"Invalid input.");t instanceof Date&&(e=t)}const i=te(e);let o="",a="",r=c;if(void 0===i)return B(G(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=V().utc(i);if(!e.isValid())return B(G(i),"This should never happen. Please report this bug. \nError: ".concat(e.toString()));if(d.timezone){try{e=ce(e,d.timezone)}catch(b){return B(e.toISOString(),"Failed to adjust to the provided timezone: ".concat(d.timezone,". \nError: ").concat(b))}r=e.utcOffset()}try{a=ee(e,d.format||n)}catch(b){return B(e.toISOString(),"Failed to format the date for rendering with: ".concat(d.format,". \nError: ").concat(b))}o=ee(e,n)}return{...g,copyData:o,isMissingValue:(0,p.le)(i),data:{...g.data,date:i,displayDate:a,timezoneOffset:r}}},getCellValue(e){var t;return(0,p.le)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:r(e.data.date)}}}function me(e){var t,n,i,o,a;let r="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?r="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(r="YYYY-MM-DD HH:mm:ss.SSS");const l=null===(i=e.arrowType)||void 0===i||null===(o=i.meta)||void 0===o?void 0:o.timezone,s=(0,p.bb)(l)||(0,p.bb)(null===e||void 0===e||null===(a=e.columnTypeOptions)||void 0===a?void 0:a.timezone);return ue("datetime",e,s?r+"Z":r,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),l)}function he(e){var t,n;let i="HH:mm:ss";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(i="HH:mm:ss.SSS"),ue("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function pe(e){return ue("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function ge(e){const t={kind:o.p6.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"checkbox",sortMode:"default",getCell(e){let n=null;return n=X(e),void 0===n?B(G(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,p.le)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}me.isEditableType=!0,he.isEditableType=!0,pe.isEditableType=!0,ge.isEditableType=!0;const fe=ge;function be(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function ve(e){const t=j.fu.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=U({step:be(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),a=(0,p.le)(i.min_value)||i.min_value<0,r=(0,p.bb)(i.step)&&!Number.isNaN(i.step)?ne(i.step):void 0,l={kind:o.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:a,fixedDecimals:r},s=t=>{let n=Q(t);if((0,p.le)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,p.bb)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,p.bb)(i.min_value)&&n<i.min_value)&&(!o||n)};return{...e,kind:"number",sortMode:"smart",validateInput:s,getCell(e,t){if(!0===t){const t=s(e);if(!1===t)return B(G(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=Q(e),o="";if((0,p.bb)(n)){if(Number.isNaN(n))return B(G(e),"The value cannot be interpreted as a number.");if((0,p.bb)(r)&&(a=n,n=0===(d=r)?Math.trunc(a):Math.trunc(a*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return B(G(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=$(n,i.format,r)}catch(c){return B(G(n),(0,p.bb)(i.format)?"Failed to format the number based on the provided format configuration: (".concat(i.format,"). Error: ").concat(c):"Failed to format the number. Error: ".concat(c))}}var a,d;return{...l,data:n,displayData:o,isMissingValue:(0,p.le)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ve.isEditableType=!0;const ye=ve;function we(e){let t="string";const n=U({options:"bool"===j.fu.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),i=new Set(n.options.map((e=>typeof e)));1===i.size&&(i.has("number")||i.has("bigint")?t="number":i.has("boolean")&&(t="boolean"));const a={kind:o.p6.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>G(e)))],value:"",readonly:!e.isEditable}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,p.bb)(e)&&""!==e&&(n=G(e)),t&&!a.data.allowedValues.includes(n)?B(G(n),"The value is not part of the allowed options."):{...a,isMissingValue:null===n,copyData:n||"",data:{...a.data,value:n}}},getCellValue(e){var n,i,o,a,r,l,s;return(0,p.le)(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(a=Q(null===(r=e.data)||void 0===r?void 0:r.value))&&void 0!==a?a:null:"boolean"===t?null!==(l=X(null===(s=e.data)||void 0===s?void 0:s.value))&&void 0!==l?l:null:null===(o=e.data)||void 0===o?void 0:o.value}}}we.isEditableType=!0;const xe=we;function Ce(e){const t={kind:o.p6.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return{...e,kind:"list",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.le)(e)?[]:K(e);return{...t,data:n,isMissingValue:(0,p.le)(e),copyData:(0,p.le)(e)?"":G(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,p.le)(e.data)||P(e)?null:e.data}}Ce.isEditableType=!1;const Ee=Ce;function Me(e,t,n){const i=new RegExp("".concat(e,"[,\\s].*{(?:[^}]*[\\s;]{1})?").concat(t,":\\s*([^;}]+)[;]?.*}"),"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function Te(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===j.fu.getTypeName(n)&&(o=!1),{id:"index-".concat(t),name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ke(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,p.le)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===j.fu.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,p.bb)(n)&&(i={options:n})}return{id:"column-".concat(n,"-").concat(t),name:n,title:n,isEditable:!0,arrowType:o,columnTypeOptions:i,isIndex:!1,isHidden:!1}}function Re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?j.fu.getTypeName(e.arrowType):null;let a;if("object"===e.kind)a=e.getCell((0,p.bb)(t.content)?oe(j.fu.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,p.bb)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var r,l;let n;var s,d,c;if("time"===i&&(0,p.bb)(null===(r=t.field)||void 0===r||null===(l=r.type)||void 0===l?void 0:l.unit))n=V().unix(j.fu.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(c=d.type)||void 0===c?void 0:c.unit)&&void 0!==s?s:0)).utc().toDate();else n=V().utc(Number(t.content)).toDate();a=e.getCell(n)}else if("decimal"===i){const n=(0,p.le)(t.content)?null:j.fu.format(t.content,t.contentType,t.field);a=e.getCell(n)}else a=e.getCell(t.content);if(Y(a))return a;if(!e.isEditable){if((0,p.bb)(t.displayContent)){var u;const e=oe(t.displayContent);a.kind===o.p6.Text||a.kind===o.p6.Number||a.kind===o.p6.Uri?a={...a,displayData:e}:a.kind===o.p6.Custom&&"date-picker-cell"===(null===(u=a.data)||void 0===u?void 0:u.kind)&&(a={...a,data:{...a.data,displayDate:e}})}n&&t.cssId&&(a=function(e,t,n){const i={},o=Me(t,"color",n);o&&(i.textDark=o);const a=Me(t,"background-color",n);return a&&(i.bgCell=a),"yellow"===a&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(a,t.cssId,n))}return a}function Ne(e){const t=e.columnTypeOptions||{};let n,i;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(l)}if(!(0,p.le)(t.display_text)&&t.display_text.includes("(")&&t.display_text.includes(")"))try{i=new RegExp(t.display_text,"us")}catch(l){i=void 0}const a={kind:o.p6.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},r=i=>{if((0,p.le)(i))return!e.isRequired;const o=G(i);return!(t.max_chars&&o.length>t.max_chars)&&!(n instanceof RegExp&&!1===n.test(o))};return{...e,kind:"link",sortMode:"default",validateInput:r,getCell(e,o){if((0,p.le)(e))return{...a,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return B(G(s),n);if(o){if(!1===r(s))return B(G(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,p.le)(t))return"";try{const n=t.match(e);return n&&void 0!==n[1]?decodeURI(n[1]):t}catch(l){return t}}(i,s):t.display_text||s),{...a,data:s,displayData:d,isMissingValue:(0,p.le)(s),onClickUri:e=>{window.open(s.startsWith("www.")?"https://".concat(s):s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,p.le)(e.data)?null:e.data}}Ne.isEditableType=!0;const Se=Ne;function _e(e){const t={kind:o.p6.Image,data:[],displayData:[],readonly:!0,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return{...e,kind:"image",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.bb)(e)?[G(e)]:[];return{...t,data:n,isMissingValue:!(0,p.bb)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}_e.isEditableType=!1;const Ie=_e;function Oe(e){const t=be(j.fu.getTypeName(e.arrowType)),n=U({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=$(n.max_value,n.format)}catch(l){i=G(n.max_value)}const a=(0,p.le)(n.step)||Number.isNaN(n.step)?void 0:ne(n.step),r={kind:o.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:n.min_value,max:n.max_value,step:n.step,value:n.min_value,label:String(n.min_value),measureLabel:i,readonly:!0}};return{...e,kind:"progress",sortMode:"smart",isEditable:!1,getCell(e){if((0,p.le)(e))return Z();if((0,p.le)(n.min_value)||(0,p.le)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return B("Invalid min/max parameters","The min_value (".concat(n.min_value,") and max_value (").concat(n.max_value,") parameters must be valid numbers."));if((0,p.le)(n.step)||Number.isNaN(n.step))return B("Invalid step parameter","The step parameter (".concat(n.step,") must be a valid number."));const t=Q(e);if(Number.isNaN(t)||(0,p.le)(t))return B(G(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return B(G(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=$(t,n.format,a)}catch(l){return B(G(t),(0,p.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(l):"Failed to format the number. Error: ".concat(l))}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...r,isMissingValue:(0,p.le)(e),copyData:String(t),data:{...r.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}}}Oe.isEditableType=!1;const De=Oe;function Fe(e,t,n){const i=U({y_min:0,y_max:1},t.columnTypeOptions),a={kind:o.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[i.y_min,i.y_max]}};return{...t,kind:e,sortMode:"default",isEditable:!1,getCell(e){if((0,p.le)(i.y_min)||(0,p.le)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return B("Invalid min/max y-axis configuration","The y_min (".concat(i.y_min,") and y_max (").concat(i.y_max,") configuration options must be valid numbers."));if((0,p.le)(e))return Z();const t=K(e),n=[];let o=[];if(0===t.length)return Z();let r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=Q(t[i]);if(Number.isNaN(e)||(0,p.le)(e))return B(G(t),"The value cannot be interpreted as a numeric array. ".concat(G(e)," is not a number."));e>r&&(r=e),e<l&&(l=e),n.push(e)}return o=n.length>0&&(r>i.y_max||l<i.y_min)?n.map((e=>r-l===0?r>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-l)/(r-l))+(i.y_min||0))):n,{...a,copyData:n.join(","),data:{...a.data,values:o,displayValues:n.map((e=>$(e)))},isMissingValue:(0,p.le)(e)}},getCellValue(e){var t,n;return e.kind===o.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}}}function Ae(e){return Fe("line_chart",e,"line")}function He(e){return Fe("bar_chart",e,"bar")}function ze(e){return Fe("area_chart",e,"area")}Ae.isEditableType=!1,He.isEditableType=!1,ze.isEditableType=!1;const Ve=new Map(Object.entries({object:le,text:de,checkbox:fe,selectbox:xe,list:Ee,number:ye,link:Se,datetime:me,date:pe,time:he,line_chart:Ae,bar_chart:He,area_chart:ze,image:Ie,progress:De})),je=[],Le="_index",We="_pos:",Be={small:75,medium:200,large:400};function Ye(e){if(!(0,p.le)(e))return"number"===typeof e?e:e in Be?Be[e]:void 0}function Pe(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==Le?n=t.get(e.name):t.has("".concat(We).concat(e.indexNumber))?n=t.get("".concat(We).concat(e.indexNumber)):e.isIndex&&t.has(Le)&&(n=t.get(Le)),n?D()({...e},{title:n.label,width:Ye(n.width),isEditable:(0,p.bb)(n.disabled)?!n.disabled:void 0,isHidden:n.hidden,isRequired:n.required,columnTypeOptions:n.type_config,contentAlignment:n.alignment,defaultValue:n.default,help:n.help}):e}function Ze(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,p.bb)(n)&&(Ve.has(n)?i=Ve.get(n):(0,ae.KE)("Unknown column type configured in column configuration: ".concat(n))),(0,p.le)(i)&&(i=function(e){let t=e?j.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?de:["datetime","datetimetz"].includes(t)?me:"time"===t?he:"date"===t?pe:["object","bytes"].includes(t)?le:["bool"].includes(t)?fe:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?ye:"categorical"===t?xe:t.startsWith("list")?Ee:le):le}(e.arrowType)),i}const qe=function(e,t,n){const o=(0,g.u)(),a=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,ae.H)(t),new Map}}(e.columns)),[e.columns]),r=e.useContainerWidth||(0,p.bb)(e.width)&&e.width>0;return{columns:i.useMemo((()=>{let i=function(e){const t=[],{dimensions:n}=e,i=n.headerColumns,o=n.dataColumns;if(0===i&&0===o)return t.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),t;for(let a=0;a<i;a++){const n={...Te(e,a),indexNumber:a};t.push(n)}for(let a=0;a<o;a++){const n={...ke(e,a),indexNumber:a+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Pe(t,a),isStretched:r};const l=Ze(i);return(e.editingMode===h.Eh.EditingMode.READ_ONLY||n||!1===l.isEditableType)&&(i={...i,isEditable:!1}),e.editingMode!==h.Eh.EditingMode.READ_ONLY&&1==i.isEditable&&(i={...i,icon:"editable"},i.isRequired&&e.editingMode===h.Eh.EditingMode.DYNAMIC&&(i={...i,isHidden:!1})),l(i,o)})).filter((e=>!e.isHidden));if(e.columnOrder&&e.columnOrder.length>0){const t=[];i.forEach((e=>{e.isIndex&&t.push(e)})),e.columnOrder.forEach((e=>{const n=i.find((t=>t.name===e));n&&!n.isIndex&&t.push(n)})),i=t}return i.length>0?i:[le({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,a,r,n,e.editingMode,e.columnOrder,o])}};function Je(e){return e.isIndex?Le:(0,p.le)(e.name)?"":e.name}const Ue=class{constructor(e){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=e}toJson(e){const t=new Map;e.forEach((e=>{t.set(e.indexNumber,e)}));const n={edited_rows:{},added_rows:[],deleted_rows:[]};this.editedCells.forEach(((e,i,o)=>{const a={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(a[Je(o)]=o.getCellValue(e))})),n.edited_rows[i]=a})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,a)=>{const r=t.get(n);if(r){const t=r.getCellValue(e);r.isRequired&&r.isEditable&&P(e)&&(o=!0),(0,p.bb)(t)&&(i[Je(r)]=t)}})),o||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}fromJson(e,t){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];const n=JSON.parse(e),i=new Map;t.forEach((e=>{i.set(e.indexNumber,e)}));const o=new Map;t.forEach((e=>{o.set(Je(e),e)})),Object.keys(n.edited_rows).forEach((e=>{const t=Number(e),i=n.edited_rows[e];Object.keys(i).forEach((e=>{const n=i[e],a=o.get(e);if(a){const e=a.getCell(n);var r;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(r=this.editedCells.get(t))||void 0===r||r.set(a.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const t=new Map;Object.keys(e).forEach((n=>{const i=e[n],a=o.get(n);if(a){const e=a.getCell(i);e&&t.set(a.indexNumber,e)}})),this.addedRows.push(t)})),this.deletedRows=n.deleted_rows}isAddedRow(e){return e>=this.numRows}getCell(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);const n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}setCell(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map);this.editedCells.get(t).set(e,n)}}addRow(e){this.addedRows.push(e)}deleteRows(e){e.sort(((e,t)=>t-e)).forEach((e=>{this.deleteRow(e)}))}deleteRow(e){(0,p.le)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort(((e,t)=>e-t))),this.editedCells.delete(e)))}getOriginalRowIndex(e){let t=e;for(let n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}getNumRows(){return this.numRows+this.addedRows.length-this.deletedRows.length}};var Ke=n(35704);const Ge=function(){const e=(0,g.u)(),t=i.useMemo((()=>({editable:e=>'<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="'.concat(e.bgColor,'"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>')})),[]);return{theme:i.useMemo((()=>({accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,Ke.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,Ke.DZ)(e.colors.primary,.9),resizeIndicatorColor:e.colors.primary,bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.secondaryBg,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:"".concat(e.fontSizes.sm),baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,Ke.DZ)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25})),[e]),tableBorderRadius:e.radii.lg,headerIcons:t}};const Xe=function(e,t,n,o){return{getCellContent:i.useCallback((i=>{let[a,r]=i;if(a>t.length-1)return B("Column index out of bounds.","This should never happen. Please report this bug.");if(r>n-1)return B("Row index out of bounds.","This should never happen. Please report this bug.");const l=t[a],s=l.indexNumber,d=o.current.getOriginalRowIndex(r);if(l.isEditable||o.current.isAddedRow(d)){const e=o.current.getCell(s,d);if(void 0!==e)return e}try{return Re(l,e.getCell(d+1,s),e.cssStyles)}catch(c){return(0,ae.H)(c),B("Error during cell creation.","This should never happen. Please report this bug. \nError: ".concat(c))}}),[t,n,e,o])}};var Qe=n(32700);const $e=function(e,t,n){const[o,a]=i.useState(),{getCellContent:r,getOriginalIndex:l}=(0,Qe.fF)({columns:t.map((e=>J(e))),getCellContent:n,rows:e,sort:o}),s=i.useMemo((()=>function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?"\u2191 ".concat(e.title):"\u2193 ".concat(e.title)}:e))}(t,o)),[t,o]),d=i.useCallback((e=>{let t="asc";const n=s[e];if(o&&o.column.id===n.id){if("asc"!==o.direction)return void a(void 0);t="desc"}a({column:J(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:l,getCellContent:r}},et=",",tt='"',nt='"',it="\n",ot=new RegExp("[".concat([et,tt,it].join(""),"]"));function at(e){return e.map((e=>function(e){if((0,p.le)(e))return"";const t=G(e);if(ot.test(t))return"".concat(tt).concat(t.replace(new RegExp(tt,"g"),nt+tt)).concat(tt);return t}(e))).join(et)+it}const rt=function(e,t,o){return{exportToCsv:i.useCallback((async()=>{try{const i=await n.e(5345).then(n.bind(n,95345)),a=(new Date).toISOString().slice(0,16).replace(":","-"),r="".concat(a,"_export.csv"),l=await i.showSaveFilePicker({suggestedName:r,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),s=new TextEncoder,d=await l.createWritable();await d.write(s.encode("\ufeff"));const c=t.map((e=>e.name));await d.write(s.encode(at(c)));for(let n=0;n<o;n++){const i=[];t.forEach(((t,o,a)=>{i.push(t.getCellValue(e([o,n])))})),await d.write(s.encode(at(i)))}await d.close()}catch(i){(0,ae.KE)("Failed to export data as CSV",i)}}),[t,o,e])}};const lt=function(e,t,n,o,a,r,l){const s=i.useCallback(((t,i)=>{let[r,s]=t;const d=e[r];if(!d.isEditable)return;const c=d.indexNumber,u=n.current.getOriginalRowIndex(a(s)),m=o([r,s]),h=d.getCellValue(m),p=d.getCellValue(i);if(!Y(m)&&p===h)return;const g=d.getCell(p,!0);Y(g)?(0,ae.KE)("Not applying the cell edit since it causes this error:\n ".concat(g.data)):(n.current.setCell(c,u,{...g,lastUpdated:performance.now()}),l())}),[e,n,a,o,l]),d=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i)}),[e,n,t]),c=i.useCallback((()=>{t||(d(),l())}),[d,l,t]),u=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(a(e))));return n.current.deleteRows(e),l(!0),!1}if(null!==(o=i.current)&&void 0!==o&&o.range){const t=[],n=i.current.range;for(let i=n.y;i<n.y+n.height;i++)for(let o=n.x;o<n.x+n.width;o++){const n=e[o];n.isEditable&&!n.isRequired&&(t.push({cell:[o,i]}),s([o,i],n.getCell(null)))}return t.length>0&&(l(),r(t)),!1}return!0}),[e,n,t,r,a,l,s]),m=i.useCallback(((i,s)=>{const[c,u]=i,m=[];for(let h=0;h<s.length;h++){const i=s[h];if(h+u>=n.current.getNumRows()){if(t)break;d()}for(let t=0;t<i.length;t++){const r=i[t],l=h+u,s=t+c;if(s>=e.length)break;const d=e[s];if(d.isEditable){const e=d.getCell(r,!0);if((0,p.bb)(e)&&!Y(e)){const t=d.indexNumber,i=n.current.getOriginalRowIndex(a(l)),r=d.getCellValue(o([s,l]));d.getCellValue(e)!==r&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,l]}))}}}m.length>0&&(l(),r(m))}return!1}),[e,n,t,a,o,d,l,r]),h=i.useCallback(((t,n)=>{const i=t[0];if(i>=e.length)return!0;const o=e[i];if(o.validateInput){const e=o.validateInput(o.getCellValue(n));return!0===e||!1===e?e:o.getCell(e)}return!0}),[e]);return{onCellEdited:s,onPaste:m,onRowAppended:c,onDelete:u,validateCell:h}};const st=function(e,t){const[n,o]=i.useState(),a=i.useRef(null),r=i.useCallback((n=>{if(clearTimeout(a.current),a.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],r=n.location[1];let l;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,p.bb)(s))l=s.help;else if("cell"===n.kind){const e=t([i,r]);s.isRequired&&s.isEditable&&P(e)?l="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(l=e.tooltip)}l&&(a.current=setTimeout((()=>{l&&o({content:l,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,a]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:r}};var dt=n(39806),ct=n(97613),ut=n(5527),mt=n(85e3),ht=n(37538);const pt=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:a,rect:r}=t,l=t.col;if(P(i)&&l<e.length){const i=e[l];return["checkbox","line_chart","bar_chart","progress"].includes(i.kind)?n():(e=>{const{cell:t,theme:n,ctx:i}=e;(0,dt.L6)({...e,theme:{...n,textDark:n.textLight,headerFontFull:"".concat(n.headerFontStyle," ").concat(n.fontFamily),baseFontFull:"".concat(n.baseFontStyle," ").concat(n.fontFamily),markerFontFull:"".concat(n.markerFontStyle," ").concat(n.fontFamily)},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign),i.fillStyle=n.textDark})(t),void(i.isRequired&&i.isEditable&&function(e,t,n){e.save(),e.beginPath(),e.moveTo(t.x+t.width-8,t.y+1),e.lineTo(t.x+t.width,t.y+1),e.lineTo(t.x+t.width,t.y+1+8),e.fillStyle=n.accentColor,e.fill(),e.restore()}(a,r,o))}n()}),[e]),customRenderers:i.useMemo((()=>[ct.Z,ut.Z,mt.Z,ht.ZP,...je]),[])}};const gt=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,a)=>{e.id&&n(new Map(t).set(e.id,a))}),[t]);return{columns:i.useMemo((()=>e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e))),[e,t]),onColumnResize:o}},ft=2,bt=35,vt=50+ft,yt=2*bt+ft;const wt=function(e,t,n,o,a){let r,l=function(e){return Math.max(e*bt+ft,yt)}(t+1+(e.editingMode===h.Eh.EditingMode.DYNAMIC?1:0)),s=Math.min(l,400);e.height&&(s=Math.max(e.height,yt),l=Math.max(e.height,l)),o&&(s=Math.min(s,o),l=Math.min(l,o),e.height||(s=l));let d=n;e.useContainerWidth?r=n:e.width&&(r=Math.min(Math.max(e.width,vt),n),d=Math.min(Math.max(e.width,d),n));const[c,u]=i.useState({width:r||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===c.width&&u({width:n,height:c.height})}),[n]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[t]),i.useLayoutEffect((()=>{u({width:r||"100%",height:c.height})}),[r]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(a){const t=e.useContainerWidth||(0,p.bb)(e.width)&&e.width>0;u({width:t?d:"100%",height:l})}else u({width:r||"100%",height:s})}),[a]),{minHeight:yt,maxHeight:l,minWidth:vt,maxWidth:d,resizableSize:c,setResizableSize:u}},xt=(0,E.Z)("img",{target:"e24uaba0"})((()=>({maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"})),""),Ct=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,R.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,R.jsx)(xt,{src:n})}):(0,R.jsx)(xt,{src:n})};var Et=n(31572),Mt=n(13553),Tt=n(80152);const kt=function(e){let{top:t,left:n,content:o,clearTooltip:a}=e;const[r,l]=i.useState(!0),s=(0,g.u)(),{colors:d,fontSizes:c,radii:u}=s,m=i.useCallback((()=>{l(!1),a()}),[a,l]);return(0,R.jsx)(Et.Z,{content:(0,R.jsx)(Tt.Uo,{className:"stTooltipContent",children:(0,R.jsx)(v.ZP,{style:{fontSize:c.sm},source:o,allowHTML:!1})}),placement:Mt.r4.top,accessibilityType:Mt.SI.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:m,onEsc:m,overrides:{Body:{style:{borderTopLeftRadius:u.md,borderTopRightRadius:u.md,borderBottomLeftRadius:u.md,borderBottomRightRadius:u.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,M.Iy)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:c.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:r,children:(0,R.jsx)("div",{className:"stTooltipTarget","data-testid":"stTooltipTarget",style:{position:"fixed",top:t,left:n}})})},Rt=(0,E.Z)("div",{target:"e1w7nams0"})((e=>{let{hasCustomizedScrollbars:t,theme:n}=e;return{position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:n.radii.lg},"& .dvn-scroller":{...!t&&{scrollbarWidth:"thin"},overflowX:"auto !important",overflowY:"auto !important"}}}),"");n(2739),n(24665);const Nt=(0,m.Z)((function(e){let{element:t,data:n,width:m,height:g,disabled:f,widgetMgr:b,isFullScreen:v,disableFullscreenMode:y,expand:w,collapse:x,fragmentId:C}=e;const E=i.useRef(null),M=i.useRef(null),T=i.useRef(null),{theme:k,headerIcons:_,tableBorderRadius:I}=Ge(),[O,D]=i.useState(!0),[F,A]=i.useState(!1),[H,z]=i.useState(!1),[V,j]=i.useState(!1),L=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),W=i.useMemo((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")||window.navigator.userAgent.includes("Chrome")),[]),[B,Y]=i.useState({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0}),P=i.useCallback((()=>{Y({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0})}),[]),Z=i.useCallback((()=>{Y({columns:B.columns,rows:B.rows,current:void 0})}),[B]),U=i.useCallback((e=>{var t;null===(t=M.current)||void 0===t||t.updateCells(e)}),[]);(0,p.le)(t.editingMode)&&(t.editingMode=h.Eh.EditingMode.READ_ONLY);const{READ_ONLY:K,DYNAMIC:G}=h.Eh.EditingMode,X=n.dimensions,Q=Math.max(0,X.rows-1),$=0===Q&&!(t.editingMode===G&&X.dataColumns>0),ee=Q>15e4,te=i.useRef(new Ue(Q)),[ne,ie]=i.useState(te.current.getNumRows());i.useEffect((()=>{te.current=new Ue(Q),ie(te.current.getNumRows())}),[Q]);const oe=i.useCallback((()=>{te.current=new Ue(Q),ie(te.current.getNumRows())}),[Q]),{columns:ae}=qe(t,n,f);i.useEffect((()=>{if(t.editingMode!==K){const e=b.getStringValue(t);e&&(te.current.fromJson(e,ae),ie(te.current.getNumRows()))}}),[]);const{getCellContent:re}=Xe(n,ae,ne,te),{columns:le,sortColumn:se,getOriginalIndex:de,getCellContent:ce}=$e(Q,ae,re),ue=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ne!==te.current.getNumRows()&&ie(te.current.getNumRows()),e&&P(),(0,p.Ds)(100,(()=>{const e=te.current.toJson(le);let i=b.getStringValue(t);void 0===i&&(i=new Ue(0).toJson([])),e!==i&&b.setStringValue(t,e,{fromUi:n},C)}))()}),[b,t,ne,P,le]),{exportToCsv:me}=rt(ce,le,ne),{onCellEdited:he,onPaste:pe,onRowAppended:ge,onDelete:fe,validateCell:be}=lt(le,t.editingMode!==G,te,ce,de,U,ue),{tooltip:ve,clearTooltip:ye,onItemHovered:we}=st(le,ce),{drawCell:xe,customRenderers:Ce}=pt(le),Ee=i.useMemo((()=>le.map((e=>J(e)))),[le]),{columns:Me,onColumnResize:Te}=gt(Ee),{minHeight:ke,maxHeight:Re,minWidth:Ne,maxWidth:Se,resizableSize:_e,setResizableSize:Ie}=wt(t,ne,m,g,v),Oe=i.useCallback((e=>{let[t,n]=e;return{...q(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:k.textLight},span:[0,Math.max(le.length-1,0)]}}),[le,k.textLight]);i.useEffect((()=>{const e=new u.K;return e.manageFormClearListener(b,t.formId,oe),()=>{e.disconnect()}}),[t.formId,oe,b]);const De=!$&&t.editingMode===G&&!f,Fe=B.rows.length>0,Ae=void 0!==B.current,He=$?0:le.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(T.current&&M.current){var e,t;const n=null===(e=T.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(z(n.height>T.current.clientHeight),j(n.width>T.current.clientWidth))}}),1)}),[_e,ne,Me]),i.useEffect((()=>{Z()}),[v]),(0,R.jsxs)(Rt,{"data-testid":"stDataFrame",className:"stDataFrame",hasCustomizedScrollbars:W,ref:T,onMouseDown:e=>{if(T.current&&W){const t=T.current.getBoundingClientRect();V&&t.height-7<e.clientY-t.top&&e.stopPropagation(),H&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{O||L||e.currentTarget.contains(e.relatedTarget)||Z()},children:[(0,R.jsxs)(S,{isFullScreen:v,disableFullscreenMode:y,locked:Fe||Ae||L&&O,onExpand:w,onCollapse:x,target:Rt,children:[De&&Fe&&(0,R.jsx)(N,{label:"Delete row(s)",icon:l.H,onClick:()=>{fe&&(fe(B),ye())}}),De&&!Fe&&(0,R.jsx)(N,{label:"Add row",icon:s.m,onClick:()=>{ge&&(D(!0),ge(),ye())}}),!ee&&!$&&(0,R.jsx)(N,{label:"Download as CSV",icon:d.k,onClick:()=>me()}),!$&&(0,R.jsx)(N,{label:"Search",icon:c.o,onClick:()=>{F?A(!1):(D(!0),A(!0)),ye()}})]}),(0,R.jsx)(r.e,{"data-testid":"stDataFrameResizable",ref:E,defaultSize:_e,style:{border:"1px solid ".concat(k.borderColor),borderRadius:"".concat(I)},minHeight:ke,maxHeight:Re,minWidth:Ne,maxWidth:Se,size:_e,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,bt],snapGap:bt/3,onResizeStop:(e,t,n,i)=>{E.current&&Ie({width:E.current.size.width,height:Re-E.current.size.height===ft?E.current.size.height+ft:E.current.size.height})},children:(0,R.jsx)(a.F,{className:"glideDataEditor",ref:M,columns:Me,rows:$?1:ne,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:bt,headerHeight:bt,getCellContent:$?Oe:ce,onColumnResize:L?void 0:Te,resizeIndicator:"header",freezeColumns:He,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:L?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:we,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(A((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:F,onSearchClose:()=>{A(!1),ye()},onHeaderClicked:$||ee?void 0:se,gridSelection:B,onGridSelectionChange:e=>{(O||L)&&(Y(e),void 0!==ve&&ye())},theme:k,onMouseMove:e=>{"out-of-bounds"===e.kind&&O?D(!1):"out-of-bounds"===e.kind||O||D(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...W&&{paddingBottom:V?-6:void 0,paddingRight:H?-6:void 0}},drawCell:xe,customRenderers:Ce,imageEditorOverride:Ct,headerIcons:_,validateCell:be,onPaste:!1,...!$&&t.editingMode!==K&&!f&&{fillHandle:!L,onCellEdited:he,onPaste:pe,onDelete:fe},...!$&&t.editingMode===G&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkerTheme:{bgCell:k.bgHeader,bgCellMedium:k.bgHeader},rowMarkers:"checkbox",rowSelectionMode:"multi",rowSelect:f?"none":"multi",onRowAppended:f?void 0:ge,onHeaderClicked:void 0}})}),ve&&ve.content&&(0,R.jsx)(kt,{top:ve.top,left:ve.left,content:ve.content,clearTooltip:ye})]})}),!0)},87814:(e,t,n)=>{n.d(t,{K:()=>o});var i=n(50641);class o{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3513],{33513:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});i(66845);var l=i(81354),s=i(27446),a=i(9003),d=i(21e3),n=i(40864);const r=function(e){const{disabled:t,element:i,widgetMgr:r,width:o,endpoints:u,fragmentId:c}=e,h={width:o},p="primary"===i.type?l.nW.PRIMARY:l.nW.SECONDARY,b=!i.help||o;return(0,n.jsx)("div",{className:"row-widget stDownloadButton","data-testid":"stDownloadButton",style:h,children:(0,n.jsx)(s.t,{help:i.help,children:(0,n.jsx)(a.ZP,{kind:p,size:l.V5.SMALL,disabled:t,onClick:()=>{r.setTriggerValue(i,{fromUi:!0},c);const e=document.createElement("a"),t=u.buildMediaURL(i.url);e.setAttribute("href",t),e.setAttribute("target","_self"),e.setAttribute("download",""),e.click()},fluidWidth:!!i.useContainerWidth&&b,children:(0,n.jsx)(d.ZP,{source:i.label,allowHTML:!1,isLabel:!0,largerLabel:!0,disableLinks:!0})})})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4113],{34113:(e,r,t)=>{t.r(r),t.d(r,{default:()=>f});var o=t(66845),a=t(46927),n=t(68411),l=t(27446),i=t(21e3),s=t(66694),d=t(84457),c=t(1515);const g=(0,c.Z)("div",{target:"e11k5jya2"})((e=>{let{}=e;return{display:"flex",flexDirection:"column"}}),""),p=(0,c.Z)("a",{target:"e11k5jya1"})((e=>{let{disabled:r,isCurrentPage:t,fluidWidth:o,theme:a}=e;return{textDecoration:"none",width:"number"==typeof o?"".concat(o,"px"):"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:a.spacing.sm,borderRadius:a.spacing.twoXS,paddingLeft:a.spacing.sm,paddingRight:a.spacing.sm,marginTop:a.spacing.threeXS,marginBottom:a.spacing.threeXS,lineHeight:a.lineHeights.menuItem,backgroundColor:t?a.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:t?a.colors.darkenedBgMix25:a.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:a.colors.darkenedBgMix15},"@media print":{paddingLeft:a.spacing.none},...r?{borderColor:a.colors.fadedText10,backgroundColor:a.colors.transparent,color:a.colors.fadedText40,cursor:"not-allowed","&:hover":{color:a.colors.fadedText40,backgroundColor:a.colors.transparent}}:{}}}),""),u=(0,c.Z)("span",{target:"e11k5jya0"})((e=>{let{disabled:r,theme:t}=e;return{color:t.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...r?{borderColor:t.colors.fadedText10,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:"not-allowed"}:{}}}),"");var h=t(40864);const f=function(e){const{onPageChange:r,currentPageScriptHash:t}=o.useContext(s.E),c=o.useContext(d.Z),{disabled:f,element:x,width:b}=e,k={width:b},m=function(e,r){return!(null!==e||!r)||!(null===e&&!r)&&!0===e}(x.useContainerWidth,c),C=t===x.pageScriptHash;return(0,h.jsx)("div",{className:"row-widget stPageLink","data-testid":"stPageLink",style:k,children:(0,h.jsx)(l.t,{help:x.help,placement:n.u.TOP_RIGHT,children:(0,h.jsx)(g,{children:(0,h.jsxs)(p,{"data-testid":"stPageLink-NavLink",disabled:f,isCurrentPage:C,fluidWidth:!!m&&b,href:x.page,target:x.external?"_blank":"",rel:"noreferrer",onClick:e=>{x.external?f&&e.preventDefault():(e.preventDefault(),f||r(x.pageScriptHash))},children:[x.icon&&(0,h.jsx)(a.S,{size:"lg",children:x.icon}),(0,h.jsx)(u,{disabled:f,children:(0,h.jsx)(i.ZP,{source:x.label,allowHTML:!1,isLabel:!0,boldLabel:C,largerLabel:!0,disableLinks:!0})})]})})})})}}}]);