Files
pgsql-jellyfin/Jellyfin.Server/wwwroot/node_modules.react-router.bundle.js
T
2026-07-08 13:13:46 -04:00

2 lines
14 KiB
JavaScript

/*! For license information please see node_modules.react-router.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[85500],{87404:function(e,t,r){var n;r.d(t,{$3:function(){return I},$P:function(){return C},BV:function(){return W},C5:function(){return G},Ix:function(){return Q},Rq:function(){return m},UX:function(){return b},V8:function(){return q},Zp:function(){return P},cq:function(){return L},g:function(){return k},jb:function(){return y},mP:function(){return M},ph:function(){return w},qh:function(){return X},r5:function(){return z},sp:function(){return h},sv:function(){return V},wE:function(){return K},wQ:function(){return S},x$:function(){return j},zy:function(){return O}}),r(29305),r(32733),r(84701),r(81678),r(24776),r(68854),r(69892),r(44962),r(86584),r(28693),r(89336),r(4754),r(94),r(77575),r(36947),r(26437),r(83810),r(52697),r(78557),r(90076),r(21359),r(95021),r(73687),r(50987),r(83994),r(53819),r(93062),r(97456),r(64062),r(23630),r(82367);var o=r(63696),a=r(87383);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(){return d=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},d.apply(this,arguments)}var h=o.createContext(null),m=o.createContext(null),y=o.createContext(null),g=o.createContext(null),b=o.createContext({outlet:null,matches:[],isDataRoute:!1}),E=o.createContext(null);function C(e,t){var r=(void 0===t?{}:t).relative;x()||(0,a.Oi)(!1);var n=o.useContext(y),i=n.basename,u=n.navigator,l=j(e,{relative:r}),c=l.hash,s=l.pathname,v=l.search,p=s;return"/"!==i&&(p="/"===s?i:(0,a.HS)([i,s])),u.createHref({pathname:p,search:v,hash:c})}function x(){return null!=o.useContext(g)}function O(){return x()||(0,a.Oi)(!1),o.useContext(g).location}function S(){return o.useContext(g).navigationType}function R(e){o.useContext(y).static||o.useLayoutEffect(e)}function P(){var e,t,r,n;return o.useContext(b).isDataRoute?(e=(T.UseNavigateStable,n=o.useContext(h),n||(0,a.Oi)(!1),n).router,t=H(A.UseNavigateStable),r=o.useRef(!1),R((function(){r.current=!0})),o.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,d({fromRouteId:t},o)))}),[e,t])):function(){x()||(0,a.Oi)(!1);var e=o.useContext(h),t=o.useContext(y),r=t.basename,n=t.future,i=t.navigator,u=o.useContext(b).matches,l=O().pathname,c=JSON.stringify((0,a.yD)(u,n.v7_relativeSplatPath)),s=o.useRef(!1);return R((function(){s.current=!0})),o.useCallback((function(t,n){if(void 0===n&&(n={}),s.current)if("number"!=typeof t){var o=(0,a.Gh)(t,JSON.parse(c),l,"path"===n.relative);null==e&&"/"!==r&&(o.pathname="/"===o.pathname?r:(0,a.HS)([r,o.pathname])),(n.replace?i.replace:i.push)(o,n.state,n)}else i.go(t)}),[r,i,c,l,e])}()}var _=o.createContext(null);function k(){var e=o.useContext(b).matches,t=e[e.length-1];return t?t.params:{}}function j(e,t){var r=(void 0===t?{}:t).relative,n=o.useContext(y).future,i=o.useContext(b).matches,u=O().pathname,l=JSON.stringify((0,a.yD)(i,n.v7_relativeSplatPath));return o.useMemo((function(){return(0,a.Gh)(e,JSON.parse(l),u,"path"===r)}),[e,l,u,r])}function w(e,t,r,n){x()||(0,a.Oi)(!1);var i,u=o.useContext(y).navigator,l=o.useContext(b).matches,c=l[l.length-1],s=c?c.params:{},v=(c&&c.pathname,c?c.pathnameBase:"/"),p=(c&&c.route,O());if(t){var f,h="string"==typeof t?(0,a.Rr)(t):t;"/"===v||(null==(f=h.pathname)?void 0:f.startsWith(v))||(0,a.Oi)(!1),i=h}else i=p;var m=i.pathname||"/",E=m;if("/"!==v){var C=v.replace(/^\//,"").split("/");E="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}var S=(0,a.ue)(e,{pathname:E}),R=function(e,t,r,n){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var u;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(u=n)&&u.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}var l=e,c=null==(i=r)?void 0:i.errors;if(null!=c){var s=l.findIndex((function(e){return e.route.id&&void 0!==(null==c?void 0:c[e.route.id])}));s>=0||(0,a.Oi)(!1),l=l.slice(0,Math.min(l.length,s+1))}var v=!1,p=-1;if(r&&n&&n.v7_partialHydration)for(var f=0;f<l.length;f++){var d=l[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(p=f),d.route.id){var h=r,m=h.loaderData,y=h.errors,g=d.route.loader&&void 0===m[d.route.id]&&(!y||void 0===y[d.route.id]);if(d.route.lazy||g){v=!0,l=p>=0?l.slice(0,p+1):[l[0]];break}}}return l.reduceRight((function(e,n,a){var i,u,s=!1,f=null,d=null;r&&(i=c&&n.route.id?c[n.route.id]:void 0,f=n.route.errorElement||U,v&&(p<0&&0===a?(J[u="route-fallback"]||(J[u]=!0),s=!0,d=null):p===a&&(s=!0,d=n.route.hydrateFallbackElement||null)));var h=t.concat(l.slice(0,a+1)),m=function(){var t;return t=i?f:s?d:n.route.Component?o.createElement(n.route.Component,null):n.route.element?n.route.element:e,o.createElement(N,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?o.createElement(D,{location:r.location,revalidation:r.revalidation,component:f,error:i,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(S&&S.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:(0,a.HS)([v,u.encodeLocation?u.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,a.HS)([v,u.encodeLocation?u.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),l,r,n);return t&&R?o.createElement(g.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default"},i),navigationType:a.rc.Pop}},R):R}function B(){var e=z(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:n},r):null,null)}var U=o.createElement(B,null),D=function(e){function t(e){var r,n,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=this,o=t,a=[e],o=p(o),r=function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,v()?Reflect.construct(o,a||[],p(n).constructor):o.apply(n,a))).state={location:e.location,revalidation:e.revalidation,error:e.error},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,a=[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}],(n=[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return void 0!==this.state.error?o.createElement(b.Provider,{value:this.props.routeContext},o.createElement(E.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}])&&c(r.prototype,n),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(o.Component);function N(e){var t=e.routeContext,r=e.match,n=e.children,a=o.useContext(h);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),o.createElement(b.Provider,{value:t},n)}var T=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T||{}),A=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}(A||{});function F(e){var t=o.useContext(m);return t||(0,a.Oi)(!1),t}function H(e){var t=function(){var e=o.useContext(b);return e||(0,a.Oi)(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||(0,a.Oi)(!1),r.route.id}function I(){return H(A.UseRouteId)}function L(){return F(A.UseNavigation).navigation}function M(){var e=F(A.UseActionData),t=H(A.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function z(){var e,t=o.useContext(E),r=F(A.UseRouteError),n=H(A.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}var J={},$=function(e,t,r){};function q(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&$("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||$("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&$("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&$("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&$("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&$("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function G(e){var t=e.to,r=e.replace,n=e.state,i=e.relative;x()||(0,a.Oi)(!1);var u=o.useContext(y),l=u.future,c=(u.static,o.useContext(b).matches),s=O().pathname,v=P(),p=(0,a.Gh)(t,(0,a.yD)(c,l.v7_relativeSplatPath),s,"path"===i),f=JSON.stringify(p);return o.useEffect((function(){return v(JSON.parse(f),{replace:r,state:n,relative:i})}),[v,f,i,r,n]),null}function V(e){return t=e.context,(r=o.useContext(b).outlet)?o.createElement(_.Provider,{value:t},r):r;var t,r}function X(e){(0,a.Oi)(!1)}function Q(e){var t=e.basename,r=void 0===t?"/":t,n=e.children,i=void 0===n?null:n,u=e.location,l=e.navigationType,c=void 0===l?a.rc.Pop:l,s=e.navigator,v=e.static,p=void 0!==v&&v,f=e.future;x()&&(0,a.Oi)(!1);var h=r.replace(/^\/*/,"/"),m=o.useMemo((function(){return{basename:h,navigator:s,static:p,future:d({v7_relativeSplatPath:!1},f)}}),[h,f,s,p]);"string"==typeof u&&(u=(0,a.Rr)(u));var b=u,E=b.pathname,C=void 0===E?"/":E,O=b.search,S=void 0===O?"":O,R=b.hash,P=void 0===R?"":R,_=b.state,k=void 0===_?null:_,j=b.key,w=void 0===j?"default":j,B=o.useMemo((function(){var e=(0,a.pb)(C,h);return null==e?null:{location:{pathname:e,search:S,hash:P,state:k,key:w},navigationType:c}}),[h,C,S,P,k,w,c]);return null==B?null:o.createElement(y.Provider,{value:m},o.createElement(g.Provider,{children:i,value:B}))}function W(e){var t=e.children,r=e.location;return w(Z(t),r)}(n||(n=r.t(o,2))).startTransition;new Promise((function(){}));function Z(e,t){void 0===t&&(t=[]);var r=[];return o.Children.forEach(e,(function(e,n){if(o.isValidElement(e)){var i=[].concat(u(t),[n]);if(e.type!==o.Fragment){e.type!==X&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.Oi)(!1);var l={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=Z(e.props.children,i)),r.push(l)}else r.push.apply(r,Z(e.props.children,i))}})),r}function K(e){var t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:o.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}o.Component}}]);