PageSourceSearch

https://medsii.com/static/js/37.58333947.chunk.js

js medsii.com collected 2026-10-02 15:26:56 UTC 3,257 bytes, 1 lines download raw bytes

1(this["webpackJsonpmedsii-webapp"]=this["webpackJsonpmedsii-webapp"]||[]).push([[37],{481:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"a",(function(){return b}));var r=t(4),c=t(19),o=t(13),u=t(12),l=t(0),a=t(1),s=Object(l.createContext)(),i=function(){return Object(l.useContext)(s)},b=function(e){var n=e.children,t=Object(l.useState)(null),i=Object(o.a)(t,2),b=i[0],f=i[1],j=Object(l.useState)(!1),d=Object(o.a)(j,2),p=d[0],O=d[1],S=Object(l.useRef)(null),h=Object(l.useRef)(!1),k=Object(l.useRef)(null),v=Object(l.useCallback)((function(){h.current=!0,k.current=null;var e=S.current;S.current=null,f(null),O(!1),e&&(e.onopen=null,e.onclose=null,e.onerror=null,e.readyState!==WebSocket.OPEN&&e.readyState!==WebSocket.CONNECTING||e.close())}),[]),m=Object(l.useCallback)((function(){if(!localStorage.getItem("user_id"))return Promise.reject(new Error("No user_id"));var e=S.current;return(null===e||void 0===e?void 0:e.readyState)===WebSocket.OPEN?Promise.resolve(e):(k.current||(h.current=!1,O(!0),k.current=new Promise((function(e,n){var t=u.a.gaia.createWebSocket+localStorage.getItem("user_id")+"/ws?clientSupportsStreaming=true",r=new WebSocket(t);S.current=r;var c=!1,o=function(e,n){c||(c=!0,clearTimeout(l),k.current=null,O(!1),e(n))},l=setTimeout((function(){r.close(),o(n,new Error("WebSocket connection timeout"))}),1e4);r.onopen=function(){console.log("WebSocket connection established."),f(r),o(e,r)},r.onclose=function(e){console.log("WebSocket connection closed.",e),S.current===r&&(S.current=null,f(null)),o(n,new Error("WebSocket connection closed"))},r.onerror=function(e){console.error("WebSocket error:",e)}})).catch((function(e){if(O(!1),k.current=null,S.current){var n=S.current;S.current=null,f(null),n.onopen=null,n.onclose=null,n.onerror=null,n.readyState!==WebSocket.OPEN&&n.readyState!==WebSocket.CONNECTING||n.close()}throw e}))),k.current)}),[]),w=Object(l.useCallback)(function(){var e=Object(c.a)(Object(r.a)().mark((function e(n){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m();case 3:return e.sent.send(JSON.stringify(n)),e.abrupt("return",!0);case 8:return e.prev=8,e.t0=e.catch(0),console.error("Error sending query:",e.t0),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(n){return e.apply(this,arguments)}}(),[m]);return Object(l.useEffect)((function(){return function(){return v()}}),[v]),Object(a.jsx)(s.Provider,{value:{socket:b,isConnecting:p,connect:m,disconnect:v,sendQuery:w},children:n})}},695:function(e,n,t){"use strict";t.r(n);var r=t(0),c=t(29),o=t(133),u=t(18),l=t(481),a=t(1);n.default=function(e){var n=e.match;return Object(a.jsx)("div",{className:"".concat(u.isMobileOnly?"app-wrapper ":""," h-100 p-0"),children:Object(a.jsx)(l.a,{children:Object(a.jsx)(r.Suspense,{fallback:Object(a.jsx)(o.a,{}),children:Object(a.jsxs)(c.d,{children:[Object(a.jsx)(c.b,{exact:!0,path:"".concat(n.url),component:Object(r.lazy)((function(){return Promise.all([t.e(1),t.e(26),t.e(38)]).then(t.bind(null,667))}))}),Object(a.jsx)(c.b,{exact:!0,path:"".concat(n.url,"/previous"),component:Object(r.lazy)((function(){return Promise.all([t.e(1),t.e(39)]).then(t.bind(null,663))}))})]})})})})}}}]);

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.