phanpy/assets/vendor-f6XEe9UY.js

142 lines
243 KiB
JavaScript
Raw Normal View History

var wn,W,ya,eu,lt,Zo,ga,Br,wa,dn={},ba=[],tu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sr=Array.isArray;function Ge(e,t){for(var n in t)e[n]=t[n];return e}function Ea(e){var t=e.parentNode;t&&t.removeChild(e)}function te(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?wn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return sn(e,a,r,o,null)}function sn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ya,__i:-1,__u:0};return o==null&&W.vnode!=null&&W.vnode(i),i}function ho(){return{current:null}}function De(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function kt(e,t){if(t==null)return e.__?kt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?kt(e):null}function Sa(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Sa(e)}}function Ur(e){(!e.__d&&(e.__d=!0)&&lt.push(e)&&!jn.__r++||Zo!==W.debounceRendering)&&((Zo=W.debounceRendering)||ga)(jn)}function jn(){var e,t,n,r,o,i,a,u,s;for(lt.sort(Br);e=lt.shift();)e.__d&&(t=lt.length,r=void 0,i=(o=(n=e).__v).__e,u=[],s=[],(a=n.__P)&&((r=Ge({},o)).__v=o.__v+1,W.vnode&&W.vnode(r),po(a,r,o,n.__n,a.ownerSVGElement!==void 0,32&o.__u?[i]:null,u,i??kt(o),!!(32&o.__u),s),r.__.__k[r.__i]=r,Ca(u,r,s),r.__e!=i&&Sa(r)),lt.length>t&&lt.sort(Br));jn.__r=0}function Ta(e,t,n,r,o,i,a,u,s,l,d){var c,f,h,p,m,_=r&&r.__k||ba,v=t.length;for(n.__d=s,nu(n,t,_),s=n.__d,c=0;c<v;c++)(h=n.__k[c])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?dn:_[h.__i]||dn,h.__i=c,po(e,h,f,o,i,a,u,s,l,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&mo(f.ref,null,h),d.push(h.ref,h.__c||p,h)),m==null&&p!=null&&(m=p),65536&h.__u||f.__k===h.__k?s=xa(h,s,e):typeof h.type=="function"&&h.__d!==void 0?s=h.__d:p&&(s=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=s,n.__e=m}function nu(e,t,n){var r,o,i,a,u,s=t.length,l=n.length,d=l,c=0;for(e.__k=[],r=0;r<s;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?sn(null,o,null,null,o):sr(o)?sn(De,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?sn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=ru(o,n,a=r+c,d),o.__i=u,i=null,u!==-1&&(d--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==a&&(u===a+1?c++:u>a?d>s-a?c+=u-a:c--:c=u<a&&u==a-1?u-a:0,u!==r+c&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=kt(i)),qr(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=kt(i)),qr(i,i))}function xa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xa(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Ze(e,t){return t=t||[],e==null||typeof e=="boolean"||(sr(e)?e.some(function(n){Ze(n,t)}):t.push(e)),t}function ru(e,t,n,r){var o=e.key,i=e.type,a=n-1,u=n+1,s=t[n];if(s===null||s&&o==s.key&&i===s.type)return n;if(r>(s!=null&&!(131072&s.__u)?1:0))for(;a>=0||u<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u<t.length){if((s=t[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function Vo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tu.test(t)?n:n+"px"}function xn(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Vo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Vo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLower
* @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 Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));const pi="popstate";function Tu(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:u="",hash:s=""}=_t(o.location.hash.substr(1));return Gr("",{pathname:a,search:u,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),u="";if(a&&a.getAttribute("href")){let s=o.location.href,l=s.indexOf("#");u=l===-1?s:s.slice(0,l)}return u+"#"+(typeof i=="string"?i:Eo(i))}function r(o,i){xu(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Ou(t,n,r,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cu(){return Math.random().toString(36).substr(2,8)}function mi(e){return{usr:e.state,key:e.key}}function Gr(e,t,n,r){return n===void 0&&(n=null),Hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_t(t):t,{state:n,key:t&&t.key||r||Cu()})}function Eo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _t(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Au(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Eo(e);return ve(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function Ou(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=tt.Pop,s=null;function l(){u=tt.Pop,s&&s({action:u,location:f.location})}function d(h,p){u=tt.Push;let m=Gr(f.location,h,p);n&&n(m,h);let _=mi(m),v=f.createHref(m);try{a.pushState(_,"",v)}catch{o.location.assign(v)}i&&s&&s({action:u,location:f.location})}function c(h,p){u=tt.Replace;let m=Gr(f.location,h,p);n&&n(m,h);let _=mi(m),v=f.createHref(m);a.replaceState(_,"",v),i&&s&&s({action:u,location:f.location})}let f={get action(){return u},get location(){return e(o,a)},listen(h){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(pi,l),s=h,()=>{o.removeEventListener(pi,l),s=null}},createHref(h){return t(o,h)},encodeLocation(h){let p=Au(typeof h=="string"?h:Eo(h));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:c,go(h){return a.go(h)}};return f}var _i;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_i||(_i={}));function Mu(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_t(t):t,o=Xa(r.pathname||"/",n);if(o==null)return null;let i=Va(e);Pu(i);let a=null;for(let u=0;a==null&&u<i.length;++u)a=zu(i[u],Bu(o));return a}function Va(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,u)=>{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ve(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let l=ft([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Va(i.children,t,d,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:$u(l,i.index),routesMeta:d})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let s of J
* 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 Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(this,arguments)}function ec(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const tc=typeof Object.is=="function"?Object.is:ec,{useState:nc,useEffect:rc,useLayoutEffect:oc,useDebugValue:ic}=Fn;function ac(e,t,n){const r=t(),[{inst:o},i]=nc({inst:{value:r,getSnapshot:t}});return oc(()=>{o.value=r,o.getSnapshot=t,Cr(o)&&i({inst:o})},[e,r,t]),rc(()=>(Cr(o)&&i({inst:o}),e(()=>{Cr(o)&&i({inst:o})})),[e]),ic(r),r}function Cr(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!tc(n,r)}catch{return!0}}function sc(e,t,n){return t()}const uc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cc=!uc,lc=cc?sc:ac,ap="useSyncExternalStore"in Fn?(e=>e.useSyncExternalStore)(Fn):lc,es=be(null),ts=be(null);const To=be(null),fr=be(null),Ut=be({outlet:null,matches:[]}),ns=be(null);function hr(){return ne(fr)!=null}function xo(){return hr()||ve(!1),ne(fr).location}function dc(){hr()||ve(!1);let{basename:e,navigator:t}=ne(To),{matches:n}=ne(Ut),{pathname:r}=xo(),o=JSON.stringify(Ku(n).map(u=>u.pathnameBase)),i=K(!1);return ie(()=>{i.current=!0}),_e(function(u,s){if(s===void 0&&(s={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let l=Gu(u,JSON.parse(o),r,s.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:ft([e,l.pathname])),(s.replace?t.replace:t.push)(l,s.state,s)},[e,t,o,r])}function sp(){let{matches:e}=ne(Ut),t=e[e.length-1];return t?t.params:{}}function fc(e,t){hr()||ve(!1);let{navigator:n}=ne(To),r=ne(ts),{matches:o}=ne(Ut),i=o[o.length-1],a=i?i.params:{},u=i?i.pathname:"/",s=i?i.pathnameBase:"/",l=i&&i.route,d=xo(),c;if(t){var f;let v=typeof t=="string"?_t(t):t;s==="/"||(f=v.pathname)!=null&&f.startsWith(s)||ve(!1),c=v}else c=d;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",m=Mu(e,{pathname:p}),_=_c(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ft([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:ft([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&_?te(fr.Provider,{value:{location:Yr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tt.Pop}},_):_}function hc(){let e=wc(),t=Xu(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return te(De,null,te("h2",null,"Unhandled Thrown Error!"),te("h3",{style:{fontStyle:"italic"}},t),n?te("pre",{style:o},n):null,te("p",null,"💿 Hey developer 👋"),te("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",te("code",{style:i},"errorElement")," props on ",te("code",{style:i},"<Route>")))}class pc extends Pe{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?te(Ut.Provider,{value:this.props.routeContext},te(ns.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mc(e){let{routeContext:t,match:n,children:r}=e,o=ne(es);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),te(Ut.Provider,{value:t},r)}function _c(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||ve(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,u)=>{l
* 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 Vr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Sc(e,t){let n=Vr(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}function lp(e){let{basename:t,children:n,window:r}=e,o=K();o.current==null&&(o.current=Tu({window:r,v5Compat:!0}));let i=o.current,[a,u]=me({action:i.action,location:i.location});return Je(()=>i.listen(u),[i]),te(Ec,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}var wi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(wi||(wi={}));var bi;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bi||(bi={}));function dp(e){let t=K(Vr(e)),n=xo(),r=ae(()=>Sc(n.search,t.current),[n.search]),o=dc(),i=_e((a,u)=>{const s=Vr(typeof a=="function"?a(r):a);o("?"+s,u)},[o,r]);return[r,i]}var fp=Tc;function Tc(e,t,n){var r=null,o=null,i=function(){r&&(clearTimeout(r),o=null,r=null)},a=function(){var s=o;i(),s&&s()},u=function(){if(!t)return e.apply(this,arguments);var s=this,l=arguments,d=n&&!r;if(i(),o=function(){e.apply(s,l)},r=setTimeout(function(){if(r=null,!d){var c=o;return o=null,c()}},t),d)return o()};return u.cancel=i,u.flush=a,u}/*!
* swiped-events.js - v@version@
* Pure JavaScript swipe events
* https://github.com/john-doherty/swiped-events
* @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
* @author John Doherty <www.johndoherty.info>
* @license MIT
*/(function(e,t){"use strict";typeof e.CustomEvent!="function"&&(e.CustomEvent=function(h,p){p=p||{bubbles:!1,cancelable:!1,detail:void 0};var m=t.createEvent("CustomEvent");return m.initCustomEvent(h,p.bubbles,p.cancelable,p.detail),m},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",d,!1),t.addEventListener("touchmove",c,!1),t.addEventListener("touchend",l,!1);var n=null,r=null,o=null,i=null,a=null,u=null,s=0;function l(h){if(u===h.target){var p=parseInt(f(u,"data-swipe-threshold","20"),10),m=f(u,"data-swipe-unit","px"),_=parseInt(f(u,"data-swipe-timeout","500"),10),v=Date.now()-a,y="",T=h.changedTouches||h.touches||[];if(m==="vh"&&(p=Math.round(p/100*t.documentElement.clientHeight)),m==="vw"&&(p=Math.round(p/100*t.documentElement.clientWidth)),Math.abs(o)>Math.abs(i)?Math.abs(o)>p&&v<_&&(o>0?y="swiped-left":y="swiped-right"):Math.abs(i)>p&&v<_&&(i>0?y="swiped-up":y="swiped-down"),y!==""){var M={dir:y.replace(/swiped-/,""),touchType:(T[0]||{}).touchType||"direct",fingers:s,xStart:parseInt(n,10),xEnd:parseInt((T[0]||{}).clientX||-1,10),yStart:parseInt(r,10),yEnd:parseInt((T[0]||{}).clientY||-1,10)};u.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:M})),u.dispatchEvent(new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:M}))}n=null,r=null,a=null}}function d(h){h.target.getAttribute("data-swipe-ignore")!=="true"&&(u=h.target,a=Date.now(),n=h.touches[0].clientX,r=h.touches[0].clientY,o=0,i=0,s=h.touches.length)}function c(h){if(!(!n||!r)){var p=h.touches[0].clientX,m=h.touches[0].clientY;o=n-p,i=r-m}}function f(h,p,m){for(;h&&h!==t.documentElement;){var _=h.getAttribute(p);if(_)return _;h=h.parentNode}return m}})(window,document);const xc=Symbol(),Co=Symbol(),Jt="a",cn="w";let Cc=(e,t)=>new Proxy(e,t);const Jr=Object.getPrototypeOf,Xr=new WeakMap,rs=e=>e&&(Xr.has(e)?Xr.get(e):Jr(e)===Object.prototype||Jr(e)===Array.prototype),Un=e=>typeof e=="object"&&e!==null,Ei=new WeakMap,Ao=e=>e[Co]||e,os=(e,t,n)=>{if(!rs(e))return e;const r=Ao(e),o=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(u=>!u.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((a,u)=>{const s={f:u};let l=!1;const d=(f,h)=>{if(!l){let p=s[Jt].get(a);if(p||(p={},s[Jt].set(a,p)),f===cn)p[cn]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(h)}}},c={get:(f,h)=>h===Co?a:(d("k",h),os(Reflect.get(f,h),s[Jt],s.c)),has:(f,h)=>h===xc?(l=!0,s[Jt].delete(a),!0):(d("h",h),Reflect.has(f,h)),getOwnPropertyDescriptor:(f,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(f,h)),ownKeys:f=>(d(cn),Reflect.ownKeys(f))};return u&&(c.set=c.deleteProperty=()=>!1),[c,s]})(r,o),i[1].p=Cc(o?(a=>{let u=Ei.get(a);if(!u){if(Array.isArray(a))u=Array.from(a);else{const s=Object.getOwnPropertyDescriptors(a);Object.values(s).forEach(l=>{l.configurable=!0}),u=Object.create(Jr(a),s)}Ei.set(a,u)}return u})(r):r,i[0]),n&&n.set(r,i)),i[1][Jt]=t,i[1].c=n,i[1].p},is=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Un(e)||!Un(t))return!0;const o=n.get(Ao(e));if(!o)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[cn]===!0){if(i=((a,u)=>{const s=Reflect.ownKeys(a),l=Reflect.ownKeys(u);return s.length!==l.length||s.some((d,c)=>d!==l[c])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=is(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const Ac=e=>rs(e)&&e[Co]||null,Si=(e,t=!0)=>{Xr.set(e,t)},Oc=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,u)=>{if(o.has(a))return;Un(a)&&o.add(a);const s=Un(a)&&t.get(Ao(a));if(s){var l,d;if((l=s.h)==null||l.forEach(f=>{const h=`:has(${String(f)})`;r.push(u?[...u,h]:[h])}),s[cn]===!0){const f=":ownKeys";r.push(u?[...u,f]:[f])}else{var c;(c=s.o)==null||c.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(u?[...u,h]:[h])})}(d=s.k)==null||d.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||i(a[f],u?[...u,f]:[
* @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 jt=Dc;function Ic(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nc=typeof Object.is=="function"?Object.is:Ic,kc=jt.useState,$c=jt.useEffect,jc=jt.useLayoutEffect,zc=jt.useDebugValue;function Fc(e,t){var n=t(),r=kc({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return jc(function(){o.value=n,o.getSnapshot=t,Or(o)&&i({inst:o})},[e,n,t]),$c(function(){return Or(o)&&i({inst:o}),e(function(){Or(o)&&i({inst:o})})},[e]),zc(n),n}function Or(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nc(e,n)}catch{return!0}}function Hc(e,t){return t()}var Bc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hc:Fc,hp=ss.useSyncExternalStore=jt.useSyncExternalStore!==void 0?jt.useSyncExternalStore:Bc,pp=Oo.exports;Oo.exports=ss;var Uc=Oo.exports;const qc=Xe(Uc);var Wc={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",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",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:Ti}=Pt,{useSyncExternalStore:Kc}=qc,Gc=(e,t)=>{const n=K();ie(()=>{n.current=Oc(e,t,!0)}),_o(n.current)};function mp(e,t){const n=t==null?void 0:t.sync,r=K(),o=K();let i=!0;const a=Kc(_e(l=>{const d=as(e,l,n);return l(),d},[e,n]),()=>{const l=Qr(e,Ti);try{if(!i&&r.current&&o.current&&!is(r.current,l,o.current,new WeakMap))return r.current}catch{}return l},()=>Qr(e,Ti));i=!1;const u=new WeakMap;ie(()=>{r.current=a,o.current=u}),(Wc&&"production")!=="production"&&Gc(a,u);const s=ae(()=>new WeakMap,[]);return os(a,u,s)}var Yc=0,_p=Array.isArray;function se(e,t,n,r,o,i){var a,u,s={};for(u in t)u=="ref"?a=t[u]:s[u]=t[u];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Yc,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(u in a)s[u]===void 0&&(s[u]=a[u]);return W.vnode&&W.vnode(l),l}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eo.apply(this,arguments)}var us=["shift","alt","meta","mod","ctrl"],Zc={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nt(e){return(Zc[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Vc(e){return us.includes(e)}function Mr(e,t){return t===void 0&&(t=","),e.split(t)}function Pr(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return nt(a)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(a){return!us.includes(a)});return eo({},o,{keys:i,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&cs([nt(e.key),nt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&ls([nt(e.key),nt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){rt.clear()})})();var rt=new Set;function Mo(e){return Array.isArray(e)}function Jc(e,t){t===void 0&&(t=",");var n=Mo(e)?e:e.split(t);return n.every(function(r){return rt.has(r.trim().toLowerCase())})}function cs(e){var t=Array.isArray(e)?e:[e];rt.has("meta")&&rt.forEach(function(n){return!Vc(n)&&rt.delete(n.toLowerCase())}),t.forEach(function(n){return rt.add(n.toLowerCase())})}function ls(e){var t=Array.isArray(e)?e:[e];e==="meta"?rt.clear():t.forEach(function(n){return rt.delete(n.toLowerCase())})}function Xc(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function Qc(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}func
* Toastify js 1.12.0
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/var wp=Do.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(at,function(t){var n=function(a){return new n.lib.init(a)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var u in this.options.style)a.style[u]=this.options.style[u];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(s):a.insertAdjacentElement("afterbegin",s)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="&#10006;",l.addEventListener("click",(function(_){_.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?a.insertAdjacentElement("afterbegin",l):a.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var c=this;a.addEventListener("mouseover",function(_){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){c.removeElement(a)},c.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination
`,n-1)>a||e.lastIndexOf(".",n-1)>a)return}else if(e.lastIndexOf(" ",n-1)>a)return;const u=e[a-1];return u&&!Qf.test(u)?void 0:{text:e.substring(a+t.length,n),position:a+t.length}}const th=["position:absolute;","overflow:auto;","word-wrap:break-word;","top:0px;","left:-9999px;"],na=["box-sizing","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","line-height","max-height","min-height","padding-bottom","padding-left","padding-right","padding-top","border-bottom","border-left","border-right","border-top","text-decoration","text-indent","text-transform","width","word-spacing"],ra=new WeakMap;function nh(e,t){const n=e.nodeName.toLowerCase();if(n!=="textarea"&&n!=="input")throw new Error("expected textField to a textarea or input");let r=ra.get(e);if(r&&r.parentElement===e.parentElement)r.innerHTML="";else{r=document.createElement("div"),ra.set(e,r);const u=window.getComputedStyle(e),s=th.slice(0);n==="textarea"?s.push("white-space:pre-wrap;"):s.push("white-space:nowrap;");for(let l=0,d=na.length;l<d;l++){const c=na[l];s.push(`${c}:${u.getPropertyValue(c)};`)}r.style.cssText=s.join(" ")}const o=document.createElement("span");o.style.cssText="position: absolute;",o.innerHTML="&nbsp;";let i,a;if(typeof t=="number"){let u=e.value.substring(0,t);u&&(i=document.createTextNode(u)),u=e.value.substring(t),u&&(a=document.createTextNode(u))}else{const u=e.value;u&&(i=document.createTextNode(u))}if(i&&r.appendChild(i),r.appendChild(o),a&&r.appendChild(a),!r.parentElement){if(!e.parentElement)throw new Error("textField must have a parentElement to mirror");e.parentElement.insertBefore(r,e)}return r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft,{mirror:r,marker:o}}function rh(e,t=e.selectionEnd){const{mirror:n,marker:r}=nh(e,t),o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return setTimeout(()=>{n.remove()},5e3),{top:i.top-o.top,left:i.left-o.left}}const Mn=new WeakMap;function oh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{if(e.matches("dialog:modal"))return!0}catch{}try{if(e.matches(":fullscreen"))return!0}catch{}return!1}class ih{constructor(t,n){this.expander=t,this.input=n,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.lookBackIndex=0,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithList=!1,n.addEventListener("paste",this.onpaste),n.addEventListener("input",this.oninput),n.addEventListener("keydown",this.onkeydown),n.addEventListener("blur",this.onblur)}destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}dismissMenu(){this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex)}activate(t,n){var r,o;if(this.input!==document.activeElement&&this.input!==((o=(r=document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||o===void 0?void 0:o.activeElement))return;this.deactivate(),this.menu=n,n.id||(n.id=`text-expander-${Math.floor(Math.random()*1e5).toString()}`),this.expander.append(n),this.combobox=new Gf(this.input,n),this.expander.dispatchEvent(new Event("text-expander-activate"));let{top:i,left:a}=rh(this.input,t.position);if(oh(n)){const u=this.input.getBoundingClientRect();i+=u.top,a+=u.left,getComputedStyle(n).position==="absolute"&&(i+=window.scrollY,a+=window.scrollX)}n.style.top=`${i}px`,n.style.left=`${a}px`,this.combobox.start(),n.addEventListener("combobox-commit",this.oncommit),n.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1)}deactivate(){const t=this.menu;return!t||!this.combobox?!1:(this.expander.dispatchEvent(new Event("text-expander-deactivate")),this.menu=null,t.removeEventListener("combobox-commit",this.oncommit),t.removeEventListener("mousedown",this.onmousedown),this.combobox.destroy(),this.
<style ${n}>
:host {
contain: content;
display: block;
position: relative;
width: 100%;
padding-bottom: calc(100% / (16 / 9));
}
@media (max-width: 40em) {
:host([short]) {
padding-bottom: calc(100% / (9 / 16));
}
}
#frame, #fallbackPlaceholder, iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
}
#frame {
cursor: pointer;
}
#fallbackPlaceholder {
object-fit: cover;
}
#frame::before {
content: '';
display: block;
position: absolute;
top: 0;
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
height: 60px;
width: 100%;
z-index: 1;
}
#playButton {
width: 68px;
height: 48px;
background-color: transparent;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
z-index: 1;
border: 0;
border-radius: inherit;
}
#playButton:before {
content: '';
border-style: solid;
border-width: 11px 0 11px 19px;
border-color: transparent transparent transparent #fff;
}
#playButton,
#playButton:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
cursor: inherit;
}
/* Post-click styles */
.activated {
cursor: unset;
}
#frame.activated::before,
#frame.activated > #playButton {
display: none;
}
</style>
<div id="frame">
<picture>
<source id="webpPlaceholder" type="image/webp">
<source id="jpegPlaceholder" type="image/jpeg">
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
</picture>
<button id="playButton"></button>
</div>
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,r){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const r=this.noCookie?"-nocookie":"";let o;this.playlistId?o=`?listType=playlist&list=${this.playlistId}&`:o=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const i=`
<iframe frameborder="0" title="${this.videoTitle}"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
src="https://www.youtube${r}.com/embed/${o}autoplay=${n}&${this.params}"
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",i),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var r,o;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(o=(r=this.domRefImg)==null?void 0:r.fallback)==null||o.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,o)=>{r.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(Le.warmConnections(),this.addIframe(!0),o.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const r=document.createElement("link");r.rel=t,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(){Le.isPreconnected||window.liteYouTubeIsPreconnected||(Le.addPrefetch("preconnect","https://i.ytimg.com/"),Le.addPrefetch("preconnect","https://s.ytimg.com"),Le.addPrefetch("preconnect","https://www.youtube.com"),Le.addPrefetch("preconnect","https://www.google.com"),Le.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Le.addPrefetch("preconnect","https://static.doubleclick.net"),Le.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Le.isPreconnected=!1;customElements.define("lite-youtube",Le);const Th="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",$n=(e,t,n)=>{let r=0;for(;t<n;)r*=83,r+=Th.indexOf(e[t++]);return r},Bs=Math.pow,gn=Math.PI,xh=gn*2,Us=3294.6,qs=269.025,Ch=e=>e>10.31475?Bs(e/qs+.052132,2.4):e/Us,Fr=e=>~~(e>1227e-8?qs*Bs(e,.416666)-13.025:e*Us+1),ln=e=>(e<0?-1:1)*e*e,ca=e=>{for(e+=gn/2;e>gn;)e-=xh;const t=1.27323954*e-.405284735*ln(e);return .225*(ln(t)-t)+t};function Ah(e){const t=$n(e,2,6);return[t>>16,t>>8&255,t&255]}function gm(e,t,n,r){const o=$n(e,0,1),i=o%9+1,a=~~(o/9)+1,u=i*a;let s=0,l=0,d=0,c=0,f=0,h=0,p=0,m=0,_=0,v=0,y=0,T=0,M=0,x=0;const b=($n(e,1,2)+1)/13446*(r|1),C=new Float64Array(u*3),B=Ah(e);for(s=0;s<3;s++)C[s]=Ch(B[s]);for(s=1;s<u;s++)x=$n(e,4+s*2,6+s*2),C[s*3]=ln(~~(x/(19*19))-9)*b,C[s*3+1]=ln(~~(x/19)%19-9)*b,C[s*3+2]=ln(x%19-9)*b;const S=t*4,L=new Uint8ClampedArray(S*n);for(c=0;c<n;c++)for(T=gn*c/n,d=0;d<t;d++){for(f=0,h=0,p=0,M=gn*d/t,l=0;l<a;l++)for(_=ca(T*l),s=0;s<i;s++)m=ca(M*s)*_,v=(s+l*i)*3,f+=C[v]*m,h+=C[v+1]*m,p+=C[v+2]*m;y=4*d+c*S,L[y]=Fr(f),L[y+1]=Fr(h),L[y+2]=Fr(p),L[y+3]=255}return L}var on=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(on||{}),an=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(an||{});const Ws=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,Oh=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Ks(e){const{nativeEvent:t}=e,n=Oh();return n&&t instanceof n||"touches"in e}function Gs(e){const t=Ws();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Ys(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Ws();return n&&t instanceof n||"pointerId"in t}function la(e){return Gs(e)||Ks(e)||Ys(e)}function da(e){return Ks(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:Gs(e)||Ys(e)?{x:e.pageX,y:e.pageY}:null}function Mh(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persi
//# sourceMappingURL=vendor-f6XEe9UY.js.map