PageSourceSearch

https://polyscript.app/assets/react-DqbaNhOL.js

js polyscript.app collected 2026-10-02 01:14:31 UTC 33,644 bytes, 44 lines download raw bytes

vendor: 4,871 bytes, lines 1-9
1function He(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={exports:{}},p={};/**
2 * @license React
3 * react.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Q=Symbol.for("react.transitional.element"),ze=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ke=Symbol.for("react.profiler"),Ve=Symbol.for("react.consumer"),Ge=Symbol.for("react.context"),Je=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),Xe=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),Qe=Symbol.for("react.activity"),ue=Symbol.iterator;function Ze(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var Pe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oe=Object.assign,Te={};function j(e,t,r){this.props=e,this.context=t,this.refs=Te,this.updater=r||Pe}j.prototype.isReactComponent={};j.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function we(){}we.prototype=j.prototype;function Z(e,t,r){this.props=e,this.context=t,this.refs=Te,this.updater=r||Pe}var ee=Z.prototype=new we;ee.constructor=Z;Oe(ee,j.prototype);ee.isPureReactComponent=!0;var ce=Array.isArray;function V(){}var v={H:null,A:null,T:null,S:null},xe=Object.prototype.hasOwnProperty;function te(e,t,r){var n=r.ref;return{$$typeof:Q,type:e,key:t,ref:n!==void 0?n:null,props:r}}function et(e,t){return te(e.type,t,e.props)}function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===Q}function tt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var fe=/\/+/g;function Y(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tt(""+e.key):t.toString(36)}function rt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(V,V):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function N(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Q:case ze:i=!0;break;case Se:return i=e._init,N(i(e._payload),t,r,n,a)}}if(i)return a=a(e),i=n===""?"."+Y(e,0):n,ce(a)?(r="",i!=null&&(r=i.replace(fe,"$&/")+"/"),N(a,t,r,"",function(c){return c})):a!=null&&(re(a)&&(a=et(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(fe,"$&/")+"/")+i)),t.push(a)),1;i=0;var s=n===""?".":n+":";if(ce(e))for(var l=0;l<e.length;l++)n=e[l],o=s+Y(n,l),i+=N(n,t,r,o,a);else if(l=Ze(e),typeof l=="function")for(e=l.call(e),l=0;!(n=e.next()).done;)n=n.value,o=s+Y(n,l++),i+=N(n,t,r,o,a);else if(o==="object"){if(typeof e.then=="function")return N(rt(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function H(e,t,r){if(e==null)return e;var n=[],a=0;return N(e,n,"","",function(o){return t.call(r,o,a++)}),n}function nt(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var de=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)}
vendor: 4,305 bytes, lines 9-17
9,at={map:H,forEach:function(e,t,r){H(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return H(e,function(){t++}),t},toArray:function(e){return H(e,function(t){return t})||[]},only:function(e){if(!re(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};p.Activity=Qe;p.Children=at;p.Component=j;p.Fragment=Fe;p.Profiler=Ke;p.PureComponent=Z;p.StrictMode=Ye;p.Suspense=qe;p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v;p.__COMPILER_RUNTIME={__proto__:null,c:function(e){return v.H.useMemoCache(e)}};p.cache=function(e){return function(){return e.apply(null,arguments)}};p.cacheSignal=function(){return null};p.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=Oe({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!xe.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=r;else if(1<o){for(var i=Array(o),s=0;s<o;s++)i[s]=arguments[s+2];n.children=i}return te(e.type,a,n)};p.createContext=function(e){return e={$$typeof:Ge,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ve,_context:e},e};p.createElement=function(e,t,r){var n,a={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)xe.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return te(e,o,a)};p.createRef=function(){return{current:null}};p.forwardRef=function(e){return{$$typeof:Je,render:e}};p.isValidElement=re;p.lazy=function(e){return{$$typeof:Se,_payload:{_status:-1,_result:e},_init:nt}};p.memo=function(e,t){return{$$typeof:Xe,type:e,compare:t===void 0?null:t}};p.startTransition=function(e){var t=v.T,r={};v.T=r;try{var n=e(),a=v.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(V,de)}catch(o){de(o)}finally{t!==null&&r.types!==null&&(t.types=r.types),v.T=t}};p.unstable_useCacheRefresh=function(){return v.H.useCacheRefresh()};p.use=function(e){return v.H.use(e)};p.useActionState=function(e,t,r){return v.H.useActionState(e,t,r)};p.useCallback=function(e,t){return v.H.useCallback(e,t)};p.useContext=function(e){return v.H.useContext(e)};p.useDebugValue=function(){};p.useDeferredValue=function(e,t){return v.H.useDeferredValue(e,t)};p.useEffect=function(e,t){return v.H.useEffect(e,t)};p.useEffectEvent=function(e){return v.H.useEffectEvent(e)};p.useId=function(){return v.H.useId()};p.useImperativeHandle=function(e,t,r){return v.H.useImperativeHandle(e,t,r)};p.useInsertionEffect=function(e,t){return v.H.useInsertionEffect(e,t)};p.useLayoutEffect=function(e,t){return v.H.useLayoutEffect(e,t)};p.useMemo=function(e,t){return v.H.useMemo(e,t)};p.useOptimistic=function(e,t){return v.H.useOptimistic(e,t)};p.useReducer=function(e,t,r){return v.H.useReducer(e,t,r)};p.useRef=function(e){return v.H.useRef(e)};p.useState=function(e){return v.H.useState(e)};p.useSyncExternalStore=function(e,t,r){return v.H.useSyncExternalStore(e,t,r)};p.useTransition=function(){return v.H.useTransition()};p.version="19.2.3";Ce.exports=p;var u=Ce.exports;const ot=We(u),it=He({__proto__:null,default:ot},[u]);var be={exports:{}},O={};/**
10 * @license React
11 * react-dom.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var lt=u;function Le(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(){}var P={d:{f:x,r:function(){throw Error(Le(522))},D:x,C:x,L:x,m:x,X:x,S:x,M:x},p:0,findDOMNode:null},st=Symbol.for("react.portal");function ut(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
17return{$$typeof:st,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var B=lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function z(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P;O.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Le(299));return ut(e,t,null,r)};O.flushSync=function(e){var t=B.T,r=P.p;try{if(B.T=null,P.p=2,e)return e()}finally{B.T=t,P.p=r,P.d.f()}};O.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,P.d.C(e,t))};O.prefetchDNS=function(e){typeof e=="string"&&P.d.D(e)};O.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=z(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?P.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:o}):r==="script"&&P.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};O.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=z(t.as,t.crossOrigin);P.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&P.d.M(e)};O.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=z(r,t.crossOrigin);P.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};O.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=z(t.as,t.crossOrigin);P.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else P.d.m(e)};O.requestFormReset=function(e){P.d.r(e)};O.unstable_batchedUpdates=function(e,t){return e(t)};O.useFormState=function(e,t,r){return B.H.useFormState(e,t,r)};O.useFormStatus=function(){return B.H.useHostTransitionStatus()};O.version="19.2.3";function Ae(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ae)}catch(e){console.error(e)}}Ae(),be.exports=O;var dr=be.exports;/**
18 * @remix-run/router v1.23.2
19 *
20 * Copyright (c) Remix Software Inc.
21 *
22 * This source code is licensed under the MIT license found in the
23 * LICENSE.md file in the root directory of this source tree.
24 *
25 * @license MIT
26 */function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}var b;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(b||(b={}));const pe="popstate";function ct(e){e===void 0&&(e={});function t(n,a){let{pathname:o,search:i,hash:s}=n.location;return G("",{pathname:o,search:i,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:W(a)}return dt(t,r,null,e)}function y(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ne(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ft(){return Math.random().toString(36).substr(2,8)}function he(e,t){return{usr:e.state,key:e.key,idx:t}}function G(e,t,r,n){return r===void 0&&(r=null),k({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?I(t):t,{state:r,key:t&&t.key||n||ft()})}function W(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function I(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function dt(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=b.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(k({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=b.Pop;let h=d(),R=h==null?null:h-c;c=h,l&&l({action:s,location:g.location,delta:R})}function m(h,R){s=b.Push;let S=G(g.location,h,R);c=d()+1;let C=he(S,c),T=g.createHref(S);try{i.pushState(C,"",T)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(T)}o&&l&&l({action:s,location:g.location,delta:1})}function _(h,R){s=b.Replace;let S=G(g.location,h,R);c=d();let C=he(S,c),T=g.createHref(S);i.replaceState(C,"",T),o&&l&&l({action:s,location:g.location,delta:0})}function E(h){let R=a.location.origin!=="null"?a.location.origin:a.location.href,S=typeof h=="string"?h:W(h);return S=S.replace(/ $/,"%20"),y(R,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,R)}let g={get action(){return s},get location(){return e(a,i)},listen(h){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(pe,f),l=h,()=>{a.removeEventListener(pe,f),l=null}},createHref(h){return t(a,h)},createURL:E,encodeLocation(h){let R=E(h);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:m,replace:_,go(h){return i.go(h)}};return g}var me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(me||(me={}));function pt(e,t,r){return r===void 0&&(r="/"),ht(e,t,r)}function ht(e,t,r,n){let a=typeof t=="string"?I(t):t,o=ae(a.pathname||"/",r);if(o==null)return null;let i=Ue(e);mt(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=wt(o);s=Pt(i[l],c)}return s}function Ue(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(y(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not val
26id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=L([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(y(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ue(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Ct(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of Ne(o.path))a(o,i,l)}),t}function Ne(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Ne(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function mt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:St(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const vt=/^:[\w-]+$/,gt=3,yt=2,Et=1,_t=10,Rt=-2,ve=e=>e==="*";function Ct(e,t){let r=e.split("/"),n=r.length;return r.some(ve)&&(n+=Rt),t&&(n+=yt),r.filter(a=>!ve(a)).reduce((a,o)=>a+(vt.test(o)?gt:o===""?Et:_t),n)}function St(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Pt(e,t,r){let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Ot({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),m=l.route;if(!f)return null;
vendor: 4,317 bytes, lines 26-35
26Object.assign(a,f.params),i.push({params:a,pathname:L([o,f.pathname]),pathnameBase:Ut(L([o,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(o=L([o,f.pathnameBase]))}return i}function Ot(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Tt(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((c,d,f)=>{let{paramName:m,isOptional:_}=d;if(m==="*"){let g=s[f]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const E=s[f];return _&&!E?c[m]=void 0:c[m]=(E||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function Tt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ne(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function wt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ne(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bt=e=>xt.test(e);function Lt(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?I(e):e,o;if(r)if(bt(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),ne(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=ge(r.substring(1),"/"):o=ge(r,t)}else o=t;return{pathname:o,search:Nt(n),hash:jt(a)}}function ge(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function K(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function At(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function oe(e,t){let r=At(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ie(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=I(e):(a=k({},e),y(!a.pathname||!a.pathname.includes("?"),K("?","pathname","search",a)),y(!a.pathname||!a.pathname.includes("#"),K("#","pathname","hash",a)),y(!a.search||!a.search.includes("#"),K("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=Lt(a,s),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const L=e=>e.join("/").replace(/\/\/+/g,"/"),Ut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function It(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const je=["post","put","patch","delete"];new Set(je);const $t=["get",...je];new Set($t);/**
27 * React Router v6.30.3
28 *
29 * Copyright (c) Remix Software Inc.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE.md file in the root directory of this source tree.
33 *
34 * @license MIT
35 */function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 9,486 bytes, lines 35-44
35for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const le=u.createContext(null),Mt=u.createContext(null),A=u.createContext(null),F=u.createContext(null),w=u.createContext({outlet:null,matches:[],isDataRoute:!1}),Ie=u.createContext(null);function Bt(e,t){let{relative:r}=t===void 0?{}:t;$()||y(!1);let{basename:n,navigator:a}=u.useContext(A),{hash:o,pathname:i,search:s}=Me(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:L([n,i])),a.createHref({pathname:l,search:s,hash:o})}function $(){return u.useContext(F)!=null}function M(){return $()||y(!1),u.useContext(F).location}function $e(e){u.useContext(A).static||u.useLayoutEffect(e)}function se(){let{isDataRoute:e}=u.useContext(w);return e?Xt():kt()}function kt(){$()||y(!1);let e=u.useContext(le),{basename:t,future:r,navigator:n}=u.useContext(A),{matches:a}=u.useContext(w),{pathname:o}=M(),i=JSON.stringify(oe(a,r.v7_relativeSplatPath)),s=u.useRef(!1);return $e(()=>{s.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=ie(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:L([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,o,e])}function pr(){let{matches:e}=u.useContext(w),t=e[e.length-1];return t?t.params:{}}function Me(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=u.useContext(A),{matches:a}=u.useContext(w),{pathname:o}=M(),i=JSON.stringify(oe(a,n.v7_relativeSplatPath));return u.useMemo(()=>ie(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function Dt(e,t){return Ht(e,t)}function Ht(e,t,r,n){$()||y(!1);let{navigator:a}=u.useContext(A),{matches:o}=u.useContext(w),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=M(),d;if(t){var f;let h=typeof t=="string"?I(t):t;l==="/"||(f=h.pathname)!=null&&f.startsWith(l)||y(!1),d=h}else d=c;let m=d.pathname||"/",_=m;if(l!=="/"){let h=l.replace(/^\//,"").split("/");_="/"+m.replace(/^\//,"").split("/").slice(h.length).join("/")}let E=pt(e,{pathname:_}),g=Kt(E&&E.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:L([l,a.encodeLocation?a.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?l:L([l,a.encodeLocation?a.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,r,n);return t&&g?u.createElement(F.Provider,{value:{location:D({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:b.Pop}},g):g}function Wt(){let e=qt(),t=It(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),r?u.createElement("pre",{style:a},r):null,null)}const zt=u.createElement(Wt,null);class Ft extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?u.createElement(w.Provider,{value:this.props.routeContext},u.createElement(Ie.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Yt(e){let{routeContext:t,match:r,children:n}=e,a=u.useContext(le);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),u.createElement(w.Provider,{value:t},n)}function Kt(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||y(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:m,errors:_}=r,E=f.route.loader&&m[f.route.id]===void 0&&(!_||_[f.route.id]===void 0);if(f.route.lazy||E){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let _,E=!1,g=null,h=null;r&&(_=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||zt,l&&(c<0&&m===0?(Qt("route-fallback"),E=!0,h=null):c===m&&(E=!0,h=f.route.hydrateFallbackElement||null)));let R=t.concat(i.slice(0,m+1)),S=()=>{let C;return _?C=g:E?C=h:f.route.Component?C=u.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,u.createElement(Yt,{match:f,routeContext:{outlet:d,matches:R,isDataRoute:r!=null},children:C})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?u.createElement(Ft,{location:r.location,revalidation:r.revalidation,component:g,error:_,children:S(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):S()},null)}var Be=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Be||{}),ke=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ke||{});function Vt(e){let t=u.useContext(le);return t||y(!1),t}function Gt(e){let t=u.useContext(Mt);return t||y(!1),t}function Jt(e){let t=u.useContext(w);return t||y(!1),t}function De(e){let t=Jt(),r=t.matches[t.matches.length-1];return r.route.id||y(!1),r.route.id}function qt(){var e;let t=u.useContext(Ie),r=Gt(),n=De();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Xt(){let{router:e}=Vt(Be.UseNavigateStable),t=De(ke.UseNavigateStable),r=u.useRef(!1);return $e(()=>{r.current=!0}),u.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,D({fromRouteId:t},o)))},[e,t])}const ye={};function Qt(e,t,r){ye[e]||(ye[e]=!0)}function Zt(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hr(e){let{to:t,replace:r,state:n,relative:a}=e;$()||y(!1);let{future:o,static:i}=u.useContext(A),{matches:s}=u.useContext(w),{pathname:l}=M(),c=se(),d=ie(t,oe(s,o.v7_relativeSplatPath),l,a==="path"),f=JSON.stringify(d);return u.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:a}),[c,f,a,r,n]),null}function er(e){y(!1)}function tr(e){let{basename:t="/",children:r=null,location:n,navigationType:a=b.Pop,navigator:o,static:i=!1,future:s}=e;$()&&y(!1);let l=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:l,navigator:o,static:i,future:D({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=I(n));let{pathname:d="/",search:f="",hash:m="",state:_=null,key:E="default"}=n,g=u.useMemo(()=>{let h=ae(d,l);return h==null?null:{location:{pathname:h,search:f,hash:m,state:_,key:E},navigationType:a}},[l,d,f,m,_,E,a]);return g==null?null:u.createElement(A.Provider,{value:c},u.createElement(F.Provider,{children:r,value:g}))}function mr(e){let{children:t,location:r}=e;return Dt(J(t),r)}new Promise(()=>{});function J(e,t){t===void 0&&(t=[]);let r=[];return u.Children.forEach(e,(n,a)=>{if(!u.isValidElement(n))return;let o=[...t,a];if(n.type===u.Fragment){r.push.apply(r,J(n.props.children,o));return}n.type!==er&&y(!1),!n.props.index||!n.props.children||y(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=J(n.props.children,o)),r.push(i)}),r}/**
36 * React Router DOM v6.30.3
37 *
38 * Copyright (c) Remix Software Inc.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE.md file in the root directory of this source tree.
42 *
43 * @license MIT
44 */function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q.apply(this,arguments)}function rr(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function nr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ar(e,t){return e.button===0&&(!t||t==="_self")&&!nr(e)}function X(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function or(e,t){let r=X(e);return t&&t.forEach((n,a)=>
44{r.has(a)||t.getAll(a).forEach(o=>{r.append(a,o)})}),r}const ir=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lr="6";try{window.__reactRouterVersion=lr}catch{}const sr="startTransition",Ee=it[sr];function vr(e){let{basename:t,children:r,future:n,window:a}=e,o=u.useRef();o.current==null&&(o.current=ct({window:a,v5Compat:!0}));let i=o.current,[s,l]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},d=u.useCallback(f=>{c&&Ee?Ee(()=>l(f)):l(f)},[l,c]);return u.useLayoutEffect(()=>i.listen(d),[i,d]),u.useEffect(()=>Zt(n),[n]),u.createElement(tr,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}const ur=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gr=u.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,m=rr(t,ir),{basename:_}=u.useContext(A),E,g=!1;if(typeof c=="string"&&cr.test(c)&&(E=c,ur))try{let C=new URL(window.location.href),T=c.startsWith("//")?new URL(C.protocol+c):new URL(c),U=ae(T.pathname,_);T.origin===C.origin&&U!=null?c=U+T.search+T.hash:g=!0}catch{}let h=Bt(c,{relative:a}),R=fr(c,{replace:i,state:s,target:l,preventScrollReset:d,relative:a,viewTransition:f});function S(C){n&&n(C),C.defaultPrevented||R(C)}return u.createElement("a",q({},m,{href:E||h,onClick:g||o?n:S,ref:r,target:l}))});var _e;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_e||(_e={}));var Re;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Re||(Re={}));function fr(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,l=se(),c=M(),d=Me(e,{relative:i});return u.useCallback(f=>{if(ar(f,r)){f.preventDefault();let m=n!==void 0?n:W(c)===W(d);l(e,{replace:m,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[c,l,d,n,a,r,e,o,i,s])}function yr(e){let t=u.useRef(X(e)),r=u.useRef(!1),n=M(),a=u.useMemo(()=>or(n.search,r.current?null:t.current),[n.search]),o=se(),i=u.useCallback((s,l)=>{const c=X(typeof s=="function"?s(a):s);r.current=!0,o("?"+c,l)},[o,a]);return[a,i]}export{vr as B,gr as L,hr as N,mr as R,dr as a,se as b,yr as c,M as d,er as e,u as r,pr as u};

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.