39 lines
222 KiB
JavaScript
39 lines
222 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-xua1VIA2.js","./fuse-RZOrQKm7.js"])))=>i.map(i=>d[i]);
|
|||
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();"AbortSignal"in window&&(AbortSignal.timeout=AbortSignal.timeout||(e=>{const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}));"URL"in window&&typeof URL.parse!="function"&&(URL.parse=function(e,t){if(!e)return null;try{return t?new URL(e,t):new URL(e)}catch{return null}});var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ld(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Mo={},No={};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])})(No);(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=No;Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(d){return!d.match(/[^a-f0-9]/i)?parseInt(d,16):NaN}function n(d,m,b){const y=r(d);if(Number.isNaN(y)||b!==void 0&&b!==d.length)throw new SyntaxError(t.errorMessages.get(m));return y}function o(d){const m=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(m)}function a(d,m){const b=n(d,t.ErrorType.MalformedUnicode,4);if(m!==void 0){const y=n(m,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(b,y)}return String.fromCharCode(b)}function i(d){return d.charAt(0)==="{"&&d.charAt(d.length-1)==="}"}function s(d){if(!i(d))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));const m=d.slice(1,-1),b=n(m,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(b)}catch(y){throw y instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):y}}function l(d,m=!1){if(m)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const b=parseInt(d,8);return String.fromCharCode(b)}const c=new Map([["b","\b"],["f","\f"],["n",`
|
|||
|
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function f(d){return c.get(d)||d}const u=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function h(d,m=!1){return d.replace(u,function(b,y,w,S,x,H,J,Z,K){if(y!==void 0)return"\\";if(w!==void 0)return o(w);if(S!==void 0)return s(S);if(x!==void 0)return a(x,H);if(J!==void 0)return a(J);if(Z==="0")return"\0";if(Z!==void 0)return l(Z,!m);if(K!==void 0)return f(K);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=h,e.default=h})(Mo);var St={},Io={},Gr={exports:{}},xd=Gr.exports;(function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(it,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(p){return p&&r.call(p)==="[object RegExp]"}function a(p){return p&&typeof p=="object"&&!o(p)&&!Array.isArray(p)}function i(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(p){var v=new RegExp("|"+p);return v.exec("").length-1}function l(p){return"("+p+")"}function c(p){if(!p.length)return"(?!)";var v=p.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+v+")"}function f(p){if(typeof p=="string")return"(?:"+i(p)+")";if(o(p)){if(p.ignoreCase)throw new Error("RegExp /i flag not allowed");if(p.global)throw new Error("RegExp /g flag is implied");if(p.sticky)throw new Error("RegExp /y flag is implied");if(p.multiline)throw new Error("RegExp /m flag is implied");return p.source}else throw new Error("Not a pattern: "+p)}function u(p,v){return p.length>v?p:Array(v-p.length+1).join(" ")+p}function h(p,v){for(var E=p.length,C=0;;){var A=p.lastIndexOf(`
|
|||
|
`,E-1);if(A===-1||(C++,E=A,C===v)||E===0)break}var T=C<v?0:E+1;return p.substring(T).split(`
|
|||
|
`)}function d(p){for(var v=Object.getOwnPropertyNames(p),E=[],C=0;C<v.length;C++){var A=v[C],T=p[A],P=[].concat(T);if(A==="include"){for(var D=0;D<P.length;D++)E.push({include:P[D]});continue}var k=[];P.forEach(function(I){a(I)?(k.length&&E.push(b(A,k)),E.push(b(A,I)),k=[]):k.push(I)}),k.length&&E.push(b(A,k))}return E}function m(p){for(var v=[],E=0;E<p.length;E++){var C=p[E];if(C.include){for(var A=[].concat(C.include),T=0;T<A.length;T++)v.push({include:A[T]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));v.push(b(C.type,C))}return v}function b(p,v){if(a(v)||(v={match:v}),v.include)throw new Error("Matching rules cannot also include states");var E={defaultType:p,lineBreaks:!!v.error||!!v.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in v)t.call(v,C)&&(E[C]=v[C]);if(typeof E.type=="string"&&p!==E.type)throw new Error("Type transform cannot be a string (type '"+E.type+"' for token '"+p+"')");var A=E.match;return E.match=Array.isArray(A)?A:A?[A]:[],E.match.sort(function(T,P){return o(T)&&o(P)?0:o(P)?-1:o(T)?1:P.length-T.length}),E}function y(p){return Array.isArray(p)?m(p):d(p)}var w=b("error",{lineBreaks:!0,shouldThrow:!0});function S(p,v){for(var E=null,C=Object.create(null),A=!0,T=null,P=[],D=[],k=0;k<p.length;k++)p[k].fallback&&(A=!1);for(var k=0;k<p.length;k++){var I=p[k];if(I.include)throw new Error("Inheritance is not allowed in stateless lexers");if(I.error||I.fallback){if(E)throw!I.fallback==!E.fallback?new Error("Multiple "+(I.fallback?"fallback":"error")+" rules not allowed (for token '"+I.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+I.defaultType+"')");E=I}var $=I.match.slice();if(A)for(;$.length&&typeof $[0]=="string"&&$[0].length===1;){var Q=$.shift();C[Q.charCodeAt(0)]=I}if(I.pop||I.push||I.next){if(!v)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+I.defaultType+"')");if(I.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+I.defaultType+"')")}if($.length!==0){A=!1,P.push(I);for(var ue=0;ue<$.length;ue++){var he=$[ue];if(o(he)){if(T===null)T=he.unicode;else if(T!==he.unicode&&I.fallback===!1)throw new Error("If one rule is /u then all must be")}}var ye=c($.map(f)),ce=new RegExp(ye);if(ce.test(""))throw new Error("RegExp matches empty string: "+ce);var Ee=s(ye);if(Ee>0)throw new Error("RegExp has capture groups: "+ce+`
|
|||
|
Use (?: … ) instead`);if(!I.lineBreaks&&ce.test(`
|
|||
|
`))throw new Error("Rule should declare lineBreaks: "+ce);D.push(l(ye))}}var Te=E&&E.fallback,Ue=n&&!Te?"ym":"gm",Ye=n||Te?"":"|";T===!0&&(Ue+="u");var cr=new RegExp(c(D)+Ye,Ue);return{regexp:cr,groups:P,fast:C,error:E||w}}function x(p){var v=S(y(p));return new K({start:v},"start")}function H(p,v,E){var C=p&&(p.push||p.next);if(C&&!E[C])throw new Error("Missing state '"+C+"' (in token '"+p.defaultType+"' of state '"+v+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+v+"')")}function J(p,v){var E=p.$all?y(p.$all):[];delete p.$all;var C=Object.getOwnPropertyNames(p);v||(v=C[0]);for(var A=Object.create(null),T=0;T<C.length;T++){var P=C[T];A[P]=y(p[P]).concat(E)}for(var T=0;T<C.length;T++)for(var P=C[T],D=A[P],k=Object.create(null),I=0;I<D.length;I++){var $=D[I];if($.include){var Q=[I,1];if($.include!==P&&!k[$.include]){k[$.include]=!0;var ue=A[$.include];if(!ue)throw new Error("Cannot include nonexistent state '"+$.include+"' (in state '"+P+"')");for(var he=0;he<ue.length;he++){var ye=ue[he];D.indexOf(ye)===-1&&Q.push(ye)}}D.splice.apply(D,Q),I--}}for(var ce=Object.create(null),T=0;T<C.length;T++){var P=C[T];ce[P]=S(A[P],!0)}for(var T=0;T<C.length;T++){for(var Ee=C[T],Te=ce[Ee],Ue=Te.groups,I=0;I<Ue.length;I++)H(Ue[I],Ee,ce);for(var Ye=Object.getOwnPropertyNames(Te.fast),I=0;I<Ye.length;I++)H(Te.fast[Ye[I]],Ee,ce)}return new K(ce,v)}function Z(p){for(var v=typeof Map<"u",E=v?new Map:Object.create(null),C=Object.getOwnPropertyNames(p),A=0;A<C.length;A++){var T=C[A],P=p[T],D=Array.isArray(P)?P:[P];D.forEach(function(k){if(typeof k!="string")throw new Error("keyword must be string (in keyword '"+T+"')");v?E.set(k,T):E[k]=T})}return function(k){return v?E.get(k):E[k]}}var K=function(p,v){this.startState=v,this.states=p,this.buffer="",this.stack=[],this.reset()};K.prototype.reset=function(p,v){return this.buffer=p||"",this.index=0,this.line=v?v.line:1,this.col=v?v.col:1,this.queuedToken=v?v.queuedToken:null,this.queuedText=v?v.queuedText:"",this.queuedThrow=v?v.queuedThrow:null,this.setState(v?v.state:this.startState),this.stack=v&&v.stack?v.stack.slice():[],this},K.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},K.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var v=this.states[p];this.groups=v.groups,this.error=v.error,this.re=v.regexp,this.fast=v.fast}},K.prototype.popState=function(){this.setState(this.stack.pop())},K.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var se=n?function(p,v){return p.exec(v)}:function(p,v){var E=p.exec(v);return E[0].length===0?null:E};K.prototype._getGroup=function(p){for(var v=this.groups.length,E=0;E<v;E++)if(p[E+1]!==void 0)return this.groups[E];throw new Error("Cannot find token type for matched text")};function Y(){return this.value}if(K.prototype.next=function(){var p=this.index;if(this.queuedGroup){var v=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",v}var E=this.buffer;if(p!==E.length){var P=this.fast[E.charCodeAt(p)];if(P)return this._token(P,E.charAt(p),p);var C=this.re;C.lastIndex=p;var A=se(C,E),T=this.error;if(A==null)return this._token(T,E.slice(p,E.length),p);var P=this._getGroup(A),D=A[0];return T.fallback&&A.index!==p?(this.queuedGroup=P,this.queuedText=D,this._token(T,E.slice(p,A.index),p)):this._token(P,D,p)}},K.prototype._token=function(p,v,E){var C=0;if(p.lineBreaks){var A=/\n/g,T=1;if(v===`
|
|||
|
`)C=1;else for(;A.exec(v);)C++,T=A.lastIndex}var P={type:typeof p.type=="function"&&p.type(v)||p.defaultType,value:typeof p.value=="function"?p.value(v):v,text:v,toString:Y,offset:E,lineBreaks:C,line:this.line,col:this.col},D=v.length;if(this.index+=D,this.line+=C,C!==0?this.col=D-T+1:this.col+=D,p.shouldThrow){var k=new Error(this.formatError(P,"invalid syntax"));throw k}return p.pop?this.popState():p.push?this.pushState(p.push):p.next&&this.setState(p.next),P},typeof Symbol<"u"&&Symbol.iterator){var X=function(p){this.lexer=p};X.prototype.next=function(){var p=this.lexer.next();return{value:p,done:!p}},X.prototype[Symbol.iterator]=function(){return this},K.prototype[Symbol.iterator]=function(){return new X(this)}}return K.prototype.formatError=function(p,v){if(p==null)var E=this.buffer.slice(this.index),p={text:E,offset:this.index,lineBreaks:E.indexOf(`
|
|||
|
`)===-1?0:1,line:this.line,col:this.col};var C=2,A=Math.max(p.line-C,1),T=p.line+C,P=String(T).length,D=h(this.buffer,this.line-p.line+C+1).slice(0,5),k=[];k.push(v+" at line "+p.line+" col "+p.col+":"),k.push("");for(var I=0;I<D.length;I++){var $=D[I],Q=A+I;k.push(u(String(Q),P)+" "+$),Q===p.line&&k.push(u("",P+p.col+1)+"^")}return k.join(`
|
|||
|
`)},K.prototype.clone=function(){return new K(this.states,this.state)},K.prototype.has=function(p){return!0},{compile:x,states:J,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:Z}})})(Gr);var Vi=Gr.exports;(function(e){"use strict";var t=it&&it.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.lexer=e.states=void 0;const r=t(Vi);e.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:n=>n.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:n=>n.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:n=>n.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:n=>n.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:n=>n.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:n=>n.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:n=>n.substring(0,n.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},e.lexer=r.default.states(e.states)})(Io);Object.defineProperty(St,"__esModule",{value:!0});var Wi=St.parse=Zi=St.ParseError=void 0;const Do=Io,Lt=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),fr=e=>e==="plural"||e==="select"||e==="selectordinal";function Yi(e,t){let r="",n="";for(const a of t){const i=a.ctx.text;switch(n+=i,a.type){case"content":r+=a.value;break;case"argument":case"function":case"octothorpe":r+=i;break;default:throw new ae(e,`Unsupported part in strict mode function arg style: ${i}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}const Ji=["number","date","time","spellout","ordinal","duration"],Pn=["zero","one","two","few","many","other"];class ae extends Error{constructor(t,r){super(Do.lexer.formatError(t,r))}}var Zi=St.ParseError=ae;class Qi{constructor(t,r){var n,o,a,i;this.lexer=Do.lexer.reset(t),this.cardinalKeys=(n=r==null?void 0:r.cardinal)!==null&&n!==void 0?n:Pn,this.ordinalKeys=(o=r==null?void 0:r.ordinal)!==null&&o!==void 0?o:Pn,this.strict=(a=r==null?void 0:r.strict)!==null&&a!==void 0?a:!1,this.strictPluralKeys=(i=r==null?void 0:r.strictPluralKeys)!==null&&i!==void 0?i:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(t,r,n){if(n[0]==="="){if(r==="select")throw new ae(t,`The case ${n} is not valid with select`)}else if(r!=="select"){const o=r==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&o.length>0&&!o.includes(n)){const a=`The ${r} case ${n} is not valid in this locale`;throw new ae(t,a)}}}parseSelect({value:t},r,n,o){const a={type:o,arg:t,cases:[],ctx:n};o==="plural"||o==="selectordinal"?r=!0:this.strict&&(r=!1);for(const i of this.lexer)switch(i.type){case"offset":if(o==="select")throw new ae(i,"Unexpected plural offset for select");if(a.cases.length>0)throw new ae(i,"Plural offset must be set before cases");a.pluralOffset=Number(i.value),n.text+=i.text,n.lineBreaks+=i.lineBreaks;break;case"case":{this.checkSelectKey(i,o,i.value),a.cases.push({key:i.value,tokens:this.parseBody(r),ctx:Lt(i)});break}case"end":return a;default:throw new ae(i,`Unexpected lexer token: ${i.type}`)}throw new ae(null,"Unexpected message end")}parseArgToken(t,r){const n=Lt(t),o=this.lexer.next();if(!o)throw new ae(null,"Unexpected message end");if(n.text+=o.text,n.lineBreaks+=o.lineBreaks,this.strict&&(o.type==="func-simple"||o.type==="func-args")&&!Ji.includes(o.value)){const a=`Invalid strict mode function arg type: ${o.value}`;throw new ae(t,a)}switch(o.type){case"end":return{type:"argument",arg:t.value,ctx:n};case"func-simple":{const a=this.lexer.next();if(!a)throw new ae(null,"Unexpected message end");if(a.type!=="end")throw new ae(a,`Un
|
|||
|
* @remix-run/router v1.2.1
|
|||
|
*
|
|||
|
* Copyright (c) Remix Software Inc.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
*
|
|||
|
* @license MIT
|
|||
|
*/function zt(){return zt=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},zt.apply(this,arguments)}var Me;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Me||(Me={}));const Wn="popstate";function qs(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=We(o.location.hash.substr(1));return Ir("",{pathname:i,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let i=o.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let l=o.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:sn(a))}function n(o,a){zs(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Gs(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $s(){return Math.random().toString(36).substr(2,8)}function Yn(e){return{usr:e.state,key:e.key}}function Ir(e,t,r,n){return r===void 0&&(r=null),zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?We(t):t,{state:r,key:t&&t.key||n||$s()})}function sn(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 We(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 Ks(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:sn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Gs(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Me.Pop,l=null;function c(){s=Me.Pop,l&&l({action:s,location:h.location})}function f(d,m){s=Me.Push;let b=Ir(h.location,d,m);r&&r(b,d);let y=Yn(b),w=h.createHref(b);try{i.pushState(y,"",w)}catch{o.location.assign(w)}a&&l&&l({action:s,location:h.location})}function u(d,m){s=Me.Replace;let b=Ir(h.location,d,m);r&&r(b,d);let y=Yn(b),w=h.createHref(b);i.replaceState(y,"",w),a&&l&&l({action:s,location:h.location})}let h={get action(){return s},get location(){return e(o,i)},listen(d){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Wn,c),l=d,()=>{o.removeEventListener(Wn,c),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let m=Ks(typeof d=="string"?d:sn(d));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:u,go(d){return i.go(d)}};return h}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));function Vs(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?We(t):t,o=Ra(n.pathname||"/",r);if(o==null)return null;let a=Aa(e);Ws(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=nl(a[s],al(o));return i}function Aa(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(ie(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. 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=He([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(ie(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Aa(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:tl(c,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of P
|
|||
|
* React Router v6.6.2
|
|||
|
*
|
|||
|
* Copyright (c) Remix Software Inc.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
*
|
|||
|
* @license MIT
|
|||
|
*/function kr(){return kr=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},kr.apply(this,arguments)}function yl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const gl=typeof Object.is=="function"?Object.is:yl,{useState:vl,useEffect:wl,useLayoutEffect:bl,useDebugValue:El}=Nr;function Sl(e,t,r){const n=t(),[{inst:o},a]=vl({inst:{value:n,getSnapshot:t}});return bl(()=>{o.value=n,o.getSnapshot=t,mr(o)&&a({inst:o})},[e,n,t]),wl(()=>(mr(o)&&a({inst:o}),e(()=>{mr(o)&&a({inst:o})})),[e]),El(n),n}function mr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!gl(r,n)}catch{return!0}}function Cl(e,t,r){return t()}const Al=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pl=!Al,Rl=Pl?Cl:Sl,Fd="useSyncExternalStore"in Nr?(e=>e.useSyncExternalStore)(Nr):Rl,Oa=Ie(null),La=Ie(null);const un=Ie(null),ir=Ie(null),ht=Ie({outlet:null,matches:[]}),xa=Ie(null);function sr(){return le(ir)!=null}function cn(){return sr()||ie(!1),le(ir).location}function Tl(){sr()||ie(!1);let{basename:e,navigator:t}=le(un),{matches:r}=le(ht),{pathname:n}=cn(),o=JSON.stringify(ul(r).map(s=>s.pathnameBase)),a=De(!1);return Ve(()=>{a.current=!0}),dt(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=cl(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:He([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function jd(){let{matches:e}=le(ht),t=e[e.length-1];return t?t.params:{}}function Ol(e,t){sr()||ie(!1);let{navigator:r}=le(un),n=le(La),{matches:o}=le(ht),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,f=cn(),u;if(t){var h;let w=typeof t=="string"?We(t):t;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||ie(!1),u=w}else u=f;let d=u.pathname||"/",m=l==="/"?d:d.slice(l.length)||"/",b=Vs(e,{pathname:m}),y=Nl(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:He([l,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:He([l,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n||void 0);return t&&y?V(ir.Provider,{value:{location:kr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Me.Pop}},y):y}function Ll(){let e=Ul(),t=_l(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n};return V(me,null,V("h2",null,"Unhandled Thrown Error!"),V("h3",{style:{fontStyle:"italic"}},t),r?V("pre",{style:o},r):null,V("p",null,"💿 Hey developer 👋"),V("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V("code",{style:a},"errorElement")," props on ",V("code",{style:a},"<Route>")))}class xl extends pe{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?V(ht.Provider,{value:this.props.routeContext},V(xa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ml(e){let{routeContext:t,match:r,children:n}=e,o=le(Oa);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),V(ht.Provider,{value:t},n)}function Nl(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,o=r==null?void 0:r.errors;if(o!=null){let a=n.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));a>=0||ie(!1),n=n.slice(0,Math.min(n.length,a+1))}return n.reduceRight((a,i,s)=>{let l=i.rout
|
|||
|
* React Router DOM v6.6.2
|
|||
|
*
|
|||
|
* Copyright (c) Remix Software Inc.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
*
|
|||
|
* @license MIT
|
|||
|
*/function Fr(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(o=>[r,o]):[[r,n]])},[]))}function Hl(e,t){let r=Fr(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function qd(e){let{basename:t,children:r,window:n}=e,o=De();o.current==null&&(o.current=qs({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ge({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),V(jl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var eo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(eo||(eo={}));var to;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(to||(to={}));function zd(e){let t=De(Fr(e)),r=cn(),n=be(()=>Hl(r.search,t.current),[r.search]),o=Tl(),a=dt((i,s)=>{const l=Fr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const Bl=Symbol(),dn=Symbol(),yt="a",Ma="f",ro="p",Na="c",Ia="t",yr="n",gr="g",fn="h",Et="w",hn="o",pn="k";let ql=(e,t)=>new Proxy(e,t);const jr=Object.getPrototypeOf,Hr=new WeakMap,Da=e=>e&&(Hr.has(e)?Hr.get(e):jr(e)===Object.prototype||jr(e)===Array.prototype),Kt=e=>typeof e=="object"&&e!==null,zl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),$l=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(jr(e),t)},Kl=(e,t)=>{const r={[Ma]:t};let n=!1;const o=(s,l)=>{if(!n){let c=r[yt].get(e);if(c||(c={},r[yt].set(e,c)),s===Et)c[Et]=!0;else{let f=c[s];f||(f=new Set,c[s]=f),f.add(l)}}},a=()=>{n=!0,r[yt].delete(e)},i={get(s,l){return l===dn?e:(o(pn,l),ka(Reflect.get(s,l),r[yt],r[Na],r[Ia]))},has(s,l){return l===Bl?(a(),!0):(o(fn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(hn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(Et),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},_n=e=>e[dn]||e,ka=(e,t,r,n)=>{if(!Da(e))return e;let o=n&&n.get(e);if(!o){const l=_n(e);zl(l)?o=[l,$l(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][Ma]!==!!i)&&(s=Kl(a,!!i),s[1][ro]=ql(i||a,s[0]),r&&r.set(a,s)),s[1][yt]=t,s[1][Na]=r,s[1][Ia]=n,s[1][ro]},Gl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ua=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Kt(e)||!Kt(t))return!0;const a=r.get(_n(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[yr]===t)return s[gr];n.set(e,{[yr]:t,[gr]:!1})}let i=null;try{for(const s of a[fn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[Et]===!0){if(i=Gl(e,t),i)return i}else for(const s of a[hn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),c=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==c,i)return i}for(const s of a[pn]||[])if(i=Ua(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[yr]:t,[gr]:i})}};const Vl=e=>Da(e)&&e[dn]||null,no=(e,t=!0)=>{Hr.set(e,t)},Wl=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,c,f;if(o.has(i))return;Kt(i)&&o.add(i);const u=Kt(i)&&t.get(_n(i));if(u){if((l=u[fn])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),u[Et]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(c=u[hn])===null||c===void 0||c.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=u[pn])===null||f===void 0||f.forEach(h=>{(!r||"value"in(Object.getOwnPropertyDescriptor(i,h)||{}))&&a(i[h],s?[...s,h]:[h])})}else s&&n.push(s)};return a(e),n};const Gt={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"}
|
|||
|
//# sourceMappingURL=useTitle-B8ZF9tfB.js.map
|