PageSourceSearch

https://math-gpt.org/_next/static/chunks/1807.b97a0475a8c0a709.js

js math-gpt.org collected 2026-10-01 12:01:12 UTC 16,224 bytes, 15 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="147007aa-d273-47be-928f-08f54a8b62ce",e._sentryDebugIdIdentifier="sentry-dbid-147007aa-d273-47be-928f-08f54a8b62ce")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1807],{8316:(e,t,r)=>{r.d(t,{A:()=>o});let o=(0,r(75500).A)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]])},33900:(e,t,r)=>{r.d(t,{A:()=>o});let o=(0,r(75500).A)("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]])},36861:(e,t,r)=>{r.d(t,{w:()=>s});var o=r(10940),n=r(9084),a=r(20111);let s=e=>{let{error:t,description:r,className:s}=e;return(0,o.jsx)("div",{className:(0,n.cn)("w-full p-4",s),children:(0,o.jsxs)("div",{className:"flex flex-col p-4 bg-red-50 rounded-lg border border-red-200",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2 text-red-600",children:[(0,o.jsx)(a.A,{className:"h-5 w-5"}),(0,o.jsx)("p",{children:t})]}),!!r&&(0,o.jsx)("span",{className:"text-sm mt-1 text-red-900",children:r})]})})}},64459:(e,t,r)=>{r.d(t,{f:()=>h,s:()=>p});var o=r(10940),n=r(33900),a=r(90712),s=r(63007),i=r(62544),l=r(5926),d=r(9084),c=r(19273),u=r(77329);let h=e=>{let{className:t,children:r,...n}=e;return(0,o.jsx)(c.$,{variant:"ghost",size:"icon",className:(0,d.cn)("h-9 w-9 rounded-full bg-gray-200 text-[#0D2247] hover:bg-gray-100 hover:text-[#0D2247] dark:bg-dark-hover dark:text-dark-text-secondary dark:hover:bg-dark-border dark:hover:text-dark-text-secondary",t),...n,children:r})},p=e=>{let{download:t,filename:r,onOpen:d,onDownload:c,onShare:p}=e,{t:g}=(0,l.Bd)(),m=async e=>{try{let o=await t.getBlob();if(!o)throw Error("no blob");await e(o,"".concat(r,".").concat(t.format.toLowerCase()))}catch(e){u.o.error(g("artifacts.actions.exportError"))}},[f,y]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{var e,t,r;let o=new File([""],"probe.png",{type:"image/png"});y(null!=(r=null==(e=(t=navigator).canShare)?void 0:e.call(t,{files:[o]}))&&r)},[]),(0,o.jsxs)("div",{className:"absolute right-1.5 bottom-1.5 flex gap-1",children:[d&&(0,o.jsx)(h,{"aria-label":g("artifacts.actions.open"),"data-testid":"artifact-open",onClick:e=>{e.stopPropagation(),d()},children:(0,o.jsx)(n.A,{size:18})}),(0,o.jsx)(h,{"aria-label":g("artifacts.actions.download"),"data-testid":"artifact-download",onClick:e=>{e.stopPropagation(),null==c||c(),m((e,t)=>{let r=URL.createObjectURL(e),o=document.createElement("a");o.href=r,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r)})},children:(0,o.jsx)(a.A,{size:18})}),f&&(0,o.jsx)(h,{"aria-label":g("artifacts.actions.share"),"data-testid":"artifact-share",className:"sm:hidden",onClick:e=>{e.stopPropagation(),null==p||p(),m(async(e,t)=>{navigator.share&&await navigator.share({files:[new File([e],t,{type:e.type})]}).catch(()=>{})})},children:(0,o.jsx)(s.A,{size:18})})]})}},71807:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var o=r(10940),n=r(65742),a=r(44099),s=r(92284),i=r(8316),l=r(62544),d=r(5926),c=r(82357),u=r(3428),h=r(94319),p=r(64459),g=r(36861),m=r(72840);let f=e=>"string"==typeof e?e:e&&"object"==typeof e&&"sections"in e&&Array.isArray(e.sections)?e.sections.map(e=>"string"==typeof e?e:e.content||"").filter(Boolean).join("\n\n"):"",y=e=>{let{content:t}=e,{t:r}=(0,d.Bd)(),{state:{isMobile:y}}=(0,l.useContext)(n.A),{value:b,error:v}=(0,m.I)(t),[x,w]=(0,l.useState)("study-guide"),k=(0,l.useRef)(null),E=(0,c.R)({contentRef:k}),j=(0,a.o$)();return v?(0,o.jsx)(g.w,{error:v}):(0,o.jsxs)("div",{className:"dark:bg-dark-bg w-full border-t border-gray-100 bg-white p-4 dark:border-transparent",children:[(0,o.jsxs)(h.tU,{value:x,onValueChange:e=>{w(e)},children:[(0,o.jsxs)("div",{className:"relative flex w-full items-center justify-center",children:[(0,o.jsxs)(h.j7,{className:"dark:bg-dark-card dark:border-dark-border rounded-xl border-[1px] border-gray-100 bg-white shadow-sm",children:[(0,o.jsx)(h.Xi,{value:"study-guide",className:"dark:text-dark-text-secondary dark:data-[state=active]:bg-dark-hover rounded-lg text-gray-700 data-[state=active]:bg-gray-100 data-[state=active]:text-gray-800 dark:data-[state=active]:text-[#F3F3F3]",children:r("artifacts.studyGuide.tabs.guide")}),(0,o.jsx)(h.Xi,{value:"cheatsheet",className:"dark:text-dark-text-secondary dark:data-[state=active]:bg-dark-hover rounded-lg text-gray-700 data-[state=active]:bg-gray-100 data-[state=active]:text-gray-800 dark:data-[state=active]:text-[#F3F3F3]",children:r("artifacts.studyGuide.tabs.cheatsheet")})]}),!y&&(0,o.jsx)(p.f,{onClick:()=>{j.track(s.XN.USER_PRINTED_STUDY_GUIDE),E()},"aria-label":r("artifacts.studyGuide.printLabel"),"data-testid":"print-study-guide",className:"absolute top-1/2 right-0 -translate-y-1/2",children:(0,o.jsx)(i.A,{size:16})})]}),(0,o.jsx)(h.av,{value:"study-guide",children:(0,o.jsx)(u.U,{text:f(null==b?void 0:b.study_guide),enableReplySelection:!0,className:"[&_img]:mx-auto [&_img]:my-4 [&_img]:max-h-[320px] [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain"})}),(0,o.jsx)(h.av,{value:"cheatsheet",children:(0,o.jsx)(u.U,{text:(null==b?void 0:b.quick_reference_sheet)||"",enableReplySelection:!0,className:"[&_img]:mx-auto [&_img]:my-4 [&_img]:max-h-[320px] [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain"})})]}),(0,o.jsxs)("div",{ref:k,className:"visible-print-only flex flex-col gap-4 p-4",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{className:"text-2xl font-medium",children:r("artifacts.studyGuide.tabs.guide")}),(0,o.jsx)("hr",{className:"my-2"}),(0,o.jsx)(u.U,{text:f(null==b?void 0:b.study_guide),enableReplySelection:!0,className:"[&_img]:mx-auto [&_img]:my-4 [&_img]:max-h-[320px] [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{className:"text-2xl font-medium",children:r("artifacts.studyGuide.tabs.cheatsheet")}),(0,o.jsx)("hr",{className:"my-2"}),(0,o.jsx)(u.U,{text:(null==b?void 0:b.quick_reference_sheet)||"",enableReplySelection:!0,className:"[&_img]:mx-auto [&_img]:my-4 [&_img]:max-h-[320px] [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain"})]})]})]})}},72840:(e,t,r)=>{r.d(t,{I:()=>n});var o=r(62544);function n(e){return(0,o.useMemo)(()=>{try{return{value:JSON.parse(e),error:null}}catch(e){return{value:null,error:"Failed to parse: ".concat(e instanceof Error?e.message:String(e))}}},[e])}},82357:(e,t,r)=>{r.d(t,{R:()=>u});var o=r(62544);let n="printWindow";function a({level:e="error",messages:t,suppressErrors:r=!1}){r||("error"===e?console.error(t):"warning"===e?console.warn(t):console.debug(t))}function s(e,t){if(t||!e){let e=document.getElementById(n);e&&document.body.removeChild(e)}}function i(e){return e instanceof Error?e:Error("Unknown Error")}function l(e,t){let{documentTitle:r,onAfterPrint:o,onPrintError:n,preserveAfterPrint:l,print:d,suppressErrors:c}=t;setTimeout(()=>{if(e.contentWindow){let t=function(){o?.(),s(l)};
1if(e.contentWindow.focus(),d)d(e).then(t).catch(e=>{n?n("print",i(e)):a({messages:["An error was thrown by the specified `print` function"],suppressErrors:c})});else{if(e.contentWindow.print){let t=e.contentDocument?.title??"",o=e.ownerDocument.title,n="function"==typeof r?r():r;n&&(e.ownerDocument.title=n,e.contentDocument&&(e.contentDocument.title=n)),e.contentWindow.print(),n&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=t))}else a({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:c});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>(navigator.userAgent??navigator.vendor??("opera"in window&&window.opera)).match(e))?setTimeout(t,500):t()}}else a({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:c})},500)}function d(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),o=r.nextNode();for(;o;)t.push(o),o=r.nextNode();return t}let c=`
2    @page {
3        /* Remove browser default header (title) and footer (url) */
4        margin: 0;
5    }
6    @media print {
7        body {
8            /* Tell browsers to print background colors */
9            color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */
10            print-color-adjust: exact; /* Firefox/Safari */
11            -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
12        }
13    }
14`;function u({bodyClass:e,contentRef:t,copyShadowRoots:r,documentTitle:u,fonts:h,ignoreGlobalStyles:p,nonce:g,onAfterPrint:m,onBeforePrint:f,onPrintError:y,pageStyle:b,preserveAfterPrint:v,print:x,printIframeProps:w,suppressErrors:k}){return(0,o.useCallback)(o=>{function E(){let s={bodyClass:e,contentRef:t,copyShadowRoots:r,documentTitle:u,fonts:h,ignoreGlobalStyles:p,nonce:g,onAfterPrint:m,onPrintError:y,pageStyle:b,preserveAfterPrint:v,print:x,suppressErrors:k},f=function(e){let t=document.createElement("iframe");return t.width=`${document.documentElement.clientWidth}px`,t.height=`${document.documentElement.clientHeight}px`,t.style.position="absolute",t.style.top=`-${document.documentElement.clientHeight+100}px`,t.style.left=`-${document.documentElement.clientWidth+100}px`,t.id=n,t.srcdoc="<!DOCTYPE html>",e&&(e.allow&&(t.allow=e.allow),void 0!==e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),void 0!==e.sandbox&&(t.sandbox=e.sandbox)),t}(w),E=function(e,t){let{contentRef:r,fonts:o,ignoreGlobalStyles:n,suppressErrors:s}=t,i=function({contentRef:e,optionalContent:t,suppressErrors:r}){return t&&"function"==typeof t?(e&&a({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),t()):e?e.current:void a({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:r})}({contentRef:r,optionalContent:e,suppressErrors:s});if(!i)return;let l=i.cloneNode(!0),d=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),c=l.querySelectorAll("img"),u=l.querySelectorAll("video"),h=o?o.length:0,p=(n?0:d.length)+c.length+u.length+h;return{contentNode:i,clonedContentNode:l,clonedImgNodes:c,clonedVideoNodes:u,numResourcesToLoad:p,originalCanvasNodes:i.querySelectorAll("canvas")}}(o,s);if(!E)return void a({messages:["There is nothing to print"],suppressErrors:k});f.onload=()=>{!function(e,t,r){let{contentNode:o,clonedContentNode:n,clonedImgNodes:s,clonedVideoNodes:u,numResourcesToLoad:h,originalCanvasNodes:p}=t,{bodyClass:g,fonts:m,ignoreGlobalStyles:f,pageStyle:y,nonce:b,suppressErrors:v,copyShadowRoots:x}=r,w=[],k=[];function E(t,o){if(w.includes(t))return void a({level:"debug",messages:["Tried to mark a resource that has already been handled",t],suppressErrors:v});o?(a({messages:['"react-to-print" was unable to load a resource but will c
14ontinue attempting to print the page',...o],suppressErrors:v}),k.push(t)):w.push(t),w.length+k.length===h&&l(e,r)}e.onload=null;let j=e.contentDocument??e.contentWindow?.document;if(j){let t=j.body.appendChild(n);x&&function e(t,r,o){let n=d(t),s=d(r);if(n.length!==s.length)return void a({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",t,r],suppressErrors:o});for(let t=0;t<n.length;t++){let r=n[t],a=s[t],i=r.shadowRoot;if(null!==i){let t=a.attachShadow({mode:i.mode});t.innerHTML=i.innerHTML,e(i,t,o)}}}(o,t,!!v),m&&(e.contentDocument?.fonts&&e.contentWindow?.FontFace?m.forEach(t=>{let r=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(r),r.loaded.then(()=>{E(r)}).catch(e=>{E(r,["Failed loading the font:",r,"Load error:",i(e)])})}):(m.forEach(e=>{E(e)}),a({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:v})));let r=j.createElement("style");b&&(r.setAttribute("nonce",b),j.head.setAttribute("nonce",b)),r.appendChild(j.createTextNode(y??c)),j.head.appendChild(r),g&&j.body.classList.add(...g.split(" "));let l=j.querySelectorAll("canvas");for(let e=0;e<p.length;++e){let t=p[e],r=l[e];if(void 0===r){a({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:v});continue}let o=r.getContext("2d");o&&o.drawImage(t,0,0)}for(let e=0;e<s.length;e++){let t=s[e],r=t.getAttribute("src");if(r){let e=new Image;e.onload=()=>{E(t)},e.onerror=(e,r,o,n,a)=>{E(t,["Error loading <img>",t,"Error",a])},e.src=r}else E(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',t])}for(let e=0;e<u.length;e++){let t=u[e];t.preload="auto";let r=t.getAttribute("poster");if(r){let e=new Image;e.onload=()=>{E(t)},e.onerror=(e,o,n,a,s)=>{E(t,["Error loading video poster",r,"for video",t,"Error:",s])},e.src=r}else t.readyState>=2?E(t):t.src?(t.onloadeddata=()=>{E(t)},t.onerror=(e,r,o,n,a)=>{E(t,["Error loading video",t,"Error",a])},t.onstalled=()=>{E(t,["Loading video stalled, skipping",t])}):E(t,["Error loading video, `src` is empty",t])}let h="select",w=o.querySelectorAll(h),k=j.querySelectorAll(h);for(let e=0;e<w.length;e++)k[e].value=w[e].value;if(!f){let e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let t=0,r=e.length;t<r;++t){let r=e[t];if("style"===r.tagName.toLowerCase()){let e=j.createElement(r.tagName),o=r.sheet;if(o){let n="";try{let e=o.cssRules.length;for(let t=0;t<e;++t)"string"==typeof o.cssRules[t].cssText&&(n+=`${o.cssRules[t].cssText}\r
15`)}catch(e){a({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r,`Original error: ${i(e).message}`],level:"warning"})}e.setAttribute("id",`react-to-print-${t}`),b&&e.setAttribute("nonce",b),e.appendChild(j.createTextNode(n)),j.head.appendChild(e)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))a({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],level:"warning"}),E(r);else{let e=j.createElement(r.tagName);for(let t=0,o=r.attributes.length;t<o;++t){let o=r.attributes[t];o&&e.setAttribute(o.nodeName,o.nodeValue??"")}e.onload=()=>{E(e)},e.onerror=(t,r,o,n,a)=>{E(e,["Failed to load",e,"Error:",a])},b&&e.setAttribute("nonce",b),j.head.appendChild(e)}
15else a({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],level:"warning"}),E(r)}}}0===h&&l(e,r)}(f,E,s)},document.body.appendChild(f)}s(v,!0),f?f().then(()=>{E()}).catch(e=>{y?.("onBeforePrint",i(e))}):E()},[e,t,r,u,h,p,g,m,f,y,b,v,w,x,k])}}}]);

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.