Files
pgsql-jellyfin/wwwroot/node_modules.react-router-dom.bundle.js
T
2026-07-08 12:44:58 -04:00

2 lines
16 KiB
JavaScript

/*! For license information please see node_modules.react-router-dom.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7011],{9055:function(t,e,n){var r,o;n.d(e,{Ge:function(){return k},N_:function(){return $},PI:function(){return R},lV:function(){return Z},of:function(){return X},ok:function(){return q},pg:function(){return V}}),n(29305),n(32733),n(84701),n(81678),n(2623),n(24776),n(14382),n(69892),n(84734),n(44962),n(86584),n(20518),n(89336),n(4754),n(10849),n(58551),n(70389),n(94),n(77575),n(36947),n(57132),n(26437),n(83810),n(52697),n(78557),n(90076),n(45309),n(95021),n(73687),n(92745),n(50987),n(83994),n(93062),n(97456),n(64062),n(23630),n(82367),n(24362),n(76218),n(99102);var i=n(63696),a=n(78325),u=n(87404),c=n(87383);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return f(s,"_invoke",function(n,r,o){var i,u,c,s=0,l=o||[],f=!1,v={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,u=0,c=t,v.n=n,a}};function p(n,r){for(u=n,c=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],p=v.p,d=i[2];n>3?(o=d===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,v.v=r,v.n=i[1]):p<d&&(o=n<3||i[0]>r||r>d)&&(i[4]=n,i[5]=r,v.n=d,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),u=l,c=d;(e=u<2?t:c)||!f;){i||(u?u<3?(u>1&&(v.n=-1),p(u,c)):v.n=c:v.v=c);try{if(s=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=v.n<0)?c:n.call(r,v))!==a)break}catch(e){i=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var v=[][r]?e(e([][r]())):(f(e={},r,(function(){return this})),e),p=s.prototype=u.prototype=Object.create(v);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,f(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return c.prototype=s,f(p,"constructor",s),f(s,"constructor",c),c.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,r,(function(){return this})),f(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:d}})()}function f(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,e,n,r){if(e)o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var i=function(e,n){f(t,e,(function(t){return this._invoke(e,n,t)}))};i("next",0),i("throw",1),i("return",2)}},f(t,e,n,r)}function v(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){v(i,r,o,a,u,"next",t)}function u(t){v(i,r,o,a,u,"throw",t)}a(void 0)}))}}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function m(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function y(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b.apply(this,arguments)}function g(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var S="get",T="application/x-www-form-urlencoded";function E(t){return null!=t&&"string"==typeof t.tagName}function R(t){return void 0===t&&(t=""),new URLSearchParams("string"==typeof t||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((function(e,n){var r=t[n];return e.concat(Array.isArray(r)?r.map((function(t){return[n,t]})):[[n,r]])}),[]))}var x=null,O=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function L(t){return null==t||O.has(t)?t:null}var _=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],j=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(t){}function k(t,e){return(0,c.aE)({basename:null==e?void 0:e.basename,future:b({},null==e?void 0:e.future,{v7_prependBasename:!0}),history:(0,c.TM)({window:null==e?void 0:e.window}),hydrationData:(null==e?void 0:e.hydrationData)||(r=null==(n=window)?void 0:n.__staticRouterHydrationData,r&&r.errors&&(r=b({},r,{errors:P(r.errors)})),r),routes:t,mapRouteProperties:u.wE,dataStrategy:null==e?void 0:e.dataStrategy,patchRoutesOnNavigation:null==e?void 0:e.patchRoutesOnNavigation,window:null==e?void 0:e.window}).initialize();var n,r}function P(t){if(!t)return null;for(var e={},n=0,r=Object.entries(t);n<r.length;n++){var o=h(r[n],2),i=o[0],a=o[1];if(a&&"RouteErrorResponse"===a.__type)e[i]=new c.VV(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){var u=window[a.__subType];if("function"==typeof u)try{var s=new u(a.message);s.stack="",e[i]=s}catch(t){}}if(null==e[i]){var l=new Error(a.message);l.stack="",e[i]=l}}else e[i]=a}return e}var A=i.createContext({isTransitioning:!1}),C=i.createContext(new Map),D=(r||(r=n.t(i,2))).startTransition,F=(o||(o=n.t(a,2))).flushSync;function U(t){F?F(t):t()}(r||(r=n.t(i,2))).useId;var M=m((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.status="pending",this.promise=new Promise((function(t,n){e.resolve=function(n){"pending"===e.status&&(e.status="resolved",t(n))},e.reject=function(t){"pending"===e.status&&(e.status="rejected",n(t))}}))}));function V(t){var e=t.fallbackElement,n=t.router,r=t.future,o=h(i.useState(n.state),2),a=o[0],c=o[1],s=h(i.useState(),2),f=s[0],v=s[1],d=h(i.useState({isTransitioning:!1}),2),m=d[0],y=d[1],w=h(i.useState(),2),b=w[0],g=w[1],S=h(i.useState(),2),T=S[0],E=S[1],R=h(i.useState(),2),x=R[0],O=R[1],L=i.useRef(new Map),_=(r||{}).v7_startTransition,j=i.useCallback((function(t){_?function(t){D?D(t):t()}(t):t()}),[_]),k=i.useCallback((function(t,e){var r=e.deletedFetchers,o=e.flushSync,i=e.viewTransitionOpts;t.fetchers.forEach((function(t,e){void 0!==t.data&&L.current.set(e,t.data)})),r.forEach((function(t){return L.current.delete(t)}));var a=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!a){if(o){U((function(){T&&(b&&b.resolve(),T.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));var u=n.window.document.startViewTransition((function(){U((function(){return c(t)}))}));return u.finished.finally((function(){U((function(){g(void 0),E(void 0),v(void 0),y({isTransitioning:!1})}))})),void U((function(){return E(u)}))}T?(b&&b.resolve(),T.skipTransition(),O({state:t,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(v(t),y({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?U((function(){return c(t)})):j((function(){return c(t)}))}),[n.window,T,b,L,j]);i.useLayoutEffect((function(){return n.subscribe(k)}),[n,k]),i.useEffect((function(){m.isTransitioning&&!m.flushSync&&g(new M)}),[m]),i.useEffect((function(){if(b&&f&&n.window){var t=f,e=b.promise,r=n.window.document.startViewTransition(p(l().m((function n(){return l().w((function(n){for(;;)switch(n.n){case 0:return j((function(){return c(t)})),n.n=1,e;case 1:return n.a(2)}}),n)}))));r.finished.finally((function(){g(void 0),E(void 0),v(void 0),y({isTransitioning:!1})})),E(r)}}),[j,f,b,n.window]),i.useEffect((function(){b&&f&&a.location.key===f.location.key&&b.resolve()}),[b,T,a.location,f]),i.useEffect((function(){!m.isTransitioning&&x&&(v(x.state),y({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),O(void 0))}),[m.isTransitioning,x]),i.useEffect((function(){}),[]);var P=i.useMemo((function(){return{createHref:n.createHref,encodeLocation:n.encodeLocation,go:function(t){return n.navigate(t)},push:function(t,e,r){return n.navigate(t,{state:e,preventScrollReset:null==r?void 0:r.preventScrollReset})},replace:function(t,e,r){return n.navigate(t,{replace:!0,state:e,preventScrollReset:null==r?void 0:r.preventScrollReset})}}}),[n]),F=n.basename||"/",V=i.useMemo((function(){return{router:n,navigator:P,static:!1,basename:F}}),[n,P,F]),N=i.useMemo((function(){return{v7_relativeSplatPath:n.future.v7_relativeSplatPath}}),[n.future.v7_relativeSplatPath]);return i.useEffect((function(){return(0,u.V8)(r,n.future)}),[r,n.future]),i.createElement(i.Fragment,null,i.createElement(u.sp.Provider,{value:V},i.createElement(u.Rq.Provider,{value:a},i.createElement(C.Provider,{value:L.current},i.createElement(A.Provider,{value:m},i.createElement(u.Ix,{basename:F,location:a.location,navigationType:a.historyAction,navigator:P,future:N},a.initialized||n.future.v7_partialHydration?i.createElement(K,{routes:n.routes,future:n.future,state:a}):e))))),null)}var K=i.memo(N);function N(t){var e=t.routes,n=t.future,r=t.state;return(0,u.ph)(e,void 0,r,n)}var z,G,I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,H=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=i.forwardRef((function(t,e){var n,r=t.onClick,o=t.relative,a=t.reloadDocument,s=t.replace,l=t.state,f=t.target,v=t.to,p=t.preventScrollReset,d=t.viewTransition,m=g(t,_),y=i.useContext(u.jb).basename,h=!1;if("string"==typeof v&&H.test(v)&&(n=v,I))try{var w=new URL(window.location.href),S=v.startsWith("//")?new URL(w.protocol+v):new URL(v),T=(0,c.pb)(S.pathname,y);S.origin===w.origin&&null!=T?v=T+S.search+S.hash:h=!0}catch(t){}var E=(0,u.$P)(v,{relative:o}),R=function(t,e){var n=void 0===e?{}:e,r=n.target,o=n.replace,a=n.state,s=n.preventScrollReset,l=n.relative,f=n.viewTransition,v=(0,u.Zp)(),p=(0,u.zy)(),d=(0,u.x$)(t,{relative:l});return i.useCallback((function(e){if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,r)){e.preventDefault();var n=void 0!==o?o:(0,c.AO)(p)===(0,c.AO)(d);v(t,{replace:n,state:a,preventScrollReset:s,relative:l,viewTransition:f})}}),[p,v,d,o,a,r,t,s,l,f])}(v,{replace:s,state:l,target:f,preventScrollReset:p,relative:o,viewTransition:d});return i.createElement("a",b({},m,{href:n||E,onClick:h||a?r:function(t){r&&r(t),t.defaultPrevented||R(t)},ref:e,target:f}))})),Z=i.forwardRef((function(t,e){var n=t.fetcherKey,r=t.navigate,o=t.reloadDocument,a=t.replace,s=t.state,l=t.method,f=void 0===l?S:l,v=t.action,p=t.onSubmit,d=t.relative,m=t.preventScrollReset,y=t.viewTransition,w=g(t,j),T=X(),E=function(t,e){var n=(void 0===e?{}:e).relative,r=i.useContext(u.jb).basename,o=i.useContext(u.UX);o||(0,c.Oi)(!1);var a=h(o.matches.slice(-1),1)[0],s=b({},(0,u.x$)(t||".",{relative:n})),l=(0,u.zy)();if(null==t){s.search=l.search;var f=new URLSearchParams(s.search),v=f.getAll("index");if(v.some((function(t){return""===t}))){f.delete("index"),v.filter((function(t){return t})).forEach((function(t){return f.append("index",t)}));var p=f.toString();s.search=p?"?"+p:""}}return t&&"."!==t||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(s.pathname="/"===s.pathname?r:(0,c.HS)([r,s.pathname])),(0,c.AO)(s)}(v,{relative:d}),R="get"===f.toLowerCase()?"get":"post";return i.createElement("form",b({ref:e,method:R,action:E,onSubmit:o?p:function(t){if(p&&p(t),!t.defaultPrevented){t.preventDefault();var e=t.nativeEvent.submitter,o=(null==e?void 0:e.getAttribute("formmethod"))||f;T(e||t.currentTarget,{fetcherKey:n,method:o,navigate:r,replace:a,state:s,relative:d,preventScrollReset:m,viewTransition:y})}}},w))}));function q(t){var e=i.useRef(R(t)),n=i.useRef(!1),r=(0,u.zy)(),o=i.useMemo((function(){return function(t,e){var n=R(t);return e&&e.forEach((function(t,r){n.has(r)||e.getAll(r).forEach((function(t){n.append(r,t)}))})),n}(r.search,n.current?null:e.current)}),[r.search]),a=(0,u.Zp)(),c=i.useCallback((function(t,e){var r=R("function"==typeof t?t(o):t);n.current=!0,a("?"+r,e)}),[a,o]);return[o,c]}(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(z||(z={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(G||(G={}));var B=0,W=function(){return"__"+String(++B)+"__"};function X(){var t,e=(z.UseSubmit,t=i.useContext(u.sp),t||(0,c.Oi)(!1),t).router,n=i.useContext(u.jb).basename,r=(0,u.$3)();return i.useCallback((function(t,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();var i=function(t,e){var n,r,o,i,a,u;if(E(u=t)&&"form"===u.tagName.toLowerCase()){var s=t.getAttribute("action");r=s?(0,c.pb)(s,e):null,n=t.getAttribute("method")||S,o=L(t.getAttribute("enctype"))||T,i=new FormData(t)}else if(function(t){return E(t)&&"button"===t.tagName.toLowerCase()}(t)||function(t){return E(t)&&"input"===t.tagName.toLowerCase()}(t)&&("submit"===t.type||"image"===t.type)){var l=t.form;if(null==l)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');var f=t.getAttribute("formaction")||l.getAttribute("action");if(r=f?(0,c.pb)(f,e):null,n=t.getAttribute("formmethod")||l.getAttribute("method")||S,o=L(t.getAttribute("formenctype"))||L(l.getAttribute("enctype"))||T,i=new FormData(l,t),!function(){if(null===x)try{new FormData(document.createElement("form"),0),x=!1}catch(t){x=!0}return x}()){var v=t.name,p=t.type,d=t.value;if("image"===p){var m=v?v+".":"";i.append(m+"x","0"),i.append(m+"y","0")}else v&&i.append(v,d)}}else{if(E(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=S,r=null,o=T,a=t}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}(t,n),a=i.action,u=i.method,s=i.encType,l=i.formData,f=i.body;if(!1===o.navigate){var v=o.fetcherKey||W();e.fetch(v,r,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:f,formMethod:o.method||u,formEncType:o.encType||s,flushSync:o.flushSync})}else e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:f,formMethod:o.method||u,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,n,r])}}}]);