PageSourceSearch

https://math-gpt.org/_next/static/chunks/2101.d49bcecf5da83344.js

js math-gpt.org collected 2026-10-01 12:01:15 UTC 8,339 bytes, 2 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]="7428c54f-37dd-4c61-afe9-41584fd3d32a",e._sentryDebugIdIdentifier="sentry-dbid-7428c54f-37dd-4c61-afe9-41584fd3d32a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2101],{92101:(e,t,r)=>{r.r(t),r.d(t,{encodeIntoResult:()=>p,stegaEncodeSourceMap:()=>v,stegaEncodeSourceMap$1:()=>E});var n=r(76135);let i=/_key\s*==\s*['"](.*)['"]/;function o(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(("string"==typeof t?i.test(t.trim()):"object"==typeof t&&"_key"in t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}let s={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},a={"\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function l(e){let t,r=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(t=n.exec(e));){if(void 0!==t[1]){let e=t[1].replace(/\\(\\|f|n|r|t|')/g,e=>a[e]);r.push(e);continue}if(void 0!==t[2]){r.push(parseInt(t[2],10));continue}if(void 0!==t[3]){let e=t[3].replace(/\\(\\')/g,e=>a[e]);r.push({_key:e,_index:-1});continue}}return r}function u(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function f(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function p(e,t,r){return function e(t,r,i=[]){if(null!==t&&Array.isArray(t))return t.map((t,o)=>{if((0,n.u4)(t)){let n=t._key;if("string"==typeof n)return e(t,r,i.concat({_key:n,_index:o}))}return e(t,r,i.concat(o))});if((0,n.u4)(t)){if("block"===t._type||"span"===t._type){let n={...t};return"block"===t._type?n.children=e(t.children,r,i.concat("children")):"span"===t._type&&(n.text=e(t.text,r,i.concat("text"))),n}return Object.fromEntries(Object.entries(t).map(([t,n])=>[t,e(n,r,i.concat(t))]))}return r(t,i)}(e,(e,n)=>{if("string"!=typeof e)return e;let i=function(e,t){var r;if(!t?.mappings)return;let n=(r=f(e),`$${r.map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>s[e])}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>s[e])}')]`:`[${e._index}]`).join("")}`);if(void 0!==t.mappings[n])return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let i=f(e).map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>s[e])}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>s[e])}')]`:`[${e._index}]`);for(let e=i.length-1;e>=0;e--){let r=`$${i.slice(0,e).join("")}`,o=t.mappings[r];if(o){let e=n.substring(r.length);return{mapping:o,matchedPath:r,pathSuffix:e}}}}(n,t);if(!i)return e;let{mapping:o,matchedPath:a}=i;if("value"!==o.type||"documentValue"!==o.source.type)return e;let u=t.documents[o.source.document],p=t.paths[o.source.path],c=l(a);return r({sourcePath:l(p).concat(n.slice(c.length)),sourceDocument:u,resultPath:n,value:e})})}let c="drafts.";function d(e){return e.startsWith(c)}function h(e){return e.startsWith("versions.")}let g=({sourcePath:e,resultPath:t,value:r})=>{if(function(e){return!!/^\d{4}-\d{2}-\d{2}/.test(e)&&!!Date.parse(e)}(r)||function(e){try{let{protocol:t}=new URL(e,e.startsWith("/")?"https://acme.com":void 0);return m.has(t)||t.startsWith("web+")}catch{return!1}}(r))return!1;let n=e.at(-1);return!("slug"===e.at(-2)&&"current"===n||"string"==typeof n&&(n.startsWith("_")||n.endsWith("Id"))||e.some(e=>"meta"===e||"metadata"===e||"openGraph"===e||"seo"===e)||_(e)||_(t)||"string"==typeof n&&y.has(n))},y=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","textTheme","unit","url","username","variant","website"]),m=new Set(["app:","data:","discord:","file:","ftp:","ftps:","geo:","http:","https:","imap:","javascript:","magnet:","mailto:","maps:","ms-excel:","ms-powerpoint:","ms-word:","slack:","sms:","spotify:","steam:","teams:","tel:","vscode:","zoom:"]);function _(e){return e.some(e=>"string"==typeof e&&null!==e.match(/type/i))}let $=[8203,8204,8205,65279],b=$.map(e=>String.fromCharCode(e)),w=[8203,8204,8205,8290,8291,8288,65279,8289,119155,119156,119157,119158,119159,119160,119161,119162];Object.fromEntries($.map((e,t)=>[e,t])),Object.fromEntries(w.map((e,t)=>[e,t.toString(16)]));let k=String.fromCodePoint($[0]).repeat(4);function v(e,t,r){let{filter:n,logger:s,enabled:a}=r;if(!a){let n="config.enabled must be true, don't call this function otherwise";throw s?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}if(!t)return s?.error?.("[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){let n="config.studioUrl must be defined";throw s?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}let l=[],f=[],y=p(e,t,({sourcePath:e,sourceDocument:t,resultPath:i,value:a})=>{var p;let y;if(("function"==typeof n?n({sourcePath:e,resultPath:i,filterDefault:g,sourceDocument:t,value:a}):g({sourcePath:e,resultPath:i,value:a}))===!1)return s&&f.push({path:o(u(e)),value:`${a.slice(0,20)}${a.length>20?"...":""}`,length:a.length}),a;s&&l.push({path:o(u(e)),value:`${a.slice(0,20)}${a.length>20?"...":""}`,length:a.length});let{baseUrl:m,workspace:_,tool:$}=("/"!==(y="string"==typeof(p="function"==typeof r.studioUrl?r.studioUrl(t):r.studioUrl)?p:p.baseUrl)&&(y=y.replace(/\/$/,"")),"string"==typeof p?{baseUrl:y}:{...p,baseUrl:y});if(!m)return a;let{_id:w,_type:v,_projectId:E,_dataset:x}=t;return function(e,t,r="auto"){var n;return!0!==r&&("auto"!==r||(n=e)&&"string"==typeof n&&Date.parse(n)||function(e){try{return new URL(e,e.startsWith("/")?"https://example.com":void 0),!0}catch{return!1}}(e))?e:`${e}${function(e){if(void 0===e)return"";let t="string"==typeof e?e:JSON.stringify(e),r=new TextEncoder().encode(t),n="";for(let e=0;e<r.length;e++){let t=r[e];n+=b[t>>6&3]+b[t>>4&3]+b[t>>2&3]+b[3&t]}return k+n}(t)}`}(a,{origin:"sanity.io",href:function(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:s,path:a,projectId:l,dataset:f}=e;if(!t)throw Error("baseUrl is required");if(!a)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let p="default"===r?void 0:r,g="default"===n?void 0:n,y=h(i)?i.split(".").slice(2).join("."):d(i)?i.slice(c.length):i,m=Array.isArray(a)?o(u(a)):a,_=new URLSearchParams({baseUrl:t,id:y,type:s,path:m});if(p&&_.set("workspace",p),g&&_.set("tool",g),l&&_.set("projectId",l),f&&_.set("dataset",f),d(i)||h(i)){if(h(i)){let e=function(e){if(!h(e))return;let[t,r,...n]=e.split(".");return r}(i);_.set("perspective",e)}}else _.set("perspective","published");let $=["/"===t?"":t];p&&$.push(p);let b=["mode=presentation",`id=${y}`,`type=${s}`,`path=${encodeURIComponent(m)}`];return g&&b.push(`tool=${g}`),$.push("intent","edit",`${b.join(";")}?${_}`),$.join("/")}({baseUrl:m,workspace:_,tool:$,id:w,type:v,path:e,...!r.omitCrossDatasetReferenceData&&{dataset:x,projectId:E}})},!0)});if(s){let e=f.length,t=l.length;if((e||t)&&((s?.groupCollapsed||s.log)?.("[@sanity/client]: Encoding source map into result"),s.log?.(`[@sanity/client]: Paths encoded: ${l.length}, skipped: ${f.length}`)),l.length>0&&(s?.log?.("[@sanity/client]: Table of encoded paths"),(s?.table||s.log)?.(l)),f.length>0){let e=new Set;for(let{path:t}of f)e.add(t.replace(i,"0").replace(/\[\d+\]/g,"[]"));s?.log?.("[@sanity/client]: List of skipped paths",[...e.values()])}(e||t)&&s?.groupEnd?.()}return y}[...$,...w].map(e=>`\\u{${e.toString(16)}}`).join("");var E=Object.freeze({__proto__:null,stegaEncodeSourceMap:v})}}]);

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.