PageSourceSearch

https://mrbajaj-mersy-legal-ai.hf.space/assets/Index-BC9Uiqyr.js

js mrbajaj-mersy-legal-ai.hf.space collected 2026-10-03 17:09:29 UTC 6,237 bytes, 2 lines download raw bytes

vendor: 5,802 bytes, line 1
1import{S as T}from"./index-9SlBuhZX.js";import"./IconButtonWrapper.svelte_svelte_type_style_lang-BOpxTcdu.js";import"./StreamingBar.svelte_svelte_type_style_lang-CDNxkBIr.js";import j from"./Index-BYgJCFAH.js";import"./index-JknPi_fQ.js";import"./svelte/svelte.js";import"./MarkdownCode.svelte_svelte_type_style_lang-D57LCKne.js";import"./prism-python-RepOAllt.js";import"./IconButton-B-aAVSzy.js";import"./Clear-By3xiIwg.js";const{SvelteComponent:D,append:L,attr:m,binding_callbacks:Q,create_slot:W,detach:A,element:M,flush:C,get_all_dirty_from_scope:F,get_slot_changes:G,init:J,insert:K,listen:N,safe_not_equal:O,space:U,toggle_class:b,transition_in:V,transition_out:X,update_slot_base:Y}=window.__gradio__svelte__internal,{createEventDispatcher:Z,onMount:x}=window.__gradio__svelte__internal;function ee(n){let e,s,i,l,r,a,f,p;const g=n[10].default,_=W(g,n,n[9],null);return{c(){e=M("div"),s=M("button"),s.innerHTML='<div class="chevron svelte-7y53u7"><span class="chevron-left svelte-7y53u7"></span></div>',i=U(),l=M("div"),_&&_.c(),m(s,"class","toggle-button svelte-7y53u7"),m(s,"aria-label","Toggle Sidebar"),m(l,"class","sidebar-content svelte-7y53u7"),m(e,"class","sidebar svelte-7y53u7"),m(e,"style",r="width: "+n[5]+"; "+n[0]+": calc("+n[5]+" * -1.10)"),b(e,"open",n[1]),b(e,"right",n[0]==="right"),b(e,"reduce-motion",n[3])},m(o,t){K(o,e,t),L(e,s),L(e,i),L(e,l),_&&_.m(l,null),n[12](e),a=!0,f||(p=N(s,"click",n[11]),f=!0)},p(o,[t]){_&&_.p&&(!a||t&512)&&Y(_,g,o,o[9],a?G(g,o[9],t,null):F(o[9]),null),(!a||t&1&&r!==(r="width: "+o[5]+"; "+o[0]+": calc("+o[5]+" * -1.10)"))&&m(e,"style",r),(!a||t&2)&&b(e,"open",o[1]),(!a||t&1)&&b(e,"right",o[0]==="right"),(!a||t&8)&&b(e,"reduce-motion",o[3])},i(o){a||(V(_,o),a=!0)},o(o){X(_,o),a=!1},d(o){o&&A(e),_&&_.d(o),n[12](null),f=!1,p()}}}function te(n,e,s){let{$$slots:i={},$$scope:l}=e;const r=Z();let{open:a=!0}=e,{width:f}=e,{position:p="left"}=e,g=!1,_=!1,o,t=0,c=typeof f=="number"?`${f}px`:f,u;function h(){if(!o.closest(".gradio-container"))return;const d=o.closest(".gradio-container")?.getBoundingClientRect();if(!d)return;const w=d.height;s(2,o.style.height=`${w}px`,o);const $=o.getBoundingClientRect(),E=p==="left"?d.left:window.innerWidth-d.right;t=Math.max(0,$.width-E)}x(()=>{o.closest(".gradio-container")?.classList.add("sidebar-parent"),h(),window.addEventListener("resize",h),(()=>{document.documentElement.style.setProperty("--overlap-amount",`${t}px`)})(),s(8,g=!0);const w=window.matchMedia("(prefers-reduced-motion: reduce)");s(3,u=w.matches);const $=E=>{s(3,u=E.matches)};return w.addEventListener("change",$),()=>{window.removeEventListener("resize",h),w.removeEventListener("change",$)}});const I=()=>{s(1,_=!_),r(_?"expand":"collapse")};function P(d){Q[d?"unshift":"push"](()=>{o=d,s(2,o)})}return n.$$set=d=>{"open"in d&&s(6,a=d.open),"width"in d&&s(7,f=d.width),"position"in d&&s(0,p=d.position),"$$scope"in d&&s(9,l=d.$$scope)},n.$$.update=()=>{n.$$.dirty&320&&g&&s(1,_=a)},[p,_,o,u,r,c,a,f,g,l,i,I,P]}class ne extends D{constructor(e){super(),J(this,e,te,ee,O,{open:6,width:7,position:0})}get open(){return this.$$.ctx[6]}set open(e){this.$$set({open:e}),C()}get width(){return this.$$.ctx[7]}set width(e){this.$$set({width:e}),C()}get position(){return this.$$.ctx[0]}set position(e){this.$$set({position:e}),C()}}const{SvelteComponent:se,add_flush_callback:z,assign:ie,bind:B,binding_callbacks:H,create_component:q,create_slot:oe,destroy_component:y,detach:le,flush:v,get_all_dirty_from_scope:re,get_slot_changes:ae,get_spread_object:ue,get_spread_update:_e,init:ce,insert:de,mount_component:R,safe_not_equal:fe,space:pe,transition_in:k,transition_out:S,update_slot_base:ge}=window.__gradio__svelte__internal;function he(n){let e;const s=n[5].default,i=oe(s,n,n[10],null);return{c(){i&&i.c()},m(l,r){i&&i.m(l,r),e=!0},p(l,r){i&&i.p&&(!e||r&1024)&&ge(i,s,l,l[10],e?ae(s,l[10],r,null):re(l[10]),null)},i(l){e||(k(i,l),e=!0)},o(l){S(i,l),e=!1},d(l){i&&i.d(l)}}}function me(n){let e,s;return e=new j({props:{$$slots:{default:[he]},$$scope:{ctx:n}}}),{c(){q(e.$$.fragment)},m(i,l){R(e,i,l),s=!0},p(i,l){const r={};l&1024&&(r.$$scope={dirty:l,ctx:i}),e.$set(r)},i(i){s||(k(e.$$.fragment,i),s=!0)},o(i){S(e.$$.fragment,i),s=!1},d(i){y(e,i)}}}function be(n){let e,s,i,l,r,a;const f=[{autoscroll:n[3].autoscroll},{i18n:n[3].i18n},n[2]];let p={};for(let t=0;t<f.length;t+=1)p=ie(p,f[t]);e=new T({props:p});function g(t){n[6](t)}function _(t){n[7](t)}let o={width:n[4],$$slots:{default:[me]},$$scope:{ctx:n}};return n[0]!==void 0&&(o.open=n[0]),n[1]!==void 0&&(o.position=n[1]),i=new ne({props:o}),H.push(()=>B(i,"open",g)),H.push(()=>B(i,"position",_)),i.$on("expand",n[8]),i.$on("collapse",n[9]),{c(){q(e.$$.fragment),s=pe(),q(i.$$.fragment)},m(t,c){R(e,t,c),de(t,s,c),R(i,t,c),a=!0},p(t,[c]){const u=c&12?_e(f,[c&8&&{autoscroll:t[3].autoscroll},c&8&&{i18n:t[3].i18n},c&4&&ue(t[2])]):{};e.$set(u);const h={};c&16&&(h.width=t[4]),c&1024&&(h.$$scope={dirty:c,ctx:t}),!l&&c&1&&(l=!0,h.open=t[0],z(()=>l=!1)),!r&&c&2&&(r=!0,h.position=t[1],z(()=>r=!1)),i.$set(h)},i(t){a||(k(e.$$.fragment,t),k(i.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),S(i.$$.fragment,t),a=!1},d(t){t&&le(s),y(e,t),y(i,t)}}}function we(n,e,s){let{$$slots:i={},$$scope:l}=e,{open:r=!0}=e,{position:a="left"}=e,{loading_status:f}=e,{gradio:p}=e,{width:g}=e;function _(u){r=u,s(0,r)}function o(u){a=u,s(1,a)}const t=()=>p.dispatch("expand"),c=()=>p.dispatch("collapse");return n.$$set=u=>{"open"in u&&s(0,r=u.open),"position"in u&&s(1,a=u.position),"loading_status"in u&&s(2,f=u.loading_status),"gradio"in u&&s(3,p=u.gradio),"width"in u&&s(4,g=u.width),"$$scope"in u&&s(10,l=u.$$scope)},[r,a,f,p,g,i,_,o,t,c,l]}class Re extends se{constructor(e){super(),ce(this,e,we,be,fe,{open:0,position:1,loading_status:2,gradio:3,width:4})}get open(){return this.$$.ctx[0]}
1set open(e){this.$$set({open:e}),v()}get position(){return this.$$.ctx[1]}set position(e){this.$$set({position:e}),v()}get loading_status(){return this.$$.ctx[2]}set loading_status(e){this.$$set({loading_status:e}),v()}get gradio(){return this.$$.ctx[3]}set gradio(e){this.$$set({gradio:e}),v()}get width(){return this.$$.ctx[4]}set width(e){this.$$set({width:e}),v()}}export{Re as default};
2//# sourceMappingURL=Index-BC9Uiqyr.js.map

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