phanpy-cz/assets/useTitle-SRT6j-GL.js

39 lines
218 KiB
JavaScript
Raw Permalink Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-oSeoicVc.js","./fuse-MwQ_F2cO.js","./tinyld-light-PxOyhYWY.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 st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sd(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 No={},Io={};(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"]])})(Io);(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=Io;Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(f){return!f.match(/[^a-f0-9]/i)?parseInt(f,16):NaN}function n(f,m,b){const v=r(f);if(Number.isNaN(v)||b!==void 0&&b!==f.length)throw new SyntaxError(t.errorMessages.get(m));return v}function o(f){const m=n(f,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(m)}function a(f,m){const b=n(f,t.ErrorType.MalformedUnicode,4);if(m!==void 0){const v=n(m,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(b,v)}return String.fromCharCode(b)}function i(f){return f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"}function s(f){if(!i(f))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));const m=f.slice(1,-1),b=n(m,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(b)}catch(v){throw v instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):v}}function l(f,m=!1){if(m)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const b=parseInt(f,8);return String.fromCharCode(b)}const c=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function h(f){return c.get(f)||f}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 d(f,m=!1){return f.replace(u,function(b,v,w,S,L,j,J,Z,G){if(v!==void 0)return"\\";if(w!==void 0)return o(w);if(S!==void 0)return s(S);if(L!==void 0)return a(L,j);if(J!==void 0)return a(J);if(Z==="0")return"\0";if(Z!==void 0)return l(Z,!m);if(G!==void 0)return h(G);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=d,e.default=d})(No);var bt={},Do={},Kr={exports:{}},Cd=Kr.exports;(function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(st,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 g=new RegExp("|"+p);return g.exec("").length-1}function l(p){return"("+p+")"}function c(p){if(!p.length)return"(?!)";var g=p.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+g+")"}function h(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,g){return p.length>g?p:Array(g-p.length+1).join(" ")+p}function d(p,g){for(var E=p.length,C=0;;){var A=p.lastIndexOf(`
`,E-1);if(A===-1||(C++,E=A,C===g)||E===0)break}var T=C<g?0:E+1;return p.substring(T).split(`
`)}function f(p){for(var g=Object.getOwnPropertyNames(p),E=[],C=0;C<g.length;C++){var A=g[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 g=[],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++)g.push({include:A[T]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));g.push(b(C.type,C))}return g}function b(p,g){if(a(g)||(g={match:g}),g.include)throw new Error("Matching rules cannot also include states");var E={defaultType:p,lineBreaks:!!g.error||!!g.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in g)t.call(g,C)&&(E[C]=g[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 v(p){return Array.isArray(p)?m(p):f(p)}var w=b("error",{lineBreaks:!0,shouldThrow:!0});function S(p,g){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 z=I.match.slice();if(A)for(;z.length&&typeof z[0]=="string"&&z[0].length===1;){var Q=z.shift();C[Q.charCodeAt(0)]=I}if(I.pop||I.push||I.next){if(!g)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(z.length!==0){A=!1,P.push(I);for(var ue=0;ue<z.length;ue++){var he=z[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(z.map(h)),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,ke=n&&!Te?"ym":"gm",Je=n||Te?"":"|";T===!0&&(ke+="u");var lr=new RegExp(c(D)+Je,ke);return{regexp:lr,groups:P,fast:C,error:E||w}}function L(p){var g=S(v(p));return new G({start:g},"start")}function j(p,g,E){var C=p&&(p.push||p.next);if(C&&!E[C])throw new Error("Missing state '"+C+"' (in token '"+p.defaultType+"' of state '"+g+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+g+"')")}function J(p,g){var E=p.$all?v(p.$all):[];delete p.$all;var C=Object.getOwnPropertyNames(p);g||(g=C[0]);for(var A=Object.create(null),T=0;T<C.length;T++){var P=C[T];A[P]=v(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 z=D[I];if(z.include){var Q=[I,1];if(z.include!==P&&!k[z.include]){k[z.include]=!0;var ue=A[z.include];if(!ue)throw new Error("Cannot include nonexistent state '"+z.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],ke=Te.groups,I=0;I<ke.length;I++)j(ke[I],Ee,ce);for(var Je=Object.getOwnPropertyNames(Te.fast),I=0;I<Je.length;I++)j(Te.fast[Je[I]],Ee,ce)}return new G(ce,g)}function Z(p){for(var g=typeof Map<"u",E=g?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+"')");g?E.set(k,T):E[k]=T})}return function(k){return g?E.get(k):E[k]}}var G=function(p,g){this.startState=g,this.states=p,this.buffer="",this.stack=[],this.reset()};G.prototype.reset=function(p,g){return this.buffer=p||"",this.index=0,this.line=g?g.line:1,this.col=g?g.col:1,this.queuedToken=g?g.queuedToken:null,this.queuedText=g?g.queuedText:"",this.queuedThrow=g?g.queuedThrow:null,this.setState(g?g.state:this.startState),this.stack=g&&g.stack?g.stack.slice():[],this},G.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}},G.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var g=this.states[p];this.groups=g.groups,this.error=g.error,this.re=g.regexp,this.fast=g.fast}},G.prototype.popState=function(){this.setState(this.stack.pop())},G.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var se=n?function(p,g){return p.exec(g)}:function(p,g){var E=p.exec(g);return E[0].length===0?null:E};G.prototype._getGroup=function(p){for(var g=this.groups.length,E=0;E<g;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(G.prototype.next=function(){var p=this.index;if(this.queuedGroup){var g=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",g}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)}},G.prototype._token=function(p,g,E){var C=0;if(p.lineBreaks){var A=/\n/g,T=1;if(g===`
`)C=1;else for(;A.exec(g);)C++,T=A.lastIndex}var P={type:typeof p.type=="function"&&p.type(g)||p.defaultType,value:typeof p.value=="function"?p.value(g):g,text:g,toString:Y,offset:E,lineBreaks:C,line:this.line,col:this.col},D=g.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},G.prototype[Symbol.iterator]=function(){return new X(this)}}return G.prototype.formatError=function(p,g){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=d(this.buffer,this.line-p.line+C+1).slice(0,5),k=[];k.push(g+" at line "+p.line+" col "+p.col+":"),k.push("");for(var I=0;I<D.length;I++){var z=D[I],Q=A+I;k.push(u(String(Q),P)+" "+z),Q===p.line&&k.push(u("",P+p.col+1)+"^")}return k.join(`
`)},G.prototype.clone=function(){return new G(this.states,this.state)},G.prototype.has=function(p){return!0},{compile:L,states:J,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:Z}})})(Kr);var Ti=Kr.exports;(function(e){"use strict";var t=st&&st.__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(Ti);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)})(Do);Object.defineProperty(bt,"__esModule",{value:!0});var Oi=bt.parse=Mi=bt.ParseError=void 0;const ko=Do,xt=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),cr=e=>e==="plural"||e==="select"||e==="selectordinal";function xi(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 Li=["number","date","time","spellout","ordinal","duration"],Rn=["zero","one","two","few","many","other"];class ae extends Error{constructor(t,r){super(ko.lexer.formatError(t,r))}}var Mi=bt.ParseError=ae;class Ni{constructor(t,r){var n,o,a,i;this.lexer=ko.lexer.reset(t),this.cardinalKeys=(n=r==null?void 0:r.cardinal)!==null&&n!==void 0?n:Rn,this.ordinalKeys=(o=r==null?void 0:r.ordinal)!==null&&o!==void 0?o:Rn,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:xt(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=xt(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")&&!Li.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 Yn="popstate";function Ss(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Ye(o.location.hash.substr(1));return Nr("",{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){Cs(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Rs(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function As(){return Math.random().toString(36).substr(2,8)}function Jn(e){return{usr:e.state,key:e.key}}function Nr(e,t,r,n){return r===void 0&&(r=null),zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ye(t):t,{state:r,key:t&&t.key||n||As()})}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 Ye(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 Ps(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 Rs(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:d.location})}function h(f,m){s=Me.Push;let b=Nr(d.location,f,m);r&&r(b,f);let v=Jn(b),w=d.createHref(b);try{i.pushState(v,"",w)}catch{o.location.assign(w)}a&&l&&l({action:s,location:d.location})}function u(f,m){s=Me.Replace;let b=Nr(d.location,f,m);r&&r(b,f);let v=Jn(b),w=d.createHref(b);i.replaceState(v,"",w),a&&l&&l({action:s,location:d.location})}let d={get action(){return s},get location(){return e(o,i)},listen(f){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yn,c),l=f,()=>{o.removeEventListener(Yn,c),l=null}},createHref(f){return t(o,f)},encodeLocation(f){let m=Ps(typeof f=="string"?f:sn(f));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:u,go(f){return i.go(f)}};return d}var Zn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zn||(Zn={}));function Ts(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ye(t):t,o=Ta(n.pathname||"/",r);if(o==null)return null;let a=Pa(e);Os(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=Fs(a[s],qs(o));return i}function Pa(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=je([n,l.relativePath]),h=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+'".')),Pa(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ks(c,a.index),routesMeta:h})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of R
* 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 Dr(){return Dr=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},Dr.apply(this,arguments)}function Qs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Xs=typeof Object.is=="function"?Object.is:Qs,{useState:el,useEffect:tl,useLayoutEffect:rl,useDebugValue:nl}=Mr;function ol(e,t,r){const n=t(),[{inst:o},a]=el({inst:{value:n,getSnapshot:t}});return rl(()=>{o.value=n,o.getSnapshot=t,pr(o)&&a({inst:o})},[e,n,t]),tl(()=>(pr(o)&&a({inst:o}),e(()=>{pr(o)&&a({inst:o})})),[e]),nl(n),n}function pr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Xs(r,n)}catch{return!0}}function al(e,t,r){return t()}const il=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sl=!il,ll=sl?al:ol,Ld="useSyncExternalStore"in Mr?(e=>e.useSyncExternalStore)(Mr):ll,xa=Ne(null),La=Ne(null);const un=Ne(null),ar=Ne(null),dt=Ne({outlet:null,matches:[]}),Ma=Ne(null);function ir(){return le(ar)!=null}function cn(){return ir()||ie(!1),le(ar).location}function ul(){ir()||ie(!1);let{basename:e,navigator:t}=le(un),{matches:r}=le(dt),{pathname:n}=cn(),o=JSON.stringify($s(r).map(s=>s.pathnameBase)),a=Ie(!1);return We(()=>{a.current=!0}),ut(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=Gs(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:je([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function Md(){let{matches:e}=le(dt),t=e[e.length-1];return t?t.params:{}}function cl(e,t){ir()||ie(!1);let{navigator:r}=le(un),n=le(La),{matches:o}=le(dt),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,h=cn(),u;if(t){var d;let w=typeof t=="string"?Ye(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||ie(!1),u=w}else u=h;let f=u.pathname||"/",m=l==="/"?f:f.slice(l.length)||"/",b=Ts(e,{pathname:m}),v=pl(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:je([l,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:je([l,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n||void 0);return t&&v?V(ar.Provider,{value:{location:Dr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Me.Pop}},v):v}function dl(){let e=gl(),t=Js(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 fl 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(dt.Provider,{value:this.props.routeContext},V(Ma.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hl(e){let{routeContext:t,match:r,children:n}=e,o=le(xa);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),V(dt.Provider,{value:t},n)}function pl(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 Ur(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 bl(e,t){let r=Ur(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Dd(e){let{basename:t,children:r,window:n}=e,o=Ie();o.current==null&&(o.current=Ss({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ve({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),V(wl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var to;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(to||(to={}));var ro;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ro||(ro={}));function kd(e){let t=Ie(Ur(e)),r=cn(),n=be(()=>bl(r.search,t.current),[r.search]),o=ul(),a=ut((i,s)=>{const l=Ur(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const El=Symbol(),dn=Symbol(),_t="a",Na="f",no="p",Ia="c",Da="t",_r="n",mr="g",fn="h",wt="w",hn="o",pn="k";let Sl=(e,t)=>new Proxy(e,t);const Fr=Object.getPrototypeOf,jr=new WeakMap,ka=e=>e&&(jr.has(e)?jr.get(e):Fr(e)===Object.prototype||Fr(e)===Array.prototype),Gt=e=>typeof e=="object"&&e!==null,Cl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Al=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(Fr(e),t)},Pl=(e,t)=>{const r={[Na]:t};let n=!1;const o=(s,l)=>{if(!n){let c=r[_t].get(e);if(c||(c={},r[_t].set(e,c)),s===wt)c[wt]=!0;else{let h=c[s];h||(h=new Set,c[s]=h),h.add(l)}}},a=()=>{n=!0,r[_t].delete(e)},i={get(s,l){return l===dn?e:(o(pn,l),Ua(Reflect.get(s,l),r[_t],r[Ia],r[Da]))},has(s,l){return l===El?(a(),!0):(o(fn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(hn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(wt),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},_n=e=>e[dn]||e,Ua=(e,t,r,n)=>{if(!ka(e))return e;let o=n&&n.get(e);if(!o){const l=_n(e);Cl(l)?o=[l,Al(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][Na]!==!!i)&&(s=Pl(a,!!i),s[1][no]=Sl(i||a,s[0]),r&&r.set(a,s)),s[1][_t]=t,s[1][Ia]=r,s[1][Da]=n,s[1][no]},Rl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Fa=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Gt(e)||!Gt(t))return!0;const a=r.get(_n(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[_r]===t)return s[mr];n.set(e,{[_r]:t,[mr]:!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[wt]===!0){if(i=Rl(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=Fa(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[_r]:t,[mr]:i})}};const Tl=e=>ka(e)&&e[dn]||null,oo=(e,t=!0)=>{jr.set(e,t)},Ol=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,c,h;if(o.has(i))return;Gt(i)&&o.add(i);const u=Gt(i)&&t.get(_n(i));if(u){if((l=u[fn])===null||l===void 0||l.forEach(d=>{const f=`:has(${String(d)})`;n.push(s?[...s,f]:[f])}),u[wt]===!0){const d=":ownKeys";n.push(s?[...s,d]:[d])}else(c=u[hn])===null||c===void 0||c.forEach(d=>{const f=`:hasOwn(${String(d)})`;n.push(s?[...s,f]:[f])});(h=u[pn])===null||h===void 0||h.forEach(d=>{(!r||"value"in(Object.getOwnPropertyDescriptor(i,d)||{}))&&a(i[d],s?[...s,d]:[d])})}else s&&n.push(s)};return a(e),n};const Kt={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-SRT6j-GL.js.map