39 lines
121 KiB
JavaScript
39 lines
121 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./polyfill-force-v3PARI-z.js","./index-A6D3rukc.js","./compose-GqPD-mCC.js","./fuse-BiYvWrZm.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 ut,k,Un,ya,Te,qr,Fn,Vt,hr,Yt,Gt,zn,ot={},qn=[],_a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Dt=Array.isArray;function me(e,t){for(var r in t)e[r]=t[r];return e}function Hn(e){var t=e.parentNode;t&&t.removeChild(e)}function H(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?ut.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return tt(e,i,n,o,null)}function tt(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Un,__i:-1,__u:0};return o==null&&k.vnode!=null&&k.vnode(a),a}function Wn(){return{current:null}}function ce(e){return e.children}function ue(e,t){this.props=e,this.context=t}function Ne(e,t){if(t==null)return e.__?Ne(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ne(e):null}function Kn(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Kn(e)}}function Jt(e){(!e.__d&&(e.__d=!0)&&Te.push(e)&&!yt.__r++||qr!==k.debounceRendering)&&((qr=k.debounceRendering)||Fn)(yt)}function yt(){var e,t,r,n,o,a,i,s;for(Te.sort(Vt);e=Te.shift();)e.__d&&(t=Te.length,n=void 0,a=(o=(r=e).__v).__e,i=[],s=[],r.__P&&((n=me({},o)).__v=o.__v+1,k.vnode&&k.vnode(n),pr(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a??Ne(o),!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,Yn(i,n,s),n.__e!=a&&Kn(n)),Te.length>t&&Te.sort(Vt));yt.__r=0}function Bn(e,t,r,n,o,a,i,s,l,c,d){var u,f,h,m,y,w=n&&n.__k||qn,g=t.length;for(r.__d=l,wa(r,t,w),l=r.__d,u=0;u<g;u++)(h=r.__k[u])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?ot:w[h.__i]||ot,h.__i=u,pr(e,h,f,o,a,i,s,l,c,d),m=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&mr(f.ref,null,h),d.push(h.ref,h.__c||m,h)),y==null&&m!=null&&(y=m),65536&h.__u||f.__k===h.__k?l=Vn(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=y}function wa(e,t,r){var n,o,a,i,s,l=t.length,c=r.length,d=c,u=0;for(e.__k=[],n=0;n<l;n++)i=n+u,(o=e.__k[n]=(o=t[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?tt(null,o,null,null,null):Dt(o)?tt(ce,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?tt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=ba(o,r,i,d),o.__i=s,a=null,s!==-1&&(d--,(a=r[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):s!==i&&(s==i-1?u=s-i:s==i+1?u++:s>i?d>l-i?u+=s-i:u--:s<i&&u++,s!==n+u&&(o.__u|=65536))):(a=r[i])&&a.key==null&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ne(a)),Zt(a,a,!1),r[i]=null,d--);if(d)for(n=0;n<c;n++)(a=r[n])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ne(a)),Zt(a,a))}function Vn(e,t,r){var n,o;if(typeof e.type=="
|
|||
|
* @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 bt(){return bt=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},bt.apply(this,arguments)}var Ce;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ce||(Ce={}));const un="popstate";function qa(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=ke(o.location.hash.substr(1));return er("",{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:Ar(a))}function n(o,a){Ha(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Ba(t,r,n,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ha(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wa(){return Math.random().toString(36).substr(2,8)}function ln(e){return{usr:e.state,key:e.key}}function er(e,t,r,n){return r===void 0&&(r=null),bt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ke(t):t,{state:r,key:t&&t.key||n||Wa()})}function Ar(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 ke(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 Ka(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:Ar(e);return Q(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Ba(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Ce.Pop,l=null;function c(){s=Ce.Pop,l&&l({action:s,location:f.location})}function d(h,m){s=Ce.Push;let y=er(f.location,h,m);r&&r(y,h);let w=ln(y),g=f.createHref(y);try{i.pushState(w,"",g)}catch{o.location.assign(g)}a&&l&&l({action:s,location:f.location})}function u(h,m){s=Ce.Replace;let y=er(f.location,h,m);r&&r(y,h);let w=ln(y),g=f.createHref(y);i.replaceState(w,"",g),a&&l&&l({action:s,location:f.location})}let f={get action(){return s},get location(){return e(o,i)},listen(h){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(un,c),l=h,()=>{o.removeEventListener(un,c),l=null}},createHref(h){return t(o,h)},encodeLocation(h){let m=Ka(typeof h=="string"?h:Ar(h));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:u,go(h){return i.go(h)}};return f}var cn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cn||(cn={}));function Va(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ke(t):t,o=Co(n.pathname||"/",r);if(o==null)return null;let a=Eo(e);Ya(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=ni(a[s],ai(o));return i}function Eo(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("/")&&(Q(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=De([n,l.relativePath]),d=r.concat(l);a.children&&a.children.length>0&&(Q(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Eo(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ti(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of So(a.
|
|||
|
* 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 rr(){return rr=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},rr.apply(this,arguments)}function gi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const yi=typeof Object.is=="function"?Object.is:gi,{useState:_i,useEffect:wi,useLayoutEffect:bi,useDebugValue:Ei}=wt;function Si(e,t,r){const n=t(),[{inst:o},a]=_i({inst:{value:n,getSnapshot:t}});return bi(()=>{o.value=n,o.getSnapshot=t,qt(o)&&a({inst:o})},[e,n,t]),wi(()=>(qt(o)&&a({inst:o}),e(()=>{qt(o)&&a({inst:o})})),[e]),Ei(n),n}function qt(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!yi(r,n)}catch{return!0}}function Ci(e,t,r){return t()}const Pi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ai=!Pi,Ri=Ai?Ci:Si,Al="useSyncExternalStore"in wt?(e=>e.useSyncExternalStore)(wt):Ri,Ao=Pe(null),Ro=Pe(null);const xr=Pe(null),Mt=Pe(null),Ye=Pe({outlet:null,matches:[]}),xo=Pe(null);function jt(){return re(Mt)!=null}function Or(){return jt()||Q(!1),re(Mt).location}function xi(){jt()||Q(!1);let{basename:e,navigator:t}=re(xr),{matches:r}=re(Ye),{pathname:n}=Or(),o=JSON.stringify(li(r).map(s=>s.pathnameBase)),a=ye(!1);return Ae(()=>{a.current=!0}),Be(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=ci(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:De([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function Rl(){let{matches:e}=re(Ye),t=e[e.length-1];return t?t.params:{}}function Oi(e,t){jt()||Q(!1);let{navigator:r}=re(xr),n=re(Ro),{matches:o}=re(Ye),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,d=Or(),u;if(t){var f;let g=typeof t=="string"?ke(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||Q(!1),u=g}else u=d;let h=u.pathname||"/",m=l==="/"?h:h.slice(l.length)||"/",y=Va(e,{pathname:m}),w=Ni(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:De([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:De([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n||void 0);return t&&w?H(Mt.Provider,{value:{location:rr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ce.Pop}},w):w}function Ti(){let e=$i(),t=mi(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 H(ce,null,H("h2",null,"Unhandled Thrown Error!"),H("h3",{style:{fontStyle:"italic"}},t),r?H("pre",{style:o},r):null,H("p",null,"💿 Hey developer 👋"),H("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H("code",{style:a},"errorElement")," props on ",H("code",{style:a},"<Route>")))}class Di extends ue{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?H(Ye.Provider,{value:this.props.routeContext},H(xo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Li(e){let{routeContext:t,match:r,children:n}=e,o=re(Ao);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),H(Ye.Provider,{value:t},n)}function Ni(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||Q(!1),n=n.slice(0,Math.min(n.length,a+1))}return n.reduceRight((a,i,s)=>{let l=i.route.id?
|
|||
|
* 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 or(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 Fi(e,t){let r=or(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Tl(e){let{basename:t,children:r,window:n}=e,o=ye();o.current==null&&(o.current=qa({window:n,v5Compat:!0}));let a=o.current,[i,s]=$e({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),H(Ui,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var pn;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(pn||(pn={}));var mn;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mn||(mn={}));function Dl(e){let t=ye(or(e)),r=Or(),n=_e(()=>Fi(r.search,t.current),[r.search]),o=xi(),a=Be((i,s)=>{const l=or(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const zi=Symbol(),Tr=Symbol(),Ze="a",nt="w";let qi=(e,t)=>new Proxy(e,t);const ar=Object.getPrototypeOf,ir=new WeakMap,Oo=e=>e&&(ir.has(e)?ir.get(e):ar(e)===Object.prototype||ar(e)===Array.prototype),St=e=>typeof e=="object"&&e!==null,Hi=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(ar(e),t)},Dr=e=>e[Tr]||e,To=(e,t,r,n)=>{if(!Oo(e))return e;let o=n&&n.get(e);if(!o){const l=Dr(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(l)?[l,Hi(l)]:[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const d={f:c};let u=!1;const f=(m,y)=>{if(!u){let w=d[Ze].get(l);if(w||(w={},d[Ze].set(l,w)),m===nt)w[nt]=!0;else{let g=w[m];g||(g=new Set,w[m]=g),g.add(y)}}},h={get:(m,y)=>y===Tr?l:(f("k",y),To(Reflect.get(m,y),d[Ze],d.c,d.t)),has:(m,y)=>y===zi?(u=!0,d[Ze].delete(l),!0):(f("h",y),Reflect.has(m,y)),getOwnPropertyDescriptor:(m,y)=>(f("o",y),Reflect.getOwnPropertyDescriptor(m,y)),ownKeys:m=>(f(nt),Reflect.ownKeys(m))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(a,!!i),s[1].p=qi(i||a,s[0]),r&&r.set(a,s)),s[1][Ze]=t,s[1].c=r,s[1].t=n,s[1].p},Do=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!St(e)||!St(t))return!0;const a=r.get(Dr(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s.n===t)return s.g;n.set(e,{n:t,g:!1})}let i=null;try{for(const s of a.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[nt]===!0){if(i=((s,l)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(l);return c.length!==d.length||c.some((u,f)=>u!==d[f])})(e,t),i)return i}else for(const s of a.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of a.k||[])if(i=Do(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{n:t,g:i})}};const Wi=e=>Oo(e)&&e[Tr]||null,vn=(e,t=!0)=>{ir.set(e,t)},Ki=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;St(i)&&o.add(i);const l=St(i)&&t.get(Dr(i));if(l){var c,d;if((c=l.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;n.push(s?[...s,h]:[h])}),l[nt]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f])}else{var u;(u=l.o)==null||u.forEach(f=>{const h=`:hasOwn(${String(f)})`;n.push(s?[...s,h]:[h])})}(d=l.k)==null||d.forEach(f=>{r&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f])})}else s&&n.push(s)};return a(e),n};var Ct={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"};const Ht=e=>typeof e=="object"&&e!==null,Ee=new WeakMap,pt=new WeakSet,Bi=(e=Object.is,t=(c,d)=>new Proxy(c,d),r=c=>Ht(c)&&!pt.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!
|
|||
|
* @license React
|
|||
|
* use-sync-external-store-shim.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var Ke=Ji;function Zi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qi=typeof Object.is=="function"?Object.is:Zi,Xi=Ke.useState,es=Ke.useEffect,ts=Ke.useLayoutEffect,rs=Ke.useDebugValue;function ns(e,t){var r=t(),n=Xi({inst:{value:r,getSnapshot:t}}),o=n[0].inst,a=n[1];return ts(function(){o.value=r,o.getSnapshot=t,Wt(o)&&a({inst:o})},[e,r,t]),es(function(){return Wt(o)&&a({inst:o}),e(function(){Wt(o)&&a({inst:o})})},[e]),rs(r),r}function Wt(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qi(e,r)}catch{return!0}}function os(e,t){return t()}var as=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?os:ns,Ll=No.useSyncExternalStore=Ke.useSyncExternalStore!==void 0?Ke.useSyncExternalStore:as,Nl=Mr.exports;Mr.exports=No;var is=Mr.exports;const ss=Lo(is);var us={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"};const{use:gn}=bo,{useSyncExternalStore:ls}=ss,cs=(e,t)=>{const r=ye();Ae(()=>{r.current=Ki(e,t,!0)}),Nt(r.current)},fs=new WeakMap;function Ml(e,t){const r=t==null?void 0:t.sync,n=ye(),o=ye();let a=!0;const i=ls(Be(c=>{const d=Lr(e,c,r);return c(),d},[e,r]),()=>{const c=sr(e,gn);try{if(!a&&n.current&&o.current&&!Do(n.current,c,o.current,new WeakMap))return n.current}catch{}return c},()=>sr(e,gn));a=!1;const s=new WeakMap;Ae(()=>{n.current=i,o.current=s}),(us?"production":void 0)!=="production"&&cs(i,s);const l=_e(()=>new WeakMap,[]);return To(i,s,l,fs)}var ds=0,jl=Array.isArray;function Pt(e,t,r,n,o,a){t||(t={});var i,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?i=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ds,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(s in i)l[s]===void 0&&(l[s]=i[s]);return k.vnode&&k.vnode(c),c}function hs(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}function ps(e,t){t===void 0&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}var ms=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(r,n)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ge=function(e){ms(t,e);function t(r,n){var o=this.constructor,a=e.call(this,r,n)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),hs(a,o.prototype),ps(a),a}return t}(Error);var ze=null;typeof WebSocket<"u"?ze=WebSocket:typeof MozWebSocket<"u"?ze=MozWebSocket:typeof global<"u"?ze=global.WebSocket||global.MozWebSocket:typeof window<"u"?ze=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ze=self.WebSocket||self.MozWebSocket);const jr=ze;function vs(){let e,t;const r=new Promise((...n)=>[e,t]=n);return Object.freeze({resolve:e,reject:t,promise:r})}function gs(e,t){const r=[],n=[],o=e((...d)=>{const u=n.shift();u?u.resolve({value:d,done:!1}):r.push(d)}),a=t==null?void 0:t.signal;let i=!1,s=null;const l=()=>{s=new Error("Abort Error")},c=()=>{o==null||o(),a==null||a.removeEventListener("abort",l)};return a==null||a.addEventListener("abort",l,{once:!0}),{async next(){const d=r.shift();if(d)return{value:d,done:!1};if(i)return{value:void 0,done:!0};if(s)return Promise.reject(s);const u=vs();return n.push(u),u.promise},async return(){i=!0,c();for(const d of n)d.resolve({value:void 0,done:!0});return{value:void 0,done:!0}},async throw(d){return s=d,c(),{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}var ur=function(e,t){return ur=Object.setPrototypeOf||{__proto__:[]}instanc
|
|||
|
//# sourceMappingURL=useTitle-YZXo8QRp.js.map
|