PageSourceSearch

https://www.jetbrains.com/_assets/rr/use-typed-search-params-9dCUEoyE.js

js jetbrains.com collected 2026-09-24 07:34:47 UTC 6,221 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5f4df722-4804-5673-b90f-38fd77025e31")}catch(e){}}();
3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`master@90da63a`}}catch{}})();import{a as e,t}from"./rolldown-runtime-DYYcS1FN.js";import{t as n}from"./react-CAeKiPy9.js";import{d as r,et as i,t as a,y as o}from"./compiler-runtime-2eBrVY0L.js";import{n as s}from"./lib-EnUGrSP-.js";import{r as c}from"./exports-DOZ8lE8n.js";import{t as l}from"./use-is-client-aw25sgVl.js";import{a as u,o as d,t as f}from"./dist-D6_xjyG_.js";var p=e(n(),1),m=a();function h(e){let t={};return e.forEach((n,r)=>{if(Object.prototype.hasOwnProperty.call(t,r))return;let i=e.getAll(r);t[r]=i.length>1?i:i[0]??``}),t}function g(e,t){let n=h(t),r=u(e,n);return r.success?{success:!0,output:r.output,raw:n}:{success:!1,issues:r.issues,raw:n}}function _(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{if(n!=null){if(Array.isArray(n)){n.forEach(n=>t.append(e,String(n)));return}t.set(e,String(n))}}),t}function v(e,t){let n=u(e,t);if(!n.success)throw Error(`Cannot create search params: ${d(n.issues)}`);return _(n.output)}var y=t(((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r})),b,x=e=>b?.recordError(e)??!1,S=e(y(),1);function C(e){return e instanceof Error}function w(e){if(typeof e==`string`)return e;try{let t=JSON.stringify(e);if(t)return t}catch{}return String(e)}function T(e){if(C(e))return e;let t=Error(w(e));return Error.captureStackTrace?.(t,P),t}function E(e){return`${e.name||`Error`}: ${e.message||`Unknown error`}`}function D(){return typeof window>`u`}function O(e){let t=e.trim();return/(?:^|[/\\])reporters[/\\](?:index|scope)\.[cm]?[jt]sx?(?::|\)|$)/.test(e)||/(?:^|[/\\])report(?:-error|ers)\.[cm]?[jt]sx?(?::|\)|$)/.test(e)||/^at\s+(captureError|captureWarning|normalizeError|getReportCallSite)\b/.test(t)||/^(captureError|captureWarning|normalizeError|getReportCallSite)@/.test(t)}function k(e){let t=e.trim().replace(/^at\s+/,``),n=t.match(/^(.*?)\s+\((.*):(\d+):(\d+)\)$/);if(n)return{functionName:n[1],file:n[2],line:n[3],column:n[4]};let r=t.match(/^(.*?)@(.*):(\d+):(\d+)$/);if(r)return{functionName:r[1]||void 0,file:r[2],line:r[3],column:r[4]};let i=t.match(/^(.*):(\d+):(\d+)$/);if(i)return{file:i[1],line:i[2],column:i[3]}}function A(){let e=Error().stack;if(e)for(let t of e.split(`
4`).slice(1)){if(O(t))continue;let e=k(t);if(e)return e}}function j(e){if(!e)return`unknown`;let t=e.line?`${e.file}:${e.line}`:e.file;return e.functionName?`${e.functionName} (${t})`:t}function M(e,t,n){let r=E(e),i=j(n);if(D()){let e=[S.default.red(S.default.bold(r)),`${S.default.gray(`Reported from`)}: ${i}`];return t&&e.push(`${S.default.cyan(`Developer hint`)}: ${t}`),e.join(`
5`)}let a=[r,`Reported from: ${i}`];return t&&a.push(`Developer hint: ${t}`),a.join(`
6`)}function N(e,t,n,i){if(r!==`none`){if(r===`minimal`){console.error(M(t,n,i));return}console.error(`Reported error:`,e),n&&console.info(`Developer hint:`,n)}}function P(e,t){let n=T(e),r=A();x({normalizedError:n,developerHint:t?.developerHint,callSite:r})||N(e,n,t?.developerHint,r),o&&c(n,t?.sentryOptions)}function F(e,t){return e===null&&t===null?!0:e===null||t===null?!1:e.length===t.length&&e.every((e,n)=>e===t[n])}function I(e){let t=(0,m.c)(4),n=i(`root`),[r]=s(),a=n?.serverSearch,o;if(t[0]!==r||t[1]!==e||t[2]!==a){o=Symbol.for(`react.early_return_sentinel`);bb0:{let t=new URLSearchParams(a),n=_(e??{}),i=new URLSearchParams(n),s=new Set(Object.keys(e??{}));for(let e of new Set(t.keys())){s.add(e),i.delete(e);for(let n of t.getAll(e))i.append(e,n)}for(let e of s)if(!F(i.getAll(e),r.getAll(e))){o=!0;break bb0}}t[0]=r,t[1]=e,t[2]=a,t[3]=o}else o=t[3];return o!==Symbol.for(`react.early_return_sentinel`)&&o}function L(e){return e.length===0?`unknown validation error`:d(e)}function R(e,t,n){let r=new URLSearchParams(t);return e.forEach((e,t)=>{n.has(t)||r.append(t,e)}),r}function z(e,t,n){let r={...n};Object.keys(r).forEach(n=>{if(!t.has(n))return;let i=new URLSearchParams;
6t.getAll(n).forEach(e=>i.append(n,e));let a=g(e,i);a.success&&(r[n]=a.output[n])});let i=u(e,r);return i.success?i.output:r}function B(e,t,n,r){let i=(0,m.c)(8),a=(0,p.useRef)(!1),o;i[0]!==n||i[1]!==e||i[2]!==t?(o=()=>{let r=R(n,v(t,e),new Set(Object.keys(e)));return r.toString()===n.toString()?null:r},i[0]=n,i[1]=e,i[2]=t,i[3]=o):o=i[3];let[s]=(0,p.useState)(o),c,l;i[4]!==s||i[5]!==r?(c=()=>{s!==null&&!a.current&&(a.current=!0,r(s,{replace:!0,preventScrollReset:!0,defaultShouldRevalidate:!1}))},l=[s,r],i[4]=s,i[5]=r,i[6]=c,i[7]=l):(c=i[6],l=i[7]),(0,p.useEffect)(c,l)}function V(e){let t=(0,m.c)(20),n;t[0]===e?n=t[1]:(n=f(e),t[0]=e,t[1]=n);let r=n,[i,a]=s(),o=l(),c=I(r),u;t[2]!==i||t[3]!==e?(u=g(e,i),t[2]=i,t[3]=e,t[4]=u):u=t[4];let d=u,p;bb0:{if(!d.success){P(Error(`Invalid search params: ${L(d.issues)}`));let n=r,a;t[5]!==i||t[6]!==e||t[7]!==n?(a=z(e,i,n),t[5]=i,t[6]=e,t[7]=n,t[8]=a):a=t[8],p=a;break bb0}p=d.output}let h=p;B(h,e,i,a);let _;t[9]!==i||t[10]!==h||t[11]!==e||t[12]!==a?(_=(t,n)=>{let r=typeof t==`function`?t(h):t,o={...h,...r};a(R(i,v(e,o),new Set(Object.keys(o))),{preventScrollReset:!0,...n})},t[9]=i,t[10]=h,t[11]=e,t[12]=a,t[13]=_):_=t[13];let y=_;if(c&&!o){let e;return t[14]!==r||t[15]!==y?(e=[r,y],t[14]=r,t[15]=y,t[16]=e):e=t[16],e}let b;return t[17]!==h||t[18]!==y?(b=[h,y],t[17]=h,t[18]=y,t[19]=b):b=t[19],b}export{V as t};
7//# debugId=5f4df722-4804-5673-b90f-38fd77025e31

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.