PageSourceSearch

https://vishal2161-question-extractor.hf.space/static/js/43.9f73184f.chunk.js

js vishal2161-question-extractor.hf.space collected 2026-10-03 17:29:52 UTC 9,613 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[43],{10043:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var a=n(11026),o=n(11092),i=n(27791),r=n(22951),s=n(91976),l=n(67591),d=n(94337),c=n(66845),u=n(25621),h=n(6988),g=n(40566),f=n(60784),m=n(23849),p=n(62622),v=n(63765),b=n(5834),y=n(50189),w=n(72706),x=n(27466);function S(e,t){var n={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:t.fontSizes.smPx+2,orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.mdPx,titleColor:(0,x.Xy)(t),titleFontStyle:"normal",labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),labelFontStyle:"normal"},axis:{labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.smPx,titleColor:(0,x.Xy)(t),titleFontStyle:"normal",ticks:!1,gridColor:(0,x.ny)(t),domain:!1,domainWidth:1,domainColor:(0,x.ny)(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:t.spacing.lgPx,labelPadding:t.spacing.lgPx,labelSeparation:t.spacing.twoXSPx,labelOverlap:!0},legend:{labelFontSize:t.fontSizes.smPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),titleFontSize:t.fontSizes.smPx,titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:(0,x.Xy)(t),titlePadding:5,labelPadding:t.spacing.lgPx,columnPadding:t.spacing.smPx,rowPadding:t.spacing.twoXSPx,padding:7,symbolStrokeWidth:4},range:{category:(0,x.iY)(t),diverging:(0,x.ru)(t),ramp:(0,x.Gy)(t),heatmap:(0,x.Gy)(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400},concat:{columns:1},facet:{columns:1},mark:(0,y.Z)({tooltip:!0},(0,x.Iy)(t)?{color:"#0068C9"}:{color:"#83C9FF"}),bar:{binSpacing:t.spacing.twoXSPx,discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?(0,w.mergeWith)({},n,e,(function(e,t){return(0,w.isArray)(t)?t:void 0})):n}var F=(0,n(1515).Z)("div",{target:"egd2k5h0"})((function(e){var t=e.theme;return{"&.vega-embed":{"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&.has-actions":{paddingRight:0},".vega-actions":{zIndex:t.zIndices.popupMenu,backgroundColor:t.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:"1px solid ".concat(t.colors.fadedText10),a:{fontFamily:t.genericFonts.bodyFont,fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.md,margin:0,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.twoXL),color:t.colors.bodyText},"a:hover":{backgroundColor:t.colors.secondaryBg,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},summary:{opacity:0,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.lg,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms","&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix25}}}}}),""),z=n(40864),k={DATAFRAME_INDEX:"(index)"},C="source",V=new Set([b.GI.DatetimeIndex,b.GI.Float64Index,b.GI.Int64Index,b.GI.RangeIndex,b.GI.UInt64Index]),P=function(e){(0,l.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).vegaView=void 0,e.vegaFinalizer=void 0,e.defaultDataName=C,e.element=null,e.state={error:void 0},e.finalizeView=function(){e.vegaFinalizer&&e.vegaFinalizer(),e.vegaFinalizer=void 0,e.vegaView=void 0},e.generateSpec=function(){var t,n,a=e.props,o=a.element,i=a.theme,r=JSON.parse(o.spec),s=o.useContainerWidth;if("streamlit"===o.vegaLiteTheme?r.config=S(r.config,i):"streamlit"===(null===(t=r.usermeta)||void 0===t||null===(n=t.embedOptions)||void 0===n?void 0:n.theme)?(r.config=S(r.config,i),r.usermeta.embedOptions.theme=void 0):r.config=function(e,t){var n=t.colors,a=t.fontSizes,o=t.genericFonts,i={labelFont:o.bodyFont,titleFont:o.bodyFont,labelFontSize:a.twoSmPx,titleFontSize:a.twoSmPx},r={background:n.bgColor,axis:(0,y.Z)({labelColor:n.bodyText,titleColor:n.bodyText,gridColor:(0,x.ny)(t)},i),legend:(0,y.Z)({labelColor:n.bodyText,titleColor:n.bodyText},i),title:(0,y.Z)({color:n.bodyText,subtitleColor:n.bodyText},i),header:(0,y.Z)({labelColor:n.bodyText,titleColor:n.bodyText},i),view:{stroke:(0,x.ny)(t),continuousHeight:350,continuousWidth:400},mark:{tooltip:!0}};return e?(0,w.merge)({},r,e):r}(r.config,i),e.props.height?(r.width=e.props.width,r.height=e.props.height):s&&(r.width=e.props.width),r.padding||(r.padding={}),null==r.padding.bottom&&(r.padding.bottom=20),r.datasets)throw new Error("Datasets should not be passed as part of the spec");return r},e}
1return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=(0,i.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.createView();case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),t=(0,v.b)(e.t0),this.setState({error:t});case 9:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.finalizeView()}},{key:"componentDidUpdate",value:function(){var e=(0,i.Z)((0,o.Z)().mark((function e(t){var n,i,r,s,l,d,c,u,h,g,f,p,b,y,w,x,S,F,z,k,C,V;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.element,i=t.theme,r=this.props,s=r.element,l=r.theme,d=n.spec,c=s.spec,this.vegaView&&d===c&&i===l&&t.width===this.props.width&&t.height===this.props.height&&t.element.vegaLiteTheme===this.props.element.vegaLiteTheme){e.next=16;break}return(0,m.ji)("Vega spec changed."),e.prev=6,e.next=9,this.createView();case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),u=(0,v.b)(e.t0),this.setState({error:u});case 15:return e.abrupt("return");case 16:for(h=n.data,g=s.data,(h||g)&&this.updateData(this.defaultDataName,h,g),f=W(n)||{},p=W(s)||{},b=0,y=Object.entries(p);b<y.length;b++)w=(0,a.Z)(y[b],2),x=w[0],S=w[1],F=x||this.defaultDataName,z=f[F],this.updateData(F,z,S);for(k=0,C=Object.keys(f);k<C.length;k++)V=C[k],p.hasOwnProperty(V)||V===this.defaultDataName||this.updateData(V,null,null);this.vegaView.resize().runAsync();case 24:case"end":return e.stop()}}),e,this,[[6,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"updateData",value:function(e,t,n){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(n&&0!==n.data.numRows)if(t&&0!==t.data.numRows){var a=t.dimensions,o=a.dataRows,i=a.dataColumns,r=n.dimensions,s=r.dataRows;if(function(e,t,n,a,o,i){if(n!==i)return!1;if(t>=o)return!1;if(0===t)return!1;var r=i-1,s=t-1;if(e.getDataValue(0,r)!==a.getDataValue(0,r)||e.getDataValue(s,r)!==a.getDataValue(s,r))return!1;return!0}(t,o,i,n,s,r.dataColumns))o<s&&this.vegaView.insert(e,T(n,o));else{var l=g.changeset().remove(g.truthy).insert(T(n));this.vegaView.change(e,l),(0,m.ji)("Had to clear the ".concat(e," dataset before inserting data through Vega view."))}}else this.vegaView.insert(e,T(n));else this.vegaView._runtime.data.hasOwnProperty(e)&&this.vegaView.remove(e,g.truthy)}},{key:"createView",value:function(){var e=(0,i.Z)((0,o.Z)().mark((function e(){var t,n,i,r,s,l,d,c,u,g,p,v,b,y,w,x,S;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,m.ji)("Creating a new Vega view."),this.element){e.next=3;break}throw Error("Element missing.");case 3:return this.finalizeView(),t=this.props.element,n=this.generateSpec(),i={ast:!0,expr:f.N,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},e.next=9,(0,h.ZP)(this.element,n,i);case 9:if(r=e.sent,s=r.vgSpec,l=r.view,d=r.finalize,this.vegaView=l,this.vegaFinalizer=d,c=Z(t),1===(u=c?Object.keys(c):[]).length?(g=(0,a.Z)(u,1),p=g[0],this.defaultDataName=p):0===u.length&&s.data&&(this.defaultDataName=C),(v=D(t))&&l.insert(this.defaultDataName,v),c)for(b=0,y=Object.entries(c);b<y.length;b++)w=(0,a.Z)(y[b],2),x=w[0],S=w[1],l.insert(x,S);return e.next=23,l.runAsync();case 23:this.vegaView.resize().runAsync();case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this;if(this.state.error)throw this.state.error;return(0,z.jsx)(F,{"data-testid":"stArrowVegaLiteChart",ref:function(t){e.element=t}})}}]),n}(c.PureComponent);function D(e){var t=e.data;return t&&0!==t.data.numRows?T(t):null}function Z(e){var t=W(e);if(null==t)return null;for(var n={},o=0,i=Object.entries(t);o<i.length;o++){var r=(0,a.Z)(i[o],2),s=r[0],l=r[1];n[s]=T(l)}return n}function W(e){var t;if(0===(null===(t=e.datasets)||void 0===t?void 0:t.length))return null;var n={};return e.datasets.forEach((function(e){if(e){var t=e.hasName?e.name:null;n[t]=e.data}})),n}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return[];for(var n=[],a=e.dimensions,o=a.dataRows,i=a.dataColumns,r=b.fu.getTypeName(e.types.index[0]),s=V.has(r),l=t;l<o;l++){var d={};if(s){var c=e.getIndexValue(l,0);d[k.DATAFRAME_INDEX]="bigint"===typeof c?Number(c):c}
1for(var u=0;u<i;u++){var h=e.getDataValue(l,u);d[e.columns[0][u]]="bigint"===typeof h?Number(h):h}n.push(d)}return n}var I=(0,u.b)((0,p.Z)(P))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.