143 lines
323 KiB
JavaScript
143 lines
323 KiB
JavaScript
|
var xn,Z,ts,lc,wt,Ti,ns,io,Ho,ao,so,rs,Cn={},os=[],dc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Cr=Array.isArray;function et(e,t){for(var n in t)e[n]=t[n];return e}function is(e){var t=e.parentNode;t&&t.removeChild(e)}function re(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?xn.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 vn(e,a,r,o,null)}function vn(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??++ts,__i:-1,__u:0};return o==null&&Z.vnode!=null&&Z.vnode(i),i}function Go(){return{current:null}}function xe(e){return e.children}function Fe(e,t){this.props=e,this.context=t}function Ct(e,t){if(t==null)return e.__?Ct(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"?Ct(e):null}function as(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 as(e)}}function uo(e){(!e.__d&&(e.__d=!0)&&wt.push(e)&&!nr.__r++||Ti!==Z.debounceRendering)&&((Ti=Z.debounceRendering)||ns)(nr)}function nr(){var e,t,n,r,o,i,a,s;for(wt.sort(io);e=wt.shift();)e.__d&&(t=wt.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=et({},o)).__v=o.__v+1,Z.vnode&&Z.vnode(r),jo(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,i??Ct(o),!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,cs(a,r,s),r.__e!=i&&as(r)),wt.length>t&&wt.sort(io));nr.__r=0}function ss(e,t,n,r,o,i,a,s,u,c,d){var l,f,h,p,m,g=r&&r.__k||os,_=t.length;for(n.__d=u,fc(n,t,g),u=n.__d,l=0;l<_;l++)(h=n.__k[l])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?Cn:g[h.__i]||Cn,h.__i=l,jo(e,h,f,o,i,a,s,u,c,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&No(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?(u&&!u.isConnected&&(u=Ct(f)),u=us(h,u,e)):typeof h.type=="function"&&h.__d!==void 0?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=u,n.__e=m}function fc(e,t,n){var r,o,i,a,s,u=t.length,c=n.length,d=c,l=0;for(e.__k=[],r=0;r<u;r++)a=r+l,(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?vn(null,o,null,null,null):Cr(o)?vn(xe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?vn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=hc(o,n,a,d),o.__i=s,i=null,s!==-1&&(d--,(i=n[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s===a+1?l++:s>a?d>u-a?l+=s-a:l--:s<a?s==a-1&&(l=s-a):l=0,s!==r+l&&(o.__u|=65536))):(i=n[a])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ct(i)),co(i,i,!1),n[a]=null,d--);if(d)for(r=0;r<c;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ct(i)),co(i,i))}function us(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=us(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function nt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Cr(e)?e.some(function(n){nt(n,t)}):t.push(e)),t}function hc(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(s<t.length){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s++}}return-1}function Fi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||dc.test(t)?n:n+"px"}function Kn(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||Fi(e.style,t,"");if(n)for(t in n)r&&n[t]==
|
|||
|
* @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 ir(){return ir=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},ir.apply(this,arguments)}var lt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(lt||(lt={}));const Yi="popstate";function Bc(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:s="",hash:u=""}=It(o.location.hash.substr(1));return ho("",{pathname:a,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let u=o.location.href,c=u.indexOf("#");s=c===-1?u:u.slice(0,c)}return s+"#"+(typeof i=="string"?i:Qo(i))}function r(o,i){xc(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Hc(t,n,r,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rc(){return Math.random().toString(36).substr(2,8)}function Vi(e){return{usr:e.state,key:e.key}}function ho(e,t,n,r){return n===void 0&&(n=null),ir({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?It(t):t,{state:n,key:t&&t.key||r||Rc()})}function Qo(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 It(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 kc(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:Qo(e);return ve(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function Hc(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=lt.Pop,u=null;function c(){s=lt.Pop,u&&u({action:s,location:f.location})}function d(h,p){s=lt.Push;let m=ho(f.location,h,p);n&&n(m,h);let g=Vi(m),_=f.createHref(m);try{a.pushState(g,"",_)}catch{o.location.assign(_)}i&&u&&u({action:s,location:f.location})}function l(h,p){s=lt.Replace;let m=ho(f.location,h,p);n&&n(m,h);let g=Vi(m),_=f.createHref(m);a.replaceState(g,"",_),i&&u&&u({action:s,location:f.location})}let f={get action(){return s},get location(){return e(o,a)},listen(h){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Yi,c),u=h,()=>{o.removeEventListener(Yi,c),u=null}},createHref(h){return t(o,h)},encodeLocation(h){let p=kc(typeof h=="string"?h:Qo(h));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:l,go(h){return a.go(h)}};return f}var Zi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zi||(Zi={}));function Gc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?It(t):t,o=Fs(r.pathname||"/",n);if(o==null)return null;let i=Ls(e);jc(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=Yc(i[s],Qc(o));return a}function Ls(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(ve(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=At([r,u.relativePath]),d=n.concat(u);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 "'+c+'".')),Ls(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Wc(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let u of T
|
|||
|
* 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 po(){return po=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},po.apply(this,arguments)}function ll(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const dl=typeof Object.is=="function"?Object.is:ll,{useState:fl,useEffect:hl,useLayoutEffect:pl,useDebugValue:ml}=or;function _l(e,t,n){const r=t(),[{inst:o},i]=fl({inst:{value:r,getSnapshot:t}});return pl(()=>{o.value=r,o.getSnapshot=t,Nr(o)&&i({inst:o})},[e,r,t]),hl(()=>(Nr(o)&&i({inst:o}),e(()=>{Nr(o)&&i({inst:o})})),[e]),ml(r),r}function Nr(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!dl(n,r)}catch{return!0}}function gl(e,t,n){return t()}const yl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vl=!yl,wl=vl?gl:_l,Rm="useSyncExternalStore"in or?(e=>e.useSyncExternalStore)(or):wl,Ps=Ce(null),Bs=Ce(null);const ei=Ce(null),Ir=Ce(null),tn=Ce({outlet:null,matches:[]}),xs=Ce(null);function Dr(){return ne(Ir)!=null}function ti(){return Dr()||ve(!1),ne(Ir).location}function bl(){Dr()||ve(!1);let{basename:e,navigator:t}=ne(ei),{matches:n}=ne(tn),{pathname:r}=ti(),o=JSON.stringify(nl(n).map(s=>s.pathnameBase)),i=J(!1);return oe(()=>{i.current=!0}),ge(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let c=rl(s,JSON.parse(o),r,u.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:At([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,o,r])}function km(){let{matches:e}=ne(tn),t=e[e.length-1];return t?t.params:{}}function Al(e,t){Dr()||ve(!1);let{navigator:n}=ne(ei),r=ne(Bs),{matches:o}=ne(tn),i=o[o.length-1],a=i?i.params:{},s=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route,d=ti(),l;if(t){var f;let _=typeof t=="string"?It(t):t;u==="/"||(f=_.pathname)!=null&&f.startsWith(u)||ve(!1),l=_}else l=d;let h=l.pathname||"/",p=u==="/"?h:h.slice(u.length)||"/",m=Gc(e,{pathname:p}),g=Sl(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:At([u,n.encodeLocation?n.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:At([u,n.encodeLocation?n.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r||void 0);return t&&g?re(Ir.Provider,{value:{location:po({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:lt.Pop}},g):g}function Cl(){let e=Tl(),t=ul(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 re(xe,null,re("h2",null,"Unhandled Thrown Error!"),re("h3",{style:{fontStyle:"italic"}},t),n?re("pre",{style:o},n):null,re("p",null,"💿 Hey developer 👋"),re("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",re("code",{style:i},"errorElement")," props on ",re("code",{style:i},"<Route>")))}class Ml extends Fe{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?re(tn.Provider,{value:this.props.routeContext},re(xs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function El(e){let{routeContext:t,match:n,children:r}=e,o=ne(Ps);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),re(tn.Provider,{value:t},r)}function Sl(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,s)=>{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 _o(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 Pl(e,t){let n=_o(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}function jm(e){let{basename:t,children:n,window:r}=e,o=J();o.current==null&&(o.current=Bc({window:r,v5Compat:!0}));let i=o.current,[a,s]=me({action:i.action,location:i.location});return Qe(()=>i.listen(s),[i]),re(Ol,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}var ta;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ta||(ta={}));var na;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(na||(na={}));function Nm(e){let t=J(_o(e)),n=ti(),r=se(()=>Pl(n.search,t.current),[n.search]),o=bl(),i=ge((a,s)=>{const u=_o(typeof a=="function"?a(r):a);o("?"+u,s)},[o,r]);return[r,i]}var zm=Bl;function Bl(e,t,n){var r=null,o=null,i=function(){r&&(clearTimeout(r),o=null,r=null)},a=function(){var u=o;i(),u&&u()},s=function(){if(!t)return e.apply(this,arguments);var u=this,c=arguments,d=n&&!r;if(i(),o=function(){e.apply(u,c)},r=setTimeout(function(){if(r=null,!d){var l=o;return o=null,l()}},t),d)return o()};return s.cancel=i,s.flush=a,s}/*!
|
|||
|
* 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",l,!1),t.addEventListener("touchend",c,!1);var n=null,r=null,o=null,i=null,a=null,s=null,u=0;function c(h){if(s===h.target){var p=parseInt(f(s,"data-swipe-threshold","20"),10),m=f(s,"data-swipe-unit","px"),g=parseInt(f(s,"data-swipe-timeout","500"),10),_=Date.now()-a,y="",b=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&&_<g&&(o>0?y="swiped-left":y="swiped-right"):Math.abs(i)>p&&_<g&&(i>0?y="swiped-up":y="swiped-down"),y!==""){var L={dir:y.replace(/swiped-/,""),touchType:(b[0]||{}).touchType||"direct",fingers:u,xStart:parseInt(n,10),xEnd:parseInt((b[0]||{}).clientX||-1,10),yStart:parseInt(r,10),yEnd:parseInt((b[0]||{}).clientY||-1,10)};s.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:L})),s.dispatchEvent(new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:L}))}n=null,r=null,a=null}}function d(h){h.target.getAttribute("data-swipe-ignore")!=="true"&&(s=h.target,a=Date.now(),n=h.touches[0].clientX,r=h.touches[0].clientY,o=0,i=0,u=h.touches.length)}function l(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 g=h.getAttribute(p);if(g)return g;h=h.parentNode}return m}})(window,document);const xl=Symbol(),ni=Symbol(),ln="a",bn="w";let Rl=(e,t)=>new Proxy(e,t);const go=Object.getPrototypeOf,yo=new WeakMap,Rs=e=>e&&(yo.has(e)?yo.get(e):go(e)===Object.prototype||go(e)===Array.prototype),sr=e=>typeof e=="object"&&e!==null,kl=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(go(e),t)},ri=e=>e[ni]||e,ks=(e,t,n,r)=>{if(!Rs(e))return e;let o=r&&r.get(e);if(!o){const u=ri(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(u)?[u,kl(u)]:[u],r==null||r.set(e,o)}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((u,c)=>{const d={f:c};let l=!1;const f=(p,m)=>{if(!l){let g=d[ln].get(u);if(g||(g={},d[ln].set(u,g)),p===bn)g[bn]=!0;else{let _=g[p];_||(_=new Set,g[p]=_),_.add(m)}}},h={get:(p,m)=>m===ni?u:(f("k",m),ks(Reflect.get(p,m),d[ln],d.c,d.t)),has:(p,m)=>m===xl?(l=!0,d[ln].delete(u),!0):(f("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(f("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(f(bn),Reflect.ownKeys(p))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(i,!!a),s[1].p=Rl(a||i,s[0]),n&&n.set(i,s)),s[1][ln]=t,s[1].c=n,s[1].t=r,s[1].p},Hs=(e,t,n,r,o=Object.is)=>{if(o(e,t))return!1;if(!sr(e)||!sr(t))return!0;const i=n.get(ri(e));if(!i)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const s of i.h||[])if(a=Reflect.has(e,s)!==Reflect.has(t,s),a)return a;if(i[bn]===!0){if(a=((s,u)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(u);return c.length!==d.length||c.some((l,f)=>l!==d[f])})(e,t),a)return a}else for(const s of i.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),a)return a;for(const s of i.k||[])if(a=Hs(e[s],t[s],n,r,o),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}};const Hl=e=>Rs(e)&&e[ni]||null,ra=(e,t=!0)=>{yo.set(e,t)},Gl=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;sr(a)&&o.add(a);const u=sr(a)&&t.get(ri(a));if(u){var c,d;if((c=u.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;r.push(s?[...s,h]:[h])}),u[bn]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f])}else{var l;(l=u.o)==null||l.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(s?[...s,h]:[h])})}(d=u.k)==null||d.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDes
|
|||
|
* @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 Vt=Kl;function $l(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jl=typeof Object.is=="function"?Object.is:$l,Ul=Vt.useState,Wl=Vt.useEffect,ql=Vt.useLayoutEffect,Yl=Vt.useDebugValue;function Vl(e,t){var n=t(),r=Ul({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ql(function(){o.value=n,o.getSnapshot=t,Kr(o)&&i({inst:o})},[e,n,t]),Wl(function(){return Kr(o)&&i({inst:o}),e(function(){Kr(o)&&i({inst:o})})},[e]),Yl(n),n}function Kr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jl(e,n)}catch{return!0}}function Zl(e,t){return t()}var Ql=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zl:Vl,$m=js.useSyncExternalStore=Vt.useSyncExternalStore!==void 0?Vt.useSyncExternalStore:Ql,Jm=oi.exports;oi.exports=js;var Xl=oi.exports;const ed=it(Xl);var td={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:ia}=Nt,{useSyncExternalStore:nd}=ed,rd=(e,t)=>{const n=J();oe(()=>{n.current=Gl(e,t,!0)}),Mr(n.current)},od=new WeakMap;function Um(e,t){const n=t==null?void 0:t.sync,r=J(),o=J();let i=!0;const a=nd(ge(c=>{const d=Gs(e,c,n);return c(),d},[e,n]),()=>{const c=oa(e,ia);try{if(!i&&r.current&&o.current&&!Hs(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>oa(e,ia));i=!1;const s=new WeakMap;oe(()=>{r.current=a,o.current=s}),(td?"production":void 0)!=="production"&&rd(a,s);const u=se(()=>new WeakMap,[]);return ks(a,s,u,od)}var id=0,Wm=Array.isArray;function ue(e,t,n,r,o,i){t||(t={});var a,s,u=t;if("ref"in u)for(s in u={},t)s=="ref"?a=t[s]:u[s]=t[s];var c={type:e,props:u,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--id,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)u[s]===void 0&&(u[s]=a[s]);return Z.vnode&&Z.vnode(c),c}function vo(){return vo=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},vo.apply(this,arguments)}var Ns=["shift","alt","meta","mod","ctrl"],ad={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 dt(e){return(ad[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function sd(e){return Ns.includes(e)}function $r(e,t){return t===void 0&&(t=","),e.split(t)}function Jr(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return dt(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!Ns.includes(a)});return vo({},o,{keys:i,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&zs([dt(e.key),dt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&Ks([dt(e.key),dt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){ft.clear()})})();var ft=new Set;function ii(e){return Array.isArray(e)}function ud(e,t){t===void 0&&(t=",");var n=ii(e)?e:e.split(t);return n.every(function(r){return ft.has(r.trim().toLowerCase())})}function zs(e){var t=Array.isArray(e)?e:[e];ft.has("meta")&&ft.forEach(function(n){return!sd(n)&&ft.delete(n.toLowerCase())}),t.forEach(function(n){return ft.add(n.toLowerCase())})}function Ks(e){var t=Array.isArray(e)?e:[e];e==="meta"?ft.clear():t.forEach(function(n){return ft.delete(n.toLowerCase())})}function cd(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function ld(e,t,n){return
|
|||
|
* Toastify js 1.12.0
|
|||
|
* https://github.com/apvarun/toastify-js
|
|||
|
* @license MIT licensed
|
|||
|
*
|
|||
|
* Copyright (C) 2018 Varun A P
|
|||
|
*/var Qm=li.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(mt,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 s in this.options.style)a.style[s]=this.options.style[s];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 u=document.createElement("img");u.src=this.options.avatar,u.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(u):a.insertAdjacentElement("afterbegin",u)}if(this.options.close===!0){var c=document.createElement("button");c.type="button",c.setAttribute("aria-label","Close"),c.className="toast-close",c.innerHTML="✖",c.addEventListener("click",(function(g){g.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",c):a.appendChild(c)}if(this.options.stopOnFocus&&this.options.duration>0){var l=this;a.addEventListener("mouseover",function(g){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){l.removeElement(a)},l.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(g){g.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination
|
|||
|
<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&&(Pe.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(){Pe.isPreconnected||window.liteYouTubeIsPreconnected||(Pe.addPrefetch("preconnect","https://i.ytimg.com/"),Pe.addPrefetch("preconnect","https://s.ytimg.com"),Pe.addPrefetch("preconnect","https://www.youtube.com"),Pe.addPrefetch("preconnect","https://www.google.com"),Pe.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Pe.addPrefetch("preconnect","https://static.doubleclick.net"),Pe.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Pe.isPreconnected=!1;customElements.define("lite-youtube",Pe);const W0="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",tr=(e,t,n)=>{let r=0;for(;t<n;)r*=83,r+=W0.indexOf(e[t++]);return r},Ru=Math.pow,Bn=Math.PI,q0=Bn*2,ku=3294.6,Hu=269.025,Y0=e=>e>10.31475?Ru(e/Hu+.052132,2.4):e/ku,no=e=>~~(e>1227e-8?Hu*Ru(e,.416666)-13.025:e*ku+1),An=e=>(e<0?-1:1)*e*e,ka=e=>{for(e+=Bn/2;e>Bn;)e-=q0;const t=1.27323954*e-.405284735*An(e);return .225*(An(t)-t)+t};function V0(e){const t=tr(e,2,6);return[t>>16,t>>8&255,t&255]}function Z_(e,t,n,r){const o=tr(e,0,1),i=o%9+1,a=~~(o/9)+1,s=i*a;let u=0,c=0,d=0,l=0,f=0,h=0,p=0,m=0,g=0,_=0,y=0,b=0,L=0,I=0;const A=(tr(e,1,2)+1)/13446*(r|1),M=new Float64Array(s*3),G=V0(e);for(u=0;u<3;u++)M[u]=Y0(G[u]);for(u=1;u<s;u++)I=tr(e,4+u*2,6+u*2),M[u*3]=An(~~(I/(19*19))-9)*A,M[u*3+1]=An(~~(I/19)%19-9)*A,M[u*3+2]=An(I%19-9)*A;const C=t*4,O=new Uint8ClampedArray(C*n);for(l=0;l<n;l++)for(b=Bn*l/n,d=0;d<t;d++){for(f=0,h=0,p=0,L=Bn*d/t,c=0;c<a;c++)for(g=ka(b*c),u=0;u<i;u++)m=ka(L*u)*g,_=(u+c*i)*3,f+=M[_]*m,h+=M[_+1]*m,p+=M[_+2]*m;y=4*d+l*C,O[y]=no(f),O[y+1]=no(h),O[y+2]=no(p),O[y+3]=255}return O}const Z0=(e,t={})=>{const n=t.char||" ",r=t.count||2;let o=0;const i=[];return e.reverse().reduce((a,s)=>{i.length&&o&&i[o]&&i[o]===s.substring(1,i[o].length+1)&&(i.splice(o,1),o--);const c=[`${n.repeat(o?o*r:0)}${s}`,...a];return s.substring(0,2)==="</"&&(o++,i[o]=s.substring(2,s.length-1)),c},[]).join(`
|
|||
|
`)};var Q0=Z0;const Gu=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,""),X0=e=>{const t=Gu(e).split(`
|
|||
|
`),n=[];let r="";for(let o=0;o<t.length;o+=1){const i=t[o];if(i.endsWith("/>")){n.push(`${r}${i.slice(0,-2)} />`),r="";continue}if(i.endsWith(">")){n.push(`${r}${i.startsWith(">")||i.startsWith("<")?"":" "}${i}`),r="";continue}r+=r.length?` ${i}`:i}return n};var ep={mergeAttributesWithElements:X0,removeEmptyLines:Gu};const tp=Q0,{mergeAttributesWithElements:np}=ep,rp=(e,t={})=>{const n=np(e);return tp(n,t)};var op=rp;const Q_=it(op);var ip={TINYLD_CONFIG:"light"},ap=/[,.。,、#%&/\\+*¡!¿?[\]!?;:…„“«»”"“_–—~]/gi,sp=/[0-9]/g,up=/[\uFF10-\uFF19]/g,cp=/\s\s+/g,lp=/’/gi,dp=/[\u0300-\u036f]/g;function fp(e){return typeof e=="string"||e instanceof String}function hp(e){return e.toLowerCase().replace(lp,"'").replace(ap," ").replace(up,t=>String.fromCharCode(t.charCodeAt(0)-65248)).replace(sp,"").replace(cp," ").trim()}function pp(e){return e.normalize("NFD").replace(dp,"")}var Ei={light:{TRAINING_UNIQUE_GRAMS:[1,2,3,4],TOP_LANGUAGE_UNIQUE_GRAMS:60,TOP_LANGUAGE_STATS_GRAMS:50},normal:{TRAINING_UNIQUE_GRAMS:[1,2,3,4,5],TOP_LANGUAGE_UNIQUE_GRAMS:100,TOP_LANGUAGE_STATS_GRAMS:180},heavy:{TRAINING_UNIQUE_GRAMS:[1,2,3,4,5],TOP_LANGUAGE_UNIQUE_GRAMS:320,TOP_LANGUAGE_STATS_GRAMS:1024}},qt=ip.TINYLD_CONFIG||"normal",ju=Ei[qt].TRAINING_UNIQUE_GRAMS,X_=Ei[qt].TOP_LANGUAGE_UNIQUE_GRAMS,eg=Ei[qt].TOP_LANGUAGE_STATS_GRAMS,Ha=1e4;function Ga(e){return Math.round(e*Ha)/Ha}var mp=e=>{let t={only:[],verbose:!1};return e?Object.assign(t,e):t},To={afr:{code:"af",region:"africa",name:"Afrikaans",skipLight:!0},amh:{code:"am",region:"africa",name:"Amharic",skipLight:!0,coefProb:0},ber:{code:"ber",region:"africa",name:"Berber",skipLight:!0,coefProb:.25},run:{code:"rn",region:"africa",name:"Kirundi",skipLight:!0},jpn:{code:"ja",region:"asia-east",name:"Japanese",alias:["jp"],coefProb:0},cmn:{code:"zh",region:"asia-east",name:"Chinese",alias:["cn"],coefProb:.25},kor:{code:"ko",region:"asia-east",name:"Korean",alias:["kr"],coefProb:0},mya:{code:"my",region:"asia",name:"Burmese",skipLight:!0,coefProb:0},tha:{code:"th",region:"asia",name:"Thai",coefProb:0},vie:{code:"vi",region:"asia",name:"Vietnamese",skipLight:!0,coefProb:0},ind:{code:"id",region:"asia",name:"Indonesian",skipLight:!0},khm:{code:"km",region:"asia",name:"Khmer",skipLight:!0,coefProb:0},tgl:{code:"tl",region:"asia",name:"Tagalog",skipLight:!0},ben:{code:"bn",region:"asia-south",name:"Bengali",coefProb:0},tam:{code:"ta",region:"asia-south",name:"Tamil",skipLight:!0,coefProb:0},hin:{code:"hi",region:"asia-south",name:"Hindi",coefProb:0},urd:{code:"ur",region:"asia-south",name:"Urdu",skipLight:!0,coefProb:0},guj:{code:"gu",region:"asia-south",name:"Gujarati",skipLight:!0,coefProb:0},kan:{code:"kn",region:"asia-south",name:"Kannada",skipLight:!0,coefProb:0},tel:{code:"te",region:"asia-south",name:"Telugu",skipLight:!0,coefProb:0},fra:{code:"fr",region:"europe-west",name:"French"},eng:{code:"en",region:"europe-west",name:"English",alias:["us","gb"]},deu:{code:"de",region:"europe-west",name:"German",coefProb:.5},spa:{code:"es",region:"europe-west",name:"Spanish"},por:{code:"pt",region:"europe-west",name:"Portuguese",alias:["po"]},ita:{code:"it",region:"europe-west",name:"Italian"},nld:{code:"nl",region:"europe-west",name:"Dutch"},gle:{code:"ga",region:"europe-west",name:"Irish",skipLight:!0},lat:{code:"la",region:"europe",name:"Latin",skipLight:!0},ces:{code:"cs",region:"europe",name:"Czech",skipLight:!0},srp:{code:"sr",region:"europe",name:"Serbian",skipLight:!0},ell:{code:"el",region:"europe",name:"Greek",alias:["gr"],coefProb:0},mkd:{code:"mk",region:"europe",name:"Macedonian",skipLight:!0,coefProb:1.5},slk:{code:"sk",region:"europe",name:"Slovak",skipLight:!0},dan:{code:"da",region:"europe-north",name:"Danish",skipLight:!0,coefProb:1.5},swe:{code:"sv",region:"europe-north",name:"Swedish"},fin:{code:"fi",region:"europe-north",name:"Finnish"},nob:{code:"no",region:"europe-north",name:"Norwegian",coefProb:1.5},isl:{code:"is",region:"europe-north",name:"Icelandic",skipLight:!0,coefProb:.5},hun:{code:"hu",region:"europe-east",name:"Hungarian"},ron:{code:"ro",region:"europ
|
|||
|
//# sourceMappingURL=vendor-GrW-f9CX.js.map
|