PageSourceSearch

https://pododesk.net/npm.react-router.b56317ad4ea9eb947474.js

js pododesk.net collected 2026-10-05 02:34:09 UTC 6,978 bytes, 3 lines download raw bytes

1/*! For license information please see npm.react-router.b56317ad4ea9eb947474.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkpod001_frontend=globalThis.webpackChunkpod001_frontend||[]).push([[3617],{96974:(e,t,n)=>{n.d(t,{AW:()=>F,F0:()=>I,Fg:()=>T,TH:()=>O,UO:()=>M,WU:()=>j,Z5:()=>J,oQ:()=>E,s0:()=>k});var a=n(55648),r=n(67294);const l=(0,r.createContext)(null),s=(0,r.createContext)(null),i=(0,r.createContext)({outlet:null,matches:[]});function h(e,t){if(!e)throw new Error(t)}function o(e,t,n){void 0===n&&(n="/");let r=b(("string"==typeof t?(0,a.cP)(t):t).pathname||"/",n);if(null==r)return null;let l=u(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(l);let s=null;for(let e=0;null==s&&e<l.length;++e)s=y(l[e],r);return s}function u(e,t,n,a){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a=""),e.forEach((e,r)=>{let l={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(a)||h(!1),l.relativePath=l.relativePath.slice(a.length));let s=W([a,l.relativePath]),i=n.concat(l);e.children&&e.children.length>0&&(!0===e.index&&h(!1),u(e.children,t,i,s)),(null!=e.path||e.index)&&t.push({path:s,score:x(s,e.index),routesMeta:i})}),t}const c=/^:\w+$/,p=3,m=2,f=1,d=10,g=-2,v=e=>"*"===e;function x(e,t){let n=e.split("/"),a=n.length;return n.some(v)&&(a+=g),t&&(a+=m),n.filter(e=>!v(e)).reduce((e,t)=>e+(c.test(t)?p:""===t?f:d),a)}function y(e,t){let{routesMeta:n}=e,a={},r="/",l=[];for(let e=0;e<n.length;++e){let s=n[e],i=e===n.length-1,h="/"===r?t:t.slice(r.length)||"/",o=C({path:s.relativePath,caseSensitive:s.caseSensitive,end:i},h);if(!o)return null;
2Object.assign(a,o.params);let u=s.route;l.push({params:a,pathname:W([r,o.pathname]),pathnameBase:$(W([r,o.pathnameBase])),route:u}),"/"!==o.pathnameBase&&(r=W([r,o.pathnameBase]))}return l}function C(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(e,t)=>(a.push(t),"([^\\/]+)"));return e.endsWith("*")?(a.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let l=r[0],s=l.replace(/(.)\/+$/,"$1"),i=r.slice(1);return{params:a.reduce((e,t,n)=>{if("*"===t){let e=i[n]||"";s=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e){try{return decodeURIComponent(e)}catch(t){return e}}(i[n]||""),e},{}),pathname:l,pathnameBase:s,pattern:e}}function P(e,t,n){let r,l="string"==typeof e?(0,a.cP)(e):e,s=""===e||""===l.pathname?"/":l.pathname;if(null==s)r=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}r=e>=0?t[e]:"/"}let i=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:l=""}="string"==typeof e?(0,a.cP)(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:S(r),hash:B(l)}}(l,r);return s&&"/"!==s&&s.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}function b(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const W=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),S=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function E(e){w()||h(!1);let{basename:t,navigator:n}=(0,r.useContext)(l),{hash:s,pathname:i,search:o}=j(e),u=i;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?(0,a.cP)(e).pathname:e.pathname}(e),r=null!=n&&n.endsWith("/");u="/"===i?t+(r?"/":""):W([t,i])}return n.createHref({pathname:u,search:o,hash:s})}function w(){return null!=(0,r.useContext)(s)}function O(){return w()||h(!1),(0,r.useContext)(s).location}function k(){w()||h(!1);let{basename:e,navigator:t}=(0,r.useContext)(l),{matches:n}=(0,r.useContext)(i),{pathname:a}=O(),s=JSON.stringify(n.map(e=>e.pathnameBase)),o=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{o.current=!0}),(0,r.useCallback)(function(n,r){if(void 0===r&&(r={}),!o.current)return;if("number"==typeof n)return void t.go(n);let l=P(n,JSON.parse(s),a);"/"!==e&&(l.pathname=W([e,l.pathname])),(r.replace?t.replace:t.push)(l,r.state)},[e,t,s,a])}function M(){let{matches:e}=(0,r.useContext)(i),t=e[e.length-1];return t?t.params:{}}function j(e){let{matches:t}=(0,r.useContext)(i),{pathname:n}=O(),a=JSON.stringify(t.map(e=>e.pathnameBase));return(0,r.useMemo)(()=>P(e,JSON.parse(a),n),[e,a,n])}function T(e){let{to:t,replace:n,state:a}=e;w()||h(!1);let l=k();return(0,r.useEffect)(()=>
2{l(t,{replace:n,state:a})}),null}function F(e){h(!1)}function I(e){let{basename:t="/",children:n=null,location:i,navigationType:o=a.aU.Pop,navigator:u,static:c=!1}=e;w()&&h(!1);let p=$(t),m=(0,r.useMemo)(()=>({basename:p,navigator:u,static:c}),[p,u,c]);"string"==typeof i&&(i=(0,a.cP)(i));let{pathname:f="/",search:d="",hash:g="",state:v=null,key:x="default"}=i,y=(0,r.useMemo)(()=>{let e=b(f,p);return null==e?null:{pathname:e,search:d,hash:g,state:v,key:x}},[p,f,d,g,v,x]);return null==y?null:(0,r.createElement)(l.Provider,{value:m},(0,r.createElement)(s.Provider,{children:n,value:{location:y,navigationType:o}}))}function J(e){let{children:t,location:n}=e;return function(e,t){w()||h(!1);let{matches:n}=(0,r.useContext)(i),l=n[n.length-1],s=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,p=O();if(t){var m;let e="string"==typeof t?(0,a.cP)(t):t;"/"===u||(null==(m=e.pathname)?void 0:m.startsWith(u))||h(!1),c=e}else c=p;let f=c.pathname||"/",d=o(e,{pathname:"/"===u?f:f.slice(u.length)||"/"});return function(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((n,a,l)=>(0,r.createElement)(i.Provider,{children:void 0!==a.route.element?a.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}(d&&d.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:W([u,e.pathname]),pathnameBase:"/"===e.pathnameBase?u:W([u,e.pathnameBase])})),n)}(N(t),n)}function N(e){let t=[];return r.Children.forEach(e,e=>{if(!(0,r.isValidElement)(e))return;if(e.type===r.Fragment)return void t.push.apply(t,N(e.props.children));e.type!==F&&h(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=N(e.props.children)),t.push(n)}),t}}}]);
3//# sourceMappingURL=npm.react-router.b56317ad4ea9eb947474.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.