PageSourceSearch

https://fantastic-taiyaki-dfc190.netlify.app/assets/index-CZ812VC8.js

js fantastic-taiyaki-dfc190.netlify.app collected 2026-10-03 10:43:28 UTC 607,872 bytes, 2,014 lines download raw bytes

vendor: 1,348 bytes, lines 1-9
1(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function Nc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wu={exports:{}},Fr={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Gm;function bv(){if(Gm)return Fr;Gm=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,s,c){var p=null;if(c!==void 0&&(p=""+c),s.key!==void 0&&(p=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;
vendor: 9,892 bytes, lines 9-25
9return s=c.ref,{$$typeof:t,type:l,key:p,ref:s!==void 0?s:null,props:c}}return Fr.Fragment=a,Fr.jsx=r,Fr.jsxs=r,Fr}var Wm;function vv(){return Wm||(Wm=1,Wu.exports=bv()),Wu.exports}var ve=vv(),ec={exports:{}},xe={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var eh;function wv(){if(eh)return xe;eh=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function S(h){return h===null||typeof h!="object"?null:(h=w&&h[w]||h["@@iterator"],typeof h=="function"?h:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,V={};function K(h,U,Y){this.props=h,this.context=U,this.refs=V,this.updater=Y||_}K.prototype.isReactComponent={},K.prototype.setState=function(h,U){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,U,"setState")},K.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function H(){}H.prototype=K.prototype;function G(h,U,Y){this.props=h,this.context=U,this.refs=V,this.updater=Y||_}var Q=G.prototype=new H;Q.constructor=G,B(Q,K.prototype),Q.isPureReactComponent=!0;var we=Array.isArray,W={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function ue(h,U,Y,x,te,ke){return Y=ke.ref,{$$typeof:t,type:h,key:U,ref:Y!==void 0?Y:null,props:ke}}function _e(h,U){return ue(h.type,U,void 0,void 0,void 0,h.props)}function ye(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function Ae(h){var U={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(Y){return U[Y]})}var ae=/\/+/g;function Z(h,U){return typeof h=="object"&&h!==null&&h.key!=null?Ae(""+h.key):U.toString(36)}function ie(){}function J(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(ie,ie):(h.status="pending",h.then(function(U){h.status==="pending"&&(h.status="fulfilled",h.value=U)},function(U){h.status==="pending"&&(h.status="rejected",h.reason=U)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function ee(h,U,Y,x,te){var ke=typeof h;(ke==="undefined"||ke==="boolean")&&(h=null);var re=!1;if(h===null)re=!0;else switch(ke){case"bigint":case"string":case"number":re=!0;break;case"object":switch(h.$$typeof){case t:case a:re=!0;break;case y:return re=h._init,ee(re(h._payload),U,Y,x,te)}}if(re)return te=te(h),re=x===""?"."+Z(h,0):x,we(te)?(Y="",re!=null&&(Y=re.replace(ae,"$&/")+"/"),ee(te,U,Y,"",function(Ot){return Ot})):te!=null&&(ye(te)&&(te=_e(te,Y+(te.key==null||h&&h.key===te.key?"":(""+te.key).replace(ae,"$&/")+"/")+re)),U.push(te)),1;re=0;var pt=x===""?".":x+":";if(we(h))for(var Ne=0;Ne<h.length;Ne++)x=h[Ne],ke=pt+Z(x,Ne),re+=ee(x,U,Y,ke,te);else if(Ne=S(h),typeof Ne=="function")for(h=Ne.call(h),Ne=0;!(x=h.next()).done;)x=x.value,ke=pt+Z(x,Ne++),re+=ee(x,U,Y,ke,te);else if(ke==="object"){if(typeof h.then=="function")return ee(J(h),U,Y,x,te);throw U=String(h),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return re}function M(h,U,Y){if(h==null)return h;var x=[],te=0;return ee(h,x,"","",function(ke){return U.call(Y,ke,te++)}),x}function $(h){if(h._status===-1){var U=h._result;U=U(),U.then(function(Y){(h._status===0||h._status===-1)&&(h._status=1,h._result=Y)},function(Y){(h._status===0||h._status===-1)&&(h._status=2,h._result=Y)}),h._status===-1&&(h._status=0,h._result=U)}if(h._status===1)return h._result.default;throw h._result}var R=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)};function N(){}return xe.Children={map:M,forEach:function(h,U,Y){M(h,function(){U.apply(this,arguments)},Y)},count:function(h){var U=0;return M(h,function(){U++}),U},toArray:function(h){return M(h,function(U){return U})||[]},only:function(h){if(!ye(h))throw Error("React.Children.only expected to receive a single React element child.");return h}},xe.Component=K,xe.Fragment=r,xe.Profiler=s,xe.PureComponent=G,xe.StrictMode=l,xe.Suspense=b,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,xe.__COMPILER_RUNTIME={__proto__:null,c:function(h){return W.H.useMemoCache(h)}},xe.cache=function(h){return function(){return h.apply(null,arguments)}},xe.cloneElement=function(h,U,Y){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var x=B({},h.props),te=h.key,ke=void 0;if(U!=null)for(re in U.ref!==void 0&&(ke=void 0),U.key!==void 0&&(te=""+U.key),U)!L.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(x[re]=U[re]);var re=arguments.length-2;if(re===1)x.children=Y;else if(1<re){for(var pt=Array(re),Ne=0;Ne<re;Ne++)pt[Ne]=arguments[Ne+2];x.children=pt}return ue(h.type,te,void 0,void 0,ke,x)},xe.createContext=function(h){return h={$$typeof:p,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:c,_context:h},h},xe.createElement=function(h,U,Y){var x,te={},ke=null;if(U!=null)for(x in U.key!==void 0&&(ke=""+U.key),U)L.call(U,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(te[x]=U[x]);var re=arguments.length-2;if(re===1)te.children=Y;else if(1<re){for(var pt=Array(re),Ne=0;Ne<re;Ne++)pt[Ne]=arguments[Ne+2];te.children=pt}if(h&&h.defaultProps)for(x in re=h.defaultProps,re)te[x]===void 0&&(te[x]=re[x]);return ue(h,ke,void 0,void 0,null,te)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(h){return{$$typeof:m,render:h}},xe.isValidElement=ye,xe.lazy=function(h){return{$$typeof:y,_payload:{_status:-1,_result:h},_init:$}},xe.memo=function(h,U){return{$$typeof:d,type:h,compare:U===void 0?null:U}},xe.startTransition=function(h){var U=W.T,Y={};W.T=Y;try{var x=h(),te=W.S;te!==null&&te(Y,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(N,R)}catch(ke){R(ke)}finally{W.T=U}},xe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},xe.use=function(h){return W.H.use(h)},xe.useActionState=function(h,U,Y){return W.H.useActionState(h,U,Y)},xe.useCallback=function(h,U){return W.H.useCallback(h,U)},xe.useContext=function(h){return W.H.useContext(h)},xe.useDebugValue=function(){},xe.useDeferredValue=function(h,U){return W.H.useDeferredValue(h,U)},xe.useEffect=function(h,U,Y){var x=W.H;if(typeof Y=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(h,U)},xe.useId=function(){return W.H.useId()},xe.useImperativeHandle=function(h,U,Y){return W.H.useImperativeHandle(h,U,Y)},xe.useInsertionEffect=function(h,U){return W.H.useInsertionEffect(h,U)},xe.useLayoutEffect=function(h,U){return W.H.useLayoutEffect(h,U)},xe.useMemo=function(h,U){return W.H.useMemo(h,U)},xe.useOptimistic=function(h,U){return W.H.useOptimistic(h,U)},xe.useReducer=function(h,U,Y){return W.H.useReducer(h,U,Y)},xe.useRef=function(h){return W.H.useRef(h)},xe.useState=function(h){return W.H.useState(h)},xe.useSyncExternalStore=function(h,U,Y){return W.H.useSyncExternalStore(h,U,Y)},xe.useTransition=function(){return W.H.useTransition()},xe.version="19.1.1",xe}var th;function Ic(){return th||(th=1,ec.exports=wv()),ec.exports}var zi=Ic();const _v=Nc(zi);var tc={exports:{}},Xr={},nc={exports:{}},ac={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var nh;function xv(){return nh||(nh=1,(function(t){function a(M,$){var R=M.length;M.push($);e:for(;0<R;){var N=R-1>>>1,h=M[N];if(0<s(h,$))M[N]=$,M[R]=h,R=N;else break e}}function r(M){return M.length===0?null:M[0]}function l(M){if(M.length===0)return null;var $=M[0],R=M.pop();if(R!==$){M[0]=R;e:for(var N=0,h=M.length,U=h>>>1;N<U;){var Y=2*(N+1)-1,x=M[Y],te=Y+1,ke=M[te];if(0>s(x,R))te<h&&0>s(ke,x)?(M[N]=ke,M[te]=R,N=te):(M[N]=x,M[Y]=R,N=Y);else if(te<h&&0>s(ke,R))M[N]=ke,M[te]=R,N=te;else break e}}return $}function s(M,$){var R=M.sortIndex-$.sortIndex;return R!==0?R:M.id-$.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var p=Date,m=p.now();t.unstable_now=function(){return p.now()-m}}var b=[],d=[],y=1,w=null,S=3,_=!1,B=!1,V=!1,K=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function we(M){for(var $=r(d);$!==null;){if($.callback===null)l(d);else if($.startTime<=M)l(d),$.sortIndex=$.expirationTime,a(b,$);else break;$=r(d)}}function W(M){if(V=!1,we(M),!B)if(r(b)!==null)B=!0,L||(L=!0,Z());else{var $=r(d);$!==null&&ee(W,$.startTime-M)}}var L=!1,ue=-1,_e=5,ye=-1;function Ae(){return K?!0:!(t.unstable_now()-ye<_e)}
vendor: 5,854 bytes, lines 25-33
25function ae(){if(K=!1,L){var M=t.unstable_now();ye=M;var $=!0;try{e:{B=!1,V&&(V=!1,G(ue),ue=-1),_=!0;var R=S;try{t:{for(we(M),w=r(b);w!==null&&!(w.expirationTime>M&&Ae());){var N=w.callback;if(typeof N=="function"){w.callback=null,S=w.priorityLevel;var h=N(w.expirationTime<=M);if(M=t.unstable_now(),typeof h=="function"){w.callback=h,we(M),$=!0;break t}w===r(b)&&l(b),we(M)}else l(b);w=r(b)}if(w!==null)$=!0;else{var U=r(d);U!==null&&ee(W,U.startTime-M),$=!1}}break e}finally{w=null,S=R,_=!1}$=void 0}}finally{$?Z():L=!1}}}var Z;if(typeof Q=="function")Z=function(){Q(ae)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,J=ie.port2;ie.port1.onmessage=ae,Z=function(){J.postMessage(null)}}else Z=function(){H(ae,0)};function ee(M,$){ue=H(function(){M(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(M){switch(S){case 1:case 2:case 3:var $=3;break;default:$=S}var R=S;S=$;try{return M()}finally{S=R}},t.unstable_requestPaint=function(){K=!0},t.unstable_runWithPriority=function(M,$){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var R=S;S=M;try{return $()}finally{S=R}},t.unstable_scheduleCallback=function(M,$,R){var N=t.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?N+R:N):R=N,M){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=R+h,M={id:y++,callback:$,priorityLevel:M,startTime:R,expirationTime:h,sortIndex:-1},R>N?(M.sortIndex=R,a(d,M),r(b)===null&&M===r(d)&&(V?(G(ue),ue=-1):V=!0,ee(W,R-N))):(M.sortIndex=h,a(b,M),B||_||(B=!0,L||(L=!0,Z()))),M},t.unstable_shouldYield=Ae,t.unstable_wrapCallback=function(M){var $=S;return function(){var R=S;S=$;try{return M.apply(this,arguments)}finally{S=R}}}})(ac)),ac}var ah;function Sv(){return ah||(ah=1,nc.exports=xv()),nc.exports}var ic={exports:{}},Rt={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var ih;function Av(){if(ih)return Rt;ih=1;var t=Ic();function a(b){var d="https://react.dev/errors/"+b;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(b,d,y){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:w==null?null:""+w,children:b,containerInfo:d,implementation:y}}var p=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(b,d){if(b==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Rt.createPortal=function(b,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return c(b,d,null,y)},Rt.flushSync=function(b){var d=p.T,y=l.p;try{if(p.T=null,l.p=2,b)return b()}finally{p.T=d,l.p=y,l.d.f()}},Rt.preconnect=function(b,d){typeof b=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(b,d))},Rt.prefetchDNS=function(b){typeof b=="string"&&l.d.D(b)},Rt.preinit=function(b,d){if(typeof b=="string"&&d&&typeof d.as=="string"){var y=d.as,w=m(y,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?l.d.S(b,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:w,integrity:S,fetchPriority:_}):y==="script"&&l.d.X(b,{crossOrigin:w,integrity:S,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Rt.preinitModule=function(b,d){if(typeof b=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=m(d.as,d.crossOrigin);l.d.M(b,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&l.d.M(b)},Rt.preload=function(b,d){if(typeof b=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,w=m(y,d.crossOrigin);l.d.L(b,y,{crossOrigin:w,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Rt.preloadModule=function(b,d){if(typeof b=="string")if(d){var y=m(d.as,d.crossOrigin);l.d.m(b,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else l.d.m(b)},Rt.requestFormReset=function(b){l.d.r(b)},Rt.unstable_batchedUpdates=function(b,d){return b(d)},Rt.useFormState=function(b,d,y){return p.H.useFormState(b,d,y)},Rt.useFormStatus=function(){return p.H.useHostTransitionStatus()}
vendor: 16,085 bytes, lines 33-48
33,Rt.version="19.1.1",Rt}var rh;function kv(){if(rh)return ic.exports;rh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),ic.exports=Av(),ic.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var oh;function Tv(){if(oh)return Xr;oh=1;var t=Sv(),a=Ic(),r=kv();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function p(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(l(188))}function b(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,o=n;;){var u=i.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){i=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===i)return m(u),e;if(f===o)return m(u),n;f=f.sibling}throw Error(l(188))}if(i.return!==o.return)i=u,o=f;else{for(var g=!1,v=u.child;v;){if(v===i){g=!0,i=u,o=f;break}if(v===o){g=!0,o=u,i=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===i){g=!0,i=f,o=u;break}if(v===o){g=!0,o=f,i=u;break}v=v.sibling}if(!g)throw Error(l(189))}}if(i.alternate!==o)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function d(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=d(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function J(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case K:return"Profiler";case V:return"StrictMode";case W:return"Suspense";case L:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case Q:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case we:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return n=e.displayName||null,n!==null?n:J(e.type)||"Memo";case _e:n=e._payload,e=e._init;try{return J(e(n))}catch{}}return null}var ee=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},N=[],h=-1;function U(e){return{current:e}}function Y(e){0>h||(e.current=N[h],N[h]=null,h--)}function x(e,n){h++,N[h]=e.current,e.current=n}var te=U(null),ke=U(null),re=U(null),pt=U(null);function Ne(e,n){switch(x(re,n),x(ke,e),x(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Tm(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Tm(n),e=Em(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),x(te,e)}function Ot(){Y(te),Y(ke),Y(re)}function kn(e){e.memoizedState!==null&&x(pt,e);var n=te.current,i=Em(n,e.type);n!==i&&(x(ke,e),x(te,i))}function Ln(e){ke.current===e&&(Y(te),Y(ke)),pt.current===e&&(Y(pt),Br._currentValue=R)}var Fi=Object.prototype.hasOwnProperty,Xi=t.unstable_scheduleCallback,Yi=t.unstable_cancelCallback,uo=t.unstable_shouldYield,co=t.unstable_requestPaint,Xt=t.unstable_now,zl=t.unstable_getCurrentPriorityLevel,Qi=t.unstable_ImmediatePriority,Ki=t.unstable_UserBlockingPriority,Ka=t.unstable_NormalPriority,ql=t.unstable_LowPriority,fo=t.unstable_IdlePriority,Bl=t.log,Hl=t.unstable_setDisableYieldValue,I=null,F=null;function ce(e){if(typeof Bl=="function"&&Hl(e),F&&typeof F.setStrictMode=="function")try{F.setStrictMode(I,e)}catch{}}var de=Math.clz32?Math.clz32:zn,Ve=Math.log,Yt=Math.LN2;function zn(e){return e>>>=0,e===0?32:31-(Ve(e)/Yt|0)|0}var It=256,Tn=4194304;function Qt(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gt(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=o&134217727;return v!==0?(o=v&~f,o!==0?u=Qt(o):(g&=v,g!==0?u=Qt(g):i||(i=v&~e,i!==0&&(u=Qt(i))))):(v=o&~f,v!==0?u=Qt(v):g!==0?u=Qt(g):i||(i=o&~e,i!==0&&(u=Qt(i)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,i=n&-n,f>=i||f===32&&(i&4194048)!==0)?n:u}function ln(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function bn(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uf(){var e=It;return It<<=1,(It&4194048)===0&&(It=256),e}function cf(){var e=Tn;return Tn<<=1,(Tn&62914560)===0&&(Tn=4194304),e}function Pl(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Zi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function oy(e,n,i,o,u,f){var g=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var v=e.entanglements,A=e.expirationTimes,C=e.hiddenUpdates;for(i=g&~i;0<i;){var j=31-de(i),P=1<<j;v[j]=0,A[j]=-1;var D=C[j];if(D!==null)for(C[j]=null,j=0;j<D.length;j++){var O=D[j];O!==null&&(O.lane&=-536870913)}i&=~P}o!==0&&ff(e,o,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function ff(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-de(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&4194090}function pf(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-de(i),u=1<<o;u&n|e[o]&n&&(e[o]|=n),i&=~u}}function Vl(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $l(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function df(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Xm(e.type))}function ly(e,n){var i=$.p;try{return $.p=e,n()}finally{$.p=i}}var ea=Math.random().toString(36).slice(2),Et="__reactFiber$"+ea,jt="__reactProps$"+ea,Za="__reactContainer$"+ea,Fl="__reactEvents$"+ea,sy="__reactListeners$"+ea,uy="__reactHandles$"+ea,mf="__reactResources$"+ea,Ji="__reactMarker$"+ea;function Xl(e){delete e[Et],delete e[jt],delete e[Fl],delete e[sy],delete e[uy]}function Ja(e){var n=e[Et];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Za]||i[Et]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Om(e);e!==null;){if(i=e[Et])return i;e=Om(e)}return n}e=i,i=e.parentNode}return null}function Ga(e){if(e=e[Et]||e[Za]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Gi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function Wa(e){var n=e[mf];return n||(n=e[mf]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function yt(e){e[Ji]=!0}var hf=new Set,gf={};function Ea(e,n){ei(e,n),ei(e+"Capture",n)}function ei(e,n){for(gf[e]=n,e=0;e<n.length;e++)hf.add(n[e])}var cy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yf={},bf={};function fy(e){return Fi.call(bf,e)?!0:Fi.call(yf,e)?!1:cy.test(e)?bf[e]=!0:(yf[e]=!0,!1)}function po(e,n,i){if(fy(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function mo(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function qn(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}var Yl,vf;function ti(e){if(Yl===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Yl=n&&n[1]||"",vf=-1<i.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Yl+e+vf}var Ql=!1;function Kl(e,n){if(!e||Ql)return"";Ql=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(O){var D=O}Reflect.construct(e,[],P)}else{try{P.call()}catch(O){D=O}e.call(P.prototype)}}else{try{throw Error()}catch(O){D=O}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(O){if(O&&D&&typeof O.stack=="string")return[O.stack,D.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),g=f[0],v=f[1];if(g&&v){var A=g.split(`
44`),C=v.split(`
45`);for(u=o=0;o<A.length&&!A[o].includes("DetermineComponentFrameRoot");)o++;for(;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;if(o===A.length||u===C.length)for(o=A.length-1,u=C.length-1;1<=o&&0<=u&&A[o]!==C[u];)u--;for(;1<=o&&0<=u;o--,u--)if(A[o]!==C[u]){if(o!==1||u!==1)do if(o--,u--,0>u||A[o]!==C[u]){var j=`
46`+A[o].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=o&&0<=u);break}}}finally{Ql=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?ti(i):""}function py(e){switch(e.tag){case 26:case 27:case 5:return ti(e.type);case 16:return ti("Lazy");case 13:return ti("Suspense");case 19:return ti("SuspenseList");case 0:case 15:return Kl(e.type,!1);case 11:return Kl(e.type.render,!1);case 1:return Kl(e.type,!0);case 31:return ti("Activity");default:return""}}function wf(e){try{var n="";do n+=py(e),e=e.return;while(e);return n}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}function sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _f(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function dy(e){var n=_f(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,f=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(g){o=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ho(e){e._valueTracker||(e._valueTracker=dy(e))}function xf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=_f(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function go(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var my=/[\n"\\]/g;function un(e){return e.replace(my,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Zl(e,n,i,o,u,f,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+sn(n)):e.value!==""+sn(n)&&(e.value=""+sn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Jl(e,g,sn(n)):i!=null?Jl(e,g,sn(i)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+sn(v):e.removeAttribute("name")}function Sf(e,n,i,o,u,f,g,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;i=i!=null?""+sn(i):"",n=n!=null?""+sn(n):i,v||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=v?e.checked:!!o,e.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Jl(e,n,i){n==="number"&&go(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function ni(e,n,i,o){if(e=e.options,n){n={};for(var u=0;u<i.length;u++)n["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=n.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&o&&(e[i].defaultSelected=!0)}else{for(i=""+sn(i),n=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Af(e,n,i){if(n!=null&&(n=""+sn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+sn(i):""}function kf(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(l(92));if(ee(o)){if(1<o.length)throw Error(l(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=sn(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o)}function ai(e,n){if(n){var i=e.firstChild;
vendor: 4,140 bytes, line 48
48if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var hy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tf(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||hy.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Ef(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in n)o=n[u],n.hasOwnProperty(u)&&i[u]!==o&&Tf(e,u,o)}else for(var f in n)n.hasOwnProperty(f)&&Tf(e,f,n[f])}function Gl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yo(e){return yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Wl=null;function es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,ri=null;function Cf(e){var n=Ga(e);if(n&&(e=n.stateNode)){var i=e[jt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Zl(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+un(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var u=o[jt]||null;if(!u)throw Error(l(90));Zl(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&xf(o)}break e;case"textarea":Af(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&ni(e,!!i.multiple,n,!1)}}}var ts=!1;function Rf(e,n,i){if(ts)return e(n,i);ts=!0;try{var o=e(n);return o}finally{if(ts=!1,(ii!==null||ri!==null)&&(nl(),ii&&(n=ii,e=ri,ri=ii=null,Cf(n),e)))for(n=0;n<e.length;n++)Cf(e[n])}}function Wi(e,n){var i=e.stateNode;if(i===null)return null;var o=i[jt]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ns=!1;if(Bn)try{var er={};Object.defineProperty(er,"passive",{get:function(){ns=!0}}),window.addEventListener("test",er,er),window.removeEventListener("test",er,er)}catch{ns=!1}var ta=null,as=null,bo=null;function Df(){if(bo)return bo;var e,n=as,i=n.length,o,u="value"in ta?ta.value:ta.textContent,f=u.length;for(e=0;e<i&&n[e]===u[e];e++);var g=i-e;for(o=1;o<=g&&n[i-o]===u[f-o];o++);return bo=u.slice(e,1<o?1-o:void 0)}function vo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function wo(){return!0}function Of(){return!1}function Lt(e){function n(i,o,u,f,g){this._reactName=i,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(i=e[v],this[v]=i?i(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?wo:Of,this.isPropagationStopped=Of,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=wo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),n}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=Lt(Ca),tr=y({},Ca,{view:0,detail:0}),by=Lt(tr),is,rs,nr,xo=y({},tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ls,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nr&&(nr&&e.type==="mousemove"?(is=e.screenX-nr.screenX,rs=e.screenY-nr.screenY):rs=is=0,nr=e),is)},movementY:function(e){return"movementY"in e?e.movementY:rs}}),Mf=Lt(xo),vy=y({},xo,{dataTransfer:0}),wy=Lt(vy),_y=y({},tr,{relatedTarget:0}),os=Lt(_y),xy=y({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),Sy=Lt(xy),Ay=y({},Ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}
vendor: 4,495 bytes, line 48
48),ky=Lt(Ay),Ty=y({},Ca,{data:0}),Uf=Lt(Ty),Ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dy(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ry[e])?!!n[e]:!1}function ls(){return Dy}var Oy=y({},tr,{key:function(e){if(e.key){var n=Ey[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ls,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),My=Lt(Oy),Uy=y({},xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nf=Lt(Uy),Ny=y({},tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ls}),Iy=Lt(Ny),jy=y({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Lt(jy),zy=y({},xo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qy=Lt(zy),By=y({},Ca,{newState:0,oldState:0}),Hy=Lt(By),Py=[9,13,27,32],ss=Bn&&"CompositionEvent"in window,ar=null;Bn&&"documentMode"in document&&(ar=document.documentMode);var Vy=Bn&&"TextEvent"in window&&!ar,If=Bn&&(!ss||ar&&8<ar&&11>=ar),jf=" ",Lf=!1;function zf(e,n){switch(e){case"keyup":return Py.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function $y(e,n){switch(e){case"compositionend":return qf(n);case"keypress":return n.which!==32?null:(Lf=!0,jf);case"textInput":return e=n.data,e===jf&&Lf?null:e;default:return null}}function Fy(e,n){if(oi)return e==="compositionend"||!ss&&zf(e,n)?(e=Df(),bo=as=ta=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return If&&n.locale!=="ko"?null:n.data;default:return null}}var Xy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Xy[e.type]:n==="textarea"}function Hf(e,n,i,o){ii?ri?ri.push(o):ri=[o]:ii=o,n=sl(n,"onChange"),0<n.length&&(i=new _o("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var ir=null,rr=null;function Yy(e){_m(e,0)}function So(e){var n=Gi(e);if(xf(n))return e}function Pf(e,n){if(e==="change")return n}var Vf=!1;if(Bn){var us;if(Bn){var cs="oninput"in document;if(!cs){var $f=document.createElement("div");$f.setAttribute("oninput","return;"),cs=typeof $f.oninput=="function"}us=cs}else us=!1;Vf=us&&(!document.documentMode||9<document.documentMode)}function Ff(){ir&&(ir.detachEvent("onpropertychange",Xf),rr=ir=null)}function Xf(e){if(e.propertyName==="value"&&So(rr)){var n=[];Hf(n,rr,e,es(e)),Rf(Yy,n)}}function Qy(e,n,i){e==="focusin"?(Ff(),ir=n,rr=i,ir.attachEvent("onpropertychange",Xf)):e==="focusout"&&Ff()}function Ky(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return So(rr)}function Zy(e,n){if(e==="click")return So(n)}function Jy(e,n){if(e==="input"||e==="change")return So(n)}function Gy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Kt=typeof Object.is=="function"?Object.is:Gy;function or(e,n){if(Kt(e,n))return!0;
vendor: 76,069 bytes, line 48
48if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var u=i[o];if(!Fi.call(n,u)||!Kt(e[u],n[u]))return!1}return!0}function Yf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,n){var i=Yf(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Yf(i)}}function Kf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Kf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=go(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=go(e.document)}return n}function fs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Wy=Bn&&"documentMode"in document&&11>=document.documentMode,li=null,ps=null,lr=null,ds=!1;function Jf(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ds||li==null||li!==go(o)||(o=li,"selectionStart"in o&&fs(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),lr&&or(lr,o)||(lr=o,o=sl(ps,"onSelect"),0<o.length&&(n=new _o("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=li)))}function Ra(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var si={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionrun:Ra("Transition","TransitionRun"),transitionstart:Ra("Transition","TransitionStart"),transitioncancel:Ra("Transition","TransitionCancel"),transitionend:Ra("Transition","TransitionEnd")},ms={},Gf={};Bn&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Da(e){if(ms[e])return ms[e];if(!si[e])return e;var n=si[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Gf)return ms[e]=n[i];return e}var Wf=Da("animationend"),ep=Da("animationiteration"),tp=Da("animationstart"),eb=Da("transitionrun"),tb=Da("transitionstart"),nb=Da("transitioncancel"),np=Da("transitionend"),ap=new Map,hs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hs.push("scrollEnd");function vn(e,n){ap.set(e,n),Ea(n,[e])}var ip=new WeakMap;function cn(e,n){if(typeof e=="object"&&e!==null){var i=ip.get(e);return i!==void 0?i:(n={value:e,source:n,stack:wf(n)},ip.set(e,n),n)}return{value:e,source:n,stack:wf(n)}}var fn=[],ui=0,gs=0;function Ao(){for(var e=ui,n=gs=ui=0;n<e;){var i=fn[n];fn[n++]=null;var o=fn[n];fn[n++]=null;var u=fn[n];fn[n++]=null;var f=fn[n];if(fn[n++]=null,o!==null&&u!==null){var g=o.pending;g===null?u.next=u:(u.next=g.next,g.next=u),o.pending=u}f!==0&&rp(i,u,f)}}function ko(e,n,i,o){fn[ui++]=e,fn[ui++]=n,fn[ui++]=i,fn[ui++]=o,gs|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function ys(e,n,i,o){return ko(e,n,i,o),To(e)}function ci(e,n){return ko(e,null,null,n),To(e)}function rp(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var u=!1,f=e.return;f!==null;)f.childLanes|=i,o=f.alternate,o!==null&&(o.childLanes|=i),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&n!==null&&(u=31-de(i),e=f.hiddenUpdates,o=e[u],o===null?e[u]=[n]:o.push(n),n.lane=i|536870912),f):null}function To(e){if(50<Mr)throw Mr=0,Su=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var fi={};function ab(e,n,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,n,i,o){return new ab(e,n,i,o)}function bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hn(e,n){var i=e.alternate;return i===null?(i=Zt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function op(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Eo(e,n,i,o,u,f){var g=0;if(o=e,typeof e=="function")bs(e)&&(g=1);else if(typeof e=="string")g=rv(e,i,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Zt(31,i,n,u),e.elementType=ye,e.lanes=f,e;case B:return Oa(i.children,u,f,n);case V:g=8,u|=24;break;case K:return e=Zt(12,i,n,u|2),e.elementType=K,e.lanes=f,e;case W:return e=Zt(13,i,n,u),e.elementType=W,e.lanes=f,e;case L:return e=Zt(19,i,n,u),e.elementType=L,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case Q:g=10;break e;case G:g=9;break e;case we:g=11;break e;case ue:g=14;break e;case _e:g=16,o=null;break e}g=29,i=Error(l(130,e===null?"null":typeof e,"")),o=null}return n=Zt(g,i,n,u),n.elementType=e,n.type=o,n.lanes=f,n}function Oa(e,n,i,o){return e=Zt(7,e,o,n),e.lanes=i,e}function vs(e,n,i){return e=Zt(6,e,null,n),e.lanes=i,e}function ws(e,n,i){return n=Zt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var pi=[],di=0,Co=null,Ro=0,pn=[],dn=0,Ma=null,Pn=1,Vn="";function Ua(e,n){pi[di++]=Ro,pi[di++]=Co,Co=e,Ro=n}function lp(e,n,i){pn[dn++]=Pn,pn[dn++]=Vn,pn[dn++]=Ma,Ma=e;var o=Pn;e=Vn;var u=32-de(o)-1;o&=~(1<<u),i+=1;var f=32-de(n)+u;if(30<f){var g=u-u%5;f=(o&(1<<g)-1).toString(32),o>>=g,u-=g,Pn=1<<32-de(n)+u|i<<u|o,Vn=f+e}else Pn=1<<f|i<<u|o,Vn=e}function _s(e){e.return!==null&&(Ua(e,1),lp(e,1,0))}function xs(e){for(;e===Co;)Co=pi[--di],pi[di]=null,Ro=pi[--di],pi[di]=null;for(;e===Ma;)Ma=pn[--dn],pn[dn]=null,Vn=pn[--dn],pn[dn]=null,Pn=pn[--dn],pn[dn]=null}var Mt=null,nt=null,qe=!1,Na=null,En=!1,Ss=Error(l(519));function Ia(e){var n=Error(l(418,""));throw cr(cn(n,e)),Ss}function sp(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[Et]=e,n[jt]=o,i){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(i=0;i<Nr.length;i++)De(Nr[i],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),Sf(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),ho(n);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),kf(n,o.value,o.defaultValue,o.children),ho(n)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||km(n.textContent,i)?(o.popover!=null&&(De("beforetoggle",n),De("toggle",n)),o.onScroll!=null&&De("scroll",n),o.onScrollEnd!=null&&De("scrollend",n),o.onClick!=null&&(n.onclick=ul),n=!0):n=!1,n||Ia(e)}function up(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Mt=Mt.return}}function sr(e){if(e!==Mt)return!1;if(!qe)return up(e),qe=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||qu(e.type,e.memoizedProps)),i=!i),i&&nt&&Ia(e),up(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){nt=_n(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}nt=null}}else n===27?(n=nt,ya(e.type)?(e=Vu,Vu=null,nt=e):nt=n):nt=Mt?_n(e.stateNode.nextSibling):null;return!0}function ur(){nt=Mt=null,qe=!1}function cp(){var e=Na;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),Na=null),e}function cr(e){Na===null?Na=[e]:Na.push(e)}var As=U(null),ja=null,$n=null;function na(e,n,i){x(As,n._currentValue),n._currentValue=i}function Fn(e){e._currentValue=As.current,Y(As)}function ks(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function Ts(e,n,i,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var g=u.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=u;for(var A=0;A<n.length;A++)if(v.context===n[A]){f.lanes|=i,v=f.alternate,v!==null&&(v.lanes|=i),ks(f.return,i,e),o||(g=null);break e}f=v.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(l(341));g.lanes|=i,f=g.alternate,f!==null&&(f.lanes|=i),ks(g,i,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function fr(e,n,i,o){e=null;for(var u=n,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(l(387));if(g=g.memoizedProps,g!==null){var v=u.type;Kt(u.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(u===pt.current){if(g=u.alternate,g===null)throw Error(l(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Br):e=[Br])}u=u.return}e!==null&&Ts(n,e,i,o),n.flags|=262144}function Do(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function La(e){ja=e,$n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return fp(ja,e)}function Oo(e,n){return ja===null&&La(e),fp(e,n)}function fp(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},$n===null){if(e===null)throw Error(l(308));$n=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else $n=$n.next=n;return i}var ib=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},rb=t.unstable_scheduleCallback,ob=t.unstable_NormalPriority,dt={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Es(){return{controller:new ib,data:new Map,refCount:0}}function pr(e){e.refCount--,e.refCount===0&&rb(ob,function(){e.controller.abort()})}var dr=null,Cs=0,mi=0,hi=null;function lb(e,n){if(dr===null){var i=dr=[];Cs=0,mi=Du(),hi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Cs++,n.then(pp,pp),n}function pp(){if(--Cs===0&&dr!==null){hi!==null&&(hi.status="fulfilled");var e=dr;dr=null,mi=0,hi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function sb(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var u=0;u<i.length;u++)(0,i[u])(n)},function(u){for(o.status="rejected",o.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),o}var dp=M.S;M.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&lb(e,n),dp!==null&&dp(e,n)};var za=U(null);function Rs(){var e=za.current;return e!==null?e:Je.pooledCache}function Mo(e,n){n===null?x(za,za.current):x(za,n.pool)}function mp(){var e=Rs();return e===null?null:{parent:dt._currentValue,pool:e}}var mr=Error(l(460)),hp=Error(l(474)),Uo=Error(l(542)),Ds={then:function(){}};function gp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function No(){}function yp(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(No,No),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,vp(e),e;default:if(typeof n.status=="string")n.then(No,No);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=o}},function(o){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,vp(e),e}throw hr=n,mr}}var hr=null;function bp(){if(hr===null)throw Error(l(459));var e=hr;return hr=null,e}function vp(e){if(e===mr||e===Uo)throw Error(l(483))}var aa=!1;function Os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ms(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ra(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var u=o.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),o.pending=n,n=To(e),rp(e,null,i),n}return ko(e,o,n,i),To(e)}function gr(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,pf(e,i)}}function Us(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var u=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?u=f=g:f=f.next=g,i=i.next}while(i!==null);f===null?u=f=n:f=f.next=n}else u=f=n;i={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Ns=!1;function yr(){if(Ns){var e=hi;if(e!==null)throw e}}function br(e,n,i,o){Ns=!1;var u=e.updateQueue;aa=!1;var f=u.firstBaseUpdate,g=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var A=v,C=A.next;A.next=null,g===null?f=C:g.next=C,g=A;var j=e.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==g&&(v===null?j.firstBaseUpdate=C:v.next=C,j.lastBaseUpdate=A))}if(f!==null){var P=u.baseState;g=0,j=C=A=null,v=f;do{var D=v.lane&-536870913,O=D!==v.lane;if(O?(Me&D)===D:(o&D)===D){D!==0&&D===mi&&(Ns=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var me=e,fe=v;D=n;var Ke=i;switch(fe.tag){case 1:if(me=fe.payload,typeof me=="function"){P=me.call(Ke,P,D);break e}P=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=fe.payload,D=typeof me=="function"?me.call(Ke,P,D):me,D==null)break e;P=y({},P,D);break e;case 2:aa=!0}}D=v.callback,D!==null&&(e.flags|=64,O&&(e.flags|=8192),O=u.callbacks,O===null?u.callbacks=[D]:O.push(D))}else O={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(C=j=O,A=P):j=j.next=O,g|=D;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;O=v,v=O.next,O.next=null,u.lastBaseUpdate=O,u.shared.pending=null}}while(!0);j===null&&(A=P),u.baseState=A,u.firstBaseUpdate=C,u.lastBaseUpdate=j,f===null&&(u.shared.lanes=0),da|=g,e.lanes=g,e.memoizedState=P}}function wp(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function _p(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)wp(i[e],n)}var gi=U(null),Io=U(0);function xp(e,n){e=Gn,x(Io,e),x(gi,n),Gn=e|n.baseLanes}function Is(){x(Io,Gn),x(gi,gi.current)}function js(){Gn=Io.current,Y(gi),Y(Io)}var oa=0,Ee=null,Ye=null,st=null,jo=!1,yi=!1,qa=!1,Lo=0,vr=0,bi=null,ub=0;function rt(){throw Error(l(321))}function Ls(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Kt(e[i],n[i]))return!1;return!0}function zs(e,n,i,o,u,f){return oa=f,Ee=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,M.H=e===null||e.memoizedState===null?rd:od,qa=!1,f=i(o,u),qa=!1,yi&&(f=Ap(n,i,o,u)),Sp(e),f}function Sp(e){M.H=Vo;var n=Ye!==null&&Ye.next!==null;if(oa=0,st=Ye=Ee=null,jo=!1,vr=0,bi=null,n)throw Error(l(300));e===null||bt||(e=e.dependencies,e!==null&&Do(e)&&(bt=!0))}function Ap(e,n,i,o){Ee=e;var u=0;do{if(yi&&(bi=null),vr=0,yi=!1,25<=u)throw Error(l(301));if(u+=1,st=Ye=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}M.H=gb,f=n(i,o)}while(yi);return f}function cb(){var e=M.H,n=e.useState()[0];return n=typeof n.then=="function"?wr(n):n,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ee.flags|=1024),n}function qs(){var e=Lo!==0;return Lo=0,e}function Bs(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Hs(e){if(jo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}jo=!1}oa=0,st=Ye=Ee=null,yi=!1,vr=Lo=0,bi=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ee.memoizedState=st=e:st=st.next=e,st}function ut(){if(Ye===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var n=st===null?Ee.memoizedState:st.next;if(n!==null)st=n,Ye=e;else{if(e===null)throw Ee.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},st===null?Ee.memoizedState=st=e:st=st.next=e}return st}function Ps(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wr(e){var n=vr;return vr+=1,bi===null&&(bi=[]),e=yp(bi,e,n),n=Ee,(st===null?n.memoizedState:st.next)===null&&(n=n.alternate,M.H=n===null||n.memoizedState===null?rd:od),e}function zo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wr(e);if(e.$$typeof===Q)return Ct(e)}throw Error(l(438,String(e)))}function Vs(e){var n=null,i=Ee.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Ee.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Ps(),Ee.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=Ae;return n.index++,i}function Xn(e,n){return typeof n=="function"?n(e):n}function qo(e){var n=ut();return $s(n,Ye,e)}function $s(e,n,i){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=i;var u=e.baseQueue,f=o.pending;if(f!==null){if(u!==null){var g=u.next;u.next=f.next,f.next=g}n.baseQueue=u=f,o.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{n=u.next;var v=g=null,A=null,C=n,j=!1;do{var P=C.lane&-536870913;if(P!==C.lane?(Me&P)===P:(oa&P)===P){var D=C.revertLane;if(D===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),P===mi&&(j=!0);else if((oa&D)===D){C=C.next,D===mi&&(j=!0);continue}else P={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},A===null?(v=A=P,g=f):A=A.next=P,Ee.lanes|=D,da|=D;P=C.action,qa&&i(f,P),f=C.hasEagerState?C.eagerState:i(f,P)}else D={lane:P,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},A===null?(v=A=D,g=f):A=A.next=D,Ee.lanes|=P,da|=P;C=C.next}while(C!==null&&C!==n);if(A===null?g=f:A.next=v,!Kt(f,e.memoizedState)&&(bt=!0,j&&(i=hi,i!==null)))throw i;e.memoizedState=f,e.baseState=g,e.baseQueue=A,o.lastRenderedState=f}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Fs(e){var n=ut(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var o=i.dispatch,u=i.pending,f=n.memoizedState;if(u!==null){i.pending=null;var g=u=u.next;do f=e(f,g.action),g=g.next;while(g!==u);Kt(f,n.memoizedState)||(bt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),i.lastRenderedState=f}return[f,o]}function kp(e,n,i){var o=Ee,u=ut(),f=qe;if(f){if(i===void 0)throw Error(l(407));i=i()}else i=n();var g=!Kt((Ye||u).memoizedState,i);g&&(u.memoizedState=i,bt=!0),u=u.queue;var v=Cp.bind(null,o,u,e);if(_r(2048,8,v,[e]),u.getSnapshot!==n||g||st!==null&&st.memoizedState.tag&1){if(o.flags|=2048,vi(9,Bo(),Ep.bind(null,o,u,i,n),null),Je===null)throw Error(l(349));f||(oa&124)!==0||Tp(o,n,i)}return i}function Tp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ee.updateQueue,n===null?(n=Ps(),Ee.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Ep(e,n,i,o){n.value=i,n.getSnapshot=o,Rp(n)&&Dp(e)}function Cp(e,n,i){return i(function(){Rp(n)&&Dp(e)})}function Rp(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Kt(e,i)}catch{return!0}}function Dp(e){var n=ci(e,2);n!==null&&tn(n,e,2)}function Xs(e){var n=zt();if(typeof e=="function"){var i=e;if(e=i(),qa){ce(!0);try{i()}finally{ce(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},n}function Op(e,n,i,o){return e.baseState=i,$s(e,Ye,typeof o=="function"?o:Xn)}function fb(e,n,i,o,u){if(Po(e))throw Error(l(485));if(e=n.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};M.T!==null?i(!0):f.isTransition=!1,o(f),i=n.pending,i===null?(f.next=n.pending=f,Mp(n,f)):(f.next=i.next,n.pending=i.next=f)}}function Mp(e,n){var i=n.action,o=n.payload,u=e.state;if(n.isTransition){var f=M.T,g={};M.T=g;try{var v=i(u,o),A=M.S;A!==null&&A(g,v),Up(e,n,v)}catch(C){Ys(e,n,C)}finally{M.T=f}}else try{f=i(u,o),Up(e,n,f)}catch(C){Ys(e,n,C)}}function Up(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Np(e,n,o)},function(o){return Ys(e,n,o)}):Np(e,n,i)}function Np(e,n,i){n.status="fulfilled",n.value=i,Ip(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Mp(e,i)))}function Ys(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Ip(n),n=n.next;while(n!==o)}e.action=null}function Ip(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function jp(e,n){return n}function Lp(e,n){if(qe){var i=Je.formState;if(i!==null){e:{var o=Ee;if(qe){if(nt){t:{for(var u=nt,f=En;u.nodeType!==8;){if(!f){u=null;break t}if(u=_n(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){nt=_n(u.nextSibling),o=u.data==="F!";break e}}Ia(o)}o=!1}o&&(n=i[0])}}return i=zt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:n},i.queue=o,i=nd.bind(null,Ee,o),o.dispatch=i,o=Xs(!1),f=Gs.bind(null,Ee,!1,o.queue),o=zt(),u={state:n,dispatch:null,action:e,pending:null},o.queue=u,i=fb.bind(null,Ee,u,f,i),u.dispatch=i,o.memoizedState=e,[n,i,!1]}function zp(e){var n=ut();return qp(n,Ye,e)}function qp(e,n,i){if(n=$s(e,n,jp)[0],e=qo(Xn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=wr(n)}catch(g){throw g===mr?Uo:g}else o=n;n=ut();var u=n.queue,f=u.dispatch;return i!==n.memoizedState&&(Ee.flags|=2048,vi(9,Bo(),pb.bind(null,u,i),null)),[o,f,e]}function pb(e,n){e.action=n}function Bp(e){var n=ut(),i=Ye;if(i!==null)return qp(n,i,e);ut(),n=n.memoizedState,i=ut();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function vi(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=Ee.updateQueue,n===null&&(n=Ps(),Ee.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function Bo(){return{destroy:void 0,resource:void 0}}function Hp(){return ut().memoizedState}function Ho(e,n,i,o){var u=zt();o=o===void 0?null:o,Ee.flags|=e,u.memoizedState=vi(1|n,Bo(),i,o)}function _r(e,n,i,o){var u=ut();o=o===void 0?null:o;var f=u.memoizedState.inst;Ye!==null&&o!==null&&Ls(o,Ye.memoizedState.deps)?u.memoizedState=vi(n,f,i,o):(Ee.flags|=e,u.memoizedState=vi(1|n,f,i,o))}function Pp(e,n){Ho(8390656,8,e,n)}function Vp(e,n){_r(2048,8,e,n)}function $p(e,n){return _r(4,2,e,n)}function Fp(e,n){return _r(4,4,e,n)}function Xp(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Yp(e,n,i){i=i!=null?i.concat([e]):null,_r(4,4,Xp.bind(null,n,e),i)}function Qs(){}function Qp(e,n){var i=ut();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&Ls(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function Kp(e,n){var i=ut();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&Ls(n,o[1]))return o[0];if(o=e(),qa){ce(!0);try{e()}finally{ce(!1)}}return i.memoizedState=[o,n],o}function Ks(e,n,i){return i===void 0||(oa&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=Gd(),Ee.lanes|=e,da|=e,i)}function Zp(e,n,i,o){return Kt(i,n)?i:gi.current!==null?(e=Ks(e,i,o),Kt(e,n)||(bt=!0),e):(oa&42)===0?(bt=!0,e.memoizedState=i):(e=Gd(),Ee.lanes|=e,da|=e,n)}function Jp(e,n,i,o,u){var f=$.p;$.p=f!==0&&8>f?f:8;var g=M.T,v={};M.T=v,Gs(e,!1,n,i);try{var A=u(),C=M.S;if(C!==null&&C(v,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var j=sb(A,o);xr(e,n,j,en(e))}else xr(e,n,o,en(e))}catch(P){xr(e,n,{then:function(){},status:"rejected",reason:P},en())}finally{$.p=f,M.T=g}}function db(){}function Zs(e,n,i,o){if(e.tag!==5)throw Error(l(476));var u=Gp(e).queue;Jp(e,u,n,R,i===null?db:function(){return Wp(e),i(o)})}function Gp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:R},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Wp(e){var n=Gp(e).next.queue;xr(e,n,{},en())}function Js(){return Ct(Br)}function ed(){return ut().memoizedState}function td(){return ut().memoizedState}function mb(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=en();e=ia(i);var o=ra(n,e,i);o!==null&&(tn(o,n,i),gr(o,n,i)),n={cache:Es()},e.payload=n;return}n=n.return}}function hb(e,n,i){var o=en();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Po(e)?ad(n,i):(i=ys(e,n,i,o),i!==null&&(tn(i,e,o),id(i,n,o)))}function nd(e,n,i){var o=en();xr(e,n,i,o)}function xr(e,n,i,o){var u={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Po(e))ad(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,v=f(g,i);if(u.hasEagerState=!0,u.eagerState=v,Kt(v,g))return ko(e,n,u,0),Je===null&&Ao(),!1}catch{}finally{}if(i=ys(e,n,u,o),i!==null)return tn(i,e,o),id(i,n,o),!0}return!1}function Gs(e,n,i,o){if(o={lane:2,revertLane:Du(),action:o,hasEagerState:!1,eagerState:null,next:null},Po(e)){if(n)throw Error(l(479))}else n=ys(e,i,o,2),n!==null&&tn(n,e,2)}function Po(e){var n=e.alternate;return e===Ee||n!==null&&n===Ee}function ad(e,n){yi=jo=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function id(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,pf(e,i)}}var Vo={readContext:Ct,use:zo,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},rd={readContext:Ct,use:zo,useCallback:function(e,n){return zt().memoizedState=[e,n===void 0?null:n],e},useContext:Ct,useEffect:Pp,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Ho(4194308,4,Xp.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Ho(4194308,4,e,n)},useInsertionEffect:function(e,n){Ho(4,2,e,n)},useMemo:function(e,n){var i=zt();n=n===void 0?null:n;var o=e();if(qa){ce(!0);try{e()}finally{ce(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=zt();if(i!==void 0){var u=i(n);if(qa){ce(!0);try{i(n)}finally{ce(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=hb.bind(null,Ee,e),[o.memoizedState,e]},useRef:function(e){var n=zt();return e={current:e},n.memoizedState=e},useState:function(e){e=Xs(e);var n=e.queue,i=nd.bind(null,Ee,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Qs,useDeferredValue:function(e,n){var i=zt();return Ks(i,e,n)},useTransition:function(){var e=Xs(!1);return e=Jp.bind(null,Ee,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=Ee,u=zt();if(qe){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),Je===null)throw Error(l(349));(Me&124)!==0||Tp(o,n,i)}u.memoizedState=i;var f={value:i,getSnapshot:n};return u.queue=f,Pp(Cp.bind(null,o,f,e),[e]),o.flags|=2048,vi(9,Bo(),Ep.bind(null,o,f,i,n),null),i},useId:function(){var e=zt(),n=Je.identifierPrefix;if(qe){var i=Vn,o=Pn;i=(o&~(1<<32-de(o)-1)).toString(32)+i,n="«"+n+"R"+i,i=Lo++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=ub++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Js,useFormState:Lp,useActionState:Lp,useOptimistic:function(e){var n=zt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Gs.bind(null,Ee,!0,i),i.dispatch=n,[e,n]},useMemoCache:Vs,useCacheRefresh:function(){return zt().memoizedState=mb.bind(null,Ee)}},od={readContext:Ct,use:zo,useCallback:Qp,useContext:Ct,useEffect:Vp,useImperativeHandle:Yp,useInsertionEffect:$p,useLayoutEffect:Fp,useMemo:Kp,useReducer:qo,useRef:Hp,useState:function(){return qo(Xn)},useDebugValue:Qs,useDeferredValue:function(e,n){var i=ut();return Zp(i,Ye.memoizedState,e,n)},useTransition:function(){var e=qo(Xn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:wr(e),n]},useSyncExternalStore:kp,useId:ed,useHostTransitionStatus:Js,useFormState:zp,useActionState:zp,useOptimistic:function(e,n){var i=ut();return Op(i,Ye,e,n)},useMemoCache:Vs,useCacheRefresh:td},gb={readContext:Ct,use:zo,useCallback:Qp,useContext:Ct,useEffect:Vp,useImperativeHandle:Yp,useInsertionEffect:$p,useLayoutEffect:Fp,useMemo:Kp,useReducer:Fs,useRef:Hp,useState:function(){return Fs(Xn)},useDebugValue:Qs,useDeferredValue:function(e,n){var i=ut();return Ye===null?Ks(i,e,n):Zp(i,Ye.memoizedState,e,n)},useTransition:function(){var e=Fs(Xn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:wr(e),n]},useSyncExternalStore:kp,useId:ed,useHostTransitionStatus:Js,useFormState:Bp,useActionState:Bp,useOptimistic:function(e,n){var i=ut();return Ye!==null?Op(i,Ye,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Vs,useCacheRefresh:td},wi=null,Sr=0;function $o(e){var n=Sr;return Sr+=1,wi===null&&(wi=[]),yp(wi,e,n)}function Ar(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Fo(e,n){throw n.$$typeof===w?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function ld(e){var n=e._init;return n(e._payload)}function sd(e){function n(T,k){if(e){var E=T.deletions;E===null?(T.deletions=[k],T.flags|=16):E.push(k)}}function i(T,k){if(!e)return null;for(;k!==null;)n(T,k),k=k.sibling;return null}function o(T){for(var k=new Map;T!==null;)T.key!==null?k.set(T.key,T):k.set(T.index,T),T=T.sibling;return k}function u(T,k){return T=Hn(T,k),T.index=0,T.sibling=null,T}function f(T,k,E){return T.index=E,e?(E=T.alternate,E!==null?(E=E.index,E<k?(T.flags|=67108866,k):E):(T.flags|=67108866,k)):(T.flags|=1048576,k)}function g(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function v(T,k,E,q){return k===null||k.tag!==6?(k=vs(E,T.mode,q),k.return=T,k):(k=u(k,E),k.return=T,k)}function A(T,k,E,q){var ne=E.type;return ne===B?j(T,k,E.props.children,q,E.key):k!==null&&(k.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&ld(ne)===k.type)?(k=u(k,E.props),Ar(k,E),k.return=T,k):(k=Eo(E.type,E.key,E.props,null,T.mode,q),Ar(k,E),k.return=T,k)}function C(T,k,E,q){return k===null||k.tag!==4||k.stateNode.containerInfo!==E.containerInfo||k.stateNode.implementation!==E.implementation?(k=ws(E,T.mode,q),k.return=T,k):(k=u(k,E.children||[]),k.return=T,k)}function j(T,k,E,q,ne){return k===null||k.tag!==7?(k=Oa(E,T.mode,q,ne),k.return=T,k):(k=u(k,E),k.return=T,k)}function P(T,k,E){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=vs(""+k,T.mode,E),k.return=T,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return E=Eo(k.type,k.key,k.props,null,T.mode,E),Ar(E,k),E.return=T,E;case _:return k=ws(k,T.mode,E),k.return=T,k;case _e:var q=k._init;return k=q(k._payload),P(T,k,E)}if(ee(k)||Z(k))return k=Oa(k,T.mode,E,null),k.return=T,k;if(typeof k.then=="function")return P(T,$o(k),E);if(k.$$typeof===Q)return P(T,Oo(T,k),E);Fo(T,k)}return null}function D(T,k,E,q){var ne=k!==null?k.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ne!==null?null:v(T,k,""+E,q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case S:return E.key===ne?A(T,k,E,q):null;case _:return E.key===ne?C(T,k,E,q):null;case _e:return ne=E._init,E=ne(E._payload),D(T,k,E,q)}if(ee(E)||Z(E))return ne!==null?null:j(T,k,E,q,null);if(typeof E.then=="function")return D(T,k,$o(E),q);if(E.$$typeof===Q)return D(T,k,Oo(T,E),q);Fo(T,E)}return null}function O(T,k,E,q,ne){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return T=T.get(E)||null,v(k,T,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return T=T.get(q.key===null?E:q.key)||null,A(k,T,q,ne);case _:return T=T.get(q.key===null?E:q.key)||null,C(k,T,q,ne);case _e:var Ce=q._init;return q=Ce(q._payload),O(T,k,E,q,ne)}if(ee(q)||Z(q))return T=T.get(E)||null,j(k,T,q,ne,null);if(typeof q.then=="function")return O(T,k,E,$o(q),ne);if(q.$$typeof===Q)return O(T,k,E,Oo(k,q),ne);Fo(k,q)}return null}function me(T,k,E,q){for(var ne=null,Ce=null,se=k,pe=k=0,wt=null;se!==null&&pe<E.length;pe++){se.index>pe?(wt=se,se=null):wt=se.sibling;var Le=D(T,se,E[pe],q);if(Le===null){se===null&&(se=wt);break}e&&se&&Le.alternate===null&&n(T,se),k=f(Le,k,pe),Ce===null?ne=Le:Ce.sibling=Le,Ce=Le,se=wt}if(pe===E.length)return i(T,se),qe&&Ua(T,pe),ne;if(se===null){for(;pe<E.length;pe++)se=P(T,E[pe],q),se!==null&&(k=f(se,k,pe),Ce===null?ne=se:Ce.sibling=se,Ce=se);return qe&&Ua(T,pe),ne}for(se=o(se);pe<E.length;pe++)wt=O(se,T,pe,E[pe],q),wt!==null&&(e&&wt.alternate!==null&&se.delete(wt.key===null?pe:wt.key),k=f(wt,k,pe),Ce===null?ne=wt:Ce.sibling=wt,Ce=wt);return e&&se.forEach(function(xa){return n(T,xa)}),qe&&Ua(T,pe),ne}function fe(T,k,E,q){if(E==null)throw Error(l(151));for(var ne=null,Ce=null,se=k,pe=k=0,wt=null,Le=E.next();se!==null&&!Le.done;pe++,Le=E.next()){se.index>pe?(wt=se,se=null):wt=se.sibling;var xa=D(T,se,Le.value,q);if(xa===null){se===null&&(se=wt);break}e&&se&&xa.alternate===null&&n(T,se),k=f(xa,k,pe),Ce===null?ne=xa:Ce.sibling=xa,Ce=xa,se=wt}if(Le.done)return i(T,se),qe&&Ua(T,pe),ne;if(se===null){for(;!Le.done;pe++,Le=E.next())Le=P(T,Le.value,q),Le!==null&&(k=f(Le,k,pe),Ce===null?ne=Le:Ce.sibling=Le,Ce=Le);return qe&&Ua(T,pe),ne}for(se=o(se);!Le.done;pe++,Le=E.next())Le=O(se,T,pe,Le.value,q),Le!==null&&(e&&Le.alternate!==null&&se.delete(Le.key===null?pe:Le.key),k=f(Le,k,pe),Ce===null?ne=Le:Ce.sibling=Le,Ce=Le);return e&&se.forEach(function(yv){return n(T,yv)}),qe&&Ua(T,pe),ne}function Ke(T,k,E,q){if(typeof E=="object"&&E!==null&&E.type===B&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case S:e:{for(var ne=E.key;k!==null;){if(k.key===ne){if(ne=E.type,ne===B){if(k.tag===7){i(T,k.sibling),q=u(k,E.props.children),q.return=T,T=q;break e}}else if(k.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&ld(ne)===k.type){i(T,k.sibling),q=u(k,E.props),Ar(q,E),q.return=T,T=q;break e}i(T,k);break}else n(T,k);k=k.sibling}E.type===B?(q=Oa(E.props.children,T.mode,q,E.key),q.return=T,T=q):(q=Eo(E.type,E.key,E.props,null,T.mode,q),Ar(q,E),q.return=T,T=q)}return g(T);case _:e:{for(ne=E.key;k!==null;){if(k.key===ne)if(k.tag===4&&k.stateNode.containerInfo===E.containerInfo&&k.stateNode.implementation===E.implementation){i(T,k.sibling),q=u(k,E.children||[]),q.return=T,T=q;break e}else{i(T,k);break}else n(T,k);k=k.sibling}q=ws(E,T.mode,q),q.return=T,T=q}return g(T);case _e:return ne=E._init,E=ne(E._payload),Ke(T,k,E,q)}if(ee(E))return me(T,k,E,q);if(Z(E)){if(ne=Z(E),typeof ne!="function")throw Error(l(150));return E=ne.call(E),fe(T,k,E,q)}if(typeof E.then=="function")return Ke(T,k,$o(E),q);if(E.$$typeof===Q)return Ke(T,k,Oo(T,E),q);Fo(T,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,k!==null&&k.tag===6?(i(T,k.sibling),q=u(k,E),q.return=T,T=q):(i(T,k),q=vs(E,T.mode,q),q.return=T,T=q),g(T)):i(T,k)}return function(T,k,E,q){try{Sr=0;var ne=Ke(T,k,E,q);return wi=null,ne}catch(se){if(se===mr||se===Uo)throw se;var Ce=Zt(29,se,null,T.mode);return Ce.lanes=q,Ce.return=T,Ce}finally{}}}var _i=sd(!0),ud=sd(!1),mn=U(null),Cn=null;function la(e){var n=e.alternate;x(mt,mt.current&1),x(mn,e),Cn===null&&(n===null||gi.current!==null||n.memoizedState!==null)&&(Cn=e)}function cd(e){if(e.tag===22){if(x(mt,mt.current),x(mn,e),Cn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Cn=e)}}else sa()}function sa(){x(mt,mt.current),x(mn,mn.current)}function Yn(e){Y(mn),Cn===e&&(Cn=null),Y(mt)}var mt=U(0);function Xo(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Pu(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Ws(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:y({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var eu={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=en(),u=ia(o);u.payload=n,i!=null&&(u.callback=i),n=ra(e,u,o),n!==null&&(tn(n,e,o),gr(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=en(),u=ia(o);u.tag=1,u.payload=n,i!=null&&(u.callback=i),n=ra(e,u,o),n!==null&&(tn(n,e,o),gr(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=en(),o=ia(i);o.tag=2,n!=null&&(o.callback=n),n=ra(e,o,i),n!==null&&(tn(n,e,i),gr(n,e,i))}};function fd(e,n,i,o,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,g):n.prototype&&n.prototype.isPureReactComponent?!or(i,o)||!or(u,f):!0}function pd(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&eu.enqueueReplaceState(n,n.state,null)}function Ba(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=y({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}var Yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function dd(e){Yo(e)}function md(e){console.error(e)}function hd(e){Yo(e)}function Qo(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function gd(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function tu(e,n,i){return i=ia(i),i.tag=3,i.payload={element:null},i.callback=function(){Qo(e,n)},i}function yd(e){return e=ia(e),e.tag=3,e}function bd(e,n,i,o){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){gd(n,i,o)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gd(n,i,o),typeof u!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})})}function yb(e,n,i,o,u){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&fr(n,i,u,!0),i=mn.current,i!==null){switch(i.tag){case 13:return Cn===null?ku():i.alternate===null&&at===0&&(at=3),i.flags&=-257,i.flags|=65536,i.lanes=u,o===Ds?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Eu(e,o,u)),!1;case 22:return i.flags|=65536,o===Ds?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Eu(e,o,u)),!1}throw Error(l(435,i.tag))}return Eu(e,o,u),ku(),!1}if(qe)return n=mn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==Ss&&(e=Error(l(422),{cause:o}),cr(cn(e,i)))):(o!==Ss&&(n=Error(l(423),{cause:o}),cr(cn(n,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=cn(o,i),u=tu(e.stateNode,o,u),Us(e,u),at!==4&&(at=2)),!1;var f=Error(l(520),{cause:o});if(f=cn(f,i),Or===null?Or=[f]:Or.push(f),at!==4&&(at=2),n===null)return!0;o=cn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=tu(i.stateNode,o,e),Us(i,e),!1;case 1:if(n=i.type,f=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ma===null||!ma.has(f))))return i.flags|=65536,u&=-u,i.lanes|=u,u=yd(u),bd(u,e,i,o),Us(i,u),!1}i=i.return}while(i!==null);return!1}var vd=Error(l(461)),bt=!1;function _t(e,n,i,o){n.child=e===null?ud(n,null,i,o):_i(n,e.child,i,o)}function wd(e,n,i,o,u){i=i.render;var f=n.ref;if("ref"in o){var g={};for(var v in o)v!=="ref"&&(g[v]=o[v])}else g=o;return La(n),o=zs(e,n,i,g,f,u),v=qs(),e!==null&&!bt?(Bs(e,n,u),Qn(e,n,u)):(qe&&v&&_s(n),n.flags|=1,_t(e,n,o,u),n.child)}function _d(e,n,i,o,u){if(e===null){var f=i.type;return typeof f=="function"&&!bs(f)&&f.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=f,xd(e,n,f,o,u)):(e=Eo(i.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!uu(e,u)){var g=f.memoizedProps;if(i=i.compare,i=i!==null?i:or,i(g,o)&&e.ref===n.ref)return Qn(e,n,u)}return n.flags|=1,e=Hn(f,o),e.ref=n.ref,e.return=n,n.child=e}function xd(e,n,i,o,u){if(e!==null){var f=e.memoizedProps;if(or(f,o)&&e.ref===n.ref)if(bt=!1,n.pendingProps=o=f,uu(e,u))(e.flags&131072)!==0&&(bt=!0);else return n.lanes=e.lanes,Qn(e,n,u)}return nu(e,n,i,o,u)}function Sd(e,n,i){var o=n.pendingProps,u=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=f!==null?f.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;n.childLanes=f&~o}else n.childLanes=0,n.child=null;return Ad(e,n,o,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mo(n,f!==null?f.cachePool:null),f!==null?xp(n,f):Is(),cd(n);else return n.lanes=n.childLanes=536870912,Ad(e,n,f!==null?f.baseLanes|i:i,i)}else f!==null?(Mo(n,f.cachePool),xp(n,f),sa(),n.memoizedState=null):(e!==null&&Mo(n,null),Is(),sa());return _t(e,n,u,i),n.child}function Ad(e,n,i,o){var u=Rs();return u=u===null?null:{parent:dt._currentValue,pool:u},n.memoizedState={baseLanes:i,cachePool:u},e!==null&&Mo(n,null),Is(),cd(n),e!==null&&fr(e,n,o,!0),null}function Ko(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function nu(e,n,i,o,u){return La(n),i=zs(e,n,i,o,void 0,u),o=qs(),e!==null&&!bt?(Bs(e,n,u),Qn(e,n,u)):(qe&&o&&_s(n),n.flags|=1,_t(e,n,i,u),n.child)}function kd(e,n,i,o,u,f){return La(n),n.updateQueue=null,i=Ap(n,o,i,u),Sp(e),o=qs(),e!==null&&!bt?(Bs(e,n,f),Qn(e,n,f)):(qe&&o&&_s(n),n.flags|=1,_t(e,n,i,f),n.child)}function Td(e,n,i,o,u){if(La(n),n.stateNode===null){var f=fi,g=i.contextType;typeof g=="object"&&g!==null&&(f=Ct(g)),f=new i(o,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=eu,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=o,f.state=n.memoizedState,f.refs={},Os(n),g=i.contextType,f.context=typeof g=="object"&&g!==null?Ct(g):fi,f.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Ws(n,i,g,o),f.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&eu.enqueueReplaceState(f,f.state,null),br(n,o,f,u),yr(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){f=n.stateNode;var v=n.memoizedProps,A=Ba(i,v);f.props=A;var C=f.context,j=i.contextType;g=fi,typeof j=="object"&&j!==null&&(g=Ct(j));var P=i.getDerivedStateFromProps;j=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,j||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||C!==g)&&pd(n,f,o,g),aa=!1;var D=n.memoizedState;f.state=D,br(n,o,f,u),yr(),C=n.memoizedState,v||D!==C||aa?(typeof P=="function"&&(Ws(n,i,P,o),C=n.memoizedState),(A=aa||fd(n,i,A,o,D,C,g))?(j||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=C),f.props=o,f.state=C,f.context=g,o=A):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{f=n.stateNode,Ms(e,n),g=n.memoizedProps,j=Ba(i,g),f.props=j,P=n.pendingProps,D=f.context,C=i.contextType,A=fi,typeof C=="object"&&C!==null&&(A=Ct(C)),v=i.getDerivedStateFromProps,(C=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||D!==A)&&pd(n,f,o,A),aa=!1,D=n.memoizedState,f.state=D,br(n,o,f,u),yr();var O=n.memoizedState;g!==P||D!==O||aa||e!==null&&e.dependencies!==null&&Do(e.dependencies)?(typeof v=="function"&&(Ws(n,i,v,o),O=n.memoizedState),(j=aa||fd(n,i,j,o,D,O,A)||e!==null&&e.dependencies!==null&&Do(e.dependencies))?(C||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,O,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,O,A)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=O),f.props=o,f.state=O,f.context=A,o=j):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),o=!1)}return f=o,Ko(e,n),o=(n.flags&128)!==0,f||o?(f=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&o?(n.child=_i(n,e.child,null,u),n.child=_i(n,null,i,u)):_t(e,n,i,u),n.memoizedState=f.state,e=n.child):e=Qn(e,n,u),e}function Ed(e,n,i,o){return ur(),n.flags|=256,_t(e,n,i,o),n.child}var au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function iu(e){return{baseLanes:e,cachePool:mp()}}function ru(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=hn),e}function Cd(e,n,i){var o=n.pendingProps,u=!1,f=(n.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),g&&(u=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(qe){if(u?la(n):sa(),qe){var v=nt,A;if(A=v){e:{for(A=v,v=En;A.nodeType!==8;){if(!v){v=null;break e}if(A=_n(A.nextSibling),A===null){v=null;break e}}v=A}v!==null?(n.memoizedState={dehydrated:v,treeContext:Ma!==null?{id:Pn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},A=Zt(18,null,null,0),A.stateNode=v,A.return=n,n.child=A,Mt=n,nt=null,A=!0):A=!1}A||Ia(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Pu(v)?n.lanes=32:n.lanes=536870912,null;Yn(n)}return v=o.children,o=o.fallback,u?(sa(),u=n.mode,v=Zo({mode:"hidden",children:v},u),o=Oa(o,u,i,null),v.return=n,o.return=n,v.sibling=o,n.child=v,u=n.child,u.memoizedState=iu(i),u.childLanes=ru(e,g,i),n.memoizedState=au,o):(la(n),ou(n,v))}if(A=e.memoizedState,A!==null&&(v=A.dehydrated,v!==null)){if(f)n.flags&256?(la(n),n.flags&=-257,n=lu(e,n,i)):n.memoizedState!==null?(sa(),n.child=e.child,n.flags|=128,n=null):(sa(),u=o.fallback,v=n.mode,o=Zo({mode:"visible",children:o.children},v),u=Oa(u,v,i,null),u.flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,_i(n,e.child,null,i),o=n.child,o.memoizedState=iu(i),o.childLanes=ru(e,g,i),n.memoizedState=au,n=u);else if(la(n),Pu(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var C=g.dgst;g=C,o=Error(l(419)),o.stack="",o.digest=g,cr({value:o,source:null,stack:null}),n=lu(e,n,i)}else if(bt||fr(e,n,i,!1),g=(i&e.childLanes)!==0,bt||g){if(g=Je,g!==null&&(o=i&-i,o=(o&42)!==0?1:Vl(o),o=(o&(g.suspendedLanes|i))!==0?0:o,o!==0&&o!==A.retryLane))throw A.retryLane=o,ci(e,o),tn(g,e,o),vd;v.data==="$?"||ku(),n=lu(e,n,i)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,nt=_n(v.nextSibling),Mt=n,qe=!0,Na=null,En=!1,e!==null&&(pn[dn++]=Pn,pn[dn++]=Vn,pn[dn++]=Ma,Pn=e.id,Vn=e.overflow,Ma=n),n=ou(n,o.children),n.flags|=4096);return n}return u?(sa(),u=o.fallback,v=n.mode,A=e.child,C=A.sibling,o=Hn(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,C!==null?u=Hn(C,u):(u=Oa(u,v,i,null),u.flags|=2),u.return=n,o.return=n,o.sibling=u,n.child=o,o=u,u=n.child,v=e.child.memoizedState,v===null?v=iu(i):(A=v.cachePool,A!==null?(C=dt._currentValue,A=A.parent!==C?{parent:C,pool:C}:A):A=mp(),v={baseLanes:v.baseLanes|i,cachePool:A}),u.memoizedState=v,u.childLanes=ru(e,g,i),n.memoizedState=au,o):(la(n),i=e.child,e=i.sibling,i=Hn(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=i,n.memoizedState=null,i)}function ou(e,n){return n=Zo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Zo(e,n){return e=Zt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function lu(e,n,i){return _i(n,e.child,null,i),e=ou(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Rd(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),ks(e.return,n,i)}function su(e,n,i,o,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=i,f.tailMode=u)}function Dd(e,n,i){var o=n.pendingProps,u=o.revealOrder,f=o.tail;if(_t(e,n,o.children,i),o=mt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rd(e,i,n);else if(e.tag===19)Rd(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(x(mt,o),u){case"forwards":for(i=n.child,u=null;i!==null;)e=i.alternate,e!==null&&Xo(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=n.child,n.child=null):(u=i.sibling,i.sibling=null),su(n,!1,u,i,f);break;case"backwards":for(i=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Xo(e)===null){n.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}su(n,!0,i,null,f);break;case"together":su(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Qn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),da|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(fr(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=Hn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Hn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function uu(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Do(e)))}function bb(e,n,i){switch(n.tag){case 3:Ne(n,n.stateNode.containerInfo),na(n,dt,e.memoizedState.cache),ur();break;case 27:case 5:kn(n);break;case 4:Ne(n,n.stateNode.containerInfo);break;case 10:na(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(la(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Cd(e,n,i):(la(n),e=Qn(e,n,i),e!==null?e.sibling:null);la(n);break;case 19:var u=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(fr(e,n,i,!1),o=(i&n.childLanes)!==0),u){if(o)return Dd(e,n,i);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),x(mt,mt.current),o)break;return null;case 22:case 23:return n.lanes=0,Sd(e,n,i);case 24:na(n,dt,e.memoizedState.cache)}return Qn(e,n,i)}function Od(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)bt=!0;else{if(!uu(e,i)&&(n.flags&128)===0)return bt=!1,bb(e,n,i);bt=(e.flags&131072)!==0}else bt=!1,qe&&(n.flags&1048576)!==0&&lp(n,Ro,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,u=o._init;if(o=u(o._payload),n.type=o,typeof o=="function")bs(o)?(e=Ba(o,e),n.tag=1,n=Td(null,n,o,e,i)):(n.tag=0,n=nu(null,n,o,e,i));else{if(o!=null){if(u=o.$$typeof,u===we){n.tag=11,n=wd(null,n,o,e,i);break e}else if(u===ue){n.tag=14,n=_d(null,n,o,e,i);break e}}throw n=J(o)||o,Error(l(306,n,""))}}return n;case 0:return nu(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,u=Ba(o,n.pendingProps),Td(e,n,o,u,i);case 3:e:{if(Ne(n,n.stateNode.containerInfo),e===null)throw Error(l(387));o=n.pendingProps;var f=n.memoizedState;u=f.element,Ms(e,n),br(n,o,null,i);var g=n.memoizedState;if(o=g.cache,na(n,dt,o),o!==f.cache&&Ts(n,[dt],i,!0),yr(),o=g.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Ed(e,n,o,i);break e}else if(o!==u){u=cn(Error(l(424)),n),cr(u),n=Ed(e,n,o,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=_n(e.firstChild),Mt=n,qe=!0,Na=null,En=!0,i=ud(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ur(),o===u){n=Qn(e,n,i);break e}_t(e,n,o,i)}n=n.child}return n;case 26:return Ko(e,n),e===null?(i=Im(n.type,null,n.pendingProps,null))?n.memoizedState=i:qe||(i=n.type,e=n.pendingProps,o=cl(re.current).createElement(i),o[Et]=n,o[jt]=e,St(o,i,e),yt(o),n.stateNode=o):n.memoizedState=Im(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return kn(n),e===null&&qe&&(o=n.stateNode=Mm(n.type,n.pendingProps,re.current),Mt=n,En=!0,u=nt,ya(n.type)?(Vu=u,nt=_n(o.firstChild)):nt=u),_t(e,n,n.pendingProps.children,i),Ko(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&qe&&((u=o=nt)&&(o=Xb(o,n.type,n.pendingProps,En),o!==null?(n.stateNode=o,Mt=n,nt=_n(o.firstChild),En=!1,u=!0):u=!1),u||Ia(n)),kn(n),u=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,o=f.children,qu(u,f)?o=null:g!==null&&qu(u,g)&&(n.flags|=32),n.memoizedState!==null&&(u=zs(e,n,cb,null,null,i),Br._currentValue=u),Ko(e,n),_t(e,n,o,i),n.child;case 6:return e===null&&qe&&((e=i=nt)&&(i=Yb(i,n.pendingProps,En),i!==null?(n.stateNode=i,Mt=n,nt=null,e=!0):e=!1),e||Ia(n)),null;case 13:return Cd(e,n,i);case 4:return Ne(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=_i(n,null,o,i):_t(e,n,o,i),n.child;case 11:return wd(e,n,n.type,n.pendingProps,i);case 7:return _t(e,n,n.pendingProps,i),n.child;case 8:return _t(e,n,n.pendingProps.children,i),n.child;case 12:return _t(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,na(n,n.type,o.value),_t(e,n,o.children,i),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,La(n),u=Ct(u),o=o(u),n.flags|=1,_t(e,n,o,i),n.child;case 14:return _d(e,n,n.type,n.pendingProps,i);case 15:return xd(e,n,n.type,n.pendingProps,i);case 19:return Dd(e,n,i);case 31:return o=n.pendingProps,i=n.mode,o={mode:o.mode,children:o.children},e===null?(i=Zo(o,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=Hn(e.child,o),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return Sd(e,n,i);case 24:return La(n),o=Ct(dt),e===null?(u=Rs(),u===null&&(u=Je,f=Es(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=i),u=f),n.memoizedState={parent:o,cache:u},Os(n),na(n,dt,u)):((e.lanes&i)!==0&&(Ms(e,n),br(n,null,null,i),yr()),u=e.memoizedState,f=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),na(n,dt,o)):(o=f.cache,na(n,dt,o),o!==u.cache&&Ts(n,[dt],i,!0))),_t(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Kn(e){e.flags|=4}function Md(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bm(n)){if(n=mn.current,n!==null&&((Me&4194048)===Me?Cn!==null:(Me&62914560)!==Me&&(Me&536870912)===0||n!==Cn))throw hr=Ds,hp;e.flags|=8192}}function Jo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?cf():536870912,e.lanes|=n,ki|=n)}function kr(e,n){if(!qe)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function tt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function vb(e,n,i){var o=n.pendingProps;switch(xs(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(n),null;case 1:return tt(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Fn(dt),Ot(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(sr(n)?Kn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,cp())),tt(n),null;case 26:return i=n.memoizedState,e===null?(Kn(n),i!==null?(tt(n),Md(n,i)):(tt(n),n.flags&=-16777217)):i?i!==e.memoizedState?(Kn(n),tt(n),Md(n,i)):(tt(n),n.flags&=-16777217):(e.memoizedProps!==o&&Kn(n),tt(n),n.flags&=-16777217),null;case 27:Ln(n),i=re.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Kn(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return tt(n),null}e=te.current,sr(n)?sp(n):(e=Mm(u,o,i),n.stateNode=e,Kn(n))}return tt(n),null;case 5:if(Ln(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Kn(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return tt(n),null}if(e=te.current,sr(n))sp(n);else{switch(u=cl(re.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?u.createElement("select",{is:o.is}):u.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?u.createElement(i,{is:o.is}):u.createElement(i)}}e[Et]=n,e[jt]=o;e:for(u=n.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)break e;for(;u.sibling===null;){if(u.return===null||u.return===n)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}n.stateNode=e;e:switch(St(e,i,o),i){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Kn(n)}}return tt(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Kn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(l(166));if(e=re.current,sr(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,u=Mt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[Et]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||km(e.nodeValue,i)),e||Ia(n)}else e=cl(e).createTextNode(o),e[Et]=n,n.stateNode=e}return tt(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=sr(n),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(l(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[Et]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;tt(n),u=!1}else u=cp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Yn(n),n):(Yn(n),null)}if(Yn(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=o!==null,e=e!==null&&e.memoizedState!==null,i){o=n.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool);var f=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),Jo(n,n.updateQueue),tt(n),null;case 4:return Ot(),e===null&&Nu(n.stateNode.containerInfo),tt(n),null;case 10:return Fn(n.type),tt(n),null;case 19:if(Y(mt),u=n.memoizedState,u===null)return tt(n),null;if(o=(n.flags&128)!==0,f=u.rendering,f===null)if(o)kr(u,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Xo(e),f!==null){for(n.flags|=128,kr(u,!1),e=f.updateQueue,n.updateQueue=e,Jo(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)op(i,e),i=i.sibling;return x(mt,mt.current&1|2),n.child}e=e.sibling}u.tail!==null&&Xt()>el&&(n.flags|=128,o=!0,kr(u,!1),n.lanes=4194304)}else{if(!o)if(e=Xo(f),e!==null){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,Jo(n,e),kr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!qe)return tt(n),null}else 2*Xt()-u.renderingStartTime>el&&i!==536870912&&(n.flags|=128,o=!0,kr(u,!1),n.lanes=4194304);u.isBackwards?(f.sibling=n.child,n.child=f):(e=u.last,e!==null?e.sibling=f:n.child=f,u.last=f)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=Xt(),n.sibling=null,e=mt.current,x(mt,o?e&1|2:e&1),n):(tt(n),null);case 22:case 23:return Yn(n),js(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(tt(n),n.subtreeFlags&6&&(n.flags|=8192)):tt(n),i=n.updateQueue,i!==null&&Jo(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&Y(za),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Fn(dt),tt(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function wb(e,n){switch(xs(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Fn(dt),Ot(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ln(n),null;case 13:if(Yn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(mt),null;case 4:return Ot(),null;case 10:return Fn(n.type),null;case 22:case 23:return Yn(n),js(),e!==null&&Y(za),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Fn(dt),null;case 25:return null;default:return null}}function Ud(e,n){switch(xs(n),n.tag){case 3:Fn(dt),Ot();break;case 26:case 27:case 5:Ln(n);break;case 4:Ot();break;case 13:Yn(n);break;case 19:Y(mt);break;case 10:Fn(n.type);break;case 22:case 23:Yn(n),js(),e!==null&&Y(za);break;case 24:Fn(dt)}}function Tr(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var u=o.next;i=u;do{if((i.tag&e)===e){o=void 0;var f=i.create,g=i.inst;o=f(),g.destroy=o}i=i.next}while(i!==u)}}catch(v){Ze(n,n.return,v)}}function ua(e,n,i){try{var o=n.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var g=o.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,u=n;var A=i,C=v;try{C()}catch(j){Ze(u,A,j)}}}o=o.next}while(o!==f)}}catch(j){Ze(n,n.return,j)}}function Nd(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{_p(n,i)}catch(o){Ze(e,e.return,o)}}}function Id(e,n,i){i.props=Ba(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Ze(e,n,o)}}function Er(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(u){Ze(e,n,u)}}function Rn(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(u){Ze(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Ze(e,n,u)}else i.current=null}function jd(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(u){Ze(e,e.return,u)}}function cu(e,n,i){try{var o=e.stateNode;Hb(o,e.type,i,n),o[jt]=n}catch(u){Ze(e,e.return,u)}}function Ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ya(e.type)||e.tag===4}function fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ld(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ya(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pu(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=ul));else if(o!==4&&(o===27&&ya(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(pu(e,n,i),e=e.sibling;e!==null;)pu(e,n,i),e=e.sibling}function Go(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&ya(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Go(e,n,i),e=e.sibling;e!==null;)Go(e,n,i),e=e.sibling}function zd(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);St(n,o,i),n[Et]=e,n[jt]=i}catch(f){Ze(e,e.return,f)}}var Zn=!1,ot=!1,du=!1,qd=typeof WeakSet=="function"?WeakSet:Set,vt=null;function _b(e,n){if(e=e.containerInfo,Lu=gl,e=Zf(e),fs(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var g=0,v=-1,A=-1,C=0,j=0,P=e,D=null;t:for(;;){for(var O;P!==i||u!==0&&P.nodeType!==3||(v=g+u),P!==f||o!==0&&P.nodeType!==3||(A=g+o),P.nodeType===3&&(g+=P.nodeValue.length),(O=P.firstChild)!==null;)D=P,P=O;for(;;){if(P===e)break t;if(D===i&&++C===u&&(v=g),D===f&&++j===o&&(A=g),(O=P.nextSibling)!==null)break;P=D,D=P.parentNode}P=O}i=v===-1||A===-1?null:{start:v,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(zu={focusedElem:e,selectionRange:i},gl=!1,vt=n;vt!==null;)if(n=vt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,vt=e;else for(;vt!==null;){switch(n=vt,f=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,i=n,u=f.memoizedProps,f=f.memoizedState,o=i.stateNode;try{var me=Ba(i.type,u,i.elementType===i.type);e=o.getSnapshotBeforeUpdate(me,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ze(i,i.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)Hu(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,vt=e;break}vt=n.return}}function Bd(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:ca(e,i),o&4&&Tr(5,i);break;case 1:if(ca(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(g){Ze(i,i.return,g)}else{var u=Ba(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ze(i,i.return,g)}}o&64&&Nd(i),o&512&&Er(i,i.return);break;case 3:if(ca(e,i),o&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{_p(e,n)}catch(g){Ze(i,i.return,g)}}break;case 27:n===null&&o&4&&zd(i);case 26:case 5:ca(e,i),n===null&&o&4&&jd(i),o&512&&Er(i,i.return);break;case 12:ca(e,i);break;case 13:ca(e,i),o&4&&Vd(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=Db.bind(null,i),Qb(e,i))));break;case 22:if(o=i.memoizedState!==null||Zn,!o){n=n!==null&&n.memoizedState!==null||ot,u=Zn;var f=ot;Zn=o,(ot=n)&&!f?fa(e,i,(i.subtreeFlags&8772)!==0):ca(e,i),Zn=u,ot=f}break;case 30:break;default:ca(e,i)}}function Hd(e){var n=e.alternate;n!==null&&(e.alternate=null,Hd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Xl(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,qt=!1;function Jn(e,n,i){for(i=i.child;i!==null;)Pd(e,n,i),i=i.sibling}function Pd(e,n,i){if(F&&typeof F.onCommitFiberUnmount=="function")try{F.onCommitFiberUnmount(I,i)}catch{}switch(i.tag){case 26:ot||Rn(i,n),Jn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ot||Rn(i,n);var o=et,u=qt;ya(i.type)&&(et=i.stateNode,qt=!1),Jn(e,n,i),jr(i.stateNode),et=o,qt=u;break;case 5:ot||Rn(i,n);case 6:if(o=et,u=qt,et=null,Jn(e,n,i),et=o,qt=u,et!==null)if(qt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(i.stateNode)}catch(f){Ze(i,n,f)}else try{et.removeChild(i.stateNode)}catch(f){Ze(i,n,f)}break;case 18:et!==null&&(qt?(e=et,Dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),$r(e)):Dm(et,i.stateNode));break;case 4:o=et,u=qt,et=i.stateNode.containerInfo,qt=!0,Jn(e,n,i),et=o,qt=u;break;case 0:case 11:case 14:case 15:ot||ua(2,i,n),ot||ua(4,i,n),Jn(e,n,i);break;case 1:ot||(Rn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Id(i,n,o)),Jn(e,n,i);break;case 21:Jn(e,n,i);break;case 22:ot=(o=ot)||i.memoizedState!==null,Jn(e,n,i),ot=o;break;default:Jn(e,n,i)}}function Vd(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$r(e)}catch(i){Ze(n,n.return,i)}}function xb(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new qd),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new qd),n;default:throw Error(l(435,e.tag))}}function mu(e,n){var i=xb(e);n.forEach(function(o){var u=Ob.bind(null,e,o);i.has(o)||(i.add(o),o.then(u,u))})}function Jt(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var u=i[o],f=e,g=n,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(ya(v.type)){et=v.stateNode,qt=!1;break e}break;case 5:et=v.stateNode,qt=!1;break e;case 3:case 4:et=v.stateNode.containerInfo,qt=!0;break e}v=v.return}if(et===null)throw Error(l(160));Pd(f,g,u),et=null,qt=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)$d(n,e),n=n.sibling}var wn=null;function $d(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(n,e),Gt(e),o&4&&(ua(3,e,e.return),Tr(3,e),ua(5,e,e.return));break;case 1:Jt(n,e),Gt(e),o&512&&(ot||i===null||Rn(i,i.return)),o&64&&Zn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var u=wn;if(Jt(n,e),Gt(e),o&512&&(ot||i===null||Rn(i,i.return)),o&4){var f=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Ji]||f[Et]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),St(f,o,i),f[Et]=e,yt(f),o=f;break e;case"link":var g=zm("link","href",u).get(o+(i.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],f.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&f.getAttribute("rel")===(i.rel==null?null:i.rel)&&f.getAttribute("title")===(i.title==null?null:i.title)&&f.getAttribute("crossorigin")===(i.
vendor: 4,633 bytes, line 48
48crossOrigin==null?null:i.crossOrigin)){g.splice(v,1);break t}}f=u.createElement(o),St(f,o,i),u.head.appendChild(f);break;case"meta":if(g=zm("meta","content",u).get(o+(i.content||""))){for(v=0;v<g.length;v++)if(f=g[v],f.getAttribute("content")===(i.content==null?null:""+i.content)&&f.getAttribute("name")===(i.name==null?null:i.name)&&f.getAttribute("property")===(i.property==null?null:i.property)&&f.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&f.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(v,1);break t}}f=u.createElement(o),St(f,o,i),u.head.appendChild(f);break;default:throw Error(l(468,o))}f[Et]=e,yt(f),o=f}e.stateNode=o}else qm(u,e.type,e.stateNode);else e.stateNode=Lm(u,o,e.memoizedProps);else f!==o?(f===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):f.count--,o===null?qm(u,e.type,e.stateNode):Lm(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&cu(e,e.memoizedProps,i.memoizedProps)}break;case 27:Jt(n,e),Gt(e),o&512&&(ot||i===null||Rn(i,i.return)),i!==null&&o&4&&cu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Jt(n,e),Gt(e),o&512&&(ot||i===null||Rn(i,i.return)),e.flags&32){u=e.stateNode;try{ai(u,"")}catch(O){Ze(e,e.return,O)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,cu(e,u,i!==null?i.memoizedProps:u)),o&1024&&(du=!0);break;case 6:if(Jt(n,e),Gt(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(O){Ze(e,e.return,O)}}break;case 3:if(dl=null,u=wn,wn=fl(n.containerInfo),Jt(n,e),wn=u,Gt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{$r(n.containerInfo)}catch(O){Ze(e,e.return,O)}du&&(du=!1,Fd(e));break;case 4:o=wn,wn=fl(e.stateNode.containerInfo),Jt(n,e),Gt(e),wn=o;break;case 12:Jt(n,e),Gt(e);break;case 13:Jt(n,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(wu=Xt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 22:u=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,C=Zn,j=ot;if(Zn=C||u,ot=j||A,Jt(n,e),ot=j,Zn=C,Gt(e),o&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(i===null||A||Zn||ot||Ha(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){A=i=n;try{if(f=A.stateNode,u)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=A.stateNode;var P=A.memoizedProps.style,D=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(O){Ze(A,A.return,O)}}}else if(n.tag===6){if(i===null){A=n;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(O){Ze(A,A.return,O)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,mu(e,i))));break;case 19:Jt(n,e),Gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,mu(e,o)));break;case 30:break;case 21:break;default:Jt(n,e),Gt(e)}}function Gt(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if(Ld(o)){i=o;break}o=o.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var u=i.stateNode,f=fu(e);Go(e,f,u);break;case 5:var g=i.stateNode;i.flags&32&&(ai(g,""),i.flags&=-33);var v=fu(e);Go(e,v,g);break;case 3:case 4:var A=i.stateNode.containerInfo,C=fu(e);pu(e,C,A);break;default:throw Error(l(161))}}catch(j){Ze(e,e.return,j)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Fd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Fd(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function ca(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Bd(e,n.alternate,n),n=n.sibling}function Ha(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ua(4,n,n.return),Ha(n);break;case 1:Rn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Id(n,n.return,i),Ha(n);break;case 27:jr(n.stateNode);case 26:case 5:Rn(n,n.return),Ha(n);break;case 22:n.memoizedState===null&&Ha(n);break;case 30:Ha(n);break;default:Ha(n)}e=e.sibling}}function fa(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,u=e,f=n,g=f.flags;switch(f.tag){case 0:case 11:case 15:fa(u,f,i),Tr(4,f);break;case 1:if(fa(u,f,i),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Ze(o,o.return,C)}if(o=f,u=o.updateQueue,u!==null){var v=o.stateNode;try{var A=u.shared.hiddenCallbacks;
vendor: 41,385 bytes, lines 48-49
48if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)wp(A[u],v)}catch(C){Ze(o,o.return,C)}}i&&g&64&&Nd(f),Er(f,f.return);break;case 27:zd(f);case 26:case 5:fa(u,f,i),i&&o===null&&g&4&&jd(f),Er(f,f.return);break;case 12:fa(u,f,i);break;case 13:fa(u,f,i),i&&g&4&&Vd(u,f);break;case 22:f.memoizedState===null&&fa(u,f,i),Er(f,f.return);break;case 30:break;default:fa(u,f,i)}n=n.sibling}}function hu(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&pr(i))}function gu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&pr(e))}function Dn(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Xd(e,n,i,o),n=n.sibling}function Xd(e,n,i,o){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n,i,o),u&2048&&Tr(9,n);break;case 1:Dn(e,n,i,o);break;case 3:Dn(e,n,i,o),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&pr(e)));break;case 12:if(u&2048){Dn(e,n,i,o),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ze(n,n.return,A)}}else Dn(e,n,i,o);break;case 13:Dn(e,n,i,o);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Dn(e,n,i,o):Cr(e,n):f._visibility&2?Dn(e,n,i,o):(f._visibility|=2,xi(e,n,i,o,(n.subtreeFlags&10256)!==0)),u&2048&&hu(g,n);break;case 24:Dn(e,n,i,o),u&2048&&gu(n.alternate,n);break;default:Dn(e,n,i,o)}}function xi(e,n,i,o,u){for(u=u&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=e,g=n,v=i,A=o,C=g.flags;switch(g.tag){case 0:case 11:case 15:xi(f,g,v,A,u),Tr(8,g);break;case 23:break;case 22:var j=g.stateNode;g.memoizedState!==null?j._visibility&2?xi(f,g,v,A,u):Cr(f,g):(j._visibility|=2,xi(f,g,v,A,u)),u&&C&2048&&hu(g.alternate,g);break;case 24:xi(f,g,v,A,u),u&&C&2048&&gu(g.alternate,g);break;default:xi(f,g,v,A,u)}n=n.sibling}}function Cr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,u=o.flags;switch(o.tag){case 22:Cr(i,o),u&2048&&hu(o.alternate,o);break;case 24:Cr(i,o),u&2048&&gu(o.alternate,o);break;default:Cr(i,o)}n=n.sibling}}var Rr=8192;function Si(e){if(e.subtreeFlags&Rr)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 26:Si(e),e.flags&Rr&&e.memoizedState!==null&&lv(wn,e.memoizedState,e.memoizedProps);break;case 5:Si(e);break;case 3:case 4:var n=wn;wn=fl(e.stateNode.containerInfo),Si(e),wn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Rr,Rr=16777216,Si(e),Rr=n):Si(e));break;default:Si(e)}}function Qd(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Dr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];vt=o,Zd(o,e)}Qd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kd(e),e=e.sibling}function Kd(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&ua(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Wo(e)):Dr(e);break;default:Dr(e)}}function Wo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];vt=o,Zd(o,e)}Qd(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ua(8,n,n.return),Wo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Wo(n));break;default:Wo(n)}e=e.sibling}}function Zd(e,n){for(;vt!==null;){var i=vt;switch(i.tag){case 0:case 11:case 15:ua(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:pr(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,vt=o;else e:for(i=e;vt!==null;){o=vt;var u=o.sibling,f=o.return;if(Hd(o),o===i){vt=null;break e}if(u!==null){u.return=f,vt=u;break e}vt=f}}}var Sb={getCacheForType:function(e){var n=Ct(dt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},Ab=typeof WeakMap=="function"?WeakMap:Map,$e=0,Je=null,Re=null,Me=0,Fe=0,Wt=null,pa=!1,Ai=!1,yu=!1,Gn=0,at=0,da=0,Pa=0,bu=0,hn=0,ki=0,Or=null,Bt=null,vu=!1,wu=0,el=1/0,tl=null,ma=null,xt=0,ha=null,Ti=null,Ei=0,_u=0,xu=null,Jd=null,Mr=0,Su=null;function en(){if(($e&2)!==0&&Me!==0)return Me&-Me;if(M.T!==null){var e=mi;return e!==0?e:Du()}return df()}function Gd(){hn===0&&(hn=(Me&536870912)===0||qe?uf():536870912);var e=mn.current;return e!==null&&(e.flags|=32),hn}function tn(e,n,i){(e===Je&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Ci(e,0),ga(e,Me,hn,!1)),Zi(e,i),(($e&2)===0||e!==Je)&&(e===Je&&(($e&2)===0&&(Pa|=i),at===4&&ga(e,Me,hn,!1)),On(e))}function Wd(e,n,i){if(($e&6)!==0)throw Error(l(327));var o=!i&&(n&124)===0&&(n&e.expiredLanes)===0||ln(e,n),u=o?Eb(e,n):Tu(e,n,!0),f=o;do{if(u===0){Ai&&!o&&ga(e,n,0,!1);break}else{if(i=e.current.alternate,f&&!kb(i)){u=Tu(e,n,!1),f=!1;continue}if(u===2){if(f=n,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var v=e;u=Or;var A=v.current.memoizedState.isDehydrated;if(A&&(Ci(v,g).flags|=256),g=Tu(v,g,!1),g!==2){if(yu&&!A){v.errorRecoveryDisabledLanes|=f,Pa|=f,u=4;break e}f=Bt,Bt=u,f!==null&&(Bt===null?Bt=f:Bt.push.apply(Bt,f))}u=g}if(f=!1,u!==2)continue}}if(u===1){Ci(e,0),ga(e,n,0,!0);break}e:{switch(o=e,f=u,f){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:ga(o,n,hn,!pa);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(u=wu+300-Xt(),10<u)){if(ga(o,n,hn,!pa),gt(o,0,!0)!==0)break e;o.timeoutHandle=Cm(em.bind(null,o,i,Bt,tl,vu,n,hn,Pa,ki,pa,f,2,-0,0),u);break e}em(o,i,Bt,tl,vu,n,hn,Pa,ki,pa,f,0,-0,0)}}break}while(!0);On(e)}function em(e,n,i,o,u,f,g,v,A,C,j,P,D,O){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(qr={stylesheets:null,count:0,unsuspend:ov},Yd(n),P=sv(),P!==null)){e.cancelPendingCommit=P(lm.bind(null,e,n,f,i,o,u,g,v,A,j,1,D,O)),ga(e,f,g,!C);return}lm(e,n,f,i,o,u,g,v,A)}function kb(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var u=i[o],f=u.getSnapshot;u=u.value;try{if(!Kt(f(),u))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ga(e,n,i,o){n&=~bu,n&=~Pa,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var u=n;0<u;){var f=31-de(u),g=1<<f;o[f]=-1,u&=~g}i!==0&&ff(e,i,n)}function nl(){return($e&6)===0?(Ur(0),!1):!0}function Au(){if(Re!==null){if(Fe===0)var e=Re.return;else e=Re,$n=ja=null,Hs(e),wi=null,Sr=0,e=Re;for(;e!==null;)Ud(e.alternate,e),e=e.return;Re=null}}function Ci(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Vb(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Au(),Je=e,Re=i=Hn(e.current,null),Me=n,Fe=0,Wt=null,pa=!1,Ai=ln(e,n),yu=!1,ki=hn=bu=Pa=da=at=0,Bt=Or=null,vu=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var u=31-de(o),f=1<<u;n|=e[u],o&=~f}return Gn=n,Ao(),i}function tm(e,n){Ee=null,M.H=Vo,n===mr||n===Uo?(n=bp(),Fe=3):n===hp?(n=bp(),Fe=4):Fe=n===vd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Wt=n,Re===null&&(at=1,Qo(e,cn(n,e.current)))}function nm(){var e=M.H;return M.H=Vo,e===null?Vo:e}function am(){var e=M.A;return M.A=Sb,e}function ku(){at=4,pa||(Me&4194048)!==Me&&mn.current!==null||(Ai=!0),(da&134217727)===0&&(Pa&134217727)===0||Je===null||ga(Je,Me,hn,!1)}function Tu(e,n,i){var o=$e;$e|=2;var u=nm(),f=am();(Je!==e||Me!==n)&&(tl=null,Ci(e,n)),n=!1;var g=at;e:do try{if(Fe!==0&&Re!==null){var v=Re,A=Wt;switch(Fe){case 8:Au(),g=6;break e;case 3:case 2:case 9:case 6:mn.current===null&&(n=!0);var C=Fe;if(Fe=0,Wt=null,Ri(e,v,A,C),i&&Ai){g=0;break e}break;default:C=Fe,Fe=0,Wt=null,Ri(e,v,A,C)}}Tb(),g=at;break}catch(j){tm(e,j)}while(!0);return n&&e.shellSuspendCounter++,$n=ja=null,$e=o,M.H=u,M.A=f,Re===null&&(Je=null,Me=0,Ao()),g}function Tb(){for(;Re!==null;)im(Re)}function Eb(e,n){var i=$e;$e|=2;var o=nm(),u=am();Je!==e||Me!==n?(tl=null,el=Xt()+500,Ci(e,n)):Ai=ln(e,n);e:do try{if(Fe!==0&&Re!==null){n=Re;var f=Wt;t:switch(Fe){case 1:Fe=0,Wt=null,Ri(e,n,f,1);break;case 2:case 9:if(gp(f)){Fe=0,Wt=null,rm(n);break}n=function(){Fe!==2&&Fe!==9||Je!==e||(Fe=7),On(e)},f.then(n,n);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:gp(f)?(Fe=0,Wt=null,rm(n)):(Fe=0,Wt=null,Ri(e,n,f,7));break;case 5:var g=null;switch(Re.tag){case 26:g=Re.memoizedState;case 5:case 27:var v=Re;if(!g||Bm(g)){Fe=0,Wt=null;var A=v.sibling;if(A!==null)Re=A;else{var C=v.return;C!==null?(Re=C,al(C)):Re=null}break t}}Fe=0,Wt=null,Ri(e,n,f,5);break;case 6:Fe=0,Wt=null,Ri(e,n,f,6);break;case 8:Au(),at=6;break e;default:throw Error(l(462))}}Cb();break}catch(j){tm(e,j)}while(!0);return $n=ja=null,M.H=o,M.A=u,$e=i,Re!==null?0:(Je=null,Me=0,Ao(),at)}function Cb(){for(;Re!==null&&!uo();)im(Re)}function im(e){var n=Od(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,n===null?al(e):Re=n}function rm(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=kd(i,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=kd(i,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:Hs(n);default:Ud(i,n),n=Re=op(n,Gn),n=Od(i,n,Gn)}e.memoizedProps=e.pendingProps,n===null?al(e):Re=n}function Ri(e,n,i,o){$n=ja=null,Hs(n),wi=null,Sr=0;var u=n.return;try{if(yb(e,u,n,i,Me)){at=1,Qo(e,cn(i,e.current)),Re=null;return}}catch(f){if(u!==null)throw Re=u,f;at=1,Qo(e,cn(i,e.current)),Re=null;return}n.flags&32768?(qe||o===1?e=!0:Ai||(Me&536870912)!==0?e=!1:(pa=e=!0,(o===2||o===9||o===3||o===6)&&(o=mn.current,o!==null&&o.tag===13&&(o.flags|=16384))),om(n,e)):al(n)}function al(e){var n=e;do{if((n.flags&32768)!==0){om(n,pa);return}e=n.return;var i=vb(n.alternate,n,Gn);if(i!==null){Re=i;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=e}while(n!==null);at===0&&(at=5)}function om(e,n){do{var i=wb(e.alternate,e);if(i!==null){i.flags&=32767,Re=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Re=e;return}Re=e=i}while(e!==null);at=6,Re=null}function lm(e,n,i,o,u,f,g,v,A){e.cancelPendingCommit=null;do il();while(xt!==0);if(($e&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(f=n.lanes|n.childLanes,f|=gs,oy(e,i,f,g,v,A),e===Je&&(Re=Je=null,Me=0),Ti=n,ha=e,Ei=i,_u=f,xu=u,Jd=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Mb(Ka,function(){return pm(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,u=$.p,$.p=2,g=$e,$e|=4;try{_b(e,n,i)}finally{$e=g,$.p=u,M.T=o}}xt=1,sm(),um(),cm()}}function sm(){if(xt===1){xt=0;var e=ha,n=Ti,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=M.T,M.T=null;var o=$.p;$.p=2;var u=$e;$e|=4;try{$d(n,e);var f=zu,g=Zf(e.containerInfo),v=f.focusedElem,A=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Kf(v.ownerDocument.documentElement,v)){if(A!==null&&fs(v)){var C=A.start,j=A.end;if(j===void 0&&(j=C),"selectionStart"in v)v.selectionStart=C,v.selectionEnd=Math.min(j,v.value.length);else{var P=v.ownerDocument||document,D=P&&P.defaultView||window;if(D.getSelection){var O=D.getSelection(),me=v.textContent.length,fe=Math.min(A.start,me),Ke=A.end===void 0?fe:Math.min(A.end,me);!O.extend&&fe>Ke&&(g=Ke,Ke=fe,fe=g);var T=Qf(v,fe),k=Qf(v,Ke);if(T&&k&&(O.rangeCount!==1||O.anchorNode!==T.node||O.anchorOffset!==T.offset||O.focusNode!==k.node||O.focusOffset!==k.offset)){var E=P.createRange();E.setStart(T.node,T.offset),O.removeAllRanges(),fe>Ke?(O.addRange(E),O.extend(k.node,k.offset)):(E.setEnd(k.node,k.offset),O.addRange(E))}}}}for(P=[],O=v;O=O.parentNode;)O.nodeType===1&&P.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var q=P[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}gl=!!Lu,zu=Lu=null}finally{$e=u,$.p=o,M.T=i}}e.current=n,xt=2}}function um(){if(xt===2){xt=0;var e=ha,n=Ti,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=M.T,M.T=null;var o=$.p;$.p=2;var u=$e;$e|=4;try{Bd(e,n.alternate,n)}finally{$e=u,$.p=o,M.T=i}}xt=3}}function cm(){if(xt===4||xt===3){xt=0,co();var e=ha,n=Ti,i=Ei,o=Jd;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?xt=5:(xt=0,Ti=ha=null,fm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ma=null),$l(i),n=n.stateNode,F&&typeof F.onCommitFiberRoot=="function")try{F.onCommitFiberRoot(I,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=M.T,u=$.p,$.p=2,M.T=null;try{for(var f=e.onRecoverableError,g=0;g<o.length;g++){var v=o[g];f(v.value,{componentStack:v.stack})}}finally{M.T=n,$.p=u}}(Ei&3)!==0&&il(),On(e),u=e.pendingLanes,(i&4194090)!==0&&(u&42)!==0?e===Su?Mr++:(Mr=0,Su=e):Mr=0,Ur(0)}}function fm(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,pr(n)))}function il(e){return sm(),um(),cm(),pm()}function pm(){if(xt!==5)return!1;var e=ha,n=_u;_u=0;var i=$l(Ei),o=M.T,u=$.p;try{$.p=32>i?32:i,M.T=null,i=xu,xu=null;var f=ha,g=Ei;if(xt=0,Ti=ha=null,Ei=0,($e&6)!==0)throw Error(l(331));var v=$e;if($e|=4,Kd(f.current),Xd(f,f.current,g,i),$e=v,Ur(0,!1),F&&typeof F.onPostCommitFiberRoot=="function")try{F.onPostCommitFiberRoot(I,f)}catch{}return!0}finally{$.p=u,M.T=o,fm(e,n)}}function dm(e,n,i){n=cn(i,n),n=tu(e.stateNode,n,2),e=ra(e,n,2),e!==null&&(Zi(e,2),On(e))}function Ze(e,n,i){if(e.tag===3)dm(e,e,i);else for(;n!==null;){if(n.tag===3){dm(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ma===null||!ma.has(o))){e=cn(i,e),i=yd(2),o=ra(n,i,2),o!==null&&(bd(i,o,n,e),Zi(o,2),On(o));break}}n=n.return}}function Eu(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new Ab;var u=new Set;o.set(n,u)}else u=o.get(n),u===void 0&&(u=new Set,o.set(n,u));u.has(i)||(yu=!0,u.add(i),e=Rb.bind(null,e,n,i),n.then(e,e))}function Rb(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Je===e&&(Me&i)===i&&(at===4||at===3&&(Me&62914560)===Me&&300>Xt()-wu?($e&2)===0&&Ci(e,0):bu|=i,ki===Me&&(ki=0)),On(e)}function mm(e,n){n===0&&(n=cf()),e=ci(e,n),e!==null&&(Zi(e,n),On(e))}function Db(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),mm(e,i)}function Ob(e,n){var i=0;switch(e.tag){case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(n),mm(e,i)}function Mb(e,n){return Xi(e,n)}var rl=null,Di=null,Cu=!1,ol=!1,Ru=!1,Va=0;function On(e){e!==Di&&e.next===null&&(Di===null?rl=Di=e:Di=Di.next=e),ol=!0,Cu||(Cu=!0,Nb())}function Ur(e,n){if(!Ru&&ol){Ru=!0;do for(var i=!1,o=rl;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var g=o.suspendedLanes,v=o.pingedLanes;f=(1<<31-de(42|e)+1)-1,f&=u&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,bm(o,f))}else f=Me,f=gt(o,o===Je?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||ln(o,f)||(i=!0,bm(o,f));o=o.next}while(i);Ru=!1}}function Ub(){hm()}function hm(){ol=Cu=!1;var e=0;Va!==0&&(Pb()&&(e=Va),Va=0);for(var n=Xt(),i=null,o=rl;o!==null;){var u=o.next,f=gm(o,n);f===0?(o.next=null,i===null?rl=u:i.next=u,u===null&&(Di=i)):(i=o,(e!==0||(f&3)!==0)&&(ol=!0)),o=u}Ur(e)}function gm(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-de(f),v=1<<g,A=u[g];A===-1?((v&i)===0||(v&o)!==0)&&(u[g]=bn(v,n)):A<=n&&(e.expiredLanes|=v),f&=~v}if(n=Je,i=Me,i=gt(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Yi(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||ln(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&Yi(o),$l(i)){case 2:case 8:i=Ki;break;case 32:i=Ka;break;case 268435456:i=fo;break;default:i=Ka}return o=ym.bind(null,e),i=Xi(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&Yi(o),e.callbackPriority=2,e.callbackNode=null,2}function ym(e,n){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(il()&&e.callbackNode!==i)return null;var o=Me;return o=gt(e,e===Je?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Wd(e,o,n),gm(e,Xt()),e.callbackNode!=null&&e.callbackNode===i?ym.bind(null,e):null)}function bm(e,n){if(il())return null;Wd(e,n,!0)}function Nb(){$b(function(){($e&6)!==0?Xi(Qi,Ub):hm()})}function Du(){return Va===0&&(Va=uf()),Va}function vm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yo(""+e)}function wm(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function Ib(e,n,i,o,u){if(n==="submit"&&i&&i.stateNode===u){var f=vm((u[jt]||null).action),g=o.submitter;g&&(n=(n=g[jt]||null)?vm(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new _o("action","action",null,o,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Va!==0){var A=g?wm(u,g):new FormData(u);Zs(i,{pending:!0,data:A,method:u.method,action:f},null,A)}}else typeof f=="function"&&(v.preventDefault(),A=g?wm(u,g):new FormData(u),Zs(i,{pending:!0,data:A,method:u.method,action:f},f,A))},currentTarget:u}]})}}for(var Ou=0;Ou<hs.length;Ou++){var Mu=hs[Ou],jb=Mu.toLowerCase(),Lb=Mu[0].toUpperCase()+Mu.slice(1);vn(jb,"on"+Lb)}vn(Wf,"onAnimationEnd"),vn(ep,"onAnimationIteration"),vn(tp,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(eb,"onTransitionRun"),vn(tb,"onTransitionStart"),vn(nb,"onTransitionCancel"),vn(np,"onTransitionEnd"),ei("onMouseEnter",["mouseout","mouseover"]),ei("onMouseLeave",["mouseout","mouseover"]),ei("onPointerEnter",["pointerout","pointerover"]),ei("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nr));function _m(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],u=o.event;o=o.listeners;e:{var f=void 0;if(n)for(var g=o.length-1;0<=g;g--){var v=o[g],A=v.instance,C=v.currentTarget;if(v=v.listener,A!==f&&u.isPropagationStopped())break e;f=v,u.currentTarget=C;try{f(u)}catch(j){Yo(j)}u.currentTarget=null,f=A}else for(g=0;g<o.length;g++){if(v=o[g],A=v.instance,C=v.currentTarget,v=v.listener,A!==f&&u.isPropagationStopped())break e;f=v,u.currentTarget=C;try{f(u)}catch(j){Yo(j)}u.currentTarget=null,f=A}}}}function De(e,n){var i=n[Fl];i===void 0&&(i=n[Fl]=new Set);var o=e+"__bubble";i.has(o)||(xm(n,e,2,!1),i.add(o))}function Uu(e,n,i){var o=0;n&&(o|=4),xm(i,e,o,n)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Nu(e){if(!e[ll]){e[ll]=!0,hf.forEach(function(i){i!=="selectionchange"&&(zb.has(i)||Uu(i,!1,e),Uu(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ll]||(n[ll]=!0,Uu("selectionchange",!1,n))}}function xm(e,n,i,o){switch(Xm(n)){case 2:var u=fv;break;case 8:u=pv;break;default:u=Qu}i=u.bind(null,n,i,e),u=void 0,!ns||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(n,i,{capture:!0,passive:u}):e.addEventListener(n,i,!0):u!==void 0?e.addEventListener(n,i,{passive:u}):e.addEventListener(n,i,!1)}function Iu(e,n,i,o,u){var f=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var v=o.stateNode.containerInfo;if(v===u)break;if(g===4)for(g=o.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;v!==null;){if(g=Ja(v),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){o=f=g;continue e}v=v.parentNode}}o=o.return}Rf(function(){var C=f,j=es(i),P=[];e:{var D=ap.get(e);if(D!==void 0){var O=_o,me=e;switch(e){case"keypress":if(vo(i)===0)break e;case"keydown":case"keyup":O=My;break;case"focusin":me="focus",O=os;break;case"focusout":me="blur",O=os;break;case"beforeblur":case"afterblur":O=os;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Iy;break;case Wf:case ep:case tp:O=Sy;break;case np:O=Ly;break;case"scroll":case"scrollend":O=by;break;case"wheel":O=qy;break;case"copy":case"cut":case"paste":O=ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Nf;break;case"toggle":case"beforetoggle":O=Hy}var fe=(n&4)!==0,Ke=!fe&&(e==="scroll"||e==="scrollend"),T=fe?D!==null?D+"Capture":null:D;fe=[];for(var k=C,E;k!==null;){var q=k;if(E=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||E===null||T===null||(q=Wi(k,T),q!=null&&fe.push(Ir(k,q,E))),Ke)break;k=k.return}0<fe.length&&(D=new O(D,me,null,i,j),P.push({event:D,listeners:fe}))}}if((n&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",D&&i!==Wl&&(me=i.relatedTarget||i.fromElement)&&(Ja(me)||me[Za]))break e;if((O||D)&&(D=j.window===j?j:(D=j.ownerDocument)?D.defaultView||D.parentWindow:window,O?(me=i.relatedTarget||i.toElement,O=C,me=me?Ja(me):null,me!==null&&(Ke=c(me),fe=me.tag,me!==Ke||fe!==5&&fe!==27&&fe!==6)&&(me=null)):(O=null,me=C),O!==me)){if(fe=Mf,q="onMouseLeave",T="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Nf,q="onPointerLeave",T="onPointerEnter",k="pointer"),Ke=O==null?D:Gi(O),E=me==null?D:Gi(me),D=new fe(q,k+"leave",O,i,j),D.target=Ke,D.relatedTarget=E,q=null,Ja(j)===C&&(fe=new fe(T,k+"enter",me,i,j),fe.target=E,fe.relatedTarget=Ke,q=fe),Ke=q,O&&me)t:{for(fe=O,T=me,k=0,E=fe;E;E=Oi(E))k++;for(E=0,q=T;q;q=Oi(q))E++;for(;0<k-E;)fe=Oi(fe),k--;for(;0<E-k;)T=Oi(T),E--;for(;k--;){if(fe===T||T!==null&&fe===T.alternate)break t;fe=Oi(fe),T=Oi(T)}fe=null}else fe=null;O!==null&&Sm(P,D,O,fe,!1),me!==null&&Ke!==null&&Sm(P,Ke,me,fe,!0)}}e:{if(D=C?Gi(C):window,O=D.nodeName&&D.nodeName.toLowerCase(),O==="select"||O==="input"&&D.type==="file")var ne=Pf;else if(Bf(D))if(Vf)ne=Jy;else{ne=Ky;var Ce=Qy}else O=D.nodeName,!O||O.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?C&&Gl(C.elementType)&&(ne=Pf):ne=Zy;if(ne&&(ne=ne(e,C))){Hf(P,ne,i,j);break e}Ce&&Ce(e,D,C),e==="focusout"&&C&&D.type==="number"&&C.memoizedProps.value!=null&&Jl(D,"number",D.value)}switch(Ce=C?Gi(C):window,e){case"focusin":(Bf(Ce)||Ce.contentEditable==="true")&&(li=Ce,ps=C,lr=null);break;case"focusout":lr=ps=li=null;break;case"mousedown":ds=!0;break;case"contextmenu":case"mouseup":case"dragend":ds=!1,Jf(P,i,j);break;case"selectionchange":if(Wy)break;case"keydown":case"keyup":Jf(P,i,j)}var se;if(ss)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else oi?zf(e,i)&&(pe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(pe="onCompositionStart");pe&&(If&&i.locale!=="ko"&&(oi||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&oi&&(se=Df()):(ta=j,as="value"in ta?ta.value:ta.textContent,oi=!0)),Ce=sl(C,pe),0<Ce.length&&(pe=new Uf(pe,e,null,i,j),P.push({event:pe,listeners:Ce}),se?pe.data=se:(se=qf(i),se!==null&&(pe.data=se)))),(se=Vy?$y(e,i):Fy(e,i))&&(pe=sl(C,"onBeforeInput"),0<pe.length&&(Ce=new Uf("onBeforeInput","beforeinput",null,i,j),P.push({event:Ce,listeners:pe}),Ce.data=se)),Ib(P,e,C,i,j)}_m(P,n)})}function Ir(e,n,i){return{instance:e,listener:n,currentTarget:i}}function sl(e,n){for(var i=n+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Wi(e,i),u!=null&&o.unshift(Ir(e,u,f)),u=Wi(e,n),u!=null&&o.push(Ir(e,u,f))),e.tag===3)return o;e=e.return}return[]}function Oi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sm(e,n,i,o,u){for(var f=n._reactName,g=[];i!==null&&i!==o;){var v=i,A=v.alternate,C=v.stateNode;if(v=v.tag,A!==null&&A===o)break;v!==5&&v!==26&&v!==27||C===null||(A=C,u?(C=Wi(i,f),C!=null&&g.unshift(Ir(i,C,A))):u||(C=Wi(i,f),C!=null&&g.push(Ir(i,C,A)))),i=i.return}g.length!==0&&e.push({event:n,listeners:g})}var qb=/\r\n?/g,Bb=/\u0000|\uFFFD/g;function Am(e){return(typeof e=="string"?e:""+e).replace(qb,`
49`).replace(Bb,"")}function km(e,n){return n=Am(n),Am(e)===n}function ul(){}function Qe(e,n,i,o,u,f){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||ai(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&ai(e,""+o);break;case"className":mo(e,"class",o);break;case"tabIndex":mo(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":mo(e,i,o);break;case"style":Ef(e,o,f);break;case"data":if(n!=="object"){mo(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=yo(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(i==="formAction"?(n!=="input"&&Qe(e,n,"name",u.name,u,null),Qe(e,n,"formEncType",u.formEncType,u,null),Qe(e,n,"formMethod",u.formMethod,u,null),Qe(e,n,"formTarget",u.formTarget,u,null)):(Qe(e,n,"encType",u.encType,u,null),Qe(e,n,"method",u.method,u,null),Qe(e,n,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=yo(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=ul);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=yo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":De("beforetoggle",e),De("toggle",e),po(e,"popover",o);break;case"xlinkActuate":qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":qn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":qn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":qn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":qn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":po(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=gy.get(i)||i,po(e,i,o))}}function ju(e,n,i,o,u,f){switch(i){case"style":Ef(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof o=="string"?ai(e,o):(typeof o=="number"||typeof o=="bigint")&&ai(e,""+o);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"onClick":o!=null&&(e.onclick=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gf.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),n=i.slice(2,u?i.length-7:void 0),f=e[jt]||null,f=f!=null?f[i]:null,typeof f=="function"&&e.removeEventListener(n,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,u);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):po(e,i,o)}}}function St(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var o=!1,u=!1,f;for(f in i)if(i.hasOwnProperty(f)){var g=i[f];if(g!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Qe(e,n,f,g,i,null)}}u&&Qe(e,n,"srcSet",i.srcSet,i,null),o&&Qe(e,n,"src",i.src,i,null);return;case"input":De("invalid",e);var v=f=g=u=null,A=null,C=null;for(o in i)if(i.hasOwnProperty(o)){var j=i[o];if(j!=null)switch(o){case"name":u=j;break;case"type":g=j;break;case"checked":A=j;break;case"defaultChecked":C=j;break;case"value":f=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,n));break;default:Qe(e,n,o,j,i,null)}}Sf(e,f,v,A,C,g,u,!1),ho(e);return;case"select":De("invalid",e),o=g=f=null;for(u in i)if(i.hasOwnProperty(u)&&(v=i[u],v!=null))switch(u){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":o=v;default:Qe(e,n,u,v,i,null)}n=f,i=g,e.multiple=!!o,n!=null?ni(e,!!o,n,!1):i!=null&&ni(e,!!o,i,!0);return;case"textarea":De("invalid",e),f=u=o=null;for(g in i)if(i.hasOwnProperty(g)&&(v=i[g],v!=null))switch(g){case"value":o=v;break;case"defaultValue":u=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:Qe(e,n,g,v,i,null)}kf(e,o,u,f),ho(e);return;case"option":for(A in i)if(i.hasOwnProperty(A)&&(o=i[A],o!=null))switch(A){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Qe(e,n,A,o,i,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(o=0;o<Nr.length;o++)De(Nr[o],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in i)if(i.hasOwnProperty(C)&&(o=i[C],o!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Qe(e,n,C,o,i,null)}return;default:if(Gl(n)){for(j in i)i.hasOwnProperty(j)&&(o=i[j],o!==void 0&&ju(e,n,j,o,i,void 0));return}}for(v in i)i.hasOwnProperty(v)&&(o=i[v],o!=null&&Qe(e,n,v,o,i,null))}function Hb(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,g=null,v=null,A=null,C=null,j=null;for(O in i){var P=i[O];if(i.hasOwnProperty(O)&&P!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":A=P;default:o.hasOwnProperty(O)||Qe(e,n,O,null,o,P)}}for(var D in o){var O=o[D];if(P=i[D],o.hasOwnProperty(D)&&(O!=null||P!=null))switch(D){case"type":f=O;break;case"name":u=O;break;case"checked":C=O;break;case"defaultChecked":j=O;break;case"value":g=O;break;case"defaultValue":v=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(137,n));break;default:O!==P&&Qe(e,n,D,O,o,P)}}Zl(e,g,v,A,C,j,f,u);return;case"select":O=g=v=D=null;for(f in i)if(A=i[f],i.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":O=A;default:o.hasOwnProperty(f)||Qe(e,n,f,null,o,A)}for(u in o)if(f=o[u],A=i[u],o.hasOwnProperty(u)&&(f!=null||A!=null))switch(u){case"value":D=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==A&&Qe(e,n,u,f,o,A)}n=v,i=g,o=O,D!=null?ni(e,!!i,D,!1):!!o!=!!i&&(n!=null?ni(e,!!i,n,!0):ni(e,!!i,i?[]:"",!1));return;case"textarea":O=D=null;for(v in i)if(u=i[v],i.hasOwnProperty(v)&&u!=null&&!o.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Qe(e,n,v,null,o,u)}for(g in o)if(u=o[g],f=i[g],o.hasOwnProperty(g)&&(u!=null||f!=null))switch(g){case"value":D=u;break;case"defaultValue":O=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(l(91));break;default:u!==f&&Qe(e,n,g,u,o,f)}Af(e,D,O);return;case"option":for(var me in i)if(D=i[me],i.hasOwnProperty(me)&&D!=null&&!o.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Qe(e,n,me,null,o,D)}for(A in o)if(D=o[A],O=i[A],o.hasOwnProperty(A)&&D!==O&&(D!=null||O!=null))switch(A){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Qe(e,n,A,D,o,O)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in i)D=i[fe],i.hasOwnProperty(fe)&&D!=null&&!o.hasOwnProperty(fe)&&Qe(e,n,fe,null,o,D);for(C in o)if(D=o[C],O=i[C],o.hasOwnProperty(C)&&D!==O&&(D!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(l(137,n));break;default:Qe(e,n,C,D,o,O)}return;default:if(Gl(n)){for(var Ke in i)D=i[Ke],i.hasOwnProperty(Ke)&&D!==void 0&&!o.hasOwnProperty(Ke)&&ju(e,n,Ke,void 0,o,D);for(j in o)D=o[j],O=i[j],!o.hasOwnProperty(j)||D===O||D===void 0&&O===void 0||ju(e,n,j,D,o,O);return}}for(var T in i)D=i[T],i.hasOwnProperty(T)&&D!=null&&!o.hasOwnProperty(T)&&Qe(e,n,T,null,o,D);for(P in o)D=o[P],O=i[P],!o.hasOwnProperty(P)||D===O||D==null&&O==null||Qe(e,n,P,D,o,O)}var Lu=null,zu=null;function cl(e){return e.nodeType===9?e:e.ownerDocument}function Tm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Em(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function qu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Bu=null;function Pb(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var Cm=typeof setTimeout=="function"?setTimeout:void 0,Vb=typeof clearTimeout=="function"?clearTimeout:void 0,Rm=typeof Promise=="function"?Promise:void 0,$b=typeof queueMicrotask=="function"?queueMicrotask:typeof Rm<"u"?function(e){return Rm.resolve(null).then(e).catch(Fb)}:Cm;function Fb(e){setTimeout(function(){throw e})}function ya(e){return e==="head"}function Dm(e,n){var i=n,o=0,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(0<o&&8>o){i=o;var g=e.ownerDocument;if(i&1&&jr(g.documentElement),i&2&&jr(g.body),i&4)for(i=g.head,jr(i),g=i.firstChild;g;){var v=g.nextSibling,A=g.nodeName;g[Ji]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=v}}if(u===0){e.removeChild(f),$r(n);return}u--}else i==="$"||i==="$?"||i==="$!"?u++:o=i.charCodeAt(0)-48;else o=0;i=f}while(i);$r(n)}function Hu(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Hu(i),Xl(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function Xb(e,n,i,o){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ji])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=_n(e.nextSibling),e===null)break}return null}function Yb(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=_n(e.nextSibling),e===null))return null;return e}function Pu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Qb(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function _n(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Vu=null;function Om(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function Mm(e,n,i){switch(n=cl(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function jr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Xl(e)}var gn=new Map,Um=new Set;function fl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wn=$.d;$.d={f:Kb,r:Zb,D:Jb,C:Gb,L:Wb,m:ev,X:nv,S:tv,M:av};function Kb(){var e=Wn.f(),n=nl();return e||n}function Zb(e){var n=Ga(e);n!==null&&n.tag===5&&n.type==="form"?Wp(n):Wn.r(e)}var Mi=typeof document>"u"?null:document;function Nm(e,n,i){var o=Mi;if(o&&typeof n=="string"&&n){var u=un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Um.has(u)||(Um.add(u),e={rel:e,crossOrigin:i,href:n}
vendor: 2,270 bytes, line 49
49,o.querySelector(u)===null&&(n=o.createElement("link"),St(n,"link",e),yt(n),o.head.appendChild(n)))}}function Jb(e){Wn.D(e),Nm("dns-prefetch",e,null)}function Gb(e,n){Wn.C(e,n),Nm("preconnect",e,n)}function Wb(e,n,i){Wn.L(e,n,i);var o=Mi;if(o&&e&&n){var u='link[rel="preload"][as="'+un(n)+'"]';n==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+un(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+un(i.imageSizes)+'"]')):u+='[href="'+un(e)+'"]';var f=u;switch(n){case"style":f=Ui(e);break;case"script":f=Ni(e)}gn.has(f)||(e=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),gn.set(f,e),o.querySelector(u)!==null||n==="style"&&o.querySelector(Lr(f))||n==="script"&&o.querySelector(zr(f))||(n=o.createElement("link"),St(n,"link",e),yt(n),o.head.appendChild(n)))}}function ev(e,n){Wn.m(e,n);var i=Mi;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+un(o)+'"][href="'+un(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ni(e)}if(!gn.has(f)&&(e=y({rel:"modulepreload",href:e},n),gn.set(f,e),i.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(zr(f)))return}o=i.createElement("link"),St(o,"link",e),yt(o),i.head.appendChild(o)}}}function tv(e,n,i){Wn.S(e,n,i);var o=Mi;if(o&&e){var u=Wa(o).hoistableStyles,f=Ui(e);n=n||"default";var g=u.get(f);if(!g){var v={loading:0,preload:null};if(g=o.querySelector(Lr(f)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},i),(i=gn.get(f))&&$u(e,i);var A=g=o.createElement("link");yt(A),St(A,"link",e),A._p=new Promise(function(C,j){A.onload=C,A.onerror=j}),A.addEventListener("load",function(){v.loading|=1}),A.addEventListener("error",function(){v.loading|=2}),v.loading|=4,pl(g,n,o)}g={type:"stylesheet",instance:g,count:1,state:v},u.set(f,g)}}}function nv(e,n){Wn.X(e,n);var i=Mi;if(i&&e){var o=Wa(i).hoistableScripts,u=Ni(e),f=o.get(u);f||(f=i.querySelector(zr(u)),f||(e=y({src:e,async:!0},n),(n=gn.get(u))&&Fu(e,n),f=i.createElement("script"),yt(f),St(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}
vendor: 16,897 bytes, line 49
49function av(e,n){Wn.M(e,n);var i=Mi;if(i&&e){var o=Wa(i).hoistableScripts,u=Ni(e),f=o.get(u);f||(f=i.querySelector(zr(u)),f||(e=y({src:e,async:!0,type:"module"},n),(n=gn.get(u))&&Fu(e,n),f=i.createElement("script"),yt(f),St(f,"link",e),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Im(e,n,i,o){var u=(u=re.current)?fl(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Ui(i.href),i=Wa(u).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Ui(i.href);var f=Wa(u).hoistableStyles,g=f.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=u.querySelector(Lr(e)))&&!f._p&&(g.instance=f,g.state.loading=5),gn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},gn.set(e,i),f||iv(u,e,i,g.state))),n&&o===null)throw Error(l(528,""));return g}if(n&&o!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ni(i),i=Wa(u).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ui(e){return'href="'+un(e)+'"'}function Lr(e){return'link[rel="stylesheet"]['+e+"]"}function jm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function iv(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),St(n,"link",i),yt(n),e.head.appendChild(n))}function Ni(e){return'[src="'+un(e)+'"]'}function zr(e){return"script[async]"+e}function Lm(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+un(i.href)+'"]');if(o)return n.instance=o,yt(o),o;var u=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),yt(o),St(o,"style",u),pl(o,i.precedence,e),n.instance=o;case"stylesheet":u=Ui(i.href);var f=e.querySelector(Lr(u));if(f)return n.state.loading|=4,n.instance=f,yt(f),f;o=jm(i),(u=gn.get(u))&&$u(o,u),f=(e.ownerDocument||e).createElement("link"),yt(f);var g=f;return g._p=new Promise(function(v,A){g.onload=v,g.onerror=A}),St(f,"link",o),n.state.loading|=4,pl(f,i.precedence,e),n.instance=f;case"script":return f=Ni(i.src),(u=e.querySelector(zr(f)))?(n.instance=u,yt(u),u):(o=i,(u=gn.get(f))&&(o=y({},i),Fu(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),yt(u),St(u,"link",o),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,pl(o,i.precedence,e));return n.instance}function pl(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,g=0;g<o.length;g++){var v=o[g];if(v.dataset.precedence===n)f=v;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function $u(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Fu(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var dl=null;function zm(e,n,i){if(dl===null){var o=new Map,u=dl=new Map;u.set(i,o)}else u=dl,o=u.get(i),o||(o=new Map,u.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var f=i[u];if(!(f[Ji]||f[Et]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=o.get(g);v?v.push(f):o.set(g,[f])}}return o}function qm(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function rv(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var qr=null;function ov(){}function lv(e,n,i){if(qr===null)throw Error(l(475));var o=qr;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Ui(i.href),f=e.querySelector(Lr(u));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=ml.bind(o),e.then(o,o)),n.state.loading|=4,n.instance=f,yt(f);return}f=e.ownerDocument||e,i=jm(i),(u=gn.get(u))&&$u(i,u),f=f.createElement("link"),yt(f);var g=f;g._p=new Promise(function(v,A){g.onload=v,g.onerror=A}),St(f,"link",i),n.instance=f}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(o.count++,n=ml.bind(o),e.addEventListener("load",n),e.addEventListener("error",n))}}function sv(){if(qr===null)throw Error(l(475));var e=qr;return e.stylesheets&&e.count===0&&Xu(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Xu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function ml(){if(this.count--,this.count===0){if(this.stylesheets)Xu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hl=null;function Xu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hl=new Map,n.forEach(uv,e),hl=null,ml.call(e))}function uv(e,n){if(!(n.state.loading&4)){var i=hl.get(e);if(i)var o=i.get(null);else{i=new Map,hl.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var g=u[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),o=g)}o&&i.set(null,o)}u=n.instance,g=u.getAttribute("data-precedence"),f=i.get(g)||o,f===o&&i.set(null,u),i.set(g,u),this.count++,o=ml.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Br={$$typeof:Q,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function cv(e,n,i,o,u,f,g,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pl(0),this.hiddenUpdates=Pl(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Hm(e,n,i,o,u,f,g,v,A,C,j,P){return e=new cv(e,n,i,g,v,A,C,P),n=1,f===!0&&(n|=24),f=Zt(3,null,null,n),e.current=f,f.stateNode=e,n=Es(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:o,isDehydrated:i,cache:n},Os(f),e}function Pm(e){return e?(e=fi,e):fi}function Vm(e,n,i,o,u,f){u=Pm(u),o.context===null?o.context=u:o.pendingContext=u,o=ia(n),o.payload={element:i},f=f===void 0?null:f,f!==null&&(o.callback=f),i=ra(e,o,n),i!==null&&(tn(i,e,n),gr(i,e,n))}function $m(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Yu(e,n){$m(e,n),(e=e.alternate)&&$m(e,n)}function Fm(e){if(e.tag===13){var n=ci(e,67108864);n!==null&&tn(n,e,67108864),Yu(e,67108864)}}var gl=!0;function fv(e,n,i,o){var u=M.T;M.T=null;var f=$.p;try{$.p=2,Qu(e,n,i,o)}finally{$.p=f,M.T=u}}function pv(e,n,i,o){var u=M.T;M.T=null;var f=$.p;try{$.p=8,Qu(e,n,i,o)}finally{$.p=f,M.T=u}}function Qu(e,n,i,o){if(gl){var u=Ku(o);if(u===null)Iu(e,n,o,yl,i),Ym(e,o);else if(mv(u,e,n,i,o))o.stopPropagation();else if(Ym(e,o),n&4&&-1<dv.indexOf(e)){for(;u!==null;){var f=Ga(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Qt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var A=1<<31-de(g);v.entanglements[1]|=A,g&=~A}On(f),($e&6)===0&&(el=Xt()+500,Ur(0))}}break;case 13:v=ci(f,2),v!==null&&tn(v,f,2),nl(),Yu(f,2)}if(f=Ku(o),f===null&&Iu(e,n,o,yl,i),f===u)break;u=f}u!==null&&o.stopPropagation()}else Iu(e,n,o,null,i)}}function Ku(e){return e=es(e),Zu(e)}var yl=null;function Zu(e){if(yl=null,e=Ja(e),e!==null){var n=c(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=p(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return yl=e,null}function Xm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zl()){case Qi:return 2;case Ki:return 8;case Ka:case ql:return 32;case fo:return 268435456;default:return 32}default:return 32}}var Ju=!1,ba=null,va=null,wa=null,Hr=new Map,Pr=new Map,_a=[],dv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ym(e,n){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":Hr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pr.delete(n.pointerId)}}function Vr(e,n,i,o,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},n!==null&&(n=Ga(n),n!==null&&Fm(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function mv(e,n,i,o,u){switch(n){case"focusin":return ba=Vr(ba,e,n,i,o,u),!0;case"dragenter":return va=Vr(va,e,n,i,o,u),!0;case"mouseover":return wa=Vr(wa,e,n,i,o,u),!0;case"pointerover":var f=u.pointerId;return Hr.set(f,Vr(Hr.get(f)||null,e,n,i,o,u)),!0;case"gotpointercapture":return f=u.pointerId,Pr.set(f,Vr(Pr.get(f)||null,e,n,i,o,u)),!0}return!1}function Qm(e){var n=Ja(e.target);if(n!==null){var i=c(n);if(i!==null){if(n=i.tag,n===13){if(n=p(i),n!==null){e.blockedOn=n,ly(e.priority,function(){if(i.tag===13){var o=en();o=Vl(o);var u=ci(i,o);u!==null&&tn(u,i,o),Yu(i,o)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Ku(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);Wl=o,i.target.dispatchEvent(o),Wl=null}else return n=Ga(i),n!==null&&Fm(n),e.blockedOn=i,!1;n.shift()}return!0}function Km(e,n,i){bl(e)&&i.delete(n)}function hv(){Ju=!1,ba!==null&&bl(ba)&&(ba=null),va!==null&&bl(va)&&(va=null),wa!==null&&bl(wa)&&(wa=null),Hr.forEach(Km),Pr.forEach(Km)}function vl(e,n){e.blockedOn===n&&(e.blockedOn=null,Ju||(Ju=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hv)))}var wl=null;function Zm(e){wl!==e&&(wl=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){wl===e&&(wl=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],u=e[n+2];if(typeof o!="function"){if(Zu(o||i)===null)continue;break}var f=Ga(i);f!==null&&(e.splice(n,3),n-=3,Zs(f,{pending:!0,data:u,method:i.method,action:o},o,u))}}))}function $r(e){function n(A){return vl(A,e)}ba!==null&&vl(ba,e),va!==null&&vl(va,e),wa!==null&&vl(wa,e),Hr.forEach(n),Pr.forEach(n);for(var i=0;i<_a.length;i++){var o=_a[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_a.length&&(i=_a[0],i.blockedOn===null);)Qm(i),i.blockedOn===null&&_a.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var u=i[o],f=i[o+1],g=u[jt]||null;if(typeof f=="function")g||Zm(i);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(u=f,g=f[jt]||null)v=g.formAction;else if(Zu(u)!==null)continue}else v=g.action;typeof v=="function"?i[o+1]=v:(i.splice(o,3),o-=3),Zm(i)}}}function Gu(e){this._internalRoot=e}_l.prototype.render=Gu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,o=en();Vm(i,o,e,n,null,null)},_l.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Vm(e.current,2,null,e,null,null),nl(),n[Za]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var n=df();e={blockedOn:null,target:e,priority:n};for(var i=0;i<_a.length&&n!==0&&n<_a[i].priority;i++);_a.splice(i,0,e),i===0&&Qm(e)}};var Jm=a.version;if(Jm!=="19.1.1")throw Error(l(527,Jm,"19.1.1"));$.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=b(n),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var gv={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xl.isDisabled&&xl.supportsFiber)try{I=xl.inject(gv),F=xl}catch{}}return Xr.createRoot=function(e,n){if(!s(e))throw Error(l(299));var i=!1,o="",u=dd,f=md,g=hd,v=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks)),n=Hm(e,1,!1,null,null,i,o,u,f,g,v,null),e[Za]=n.current,Nu(e),new Gu(n)},Xr.hydrateRoot=function(e,n,i){if(!s(e))throw Error(l(299));var o=!1,u="",f=dd,g=md,v=hd,A=null,C=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks),i.formState!==void 0&&(C=i.formState)),n=Hm(e,1,!0,n,i??null,o,u,f,g,v,A,C),n.context=Pm(null),i=n.current,o=en(),o=Vl(o),u=ia(o),u.callback=null,ra(i,u,o),i=o,n.current.lanes=i,Zi(n,i),On(n),e[Za]=n.current,Nu(e),new _l(n)},Xr.version="19.1.1",Xr}var lh;function Ev(){if(lh)return tc.exports;lh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}
vendor: 1,943 bytes, line 49
49return t(),tc.exports=Tv(),tc.exports}var Cv=Ev();const Rv="/assets/chef-claude-icon-fYGIBDdT.png";function Dv(){return ve.jsxs("header",{children:[ve.jsx("img",{src:Rv}),ve.jsx("h1",{children:"Chef Claude"})]})}function Ov(t,a){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Mv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nv={};function sh(t,a){return(Nv.jsx?Uv:Mv).test(t)}const Iv=/[ \t\n\f\r]/g;function jv(t){return typeof t=="object"?t.type==="text"?uh(t.value):!1:uh(t)}function uh(t){return t.replace(Iv,"")===""}class ro{constructor(a,r,l){this.normal=r,this.property=a,l&&(this.space=l)}}ro.prototype.normal={};ro.prototype.property={};ro.prototype.space=void 0;function ug(t,a){const r={},l={};for(const s of t)Object.assign(r,s.property),Object.assign(l,s.normal);return new ro(r,l,a)}function xc(t){return t.toLowerCase()}class $t{constructor(a,r){this.attribute=r,this.property=a}}$t.prototype.attribute="";$t.prototype.booleanish=!1;$t.prototype.boolean=!1;$t.prototype.commaOrSpaceSeparated=!1;$t.prototype.commaSeparated=!1;$t.prototype.defined=!1;$t.prototype.mustUseProperty=!1;$t.prototype.number=!1;$t.prototype.overloadedBoolean=!1;$t.prototype.property="";$t.prototype.spaceSeparated=!1;$t.prototype.space=void 0;let Lv=0;const Se=Fa(),ct=Fa(),Sc=Fa(),X=Fa(),Ge=Fa(),qi=Fa(),nn=Fa();function Fa(){return 2**++Lv}const Ac=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:ct,commaOrSpaceSeparated:nn,commaSeparated:qi,number:X,overloadedBoolean:Sc,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),rc=Object.keys(Ac);class jc extends $t{constructor(a,r,l,s){let c=-1;if(super(a,r),ch(this,"space",s),typeof l=="number")for(;++c<rc.length;){const p=rc[c];ch(this,rc[c],(l&Ac[p])===Ac[p])}}}jc.prototype.defined=!0;function ch(t,a,r){r&&(t[a]=r)}
vendor: 4,430 bytes, line 49
49function Hi(t){const a={},r={};for(const[l,s]of Object.entries(t.properties)){const c=new jc(l,t.transform(t.attributes||{},l),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(c.mustUseProperty=!0),a[l]=c,r[xc(l)]=l,r[xc(c.attribute)]=l}return new ro(a,r,t.space)}const cg=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Ge,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:X,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Ge,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:ct,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function fg(t,a){return a in t?t[a]:a}function pg(t,a){return fg(t,a.toLowerCase())}const zv=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qi,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Ge,autoFocus:Se,autoPlay:Se,blocking:Ge,capture:null,charSet:null,checked:Se,cite:null,className:Ge,cols:X,colSpan:null,content:null,contentEditable:ct,controls:Se,controlsList:Ge,coords:X|qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Sc,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Ge,height:X,hidden:Sc,high:X,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:Se,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:X,pattern:null,ping:Ge,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Ge,required:Se,reversed:Se,rows:X,rowSpan:X,sandbox:Ge,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:ct,src:null,
49srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:ct,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:X,security:null,unselectable:null},space:"html",transform:pg}),qv=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
49-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nn,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:Ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qi,g2:qi,glyphName:qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,630 bytes, lines 49-50
49Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fg}),dg=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),mg=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pg}),hg=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),Bv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Hv=/[A-Z]/g,fh=/-[a-z]/g,Pv=/^data[-\w.:]+$/i;function Vv(t,a){const r=xc(a);let l=a,s=$t;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Pv.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(fh,Fv);l="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!fh.test(c)){let p=c.replace(Hv,$v);p.charAt(0)!=="-"&&(p="-"+p),a="data"+p}}s=jc}return new s(l,a)}function $v(t){return"-"+t.toLowerCase()}function Fv(t){return t.charAt(1).toUpperCase()}const Xv=ug([cg,zv,dg,mg,hg],"html"),Lc=ug([cg,qv,dg,mg,hg],"svg");function Yv(t){return t.join(" ").trim()}var Ii={},oc,ph;function Qv(){if(ph)return oc;ph=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p=/^[;\s]*/,m=/^\s+|\s+$/g,b=`
50`,d="/",y="*",w="",S="comment",_="declaration";oc=function(V,K){if(typeof V!="string")throw new TypeError("First argument must be a string");if(!V)return[];K=K||{};var H=1,G=1;function Q(ie){var J=ie.match(a);J&&(H+=J.length);var ee=ie.lastIndexOf(b);G=~ee?ie.length-ee:G+ie.length}function we(){var ie={line:H,column:G};return function(J){return J.position=new W(ie),_e(),J}}function W(ie){this.start=ie,this.end={line:H,column:G},this.source=K.source}W.prototype.content=V;function L(ie){var J=new Error(K.source+":"+H+":"+G+": "+ie);if(J.reason=ie,J.filename=K.source,J.line=H,J.column=G,J.source=V,!K.silent)throw J}function ue(ie){var J=ie.exec(V);if(J){var ee=J[0];return Q(ee),V=V.slice(ee.length),J}}function _e(){ue(r)}function ye(ie){var J;for(ie=ie||[];J=Ae();
vendor: 4,488 bytes, line 50
50)J!==!1&&ie.push(J);return ie}function Ae(){var ie=we();if(!(d!=V.charAt(0)||y!=V.charAt(1))){for(var J=2;w!=V.charAt(J)&&(y!=V.charAt(J)||d!=V.charAt(J+1));)++J;if(J+=2,w===V.charAt(J-1))return L("End of comment missing");var ee=V.slice(2,J-2);return G+=2,Q(ee),V=V.slice(J),G+=2,ie({type:S,comment:ee})}}function ae(){var ie=we(),J=ue(l);if(J){if(Ae(),!ue(s))return L("property missing ':'");var ee=ue(c),M=ie({type:_,property:B(J[0].replace(t,w)),value:ee?B(ee[0].replace(t,w)):w});return ue(p),M}}function Z(){var ie=[];ye(ie);for(var J;J=ae();)J!==!1&&(ie.push(J),ye(ie));return ie}return _e(),Z()};function B(V){return V?V.replace(m,w):w}return oc}var dh;function Kv(){if(dh)return Ii;dh=1;var t=Ii&&Ii.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=r;var a=t(Qv());function r(l,s){var c=null;if(!l||typeof l!="string")return c;var p=(0,a.default)(l),m=typeof s=="function";return p.forEach(function(b){if(b.type==="declaration"){var d=b.property,y=b.value;m?s(d,y,b):y&&(c=c||{},c[d]=y)}}),c}return Ii}var Yr={},mh;function Zv(){if(mh)return Yr;mh=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(d){return!d||r.test(d)||t.test(d)},p=function(d,y){return y.toUpperCase()},m=function(d,y){return"".concat(y,"-")},b=function(d,y){return y===void 0&&(y={}),c(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(s,m):d=d.replace(l,m),d.replace(a,p))};return Yr.camelCase=b,Yr}var Qr,hh;function Jv(){if(hh)return Qr;hh=1;var t=Qr&&Qr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=t(Kv()),r=Zv();function l(s,c){var p={};return!s||typeof s!="string"||(0,a.default)(s,function(m,b){m&&b&&(p[(0,r.camelCase)(m,c)]=b)}),p}return l.default=l,Qr=l,Qr}var Gv=Jv();const Wv=Nc(Gv),gg=yg("end"),zc=yg("start");function yg(t){return a;function a(r){const l=r&&r.position&&r.position[t]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function ew(t){const a=zc(t),r=gg(t);if(a&&r)return{start:a,end:r}}function eo(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?gh(t.position):"start"in t||"end"in t?gh(t):"line"in t||"column"in t?kc(t):""}function kc(t){return yh(t&&t.line)+":"+yh(t&&t.column)}function gh(t){return kc(t&&t.start)+"-"+kc(t&&t.end)}function yh(t){return t&&typeof t=="number"?t:1}class Dt extends Error{constructor(a,r,l){super(),typeof r=="string"&&(l=r,r=void 0);let s="",c={},p=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof a=="string"?s=a:!c.cause&&a&&(p=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof l=="string"){const b=l.indexOf(":");b===-1?c.ruleId=l:(c.source=l.slice(0,b),c.ruleId=l.slice(b+1))}if(!c.place&&c.ancestors&&c.ancestors){const b=c.ancestors[c.ancestors.length-1];b&&(c.place=b.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=m?m.line:void 0,this.name=eo(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=p&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Dt.prototype.file="";Dt.prototype.name="";Dt.prototype.reason="";Dt.prototype.message="";Dt.prototype.stack="";Dt.prototype.column=void 0;Dt.prototype.line=void 0;Dt.prototype.ancestors=void 0;Dt.prototype.cause=void 0;Dt.prototype.fatal=void 0;Dt.prototype.place=void 0;Dt.prototype.ruleId=void 0;Dt.prototype.source=void 0;const qc={}.hasOwnProperty,tw=new Map,nw=/[A-Z]/g,aw=new Set(["table","tbody","thead","tfoot","tr"]),iw=new Set(["td","th"]),bg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rw(t,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let l;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=dw(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,411 bytes, line 50
50if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=pw(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:l,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Lc:Xv,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=vg(s,t,void 0);return c&&typeof c!="string"?c:s.create(t,s.Fragment,{children:c||void 0},void 0)}function vg(t,a,r){if(a.type==="element")return ow(t,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return lw(t,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return uw(t,a,r);if(a.type==="mdxjsEsm")return sw(t,a);if(a.type==="root")return cw(t,a,r);if(a.type==="text")return fw(t,a)}function ow(t,a,r){const l=t.schema;let s=l;a.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=Lc,t.schema=s),t.ancestors.push(a);const c=_g(t,a.tagName,!1),p=mw(t,a);let m=Hc(t,a);return aw.has(a.tagName)&&(m=m.filter(function(b){return typeof b=="string"?!jv(b):!0})),wg(t,p,c,a),Bc(p,m),t.ancestors.pop(),t.schema=l,t.create(a,c,p,r)}function lw(t,a){if(a.data&&a.data.estree&&t.evaluater){const l=a.data.estree.body[0];return l.type,t.evaluater.evaluateExpression(l.expression)}io(t,a.position)}function sw(t,a){if(a.data&&a.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(a.data.estree);io(t,a.position)}function uw(t,a,r){const l=t.schema;let s=l;a.name==="svg"&&l.space==="html"&&(s=Lc,t.schema=s),t.ancestors.push(a);const c=a.name===null?t.Fragment:_g(t,a.name,!0),p=hw(t,a),m=Hc(t,a);return wg(t,p,c,a),Bc(p,m),t.ancestors.pop(),t.schema=l,t.create(a,c,p,r)}function cw(t,a,r){const l={};return Bc(l,Hc(t,a)),t.create(a,t.Fragment,l,r)}function fw(t,a){return a.value}function wg(t,a,r,l){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(a.node=l)}function Bc(t,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(t.children=r)}}function pw(t,a,r){return l;function l(s,c,p,m){const d=Array.isArray(p.children)?r:a;return m?d(c,p,m):d(c,p)}}function dw(t,a){return r;function r(l,s,c,p){const m=Array.isArray(c.children),b=zc(l);return a(s,c,p,m,{columnNumber:b?b.column-1:void 0,fileName:t,lineNumber:b?b.line:void 0},void 0)}}function mw(t,a){const r={};let l,s;for(s in a.properties)if(s!=="children"&&qc.call(a.properties,s)){const c=gw(t,s,a.properties[s]);if(c){const[p,m]=c;t.tableCellAlignToStyle&&p==="align"&&typeof m=="string"&&iw.has(a.tagName)?l=m:r[p]=m}}if(l){const c=r.style||(r.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return r}function hw(t,a){const r={};for(const l of a.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&t.evaluater){const c=l.data.estree.body[0];c.type;const p=c.expression;p.type;const m=p.properties[0];m.type,Object.assign(r,t.evaluater.evaluateExpression(m.argument))}else io(t,a.position);else{const s=l.name;let c;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&t.evaluater){const m=l.value.data.estree.body[0];m.type,c=t.evaluater.evaluateExpression(m.expression)}else io(t,a.position);else c=l.value===null?!0:l.value;r[s]=c}return r}function Hc(t,a){const r=[];let l=-1;const s=t.passKeys?new Map:tw;for(;++l<a.children.length;){const c=a.children[l];let p;if(t.passKeys){const b=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(b){const d=s.get(b)||0;p=b+"-"+d,s.set(b,d+1)}}const m=vg(t,c,p);m!==void 0&&r.push(m)}return r}function gw(t,a,r){const l=Vv(t.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=l.commaSeparated?Ov(r):Yv(r)),l.property==="style"){let s=typeof r=="object"?r:yw(t,String(r));return t.stylePropertyNameCase==="css"&&(s=bw(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&l.space?Bv[l.property]||l.property:l.attribute,r]}}function yw(t,a){try{return Wv(a,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const l=r,s=new Dt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=bg+"#cannot-parse-style-attribute",s}}function _g(t,a,r){let l;if(!r)l={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,p;for(;++c<s.length;){const m=sh(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};p=p?{type:"MemberExpression",object:p,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}l=p}else l=sh(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(l.type==="Literal"){const s=l.value;return qc.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(l);io(t)}function io(t,a){const r=new Dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=bg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function bw(t){const a={};let r;for(r in t)qc.call(t,r)&&(a[vw(r)]=t[r]);return a}function vw(t){let a=t.replace(nw,ww);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function ww(t){return"-"+t.toLowerCase()}const lc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_w={};function xw(t,a){const r=_w,l=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return xg(t,l,s)}function xg(t,a,r){if(Sw(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return bh(t.children,a,r)}return Array.isArray(t)?bh(t,a,r):""}function bh(t,a,r){const l=[];let s=-1;for(;++s<t.length;)l[s]=xg(t[s],a,r);return l.join("")}function Sw(t){return!!(t&&typeof t=="object")}const vh=document.createElement("i");function Pc(t){const a="&"+t+";";vh.innerHTML=a;const r=vh.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===a?!1:r}function In(t,a,r,l){const s=t.length;let c=0,p;
vendor: 10,809 bytes, line 50
50if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,l.length<1e4)p=Array.from(l),p.unshift(a,r),t.splice(...p);else for(r&&t.splice(a,r);c<l.length;)p=l.slice(c,c+1e4),p.unshift(a,0),t.splice(...p),c+=1e4,a+=1e4}function yn(t,a){return t.length>0?(In(t,t.length,0,a),t):a}const wh={}.hasOwnProperty;function Aw(t){const a={};let r=-1;for(;++r<t.length;)kw(a,t[r]);return a}function kw(t,a){let r;for(r in a){const s=(wh.call(t,r)?t[r]:void 0)||(t[r]={}),c=a[r];let p;if(c)for(p in c){wh.call(s,p)||(s[p]=[]);const m=c[p];Tw(s[p],Array.isArray(m)?m:m?[m]:[])}}}function Tw(t,a){let r=-1;const l=[];for(;++r<a.length;)(a[r].add==="after"?t:l).push(a[r]);In(t,0,0,l)}function Sg(t,a){const r=Number.parseInt(t,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Bi(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Un=ka(/[A-Za-z]/),an=ka(/[\dA-Za-z]/),Ew=ka(/[#-'*+\--9=?A-Z^-~]/);function Tc(t){return t!==null&&(t<32||t===127)}const Ec=ka(/\d/),Cw=ka(/[\dA-Fa-f]/),Rw=ka(/[!-/:-@[-`{-~]/);function ge(t){return t!==null&&t<-2}function Vt(t){return t!==null&&(t<0||t===32)}function He(t){return t===-2||t===-1||t===32}const Dw=ka(new RegExp("\\p{P}|\\p{S}","u")),Ow=ka(/\s/);function ka(t){return a;function a(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Pi(t){const a=[];let r=-1,l=0,s=0;for(;++r<t.length;){const c=t.charCodeAt(r);let p="";if(c===37&&an(t.charCodeAt(r+1))&&an(t.charCodeAt(r+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(p=String.fromCharCode(c));else if(c>55295&&c<57344){const m=t.charCodeAt(r+1);c<56320&&m>56319&&m<57344?(p=String.fromCharCode(c,m),s=1):p="�"}else p=String.fromCharCode(c);p&&(a.push(t.slice(l,r),encodeURIComponent(p)),l=r+s+1,p=""),s&&(r+=s,s=0)}return a.join("")+t.slice(l)}function We(t,a,r,l){const s=l?l-1:Number.POSITIVE_INFINITY;let c=0;return p;function p(b){return He(b)?(t.enter(r),m(b)):a(b)}function m(b){return He(b)&&c++<s?(t.consume(b),m):(t.exit(r),a(b))}}const Mw={tokenize:Uw};function Uw(t){const a=t.attempt(this.parser.constructs.contentInitial,l,s);let r;return a;function l(m){if(m===null){t.consume(m);return}return t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),We(t,a,"linePrefix")}function s(m){return t.enter("paragraph"),c(m)}function c(m){const b=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=b),r=b,p(m)}function p(m){if(m===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(m);return}return ge(m)?(t.consume(m),t.exit("chunkText"),c):(t.consume(m),p)}}const Nw={tokenize:Iw},_h={tokenize:jw};function Iw(t){const a=this,r=[];let l=0,s,c,p;return m;function m(Q){if(l<r.length){const we=r[l];return a.containerState=we[1],t.attempt(we[0].continuation,b,d)(Q)}return d(Q)}function b(Q){if(l++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&G();const we=a.events.length;let W=we,L;for(;W--;)if(a.events[W][0]==="exit"&&a.events[W][1].type==="chunkFlow"){L=a.events[W][1].end;break}H(l);let ue=we;for(;ue<a.events.length;)a.events[ue][1].end={...L},ue++;return In(a.events,W+1,0,a.events.slice(we)),a.events.length=ue,d(Q)}return m(Q)}function d(Q){if(l===r.length){if(!s)return S(Q);if(s.currentConstruct&&s.currentConstruct.concrete)return B(Q);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(_h,y,w)(Q)}function y(Q){return s&&G(),H(l),S(Q)}function w(Q){return a.parser.lazy[a.now().line]=l!==r.length,p=a.now().offset,B(Q)}function S(Q){return a.containerState={},t.attempt(_h,_,B)(Q)}function _(Q){return l++,r.push([a.currentConstruct,a.containerState]),S(Q)}function B(Q){if(Q===null){s&&G(),H(0),t.consume(Q);return}return s=s||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),V(Q)}function V(Q){if(Q===null){K(t.exit("chunkFlow"),!0),H(0),t.consume(Q);return}return ge(Q)?(t.consume(Q),K(t.exit("chunkFlow")),l=0,a.interrupt=void 0,m):(t.consume(Q),V)}function K(Q,we){const W=a.sliceStream(Q);if(we&&W.push(null),Q.previous=c,c&&(c.next=Q),c=Q,s.defineSkip(Q.start),s.write(W),a.parser.lazy[Q.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<p&&(!s.events[L][1].end||s.events[L][1].end.offset>p))return;const ue=a.events.length;let _e=ue,ye,Ae;for(;_e--;)if(a.events[_e][0]==="exit"&&a.events[_e][1].type==="chunkFlow"){if(ye){Ae=a.events[_e][1].end;break}ye=!0}for(H(l),L=ue;L<a.events.length;)a.events[L][1].end={...Ae},L++;In(a.events,_e+1,0,a.events.slice(ue)),a.events.length=L}}function H(Q){let we=r.length;for(;we-- >Q;){const W=r[we];a.containerState=W[1],W[0].exit.call(a,t)}r.length=Q}function G(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function jw(t,a,r){return We(t,t.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xh(t){if(t===null||Vt(t)||Ow(t))return 1;if(Dw(t))return 2}function Vc(t,a,r){const l=[];let s=-1;for(;++s<t.length;){const c=t[s].resolveAll;c&&!l.includes(c)&&(a=c(a,r),l.push(c))}return a}const Cc={name:"attention",resolveAll:Lw,tokenize:zw};function Lw(t,a){let r=-1,l,s,c,p,m,b,d,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(l=r;l--;)if(t[l][0]==="exit"&&t[l][1].type==="attentionSequence"&&t[l][1]._open&&a.sliceSerialize(t[l][1]).charCodeAt(0)===a.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[l][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[l][1].end.offset-t[l][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;b=t[l][1].end.offset-t[l][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const w={...t[l][1].end},S={...t[r][1].start};Sh(w,-b),Sh(S,b),p={type:b>1?"strongSequence":"emphasisSequence",start:w,end:{...t[l][1].end}},m={type:b>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:S},c={type:b>1?"strongText":"emphasisText",start:{...t[l][1].end},end:{...t[r][1].start}},s={type:b>1?"strong":"emphasis",start:{...p.start},end:{...m.end}},t[l][1].end={...p.start},t[r][1].start={...m.end},d=[],t[l][1].end.offset-t[l][1].start.offset&&(d=yn(d,[["enter",t[l][1],a],["exit",t[l][1],a]])),d=yn(d,[["enter",s,a],["enter",p,a],["exit",p,a],["enter",c,a]]),d=yn(d,Vc(a.parser.constructs.insideSpan.null,t.slice(l+1,r),a)),d=yn(d,[["exit",c,a],["enter",m,a],["exit",m,a],["exit",s,a]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,d=yn(d,[["enter",t[r][1],a],["exit",t[r][1],a]])):y=0,In(t,l-1,r-l+3,d),r=l+d.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function zw(t,a){const r=this.parser.constructs.attentionMarkers.null,l=this.previous,s=xh(l);let c;return p;function p(b){return c=b,t.enter("attentionSequence"),m(b)}function m(b){if(b===c)return t.consume(b),m;const d=t.exit("attentionSequence"),y=xh(b),w=!y||y===2&&s||r.includes(b),S=!s||s===2&&y||r.includes(l);return d._open=!!(c===42?w:w&&(s||!S)),d._close=!!(c===42?S:S&&(y||!w)),a(b)}}function Sh(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const qw={name:"autolink",tokenize:Bw};function Bw(t,a,r){let l=0;return s;function s(_){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(_){return Un(_)?(t.consume(_),p):_===64?r(_):d(_)}function p(_){return _===43||_===45||_===46||an(_)?(l=1,m(_)):d(_)}function m(_){return _===58?(t.consume(_),l=0,b):(_===43||_===45||_===46||an(_))&&l++<32?(t.consume(_),m):(l=0,d(_))}function b(_){return _===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),a):_===null||_===32||_===60||Tc(_)?r(_):(t.consume(_),b)}function d(_){return _===64?(t.consume(_),y):Ew(_)?(t.consume(_),d):r(_)}function y(_){return an(_)?w(_):r(_)}function w(_){return _===46?(t.consume(_),l=0,y):_===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(_),t.exit("autolinkMarker"),t.exit("autolink"),a):S(_)}function S(_){if((_===45||an(_))&&l++<63){const B=_===45?S:w;return t.consume(_),B}return r(_)}}const Ol={partial:!0,tokenize:Hw};function Hw(t,a,r){return l;function l(c){return He(c)?We(t,s,"linePrefix")(c):s(c)}function s(c){return c===null||ge(c)?a(c):r(c)}}const Ag={continuation:{tokenize:Vw},exit:$w,name:"blockQuote",tokenize:Pw};function Pw(t,a,r){const l=this;return s;function s(p){if(p===62){const m=l.containerState;return m.open||(t.enter("blockQuote",{_container:!0}),m.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(p),t.exit("blockQuoteMarker"),c}return r(p)}function c(p){return He(p)?(t.enter("blockQuotePrefixWhitespace"),t.consume(p),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(p))}}function Vw(t,a,r){const l=this;return s;function s(p){return He(p)?We(t,c,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):c(p)}function c(p){return t.attempt(Ag,a,r)(p)}}function $w(t){t.exit("blockQuote")}const kg={name:"characterEscape",tokenize:Fw};function Fw(t,a,r){return l;function l(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),s}function s(c){return Rw(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):r(c)}}const Tg={name:"characterReference",tokenize:Xw};function Xw(t,a,r){const l=this;let s=0,c,p;return m;function m(w){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(w),t.exit("characterReferenceMarker"),b}function b(w){return w===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(w),t.exit("characterReferenceMarkerNumeric"),d):(t.enter("characterReferenceValue"),c=31,p=an,y(w))}function d(w){return w===88||w===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(w),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,p=Cw,y):(t.enter("characterReferenceValue"),c=7,p=Ec,y(w))}function y(w){if(w===59&&s){const S=t.exit("characterReferenceValue");return p===an&&!Pc(l.sliceSerialize(S))?r(w):(t.enter("characterReferenceMarker"),t.consume(w),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return p(w)&&s++<c?(t.consume(w),y):r(w)}}const Ah={partial:!0,tokenize:Qw},kh={concrete:!0,name:"codeFenced",tokenize:Yw};function Yw(t,a,r){const l=this,s={partial:!0,tokenize:W};let c=0,p=0,m;return b;function b(L){return d(L)}function d(L){const ue=l.events[l.events.length-1];return c=ue&&ue[1].type==="linePrefix"?ue[2].sliceSerialize(ue[1],!0).length:0,m=L,t.enter("co
50deFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===m?(p++,t.consume(L),y):p<3?r(L):(t.exit("codeFencedFenceSequence"),He(L)?We(t,w,"whitespace")(L):w(L))}function w(L){return L===null||ge(L)?(t.exit("codeFencedFence"),l.interrupt?a(L):t.check(Ah,V,we)(L)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),S(L))}function S(L){return L===null||ge(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),w(L)):He(L)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),We(t,_,"whitespace")(L)):L===96&&L===m?r(L):(t.consume(L),S)}function _(L){return L===null||ge(L)?w(L):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),B(L))}function B(L){return L===null||ge(L)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),w(L)):L===96&&L===m?r(L):(t.consume(L),B)}function V(L){return t.attempt(s,we,K)(L)}function K(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),H}function H(L){return c>0&&He(L)?We(t,G,"linePrefix",c+1)(L):G(L)}function G(L){return L===null||ge(L)?t.check(Ah,V,we)(L):(t.enter("codeFlowValue"),Q(L))}function Q(L){return L===null||ge(L)?(t.exit("codeFlowValue"),G(L)):(t.consume(L),Q)}function we(L){return t.exit("codeFenced"),a(L)}function W(L,ue,_e){let ye=0;return Ae;function Ae(ee){return L.enter("lineEnding"),L.consume(ee),L.exit("lineEnding"),ae}function ae(ee){return L.enter("codeFencedFence"),He(ee)?We(L,Z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Z(ee)}function Z(ee){return ee===m?(L.enter("codeFencedFenceSequence"),ie(ee)):_e(ee)}function ie(ee){return ee===m?(ye++,L.consume(ee),ie):ye>=p?(L.exit("codeFencedFenceSequence"),He(ee)?We(L,J,"whitespace")(ee):J(ee)):_e(ee)}function J(ee){return ee===null||ge(ee)?(L.exit("codeFencedFence"),ue(ee)):_e(ee)}}}function Qw(t,a,r){const l=this;return s;function s(p){return p===null?r(p):(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c)}function c(p){return l.parser.lazy[l.now().line]?r(p):a(p)}}const sc={name:"codeIndented",tokenize:Zw},Kw={partial:!0,tokenize:Jw};function Zw(t,a,r){const l=this;return s;function s(d){return t.enter("codeIndented"),We(t,c,"linePrefix",5)(d)}function c(d){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?p(d):r(d)}function p(d){return d===null?b(d):ge(d)?t.attempt(Kw,p,b)(d):(t.enter("codeFlowValue"),m(d))}function m(d){return d===null||ge(d)?(t.exit("codeFlowValue"),p(d)):(t.consume(d),m)}function b(d){return t.exit("codeIndented"),a(d)}}function Jw(t,a,r){const l=this;return s;function s(p){return l.parser.lazy[l.now().line]?r(p):ge(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),s):We(t,c,"linePrefix",5)(p)}function c(p){const m=l.events[l.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(p):ge(p)?s(p):r(p)}}const Gw={name:"codeText",previous:e_,resolve:Ww,tokenize:t_};function Ww(t){let a=t.length-4,r=3,l,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(l=r;++l<a;)if(t[l][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(l=r-1,a++;++l<=a;)s===void 0?l!==a&&t[l][1].type!=="lineEnding"&&(s=l):(l===a||t[l][1].type==="lineEnding")&&(t[s][1].type="codeTextData",l!==s+2&&(t[s][1].end=t[l-1][1].end,t.splice(s+2,l-s-2),a-=l-s-2,l=s+2),s=void 0);return t}function e_(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function t_(t,a,r){let l=0,s,c;return p;function p(w){return t.enter("codeText"),t.enter("codeTextSequence"),m(w)}function m(w){return w===96?(t.consume(w),l++,m):(t.exit("codeTextSequence"),b(w))}function b(w){return w===null?r(w):w===32?(t.enter("space"),t.consume(w),t.exit("space"),b):w===96?(c=t.enter("codeTextSequence"),s=0,y(w)):ge(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),b):(t.enter("codeTextData"),d(w))}function d(w){return w===null||w===32||w===96||ge(w)?(t.exit("codeTextData"),b(w)):(t.consume(w),d)}function y(w){return w===96?(t.consume(w),s++,y):s===l?(t.exit("codeTextSequence"),t.exit("codeText"),a(w)):(c.type="codeTextData",d(w))}}class n_{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const l=r??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(a,l):a>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(a,r,l){const s=r||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&Kr(this.left,l),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Kr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Kr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Kr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Kr(this.left,r.reverse())}}}function Kr(t,a){let r=0;if(a.length<1e4)t.push(...a);else for(;r<a.length;)t.push(...a.slice(r,r+1e4)),r+=1e4}function Eg(t){const a={};let r=-1,l,s,c,p,m,b,d;const y=new n_(t);for(;++r<y.length;){for(;r in a;)r=a[r];if(l=y.get(r),r&&l[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(b=l[1]._tokenizer.events,c=0,c<b.length&&b[c][1].type==="lineEndingBlank"&&(c+=2),c<b.length&&b[c][1].type==="content"))for(;++c<b.length&&b[c][1].type!=="content";)b[c][1].type==="chunkText"&&(b[c][1]._isInFirstContentOfListItem=!0,c++);if(l[0]==="enter")l[1].contentType&&(Object.assign(a,a_(y,r)),r=a[r],d=!0);else if(l[1]._container){for(c=r,s=void 0;c--;)if(p=y.get(c),p[1].type==="lineEnding"||p[1].type==="lineEndingBlank")p[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),p[1].type="lineEnding",s=c);else if(!(p[1].type==="linePrefix"||p[1].type==="listItemIndent"))break;s&&(l[1].end={...y.get(s)[1].start},m=y.slice(s,r),m.unshift(l),y.splice(s,r-s+1,m))}}return In(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function a_(t,a){const r=t.get(a)[1],l=t.get(a)[2];let s=a-1;const c=[];let p=r._tokenizer;p||(p=l.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(p._contentTypeTextTrailing=!0));const m=p.events,b=[],d={};let y,w,S=-1,_=r,B=0,V=0;const K=[V];for(;_;){for(;t.get(++s)[1]!==_;);c.push(s),_._tokenizer||(y=l.sliceStream(_),_.next||y.push(null),w&&p.defineSki
vendor: 20,642 bytes, line 50
50p(_.start),_._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(y),_._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),w=_,_=_.next}for(_=r;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(V=S+1,K.push(V),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(p.events=[],_?(_._tokenizer=void 0,_.previous=void 0):K.pop(),S=K.length;S--;){const H=m.slice(K[S],K[S+1]),G=c.pop();b.push([G,G+H.length-1]),t.splice(G,2,H)}for(b.reverse(),S=-1;++S<b.length;)d[B+b[S][0]]=B+b[S][1],B+=b[S][1]-b[S][0]-1;return d}const i_={resolve:o_,tokenize:l_},r_={partial:!0,tokenize:s_};function o_(t){return Eg(t),t}function l_(t,a){let r;return l;function l(m){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(m)}function s(m){return m===null?c(m):ge(m)?t.check(r_,p,c)(m):(t.consume(m),s)}function c(m){return t.exit("chunkContent"),t.exit("content"),a(m)}function p(m){return t.consume(m),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function s_(t,a,r){const l=this;return s;function s(p){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),We(t,c,"linePrefix")}function c(p){if(p===null||ge(p))return r(p);const m=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(p):t.interrupt(l.parser.constructs.flow,r,a)(p)}}function Cg(t,a,r,l,s,c,p,m,b){const d=b||Number.POSITIVE_INFINITY;let y=0;return w;function w(H){return H===60?(t.enter(l),t.enter(s),t.enter(c),t.consume(H),t.exit(c),S):H===null||H===32||H===41||Tc(H)?r(H):(t.enter(l),t.enter(p),t.enter(m),t.enter("chunkString",{contentType:"string"}),V(H))}function S(H){return H===62?(t.enter(c),t.consume(H),t.exit(c),t.exit(s),t.exit(l),a):(t.enter(m),t.enter("chunkString",{contentType:"string"}),_(H))}function _(H){return H===62?(t.exit("chunkString"),t.exit(m),S(H)):H===null||H===60||ge(H)?r(H):(t.consume(H),H===92?B:_)}function B(H){return H===60||H===62||H===92?(t.consume(H),_):_(H)}function V(H){return!y&&(H===null||H===41||Vt(H))?(t.exit("chunkString"),t.exit(m),t.exit(p),t.exit(l),a(H)):y<d&&H===40?(t.consume(H),y++,V):H===41?(t.consume(H),y--,V):H===null||H===32||H===40||Tc(H)?r(H):(t.consume(H),H===92?K:V)}function K(H){return H===40||H===41||H===92?(t.consume(H),V):V(H)}}function Rg(t,a,r,l,s,c){const p=this;let m=0,b;return d;function d(_){return t.enter(l),t.enter(s),t.consume(_),t.exit(s),t.enter(c),y}function y(_){return m>999||_===null||_===91||_===93&&!b||_===94&&!m&&"_hiddenFootnoteSupport"in p.parser.constructs?r(_):_===93?(t.exit(c),t.enter(s),t.consume(_),t.exit(s),t.exit(l),a):ge(_)?(t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),w(_))}function w(_){return _===null||_===91||_===93||ge(_)||m++>999?(t.exit("chunkString"),y(_)):(t.consume(_),b||(b=!He(_)),_===92?S:w)}function S(_){return _===91||_===92||_===93?(t.consume(_),m++,w):w(_)}}function Dg(t,a,r,l,s,c){let p;return m;function m(S){return S===34||S===39||S===40?(t.enter(l),t.enter(s),t.consume(S),t.exit(s),p=S===40?41:S,b):r(S)}function b(S){return S===p?(t.enter(s),t.consume(S),t.exit(s),t.exit(l),a):(t.enter(c),d(S))}function d(S){return S===p?(t.exit(c),b(p)):S===null?r(S):ge(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),We(t,d,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===p||S===null||ge(S)?(t.exit("chunkString"),d(S)):(t.consume(S),S===92?w:y)}function w(S){return S===p||S===92?(t.consume(S),y):y(S)}}function to(t,a){let r;return l;function l(s){return ge(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,l):He(s)?We(t,l,r?"linePrefix":"lineSuffix")(s):a(s)}}const u_={name:"definition",tokenize:f_},c_={partial:!0,tokenize:p_};function f_(t,a,r){const l=this;let s;return c;function c(_){return t.enter("definition"),p(_)}function p(_){return Rg.call(l,t,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function m(_){return s=Bi(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),_===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),b):r(_)}function b(_){return Vt(_)?to(t,d)(_):d(_)}function d(_){return Cg(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function y(_){return t.attempt(c_,w,w)(_)}function w(_){return He(_)?We(t,S,"whitespace")(_):S(_)}function S(_){return _===null||ge(_)?(t.exit("definition"),l.parser.defined.push(s),a(_)):r(_)}}function p_(t,a,r){return l;function l(m){return Vt(m)?to(t,s)(m):r(m)}function s(m){return Dg(t,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return He(m)?We(t,p,"whitespace")(m):p(m)}function p(m){return m===null||ge(m)?a(m):r(m)}}const d_={name:"hardBreakEscape",tokenize:m_};function m_(t,a,r){return l;function l(c){return t.enter("hardBreakEscape"),t.consume(c),s}function s(c){return ge(c)?(t.exit("hardBreakEscape"),a(c)):r(c)}}const h_={name:"headingAtx",resolve:g_,tokenize:y_};function g_(t,a){let r=t.length-2,l=3,s,c;return t[l][1].type==="whitespace"&&(l+=2),r-2>l&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(l===r-1||r-4>l&&t[r-2][1].type==="whitespace")&&(r-=l+1===r?2:4),r>l&&(s={type:"atxHeadingText",start:t[l][1].start,end:t[r][1].end},c={type:"chunkText",start:t[l][1].start,end:t[r][1].end,contentType:"text"},In(t,l,r-l+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),t}function y_(t,a,r){let l=0;return s;function s(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),p(y)}function p(y){return y===35&&l++<6?(t.consume(y),p):y===null||Vt(y)?(t.exit("atxHeadingSequence"),m(y)):r(y)}function m(y){return y===35?(t.enter("atxHeadingSequence"),b(y)):y===null||ge(y)?(t.exit("atxHeading"),a(y)):He(y)?We(t,m,"whitespace")(y):(t.enter("atxHeadingText"),d(y))}function b(y){return y===35?(t.consume(y),b):(t.exit("atxHeadingSequence"),m(y))}function d(y){return y===null||y===35||Vt(y)?(t.exit("atxHeadingText"),m(y)):(t.consume(y),d)}}const b_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Th=["pre","script","style","textarea"],v_={concrete:!0,name:"htmlFlow",resolveTo:x_,tokenize:S_},w_={partial:!0,tokenize:k_},__={partial:!0,tokenize:A_};function x_(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function S_(t,a,r){const l=this;let s,c,p,m,b;return d;function d(x){return y(x)}function y(x){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(x),w}function w(x){return x===33?(t.consume(x),S):x===47?(t.consume(x),c=!0,V):x===63?(t.consume(x),s=3,l.interrupt?a:h):Un(x)?(t.consume(x),p=String.fromCharCode(x),K):r(x)}function S(x){return x===45?(t.consume(x),s=2,_):x===91?(t.consume(x),s=5,m=0,B):Un(x)?(t.consume(x),s=4,l.interrupt?a:h):r(x)}function _(x){return x===45?(t.consume(x),l.interrupt?a:h):r(x)}function B(x){const te="CDATA[";return x===te.charCodeAt(m++)?(t.consume(x),m===te.length?l.interrupt?a:Z:B):r(x)}function V(x){return Un(x)?(t.consume(x),p=String.fromCharCode(x),K):r(x)}function K(x){if(x===null||x===47||x===62||Vt(x)){const te=x===47,ke=p.toLowerCase();return!te&&!c&&Th.includes(ke)?(s=1,l.interrupt?a(x):Z(x)):b_.includes(p.toLowerCase())?(s=6,te?(t.consume(x),H):l.interrupt?a(x):Z(x)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?r(x):c?G(x):Q(x))}return x===45||an(x)?(t.consume(x),p+=String.fromCharCode(x),K):r(x)}function H(x){return x===62?(t.consume(x),l.interrupt?a:Z):r(x)}function G(x){return He(x)?(t.consume(x),G):Ae(x)}function Q(x){return x===47?(t.consume(x),Ae):x===58||x===95||Un(x)?(t.consume(x),we):He(x)?(t.consume(x),Q):Ae(x)}function we(x){return x===45||x===46||x===58||x===95||an(x)?(t.consume(x),we):W(x)}function W(x){return x===61?(t.consume(x),L):He(x)?(t.consume(x),W):Q(x)}function L(x){return x===null||x===60||x===61||x===62||x===96?r(x):x===34||x===39?(t.consume(x),b=x,ue):He(x)?(t.consume(x),L):_e(x)}function ue(x){return x===b?(t.consume(x),b=null,ye):x===null||ge(x)?r(x):(t.consume(x),ue)}function _e(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||Vt(x)?W(x):(t.consume(x),_e)}function ye(x){return x===47||x===62||He(x)?Q(x):r(x)}function Ae(x){return x===62?(t.consume(x),ae):r(x)}function ae(x){return x===null||ge(x)?Z(x):He(x)?(t.consume(x),ae):r(x)}function Z(x){return x===45&&s===2?(t.consume(x),M):x===60&&s===1?(t.consume(x),$):x===62&&s===4?(t.consume(x),U):x===63&&s===3?(t.consume(x),h):x===93&&s===5?(t.consume(x),N):ge(x)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(w_,Y,ie)(x)):x===null||ge(x)?(t.exit("htmlFlowData"),ie(x)):(t.consume(x),Z)}function ie(x){return t.check(__,J,Y)(x)}function J(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),ee}function ee(x){return x===null||ge(x)?ie(x):(t.enter("htmlFlowData"),Z(x))}function M(x){return x===45?(t.consume(x),h):Z(x)}function $(x){return x===47?(t.consume(x),p="",R):Z(x)}function R(x){if(x===62){const te=p.toLowerCase();return Th.includes(te)?(t.consume(x),U):Z(x)}return Un(x)&&p.length<8?(t.consume(x),p+=String.fromCharCode(x),R):Z(x)}function N(x){return x===93?(t.consume(x),h):Z(x)}function h(x){return x===62?(t.consume(x),U):x===45&&s===2?(t.consume(x),h):Z(x)}function U(x){return x===null||ge(x)?(t.exit("htmlFlowData"),Y(x)):(t.consume(x),U)}function Y(x){return t.exit("htmlFlow"),a(x)}}function A_(t,a,r){const l=this;return s;function s(p){return ge(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):r(p)}function c(p){return l.parser.lazy[l.now().line]?r(p):a(p)}}function k_(t,a,r){return l;function l(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Ol,a,r)}}const T_={name:"htmlText",tokenize:E_};function E_(t,a,r){const l=this;let s,c,p;return m;function m(h){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(h),b}function b(h){return h===33?(t.consume(h),d):h===47?(t.consume(h),W):h===63?(t.consume(h),Q):Un(h)?(t.consume(h),_e):r(h)}function d(h){return h===45?(t.consume(h),y):h===91?(t.consume(h),c=0,B):Un(h)?(t.consume(h),G):r(h)}function y(h){return h===45?(t.consume(h),_):r(h)}function w(h){return h===null?r(h):h===45?(t.consume(h),S):ge(h)?(p=w,$(h)):(t.consume(h),w)}function S(h){return h===45?(t.consume(h),_):w(h)}function _(h){return h===62?M(h):h===45?S(h):w(h)}function B(h){const U="CDATA[";return h===U.charCodeAt(c++)?(t.consume(h),c===U.length?V:B):r(h)}function V(h){return h===null?r(h):h===93?(t.consume(h),K):ge(h)?(p=V,$(h)):(t.consume(h),V)}function K(h){return h===93?(t.consume(h),H):V(h)}function H(h){return h===62?M(h):h===93?(t.consume(h),H):V(h)}function G(h){return h===null||h===62?M(h):ge(h)?(p=G,$(h)):(t.consume(h),G)}function Q(h){return h===null?r(h):h===63?(t.consume(h),we):ge(h)?(p=Q,$(h)):(t.consume(h),Q)}function we(h){return h===62?M(h):Q(h)}function W(h){return Un(h)?(t.consume(h),L):r(h)}function L(h){return h===45||an(h)?(t.consume(h),L):ue(h)}function ue(h){return ge(h)?(p=ue,$(h)):He(h)?(t.consume(h),ue):M(h)}function _e(h){return h===45||an(h)?(t.consume(h),_e):h===47||h===62||Vt(h)?ye(h):r(h)}function ye(h){return h===47?(t.consume(h),M):h===58||h===95||Un(h)?(t.consume(h),Ae):ge(h)?(p=ye,$(h)):He(h)?(t.consume(h),ye):M(h)}function Ae(h){return h===45||h===46||h===58||h===95||an(h)?(t.consume(h),Ae):ae(h)}function ae(h){return h===61?(t.consume(h),Z):ge(h)?(p=ae,$(h)):He(h)?(t.consume(h),ae):ye(h)}function Z(h){return h===null||h===60||h===61||h===62||h===96?r(h):h===34||h===39?(t.consume(h),s=h,ie):ge(h)?(p=Z,$(h)):He(h)?(t.consume(h),Z):(t.consume(h),J)}function ie(h){return h===s?(t.consume(h),s=void 0,ee):h===null?r(h):ge(h)?(p=ie,$(h)):(t.consume(h),ie)}function J(h){return h===null||h===34||h===39||h===60||h===61||h===96?r(h):h===47||h===62||Vt(h)?ye(h):(t.consume(h),J)}function ee(h){return h===47||h===62||Vt(h)?ye(h):r(h)}function M(h){return h===62?(t.consume(h),t.exit("htmlTextData"),t.exit("htmlText"),a):r(h)}function $(h){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),R}function R(h){return He(h)?We(t,N,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):N(h)}function N(h){return t.enter("htmlTextData"),p(h)}}const $c={name:"labelEnd",resolveAll:O_,resolveTo:M_,tokenize:U_},C_={tokenize:N_},R_={tokenize:I_},D_={tokenize:j_};function O_(t){let a=-1;const r=[];for(;++a<t.length;){const l=t[a][1];if(r.push(t[a]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",a+=s}}return t.length!==r.length&&In(t,0,t.length,r),t}function M_(t,a){let r=t.length,l=0,s,c,p,m;for(;r--;)if(s=t[r][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(p){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=r,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(p=r);const b={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},d={type:"label",start:{...t[c][1].start},end:{...t[p][1].end}},y={type:"labelText",start:{...t[c+l+2][1].end},end:{...t[p-2][1].start}};return m=[["enter",b,a],["enter",d,a]],m=yn(m,t.slice(c+1,c+l+3)),m=yn(m,[["enter",y,a]]),m=yn(m,Vc(a.parser.constructs.insideSpan.null,t.slice(c+l+4,p-3),a)),m=yn(m,[["exit",y,a],t[p-2],t[p-1],["exit",d,a]]),m=yn(m,t.slice(p+1)),m=yn(m,[["exit",b,a]]),In(t,c,t.length,m),t}function U_(t,a,r){const l=this;let s=l.events.length,c,p;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){c=l.events[s][1];break}return m;function m(S){return c?c._inactive?w(S):(p=l.parser.defined.includes(Bi(l.sliceSerialize({start:c.end,end:l.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(S),t.exit("labelMarker"),t.exit("labelEnd"),b):r(S)}function b(S){return S===40?t.attempt(C_,y,p?y:w)(S):S===91?t.attempt(R_,y,p?d:w)(S):p?y(S):w(S)}function d(S){return t.attempt(D_,y,w)(S)}function y(S){return a(S)}function w(S){return c._balanced=!0,r(S)}}function N_(t,a,r){return l;function l(w){return t.enter("resource"),t.enter("resourceMarker"),t.consume(w),t.exit("resourceMarker"),s}function s(w){return Vt(w)?to(t,c)(w):c(w)}function c(w){return w===41?y(w):Cg(t,p,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(w)}function p(w){return Vt(w)?to(t,b)(w):y(w)}function m(w){return r(w)}function b(w){return w===34||w===39||w===40?Dg(t,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(w):y(w)}function d(w){return Vt(w)?to(t,y)(w):y(w)}function y(w){return w===41?(t.enter("resourceMarker"),t.consume(w),t.exit("resourceMarker"),t.exit("resource"),a):r(w)}}function I_(t,a,r){const l=this;return s;function s(m){return Rg.call(l,t,c,p,"reference","referenceMarker","referenceString")(m)}function c(m){return l.parser.defined.includes(Bi(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?a(m):r(m)}function p(m){return r(m)}}function j_(t,a,r){return l;function l(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),s}function s(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),a):r(c)}}const L_={name:"labelStartImage",resolveAll:$c.resolveAll,tokenize:z_};function z_(t,a,r){const l=this;return s;function s(m){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(m),t.exit("labelImageMarker"),c}function c(m){return m===91?(t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelImage"),p):r(m)}function p(m){return m===94&&"_hiddenFootnoteSupport"in l.parser.constructs?r(m):a(m)}}const q_={name:"labelStartLink",resolveAll:$c.resolveAll,tokenize:B_};function B_(t,a,r){const l=this;return s;function s(p){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelLink"),c}function c(p){return p===94&&"_hiddenFootnoteSupport"in l.parser.constructs?r(p):a(p)}}const uc={name:"lineEnding",tokenize:H_};function H_(t,a){return r;function r(l){return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),We(t,a,"linePrefix")}}const Tl={name:"thematicBreak",tokenize:P_};function P_(t,a,r){let l=0,s;return c;function c(d){return t.enter("thematicBreak"),p(d)}function p(d){return s=d,m(d)}function m(d){return d===s?(t.enter("thematicBreakSequence"),b(d)):l>=3&&(d===null||ge(d))?(t.exit("thematicBreak"),a(d)):r(d)}function b(d){return d===s?(t.consume(d),l++,b):(t.exit("thematicBreakSequence"),He(d)?We(t,m,"whitespace")(d):m(d))}}const Ht={continuation:{tokenize:X_},exit:Q_,name:"list",tokenize:F_},V_={partial:!0,tokenize:K_},$_={partial:!0,tokenize:Y_};function F_(t,a,r){const l=this,s=l.events[l.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,p=0;return m;function m(_){const B=l.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(B==="listUnordered"?!l.containerState.marker||_===l.containerState.marker:Ec(_)){if(l.containerState.type||(l.containerState.type=B,t.enter(B,{_container:!0})),B==="listUnordered")return t.enter("listItemPrefix"),_===42||_===45?t.check(Tl,r,d)(_):d(_);if(!l.interrupt||_===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),b(_)}return r(_)}function b(_){return Ec(_)&&++p<10?(t.consume(_),b):(!l.interrupt||p<2)&&(l.containerState.marker?_===l.containerState.marker:_===41||_===46)?(t.exit("listItemValue"),d(_)):r(_)}function d(_){return t.enter("listItemMarker"),t.consume(_),t.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||_,t.check(Ol,l.interrupt?r:y,t.attempt(V_,S,w))}function y(_){return l.containerState.initialBlankLine=!0,c++,S(_)}function w(_){return He(_)?(t.enter("listItemPrefixWhitespace"),t.consume(_),t.exit("listItemPrefixWhitespace"),S):r(_)}function S(_){return l.containerState.size=c+l.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(_)}}function X_(t,a,r){const l=this;return l.containerState._closeFlow=void 0,t.check(Ol,s,c);function s(m){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,We(t,a,"listItemIndent",l.containerState.size+1)(m)}function c(m){return l.containerState.furtherBlankLines||!He(m)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,p(m)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,t.attempt($_,a,p)(m))}function p(m){return l.containerState._closeFlow=!0,l.interrupt=void 0,We(t,t.attempt(Ht,a,r),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Y_(t,a,r){const l=this;return We(t,s,"listItemIndent",l.containerState.size+1);function s(c){const p=l.events[l.events.length-1];return p&&p[1].type==="listItemIndent"&&p[2].sliceSerialize(p[1],!0).length===l.containerState.size?a(c):r(c)}}function Q_(t){t.exit(this.containerState.type)}function K_(t,a,r){const l=this;return We(t,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const p=l.events[l.events.length-1];return!He(c)&&p&&p[1].type==="listItemPrefixWhitespace"?a(c):r(c)}}const Eh={name:"setextUnderline",resolveTo:Z_,tokenize:J_};function Z_(t,a){let r=t.length,l,s,c;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){l=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!c&&t[r][1].type==="definition"&&(c=r);const p={type:"setextHeading",start:{...t[l][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",c?(t.splice(s,0,["enter",p,a]),t.splice(c+1,0,["exit",t[l][1],a]
vendor: 4,207 bytes, line 50
50),t[l][1].end={...t[c][1].end}):t[l][1]=p,t.push(["exit",p,a]),t}function J_(t,a,r){const l=this;let s;return c;function c(d){let y=l.events.length,w;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){w=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||w)?(t.enter("setextHeadingLine"),s=d,p(d)):r(d)}function p(d){return t.enter("setextHeadingLineSequence"),m(d)}function m(d){return d===s?(t.consume(d),m):(t.exit("setextHeadingLineSequence"),He(d)?We(t,b,"lineSuffix")(d):b(d))}function b(d){return d===null||ge(d)?(t.exit("setextHeadingLine"),a(d)):r(d)}}const G_={tokenize:W_};function W_(t){const a=this,r=t.attempt(Ol,l,t.attempt(this.parser.constructs.flowInitial,s,We(t,t.attempt(this.parser.constructs.flow,s,t.attempt(i_,s)),"linePrefix")));return r;function l(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),a.currentConstruct=void 0,r}}const ex={resolveAll:Mg()},tx=Og("string"),nx=Og("text");function Og(t){return{resolveAll:Mg(t==="text"?ax:void 0),tokenize:a};function a(r){const l=this,s=this.parser.constructs[t],c=r.attempt(s,p,m);return p;function p(y){return d(y)?c(y):m(y)}function m(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),b}function b(y){return d(y)?(r.exit("data"),c(y)):(r.consume(y),b)}function d(y){if(y===null)return!0;const w=s[y];let S=-1;if(w)for(;++S<w.length;){const _=w[S];if(!_.previous||_.previous.call(l,l.previous))return!0}return!1}}}function Mg(t){return a;function a(r,l){let s=-1,c;for(;++s<=r.length;)c===void 0?r[s]&&r[s][1].type==="data"&&(c=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==c+2&&(r[c][1].end=r[s-1][1].end,r.splice(c+2,s-c-2),s=c+2),c=void 0);return t?t(r,l):r}}function ax(t,a){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const l=t[r-1][1],s=a.sliceStream(l);let c=s.length,p=-1,m=0,b;for(;c--;){const d=s[c];if(typeof d=="string"){for(p=d.length;d.charCodeAt(p-1)===32;)m++,p--;if(p)break;p=-1}else if(d===-2)b=!0,m++;else if(d!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===t.length&&(m=0),m){const d={type:r===t.length||b||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?p:l.start._bufferIndex+p,_index:l.start._index+c,line:l.end.line,column:l.end.column-m,offset:l.end.offset-m},end:{...l.end}};l.end={...d.start},l.start.offset===l.end.offset?Object.assign(l,d):(t.splice(r,0,["enter",d,a],["exit",d,a]),r+=2)}r++}return t}const ix={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:Ag},rx={91:u_},ox={[-2]:sc,[-1]:sc,32:sc},lx={35:h_,42:Tl,45:[Eh,Tl],60:v_,61:Eh,95:Tl,96:kh,126:kh},sx={38:Tg,92:kg},ux={[-5]:uc,[-4]:uc,[-3]:uc,33:L_,38:Tg,42:Cc,60:[qw,T_],91:q_,92:[d_,kg],93:$c,95:Cc,96:Gw},cx={null:[Cc,ex]},fx={null:[42,95]},px={null:[]},dx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:fx,contentInitial:rx,disable:px,document:ix,flow:lx,flowInitial:ox,insideSpan:cx,string:sx,text:ux},Symbol.toStringTag,{value:"Module"}));function mx(t,a,r){let l={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},c=[];let p=[],m=[];const b={attempt:ue(W),check:ue(L),consume:G,enter:Q,exit:we,interrupt:ue(L,{interrupt:!0})},d={code:null,containerState:{},defineSkip:V,events:[],now:B,parser:t,previous:null,sliceSerialize:S,sliceStream:_,write:w};let y=a.tokenize.call(d,b);return a.resolveAll&&c.push(a),d;function w(ae){return p=yn(p,ae),K(),p[p.length-1]!==null?[]:(_e(a,0),d.events=Vc(c,d.events,d),d.events)}function S(ae,Z){return gx(_(ae),Z)}function _(ae){return hx(p,ae)}function B(){const{_bufferIndex:ae,_index:Z,line:ie,column:J,offset:ee}=l;return{_bufferIndex:ae,_index:Z,line:ie,column:J,offset:ee}}function V(ae){s[ae.line]=ae.column,Ae()}function K(){let ae;for(;l._index<p.length;){const Z=p[l._index];if(typeof Z=="string")for(ae=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ae&&l._bufferIndex<Z.length;
vendor: 13,840 bytes, lines 50-52
50)H(Z.charCodeAt(l._bufferIndex));else H(Z)}}function H(ae){y=y(ae)}function G(ae){ge(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,Ae()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===p[l._index].length&&(l._bufferIndex=-1,l._index++)),d.previous=ae}function Q(ae,Z){const ie=Z||{};return ie.type=ae,ie.start=B(),d.events.push(["enter",ie,d]),m.push(ie),ie}function we(ae){const Z=m.pop();return Z.end=B(),d.events.push(["exit",Z,d]),Z}function W(ae,Z){_e(ae,Z.from)}function L(ae,Z){Z.restore()}function ue(ae,Z){return ie;function ie(J,ee,M){let $,R,N,h;return Array.isArray(J)?Y(J):"tokenize"in J?Y([J]):U(J);function U(re){return pt;function pt(Ne){const Ot=Ne!==null&&re[Ne],kn=Ne!==null&&re.null,Ln=[...Array.isArray(Ot)?Ot:Ot?[Ot]:[],...Array.isArray(kn)?kn:kn?[kn]:[]];return Y(Ln)(Ne)}}function Y(re){return $=re,R=0,re.length===0?M:x(re[R])}function x(re){return pt;function pt(Ne){return h=ye(),N=re,re.partial||(d.currentConstruct=re),re.name&&d.parser.constructs.disable.null.includes(re.name)?ke():re.tokenize.call(Z?Object.assign(Object.create(d),Z):d,b,te,ke)(Ne)}}function te(re){return ae(N,h),ee}function ke(re){return h.restore(),++R<$.length?x($[R]):M}}}function _e(ae,Z){ae.resolveAll&&!c.includes(ae)&&c.push(ae),ae.resolve&&In(d.events,Z,d.events.length-Z,ae.resolve(d.events.slice(Z),d)),ae.resolveTo&&(d.events=ae.resolveTo(d.events,d))}function ye(){const ae=B(),Z=d.previous,ie=d.currentConstruct,J=d.events.length,ee=Array.from(m);return{from:J,restore:M};function M(){l=ae,d.previous=Z,d.currentConstruct=ie,d.events.length=J,m=ee,Ae()}}function Ae(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function hx(t,a){const r=a.start._index,l=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let p;if(r===s)p=[t[r].slice(l,c)];else{if(p=t.slice(r,s),l>-1){const m=p[0];typeof m=="string"?p[0]=m.slice(l):p.shift()}c>0&&p.push(t[s].slice(0,c))}return p}function gx(t,a){let r=-1;const l=[];let s;for(;++r<t.length;){const c=t[r];let p;if(typeof c=="string")p=c;else switch(c){case-5:{p="\r";break}case-4:{p=`
51`;break}case-3:{p=`\r
52`;break}case-2:{p=a?" ":"	";break}case-1:{if(!a&&s)continue;p=" ";break}default:p=String.fromCharCode(c)}s=c===-2,l.push(p)}return l.join("")}function yx(t){const l={constructs:Aw([dx,...(t||{}).extensions||[]]),content:s(Mw),defined:[],document:s(Nw),flow:s(G_),lazy:{},string:s(tx),text:s(nx)};return l;function s(c){return p;function p(m){return mx(l,c,m)}}}function bx(t){for(;!Eg(t););return t}const Ch=/[\0\t\n\r]/g;function vx(){let t=1,a="",r=!0,l;return s;function s(c,p,m){const b=[];let d,y,w,S,_;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(p||void 0).decode(c)),w=0,a="",r&&(c.charCodeAt(0)===65279&&w++,r=void 0);w<c.length;){if(Ch.lastIndex=w,d=Ch.exec(c),S=d&&d.index!==void 0?d.index:c.length,_=c.charCodeAt(S),!d){a=c.slice(w);break}if(_===10&&w===S&&l)b.push(-3),l=void 0;else switch(l&&(b.push(-5),l=void 0),w<S&&(b.push(c.slice(w,S)),t+=S-w),_){case 0:{b.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,b.push(-2);t++<y;)b.push(-1);break}case 10:{b.push(-4),t=1;break}default:l=!0,t=1}w=S+1}return m&&(l&&b.push(-5),a&&b.push(a),b.push(null)),b}}const wx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _x(t){return t.replace(wx,xx)}function xx(t,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),c=s===120||s===88;return Sg(r.slice(c?2:1),c?16:10)}return Pc(r)||t}const Ug={}.hasOwnProperty;function Sx(t,a,r){return typeof a!="string"&&(r=a,a=void 0),Ax(r)(bx(yx(r).document().write(vx()(t,a,!0))))}function Ax(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Qi),autolinkProtocol:ye,autolinkEmail:ye,atxHeading:c(uo),blockQuote:c(kn),characterEscape:ye,characterReference:ye,codeFenced:c(Ln),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:c(Ln,p),codeText:c(Fi,p),codeTextData:ye,data:ye,codeFlowValue:ye,definition:c(Xi),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:c(Yi),hardBreakEscape:c(co),hardBreakTrailing:c(co),htmlFlow:c(Xt,p),htmlFlowData:ye,htmlText:c(Xt,p),htmlTextData:ye,image:c(zl),label:p,link:c(Qi),listItem:c(Ka),listItemValue:S,listOrdered:c(Ki,w),listUnordered:c(Ki),paragraph:c(ql),reference:x,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:c(uo),strong:c(fo),thematicBreak:c(Hl)},exit:{atxHeading:b(),atxHeadingSequence:W,autolink:b(),autolinkEmail:Ot,autolinkProtocol:Ne,blockQuote:b(),characterEscapeValue:Ae,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:re,characterReference:pt,codeFenced:b(K),codeFencedFence:V,codeFencedFenceInfo:_,codeFencedFenceMeta:B,codeFlowValue:Ae,codeIndented:b(H),codeText:b(ee),codeTextData:Ae,data:Ae,definition:b(),definitionDestinationString:we,definitionLabelString:G,definitionTitleString:Q,emphasis:b(),hardBreakEscape:b(Z),hardBreakTrailing:b(Z),htmlFlow:b(ie),htmlFlowData:Ae,htmlText:b(J),htmlTextData:Ae,image:b($),label:N,labelText:R,lineEnding:ae,link:b(M),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:te,resourceDestinationString:h,resourceTitleString:U,resource:Y,setextHeading:b(_e),setextHeadingLineSequence:ue,setextHeadingText:L,strong:b(),thematicBreak:b()}};Ng(a,(t||{}).mdastExtensions||[]);const r={};return l;function l(I){let F={type:"root",children:[]};const ce={stack:[F],tokenStack:[],config:a,enter:m,exit:d,buffer:p,resume:y,data:r},de=[];let Ve=-1;for(;++Ve<I.length;)if(I[Ve][1].type==="listOrdered"||I[Ve][1].type==="listUnordered")if(I[Ve][0]==="enter")de.push(Ve);else{const Yt=de.pop();Ve=s(I,Yt,Ve)}for(Ve=-1;++Ve<I.length;){const Yt=a[I[Ve][0]];Ug.call(Yt,I[Ve][1].type)&&Yt[I[Ve][1].type].call(Object.assign({sliceSerialize:I[Ve][2].sliceSerialize},ce),I[Ve][1])}if(ce.tokenStack.length>0){const Yt=ce.tokenStack[ce.tokenStack.length-1];(Yt[1]||Rh).call(ce,void 0,Yt[0])}for(F.position={start:Sa(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Sa(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<a.transforms.length;)F=a.transforms[Ve](F)||F;return F}function s(I,F,ce){let de=F-1,Ve=-1,Yt=!1,zn,It,Tn,Qt;for(;++de<=ce;){const gt=I[de];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?Ve++:Ve--,Qt=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(zn&&!Qt&&!Ve&&!Tn&&(Tn=de),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!Ve&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||Ve===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(zn){let ln=de;for(It=void 0;ln--;){const bn=I[ln];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;It&&(I[It][1].type="lineEndingBlank",Yt=!0),bn[1].type="lineEnding",It=ln}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}Tn&&(!It||Tn<It)&&(zn._spread=!0),zn.end=Object.assign({},It?I[It][1].start:gt[1].end),I.splice(It||de,0,["exit",zn,gt[2]]),de++,ce++}if(gt[1].type==="listItemPrefix"){const ln={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};zn=ln,I.splice(de,0,["enter",ln,gt[2]]),de++,ce++,Tn=void 0,Qt=!0}}}return I[F][1]._spread=Yt,ce}function c(I,F){return ce;function ce(de){m.call(this,I(de),de),F&&F.call(this,de)}}function p(){this.stack.push({type:"fragment",children:[]})}function m(I,F,ce){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([F,ce||void 0]),I.position={start:Sa(F.start),end:void 0}}function b(I){return F;function F(ce){I&&I.call(this,ce),d.call(this,ce)}}function d(I,F){const ce=this.stack.pop(),de=this.tokenStack.pop();if(de)de[0].type!==I.type&&(F?F.call(this,I,de[0]):(de[1]||Rh).call(this,I,de[0]));else throw new Error("Cannot close `"+I.type+"` ("+eo({start:I.start,end:I.end})+"): it’s not open");ce.position.end=Sa(I.end)}function y(){return xw(this.stack.pop())}function w(){this.data.expectingFirstListItemValue=!0}function S(I){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function _(){const I=this.resume(),F=this.stack[this.stack.length-1];F.lang=I}function B(){const I=this.resume(),F=this.stack[this.stack.length-1];F.meta=I}function V(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function K(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function H(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I.replace(/(\r?\n|\r)$/g,"")}function G(I){const F=this.resume(),ce=this.stack[this.stack.length-1];ce.label=F,ce.identifier=Bi(this.sliceSerialize(I)).toLowerCase()}function Q(){const I=this.resume(),F=this.stack[this.stack.length-1];F.title=I}function we(){const I=this.resume(),F=this.stack[this.stack.length-1];F.url=I}function W(I){const F=this.stack[this.stack.length-1];if(!F.depth){const ce=this.sliceSerialize(I).length;F.depth=ce}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function ue(I){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function _e(){this.data.setextHeadingSlurpLineEnding=void 0}function ye(I){const ce=this.stack[this.stack.length-1].children;let de=ce[ce.length-1];(!de||de.type!=="text")&&(de=Bl(),de.position={start:Sa(I.start),end:void 0},ce.push(de)),this.stack.push(de)}function Ae(I){const F=this.stack.pop();F.value+=this.sliceSerialize(I),F.position.end=Sa(I.end)}function ae(I){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=F.children[F.children.length-1];ce.position.end=Sa(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(F.type)&&(ye.call(this,I),Ae.call(this,I))}function Z(){this.data.atHardBreak=!0}function ie(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function J(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function ee(){const I=this.resume(),F=this.stack[this.stack.length-1];F.value=I}function M(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=F,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function $(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=F,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function R(I){const F=this.sliceSerialize(I),ce=this.stack[this.stack.length-2];ce.label=_x(F),ce.identifier=Bi(F).toLowerCase()}function N(){const I=this.stack[this.stack.length-1],F=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const de=I.children;ce.children=de}else ce.alt=F}function h(){const I=this.resume(),F=this.stack[this.stack.length-1];F.url=I}function U(){const I=this.resume(),F=this.stack[this.stack.length-1];F.title=I}function Y(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function te(I){const F=this.resume(),ce=this.stack[this.stack.length-1];ce.label=F,ce.identifier=Bi(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function ke(I){this.data.characterReferenceType=I.type}function re(I){const F=this.sliceSerialize(I),ce=this.data.characterReferenceType;let de;ce?(de=Sg(F,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):de=Pc(F);const Ve=this.stack[this.stack.length-1];Ve.value+=de}function pt(I){const F=this.stack.pop();F.position.end=Sa(I.end)}function Ne(I){Ae.call(this,I);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(I)}function Ot(I){Ae.call(this,I);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(I)}function kn(){return{type:"blockquote",children:[]}}function Ln(){return{type:"code",lang:null,meta:null,value:""}}function Fi(){return{type:"inlineCode",value:""}}function Xi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yi(){return{type:"emphasis",children:[]}}function uo(){return{type:"heading",depth:0,children:[]}}function co(){return{type:"break"}}function Xt(){return{type:"html",value:""}}function zl(){return{type:"image",title:null,url:"",alt:null}}function Qi(){return{type:"link",title:null,url:"",children:[]}}function Ki(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Ka(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function ql(){return{type:"paragraph",children:[]}}function fo(){return{type:"strong",children:[]}}function Bl(){return{type:"text",value:""}}function Hl(){return{type:"thematicBreak"}}}function Sa(t){return{line:t.line,column:t.column,offset:t.offset}}function Ng(t,a){let r=-1;for(;++r<a.length;){const l=a[r];Array.isArray(l)?Ng(t,l):kx(t,l)}}function kx(t,a){let r;for(r in a)if(Ug.call(a,r))switch(r){case"canContainEols":{const l=a[r];l&&t[r].push(...l);break}case"transforms":{const l=a[r];l&&t[r].push(...l);break}case"enter":case"exit":{const l=a[r];l&&Object.assign(t[r],l);break}}}function Rh(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+eo({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+eo({start:a.start,end:a.end}
vendor: 9,632 bytes, lines 52-56
52)+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+eo({start:a.start,end:a.end})+") is still open")}function Tx(t){const a=this;a.parser=r;function r(l){return Sx(l,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function Ex(t,a){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,r),t.applyData(a,r)}function Cx(t,a){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,r),[t.applyData(a,r),{type:"text",value:`
53`}]}function Rx(t,a){const r=a.value?a.value+`
54`:"",l={};a.lang&&(l.className=["language-"+a.lang]);let s={type:"element",tagName:"code",properties:l,children:[{type:"text",value:r}]};return a.meta&&(s.data={meta:a.meta}),t.patch(a,s),s=t.applyData(a,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(a,s),s}function Dx(t,a){const r={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function Ox(t,a){const r={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function Mx(t,a){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=String(a.identifier).toUpperCase(),s=Pi(l.toLowerCase()),c=t.footnoteOrder.indexOf(l);let p,m=t.footnoteCounts.get(l);m===void 0?(m=0,t.footnoteOrder.push(l),p=t.footnoteOrder.length):p=c+1,m+=1,t.footnoteCounts.set(l,m);const b={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(p)}]};t.patch(a,b);const d={type:"element",tagName:"sup",properties:{},children:[b]};return t.patch(a,d),t.applyData(a,d)}function Ux(t,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function Nx(t,a){if(t.options.allowDangerousHtml){const r={type:"raw",value:a.value};return t.patch(a,r),t.applyData(a,r)}}function Ig(t,a){const r=a.referenceType;let l="]";if(r==="collapsed"?l+="[]":r==="full"&&(l+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+l}];const s=t.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const p=s[s.length-1];return p&&p.type==="text"?p.value+=l:s.push({type:"text",value:l}),s}function Ix(t,a){const r=String(a.identifier).toUpperCase(),l=t.definitionById.get(r);if(!l)return Ig(t,a);const s={src:Pi(l.url||""),alt:a.alt};l.title!==null&&l.title!==void 0&&(s.title=l.title);const c={type:"element",tagName:"img",properties:s,children:[]};return t.patch(a,c),t.applyData(a,c)}function jx(t,a){const r={src:Pi(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"img",properties:r,children:[]};return t.patch(a,l),t.applyData(a,l)}function Lx(t,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,r);const l={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(a,l),t.applyData(a,l)}function zx(t,a){const r=String(a.identifier).toUpperCase(),l=t.definitionById.get(r);if(!l)return Ig(t,a);const s={href:Pi(l.url||"")};l.title!==null&&l.title!==void 0&&(s.title=l.title);const c={type:"element",tagName:"a",properties:s,children:t.all(a)};return t.patch(a,c),t.applyData(a,c)}function qx(t,a){const r={href:Pi(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"a",properties:r,children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function Bx(t,a,r){const l=t.all(a),s=r?Hx(r):jg(a),c={},p=[];if(typeof a.checked=="boolean"){const y=l[0];let w;y&&y.type==="element"&&y.tagName==="p"?w=y:(w={type:"element",tagName:"p",properties:{},children:[]},l.unshift(w)),w.children.length>0&&w.children.unshift({type:"text",value:" "}),w.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let m=-1;for(;++m<l.length;){const y=l[m];(s||m!==0||y.type!=="element"||y.tagName!=="p")&&p.push({type:"text",value:`
55`}),y.type==="element"&&y.tagName==="p"&&!s?p.push(...y.children):p.push(y)}const b=l[l.length-1];b&&(s||b.type!=="element"||b.tagName!=="p")&&p.push({type:"text",value:`
56`});const d={type:"element",tagName:"li",properties:c,children:p};return t.patch(a,d),t.applyData(a,d)}function Hx(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const r=t.children;let l=-1;for(;!a&&++l<r.length;)a=jg(r[l])}return a}function jg(t){const a=t.spread;return a??t.children.length>1}function Px(t,a){const r={},l=t.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<l.length;){const p=l[s];if(p.type==="element"&&p.tagName==="li"&&p.properties&&Array.isArray(p.properties.className)&&p.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:t.wrap(l,!0)};return t.patch(a,c),t.applyData(a,c)}function Vx(t,a){const r={type:"element",tagName:"p",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function $x(t,a){const r={type:"root",children:t.wrap(t.all(a))};return t.patch(a,r),t.applyData(a,r)}function Fx(t,a){const r={type:"element",tagName:"strong",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function Xx(t,a){const r=t.all(a),l=r.shift(),s=[];if(l){const p={type:"element",tagName:"thead",properties:{},children:t.wrap([l],!0)};t.patch(a.children[0],p),s.push(p)}if(r.length>0){const p={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},m=zc(a.children[1]),b=gg(a.children[a.children.length-1]);m&&b&&(p.position={start:m,end:b}),s.push(p)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(a,c),t.applyData(a,c)}function Yx(t,a,r){const l=r?r.children:void 0,c=(l?l.indexOf(a):1)===0?"th":"td",p=r&&r.type==="table"?r.align:void 0,m=p?p.length:a.children.length;let b=-1;const d=[];for(;++b<m;){const w=a.children[b],S={},_=p?p[b]:void 0;_&&(S.align=_);let B={type:"element",tagName:c,properties:S,children:[]};w&&(B.children=t.all(w),t.patch(w,B),B=t.applyData(w,B)),d.push(B)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(d,!0)};return t.patch(a,y),t.applyData(a,y)}function Qx(t,a){const r={type:"element",tagName:"td",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}const Dh=9,Oh=32;function Kx(t){const a=String(t),r=/\r?\n|\r/g;let l=r.exec(a),s=0;const c=[];for(;l;)c.push(Mh(a.slice(s,l.index),s>0,!0),l[0]),s=l.index+l[0].length,l=r.exec(a);return c.push(Mh(a.slice(s),s>0,!1)),c.join("")}function Mh(t,a,r){let l=0,s=t.length;if(a){let c=t.codePointAt(l);for(;c===Dh||c===Oh;)l++,c=t.codePointAt(l)}if(r){let c=t.codePointAt(s-1);for(;c===Dh||c===Oh;)s--,c=t.codePointAt(s-1)}return s>l?t.slice(l,s):""}function Zx(t,a){const r={type:"text",value:Kx(String(a.value))};return t.patch(a,r),t.applyData(a,r)}function Jx(t,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(a,r),t.applyData(a,r)}const Gx={blockquote:Ex,break:Cx,code:Rx,delete:Dx,emphasis:Ox,footnoteReference:Mx,heading:Ux,html:Nx,imageReference:Ix,image:jx,inlineCode:Lx,linkReference:zx,link:qx,listItem:Bx,list:Px,paragraph:Vx,root:$x,strong:Fx,table:Xx,tableCell:Qx,tableRow:Yx,text:Zx,thematicBreak:Jx,toml:Sl,yaml:Sl,definition:Sl,footnoteDefinition:Sl};function Sl(){}const Lg=-1,Ml=0,no=1,Cl=2,Fc=3,Xc=4,Yc=5,Qc=6,zg=7,qg=8,Uh=typeof self=="object"?self:globalThis,Wx=(t,a)=>{const r=(s,c)=>(t.set(c,s),s),l=s=>{if(t.has(s))return t.get(s);const[c,p]=a[s];switch(c){case Ml:case Lg:return r(p,s);case no:{const m=r([],s);for(const b of p)m.push(l(b));return m}case Cl:{const m=r({},s);for(const[b,d]of p)m[l(b)]=l(d);return m}case Fc:return r(new Date(p),s);case Xc:{const{source:m,flags:b}=p;return r(new RegExp(m,b),s)}case Yc:{const m=r(new Map,s);for(const[b,d]of p)m.set(l(b),l(d));return m}case Qc:{const m=r(new Set,s);for(const b of p)m.add(l(b));return m}case zg:{const{name:m,message:b}=p;return r(new Uh[m](b),s)}case qg:return r(BigInt(p),s);case"BigInt":return r(Object(BigInt(p)),s);case"ArrayBuffer":return r(new Uint8Array(p).buffer,p);case"DataView":{const{buffer:m}=new Uint8Array(p);return r(new DataView(m),p)}}return r(new Uh[c](p),s)};return l},Nh=t=>Wx(new Map,t)(0),ji="",{toString:e0}={},{keys:t0}=Object,Zr=t=>{const a=typeof t;if(a!=="object"||!t)return[Ml,a];const r=e0.call(t).slice(8,-1);switch(r){case"Array":return[no,ji];case"Object":return[Cl,ji];case"Date":return[Fc,ji];case"RegExp":return[Xc,ji];case"Map":return[Yc,ji];case"Set":return[Qc,ji];case"DataView":return[no,r]}return r.includes("Array")?[no,r]:r.includes("Error")?[zg,r]:[Cl,r]},Al=([t,a])=>t===Ml&&(a==="function"||a==="symbol"),n0=(t,a,r,l)=>{const s=(p,m)=>{const b=l.push(p)-1;return r.set(m,b),b},c=p=>{if(r.has(p))return r.get(p);let[m,b]=Zr(p);switch(m){case Ml:{let y=p;switch(b){case"bigint":m=qg,y=p.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+b);y=null;break;case"undefined":return s([Lg],p)}return s([m,y],p)}case no:{if(b){let S=p;return b==="DataView"?S=new Uint8Array(p.buffer):b==="ArrayBuffer"&&(S=new Uint8Array(p)),s([b,[...S]],p)}const y=[],w=s([m,y],p);for(const S of p)y.push(c(S));return w}case Cl:{if(b)switch(b){case"BigInt":return s([b,p.toString()],p);case"Boolean":case"Number":case"String":return s([b,p.valueOf()],p)}
vendor: 1,160 bytes, line 56
56if(a&&"toJSON"in p)return c(p.toJSON());const y=[],w=s([m,y],p);for(const S of t0(p))(t||!Al(Zr(p[S])))&&y.push([c(S),c(p[S])]);return w}case Fc:return s([m,p.toISOString()],p);case Xc:{const{source:y,flags:w}=p;return s([m,{source:y,flags:w}],p)}case Yc:{const y=[],w=s([m,y],p);for(const[S,_]of p)(t||!(Al(Zr(S))||Al(Zr(_))))&&y.push([c(S),c(_)]);return w}case Qc:{const y=[],w=s([m,y],p);for(const S of p)(t||!Al(Zr(S)))&&y.push(c(S));return w}}const{message:d}=p;return s([m,{name:b,message:d}],p)};return c},Ih=(t,{json:a,lossy:r}={})=>{const l=[];return n0(!(a||r),!!a,new Map,l)(t),l},Rl=typeof structuredClone=="function"?(t,a)=>a&&("json"in a||"lossy"in a)?Nh(Ih(t,a)):structuredClone(t):(t,a)=>Nh(Ih(t,a));function a0(t,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function i0(t,a){return"Back to reference "+(t+1)+(a>1?"-"+a:"")}function r0(t){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||a0,l=t.options.footnoteBackLabel||i0,s=t.options.footnoteLabel||"Footnotes",c=t.o
vendor: 5,325 bytes, lines 56-61
56ptions.footnoteLabelTagName||"h2",p=t.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let b=-1;for(;++b<t.footnoteOrder.length;){const d=t.footnoteById.get(t.footnoteOrder[b]);if(!d)continue;const y=t.all(d),w=String(d.identifier).toUpperCase(),S=Pi(w.toLowerCase());let _=0;const B=[],V=t.footnoteCounts.get(w);for(;V!==void 0&&++_<=V;){B.length>0&&B.push({type:"text",value:" "});let G=typeof r=="string"?r:r(b,_);typeof G=="string"&&(G={type:"text",value:G}),B.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(b,_),className:["data-footnote-backref"]},children:Array.isArray(G)?G:[G]})}const K=y[y.length-1];if(K&&K.type==="element"&&K.tagName==="p"){const G=K.children[K.children.length-1];G&&G.type==="text"?G.value+=" ":K.children.push({type:"text",value:" "}),K.children.push(...B)}else y.push(...B);const H={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:t.wrap(y,!0)};t.patch(d,H),m.push(H)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Rl(p),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
57`},{type:"element",tagName:"ol",properties:{},children:t.wrap(m,!0)},{type:"text",value:`
58`}]}}const Bg=(function(t){if(t==null)return u0;if(typeof t=="function")return Ul(t);if(typeof t=="object")return Array.isArray(t)?o0(t):l0(t);if(typeof t=="string")return s0(t);throw new Error("Expected function, string, or object as test")});function o0(t){const a=[];let r=-1;for(;++r<t.length;)a[r]=Bg(t[r]);return Ul(l);function l(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function l0(t){const a=t;return Ul(r);function r(l){const s=l;let c;for(c in t)if(s[c]!==a[c])return!1;return!0}}function s0(t){return Ul(a);function a(r){return r&&r.type===t}}function Ul(t){return a;function a(r,l,s){return!!(c0(r)&&t.call(this,r,typeof l=="number"?l:void 0,s||void 0))}}function u0(){return!0}function c0(t){return t!==null&&typeof t=="object"&&"type"in t}const Hg=[],f0=!0,jh=!1,p0="skip";function d0(t,a,r,l){let s;typeof a=="function"&&typeof r!="function"?(l=r,r=a):s=a;const c=Bg(s),p=l?-1:1;m(t,void 0,[])();function m(b,d,y){const w=b&&typeof b=="object"?b:{};if(typeof w.type=="string"){const _=typeof w.tagName=="string"?w.tagName:typeof w.name=="string"?w.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(b.type+(_?"<"+_+">":""))+")"})}return S;function S(){let _=Hg,B,V,K;if((!a||c(b,d,y[y.length-1]||void 0))&&(_=m0(r(b,y)),_[0]===jh))return _;if("children"in b&&b.children){const H=b;if(H.children&&_[0]!==p0)for(V=(l?H.children.length:-1)+p,K=y.concat(H);V>-1&&V<H.children.length;){const G=H.children[V];if(B=m(G,V,K)(),B[0]===jh)return B;V=typeof B[1]=="number"?B[1]:V+p}}return _}}}function m0(t){return Array.isArray(t)?t:typeof t=="number"?[f0,t]:t==null?Hg:[t]}function Pg(t,a,r,l){let s,c,p;typeof a=="function"&&typeof r!="function"?(c=void 0,p=a,s=r):(c=a,p=r,s=l),d0(t,c,m,s);function m(b,d){const y=d[d.length-1],w=y?y.children.indexOf(b):void 0;return p(b,w,y)}}const Rc={}.hasOwnProperty,h0={};function g0(t,a){const r=a||h0,l=new Map,s=new Map,c=new Map,p={...Gx,...r.handlers},m={all:d,applyData:b0,definitionById:l,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:p,one:b,options:r,patch:y0,wrap:w0};return Pg(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const w=y.type==="definition"?l:s,S=String(y.identifier).toUpperCase();w.has(S)||w.set(S,y)}}),m;function b(y,w){const S=y.type,_=m.handlers[S];if(Rc.call(m.handlers,S)&&_)return _(m,y,w);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in y){const{children:V,...K}=y,H=Rl(K);return H.children=m.all(y),H}return Rl(y)}return(m.options.unknownHandler||v0)(m,y,w)}function d(y){const w=[];if("children"in y){const S=y.children;let _=-1;for(;++_<S.length;){const B=m.one(S[_],y);if(B){if(_&&S[_-1].type==="break"&&(!Array.isArray(B)&&B.type==="text"&&(B.value=Lh(B.value)),!Array.isArray(B)&&B.type==="element")){const V=B.children[0];V&&V.type==="text"&&(V.value=Lh(V.value))}Array.isArray(B)?w.push(...B):w.push(B)}}}return w}}function y0(t,a){t.position&&(a.position=ew(t))}function b0(t,a){let r=a;if(t&&t.data){const l=t.data.hName,s=t.data.hChildren,c=t.data.hProperties;if(typeof l=="string")if(r.type==="element")r.tagName=l;else{const p="children"in r?r.children:[r];r={type:"element",tagName:l,properties:{},children:p}}r.type==="element"&&c&&Object.assign(r.properties,Rl(c)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function v0(t,a){const r=a.data||{},l="value"in a&&!(Rc.call(r,"hProperties")||Rc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function w0(t,a){const r=[];let l=-1;for(a&&r.push({type:"text",value:`
59`});++l<t.length;)l&&r.push({type:"text",value:`
60`}),r.push(t[l]);return a&&t.length>0&&r.push({type:"text",value:`
61`}),r}function Lh(t){let a=0,r=t.charCodeAt(a);for(;r===9||r===32;)a++,r=t.charCodeAt(a);return t.slice(a)}function zh(t,a){const r=g0(t,a),l=r.one(t,void 0),s=r0(r),c=Array.isArray(l)?{type:"root",children:l}
vendor: 8,198 bytes, lines 61-62
61:l||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
62`},s),c}function _0(t,a){return t&&"run"in t?async function(r,l){const s=zh(r,{file:l,...a});await t.run(s,l)}:function(r,l){return zh(r,{file:l,...t||a})}}function qh(t){if(t)throw t}var cc,Bh;function x0(){if(Bh)return cc;Bh=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},c=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var y=t.call(d,"constructor"),w=d.constructor&&d.constructor.prototype&&t.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!w)return!1;var S;for(S in d);return typeof S>"u"||t.call(d,S)},p=function(d,y){r&&y.name==="__proto__"?r(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},m=function(d,y){if(y==="__proto__")if(t.call(d,y)){if(l)return l(d,y).value}else return;return d[y]};return cc=function b(){var d,y,w,S,_,B,V=arguments[0],K=1,H=arguments.length,G=!1;for(typeof V=="boolean"&&(G=V,V=arguments[1]||{},K=2),(V==null||typeof V!="object"&&typeof V!="function")&&(V={});K<H;++K)if(d=arguments[K],d!=null)for(y in d)w=m(V,y),S=m(d,y),V!==S&&(G&&S&&(c(S)||(_=s(S)))?(_?(_=!1,B=w&&s(w)?w:[]):B=w&&c(w)?w:{},p(V,{name:y,newValue:b(G,B,S)})):typeof S<"u"&&p(V,{name:y,newValue:S}));return V},cc}var S0=x0();const fc=Nc(S0);function Dc(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function A0(){const t=[],a={run:r,use:l};return a;function r(...s){let c=-1;const p=s.pop();if(typeof p!="function")throw new TypeError("Expected function as last argument, not "+p);m(null,...s);function m(b,...d){const y=t[++c];let w=-1;if(b){p(b);return}for(;++w<s.length;)(d[w]===null||d[w]===void 0)&&(d[w]=s[w]);s=d,y?k0(y,m)(...d):p(null,...d)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),a}}function k0(t,a){let r;return l;function l(...p){const m=t.length>p.length;let b;m&&p.push(s);try{b=t.apply(this,p)}catch(d){const y=d;if(m&&r)throw y;return s(y)}m||(b&&b.then&&typeof b.then=="function"?b.then(c,s):b instanceof Error?s(b):c(b))}function s(p,...m){r||(r=!0,a(p,...m))}function c(p){s(null,p)}}const Mn={basename:T0,dirname:E0,extname:C0,join:R0,sep:"/"};function T0(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');oo(t);let r=0,l=-1,s=t.length,c;if(a===void 0||a.length===0||a.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else l<0&&(c=!0,l=s+1);return l<0?"":t.slice(r,l)}if(a===t)return"";let p=-1,m=a.length-1;for(;s--;)if(t.codePointAt(s)===47){if(c){r=s+1;break}}else p<0&&(c=!0,p=s+1),m>-1&&(t.codePointAt(s)===a.codePointAt(m--)?m<0&&(l=s):(m=-1,l=p));return r===l?l=p:l<0&&(l=t.length),t.slice(r,l)}function E0(t){if(oo(t),t.length===0)return".";let a=-1,r=t.length,l;for(;--r;)if(t.codePointAt(r)===47){if(l){a=r;break}}else l||(l=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function C0(t){oo(t);let a=t.length,r=-1,l=0,s=-1,c=0,p;for(;a--;){const m=t.codePointAt(a);if(m===47){if(p){l=a+1;break}continue}r<0&&(p=!0,r=a+1),m===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||r<0||c===0||c===1&&s===r-1&&s===l+1?"":t.slice(s,r)}function R0(...t){let a=-1,r;for(;++a<t.length;)oo(t[a]),t[a]&&(r=r===void 0?t[a]:r+"/"+t[a]);return r===void 0?".":D0(r)}function D0(t){oo(t);const a=t.codePointAt(0)===47;let r=O0(t,!a);return r.length===0&&!a&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),a?"/"+r:r}function O0(t,a){let r="",l=0,s=-1,c=0,p=-1,m,b;for(;++p<=t.length;){if(p<t.length)m=t.codePointAt(p);else{if(m===47)break;m=47}if(m===47){if(!(s===p-1||c===1))if(s!==p-1&&c===2){if(r.length<2||l!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(b=r.lastIndexOf("/"),b!==r.length-1){b<0?(r="",l=0):(r=r.slice(0,b),l=r.length-1-r.lastIndexOf("/")),s=p,c=0;continue}}else if(r.length>0){r="",l=0,s=p,c=0;continue}}a&&(r=r.length>0?r+"/..":"..",l=2)}else r.length>0?r+="/"+t.slice(s+1,p):r=t.slice(s+1,p),l=p-s-1;s=p,c=0}else m===46&&c>-1?c++:c=-1}return r}function oo(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const M0={cwd:U0};function U0(){return"/"}function Oc(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function N0(t){if(typeof t=="string")t=new URL(t);else if(!Oc(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return I0(t)}function I0(t){if(t.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const a=t.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const l=a.codePointAt(r+2);if(l===70||l===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const pc=["history","path","basename","stem","extname","dirname"];class Vg{constructor(a){let r;a?Oc(a)?r={path:a}:typeof a=="string"||j0(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":M0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<pc.length;){const c=pc[l];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let s;for(s in r)pc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Mn.basename(this.path):void 0}set basename(a){mc(a,"basename"),dc(a,"basename"),this.path=Mn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Mn.dirname(this.path):void 0}set dirname(a){Hh(this.basename,"dirname"),this.path=Mn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Mn.extname(this.path):void 0}set extname(a){if(dc(a,"extname"),Hh(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Oc(a)&&(a=N0(a)),mc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Mn.basename(this.path,this.extname):void 0}set stem(a){mc(a,"stem"),dc(a,"stem"),this.path=Mn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,l){const s=this.message(a,r,l);throw s.fatal=!0,s}info(a,r,l){const s=this.message(a,r,l);return s.fatal=void 0,s}message(a,r,l){const s=new Dt(a,r,l);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function dc(t,a){if(t&&t.includes(Mn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Mn.sep+"`")}function mc(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function Hh(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function j0(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const L0=(function(t){const l=this.constructor.prototype,s=l[t],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,l),c}),z0={}.hasOwnProperty;class Kc extends L0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A0()}copy(){const a=new Kc;let r=-1;for(;++r<this.attachers.length;){const l=this.attachers[r];a.use(...l)}return a.data(fc(!0,{},this.namespace)),a}
vendor: 5,210 bytes, line 62
62data(a,r){return typeof a=="string"?arguments.length===2?(yc("data",this.frozen),this.namespace[a]=r,this):z0.call(this.namespace,a)&&this.namespace[a]||void 0:a?(yc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=r.call(a,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=kl(a),l=this.parser||this.Parser;return hc("parse",l),l(String(r),r)}process(a,r){const l=this;return this.freeze(),hc("process",this.parser||this.Parser),gc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(c,p){const m=kl(a),b=l.parse(m);l.run(b,m,function(y,w,S){if(y||!w||!S)return d(y);const _=w,B=l.stringify(_,S);H0(B)?S.value=B:S.result=B,d(y,S)});function d(y,w){y||!w?p(y):c?c(w):r(void 0,w)}}}processSync(a){let r=!1,l;return this.freeze(),hc("processSync",this.parser||this.Parser),gc("processSync",this.compiler||this.Compiler),this.process(a,s),Vh("processSync","process",r),l;function s(c,p){r=!0,qh(c),l=p}}run(a,r,l){Ph(a),this.freeze();const s=this.transformers;return!l&&typeof r=="function"&&(l=r,r=void 0),l?c(void 0,l):new Promise(c);function c(p,m){const b=kl(r);s.run(a,b,d);function d(y,w,S){const _=w||a;y?m(y):p?p(_):l(void 0,_,S)}}}runSync(a,r){let l=!1,s;return this.run(a,r,c),Vh("runSync","run",l),s;function c(p,m){qh(p),s=m,l=!0}}stringify(a,r){this.freeze();const l=kl(r),s=this.compiler||this.Compiler;return gc("stringify",s),Ph(a),s(a,l)}use(a,...r){const l=this.attachers,s=this.namespace;if(yc("use",this.frozen),a!=null)if(typeof a=="function")b(a,r);else if(typeof a=="object")Array.isArray(a)?m(a):p(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(d){if(typeof d=="function")b(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...w]=d;b(y,w)}else p(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function p(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(d.plugins),d.settings&&(s.settings=fc(!0,s.settings,d.settings))}function m(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const w=d[y];c(w)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function b(d,y){let w=-1,S=-1;for(;++w<l.length;)if(l[w][0]===d){S=w;break}if(S===-1)l.push([d,...y]);else if(y.length>0){let[_,...B]=y;const V=l[S][1];Dc(V)&&Dc(_)&&(_=fc(!0,V,_)),l[S]=[d,_,...B]}}}}const q0=new Kc().freeze();function hc(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function gc(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function yc(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ph(t){if(!Dc(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Vh(t,a,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function kl(t){return B0(t)?t:new Vg(t)}function B0(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function H0(t){return typeof t=="string"||P0(t)}function P0(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const V0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$h=[],Fh={allowDangerousHtml:!0},$0=/^(https?|ircs?|mailto|xmpp)$/i,F0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function X0(t){const a=Y0(t),r=Q0(t);return K0(a.runSync(a.parse(r),r),t)}function Y0(t){const a=t.rehypePlugins||$h,r=t.remarkPlugins||$h,l=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Fh}:Fh;return q0().use(Tx).use(r).use(_0,l).use(a)}function Q0(t){const a=t.children||"",r=new Vg;
62return typeof a=="string"&&(r.value=a),r}function K0(t,a){const r=a.allowedElements,l=a.allowElement,s=a.components,c=a.disallowedElements,p=a.skipHtml,m=a.unwrapDisallowed,b=a.urlTransform||Z0;for(const y of F0)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+V0+y.id,void 0);return Pg(t,d),rw(t,{Fragment:ve.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ve.jsx,jsxs:ve.jsxs,passKeys:!0,passNode:!0});function d(y,w,S){if(y.type==="raw"&&S&&typeof w=="number")return p?S.children.splice(w,1):S.children[w]={type:"text",value:y.value},w;if(y.type==="element"){let _;for(_ in lc)if(Object.hasOwn(lc,_)&&Object.hasOwn(y.properties,_)){const B=y.properties[_],V=lc[_];(V===null||V.includes(y.tagName))&&(y.properties[_]=b(String(B||""),_,y))}}if(y.type==="element"){let _=r?!r.includes(y.tagName):c?c.includes(y.tagName):!1;if(!_&&l&&typeof w=="number"&&(_=!l(y,w,S)),_&&S&&typeof w=="number")return m&&y.children?S.children.splice(w,1,...y.children):S.children.splice(w,1),w}}}function Z0(t){const a=t.indexOf(":"),r=t.indexOf("?"),l=t.indexOf("#"),s=t.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||l!==-1&&a>l||$0.test(t.slice(0,a))?t:""}function J0(t){return ve.jsxs("section",{className:"suggested-recipe-container","aria-live":"polite",children:[ve.jsx("h2",{children:"Chef Claude Recommends:"}),ve.jsx("button",{onClick:t.resetApp,className:"reset-button",children:"Reset"}),ve.jsx(X0,{children:t.recipe})]})}function G0(t){const a=t.ingredients.map((r,l)=>ve.jsx("li",{children:r},l));return ve.jsxs("section",{children:[ve.jsx("h2",{children:"Ingredients on hand:"}),ve.jsx("ul",{className:"ingredients-list","aria-live":"polite",children:a}),t.ingredients.length>3&&ve.jsxs("div",{className:"get-recipe-container",children:[ve.jsxs("div",{ref:t.ref,children:[ve.jsx("h3",{children:"Ready for a recipe?"}),ve.jsx("p",{children:"Generate a recipe from your list of ingredients."})]}),ve.jsx("button",{onClick:t.getRecipe,children:"Get a recipe"})]})]})}const Zc="https://huggingface.co",$g="https://router.huggingface.co",W0="X-HF-Bill-To",Xh={"black-forest-labs":{},cerebras:{},cohere:{},"fal-ai":{},"featherless-ai":{},"fireworks-ai":{},groq:{},"hf-inference":{},hyperbolic:{},nebius:{},novita:{},nscale:{},openai:{},publicai:{},ovhcloud:{},replicate:{},sambanova:{},scaleway:{},together:{}};class Jc extends Error{constructor(a){super(a),this.name="InferenceClientError"}}class ft extends Jc{constructor(a){super(a),this.name="InputError"}}class Fg extends Jc{httpRequest;httpResponse;constructor(a,r,l){super(a),this.httpRequest={...r,...r.headers?{headers:{...r.headers,..."Authorization"in r.headers?{Authorization:"Bearer [redacted]"}:void 0}}:void 0},this.httpResponse=l}}class kt extends Fg{constructor(a,r,l){super(a,r,l),this.name="ProviderApiError"}}class Wr extends Fg{constructor(a,r,l){super(a,r,l),this.name="HubApiError"}}class oe extends Jc{constructor(a){super(a),this.name="ProviderOutputError"}}function Xg(t){return Array.isArray(t)?t:[t]}class Ft{provider;baseUrl;clientSideRoutingOnly;constructor(a,r,l=!1){this.provider=a,this.baseUrl=r,this.clientSideRoutingOnly=l}makeBaseUrl(a){return a.authMethod!=="provider-key"?`${$g}/${this.provider}`:this.baseUrl}makeBody(a){return"data"in a.args&&a.args.data?a.args.data:JSON.stringify(this.preparePayload(a))}makeUrl(a){const r=this.makeBaseUrl(a),l=this.makeRoute(a).replace(/^\/+/,"");return`${r}/${l}`}prepareHeaders(a,r){const l={};return a.authMethod!=="none"&&(l.Authorization=`Bearer ${a.accessToken}`),r||(l["Content-Type"]="application/json"),l}}class Nt extends Ft{constructor(a,r,l=!1){super(a,r,l)}makeRoute(){return"v1/chat/completions"}preparePayload(a){return{...a.args,model:a.model}}
62async getResponse(a){if(typeof a=="object"&&Array.isArray(a?.choices)&&typeof a?.created=="number"&&typeof a?.id=="string"&&typeof a?.model=="string"&&(a.system_fingerprint===void 0||a.system_fingerprint===null||typeof a.system_fingerprint=="string")&&typeof a?.usage=="object")return a;throw new oe("Expected ChatCompletionOutput")}}class Ta extends Ft{constructor(a,r,l=!1){super(a,r,l)}preparePayload(a){return{...a.args,model:a.model}}makeRoute(){return"v1/completions"}async getResponse(a){const r=Xg(a);if(Array.isArray(r)&&r.length>0&&r.every(l=>typeof l=="object"&&!!l&&"generated_text"in l&&typeof l.generated_text=="string"))return r[0];throw new oe("Expected Array<{generated_text: string}>")}}function rn(t){if(globalThis.Buffer)return globalThis.Buffer.from(t).toString("base64");{const a=[];return t.forEach(r=>{a.push(String.fromCharCode(r))}),globalThis.btoa(a.join(""))}}function e1(t,a){return Object.assign({},...a.map(r=>{if(t[r]!==void 0)return{[r]:t[r]}}))}function Mc(t,a){return t.includes(a)}function ze(t,a){const r=Array.isArray(a)?a:[a],l=Object.keys(t).filter(s=>!Mc(r,s));return e1(t,l)}const Yh=["feature-extraction","sentence-similarity"];class Xe extends Ft{constructor(){super("hf-inference",`${$g}/hf-inference`)}preparePayload(a){return a.args}makeUrl(a){return a.model.startsWith("http://")||a.model.startsWith("https://")?a.model:super.makeUrl(a)}makeRoute(a){return a.task&&["feature-extraction","sentence-similarity"].includes(a.task)?`models/${a.model}/pipeline/${a.task}`:`models/${a.model}`}
62async getResponse(a){return a}}class t1 extends Xe{async getResponse(a,r,l,s){if(!a)throw new oe("Received malformed response from HF-Inference text-to-image API: response is undefined");if(typeof a=="object"){if(s==="json")return{...a};if("data"in a&&Array.isArray(a.data)&&a.data[0].b64_json){const c=a.data[0].b64_json;return s==="url"?`data:image/jpeg;base64,${c}`:await(await fetch(`data:image/jpeg;base64,${c}`)).blob()}if("output"in a&&Array.isArray(a.output))return s==="url"?a.output[0]:await(await fetch(a.output[0])).blob()}if(a instanceof Blob){if(s==="url"||s==="json"){const c=await a.arrayBuffer().then(p=>Buffer.from(p).toString("base64"));return s==="url"?`data:image/jpeg;base64,${c}`:{output:`data:image/jpeg;base64,${c}`}}return a}throw new oe("Received malformed response from HF-Inference text-to-image API: expected a Blob")}}class n1 extends Xe{makeUrl(a){let r;return a.model.startsWith("http://")||a.model.startsWith("https://")?r=a.model.trim():r=`${this.makeBaseUrl(a)}/models/${a.model}`,r=r.replace(/\/+$/,""),r.endsWith("/v1")?r+="/chat/completions":r.endsWith("/chat/completions")||(r+="/v1/chat/completions"),r}preparePayload(a){return{...a.args,model:a.model}}
62async getResponse(a){return a}}class a1 extends Xe{async getResponse(a){const r=Xg(a);if(Array.isArray(r)&&r.every(l=>"generated_text"in l&&typeof l?.generated_text=="string"))return r?.[0];throw new oe("Received malformed response from HF-Inference text generation API: expected Array<{generated_text: string}>")}}class i1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="object"&&r!==null&&typeof r.label=="string"&&typeof r.score=="number"))return a;throw new oe("Received malformed response from HF-Inference audio-classification API: expected Array<{label: string, score: number}> but received different format")}}class r1 extends Xe{async getResponse(a){return a}async preparePayloadAsync(a){return"data"in a?a:{...ze(a,"inputs"),data:a.inputs}}}class o1 extends Xe{async getResponse(a){if(!Array.isArray(a))throw new oe("Received malformed response from HF-Inference audio-to-audio API: expected Array");if(!a.every(r=>typeof r=="object"&&r&&"label"in r&&typeof r.label=="string"&&"content-type"in r&&typeof r["content-type"]=="string"&&"blob"in r&&typeof r.blob=="string"))throw new oe("Received malformed response from HF-Inference audio-to-audio API: expected Array<{label: string, audio: Blob}>");return a}}
62class l1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="object"&&!!r&&typeof r?.answer=="string"&&(typeof r.end=="number"||typeof r.end>"u")&&(typeof r.score=="number"||typeof r.score>"u")&&(typeof r.start=="number"||typeof r.start>"u")))return a[0];throw new oe("Received malformed response from HF-Inference document-question-answering API: expected Array<{answer: string, end: number, score: number, start: number}>")}}class s1 extends Xe{async getResponse(a){const r=(l,s,c=0)=>c>s?!1:l.every(p=>Array.isArray(p))?l.every(p=>r(p,s,c+1)):l.every(p=>typeof p=="number");if(Array.isArray(a)&&r(a,3,0))return a;throw new oe("Received malformed response from HF-Inference feature-extraction API: expected Array<number[][][] | number[][] | number[] | number>")}}class u1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.label=="string"&&typeof r.score=="number"))return a;throw new oe("Received malformed response from HF-Inference image-classification API: expected Array<{label: string, score: number}>")}}
62class c1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.label=="string"&&typeof r.mask=="string"&&(r.score===void 0||typeof r.score=="number")))return a;throw new oe("Received malformed response from HF-Inference image-segmentation API: expected Array<{label: string, mask: string, score: number}>")}async preparePayloadAsync(a){return{...a,inputs:rn(new Uint8Array(a.inputs instanceof ArrayBuffer?a.inputs:await a.inputs.arrayBuffer()))}}}class f1 extends Xe{async getResponse(a){if(typeof a?.generated_text!="string")throw new oe("Received malformed response from HF-Inference image-to-text API: expected {generated_text: string}");return a}}class p1 extends Xe{async preparePayloadAsync(a){return a.parameters?{...a,inputs:rn(new Uint8Array(a.inputs instanceof ArrayBuffer?a.inputs:await a.inputs.arrayBuffer()))}:{...a,model:a.model,data:a.inputs}}async getResponse(a){if(a instanceof Blob)return a;throw new oe("Received malformed response from HF-Inference image-to-image API: expected Blob")}}
62class d1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.label=="string"&&typeof r.score=="number"&&typeof r.box.xmin=="number"&&typeof r.box.ymin=="number"&&typeof r.box.xmax=="number"&&typeof r.box.ymax=="number"))return a;throw new oe("Received malformed response from HF-Inference object-detection API: expected Array<{label: string, score: number, box: {xmin: number, ymin: number, xmax: number, ymax: number}}>")}}class m1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.label=="string"&&typeof r.score=="number"))return a;throw new oe("Received malformed response from HF-Inference zero-shot-image-classification API: expected Array<{label: string, score: number}>")}}class h1 extends Xe{async getResponse(a){const r=a?.[0];if(Array.isArray(r)&&r.every(l=>typeof l?.label=="string"&&typeof l.score=="number"))return r;throw new oe("Received malformed response from HF-Inference text-classification API: expected Array<{label: string, score: number}>")}}class g1 extends Xe{async getResponse(a
62){if(Array.isArray(a)?a.every(r=>typeof r=="object"&&!!r&&typeof r.answer=="string"&&typeof r.end=="number"&&typeof r.score=="number"&&typeof r.start=="number"):typeof a=="object"&&a&&typeof a.answer=="string"&&typeof a.end=="number"&&typeof a.score=="number"&&typeof a.start=="number")return Array.isArray(a)?a[0]:a;throw new oe("Received malformed response from HF-Inference question-answering API: expected Array<{answer: string, end: number, score: number, start: number}>")}}class y1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.score=="number"&&typeof r.sequence=="string"&&typeof r.token=="number"&&typeof r.token_str=="string"))return a;throw new oe("Received malformed response from HF-Inference fill-mask API: expected Array<{score: number, sequence: string, token: number, token_str: string}>")}}class Gc extends Xe{async getResponse(a){if(typeof a=="object"&&a!==null&&"labels"in a&&"scores"in a&&Array.isArray(a.labels)&&Array.isArray(a.scores)&&a.labels.length===a.scores.length&&a.labels.every(r=>typeof r=="string")&&a.scores.every(r=>typeof r=="number")){const r=a.scores;return a.labels.map((l,s)=>({label:l,score:r[s]}))}if(Array.isArray(a)&&a.every(Gc.validateOutputElement))return a;throw new oe("Received malformed response from HF-Inference zero-shot-classification API: expected Array<{label: string, score: number}>")}static validateOutputElement(a){return typeof a=="object"&&!!a&&"label"in a&&"score"in a&&typeof a.label=="string"&&typeof a.score=="number"}}
62class b1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="number"))return a;throw new oe("Received malformed response from HF-Inference sentence-similarity API: expected Array<number>")}}class Dl extends Xe{static validate(a){return typeof a=="object"&&!!a&&"aggregator"in a&&typeof a.aggregator=="string"&&"answer"in a&&typeof a.answer=="string"&&"cells"in a&&Array.isArray(a.cells)&&a.cells.every(r=>typeof r=="string")&&"coordinates"in a&&Array.isArray(a.coordinates)&&a.coordinates.every(r=>Array.isArray(r)&&r.every(l=>typeof l=="number"))}async getResponse(a){if(Array.isArray(a)&&Array.isArray(a)?a.every(r=>Dl.validate(r)):Dl.validate(a))return Array.isArray(a)?a[0]:a;throw new oe("Received malformed response from HF-Inference table-question-answering API: expected {aggregator: string, answer: string, cells: string[], coordinates: number[][]}")}}class v1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r.end=="number"&&typeof r.entity_group=="string"&&typeof r.score=="number"&&typeof r.start=="number"&&typeof r.word=="string"))return a;throw new oe("Received malformed response from HF-Inference token-classification API: expected Array<{end: number, entity_group: string, score: number, start: number, word: string}>")}}
62class w1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r?.translation_text=="string"))return a?.length===1?a?.[0]:a;throw new oe("Received malformed response from HF-Inference translation API: expected Array<{translation_text: string}>")}}class _1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r?.summary_text=="string"))return a?.[0];throw new oe("Received malformed response from HF-Inference summarization API: expected Array<{summary_text: string}>")}}class x1 extends Xe{async getResponse(a){return a}}class S1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="number"))return a;throw new oe("Received malformed response from HF-Inference tabular-classification API: expected Array<number>")}}class A1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="object"&&!!r&&typeof r?.answer=="string"&&typeof r.score=="number"))return a[0];throw new oe("Received malformed response from HF-Inference visual-question-answering API: expected Array<{answer: string, score: number}>")}}
62class k1 extends Xe{async getResponse(a){if(Array.isArray(a)&&a.every(r=>typeof r=="number"))return a;throw new oe("Received malformed response from HF-Inference tabular-regression API: expected Array<number>")}}class T1 extends Xe{async getResponse(a){return a}}let E1=console;function lo(){return E1}const bc=new Map;function C1(t,a){return a?Array.isArray(a)?a:Object.entries(a).map(([r,l])=>({provider:r,hfModelId:t,providerId:l.providerId,status:l.status,task:l.task,adapter:l.adapter,adapterWeightsPath:l.adapterWeightsPath})):[]}async function Yg(t,a,r){let l;if(bc.has(t))l=bc.get(t);else{const s=`${Zc}/api/models/${t}?expand[]=inferenceProviderMapping`,c=await(r?.fetch??fetch)(s,{headers:a?.startsWith("hf_")?{Authorization:`Bearer ${a}`}:{}});if(!c.ok)if(c.headers.get("Content-Type")?.startsWith("application/json")){const m=await c.json();if("error"in m&&typeof m.error=="string")throw new Wr(`Failed to fetch inference provider mapping for model ${t}: ${m.error}`,{url:s,method:"GET"},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:m})}else throw new Wr(`Failed to fetch inference provider mapping for model ${t}`,{url:s,method:"GET"},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:await c.text()});let p=null;try{p=await c.json()}catch{throw new Wr(`Failed to fetch inference provider mapping for model ${t}: malformed API response, invalid JSON`,{url:s,method:"GET"},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:await c.text()})}if(!p?.inferenceProviderMapping)throw new Wr(`We have not been able to find inference provider information for model ${t}.`,{url:s,method:"GET"},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:await c.text()});l=C1(t,p.inferenceProviderMapping),bc.set(t,l)}return l}async function R1(t,a){const r=lo();if(Xh[t.provider][t.modelId])return Xh[t.provider][t.modelId];const s=(await Yg(t.modelId,t.accessToken,a)).find(c=>c.provider===t.provider);if(s){const c=t.provider==="hf-inference"&&Mc(Yh,t.task)?Yh:[t.task];if(!Mc(c,s.task))throw new ft(`Model ${t.modelId} is not supported for task ${t.task} and provider ${t.provider}. Supported task: ${s.task}.`);return s.status==="staging"&&r.warn(`Model ${t.modelId} is in staging mode for provider ${t.provider}. Meant for test purposes only.`),s}return null}async function Ie(t,a,r){const l=lo();if(r){if(t)throw new ft("Specifying both endpointUrl and provider is not supported.");return"hf-inference"}if(t||(l.log("Defaulting to 'auto' which will select the first provider available for the model, sorted by the user's order in https://hf.co/settings/inference-providers."),t="auto"),t==="auto"){if(!a)throw new ft("Specifying a model is required when provider is 'auto'");t=(await Yg(a))[0]?.provider,l.log("Auto selected provider:",t)}if(!t)throw new ft(`No Inference Provider available for model ${a}.`);return t}function Wc(t){return new Promise(a=>{setTimeout(()=>a(),t)})}const D1="https://api.us1.bfl.ai";class O1 extends Ft{constructor(){super("black-forest-labs",D1)}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs}}prepareHeaders(a,r){const l={Authorization:a.authMethod!=="provider-key"?`Bearer ${a.accessToken}`:`X-Key ${a.accessToken}`};return r||(l["Content-Type"]="application/json"),l}makeRoute(a){if(!a)throw new ft("Params are required");return`/v1/${a.model}`}async getResponse(a,r,l,s){const c=lo(),p=new URL(a.polling_url);for(let m=0;m<5;m++){await Wc(1e3),c.debug(`Polling Black Forest Labs API for the result... ${m+1}/5`),p.searchParams.set("attempt",m.toString(10));const b=await fetch(p,{headers:{"Content-Type":"application/json"}});if(!b.ok)throw new kt("Failed to fetch result from black forest labs API",{url:p.toString(),method:"GET",headers:{"Content-Type":"application/json"}},{requestId:b.headers.get("x-request-id")??"",status:b.status,body:await b.text()});const d=await b.json();if(typeof d=="object"&&d&&"status"in d&&typeof d.status=="string"&&d.status==="Ready"&&"result"in d&&typeof d.result=="object"&&d.result&&"sample"in d.result&&typeof d.result.sample=="string")return s==="json"?d.result:s==="url"?d.result.sample:await(await fetch(d.result.sample)).blob()}throw new oe("Timed out while waiting for the result from black forest labs API - aborting after 5 attempts")}}class M1 extends Nt{constructor(){super("cerebras","https://api.cerebras.ai")}}class U1 extends Nt{constructor(){super("cohere","https://api.cohere.com")}makeRoute(){return"/compatibility/v1/chat/completions"}}function Xa(t){return/^http(s?):/.test(t)||t.startsWith("/")}const Qh=["audio/mpeg","audio/mp4","audio/wav","audio/x-wav"];
62class Nl extends Ft{constructor(a){super("fal-ai",a||"https://fal.run")}preparePayload(a){return a.args}makeRoute(a){return`/${a.model}`}prepareHeaders(a,r){const l={Authorization:a.authMethod!=="provider-key"?`Bearer ${a.accessToken}`:`Key ${a.accessToken}`};return r||(l["Content-Type"]="application/json"),l}}class Il extends Nl{async getResponseFromQueueApi(a,r,l){if(!r||!l)throw new ft(`URL and headers are required for ${this.task} task`);if(!a.request_id)throw new oe(`Received malformed response from Fal.ai ${this.task} API: no request ID found in the response`);let c=a.status;const p=new URL(r),m=`${p.protocol}//${p.host}${p.host==="router.huggingface.co"?"/fal-ai":""}`,b=new URL(a.response_url).pathname,d=p.search,y=`${m}${b}/status${d}`,w=`${m}${b}${d}`;for(;c!=="COMPLETED";){await Wc(500);const B=await fetch(y,{headers:l});if(!B.ok)throw new kt("Failed to fetch response status from fal-ai API",{url:y,method:"GET"},{requestId:B.headers.get("x-request-id")??"",status:B.status,body:await B.text()});try{c=(await B.json()).status}catch{throw new oe("Failed to parse status response from fal-ai API: received malformed response")}}const S=await fetch(w,{headers:l});let _;try{_=await S.json()}catch{throw new oe("Failed to parse result response from fal-ai API: received malformed response")}return _}}function Qg(t,a){return`${Zc}/${t}/resolve/main/${a}`}class N1 extends Nl{preparePayload(a){const r={...ze(a.args,["inputs","parameters"]),...a.args.parameters,sync_mode:!0,prompt:a.args.inputs};return a.mapping?.adapter==="lora"&&a.mapping.adapterWeightsPath&&(r.loras=[{path:Qg(a.mapping.hfModelId,a.mapping.adapterWeightsPath),scale:1}],a.mapping.providerId==="fal-ai/lora"&&(r.model_name="stabilityai/stable-diffusion-xl-base-1.0")),r}async getResponse(a,r,l,s){if(typeof a=="object"&&"images"in a&&Array.isArray(a.images)&&a.images.length>0&&"url"in a.images[0]&&typeof a.images[0].url=="string")return s==="json"?{...a}:s==="url"?a.images[0].url:await(await fetch(a.images[0].url)).blob();throw new oe("Received malformed response from Fal.ai text-to-image API")}}class I1 extends Il{task;constructor(){super("https://queue.fal.run"),this.task="image-to-image"}makeRoute(a){return a.authMethod!=="provider-key"?`/${a.model}?_subdomain=queue`:`/${a.model}`}preparePayload(a){const r=a.args;return a.mapping?.adapter==="lora"&&a.mapping.adapterWeightsPath&&(r.loras=[{path:Qg(a.mapping.hfModelId,a.mapping.adapterWeightsPath),scale:1}]),r}async preparePayloadAsync(a){const r=a.inputs instanceof Blob?a.inputs.type:"image/png";return{...ze(a,["inputs","parameters"]),image_url:`data:${r};base64,${rn(new Uint8Array(a.inputs instanceof ArrayBuffer?a.inputs:await a.inputs.arrayBuffer()))}`,...a.parameters,...a}}async getResponse(a,r,l){const s=await this.getResponseFromQueueApi(a,r,l);if(typeof s=="object"&&s&&"images"in s&&Array.isArray(s.images)&&s.images.length>0&&typeof s.images[0]=="object"&&s.images[0]&&"url"in s.images[0]&&typeof s.images[0].url=="string"&&Xa(s.images[0].url))return await(await fetch(s.images[0].url)).blob();throw new oe(`Received malformed response from Fal.ai image-to-image API: expected { images: Array<{ url: string }> } result format, got instead: ${JSON.stringify(s)}`)}}class j1 extends Il{task;constructor(){super("https://queue.fal.run"),this.task="text-to-video"}makeRoute(a){return a.authMethod!=="provider-key"?`/${a.model}?_subdomain=queue`:`/${a.model}`}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs}}async getResponse(a,r,l){const s=await this.getResponseFromQueueApi(a,r,l);if(typeof s=="object"&&s&&"video"in s&&typeof s.video=="object"&&s.video&&"url"in s.video&&typeof s.video.url=="string"&&Xa(s.video.url))return await(await fetch(s.video.url)).blob();throw new oe(`Received malformed response from Fal.ai text-to-video API: expected { video: { url: string } } result format, got instead: ${JSON.stringify(s)}`)}}class L1 extends Il{task;constructor(){super("https://queue.fal.run"),this.task="image-to-video"}makeRoute(a){return a.authMethod!=="provider-key"?`/${a.model}?_subdomain=queue`:`/${a.model}`}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,image_url:a.args.image_url}}async preparePayloadAsync(a){const r=a.inputs instanceof Blob?a.inputs.type:"image/png";return{...ze(a,["inputs","parameters"]),image_url:`data:${r};base64,${rn(new Uint8Array(a.inputs instanceof ArrayBuffer?a.inputs:await a.inputs.arrayBuffer()))}`,...a.parameters,...a}}async getResponse(a,r,l){const s=await this.getResponseFromQueueApi(a,r,l);if(typeof s=="object"&&s!==null&&"video"in s&&typeof s.video=="object"&&s.video!==null&&"url"in s.video&&typeof s.video.url=="string"&&"url"in s.video&&Xa(s.video.url))return await(await fetch(s.video.url)).blob();throw new oe(`Received malformed response from Fal.ai image‑to‑video API: expected { video: { url: string } }, got: ${JSON.stringify(s)}`)}}class z1 extends Nl{prepareHeaders(a,r){const l=super.prepareHeaders(a,r);return l["Content-Type"]="application/json",l}
62async getResponse(a){const r=a;if(typeof r?.text!="string")throw new oe(`Received malformed response from Fal.ai Automatic Speech Recognition API: expected { text: string } format, got instead: ${JSON.stringify(a)}`);return{text:r.text}}async preparePayloadAsync(a){const r="data"in a&&a.data instanceof Blob?a.data:"inputs"in a?a.inputs:void 0,l=r?.type;if(!l)throw new ft("Unable to determine the input's content-type. Make sure your are passing a Blob when using provider fal-ai.");if(!Qh.includes(l))throw new ft(`Provider fal-ai does not support blob type ${l} - supported content types are: ${Qh.join(", ")}`);const s=rn(new Uint8Array(await r.arrayBuffer()));return{..."data"in a?ze(a,"data"):ze(a,"inputs"),audio_url:`data:${l};base64,${s}`}}}class q1 extends Nl{preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,text:a.args.inputs}}async getResponse(a){const r=a;if(typeof r?.audio?.url!="string")throw new oe(`Received malformed response from Fal.ai Text-to-Speech API: expected { audio: { url: string } } format, got instead: ${JSON.stringify(a)}`);const l=await fetch(r.audio.url);if(!l.ok)throw new kt(`Failed to fetch audio from ${r.audio.url}: ${l.statusText}`,{url:r.audio.url,method:"GET",headers:{"Content-Type":"application/json"}},{requestId:l.headers.get("x-request-id")??"",status:l.status,body:await l.text()});try{return await l.blob()}catch(s){throw new kt(`Failed to fetch audio from ${r.audio.url}: ${s instanceof Error?s.message:String(s)}`,{url:r.audio.url,method:"GET",headers:{"Content-Type":"application/json"}},{requestId:l.headers.get("x-request-id")??"",status:l.status,body:await l.text()})}}}class B1 extends Il{task;constructor(){super("https://queue.fal.run"),this.task="image-segmentation"}makeRoute(a){return a.authMethod!=="provider-key"?`/${a.model}?_subdomain=queue`:`/${a.model}`}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,sync_mode:!0}}async preparePayloadAsync(a){const r="data"in a&&a.data instanceof Blob?a.data:"inputs"in a?a.inputs:void 0,l=r instanceof Blob?r.type:"image/png",s=rn(new Uint8Array(r instanceof ArrayBuffer?r:await r.arrayBuffer()));return{...ze(a,["inputs","parameters","data"]),...a.parameters,...a,image_url:`data:${l};base64,${s}`,sync_mode:!0}}async getResponse(a,r,l){const s=await this.getResponseFromQueueApi(a,r,l);if(typeof s=="object"&&s!==null&&"image"in s&&typeof s.image=="object"&&s.image!==null&&"url"in s.image&&typeof s.image.url=="string"){const c=await fetch(s.image.url);if(!c.ok)throw new kt(`Failed to fetch segmentation mask from ${s.image.url}`,{url:s.image.url,method:"GET"},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:await c.text()});const m=await(await c.blob()).arrayBuffer();return[{label:"mask",score:1,mask:rn(new Uint8Array(m))}]}throw new oe(`Received malformed response from Fal.ai image-segmentation API: expected { image: { url: string } } format, got instead: ${JSON.stringify(a)}`)}}const Kg="https://api.featherless.ai";class H1 extends Nt{constructor(){super("featherless-ai",Kg)}}class P1 extends Ta{constructor(){super("featherless-ai",Kg)}preparePayload(a){return{model:a.model,...ze(a.args,["inputs","parameters"]),...a.args.parameters?{max_tokens:a.args.parameters.max_new_tokens,...ze(a.args.parameters,"max_new_tokens")}:void 0,prompt:a.args.inputs}}
62async getResponse(a){if(typeof a=="object"&&"choices"in a&&Array.isArray(a?.choices)&&typeof a?.model=="string")return{generated_text:a.choices[0].text};throw new oe("Received malformed response from Featherless AI text generation API")}}class V1 extends Nt{constructor(){super("fireworks-ai","https://api.fireworks.ai")}makeRoute(){return"/inference/v1/chat/completions"}}const Zg="https://api.groq.com";class $1 extends Ta{constructor(){super("groq",Zg)}makeRoute(){return"/openai/v1/chat/completions"}}class F1 extends Nt{constructor(){super("groq",Zg)}makeRoute(){return"/openai/v1/chat/completions"}}const ef="https://api.hyperbolic.xyz";class X1 extends Nt{constructor(){super("hyperbolic",ef)}}class Y1 extends Ta{constructor(){super("hyperbolic",ef)}makeRoute(){return"v1/chat/completions"}preparePayload(a){return{messages:[{content:a.args.inputs,role:"user"}],...a.args.parameters?{max_tokens:a.args.parameters.max_new_tokens,...ze(a.args.parameters,"max_new_tokens")}:void 0,...ze(a.args,["inputs","parameters"]),model:a.model}}
62async getResponse(a){if(typeof a=="object"&&"choices"in a&&Array.isArray(a?.choices)&&typeof a?.model=="string")return{generated_text:a.choices[0].message.content};throw new oe("Received malformed response from Hyperbolic text generation API")}}class Q1 extends Ft{constructor(){super("hyperbolic",ef)}makeRoute(a){return"/v1/images/generations"}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs,model_name:a.model}}async getResponse(a,r,l,s){if(typeof a=="object"&&"images"in a&&Array.isArray(a.images)&&a.images[0]&&typeof a.images[0].image=="string")return s==="json"?{...a}:s==="url"?`data:image/jpeg;base64,${a.images[0].image}`:fetch(`data:image/jpeg;base64,${a.images[0].image}`).then(c=>c.blob());throw new oe("Received malformed response from Hyperbolic text-to-image API")}}const jl="https://api.studio.nebius.ai";class K1 extends Nt{constructor(){super("nebius",jl)}preparePayload(a){const r=super.preparePayload(a),l=a.args.response_format;return l?.type==="json_schema"&&l.json_schema?.schema&&(r.guided_json=l.json_schema.schema),r}}class Z1 extends Ta{constructor(){super("nebius",jl)}preparePayload(a){return{...a.args,model:a.model,prompt:a.args.inputs}}
62async getResponse(a){if(typeof a=="object"&&"choices"in a&&Array.isArray(a?.choices)&&a.choices.length>0&&typeof a.choices[0]?.text=="string")return{generated_text:a.choices[0].text};throw new oe("Received malformed response from Nebius text generation API")}}class J1 extends Ft{constructor(){super("nebius",jl)}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,response_format:"b64_json",prompt:a.args.inputs,model:a.model}}makeRoute(){return"v1/images/generations"}async getResponse(a,r,l,s){if(typeof a=="object"&&"data"in a&&Array.isArray(a.data)&&a.data.length>0&&"b64_json"in a.data[0]&&typeof a.data[0].b64_json=="string"){if(s==="json")return{...a};const c=a.data[0].b64_json;return s==="url"?`data:image/jpeg;base64,${c}`:fetch(`data:image/jpeg;base64,${c}`).then(p=>p.blob())}throw new oe("Received malformed response from Nebius text-to-image API")}}class G1 extends Ft{constructor(){super("nebius",jl)}preparePayload(a){return{input:a.args.inputs,model:a.model}}makeRoute(){return"v1/embeddings"}
62async getResponse(a){return a.data.map(r=>r.embedding)}}const tf="https://api.novita.ai";class W1 extends Ta{constructor(){super("novita",tf)}makeRoute(){return"/v3/openai/chat/completions"}}class eS extends Nt{constructor(){super("novita",tf)}makeRoute(){return"/v3/openai/chat/completions"}}class tS extends Ft{constructor(){super("novita",tf)}makeRoute(a){return`/v3/async/${a.model}`}preparePayload(a){const{num_inference_steps:r,...l}=a.args.parameters??{};return{...ze(a.args,["inputs","parameters"]),...l,steps:r,prompt:a.args.inputs}}async getResponse(a,r,l){if(!r||!l)throw new ft("URL and headers are required for text-to-video task");const s=a.task_id;if(!s)throw new oe("Received malformed response from Novita text-to-video API: no task ID found in the response");const c=new URL(r),m=`${`${c.protocol}//${c.host}${c.host==="router.huggingface.co"?"/novita":""}`}/v3/async/task-result?task_id=${s}`;let b="",d;for(;b!=="TASK_STATUS_SUCCEED"&&b!=="TASK_STATUS_FAILED";){await Wc(500);const y=await fetch(m,{headers:l});if(!y.ok)throw new kt("Failed to fetch task result",{url:m,method:"GET",headers:l},{requestId:y.headers.get("x-request-id")??"",status:y.status,body:await y.text()});try{if(d=await y.json(),d&&typeof d=="object"&&"task"in d&&d.task&&typeof d.task=="object"&&"status"in d.task&&typeof d.task.status=="string")b=d.task.status;else throw new oe("Received malformed response from Novita text-to-video API: failed to get task status")}catch{throw new oe("Received malformed response from Novita text-to-video API: failed to parse task result")}}if(b==="TASK_STATUS_FAILED")throw new oe("Novita text-to-video task failed");if(typeof d=="object"&&d&&"videos"in d&&typeof d.videos=="object"&&d.videos&&Array.isArray(d.videos)&&d.videos.length>0&&"video_url"in d.videos[0]&&typeof d.videos[0].video_url=="string"&&Xa(d.videos[0].video_url))return await(await fetch(d.videos[0].video_url)).blob();throw new oe(`Received malformed response from Novita text-to-video API: expected { videos: [{ video_url: string }] } format, got instead: ${JSON.stringify(d)}`)}}const Jg="https://inference.api.nscale.com";class nS extends Nt{constructor(){super("nscale",Jg)}}class aS extends Ft{constructor(){super("nscale",Jg)}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,response_format:"b64_json",prompt:a.args.inputs,model:a.model}}makeRoute(){return"v1/images/generations"}async getResponse(a,r,l,s){if(typeof a=="object"&&"data"in a&&Array.isArray(a.data)&&a.data.length>0&&"b64_json"in a.data[0]&&typeof a.data[0].b64_json=="string"){if(s==="json")return{...a};const c=a.data[0].b64_json;return s==="url"?`data:image/jpeg;base64,${c}`:fetch(`data:image/jpeg;base64,${c}`).then(p=>p.blob())}throw new oe("Received malformed response from Nscale text-to-image API")}}const iS="https://api.openai.com";class rS extends Nt{constructor(){super("openai",iS,!0)}}const Gg="https://oai.endpoints.kepler.ai.cloud.ovh.net";class oS extends Nt{constructor(){super("ovhcloud",Gg)}}class lS extends Ta{constructor(){super("ovhcloud",Gg)}preparePayload(a){return{model:a.model,...ze(a.args,["inputs","parameters"]),...a.args.parameters?{max_tokens:a.args.parameters.max_new_tokens,...ze(a.args.parameters,"max_new_tokens")}:void 0,prompt:a.args.inputs}}
62async getResponse(a){if(typeof a=="object"&&"choices"in a&&Array.isArray(a?.choices)&&typeof a?.model=="string")return{generated_text:a.choices[0].text};throw new oe("Received malformed response from OVHcloud text generation API")}}class sS extends Nt{constructor(){super("publicai","https://api.publicai.co")}}class so extends Ft{constructor(a){super("replicate",a||"https://api.replicate.com")}makeRoute(a){return a.model.includes(":")?"v1/predictions":`v1/models/${a.model}/predictions`}preparePayload(a){return{input:{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs},version:a.model.includes(":")?a.model.split(":")[1]:void 0}}prepareHeaders(a,r){const l={Authorization:`Bearer ${a.accessToken}`,Prefer:"wait"};return r||(l["Content-Type"]="application/json"),l}makeUrl(a){const r=this.makeBaseUrl(a);return a.model.includes(":")?`${r}/v1/predictions`:`${r}/v1/models/${a.model}/predictions`}}class uS extends so{preparePayload(a){return{input:{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs,lora_weights:a.mapping?.adapter==="lora"&&a.mapping.adapterWeightsPath?`https://huggingface.co/${a.mapping.hfModelId}`:void 0},version:a.model.includes(":")?a.model.split(":")[1]:void 0}}async getResponse(a,r,l,s){if(typeof a=="object"&&"output"in a&&Array.isArray(a.output)&&a.output.length>0&&typeof a.output[0]=="string")return s==="json"?{...a}:s==="url"?a.output[0]:await(await fetch(a.output[0])).blob();throw new oe("Received malformed response from Replicate text-to-image API")}}class cS extends so{preparePayload(a){const r=super.preparePayload(a),l=r.input;if(typeof l=="object"&&l!==null&&"prompt"in l){const s=l;s.text=s.prompt,delete s.prompt}return r}
62async getResponse(a){if(a instanceof Blob)return a;if(a&&typeof a=="object"&&"output"in a){if(typeof a.output=="string")return await(await fetch(a.output)).blob();if(Array.isArray(a.output))return await(await fetch(a.output[0])).blob()}throw new oe("Received malformed response from Replicate text-to-speech API")}}class fS extends so{async getResponse(a){if(typeof a=="object"&&a&&"output"in a&&typeof a.output=="string"&&Xa(a.output))return await(await fetch(a.output)).blob();throw new oe("Received malformed response from Replicate text-to-video API")}}class pS extends so{preparePayload(a){return{input:{...ze(a.args,["inputs","parameters"]),...a.args.parameters,audio:a.args.inputs},version:a.model.includes(":")?a.model.split(":")[1]:void 0}}async preparePayloadAsync(a){const r="data"in a&&a.data instanceof Blob?a.data:"inputs"in a?a.inputs:void 0;if(!r||!(r instanceof Blob))throw new Error("Audio input must be a Blob");const l=new Uint8Array(await r.arrayBuffer()),s=rn(l),c=`data:${r.type||"audio/wav"};base64,${s}`;return{..."data"in a?ze(a,"data"):ze(a,"inputs"),inputs:c}}
62async getResponse(a){if(typeof a?.output=="string")return{text:a.output};if(Array.isArray(a?.output)&&typeof a.output[0]=="string")return{text:a.output[0]};const r=a?.output;if(r&&typeof r=="object"){if(typeof r.transcription=="string")return{text:r.transcription};if(typeof r.translation=="string")return{text:r.translation};if(typeof r.txt_file=="string")return{text:await(await fetch(r.txt_file)).text()}}throw new oe("Received malformed response from Replicate automatic-speech-recognition API")}}class dS extends so{preparePayload(a){return{input:{...ze(a.args,["inputs","parameters"]),...a.args.parameters,input_image:a.args.inputs,lora_weights:a.mapping?.adapter==="lora"&&a.mapping.adapterWeightsPath?`https://huggingface.co/${a.mapping.hfModelId}`:void 0},version:a.model.includes(":")?a.model.split(":")[1]:void 0}}async preparePayloadAsync(a){const{inputs:r,...l}=a,s=new Uint8Array(await r.arrayBuffer()),c=rn(s),p=`data:${r.type||"image/jpeg"};base64,${c}`;return{...l,inputs:p}}async getResponse(a){if(typeof a=="object"&&a&&"output"in a&&Array.isArray(a.output)&&a.output.length>0&&typeof a.output[0]=="string")return await(await fetch(a.output[0])).blob();if(typeof a=="object"&&a&&"output"in a&&typeof a.output=="string"&&Xa(a.output))return await(await fetch(a.output)).blob();throw new oe("Received malformed response from Replicate image-to-image API")}}class mS extends Nt{constructor(){super("sambanova","https://api.sambanova.ai")}preparePayload(a){const r=a.args.response_format;return r?.type==="json_schema"&&r.json_schema&&(r.json_schema.strict??!0)&&(r.json_schema.strict=!1),super.preparePayload(a)}}class hS extends Ft{constructor(){super("sambanova","https://api.sambanova.ai")}makeRoute(){return"/v1/embeddings"}
62async getResponse(a){if(typeof a=="object"&&"data"in a&&Array.isArray(a.data))return a.data.map(r=>r.embedding);throw new oe("Received malformed response from Sambanova feature-extraction (embeddings) API")}preparePayload(a){return{model:a.model,input:a.args.inputs,...a.args}}}const nf="https://api.scaleway.ai";class gS extends Nt{constructor(){super("scaleway",nf)}}class yS extends Ta{constructor(){super("scaleway",nf)}preparePayload(a){return{model:a.model,...a.args,prompt:a.args.inputs}}async getResponse(a){if(typeof a=="object"&&a!==null&&"choices"in a&&Array.isArray(a.choices)&&a.choices.length>0){const r=a.choices[0];if(typeof r=="object"&&r&&"text"in r&&r.text&&typeof r.text=="string")return{generated_text:r.text}}throw new oe("Received malformed response from Scaleway text generation API")}}class bS extends Ft{constructor(){super("scaleway",nf)}preparePayload(a){return{input:a.args.inputs,model:a.model}}makeRoute(){return"v1/embeddings"}async getResponse(a){return a.data.map(r=>r.embedding)}}const af="https://api.together.xyz";class vS extends Nt{constructor(){super("together",af)}preparePayload(a){const r=super.preparePayload(a),l=r.response_format;return l?.type==="json_schema"&&l?.json_schema?.schema&&(r.response_format={type:"json_schema",schema:l.json_schema.schema}),r}}class wS extends Ta{constructor(){super("together",af)}preparePayload(a){return{model:a.model,...a.args,prompt:a.args.inputs}}
62async getResponse(a){if(typeof a=="object"&&"choices"in a&&Array.isArray(a?.choices)&&typeof a?.model=="string")return{generated_text:a.choices[0].text};throw new oe("Received malformed response from Together text generation API")}}class _S extends Ft{constructor(){super("together",af)}makeRoute(){return"v1/images/generations"}preparePayload(a){return{...ze(a.args,["inputs","parameters"]),...a.args.parameters,prompt:a.args.inputs,response_format:"base64",model:a.model}}async getResponse(a,r,l,s){if(typeof a=="object"&&"data"in a&&Array.isArray(a.data)&&a.data.length>0&&"b64_json"in a.data[0]&&typeof a.data[0].b64_json=="string"){if(s==="json")return{...a};const c=a.data[0].b64_json;return s==="url"?`data:image/jpeg;base64,${c}`:fetch(`data:image/jpeg;base64,${c}`).then(p=>p.blob())}throw new oe("Received malformed response from Together text-to-image API")}}const vc={"black-forest-labs":{"text-to-image":new O1},cerebras:{conversational:new M1},cohere:{conversational:new U1},"fal-ai":{"text-to-image":new N1,"text-to-speech":new q1,"text-to-video":new j1,"image-to-image":new I1,"automatic-speech-recognition":new z1,"image-segmentation":new B1,"image-to-video":new L1},"featherless-ai":{conversational:new H1,"text-generation":new P1},"hf-inference":{"text-to-image":new t1,conversational:new n1,"text-generation":new a1,"text-classification":new h1,"question-answering":new g1,"audio-classification":new i1,"automatic-speech-recognition":new r1,"fill-mask":new y1,"feature-extraction":new s1,"image-classification":new u1,"image-segmentation":new c1,"document-question-answering":new l1,"image-to-text":new f1,"object-detection":new d1,"audio-to-audio":new o1,"zero-shot-image-classification":new m1,"zero-shot-classification":new Gc,"image-to-image":new p1,"sentence-similarity":new b1,"table-question-answering":new Dl,"tabular-classification":new S1,"text-to-speech":new x1,"token-classification":new v1,translation:new w1,summarization:new _1,"visual-question-answering":new A1,"tabular-regression":new k1,"text-to-audio":new T1},"fireworks-ai":{conversational:new V1},groq:{conversational:new F1,"text-generation":new $1},hyperbolic:{"text-to-image":new Q1,conversational:new X1,"text-generation":new Y1},nebius:{"text-to-image":new J1,conversational:new K1,"text-generation":new Z1,"feature-extraction":new G1},novita:{conversational:new eS,"text-generation":new W1,"text-to-video":new tS},nscale:{"text-to-image":new aS,conversational:new nS},openai:{conversational:new rS},ovhcloud:{conversational:new oS,"text-generation":new lS},publicai:{conversational:new sS},replicate:{"text-to-image":new uS,"text-to-speech":new cS,"text-to-video":new fS,"image-to-image":new dS,"automatic-speech-recognition":new pS},sambanova:{conversational:new mS,"feature-extraction":new hS},scaleway:{conversational:new gS,"text-generation":new yS,"feature-extraction":new bS},together:{"text-to-image":new _S,conversational:new vS,"text-generation":new wS}};function je(t,a){if(t==="hf-inference"&&!a||t==="auto")return new Xe;if(!a)throw new ft("you need to provide a task name when using an external provider, e.g. 'text-to-image'");if(!(t in vc))throw new ft(`Provider '${t}' not supported. Available providers: ${Object.keys(vc)}`);const r=vc[t];if(!r||!(a in r))throw new ft(`Task '${a}' not supported for provider '${t}'. Available tasks: ${Object.keys(r??{})}`);return r[a]}const xS="4.8.0",SS="@huggingface/inference";let wc=null;async function Ya(t,a,r){const{model:l}=t,s=a.provider,{task:c}=r??{};if(t.endpointUrl&&s!=="hf-inference")throw new ft("Cannot use endpointUrl with a third-party provider.");if(l&&Xa(l))throw new ft("Model URLs are no longer supported. Use endpointUrl instead.");if(t.endpointUrl)return Kh(l??t.endpointUrl,a,t,void 0,r);if(!l&&!c)throw new ft("No model provided, and no task has been specified.");const p=l??await AS(c);if(a.clientSideRoutingOnly&&!l)throw new ft(`Provider ${s} requires a model ID to be passed directly.`);const m=a.clientSideRoutingOnly?{provider:s,providerId:TS(l,s),hfModelId:l,status:"live",task:c}:await R1({modelId:p,task:c,provider:s,accessToken:t.accessToken},{fetch:r?.fetch});if(!m)throw new ft(`We have not been able to find inference provider information for model ${p}.`);return Kh(m.providerId,a,t,m,r)}function Kh(t,a,r,l,s){const{accessToken:c,endpointUrl:p,provider:m,model:b,...d}=r,y=a.provider,{includeCredentials:w,task:S,signal:_,billTo:B}=s??{},V=(()=>
62{if(a.clientSideRoutingOnly&&c&&c.startsWith("hf_"))throw new ft(`Provider ${y} is closed-source and does not support HF tokens.`);return c?c.startsWith("hf_")?"hf-token":"provider-key":w==="include"?"credentials-include":"none"})(),K=p??t,H=a.makeUrl({authMethod:V,model:K,task:S}),G=a.prepareHeaders({accessToken:c,authMethod:V},"data"in r&&!!r.data);B&&(G[W0]=B);const we=[`${SS}/${xS}`,typeof navigator<"u"?navigator.userAgent:void 0].filter(_e=>_e!==void 0).join(" ");G["User-Agent"]=we;const W=a.makeBody({args:d,model:t,task:S,mapping:l});let L;typeof w=="string"?L=w:w===!0&&(L="include");const ue={headers:G,method:"POST",body:W,...L?{credentials:L}:void 0,signal:_};return{url:H,info:ue}}async function AS(t){wc||(wc=await kS());const a=wc[t];if((a?.models.length??0)<=0)throw new ft(`No default model defined for task ${t}, please define the model explicitly.`);return a.models[0].id}async function kS(){const t=`${Zc}/api/tasks`,a=await fetch(t);if(!a.ok)throw new Wr("Failed to load tasks definitions from Hugging Face Hub.",{url:t,method:"GET"},{requestId:a.headers.get("x-request-id")??"",status:a.status,body:await a.text()});return await a.json()}function TS(t,a){if(!t.startsWith(`${a}/`))throw new ft(`Models from ${a} must be prefixed by "${a}/". Got "${t}".`);return t.slice(a.length+1)}function ES(t){let a,r,l,s=!1;return function(p){a===void 0?(a=p,r=0,l=-1):a=RS(a,p);const m=a.length;let b=0;for(;r<m;){s&&(a[r]===10&&(b=++r),s=!1);let d=-1;for(;r<m&&d===-1;++r)switch(a[r]){case 58:l===-1&&(l=r-b);break;case 13:s=!0;case 10:d=r;break}if(d===-1)break;t(a.subarray(b,d),l),b=r,l=-1}b===m?a=void 0:b!==0&&(a=a.subarray(b),r-=b)}}function CS(t,a,r){let l=Zh();const s=new TextDecoder;return function(p,m){if(p.length===0)r?.(l),l=Zh();else if(m>0){const b=s.decode(p.subarray(0,m)),d=m+(p[m+1]===32?2:1),y=s.decode(p.subarray(d));switch(b){case"data":l.data=l.data?l.data+`
63`+y:y;break;case"event":l.event=y;break;case"id":t(l.id=y);break;case"retry":{const w=parseInt(y,10);isNaN(w)||a(l.retry=w);break}}}}}function RS(t,a){const r=new Uint8Array(t.length+a.length);return r.set(t),r.set(a,t.length),r}function Zh(){return{data:"",event:"",id:"",retry:void 0}}function xn(t){let a=null;if(t instanceof Blob||t instanceof ArrayBuffer)a="[Blob or ArrayBuffer]";else if(typeof t=="string")try{a=JSON.parse(t)}catch{a=t}return a.accessToken&&(a.accessToken="[REDACTED]"),a}async function Pe(t,a,r){const{url:l,info:s}=await Ya(t,a,r),c=await(r?.fetch??fetch)(l,s),p={url:l,info:s};if(r?.retry_on_error!==!1&&c.status===503)return Pe(t,a,r);if(!c.ok){const b=c.headers.get("Content-Type");if(["application/json","application/problem+json"].some(y=>b?.startsWith(y))){const y=await c.json();throw[400,422,404,500].includes(c.status)&&r?.chatCompletion?new kt(`Provider ${t.provider} does not seem to support chat completion for model ${t.model} . Error: ${JSON.stringify(y.error)}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y}):typeof y.error=="string"||typeof y.detail=="string"||typeof y.message=="string"?new kt(`Failed to perform inference: ${y.error??y.detail??y.message}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y}):new kt("Failed to perform inference: an HTTP error occurred when requesting the provider.",{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y})}const d=b?.startsWith("text/plain;")?await c.text():void 0;throw new kt(`Failed to perform inference: ${d??"an HTTP error occurred when requesting the provider"}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:d??""})}return c.headers.get("Content-Type")?.startsWith("application/json")?{data:await c.json(),requestContext:p}:{data:await c.blob(),requestContext:p}}async function*Ll(t,a,r){const{url:l,info:s}=await Ya({...t,stream:!0}
63,a,r),c=await(r?.fetch??fetch)(l,s);if(r?.retry_on_error!==!1&&c.status===503)return yield*Ll(t,a,r);if(!c.ok){if(c.headers.get("Content-Type")?.startsWith("application/json")){const y=await c.json();if([400,422,404,500].includes(c.status)&&r?.chatCompletion)throw new kt(`Provider ${t.provider} does not seem to support chat completion for model ${t.model} . Error: ${JSON.stringify(y.error)}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y});if(typeof y.error=="string")throw new kt(`Failed to perform inference: ${y.error}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y});if(y.error&&"message"in y.error&&typeof y.error.message=="string")throw new kt(`Failed to perform inference: ${y.error.message}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y});if(typeof y.message=="string")throw new kt(`Failed to perform inference: ${y.message}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:y})}throw new kt("Failed to perform inference: an HTTP error occurred when requesting the provider.",{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:""})}if(!c.headers.get("content-type")?.startsWith("text/event-stream"))throw new kt("Failed to perform inference: server does not support event stream content type, it returned "+c.headers.get("content-type"),{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:""});if(!c.body)return;const p=c.body.getReader();let m=[];const d=ES(CS(()=>{},()=>{},y=>{m.push(y)}));try{for(;;){const{done:y,value:w}=await p.read();if(y)return;d(w);for(const S of m)if(S.data.length>0){if(S.data==="[DONE]")return;const _=JSON.parse(S.data);if(typeof _=="object"&&_!==null&&"error"in _){const B=typeof _.error=="string"?_.error:typeof _.error=="object"&&_.error&&"message"in _.error&&typeof _.error.message=="string"?_.error.message:JSON.stringify(_.error);throw new kt(`Failed to perform inference: an occurred while streaming the response: ${B}`,{url:l,method:s.method??"GET",headers:s.headers,body:xn(s.body)},{requestId:c.headers.get("x-request-id")??"",status:c.status,body:_})}yield _}m=[]}}finally{p.releaseLock()}}async function DS(t,a){lo().warn("The request method is deprecated and will be removed in a future version of huggingface.js. Use specific task functions instead.");const l=await Ie(t.provider,t.model,t.endpointUrl),s=je(l,a?.task);return(await Pe(t,s,a)).data}async function*OS(t,a){lo().warn("The streamingRequest method is deprecated and will be removed in a future version of huggingface.js. Use specific task functions instead.");const l=await Ie(t.provider,t.model,t.endpointUrl),s=je(l,a?.task);yield*Ll(t,s,a)}function Wg(t){return"data"in t?t:{...ze(t,"inputs"),data:t.inputs}}async function MS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"audio-classification"),s=Wg(t),{data:c}=await Pe(s,l,{...a,task:"audio-classification"});return l.getResponse(c)}async function US(t,a){const r="inputs"in t?t.model:void 0,l=await Ie(t.provider,r),s=je(l,"audio-to-audio"),c=Wg(t),{data:p}=await Pe(c,s,{...a,task:"audio-to-audio"});return s.getResponse(p)}async function NS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"automatic-speech-recognition"),s=await l.preparePayloadAsync(t),{data:c}=await Pe(s,l,{...a,task:"automatic-speech-recognition"});return l.getResponse(c)}async function IS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-to-speech"),{data:s}=await Pe(t,l,{...a,task:"text-to-speech"});return l.getResponse(s)}function rf(t){return"data"in t?t:{...ze(t,"inputs"),data:t.inputs}}async function jS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"image-classification"),s=rf(t),{data:c}=await Pe(s,l,{...a,task:"image-classification"});return l.getResponse(c)}async function LS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"image-segmentation"),s=await l.preparePayloadAsync(t),{data:c}=await Pe(s,l,{...a,task:"image-segmentation"}),{url:p,info:m}=await Ya(t,l,{...a,task:"image-segmentation"});return l.getResponse(c,p,m.headers)}async function zS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"image-to-image"),s=await l.preparePayloadAsync(t),{data:c}=await Pe(s,l,{...a,task:"image-to-image"}),{url:p,info:m}=await Ya(t,l,{...a,task:"image-to-image"});return l.getResponse(c,p,m.headers)}async function qS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"image-to-text"),s=rf(t),{data:c}=await Pe(s,l,{...a,task:"image-to-text"});return l.getResponse(c[0])}async function BS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"image-to-vi
63deo"),s=await l.preparePayloadAsync(t),{data:c}=await Pe(s,l,{...a,task:"image-to-video"}),{url:p,info:m}=await Ya(t,l,{...a,task:"image-to-video"});return l.getResponse(c,p,m.headers)}async function HS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"object-detection"),s=rf(t),{data:c}=await Pe(s,l,{...a,task:"object-detection"});return l.getResponse(c)}async function PS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-to-image"),{data:s}=await Pe(t,l,{...a,task:"text-to-image"}),{url:c,info:p}=await Ya(t,l,{...a,task:"text-to-image"});return l.getResponse(s,c,p.headers,a?.outputType)}async function VS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-to-video"),{data:s}=await Pe(t,l,{...a,task:"text-to-video"}),{url:c,info:p}=await Ya(t,l,{...a,task:"text-to-video"});return l.getResponse(s,c,p.headers)}async function $S(t){return t.inputs instanceof Blob?{...t,inputs:{image:rn(new Uint8Array(await t.inputs.arrayBuffer()))}}:{...t,inputs:{image:rn(new Uint8Array(t.inputs.image instanceof ArrayBuffer?t.inputs.image:await t.inputs.image.arrayBuffer()))}}}async function FS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"zero-shot-image-classification"),s=await $S(t),{data:c}=await Pe(s,l,{...a,task:"zero-shot-image-classification"});return l.getResponse(c)}async function XS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"conversational"),{data:s}=await Pe(t,l,{...a,task:"conversational"});return l.getResponse(s)}async function*YS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"conversational");yield*Ll(t,l,{...a,task:"conversational"})}async function QS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"feature-extraction"),{data:s}=await Pe(t,l,{...a,task:"feature-extraction"});return l.getResponse(s)}async function KS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"fill-mask"),{data:s}=await Pe(t,l,{...a,task:"fill-mask"});return l.getResponse(s)}async function ZS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"question-answering"),{data:s}=await Pe(t,l,{...a,task:"question-answering"});return l.getResponse(s)}async function JS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"sentence-similarity"),{data:s}=await Pe(t,l,{...a,task:"sentence-similarity"});return l.getResponse(s)}async function GS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"summarization"),{data:s}=await Pe(t,l,{...a,task:"summarization"});return l.getResponse(s)}async function WS(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"table-question-answering"),{data:s}=await Pe(t,l,{...a,task:"table-question-answering"});return l.getResponse(s)}async function eA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-classification"),{data:s}=await Pe(t,l,{...a,task:"text-classification"});return l.getResponse(s)}async function tA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-generation"),{data:s}=await Pe(t,l,{...a,task:"text-generation"});return l.getResponse(s)}async function*nA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"text-generation");yield*Ll(t,l,{...a,task:"text-generation"})}async function aA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"token-classification"),{data:s}=await Pe(t,l,{...a,task:"token-classification"});return l.getResponse(s)}async function iA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"translation"),{data:s}=await Pe(t,l,{...a,task:"translation"});return l.getResponse(s)}async function rA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"zero-shot-classification"),{data:s}=await Pe(t,l,{...a,task:"zero-shot-classification"});return l.getResponse(s)}async function oA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"document-question-answering"),s={...t,inputs:{question:t.inputs.question,image:rn(new Uint8Array(await t.inputs.image.arrayBuffer()))}},{data:c}=await Pe(s,l,{...a,task:"document-question-answering"});return l.getResponse(c)}async function lA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"visual-question-answering"),s={...t,input
63s:{question:t.inputs.question,image:rn(new Uint8Array(await t.inputs.image.arrayBuffer()))}},{data:c}=await Pe(s,l,{...a,task:"visual-question-answering"});return l.getResponse(c)}async function sA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"tabular-classification"),{data:s}=await Pe(t,l,{...a,task:"tabular-classification"});return l.getResponse(s)}async function uA(t,a){const r=await Ie(t.provider,t.model,t.endpointUrl),l=je(r,"tabular-regression"),{data:s}=await Pe(t,l,{...a,task:"tabular-regression"});return l.getResponse(s)}const cA=Object.freeze(Object.defineProperty({__proto__:null,audioClassification:MS,audioToAudio:US,automaticSpeechRecognition:NS,chatCompletion:XS,chatCompletionStream:YS,documentQuestionAnswering:oA,featureExtraction:QS,fillMask:KS,imageClassification:jS,imageSegmentation:LS,imageToImage:zS,imageToText:qS,imageToVideo:BS,objectDetection:HS,questionAnswering:ZS,request:DS,sentenceSimilarity:JS,streamingRequest:OS,summarization:GS,tableQuestionAnswering:WS,tabularClassification:sA,tabularRegression:uA,textClassification:eA,textGeneration:tA,textGenerationStream:nA,textToImage:PS,textToSpeech:IS,textToVideo:VS,tokenClassification:aA,translation:iA,visualQuestionAnswering:lA,zeroShotClassification:rA,zeroShotImageClassification:FS},Symbol.toStringTag,{value:"Module"}));function fA(t){return Object.entries(t)}class of{accessToken;defaultOptions;constructor(a="",r={}){this.accessToken=a,this.defaultOptions=r;for(const[l,s]of fA(cA))Object.defineProperty(this,l,{enumerable:!1,value:(c,p)=>s({endpointUrl:r.endpointUrl,accessToken:a,...c},{...ze(r,["endpointUrl"]),...p})})}endpoint(a){return new of(this.accessToken,{...this.defaultOptions,endpointUrl:a})}}class pA extends of{}var z=Object.freeze({Text:"Text",NumericLiteral:"NumericLiteral",StringLiteral:"StringLiteral",Identifier:"Identifier",Equals:"Equals",OpenParen:"OpenParen",CloseParen:"CloseParen",OpenStatement:"OpenStatement",CloseStatement:"CloseStatement",OpenExpression:"OpenExpression",CloseExpression:"CloseExpression",OpenSquareBracket:"OpenSquareBracket",CloseSquareBracket:"CloseSquareBracket",OpenCurlyBracket:"OpenCurlyBracket",CloseCurlyBracket:"CloseCurlyBracket",Comma:"Comma",Dot:"Dot",Colon:"Colon",Pipe:"Pipe",CallOperator:"CallOperator",AdditiveBinaryOperator:"AdditiveBinaryOperator",MultiplicativeBinaryOperator:"MultiplicativeBinaryOperator",ComparisonBinaryOperator:"ComparisonBinaryOperator",UnaryOperator:"UnaryOperator",Comment:"Comment"}),Aa=class{constructor(t,a){this.value=t,this.type=a}};function Jh(t){return/\w/.test(t)}function Jr(t){return/[0-9]/.test(t)}var dA=[["{%",z.OpenStatement],["%}",z.CloseStatement],["{{",z.OpenExpression],["}}",z.CloseExpression],["(",z.OpenParen],[")",z.CloseParen],["{",z.OpenCurlyBracket],["}",z.CloseCurlyBracket],["[",z.OpenSquareBracket],["]",z.CloseSquareBracket],[",",z.Comma],[".",z.Dot],[":",z.Colon],["|",z.Pipe],["<=",z.ComparisonBinaryOperator],[">=",z.ComparisonBinaryOperator],["==",z.ComparisonBinaryOperator],["!=",z.ComparisonBinaryOperator],["<",z.ComparisonBinaryOperator],[">",z.ComparisonBinaryOperator],["+",z.AdditiveBinaryOperator],["-",z.AdditiveBinaryOperator],["~",z.AdditiveBinaryOperator],["*",z.MultiplicativeBinaryOperator],["/",z.MultiplicativeBinaryOperator],["%",z.MultiplicativeBinaryOperator],["=",z.Equals]],mA=new Map([["n",`
64`],["t","	"],["r","\r"],["b","\b"],["f","\f"],["v","\v"],["'","'"],['"','"'],["\\","\\"]]);function hA(t,a={}){return t.endsWith(`
65`)&&(t=t.slice(0,-1)),a.lstrip_blocks&&(t=t.replace(/^[ \t]*({[#%-])/gm,"$1")),a.trim_blocks&&(t=t.replace(/([#%-]})\n/g,"$1")),t.replace(/-%}\s*/g,"%}").replace(/\s*{%-/g,"{%").replace(/-}}\s*/g,"}}").replace(/\s*{{-/g,"{{").replace(/-#}\s*/g,"#}").replace(/\s*{#-/g,"{#").replace(/{%\s*(end)?generation\s*%}/gs,"")}function gA(t,a={}){const r=[],l=hA(t,a);let s=0,c=0;const p=m=>{let b="";for(;m(l[s]);){if(l[s]==="\\"){if(++s,s>=l.length)throw new SyntaxError("Unexpected end of input");const d=l[s++],y=mA.get(d);if(y===void 0)throw new SyntaxError(`Unexpected escaped character: ${d}`);b+=y;continue}if(b+=l[s++],s>=l.length)throw new SyntaxError("Unexpected end of input")}return b};e:for(;s<l.length;){const m=r.at(-1)?.type;if(m===void 0||m===z.CloseStatement||m===z.CloseExpression||m===z.Comment){let d="";for(;s<l.length&&!(l[s]==="{"&&(l[s+1]==="%"||l[s+1]==="{"||l[s+1]==="#"));)d+=l[s++];if(d.length>0){r.push(new Aa(d,z.Text));continue}}if(l[s]==="{"&&l[s+1]==="#"){s+=2;let d="";for(;l[s]!=="#"||l[s+1]!=="}";){if(s+2>=l.length)throw new SyntaxError("Missing end of comment tag");d+=l[s++]}r.push(new Aa(d,z.Comment)),s+=2;continue}p(d=>/\s/.test(d));const b=l[s];if(b==="-"||b==="+"){const d=r.at(-1)?.type;if(d===z.Text||d===void 0)throw new SyntaxError(`Unexpected character: ${b}`);switch(d){case z.Identifier:case z.NumericLiteral:case z.StringLiteral
vendor: 5,176 bytes, line 65
65:case z.CloseParen:case z.CloseSquareBracket:break;default:{++s;const y=p(Jr);r.push(new Aa(`${b}${y}`,y.length>0?z.NumericLiteral:z.UnaryOperator));continue}}}for(const[d,y]of dA){if(d==="}}"&&c>0)continue;if(l.slice(s,s+d.length)===d){r.push(new Aa(d,y)),y===z.OpenExpression?c=0:y===z.OpenCurlyBracket?++c:y===z.CloseCurlyBracket&&--c,s+=d.length;continue e}}if(b==="'"||b==='"'){++s;const d=p(y=>y!==b);r.push(new Aa(d,z.StringLiteral)),++s;continue}if(Jr(b)){let d=p(Jr);if(l[s]==="."&&Jr(l[s+1])){++s;const y=p(Jr);d=`${d}.${y}`}r.push(new Aa(d,z.NumericLiteral));continue}if(Jh(b)){const d=p(Jh);r.push(new Aa(d,z.Identifier));continue}throw new SyntaxError(`Unexpected character: ${b}`)}return r}var An=class{type="Statement"},yA=class extends An{constructor(t){super(),this.body=t}type="Program"},bA=class extends An{constructor(t,a,r){super(),this.test=t,this.body=a,this.alternate=r}type="If"},vA=class extends An{constructor(t,a,r,l){super(),this.loopvar=t,this.iterable=a,this.body=r,this.defaultBlock=l}type="For"},wA=class extends An{type="Break"},_A=class extends An{type="Continue"},xA=class extends An{constructor(t,a,r){super(),this.assignee=t,this.value=a,this.body=r}type="Set"},SA=class extends An{constructor(t,a,r){super(),this.name=t,this.args=a,this.body=r}type="Macro"},AA=class extends An{constructor(t){super(),this.value=t}type="Comment"},on=class extends An{type="Expression"},kA=class extends on{constructor(t,a,r){super(),this.object=t,this.property=a,this.computed=r}type="MemberExpression"},Gh=class extends on{constructor(t,a){super(),this.callee=t,this.args=a}type="CallExpression"},Li=class extends on{constructor(t){super(),this.value=t}type="Identifier"},Vi=class extends on{constructor(t){super(),this.value=t}type="Literal"},TA=class extends Vi{type="IntegerLiteral"},EA=class extends Vi{type="FloatLiteral"},Wh=class extends Vi{type="StringLiteral"},CA=class extends Vi{type="ArrayLiteral"},eg=class extends Vi{type="TupleLiteral"},RA=class extends Vi{type="ObjectLiteral"},Gr=class extends on{constructor(t,a,r){super(),this.operator=t,this.left=a,this.right=r}type="BinaryExpression"},DA=class extends on{constructor(t,a){super(),this.operand=t,this.filter=a}type="FilterExpression"},OA=class extends An{constructor(t,a){super(),this.filter=t,this.body=a}type="FilterStatement"},MA=class extends on{constructor(t,a){super(),this.lhs=t,this.test=a}type="SelectExpression"},UA=class extends on{constructor(t,a,r){super(),this.operand=t,this.negate=a,this.test=r}type="TestExpression"},NA=class extends on{constructor(t,a){super(),this.operator=t,this.argument=a}type="UnaryExpression"},IA=class extends on{constructor(t=void 0,a=void 0,r=void 0){super(),this.start=t,this.stop=a,this.step=r}type="SliceExpression"},jA=class extends on{constructor(t,a){super(),this.key=t,this.value=a}type="KeywordArgumentExpression"},LA=class extends on{constructor(t){super(),this.argument=t}type="SpreadExpression"},zA=class extends An{constructor(t,a,r){super(),this.call=t,this.callerArgs=a,this.body=r}type="CallStatement"},qA=class extends on{constructor(t,a,r){super(),this.condition=t,this.trueExpr=a,this.falseExpr=r}type="Ternary"};function BA(t){const a=new yA([]);let r=0;function l(R,N){const h=t[r++];if(!h||h.type!==R)throw new Error(`Parser Error: ${N}. ${h.type} !== ${R}.`);return h}function s(R){if(!b(R))throw new SyntaxError(`Expected ${R}`);++r}function c(){switch(t[r].type){case z.Comment:return new AA(t[r++].value);case z.Text:return d();case z.OpenStatement:return y();case z.OpenExpression:return w();default:throw new SyntaxError(`Unexpected token type: ${t[r].type}`)}}function p(...R){return r+R.length<=t.length&&R.every((N,h)=>N===t[r+h].type)}function m(...R){return t[r]?.type===z.OpenStatement&&t[r+1]?.type===z.Identifier&&R.includes(t[r+1]?.value)}function b(...R){return r+R.length<=t.length&&R.every((N,h)=>t[r+h].type==="Identifier"&&N===t[r+h].value)}function d(){return new Wh(l(z.Text,"Expected text token").value)}function y(){if(l(z.OpenStatement,"Expected opening statement token"),t[r].type!==z.Identifier)throw new SyntaxError(`Unknown statement, got ${t[r].type}`);const R=t[r].value;let N;switch(R){case"set":++r,N=S();break;case"if":++r,N=_(),l(z.OpenStatement,"Expected {% token"),s("endif"),l(z.CloseStatement,"Expected %} token");break;case"macro":++r,N=B(),l(z.OpenStatement,"Expected {% token"),s("endmacro"),l(z.CloseStatement,"Expected %} token");break;case"for":++r,N=K(),l(z.OpenStatement,"Expected {% token"),s("endfor"),l(z.CloseStatement,"Expected %} token");break;case"call":{++r;let h=null;p(z.OpenParen)&&(h=Ae());const U=$();if(U.type!=="Identifier")throw new SyntaxError("Expected identifier following call statement");const Y=Ae();l(z.CloseStatement,"Expected closing statement token");const x=[];for(;!m("endcall");)x.push(c());l(z.OpenStatement,"Expected '{%'"),s("endcall"),l(z.CloseStatement,"Expected closing statement token");const te=new Gh(U,Y);N=new zA(te,h,x);break}case"break":++r,l(z.CloseStatement,"Expected closing statement token"),N=new wA;break;case"continue":++r,l(z.CloseStatement,"Expected closing statement token"),N=new _A;break;case"filter":{++r;let h=$();
65h instanceof Li&&p(z.OpenParen)&&(h=ye(h)),l(z.CloseStatement,"Expected closing statement token");const U=[];for(;!m("endfilter");)U.push(c());l(z.OpenStatement,"Expected '{%'"),s("endfilter"),l(z.CloseStatement,"Expected '%}'"),N=new OA(h,U);break}default:throw new SyntaxError(`Unknown statement type: ${R}`)}return N}function w(){l(z.OpenExpression,"Expected opening expression token");const R=H();return l(z.CloseExpression,"Expected closing expression token"),R}function S(){const R=V();let N=null;const h=[];if(p(z.Equals))++r,N=V();else{for(l(z.CloseStatement,"Expected %} token");!m("endset");)h.push(c());l(z.OpenStatement,"Expected {% token"),s("endset")}return l(z.CloseStatement,"Expected closing statement token"),new xA(R,N,h)}function _(){const R=H();l(z.CloseStatement,"Expected closing statement token");const N=[],h=[];for(;!m("elif","else","endif");)N.push(c());if(m("elif")){++r,++r;const U=_();h.push(U)}else if(m("else"))for(++r,++r,l(z.CloseStatement,"Expected closing statement token");!m("endif");)h.push(c());return new bA(R,N,h)}function B(){const R=$();if(R.type!=="Identifier")throw new SyntaxError("Expected identifier following macro statement");const N=Ae();l(z.CloseStatement,"Expected closing statement token");const h=[];for(;!m("endmacro");)h.push(c());return new SA(R,N,h)}function V(R=!1){const N=R?$:H,h=[N()],U=p(z.Comma);for(;U&&(++r,h.push(N()),!!p(z.Comma)););return U?new eg(h):h[0]}function K(){const R=V(!0);if(!(R instanceof Li||R instanceof eg))throw new SyntaxError(`Expected identifier/tuple for the loop variable, got ${R.type} instead`);if(!b("in"))throw new SyntaxError("Expected `in` keyword following loop variable");++r;const N=H();l(z.CloseStatement,"Expected closing statement token");const h=[];for(;!m("endfor","else");)h.push(c());const U=[];if(m("else"))for(++r,++r,l(z.CloseStatement,"Expected closing statement token");!m("endfor");)U.push(c());return new vA(R,N,h,U)}function H(){return G()}function G(){const R=Q();if(b("if")){++r;const N=Q();if(b("else")){++r;const h=G();return new qA(N,R,h)}else return new MA(R,N)}return R}function Q(){let R=we();for(;b("or");){const N=t[r];++r;const h=we();R=new Gr(N,R,h)}return R}function we(){let R=W();for(;b("and");){const N=t[r];++r;const h=W();R=new Gr(N,R,h)}return R}function W(){let R;for(;b("not");){const N=t[r];++r;const h=W();R=new NA(N,h)}return R??L()}function L(){let R=ue();for(;;){let N;if(b("not","in"))N=new Aa("not in",z.Identifier),r+=2;else if(b("in"))N=t[r++];else if(p(z.ComparisonBinaryOperator))N=t[r++];else break;const h=ue();R=new Gr(N,R,h)}return R}function ue(){let R=J();for(;p(z.AdditiveBinaryOperator);){const N=t[r];++r;const h=J();R=new Gr(N,R,h)}return R}function _e(){const R=ie($());return p(z.OpenParen)?ye(R):R}function ye(R){let N=new Gh(R,Ae());return N=ie(N),p(z.OpenParen)&&(N=ye(N)),N}function Ae(){l(z.OpenParen,"Expected opening parenthesis for arguments list");const R=ae();return l(z.CloseParen,"Expected closing parenthesis for arguments list"),R}function ae(){const R=[];for(;!p(z.CloseParen);){let N;if(t[r].type===z.MultiplicativeBinaryOperator&&t[r].value==="*"){++r;const h=H();N=new LA(h)}else if(N=H(),p(z.Equals)){if(++r,!(N instanceof Li))throw new SyntaxError("Expected identifier for keyword argument");const h=H();N=new jA(N,h)}R.push(N),p(z.Comma)&&++r}return R}function Z(){const R=[];let N=!1;for(;!p(z.CloseSquareBracket);)p(z.Colon)?(R.push(void 0),++r,N=!0):(R.push(H()),p(z.Colon)&&(++r,N=!0));if(R.length===0)throw new SyntaxError("Expected at least one argument for member/slice expression");if(N){if(R.length>3)throw new SyntaxError("Expected 0-3 arguments for slice expression");return new IA(...R)}return R[0]}function ie(R){for(;p(z.Dot)||p(z.OpenSquareBracket);){const N=t[r];++r;let h;const U=N.type===z.OpenSquareBracket;if(U)h=Z(),l(z.CloseSquareBracket,"Expected closing square bracket");else if(h=$(),h.type!=="Identifier")throw new SyntaxError("Expected identifier following dot operator");R=new kA(R,h,U)}return R}function J(){let R=ee();for(;p(z.MultiplicativeBinaryOperator);){const N=t[r++],h=ee();R=new Gr(N,R,h)}return R}function ee(){let R=M();for(;b("is");){++r;const N=b("not");N&&++r;const h=$();if(!(h instanceof Li))throw new SyntaxError("Expected identifier for the test");R=new UA(R,N,h)}return R}function M(){let R=_e();for(;p(z.Pipe);){++r;let N=$();if(!(N instanceof Li))throw new SyntaxError("Expected identifier for the filter");p(z.OpenParen)&&(N=ye(N)),R=new DA(R,N)}return R}function $(){const R=t[r++];switch(R.type){case z.NumericLiteral:{const N=R.value;return N.includes(".")?new EA(Number(N)):new TA(Number(N))}
65case z.StringLiteral:{let N=R.value;for(;p(z.StringLiteral);)N+=t[r++].value;return new Wh(N)}case z.Identifier:return new Li(R.value);case z.OpenParen:{const N=V();return l(z.CloseParen,"Expected closing parenthesis, got ${tokens[current].type} instead."),N}case z.OpenSquareBracket:{const N=[];for(;!p(z.CloseSquareBracket);)N.push(H()),p(z.Comma)&&++r;return++r,new CA(N)}case z.OpenCurlyBracket:{const N=new Map;for(;!p(z.CloseCurlyBracket);){const h=H();l(z.Colon,"Expected colon between key and value in object literal");const U=H();N.set(h,U),p(z.Comma)&&++r}return++r,new RA(N)}default:throw new SyntaxError(`Unexpected token: ${R.type}`)}}for(;r<t.length;)a.body.push(c());return a}function HA(t,a,r=1){a===void 0&&(a=t,t=0);const l=[];for(let s=t;s<a;s+=r)l.push(s);return l}function tg(t,a,r,l=1){const s=Math.sign(l);s>=0?(a=(a??=0)<0?Math.max(t.length+a,0):Math.min(a,t.length),r=(r??=t.length)<0?Math.max(t.length+r,0):Math.min(r,t.length)):(a=(a??=t.length-1)<0?Math.max(t.length+a,-1):Math.min(a,t.length-1),r=(r??=-1)<-1?Math.max(t.length+r,-1):Math.min(r,t.length-1));const c=[];for(let p=a;s*p<s*r;p+=l)c.push(t[p]);return c}function PA(t){return t.replace(/\b\w/g,a=>a.toUpperCase())}function VA(t){return $A(new Date,t)}function $A(t,a){const r=new Intl.DateTimeFormat(void 0,{month:"long"}),l=new Intl.DateTimeFormat(void 0,{month:"short"}),s=c=>c<10?"0"+c:c.toString();return a.replace(/%[YmdbBHM%]/g,c=>{switch(c){case"%Y":return t.getFullYear().toString();case"%m":return s(t.getMonth()+1);case"%d":return s(t.getDate());case"%b":return l.format(t);case"%B":return r.format(t);case"%H":return s(t.getHours());case"%M":return s(t.getMinutes());case"%%":return"%";default:return c}})}function FA(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function XA(t,a,r,l){if(l===0)return t;let s=l==null||l<0?1/0:l;const c=a.length===0?new RegExp("(?=)","gu"):new RegExp(FA(a),"gu");return t.replaceAll(c,p=>s>0?(--s,r):p)}var ng=class extends Error{},ag=class extends Error{},jn=class{type="RuntimeValue";value;builtins=new Map;constructor(t=void 0){this.value=t}__bool__(){return new Ue(!!this.value)}toString(){return String(this.value)}},Te=class extends jn{type="IntegerValue"},lt=class extends jn{type="FloatValue";toString(){return this.value%1===0?this.value.toFixed(1):this.value.toString()}},le=class extends jn{type="StringValue";builtins=new Map([["upper",new it(()=>new le(this.value.toUpperCase()))],["lower",new it(()=>new le(this.value.toLowerCase()))],["strip",new it(()=>new le(this.value.trim()))],["title",new it(()=>new le(PA(this.value)))],["capitalize",new it(()=>new le(this.value.charAt(0).toUpperCase()+this.value.slice(1)))],["length",new Te(this.value.length)],["rstrip",new it(()=>new le(this.value.trimEnd()))],["lstrip",new it(()=>new le(this.value.trimStart()))],["startswith",new it(t=>{if(t.length===0)throw new Error("startswith() requires at least one argument");const a=t[0];if(a instanceof le)return new Ue(this.value.startsWith(a.value));if(a instanceof Be){for(const r of a.value){if(!(r instanceof le))throw new Error("startswith() tuple elements must be strings");if(this.value.startsWith(r.value))return new Ue(!0)}return new Ue(!1)}throw new Error("startswith() argument must be a string or tuple of strings")})],["endswith",new it(t=>{if(t.length===0)throw new Error("endswith() requires at least one argument");const a=t[0];if(a instanceof le)return new Ue(this.value.endsWith(a.value));if(a instanceof Be){for(const r of a.value){if(!(r instanceof le))throw new Error("endswith() tuple elements must be strings");if(this.value.endsWith(r.value))return new Ue(!0)}return new Ue(!1)}throw new Error("endswith() argument must be a string or tuple of strings")})],["split",new it(t=>{const a=t[0]??new Ut;if(!(a instanceof le||a instanceof Ut))throw new Error("sep argument must be a string or null");const r=t[1]??new Te(-1);if(!(r instanceof Te))throw new Error("maxsplit argument must be a number");let l=[];if(a instanceof Ut){const s=this.value.trimStart();for(const{0:c,index:p}of s.matchAll(/\S+/g)){if(r.value!==-1&&l.length>=r.value&&p!==void 0){l.push(c+s.slice(p+c.length));break}l.push(c)}}else{if(a.value==="")throw new Error("empty separator");l=this.value.split(a.value),r.value!==-1&&l.length>r.value&&l.push(l.splice(r.value).join(a.value))}return new Be(l.map(s=>new le(s)))})],["replace",new it(t=>{if(t.length<2)throw new Error("replace() requires at least two arguments");const a=t[0],r=t[1];if(!(a instanceof le&&r instanceof le))throw new Error("replace() arguments must be strings");let l;if(t.length>2?t[2].type==="KeywordArgumentsValue"?l=t[2].value.get("count")??new Ut:l=t[2]:l=new 
65Ut,!(l instanceof Te||l instanceof Ut))throw new Error("replace() count argument must be a number or null");return new le(XA(this.value,a.value,r.value,l.value))})]])},Ue=class extends jn{type="BooleanValue"},Pt=class extends jn{type="ObjectValue";__bool__(){return new Ue(this.value.size>0)}builtins=new Map([["get",new it(([t,a])=>{if(!(t instanceof le))throw new Error(`Object key must be a string: got ${t.type}`);return this.value.get(t.value)??a??new Ut})],["items",new it(()=>this.items())],["keys",new it(()=>this.keys())],["values",new it(()=>this.values())]]);items(){return new Be(Array.from(this.value.entries()).map(([t,a])=>new Be([new le(t),a])))}keys(){return new Be(Array.from(this.value.keys()).map(t=>new le(t)))}values(){return new Be(Array.from(this.value.values()))}},_c=class extends Pt{type="KeywordArgumentsValue"},Be=class extends jn{type="ArrayValue";builtins=new Map([["length",new Te(this.value.length)]]);__bool__(){return new Ue(this.value.length>0)}},YA=class extends Be{type="TupleValue"},it=class extends jn{type="FunctionValue"},Ut=class extends jn{type="NullValue"},At=class extends jn{type="UndefinedValue"},$a=class{constructor(t){this.parent=t}variables=new Map([["namespace",new it(t=>{if(t.length===0)return new Pt(new Map);if(t.length!==1||!(t[0]instanceof Pt))throw new Error("`namespace` expects either zero arguments or a single object argument");return t[0]})]]);tests=new Map([["boolean",t=>t.type==="BooleanValue"],["callable",t=>t instanceof it],["odd",t=>{if(!(t instanceof Te))throw new Error(`cannot odd on ${t.type}`);return t.value%2!==0}],["even",t=>{if(!(t instanceof Te))throw new Error(`cannot even on ${t.type}`);return t.value%2===0}],["false",t=>t.type==="BooleanValue"&&!t.value],["true",t=>t.type==="BooleanValue"&&t.value],["none",t=>t.type==="NullValue"],["string",t=>t.type==="StringValue"],["number",t=>t instanceof Te||t instanceof lt],["integer",t=>t instanceof Te],["iterable",t=>t.type==="ArrayValue"||t.type==="StringValue"],["mapping",t=>t.type==="ObjectValue"],["lower",t=>{const a=t.value;return t.type==="StringValue"&&a===a.toLowerCase()}],["upper",t=>{const a=t.value;return t.type==="StringValue"&&a===a.toUpperCase()}],["none",t=>t.type==="NullValue"],["defined",t=>t.type!=="UndefinedValue"],["undefined",t=>t.type==="UndefinedValue"],["equalto",(t,a)=>t.value===a.value],["eq",(t,a)=>t.value===a.value]]);set(t,a){return this.declareVariable(t,El(a))}declareVariable(t,a){if(this.variables.has(t))throw new SyntaxError(`Variable already declared: ${t}`);return this.variables.set(t,a),a}setVariable(t,a){return this.variables.set(t,a),a}resolve(t){if(this.variables.has(t))return this;if(this.parent)return this.parent.resolve(t);throw new Error(`Unknown variable: ${t}`)}lookupVariable(t){try{return this.resolve(t).variables.get(t)??new At}catch{return new At}}};function QA(t){t.set("false",!1),t.set("true",!0),t.set("none",null),t.set("raise_exception",a=>{throw new Error(a)}),t.set("range",HA),t.set("strftime_now",VA),t.set("True",!0),t.set("False",!1),t.set("None",null)}var KA=class{global;constructor(t){this.global=t??new $a}run(t){return this.evaluate(t,this.global)}evaluateBinaryExpression(t,a){const r=this.evaluate(t.left,a);switch(t.operator.value){case"and":return r.__bool__().value?this.evaluate(t.right,a):r;case"or":return r.__bool__().value?r:this.evaluate(t.right,a)}const l=this.evaluate(t.right,a);switch(t.operator.value){case"==":return new Ue(r.value==l.value);case"!=":return new Ue(r.value!=l.value)}if(r instanceof At||l instanceof At){if(l instanceof At&&["in","not in"].includes(t.operator.value))return new Ue(t.operator.value==="not in");throw new Error(`Cannot perform operation ${t.operator.value} on undefined values`)}else{if(r instanceof Ut||l instanceof Ut)throw new Error("Cannot perform operation on null values");if(t.operator.value==="~")return new le(r.value.toString()+l.value.toString());if((r instanceof Te||r instanceof lt)&&(l instanceof Te||l instanceof lt)){const s=r.value,c=l.value;switch(t.operator.value){case"+":case"-":case"*":{const p=t.operator.value==="+"?s+c:t.operator.value==="-"?s-c:s*c;return r instanceof lt||l instanceof lt?new lt(p):new Te(p)}case"/":return new lt(s/c);case"%":{const p=s%c;return r instanceof lt||l instanceof lt?new lt(p):new Te(p)}case"<":return new Ue(s<c);case">":return new Ue(s>c);case">=":return new Ue(s>=c);case"<=":return new Ue(s<=c)}}else if(r instanceof Be&&l instanceof Be)switch(t.operator.value){case"+":return new Be(r.value.concat(l.value))}else if(l instanceof Be){const s=l.value.find(c=>c.value===r.value)!==void 0;switch(t.operator.value){case"in":return new Ue(s);case"not in":return new Ue(!s)}}}if(r instanceof le||l instanceof le)switch(t.operator.value){case"+":return new le(r.value.toString()+l.value.toString())}if(r instanceof le&&l instanceof le)switch(t.operator.value){case"in":return new Ue(l.value.includes(r.value));case"not in":return new Ue(!l.value.includes(r.value))}if(r instanceof le&&l instanceof Pt)switch(t.operator.value){case"in":return new Ue(l.value.has(r.value));case"not in":return new Ue(!l.value.has(r.value))}throw new SyntaxError(`Unknown operator "${t.operator.value}" between ${r.type} and ${l.type}`)}evaluateArguments(t,a){const r=[],l=new Map;for(const s of t)if(s.type==="SpreadExpression"){const c=s,p=this.evaluate(c.argument,a);if(!(p instanceof Be))throw new Error(`Cannot unpack non-iterable type: ${p.t
65ype}`);for(const m of p.value)r.push(m)}else if(s.type==="KeywordArgumentExpression"){const c=s;l.set(c.key.value,this.evaluate(c.value,a))}else{if(l.size>0)throw new Error("Positional arguments must come before keyword arguments");r.push(this.evaluate(s,a))}return[r,l]}applyFilter(t,a,r){if(a.type==="Identifier"){const l=a;if(l.value==="tojson")return new le(ao(t));if(t instanceof Be)switch(l.value){case"list":return t;case"first":return t.value[0];case"last":return t.value[t.value.length-1];case"length":return new Te(t.value.length);case"reverse":return new Be(t.value.reverse());case"sort":return new Be(t.value.sort((s,c)=>{if(s.type!==c.type)throw new Error(`Cannot compare different types: ${s.type} and ${c.type}`);switch(s.type){case"IntegerValue":case"FloatValue":return s.value-c.value;case"StringValue":return s.value.localeCompare(c.value);default:throw new Error(`Cannot compare type: ${s.type}`)}}));case"join":return new le(t.value.map(s=>s.value).join(""));case"string":return new le(ao(t));case"unique":{const s=new Set,c=[];for(const p of t.value)s.has(p.value)||(s.add(p.value),c.push(p));return new Be(c)}default:throw new Error(`Unknown ArrayValue filter: ${l.value}`)}else if(t instanceof le)switch(l.value){case"length":case"upper":case"lower":case"title":case"capitalize":{const s=t.builtins.get(l.value);if(s instanceof it)return s.value([],r);if(s instanceof Te)return s;throw new Error(`Unknown StringValue filter: ${l.value}`)}case"trim":return new le(t.value.trim());case"indent":return new le(t.value.split(`
66`).map((s,c)=>c===0||s.length===0?s:"    "+s).join(`
67`));case"join":case"string":return t;case"int":{const s=parseInt(t.value,10);return new Te(isNaN(s)?0:s)}case"float":{const s=parseFloat(t.value);return new lt(isNaN(s)?0:s)}default:throw new Error(`Unknown StringValue filter: ${l.value}`)}else if(t instanceof Te||t instanceof lt)switch(l.value){case"abs":return t instanceof Te?new Te(Math.abs(t.value)):new lt(Math.abs(t.value));case"int":return new Te(Math.floor(t.value));case"float":return new lt(t.value);default:throw new Error(`Unknown NumericValue filter: ${l.value}`)}else if(t instanceof Pt)switch(l.value){case"items":return new Be(Array.from(t.value.entries()).map(([s,c])=>new Be([new le(s),c])));case"length":return new Te(t.value.size);default:throw new Error(`Unknown ObjectValue filter: ${l.value}`)}else if(t instanceof Ue)switch(l.value){case"bool":return new Ue(t.value);case"int":return new Te(t.value?1:0);case"float":return new lt(t.value?1:0);case"string":return new le(t.value?"true":"false");default:throw new Error(`Unknown BooleanValue filter: ${l.value}`)}throw new Error(`Cannot apply filter "${l.value}" to type: ${t.type}`)}else if(a.type==="CallExpression"){const l=a;if(l.callee.type!=="Identifier")throw new Error(`Unknown filter: ${l.callee.type}`);const s=l.callee.value;if(s==="tojson"){const[,c]=this.evaluateArguments(l.args,r),p=c.get("indent")??new Ut;if(!(p instanceof Te||p instanceof Ut))throw new Error("If set, indent must be a number");return new le(ao(t,p.value))}else if(s==="join"){let c;if(t instanceof le)c=Array.from(t.value);else if(t instanceof Be)c=t.value.map(d=>d.value);else throw new Error(`Cannot apply filter "${s}" to type: ${t.type}`);const[p,m]=this.evaluateArguments(l.args,r),b=p.at(0)??m.get("separator")??new le("");if(!(b instanceof le))throw new Error("separator must be a string");return new le(c.join(b.value))}else if(s==="int"||s==="float"){const[c,p]=this.evaluateArguments(l.args,r),m=c.at(0)??p.get("default")??(s==="int"?new Te(0):new lt(0));if(t instanceof le){const b=s==="int"?parseInt(t.value,10):parseFloat(t.value);return isNaN(b)?m:s==="int"?new Te(b):new lt(b)}else{if(t instanceof Te||t instanceof lt)return t;if(t instanceof Ue)return s==="int"?new Te(t.value?1:0):new lt(t.value?1:0);throw new Error(`Cannot apply filter "${s}" to type: ${t.type}`)}}else if(s==="default"){const[c,p]=this.evaluateArguments(l.args,r),m=c[0]??new le(""),b=c[1]??p.get("boolean")??new Ue(!1);if(!(b instanceof Ue))throw new Error("`default` filter flag must be a boolean");return t instanceof At||b.value&&!t.__bool__().value?m:t}if(t instanceof Be){switch(s){case"selectattr":case"rejectattr":{const c=s==="selectattr";if(t.value.some(w=>!(w instanceof Pt)))throw new Error(`\`${s}\` can only be applied to array of objects`);if(l.args.some(w=>w.type!=="StringLiteral"))throw new Error(`arguments of \`${s}\` must be strings`);const[p,m,b]=l.args.map(w=>this.evaluate(w,r));let d;if(m){const w=r.tests.get(m.value);if(!w)throw new Error(`Unknown test: ${m.value}`);d=w}else d=(...w)=>w[0].__bool__().value;const y=t.value.filter(w=>{const S=w.value.get(p.value),_=S?d(S,b):!1;return c?_:!_});return new Be(y)}case"map":{const[,c]=this.evaluateArguments(l.args,r);if(c.has("attribute")){const p=c.get("attribute");if(!(p instanceof le))throw new Error("attribute must be a string");const m=c.get("default"),b=t.value.map(d=>{if(!(d instanceof Pt))throw new Error("items in map must be an object");return d.value.get(p.value)??m??new At});return new Be(b)}else throw new Error("`map` expressions without `attribute` set are not currently supported.")}}throw new Error(`Unknown ArrayValue filter: ${s}`)}else if(t instanceof le){switch(s){case"indent":{const[c,p]=this.evaluateArguments(l.args,r),m=c.at(0)??p.get("width")??new Te(4);if(!(m instanceof Te))throw new Error("width must be a number");const b=c.at(1)??p.get("first")??new Ue(!1),d=c.at(2)??p.get("blank")??new Ue(!1),y=t.value.split(`
68`),w=" ".repeat(m.value),S=y.map((_,B)=>!b.value&&B===0||!d.value&&_.length===0?_:w+_);return new le(S.join(`
69`))}case"replace":{const c=t.builtins.get("replace");if(!(c instanceof it))throw new Error("replace filter not available");const[p,m]=this.evaluateArguments(l.args,r);
69return c.value([...p,new _c(m)],r)}}throw new Error(`Unknown StringValue filter: ${s}`)}else throw new Error(`Cannot apply filter "${s}" to type: ${t.type}`)}throw new Error(`Unknown filter: ${a.type}`)}evaluateFilterExpression(t,a){const r=this.evaluate(t.operand,a);return this.applyFilter(r,t.filter,a)}evaluateTestExpression(t,a){const r=this.evaluate(t.operand,a),l=a.tests.get(t.test.value);if(!l)throw new Error(`Unknown test: ${t.test.value}`);const s=l(r);return new Ue(t.negate?!s:s)}evaluateSelectExpression(t,a){return this.evaluate(t.test,a).__bool__().value?this.evaluate(t.lhs,a):new At}evaluateUnaryExpression(t,a){const r=this.evaluate(t.argument,a);switch(t.operator.value){case"not":return new Ue(!r.value);default:throw new SyntaxError(`Unknown operator: ${t.operator.value}`)}}evaluateTernaryExpression(t,a){return this.evaluate(t.condition,a).__bool__().value?this.evaluate(t.trueExpr,a):this.evaluate(t.falseExpr,a)}evalProgram(t,a){return this.evaluateBlock(t.body,a)}evaluateBlock(t,a){let r="";for(const l of t){const s=this.evaluate(l,a);s.type!=="NullValue"&&s.type!=="UndefinedValue"&&(r+=s.toString())}return new le(r)}evaluateIdentifier(t,a){return a.lookupVariable(t.value)}evaluateCallExpression(t,a){const[r,l]=this.evaluateArguments(t.args,a);l.size>0&&r.push(new _c(l));const s=this.evaluate(t.callee,a);if(s.type!=="FunctionValue")throw new Error(`Cannot call something that is not a function: got ${s.type}`);return s.value(r,a)}evaluateSliceExpression(t,a,r){if(!(t instanceof Be||t instanceof le))throw new Error("Slice object must be an array or string");const l=this.evaluate(a.start,r),s=this.evaluate(a.stop,r),c=this.evaluate(a.step,r);if(!(l instanceof Te||l instanceof At))throw new Error("Slice start must be numeric or undefined");if(!(s instanceof Te||s instanceof At))throw new Error("Slice stop must be numeric or undefined");if(!(c instanceof Te||c instanceof At))throw new Error("Slice step must be numeric or undefined");return t instanceof Be?new Be(tg(t.value,l.value,s.value,c.value)):new le(tg(Array.from(t.value),l.value,s.value,c.value).join(""))}evaluateMemberExpression(t,a){const r=this.evaluate(t.object,a);let l;if(t.computed){if(t.property.type==="SliceExpression")return this.evaluateSliceExpression(r,t.property,a);l=this.evaluate(t.property,a)}else l=new le(t.property.value);let s;if(r instanceof Pt){if(!(l instanceof le))throw new Error(`Cannot access property with non-string: got ${l.type}`);s=r.value.get(l.value)??r.builtins.get(l.value)}else if(r instanceof Be||r instanceof le)if(l instanceof Te)s=r.value.at(l.value),r instanceof le&&(s=new le(r.value.at(l.value)));else if(l instanceof le)s=r.builtins.get(l.value);else throw new Error(`Cannot access property with non-string/non-number: got ${l.type}`);else{if(!(l instanceof le))throw new Error(`Cannot access property with non-string: got ${l.type}`);s=r.builtins.get(l.value)}return s instanceof jn?s:new At}evaluateSet(t,a){const r=t.value?this.evaluate(t.value,a):this.evaluateBlock(t.body,a);if(t.assignee.type==="Identifier"){const l=t.assignee.value;a.setVariable(l,r)}else if(t.assignee.type==="TupleLiteral"){const l=t.assignee;if(!(r instanceof Be))throw new Error(`Cannot unpack non-iterable type in set: ${r.type}`);const s=r.value;if(s.length!==l.value.length)throw new Error(`Too ${l.value.length>s.length?"few":"many"} items to unpack in set`);for(let c=0;c<l.value.length;++c){const p=l.value[c];if(p.type!=="Identifier")throw new Error(`Cannot unpack to non-identifier in set: ${p.type}`);a.setVariable(p.value,s[c])}}else if(t.assignee.type==="MemberExpression"){const l=t.assignee,s=this.evaluate(l.object,a);if(!(s instanceof Pt))throw new Error("Cannot assign to member of non-object");if(l.property.type!=="Identifier")throw new Error("Cannot assign to member with non-identifier property");s.value.set(l.property.value,r)}else throw new Error(`Invalid LHS inside assignment expression: ${JSON.stringify(t.assignee)}`);return new Ut}evaluateIf(t,a){const r=this.evaluate(t.test,a);return this.evaluateBlock(r.__bool__().value?t.body:t.alternate,a)}evaluateFor(t,a){const r=new $a(a);let l,s;if(t.iterable.type==="SelectExpression"){const d=t.iterable;s=this.evaluate(d.lhs,r),l=d.test}else s=this.evaluate(t.iterable,r);if(!(s instanceof Be||s instanceof Pt))throw new Error(`Expected iterable or object type in for loop: got ${s.type}`);s instanceof Pt&&(s=s.keys());const c=[],p=[];for(let d=0;d<s.value.length;++d){const y=new $a(r),w=s.value[d];let S;if(t.loopvar.type==="Identifier")S=_=>_.setVariable(t.loopvar.value,w);else if(t.loopvar.type==="TupleLiteral"){const _=t.loopvar;if(w.type!=="ArrayValue")throw new Error(`Cannot unpack non-iterable type: ${w.type}`);const B=w;if(_.value.length!==B.value.length)throw new Error(`Too ${_.value.length>B.value.length?"few":"many"} items to unpack`);S=V=>{for(let K=0;K<_.value.length;++K){if(_.value[K].type!=="Identifier")throw new Error(`Cannot unpack non-identifier type: ${_.value[K].type}`);V.setVariable(_.value[K].value,B.value[K])}}}else throw new Error(`Invalid loop variable(s): ${t.loopvar.type}`);l&&(S(y),!this.evaluate(l,y).__bool__().value)||(c.push(w),p.push(S))}let m="",b=!0;for(let d=0;d<c.length;++d){const y=new Map([["index",new Te(d+1)],["index0",new Te(d)],["revindex",new Te(c.length-d)],["revindex0",new Te(c.length-d-1)],["first",new Ue(d===0)],["last",new Ue(d===c.length-1)],["length",new Te(c.length)],["previtem",d>0?c[d-1]:new At],["nextitem",d<c.length-1?c[d+1]:new At]]);r.setVariable("loop",new Pt(y)),p[d](r);try{const w=this.evaluateBlock(t.body,r);m+=w.value}catch(w){if(w instanceof ag)continue;if(w instanceof ng)break;throw w}b=!1}if(b){const d=this.evaluateBlock(t.defaultBlock,r);m+=d.value}return new le(m)}evaluateMacro(t,a){return a.setVariable(t.name.value,new it((r,l)=>{const s=new $a(l);r=r.slice();let c;r.at(-1)?.type==="KeywordArgumentsValue"&&(c=r.pop());for(let p=0;p<t.args.length;++p){const m=t.args[p],b=r[p];if(m.type==="Identifier"){const d=m;if(!b)throw new Error(`Missing positional argument: ${d.value}`);s.setVariable(d.value,b)}else if(m.type==="KeywordArgumentExpression"){const d=m,y=b??c?.value.get(d.key.value)??this.evaluate(d.value,s);s.setVariable(d.key.value,y)}else throw new Error(`Unknown argument type: ${m.type}`)}return this.evaluateBlock(t.body,s)})),new Ut}
69evaluateCallStatement(t,a){const r=new it((m,b)=>{const d=new $a(b);if(t.callerArgs)for(let y=0;y<t.callerArgs.length;++y){const w=t.callerArgs[y];if(w.type!=="Identifier")throw new Error(`Caller parameter must be an identifier, got ${w.type}`);d.setVariable(w.value,m[y]??new At)}return this.evaluateBlock(t.body,d)}),[l,s]=this.evaluateArguments(t.call.args,a);l.push(new _c(s));const c=this.evaluate(t.call.callee,a);if(c.type!=="FunctionValue")throw new Error(`Cannot call something that is not a function: got ${c.type}`);const p=new $a(a);return p.setVariable("caller",r),c.value(l,p)}evaluateFilterStatement(t,a){const r=this.evaluateBlock(t.body,a);return this.applyFilter(r,t.filter,a)}evaluate(t,a){if(!t)return new At;switch(t.type){case"Program":return this.evalProgram(t,a);case"Set":return this.evaluateSet(t,a);case"If":return this.evaluateIf(t,a);case"For":return this.evaluateFor(t,a);case"Macro":return this.evaluateMacro(t,a);case"CallStatement":return this.evaluateCallStatement(t,a);case"Break":throw new ng;case"Continue":throw new ag;case"IntegerLiteral":return new Te(t.value);case"FloatLiteral":return new lt(t.value);case"StringLiteral":return new le(t.value);case"ArrayLiteral":return new Be(t.value.map(r=>this.evaluate(r,a)));case"TupleLiteral":return new YA(t.value.map(r=>this.evaluate(r,a)));case"ObjectLiteral":{const r=new Map;for(const[l,s]of t.value){const c=this.evaluate(l,a);if(!(c instanceof le))throw new Error(`Object keys must be strings: got ${c.type}`);r.set(c.value,this.evaluate(s,a))}return new Pt(r)}case"Identifier":return this.evaluateIdentifier(t,a);case"CallExpression":return this.evaluateCallExpression(t,a);case"MemberExpression":return this.evaluateMemberExpression(t,a);case"UnaryExpression":return this.evaluateUnaryExpression(t,a);case"BinaryExpression":return this.evaluateBinaryExpression(t,a);case"FilterExpression":return this.evaluateFilterExpression(t,a);case"FilterStatement":return this.evaluateFilterStatement(t,a);case"TestExpression":return this.evaluateTestExpression(t,a);case"SelectExpression":return this.evaluateSelectExpression(t,a);case"Ternary":return this.evaluateTernaryExpression(t,a);case"Comment":return new Ut;default:throw new SyntaxError(`Unknown node type: ${t.type}`)}}};function El(t){switch(typeof t){case"number":return Number.isInteger(t)?new Te(t):new lt(t);case"string":return new le(t);case"boolean":return new Ue(t);case"undefined":return new At;case"object":return t===null?new Ut:Array.isArray(t)?new Be(t.map(El)):new Pt(new Map(Object.entries(t).map(([a,r])=>[a,El(r)])));case"function":return new it((a,r)=>{const l=t(...a.map(s=>s.value))??null;return El(l)});default:throw new Error(`Cannot convert to runtime value: ${t}`)}}function ao(t,a,r){const l=r??0;switch(t.type){case"NullValue":case"UndefinedValue":return"null";case"IntegerValue":case"FloatValue":case"StringValue":case"BooleanValue":return JSON.stringify(t.value);case"ArrayValue":case"ObjectValue":{const s=a?" ".repeat(a):"",c=`
70`+s.repeat(l),p=c+s;if(t.type==="ArrayValue"){const m=t.value.map(b=>ao(b,a,l+1));return a?`[${p}${m.join(`,${p}`)}${c}]`:`[${m.join(", ")}]`}else{const m=Array.from(t.value.entries()).map(([b,d])=>{const y=`"${b}": ${ao(d,a,l+1)}`;return a?`${p}${y}`:y});return a?`{${m.join(",")}${c}}`:`{${m.join(", ")}}`}}default:throw new Error(`Cannot convert to JSON: ${t.type}`)}}var ht=`
71`,ZA="{%- ",JA=" -%}";function GA(t){switch(t.operator.type){case"MultiplicativeBinaryOperator":return 4;case"AdditiveBinaryOperator":return 3;case"ComparisonBinaryOperator":return 2;case"Identifier":return t.operator.value==="and"?1:t.operator.value==="in"||t.operator.value==="not in"?2:0}return 0}function WA(t,a="	"){const r=typeof a=="number"?" ".repeat(a):a;return Sn(t.body,0,r).replace(/\n$/,"")}function Tt(...t){return ZA+t.join(" ")+JA}function Sn(t,a,r){return t.map(l=>ek(l,a,r)).join(ht)}function ek(t,a,r){const l=r.repeat(a);switch(t.type){case"Program":return Sn(t.body,a,r);case"If":return tk(t,a,r);case"For":return nk(t,a,r);case"Set":return ak(t,a,r);case"Macro":return ik(t,a,r);case"Break":return l+Tt("break");case"Continue":return l+Tt("continue");case"CallStatement":return rk(t,a,r);case"FilterStatement":return ok(t,a,r);case"Comment":return l+"{# "+t.value+" #}";default:return l+"{{- "+Oe(t)+" -}}"}}function tk(t,a,r){const l=r.repeat(a),s=[];let c=t;
71for(;c&&(s.push({test:c.test,body:c.body}),c.alternate.length===1&&c.alternate[0].type==="If");)c=c.alternate[0];let p=l+Tt("if",Oe(s[0].test))+ht+Sn(s[0].body,a+1,r);for(let m=1;m<s.length;++m)p+=ht+l+Tt("elif",Oe(s[m].test))+ht+Sn(s[m].body,a+1,r);return c&&c.alternate.length>0&&(p+=ht+l+Tt("else")+ht+Sn(c.alternate,a+1,r)),p+=ht+l+Tt("endif"),p}function nk(t,a,r){const l=r.repeat(a);let s="";if(t.iterable.type==="SelectExpression"){const p=t.iterable;s=`${Oe(p.lhs)} if ${Oe(p.test)}`}else s=Oe(t.iterable);let c=l+Tt("for",Oe(t.loopvar),"in",s)+ht+Sn(t.body,a+1,r);return t.defaultBlock.length>0&&(c+=ht+l+Tt("else")+ht+Sn(t.defaultBlock,a+1,r)),c+=ht+l+Tt("endfor"),c}function ak(t,a,r){const l=r.repeat(a),s=Oe(t.assignee),c=t.value?Oe(t.value):"",p=l+Tt("set",`${s}${t.value?" = "+c:""}`);return t.body.length===0?p:p+ht+Sn(t.body,a+1,r)+ht+l+Tt("endset")}function ik(t,a,r){const l=r.repeat(a),s=t.args.map(Oe).join(", ");return l+Tt("macro",`${t.name.value}(${s})`)+ht+Sn(t.body,a+1,r)+ht+l+Tt("endmacro")}function rk(t,a,r){const l=r.repeat(a),s=t.callerArgs&&t.callerArgs.length>0?`(${t.callerArgs.map(Oe).join(", ")})`:"",c=Oe(t.call);let p=l+Tt(`call${s}`,c)+ht;return p+=Sn(t.body,a+1,r)+ht,p+=l+Tt("endcall"),p}function ok(t,a,r){const l=r.repeat(a),s=t.filter.type==="Identifier"?t.filter.value:Oe(t.filter);let c=l+Tt("filter",s)+ht;return c+=Sn(t.body,a+1,r)+ht,c+=l+Tt("endfilter"),c}function Oe(t,a=-1){switch(t.type){case"SpreadExpression":return`*${Oe(t.argument)}`;case"Identifier":return t.value;case"IntegerLiteral":return`${t.value}`;case"FloatLiteral":return`${t.value}`;case"StringLiteral":return JSON.stringify(t.value);case"BinaryExpression":{const r=t,l=GA(r),s=Oe(r.left,l),c=Oe(r.right,l+1),p=`${s} ${r.operator.value} ${c}`;return l<a?`(${p})`:p}case"UnaryExpression":{const r=t;return r.operator.value+(r.operator.value==="not"?" ":"")+Oe(r.argument,1/0)}case"CallExpression":{const r=t,l=r.args.map(Oe).join(", ");return`${Oe(r.callee)}(${l})`}case"MemberExpression":{const r=t;let l=Oe(r.object);["Identifier","MemberExpression","CallExpression","StringLiteral","IntegerLiteral","FloatLiteral","ArrayLiteral","TupleLiteral","ObjectLiteral"].includes(r.object.type)||(l=`(${l})`);let s=Oe(r.property);return!r.computed&&r.property.type!=="Identifier"&&(s=`(${s})`),r.computed?`${l}[${s}]`:`${l}.${s}`}case"FilterExpression":{const r=t,l=Oe(r.operand,1/0);return r.filter.type==="CallExpression"?`${l} | ${Oe(r.filter)}`:`${l} | ${r.filter.value}`}case"SelectExpression":{const r=t;return`${Oe(r.lhs)} if ${Oe(r.test)}`}case"TestExpression":{const r=t;return`${Oe(r.operand)} is${r.negate?" not":""} ${r.test.value}`}case"ArrayLiteral":case"TupleLiteral":{const r=t.value.map(Oe),l=t.type==="ArrayLiteral"?"[]":"()";return`${l[0]}${r.join(", ")}${l[1]}`}case"ObjectLiteral":return`{${Array.from(t.value.entries()).map(([l,s])=>`${Oe(l)}: ${Oe(s)}`).join(", ")}}`;case"SliceExpression":{const r=t,l=r.start?Oe(r.start):"",s=r.stop?Oe(r.stop):"",c=r.step?`:${Oe(r.step)}`:"";return`${l}:${s}${c}`}case"KeywordArgumentExpression":{const r=t;return`${r.key.value}=${Oe(r.value)}`}case"Ternary":{const r=t,l=`${Oe(r.trueExpr)} if ${Oe(r.condition,0)} else ${Oe(r.falseExpr)}`;return a>-1?`(${l})`:l}default:throw new Error(`Unknown expression type: ${t.type}`)}}var lk=class{parsed;constructor(t){const a=gA(t,{lstrip_blocks:!0,trim_blocks:!0});this.parsed=BA(a)}render(t){const a=new $a;if(QA(a),t)for(const[s,c]of Object.entries(t))a.set(s,c);return new KA(a).run(this.parsed).value}format(t){return WA(this.parsed,t?.indent||"	")}};const sk={transformers:["audio-classification","automatic-speech-recognition","depth-estimation","document-question-answering","feature-extraction","fill-mask","image-classification","image-feature-extraction","image-segmentation","image-to-image","image-to-text","image-text-to-text","mask-generation","object-detection","question-answering","summarization","table-question-answering","text-classification","text-generation","text-to-audio","text-to-speech","token-classification","translation","video-classification","visual-question-answering","zero-shot-classification","zero-shot-image-classification","zero-shot-object-detection"]},lf={"text-classification":{name:"Text Classification",subtasks:[{type:"acceptability-classification",name:"Acceptability Classification"},{type:"entity-linking-classification",name:"Entity Linking Classification"},{type:"fact-checking",name:"Fact Checking"},{type:"intent-classification",name:"Intent Classification"},{type:"language-identification",name:"Language Identification"},{type:"multi-class-classification",name:"Multi Class Classification"},{type:"multi-label-classification",name:"Multi Label Classification"},{type:"multi-input-text-classification",name:"Multi-input Text Classification"},{type:"natural-language-inference",name:"Natural Language Inference"},{type:"semantic-similarity-classification",name:"Semantic Similarity Classification"},{type:"sentiment-classification",name:"Sentiment Classification"},{type:"topic-classification",name:"Topic Classification"},{type:"semantic-similarity-scoring",name:"Semantic Similarity Scoring"},{type:"sentiment-scoring",name:"Sentiment Scoring"},{type:"sentiment-analysis",name:"Sentiment Analysis"},{type:"hate-speech-detection",name:"Hate Speech Detection"},{type:"text-scoring",name:"Text Scoring"}],modality:"nlp"},"token-classification":{name:"Token Classification",subtasks:[{type:"named-entity-recognition",name:"Named Entity Recognition"},{type:"part-of-speech",name:"Part of Speech"},{type:"parsing",name:"Parsing"},{type:"lemmatization",name:"Lemmatization"},{type:"word-sense-disambiguation",name:"Word Sense Disambiguation"},{type:"coreference-resolution",name:"Coreference-resolution"}],modality:"nlp"},"table-question-answering":{name:"Table Question Answering",modality:"nlp"},"question-answering":{name:"Question Answering",subtasks:[{type:"extractive-qa",name:"Extractive QA"},{type:"open-domain-qa",name:"Open Domain QA"},{type:"closed-domain-qa",name:"Closed Domain QA"}],modality:"nlp"},"zero-shot-classification":{name:"Zero-Shot Classification",modality:"nlp"},translation:{name:"Translation",modality:"nlp"},summarization:{name:"Summarization",subtasks:[{type:"news-articles-summarization",name:"News Articles Summarization"},{type:"news-articles-headline-generation",name:"News Articles Headline Generation"}],modality:"nlp"},"feature-extraction":{name:"Feature Extraction",modality:"nlp"},"text-generation":{name:"Text Generation",subtasks:[{type:"dialogue-modeling",name:"Dialogue Modeling"},{type:"dialogue-generation",name:"Dialogue Generation"},{type:"conversational",name:"Conversational"},{type:"language-modeling",name:"Language Modeling"},{type:"text-simplification",name:"Text simplification"},{type:"explanation-generation",name:"Explanation Generation"},{type:"abstractive-qa",name:"Abstractive QA"},{type:"open-domain-abstractive-qa",name:"Open Domain Abstractive QA"},{type:"closed-domain-qa",name:"Closed Domain QA"},{type:"open-book-qa",name:"Open Book QA"},{type:"closed-book-qa",name:"Closed Book QA"},{type:"text2text-generation",name:"Text2Text Generation"}],modality:"nlp"},"fill-mask":{name:"Fill-Mask",subtasks:[{type:"slot-filling",name:"Slot Filling"},{type:"masked-language-modeling",name:"Masked Language Modeling"}],modality:"nlp"},"sentence-similarity":{name:"Sentence Similarity",modality:"nlp"},"text-to-speech":{name:"Text-to-Speech",modality:"audio"},"text-to-audio":{name:"Text-to-Audio",modality:"audio"},"automatic-speech-recognition":{name:"Automatic Speech Recognition",modality:"audio"},"audio-to-audio":{name:"Audio-to-Audio",modality:"audio"},"audio-classification":{name:"Audio Classification",subtasks:[{type:"keyword-spotting",name:"Keyword Spotting"},{type:"speaker-identification",name:"Speaker Identification"},{type:"audio-intent-classification",name:"Audio Intent Classification"},{type:"audio-emotion-recognition",name:"Audio Emotion Recognition"},{type:"audio-language-identification",name:"Audio Language Identification"}],modality:"audio"},"audio-text-to-text":{name:"Audio-Text-to-Text",modality:"multimodal",hideInDatasets:!0},"voice-activity-detection":{name:"Voice Activity Detection",modality:"audio"},"depth-estimation":{name:"Depth Estimation",modality:"cv"},"image-classification":{name:"Image Classification",subtasks:[{type:"multi-label-image-classification",name:"Multi Label Image Classification"},{type:"multi-class-image-classification",name:"Multi Class Image Classification"}],modality:"cv"},"object-detection":{name:"Object Detection",subtasks:[{type:"face-detection",name:"Face Detection"},{type:"vehicle-detection",name:"Vehicle Detection"}],modality:"cv"},"image-segmentation":{name:"Image Segmentation",subtasks:[{type:"instance-segmentation",name:"Instance Segmentation"},{type:"semantic-segmentation",name:"Semantic Segmentation"},{type:"panoptic-segmentation",name:"Panoptic Segmentation"}],modality:"cv"},"text-to-image":{name:"Text-to-Image",modality:"cv"},"image-to-text":{name:"Image-to-Text",subtasks:[{type:"image-captioning",name:"Image Captioning"}],modality:"cv"},"image-to-image":{name:"Image-to-Image",subtasks:[{type:"image-inpainting",name:"Image Inpainting"},{type:"image-colorization",name:"Image Colorization"},{type:"super-resolution",name:"Super Resolution"}],modality:"cv"}
71,"image-to-video":{name:"Image-to-Video",modality:"cv"},"unconditional-image-generation":{name:"Unconditional Image Generation",modality:"cv"},"video-classification":{name:"Video Classification",modality:"cv"},"reinforcement-learning":{name:"Reinforcement Learning",modality:"rl"},robotics:{name:"Robotics",modality:"rl",subtasks:[{type:"grasping",name:"Grasping"},{type:"task-planning",name:"Task Planning"}]},"tabular-classification":{name:"Tabular Classification",modality:"tabular",subtasks:[{type:"tabular-multi-class-classification",name:"Tabular Multi Class Classification"},{type:"tabular-multi-label-classification",name:"Tabular Multi Label Classification"}]},"tabular-regression":{name:"Tabular Regression",modality:"tabular",subtasks:[{type:"tabular-single-column-regression",name:"Tabular Single Column Regression"}]},"tabular-to-text":{name:"Tabular to Text",modality:"tabular",subtasks:[{type:"rdf-to-text",name:"RDF to text"}],hideInModels:!0},"table-to-text":{name:"Table to Text",modality:"nlp",hideInModels:!0},"multiple-choice":{name:"Multiple Choice",subtasks:[{type:"multiple-choice-qa",name:"Multiple Choice QA"},{type:"multiple-choice-coreference-resolution",name:"Multiple Choice Coreference Resolution"}],modality:"nlp",hideInModels:!0},"text-ranking":{name:"Text Ranking",modality:"nlp"},"text-retrieval":{name:"Text Retrieval",subtasks:[{type:"document-retrieval",name:"Document Retrieval"},{type:"utterance-retrieval",name:"Utterance Retrieval"},{type:"entity-linking-retrieval",name:"Entity Linking Retrieval"},{type:"fact-checking-retrieval",name:"Fact Checking Retrieval"}],modality:"nlp",hideInModels:!0},"time-series-forecasting":{name:"Time Series Forecasting",modality:"tabular",subtasks:[{type:"univariate-time-series-forecasting",name:"Univariate Time Series Forecasting"},{type:"multivariate-time-series-forecasting",name:"Multivariate Time Series Forecasting"}]},"text-to-video":{name:"Text-to-Video",modality:"cv"},"image-text-to-text":{name:"Image-Text-to-Text",modality:"multimodal"},"visual-question-answering":{name:"Visual Question Answering",subtasks:[{type:"visual-question-answering",name:"Visual Question Answering"}],modality:"multimodal"},"document-question-answering":{name:"Document Question Answering",subtasks:[{type:"document-question-answering",name:"Document Question Answering"}],modality:"multimodal",hideInDatasets:!0},"zero-shot-image-classification":{name:"Zero-Shot Image Classification",modality:"cv"},"graph-ml":{name:"Graph Machine Learning",modality:"other"},"mask-generation":{name:"Mask Generation",modality:"cv"},"zero-shot-object-detection":{name:"Zero-Shot Object Detection",modality:"cv"},"text-to-3d":{name:"Text-to-3D",modality:"cv"},"image-to-3d":{name:"Image-to-3D",modality:"cv"},"image-feature-extraction":{name:"Image Feature Extraction",modality:"cv"},"video-text-to-text":{name:"Video-Text-to-Text",modality:"multimodal",hideInDatasets:!1},"keypoint-detection":{name:"Keypoint Detection",subtasks:[{type:"pose-estimation",name:"Pose Estimation"}],modality:"cv",hideInDatasets:!0},"visual-document-retrieval":{name:"Visual Document Retrieval",modality:"multimodal"},"any-to-any":{name:"Any-to-Any",modality:"multimodal"},"video-to-video":{name:"Video-to-Video",modality:"cv",hideInDatasets:!0},other:{name:"Other",modality:"other",hideInModels:!0,hideInDatasets:!0}},uk=Object.keys(lf);Object.values(lf).flatMap(t=>"subtasks"in t?t.subtasks:[]).map(t=>t.type);new Set(uk);const ck={datasets:[{description:"A dataset with multiple modality input and output pairs.",id:"PKU-Alignment/align-anything"}],demo:{inputs:[{filename:"any-to-any-input.jpg",type:"img"},{label:"Text Prompt",content:"What is the significance of this place?",type:"text"}],outputs:[{label:"Generated Text",content:"The place in the picture is Osaka Castle, located in Osaka, Japan. Osaka Castle is a historic castle that was originally built in the 16th century by Toyotomi Hideyoshi, a powerful warlord of the time. It is one of the most famous landmarks in Osaka and is known for its distinctive white walls and black roof tiles. The castle has been rebuilt several times over the centuries and is now a popular tourist attraction, offering visitors a glimpse into Japan's rich history and culture.",type:"text"},{filename:"any-to-any-output.wav",type:"audio"}]},metrics:[],models:[{description:"Strong model that can take in video, audio, image, text and output text and natural speech.",id:"Qwen
71/Qwen2.5-Omni-7B"},{description:"Robust model that can take in image and text and generate image and text.",id:"OmniGen2/OmniGen2"},{description:"Any-to-any model with speech, video, audio, image and text understanding capabilities.",id:"openbmb/MiniCPM-o-2_6"},{description:"A model that can understand image and text and generate image and text.",id:"ByteDance-Seed/BAGEL-7B-MoT"}],spaces:[{description:"An application to chat with an any-to-any (image & text) model.",id:"OmniGen2/OmniGen2"}],summary:"Any-to-any models can understand two or more modalities and output two or more modalities.",widgetModels:[],youtubeId:""},fk={datasets:[{description:"A benchmark of 10 different audio tasks.",id:"s3prl/superb"},{description:"A dataset of YouTube clips and their sound categories.",id:"agkphysics/AudioSet"}],demo:{inputs:[{filename:"audio.wav",type:"audio"}],outputs:[{data:[{label:"Up",score:.2},{label:"Down",score:.8}],type:"chart"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"An easy-to-use model for command recognition.",id:"speechbrain/google_speech_command_xvector"},{description:"An emotion recognition model.",id:"ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"},{description:"A language identification model.",id:"facebook/mms-lid-126"}],spaces:[{description:"An application that can classify music into different genre.",id:"kurianbenoy/audioclassification"}],summary:"Audio classification is the task of assigning a label or class to a given audio. It can be used for recognizing which command a user is giving or the emotion of a statement, as well as identifying a speaker.",widgetModels:["MIT/ast-finetuned-audioset-10-10-0.4593"],youtubeId:"KWwzcmG98Ds"},pk={datasets:[{description:"512-element X-vector embeddings of speakers from CMU ARCTIC dataset.",id:"Matthijs/cmu-arctic-xvectors"}],demo:{inputs:[{filename:"input.wav",type:"audio"}],outputs:[{filename:"label-0.wav",type:"audio"},{filename:"label-1.wav",type:"audio"}]},metrics:[{description:"The Signal-to-Noise ratio is the relationship between the target signal level and the background noise level. It is calculated as the logarithm of the target signal divided by the background noise, in decibels.",id:"snri"},{description:"The Signal-to-Distortion ratio is the relationship between the target signal and the sum of noise, interference, and artifact errors",id:"sdri"}],models:[{description:"A speech enhancement model.",id:"ResembleAI/resemble-enhance"},{description:"A model that can change the voice in a speech recording.",id:"microsoft/speecht5_vc"}],spaces:[{description:"An application for speech separation.",id:"younver/speechbrain-speech-separation"},{description:"An application for audio style transfer.",id:"nakas/audio-diffusion_style_transfer"}],summary:"Audio-to-Audio is a family of tasks in which the input is an audio and the output is one or multiple generated audios. Some example tasks are speech enhancement and source separation.",widgetModels:["speechbrain/sepformer-wham"],youtubeId:"iohj7nCCYoM"},dk={datasets:[{description:"31,175 hours of multilingual audio-text dataset in 108 languages.",id:"mozilla-foundation/common_voice_17_0"},{description:"Multilingual and diverse audio dataset with 101k hours of audio.",id:"amphion/Emilia-Dataset"},{description:"A dataset with 44.6k hours of English speaker data and 6k hours of other language speakers.",id:"parler-tts/mls_eng"},{description:"A multilingual audio dataset with 370K hours of audio.",id:"espnet/yodas"}],demo:{inputs:[{filename:"input.flac",type:"audio"}],outputs:[{label:"Transcript",content:"Going along slushy country roads and speaking to damp audiences in...",type:"text"}]},metrics:[{description:"",id:"wer"},{description:"",id:"cer"}],models:[{description:"A powerful ASR model by OpenAI.",id:"openai/whisper-large-v3"},{description:"A good generic speech model by MetaAI for fine-tuning.",id:"facebook/w2v-bert-2.0"},{description:"An end-to-end model that performs ASR and Speech Translation by MetaAI.",id:"facebook/seamless-m4t-v2-large"},{description:"A powerful multilingual ASR and Speech Translation model by Nvidia.",id:"nvidia/canary-1b"},{description:"Powerful speaker diarization model.",id:"pyannote/speaker-diarization-3.1"}],spaces:[{description:"A powerful general-purpose speech recognition application.",id:"hf-audio/whisper-large-v3"},{description:"Latest ASR model from Useful Sensors.",id:"mrfakename/Moonshinex"},{description:"A high quality speech and text translation model by Meta.",id:"facebook/seamless_m4t"},{description:"A powerful multilingual ASR and Speech Translation model by Nvidia",id:"nvidia/canary-1b"}],summary:"Automatic Speech Recognition (ASR), also known as Speech to Text (STT), is the task of transcribing a given audio to text. It has many applications, such as voice user interfaces.",widgetModels:["openai/whisper-large-v3"],youtubeId:"TksaY_FDgnk"},mk={datasets:[{description:"Largest document understanding dataset.",id:"HuggingFaceM4/Docmatix"},{description:"Dataset from the 2020 DocVQA challenge. The documents are taken from the UCSF Industry Documents Library.",id:"eliolio/docvqa"}],demo:{inputs:[{label:"Question",content:"What is the idea behind the consumer relations efficie
71ncy team?",type:"text"},{filename:"document-question-answering-input.png",type:"img"}],outputs:[{label:"Answer",content:"Balance cost efficiency with quality customer service",type:"text"}]},metrics:[{description:"The evaluation metric for the DocVQA challenge is the Average Normalized Levenshtein Similarity (ANLS). This metric is flexible to character regognition errors and compares the predicted answer with the ground truth answer.",id:"anls"},{description:"Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0",id:"exact-match"}],models:[{description:"A robust document question answering model.",id:"impira/layoutlm-document-qa"},{description:"A document question answering model specialized in invoices.",id:"impira/layoutlm-invoices"},{description:"A special model for OCR-free document question answering.",id:"microsoft/udop-large"},{description:"A powerful model for document question answering.",id:"google/pix2struct-docvqa-large"}],spaces:[{description:"A robust document question answering application.",id:"impira/docquery"},{description:"An application that can answer questions from invoices.",id:"impira/invoices"},{description:"An application to compare different document question answering models.",id:"merve/compare_docvqa_models"}],summary:"Document Question Answering (also known as Document Visual Question Answering) is the task of answering questions on document images. Document question answering models take a (document, question) pair as input and return an answer in natural language. Models usually rely on multi-modal features, combining text, position of words (bounding-boxes) and image.",widgetModels:["impira/layoutlm-invoices"],youtubeId:""},hk={datasets:[{description:"Wikipedia dataset containing cleaned articles of all languages. Can be used to train `feature-extraction` models.",id:"wikipedia"}],demo:{inputs:[{label:"Input",content:"India, officially the Republic of India, is a country in South Asia.",type:"text"}],outputs:[{table:[["Dimension 1","Dimension 2","Dimension 3"],["2.583383083343506","2.757075071334839","0.9023529887199402"],["8.29393482208252","1.1071064472198486","2.03399395942688"],["-0.7754912972450256","-1.647324562072754","-0.6113331913948059"],["0.07087723910808563","1.5942802429199219","1.4610432386398315"]],type:"tabular"}]},metrics:[],models:[{description:"A powerful feature extraction model for natural language processing tasks.",id:"thenlper/gte-large"},{description:"A strong feature extraction model for retrieval.",id:"Alibaba-NLP/gte-Qwen1.5-7B-instruct"}],spaces:[{description:"A leaderboard to rank text feature extraction models based on a benchmark.",id:"mteb/leaderboard"},{description:"A leaderboard to rank best feature extraction models based on human feedback.",id:"mteb/arena"}],summary:"Feature extraction is the task of extracting features learnt in a model.",widgetModels:["facebook/bart-base"]},gk={datasets:[{description:"A common dataset that is used to train models for many languages.",id:"wikipedia"},{description:"A large English dataset with text crawled from the web.",id:"c4"}],demo:{inputs:[{label:"Input",content:"The <mask> barked at me",type:"text"}],outputs:[{type:"chart",data:[{label:"wolf",score:.487},{label:"dog",score:.061},{label:"cat",score:.058},{label:"fox",score:.047},{label:"squirrel",score:.025}]}]},metrics:[{description:"Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words",id:"cross_entropy"},{description:"Perplexity is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance",id:"perplexity"}],models:[{description:"State-of-the-art masked language model.",id:"answerdotai/ModernBERT-large"},{description:"A multilingual model trained on 100 languages.",id:"FacebookAI/xlm-roberta-base"}],spaces:[],summary:"Masked language modeling is the task of masking some of the words in a sentence and predicting which words should replace those masks. These models are useful when we want to get a statistical understanding of the language in which the model is trained in.",widgetModels:["distilroberta-base"],youtubeId:"mqElG5QJWUg"},yk={datasets:[{description:"Benchmark dataset used for image classification with images that belong to 100 classes.",id:"cifar100"},{description:"Dataset consisting of images of garments.",id:"fashion_mnist"}],demo:{inputs:[{filename:"image-classification-input.jpeg",type:"img"}],outputs:[{type:"chart",data:[{label:"Egyptian cat",score:.514},{label:"Tabby cat",score:.193},{label:"Tiger cat",score:.068}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"A strong image classification model.",id:"google/vit-base-patch16-224"},{description:"A robust image classification model.",id:"facebook/deit-base-distilled-patch16-224"},{description:"A strong image classification model.",id:"facebook/convnext-large-224"}],spaces:[{description:"A leaderboard to evaluate different image classification models.",id:"timm/leaderboard"}],summary:"Image classification is the task of assigning a label or class to an entire image. Images are expected to have only one class for each image. Image classification models take an image as input and return a prediction about which class the image belongs to.",widgetModels:["google/vit-base-patch16-224"],youtubeId:"tjAIM7BOYhw"},bk={datasets:[{description:"ImageNet-1K is a image classification dataset in which images are used to train image-feature-extraction models.",id:"imagenet-1k"}],demo:{inputs:[{filename:"mask-generation-input.png",type:"img"}],outputs:[{table:[["Dimension 1","Dimension 2","Dimension 3"],["0.21236686408519745","1.0919708013534546","0.8512550592422485"],["0.809657871723175","-0.18544459342956543","-0.7851548194885254"],["1.3103108406066895","-0.2479034662246704","-0.9107287526130676"],["1.8536205291748047","-0.36419737339019775","0.09717650711536407"]],type:"tabular"}]},metrics:[],models:[{description:"A powerful image feature extraction model.",id:"timm/vit_large_patch14_dinov2.lvd142m"},{description:"A strong image feature extraction model.",id:"nvidia/MambaVision-T-1K"},{description:"A robust image feature extraction model.",id:"facebook/dino-vitb16"},{description:"Cutting-edge image feature extraction model.",id:"apple/aimv2-large-patch14-336-distilled"},{description:"Strong image feature extraction model that can be used on images and documents.",id:"OpenGVLab/InternViT-6B-448px-V1-2"}],spaces:[{description:"A leaderboard to evaluate different image-feature-extraction models on classification performances",id:"timm/leaderboard"}],summary:"Image feature extraction is the task of extracting features learnt in a computer vision model.",widgetModels:[]},vk={datasets:[{description:"Synthetic dataset, for image relighting",id:"VIDIT"},{description:"Multiple images of celebrities, used for facial expression translation",id:"huggan/CelebA-faces"},{description:"12M image-caption pairs.",id:"Spawning/PD12M"}],demo:{inputs:[{filename:"image-to-image-input.jpeg",type:"img"}],outputs:[{filename:"image-to-image-output.png",type:"img"}]},isPlaceholder:!1,metrics:[{description:"Peak Signal to Noise Ratio (PSNR) is an approximation of the human perception, considering the ratio of the absolute intensity with respect to the variations. Measured in dB, a high value indicates a high fidelity.",id:"PSNR"},{description:"Structural Similarity Index (SSIM) is a perceptual metric which compares the luminance, contrast and structure of two images. The values of SSIM range between -1 and 1, and higher values indicate closer resemblance to the original image.",id:"SSIM"},{description:"Inception Score (IS) is an analysis of the labels predicted by an image classification model when presented with a sample of the generated images.",id:"IS"}],models:[{description:"An image-to-image model to improve image resolution.",id:"fal/AuraSR-v2"},{description:"Powerful image editing model.",id:"black-forest-labs/FLUX.1-Kontext-dev"},{description:"Virtual try-on model.",id:"yisol/IDM-VTON"},{description:"Image re-lighting model.",id:"kontext-community/relighting-kontext-dev-lora-v3"},{description:"Strong model for inpainting and outpainting.",id:"black-forest-labs/FLUX.1-Fill-dev"},{description:"Strong model for image editing using depth maps.",id:"black-forest-labs/FLUX.1-Depth-dev-lora"}],spaces:[{description:"Image editing application.",id:"black-forest-labs/FLUX.1-Kontext-Dev"},{description:"Image relighting application.",id:"lllyasviel/iclight-v2-vary"},{description:"An application for image upscaling.",id:"jasperai/Flux.1-dev-Controlnet-Upscaler"}],summary:"Image-to-image is the task of transforming an input image through a variety of possible manipulations and enhancements, such as super-resolution, image inpainting, colorization, and more.",widgetModels:["Qwen/Qwen-Image"],youtubeId:""},wk={datasets:[{description:"Dataset from 12M image-text of Reddit",id:"red_caps"},{description:"Dataset from 3.3M images of Google",id:"datasets/conceptual_captions"}],demo:{inputs:[{filename:"savanna.jpg",type:"img"}],outputs:[{label:"Detailed description",content:"a herd of giraffes and zebras grazing in a field",type:"text"}]},metrics:[],models:[{description:"Strong OCR model.",id:"allenai/olmOCR-7B-0725"},{description:"Powerful image captioning model.",id:"fancyfeast/llama-joycaption-beta-one-hf-llava"}],spaces:[{description:"SVG generator app from images.",id:"multimodalart/OmniSVG-3B"},{description:"An application that converts documents to markdown.",id:"numind/NuMarkdown-8B-Thinking"},{description:"An application that can caption images.",id:"fancyfeast/joy-caption-beta-one"}],summary:"Image to text models output a text from a given image. Image captioning or optical character recognition can be considered as the most common applications of image to text.",widgetModels:["Salesforce/blip-image-captioning-large"],youtubeId:""},_k={datasets:[{description:"Instructions composed of image and text.",id:"liuhaotian/LLaVA-Instruct-150K"},{description:"Collection of image-text pairs on scientific topics.",id:"DAMO-NLP-SG/multimodal_textbook"},{description:"A collection of datasets made for model fine-tuning.",id:"HuggingFaceM4/the_cauldron"},{description:"Screenshots of websites with their HTML/CSS codes.",id:"HuggingFaceM4/WebSight"}],demo:{inputs:[{filename:"image-text-to-text-input.png",type:"img"},{label:"Text Prompt",content:"Describe the position of the bee in detail.",type:"text"}],outputs:[{label:"Answer",content:"The bee is sitting on a pink flower, surrounded by other flowers. The bee is positioned in the center of the flower, with its head and front legs sticking out.",type:"text"}]}
71,metrics:[],models:[{description:"Small and efficient yet powerful vision language model.",id:"HuggingFaceTB/SmolVLM-Instruct"},{description:"Cutting-edge reasoning vision language model.",id:"zai-org/GLM-4.5V"},{description:"Cutting-edge small vision language model to convert documents to text.",id:"rednote-hilab/dots.ocr"},{description:"Small yet powerful model.",id:"Qwen/Qwen2.5-VL-3B-Instruct"},{description:"Image-text-to-text model with agentic capabilities.",id:"microsoft/Magma-8B"}],spaces:[{description:"Leaderboard to evaluate vision language models.",id:"opencompass/open_vlm_leaderboard"},{description:"An application that compares object detection capabilities of different vision language models.",id:"sergiopaniego/vlm_object_understanding"},{description:"An application to compare different OCR models.",id:"prithivMLmods/Multimodal-OCR"}],summary:"Image-text-to-text models take in an image and text prompt and output text. These models are also called vision-language models, or VLMs. The difference from image-to-text models is that these models take an additional text input, not restricting the model to certain use cases like image captioning, and may also be trained to accept a conversation as input.",widgetModels:["zai-org/GLM-4.5V"],youtubeId:"IoGaGfU1CIg"},xk={datasets:[{description:"Scene segmentation dataset.",id:"scene_parse_150"}],demo:{inputs:[{filename:"image-segmentation-input.jpeg",type:"img"}],outputs:[{filename:"image-segmentation-output.png",type:"img"}]},metrics:[{description:"Average Precision (AP) is the Area Under the PR Curve (AUC-PR). It is calculated for each semantic class separately",id:"Average Precision"},{description:"Mean Average Precision (mAP) is the overall average of the AP values",id:"Mean Average Precision"},{description:"Intersection over Union (IoU) is the overlap of segmentation masks. Mean IoU is the average of the IoU of all semantic classes",id:"Mean Intersection over Union"},{description:"APα is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid panoptic segmentation model trained on COCO.",id:"tue-mps/coco_panoptic_eomt_large_640"},{description:"Background removal model.",id:"briaai/RMBG-1.4"},{description:"A multipurpose image segmentation model for high resolution images.",id:"ZhengPeng7/BiRefNet"},{description:"Powerful human-centric image segmentation model.",id:"facebook/sapiens-seg-1b"},{description:"Panoptic segmentation model trained on the COCO (common objects) dataset.",id:"facebook/mask2former-swin-large-coco-panoptic"}],spaces:[{description:"A semantic segmentation application that can predict unseen instances out of the box.",id:"facebook/ov-seg"},{description:"One of the strongest segmentation applications.",id:"jbrinkma/segment-anything"},{description:"A human-centric segmentation model.",id:"facebook/sapiens-pose"},{description:"An instance segmentation application to predict neuronal cell types from microscopy images.",id:"rashmi/sartorius-cell-instance-segmentation"},{description:"An application that segments videos.",id:"ArtGAN/Segment-Anything-Video"},{description:"An panoptic segmentation application built for outdoor environments.",id:"segments/panoptic-segment-anything"}],summary:"Image Segmentation divides an image into segments where each pixel in the image is mapped to an object. This task has multiple variants such as instance segmentation, panoptic segmentation and semantic segmentation.",widgetModels:["nvidia/segformer-b0-finetuned-ade-512-512"],youtubeId:"dKE8SIt9C-w"},Sk={datasets:[{description:"A benchmark dataset for reference image controlled video generation.",id:"ali-vilab/VACE-Benchmark"},{description:"A dataset of video generation style preferences.",id:"Rapidata/sora-video-generation-style-likert-scoring"},{description:"A dataset with videos and captions throughout the videos.",id:"BestWishYsh/ChronoMagic"}],demo:{inputs:[{filename:"image-to-video-input.jpg",type:"img"},{label:"Optional Text Prompt",content:"This penguin is dancing",type:"text"}
71],outputs:[{filename:"image-to-video-output.gif",type:"img"}]},metrics:[{description:"Fréchet Video Distance (FVD) measures the perceptual similarity between the distributions of generated videos and a set of real videos, assessing overall visual quality and temporal coherence of the video generated from an input image.",id:"fvd"},{description:"CLIP Score measures the semantic similarity between a textual prompt (if provided alongside the input image) and the generated video frames. It evaluates how well the video's generated content and motion align with the textual description, conditioned on the initial image.",id:"clip_score"},{description:"First Frame Fidelity, often measured using LPIPS (Learned Perceptual Image Patch Similarity), PSNR, or SSIM, quantifies how closely the first frame of the generated video matches the input conditioning image.",id:"lpips"},{description:"Identity Preservation Score measures the consistency of identity (e.g., a person's face or a specific object's characteristics) between the input image and throughout the generated video frames, often calculated using features from specialized models like face recognition (e.g., ArcFace) or re-identification models.",id:"identity_preservation"},{description:"Motion Score evaluates the quality, realism, and temporal consistency of motion in the video generated from a static image. This can be based on optical flow analysis (e.g., smoothness, magnitude), consistency of object trajectories, or specific motion plausibility assessments.",id:"motion_score"}],models:[{description:"LTX-Video, a 13B parameter model for high quality video generation",id:"Lightricks/LTX-Video-0.9.7-dev"},{description:"A 14B parameter model for reference image controlled video generation",id:"Wan-AI/Wan2.1-VACE-14B"},{description:"An image-to-video generation model using FramePack F1 methodology with Hunyuan-DiT architecture",id:"lllyasviel/FramePack_F1_I2V_HY_20250503"},{description:"A distilled version of the LTX-Video-0.9.7-dev model for faster inference",id:"Lightricks/LTX-Video-0.9.7-distilled"},{description:"An image-to-video generation model by Skywork AI, 14B parameters, producing 720p videos.",id:"Skywork/SkyReels-V2-I2V-14B-720P"},{description:"Image-to-video variant of Tencent's HunyuanVideo.",id:"tencent/HunyuanVideo-I2V"},{description:"A 14B parameter model for 720p image-to-video generation by Wan-AI.",id:"Wan-AI/Wan2.1-I2V-14B-720P"},{description:"A Diffusers version of the Wan2.1-I2V-14B-720P model for 720p image-to-video generation.",id:"Wan-AI/Wan2.1-I2V-14B-720P-Diffusers"}],spaces:[{description:"An application to generate videos fast.",id:"Lightricks/ltx-video-distilled"},{description:"Generate videos with the FramePack-F1",id:"linoyts/FramePack-F1"},{description:"Generate videos with the FramePack",id:"lisonallen/framepack-i2v"},{description:"Wan2.1 with CausVid LoRA",id:"multimodalart/wan2-1-fast"},{description:"A demo for Stable Video Diffusion",id:"multimodalart/stable-video-diffusion"}],summary:"Image-to-video models take a still image as input and generate a video. These models can be guided by text prompts to influence the content and style of the output video.",widgetModels:[],youtubeId:void 0},Ak={datasets:[{description:"Widely used benchmark dataset for multiple Vision tasks.",id:"merve/coco2017"},{description:"Medical Imaging dataset of the Human Brain for segmentation and mask generating tasks",id:"rocky93/BraTS_segmentation"}],demo:{inputs:[{filename:"mask-generation-input.png",type:"img"}],outputs:[{filename:"mask-generation-output.png",type:"img"}]},metrics:[{description:"IoU is used to measure the overlap between predicted mask and the ground truth mask.",id:"Intersection over Union (IoU)"}],models:[{description:"Small yet powerful mask generation model.",id:"Zigeng/SlimSAM-uniform-50"},{description:"Very strong mask generation model.",id:"facebook/sam2-hiera-large"}],spaces:[{description:"An application that combines a mask generation model with a zero-shot object detection model for text-guided image segmentation.",id:"merve/OWLSAM2"},{description:"An application that compares the performance of a large and a small mask generation model.",id:"merve/slimsam"},{description:"An application based on an improved mask generation model.",id:"SkalskiP/segment-anything-model-2"},{description:"An application to remove objects from videos using mask generation models.",id:"SkalskiP/SAM_and_ProPainter"}],summary:"Mask generation is the task of generating masks that identify a specific object or region of interest in a given image. Masks are often used in segmentation tasks, where they provide a precise way to isolate the object of interest for further processing or analysis.",widgetModels:[],youtubeId:""},kk={datasets:[{description:"Widely used benchmark dataset for multiple vision tasks.",id:"merve/coco2017"},{description:"Multi-task computer vision benchmark.",id:"merve/pascal-voc"}],demo:{inputs:[{filename:"object-detection-input.jpg",type:"img"}],outputs:[{filename:"object-detection-output.jpg",type:"img"}]},metrics:[{description:"The Average Precision (AP) metric is the Area Under the PR Curve (AUC-PR). It is calculated for each class separately",id:"Average Precision"},{description:"The Mean Average Precision (mAP) metric is the overall average of the AP values",id:"Mean Average Precision"},{description:"The APα metric is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid object detection model pre-trained on the COCO 2017 dataset.",id:"facebook/detr-resnet-50"},{description:"Accurate object detection model.",id:"IDEA-Research/dab-detr-resnet-50"},{description:"Fast and accurate object detection model.",id:"PekingU/rtdetr_v2_r50vd"}
71,{description:"Object detection model for low-lying objects.",id:"StephanST/WALDO30"}],spaces:[{description:"Real-time object detection demo.",id:"Roboflow/RF-DETR"},{description:"An application that contains various object detection models to try from.",id:"Gradio-Blocks/Object-Detection-With-DETR-and-YOLOS"},{description:"A cutting-edge object detection application.",id:"sunsmarterjieleaf/yolov12"},{description:"An object tracking, segmentation and inpainting application.",id:"VIPLab/Track-Anything"},{description:"Very fast object tracking application based on object detection.",id:"merve/RT-DETR-tracking-coco"}],summary:"Object Detection models allow users to identify objects of certain defined classes. Object detection models receive an image as input and output the images with bounding boxes and labels on detected objects.",widgetModels:["facebook/detr-resnet-50"],youtubeId:"WdAeKSOpxhw"},Tk={datasets:[{description:"NYU Depth V2 Dataset: Video dataset containing both RGB and depth sensor data.",id:"sayakpaul/nyu_depth_v2"},{description:"Monocular depth estimation benchmark based without noise and errors.",id:"depth-anything/DA-2K"}],demo:{inputs:[{filename:"depth-estimation-input.jpg",type:"img"}],outputs:[{filename:"depth-estimation-output.png",type:"img"}]},metrics:[],models:[{description:"Cutting-edge depth estimation model.",id:"depth-anything/Depth-Anything-V2-Large"},{description:"A strong monocular depth estimation model.",id:"jingheya/lotus-depth-g-v1-0"},{description:"A depth estimation model that predicts depth in videos.",id:"tencent/DepthCrafter"},{description:"A robust depth estimation model.",id:"apple/DepthPro-hf"}],spaces:[{description:"An application that predicts the depth of an image and then reconstruct the 3D model as voxels.",id:"radames/dpt-depth-estimation-3d-voxels"},{description:"An application for bleeding-edge depth estimation.",id:"akhaliq/depth-pro"},{description:"An application on cutting-edge depth estimation in videos.",id:"tencent/DepthCrafter"},{description:"A human-centric depth estimation application.",id:"facebook/sapiens-depth"}],summary:"Depth estimation is the task of predicting depth of the objects present in an image.",widgetModels:[""],youtubeId:""},Uc={datasets:[],demo:{inputs:[],outputs:[]},isPlaceholder:!0,metrics:[],models:[],spaces:[],summary:"",widgetModels:[],youtubeId:void 0,canonicalId:void 0},Ek={datasets:[{description:"A curation of widely used datasets for Data Driven Deep Reinforcement Learning (D4RL)",id:"edbeeching/decision_transformer_gym_replay"}],demo:{inputs:[{label:"State",content:"Red traffic light, pedestrians are about to pass.",type:"text"}],outputs:[{label:"Action",content:"Stop the car.",type:"text"},{label:"Next State",content:"Yellow light, pedestrians have crossed.",type:"text"}]},metrics:[{description:"Accumulated reward across all time steps discounted by a factor that ranges between 0 and 1 and determines how much the agent optimizes for future relative to immediate rewards. Measures how good is the policy ultimately found by a given algorithm considering uncertainty over the future.",id:"Discounted Total Reward"},{description:"Average return obtained after running the policy for a certain number of evaluation episodes. As opposed to total reward, mean reward considers how much reward a given algorithm receives while learning.",id:"Mean Reward"},{description:"Measures how good a given algorithm is after a predefined time. Some algorithms may be guaranteed to converge to optimal behavior across many time steps. However, an agent that reaches an acceptable level of optimality after a given time horizon may be preferable to one that ultimately reaches optimality but takes a long time.",id:"Level of Performance After Some Time"}],models:[{description:"A Reinforcement Learning model trained on expert data from the Gym Hopper environment",id:"edbeeching/decision-transformer-gym-hopper-expert"},{description:"A PPO agent playing seals/CartPole-v0 using the stable-baselines3 library and the RL Zoo.",id:"HumanCompatibleAI/ppo-seals-CartPole-v0"}],spaces:[{description:"An application for a cute puppy agent learning to catch a stick.",id:"ThomasSimonini/Huggy"},{description:"An application to play Snowball Fight with a reinforcement learning agent.",id:"ThomasSimonini/SnowballFight"}],summary:"Reinforcement learning is the computational approach of learning from action by interacting with an environment through trial and error and receiving rewards (negative or positive) as feedback",widgetModels:[],youtubeId:"q0BiUn5LiBc"},Ck={datasets:[{description:"A famous question answering dataset based on English articles from Wikipedia.",id:"squad_v2"},{description:"A dataset of aggregated anonymized actual queries issued to the Google search engine.",id:"natural_questions"}],demo:{inputs:[{label:"Question",content:"Which name is also used to describe the Amazon rainforest in English?",type:"text"},{label:"Context",content:"The Amazon rainforest, also known in English as Amazonia or the Amazon Jungle",type:"text"}],outputs:[{label:"Answer",content:"Amazonia",type:"text"}]},metrics:[{description:"Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0",id:"exact-match"},{description:" The F1-Score metric is useful if we value both false positives and false negatives equally. The F1-Score is calculated on each word in the predicted sequence against the correct answer",id:"f1"}],models:[{description:"A robust baseline model for most question answering domains.",id:"deepset/roberta-base-squad2"},{description:"Small yet robust model that can answer questions.",id:"distilbert/distilbert-base-cased-distilled-squad"},{description:"A special model that can answer questions from tables.",id:"google/tapas-base-finetuned-wtq"}],spaces:[{description:"An application that can answer a long question from Wikipedia.",id:"deepset/wikipedia-assistant"}],summary:"Question Answering models can retrieve the answer to a question from a given text, which is useful for searching for an answer in a document. Some question answering models can generate answers without context!",widgetModels:["deepset/roberta-base-squad2"],youtubeId:"ajPx5LwJD-I"},Rk={datasets:[{description:"Bing queries with relevant passages from various web sources.",id:"microsoft/ms_marco"}],demo:{inputs:[{label:"Source sentence",content:"Machine learning is so easy.",type:"text"},{label:"Sentences to compare to",content:"Deep learning is so straightforward.",type:"text"},{label:"",content:"This is so difficult, like rocket science.",type:"text"},{label:"",content:"I can't believe how much I struggled with this.",type:"text"}],outputs:[{type:"chart",data:[{label:"Deep learning is so straightforward.",score:.623},{label:"This is so difficult, like rocket science.",score:.413},{label:"I can't believe how much I struggled with this.",score:.256}]}]},metrics:[{description:"Reciprocal Rank is a measure used to rank the relevancy of documents given a set of documents. Reciprocal Rank is the reciprocal of the rank of the document retrieved, meaning, if the rank is 3, the Reciprocal Rank is 0.33. If the rank is 1, the Reciprocal Rank is 1",id:"Mean Reciprocal Rank"},{description:"The similarity of the embeddings is evaluated mainly on cosine similarity. It is calculated as the cosine of the angle between two vectors. It is particularly useful when your texts are not the same length",id:"Cosine Similarity"}],models:[{description:"This model works well for sentences and paragraphs and can be used for clustering/grouping and semantic searches.",id:"sentence-transformers/all-mpnet-base-v2"},{description:"A multilingual robust sentence similarity model.",id:"BAAI/bge-m3"},{description:"A robust sentence similarity model.",id:"HIT-TMG/KaLM-embedding-multilingual-mini-instruct-v1.5"}],spaces:[{description:"An application that leverages sentence similarity to answer questions from YouTube videos.",id:"Gradio-Blocks/Ask_Questions_To_YouTube_Videos"},{description:"An application that retrieves relevant PubMed abstracts for a given online article which can be used as further references.",id:"Gradio-Blocks/pubmed-abstract-retriever"},{description:"An application that leverages sentence similarity to summarize text.",id:"nickmuchi/article-text-summarizer"},{description:"A guide that explains how Sentence Transformers can be used for semantic search.",id:"sentence-transformers/Sentence_Transformers_for_semantic_search"}],summary:"Sentence Similarity is the task of determining how similar two texts are. Sentence similarity models convert input texts into vectors (embeddings) that capture semantic information and calculate how close (similar) they are between them. This task is particularly useful for information retrieval and clustering/grouping.",widgetModels:["BAAI/bge-small-en-v1.5"],youtubeId:"VCZq5AkbNEU"},Dk={canonicalId:"text-generation",datasets:[{description:"News articles in five different languages along with their summaries. Widely used for benchmarking multilingual summarization models.",id:"mlsum"},{description:"English conversations and their summaries. Useful for benchmarking conversational agents.",id:"samsum"}],demo:{inputs:[{label:"Input",content:"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. It was the first structure to reach a height of 300 metres. Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.",type:"text"}],outputs:[{label:"Output",content:"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building. It was the first structure to reach a height of 300 metres.",type:"text"}]},metrics:[{description:"The generated sequence is compared against its summary, and the overlap of tokens are counted. ROUGE-N refers to overlap of N subsequent tokens, ROUGE-1 refers to overlap of single tokens and ROUGE-2 is the overlap of two subsequent tokens.",id:"rouge"}],models:[{description:"A strong summarization model trained on English news articles. Excels at generating factual summaries.",id:"facebook/bart-large-cnn"},{description:"A summarization model trained on medical articles.",id:"Falconsai/medical_summarization"}],spaces:[{description:"An application that can summarize long paragraphs.",id:"pszemraj/summarize-long-text"},{description:"A much needed summarization application for terms and conditions.",id:"ml6team/distilbart-tos-summarizer-tosdr"},{description:"An application that summarizes long documents.",id:"pszemraj/document-summarization"},{description:"An application that can detect errors in abstractive summarization.",id:"ml6team/post-processing-summarization"}],summary:"Summarization is the task of producing a shorter version of a document while preserving its important information. Some models can extract text from the original input, while other models can generate entirely new text.",widgetModels:["facebook/bart-large-cnn"],youtubeId:"yHnr5Dk2zCI"},Ok={datasets:[{description:"The WikiTableQuestions dataset is a large-scale dataset for the task of question answering on semi-structured tables.",id:"wikitablequestions"},{description:"WikiSQL is a dataset of 80654 hand-annotated examples of questions and 
71SQL queries distributed across 24241 tables from Wikipedia.",id:"wikisql"}],demo:{inputs:[{table:[["Rank","Name","No.of reigns","Combined days"],["1","lou Thesz","3","3749"],["2","Ric Flair","8","3103"],["3","Harley Race","7","1799"]],type:"tabular"},{label:"Question",content:"What is the number of reigns for Harley Race?",type:"text"}],outputs:[{label:"Result",content:"7",type:"text"}]},metrics:[{description:"Checks whether the predicted answer(s) is the same as the ground-truth answer(s).",id:"Denotation Accuracy"}],models:[{description:"A table question answering model that is capable of neural SQL execution, i.e., employ TAPEX to execute a SQL query on a given table.",id:"microsoft/tapex-base"},{description:"A robust table question answering model.",id:"google/tapas-base-finetuned-wtq"}],spaces:[{description:"An application that answers questions based on table CSV files.",id:"katanaml/table-query"}],summary:"Table Question Answering (Table QA) is the answering a question about an information on a given table.",widgetModels:["google/tapas-base-finetuned-wtq"]},Mk={datasets:[{description:"A comprehensive curation of datasets covering all benchmarks.",id:"inria-soda/tabular-benchmark"}],demo:{inputs:[{table:[["Glucose","Blood Pressure ","Skin Thickness","Insulin","BMI"],["148","72","35","0","33.6"],["150","50","30","0","35.1"],["141","60","29","1","39.2"]],type:"tabular"}],outputs:[{table:[["Diabetes"],["1"],["1"],["0"]],type:"tabular"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"Breast cancer prediction model based on decision trees.",id:"scikit-learn/cancer-prediction-trees"}],spaces:[{description:"An application that can predict defective products on a production line.",id:"scikit-learn/tabular-playground"},{description:"An application that compares various tabular classification techniques on different datasets.",id:"scikit-learn/classification"}],summary:"Tabular classification is the task of classifying a target category (a group) based on set of attributes.",widgetModels:["scikit-learn/tabular-playground"],youtubeId:""},Uk={datasets:[{description:"A comprehensive curation of datasets covering all benchmarks.",id:"inria-soda/tabular-benchmark"}],demo:{inputs:[{table:[["Car Name","Horsepower","Weight"],["ford torino","140","3,449"],["amc hornet","97","2,774"],["toyota corolla","65","1,773"]],type:"tabular"}],outputs:[{table:[["MPG (miles per gallon)"],["17"],["18"],["31"]],type:"tabular"}]},metrics:[{description:"",id:"mse"},{description:"Coefficient of determination (or R-squared) is a measure of how well the model fits the data. Higher R-squared is considered a better fit.",id:"r-squared"}],models:[{description:"Fish weight prediction based on length measurements and species.",id:"scikit-learn/Fish-Weight"}],spaces:[{description:"An application that can predict weight of a fish based on set of attributes.",id:"scikit-learn/fish-weight-prediction"}],summary:"Tabular regression is the task of predicting a numerical value given a set of attributes.",widgetModels:["scikit-learn/Fish-Weight"],youtubeId:""},Nk={datasets:[{description:"RedCaps is a large-scale dataset of 12M image-text pairs collected from Reddit.",id:"red_caps"},{description:"Conceptual Captions is a dataset consisting of ~3.3M images annotated with captions.",id:"conceptual_captions"},{description:"12M image-caption pairs.",id:"Spawning/PD12M"}],demo:{inputs:[{label:"Input",content:"A city above clouds, pastel colors, Victorian style",type:"text"}],outputs:[{filename:"image.jpeg",type:"img"}]},metrics:[{description:"The Inception Score (IS) measure assesses diversity and meaningfulness. It uses a generated image sample to predict its label. A higher score signifies more diverse and meaningful images.",id:"IS"},{description:"The Fréchet Inception Distance (FID) calculates the distance between distributions between synthetic and real samples. A lower FID score indicates better similarity between the distributions of real and generated images.",id:"FID"},{description:"R-precision assesses how the generated image aligns with the provided text description. It uses the generated images as queries to retrieve relevant text descriptions. The top 'r' relevant descriptions are selected and used to calculate R-precision as r/R, where 'R' is the number of ground truth descriptions associated with the generated images. A higher R-precision value indicates a better model.",id:"R-Precision"}],models:[{description:"One of the most powerful image generation models that can generate realistic outputs.",id:"black-forest-labs/FLUX.1-Krea-dev"}
71,{description:"A powerful image generation model.",id:"Qwen/Qwen-Image"},{description:"Powerful and fast image generation model.",id:"ByteDance/SDXL-Lightning"},{description:"A powerful text-to-image model.",id:"ByteDance/Hyper-SD"}],spaces:[{description:"A powerful text-to-image application.",id:"stabilityai/stable-diffusion-3-medium"},{description:"A text-to-image application to generate comics.",id:"jbilcke-hf/ai-comic-factory"},{description:"An application to match multiple custom image generation models.",id:"multimodalart/flux-lora-lab"},{description:"A powerful yet very fast image generation application.",id:"latent-consistency/lcm-lora-for-sdxl"},{description:"A gallery to explore various text-to-image models.",id:"multimodalart/LoraTheExplorer"},{description:"An application for `text-to-image`, `image-to-image` and image inpainting.",id:"ArtGAN/Stable-Diffusion-ControlNet-WebUI"},{description:"An application to generate realistic images given photos of a person and a prompt.",id:"InstantX/InstantID"}],summary:"Text-to-image is the task of generating images from input text. These pipelines can also be used to modify and edit images based on text prompts.",widgetModels:["black-forest-labs/FLUX.1-dev"],youtubeId:""},Ik={canonicalId:"text-to-audio",datasets:[{description:"10K hours of multi-speaker English dataset.",id:"parler-tts/mls_eng_10k"},{description:"Multi-speaker English dataset.",id:"mythicinfinity/libritts_r"},{description:"Multi-lingual dataset.",id:"facebook/multilingual_librispeech"}],demo:{inputs:[{label:"Input",content:"I love audio models on the Hub!",type:"text"}],outputs:[{filename:"audio.wav",type:"audio"}]},metrics:[{description:"The Mel Cepstral Distortion (MCD) metric is used to calculate the quality of generated speech.",id:"mel cepstral distortion"}],models:[{description:"Small yet powerful TTS model.",id:"KittenML/kitten-tts-nano-0.1"},{description:"Bleeding edge TTS model.",id:"ResembleAI/chatterbox"},{description:"A massively multi-lingual TTS model.",id:"fishaudio/fish-speech-1.5"},{description:"A text-to-dialogue model.",id:"nari-labs/Dia-1.6B-0626"}],spaces:[{description:"An application for generate high quality speech in different languages.",id:"hexgrad/Kokoro-TTS"},{description:"A multilingual text-to-speech application.",id:"fishaudio/fish-speech-1"},{description:"Performant TTS application.",id:"ResembleAI/Chatterbox"},{description:"An application to compare different TTS models.",id:"TTS-AGI/TTS-Arena-V2"},{description:"An application that generates podcast episodes.",id:"ngxson/kokoro-podcast-generator"}],summary:"Text-to-Speech (TTS) is the task of generating natural sounding speech given text input. TTS models can be extended to have a single model that generates speech for multiple speakers and multiple languages.",widgetModels:["suno/bark"],youtubeId:"NW62DpzJ274"},jk={datasets:[{description:"A widely used dataset useful to benchmark named entity recognition models.",id:"eriktks/conll2003"},{description:"A multilingual dataset of Wikipedia articles annotated for named entity recognition in over 150 different languages.",id:"unimelb-nlp/wikiann"}],demo:{inputs:[{label:"Input",content:"My name is Omar and I live in Zürich.",type:"text"}],outputs:[{text:"My name is Omar and I live in Zürich.",tokens:[{type:"PERSON",start:11,end:15},{type:"GPE",start:30,end:36}],type:"text-with-tokens"}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"A robust performance model to identify people, locations, organizations and names of miscellaneous entities.",id:"dslim/bert-base-NER"},{description:"A strong model to identify people, locations, organizations and names in multiple languages.",id:"FacebookAI/xlm-roberta-large-finetuned-conll03-english"},{description:"A token classification model specialized on medical entity recognition.",id:"blaze999/Medical-NER"},{description:"Flair models are typically the state of the art in named entity recognition tasks.",id:"flair/ner-english"}],spaces:[{description:"An application that can recognizes entities, extracts noun chunks and recognizes various linguistic features of each token.",id:"spacy/gradio_pipeline_visualizer"}],summary:"Token classification is a natural language understanding task in which a label is assigned to some tokens in a text. Some popular token classification subtasks are Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. NER models could be trained to identify specific entities in a text, such as dates, individuals and places; and PoS tagging would identify, for example, which words in a text are verbs, nouns, and punctuation marks.",widgetModels:["FacebookAI/xlm-roberta-large-finetuned-conll03-english"],youtubeId:"wVHdVlPScxA"},Lk={canonicalId:"text-generation",datasets:[{description:"A dataset of copyright-free books translated into 16 different languages.",id:"Helsinki-NLP/opus_books"},{description:"An example of translation between programming languages. This dataset consists of functions in Java and C#.",id:"google/code_x_glue_cc_code_to_code_trans"}],demo:{inputs:[{label:"Input",content:"My name is Omar and I live in Züric
71h.",type:"text"}],outputs:[{label:"Output",content:"Mein Name ist Omar und ich wohne in Zürich.",type:"text"}]},metrics:[{description:"BLEU score is calculated by counting the number of shared single or subsequent tokens between the generated sequence and the reference. Subsequent n tokens are called “n-grams”. Unigram refers to a single token while bi-gram refers to token pairs and n-grams refer to n subsequent tokens. The score ranges from 0 to 1, where 1 means the translation perfectly matched and 0 did not match at all",id:"bleu"},{description:"",id:"sacrebleu"}],models:[{description:"Very powerful model that can translate many languages between each other, especially low-resource languages.",id:"facebook/nllb-200-1.3B"},{description:"A general-purpose Transformer that can be used to translate from English to German, French, or Romanian.",id:"google-t5/t5-base"}],spaces:[{description:"An application that can translate between 100 languages.",id:"Iker/Translate-100-languages"},{description:"An application that can translate between many languages.",id:"Geonmo/nllb-translation-demo"}],summary:"Translation is the task of converting text from one language to another.",widgetModels:["facebook/mbart-large-50-many-to-many-mmt"],youtubeId:"1JvfrvZgi6c"},zk={datasets:[{description:"A widely used dataset used to benchmark multiple variants of text classification.",id:"nyu-mll/glue"},{description:"A text classification dataset used to benchmark natural language inference models",id:"stanfordnlp/snli"}],demo:{inputs:[{label:"Input",content:"I love Hugging Face!",type:"text"}],outputs:[{type:"chart",data:[{label:"POSITIVE",score:.9},{label:"NEUTRAL",score:.1},{label:"NEGATIVE",score:0}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"The F1 metric is the harmonic mean of the precision and recall. It can be calculated as: F1 = 2 * (precision * recall) / (precision + recall)",id:"f1"}],models:[{description:"A robust model trained for sentiment analysis.",id:"distilbert/distilbert-base-uncased-finetuned-sst-2-english"},{description:"A sentiment analysis model specialized in financial sentiment.",id:"ProsusAI/finbert"},{description:"A sentiment analysis model specialized in analyzing tweets.",id:"cardiffnlp/twitter-roberta-base-sentiment-latest"},{description:"A model that can classify languages.",id:"papluca/xlm-roberta-base-language-detection"},{description:"A model that can classify text generation attacks.",id:"meta-llama/Prompt-Guard-86M"}],spaces:[{description:"An application that can classify financial sentiment.",id:"IoannisTr/Tech_Stocks_Trading_Assistant"},{description:"A dashboard that contains various text classification tasks.",id:"miesnerjacob/Multi-task-NLP"},{description:"An application that analyzes user reviews in healthcare.",id:"spacy/healthsea-demo"}],summary:"Text Classification is the task of assigning a label or class to a given text. Some use cases are sentiment analysis, natural language inference, and assessing grammatical correctness.",widgetModels:["distilbert/distilbert-base-uncased-finetuned-sst-2-english"],youtubeId:"leNG9fN9FQU"},qk={datasets:[{description:"Multilingual dataset used to evaluate text generation models.",id:"CohereForAI/Global-MMLU"},{description:"High quality multilingual data used to train text-generation models.",id:"HuggingFaceFW/fineweb-2"},{description:"Truly open-source, curated and cleaned dialogue dataset.",id:"HuggingFaceH4/ultrachat_200k"},{description:"A reasoning dataset.",id:"open-r1/OpenThoughts-114k-math"},{description:"A multilingual instruction dataset with preference ratings on responses.",id:"allenai/tulu-3-sft-mixture"},{description:"A large synthetic dataset for alignment of text generation models.",id:"HuggingFaceTB/smoltalk"},{description:"A dataset made for training text generation models solving math questions.",id:"HuggingFaceTB/finemath"}],demo:{inputs:[{label:"Input",content:"Once upon a time,",type:"text"}],outputs:[{label:"Output",content:"Once upon a time, we knew that our ancestors were on the verge of extinction. The great explorers and poets of the Old World, from Alexander the Great to Chaucer, are dead and gone. A good many of our ancient explorers and poets have",type:"text"}]},metrics:[{description:"Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words",id:"Cross Entropy"},{description:"The Perplexity metric is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance",id:"Perplexity"}],models:[{description:"A text-generation model trained to follow instructions.",id:"google/gemma-2-2b-it"},{description:"Powerful text generation model for coding.",id:"Qwen
71/Qwen3-Coder-480B-A35B-Instruct"},{description:"Great text generation model with top-notch tool calling capabilities.",id:"openai/gpt-oss-120b"},{description:"Powerful text generation model.",id:"zai-org/GLM-4.5"},{description:"A powerful small model with reasoning capabilities.",id:"Qwen/Qwen3-4B-Thinking-2507"},{description:"Strong conversational model that supports very long instructions.",id:"Qwen/Qwen2.5-7B-Instruct-1M"},{description:"Text generation model used to write code.",id:"Qwen/Qwen2.5-Coder-32B-Instruct"},{description:"Powerful reasoning based open large language model.",id:"deepseek-ai/DeepSeek-R1"}],spaces:[{description:"An application that writes and executes code from text instructions and supports many models.",id:"akhaliq/anycoder"},{description:"An application that builds websites from natural language prompts.",id:"enzostvs/deepsite"},{description:"A leaderboard for comparing chain-of-thought performance of models.",id:"logikon/open_cot_leaderboard"},{description:"An text generation based application based on a very powerful LLaMA2 model.",id:"ysharma/Explore_llamav2_with_TGI"},{description:"An text generation based application to converse with Zephyr model.",id:"HuggingFaceH4/zephyr-chat"},{description:"A leaderboard that ranks text generation models based on blind votes from people.",id:"lmsys/chatbot-arena-leaderboard"},{description:"An chatbot to converse with a very powerful text generation model.",id:"mlabonne/phixtral-chat"}],summary:"Generating text is the task of generating new text given another text. These models can, for example, fill in incomplete text or paraphrase.",widgetModels:["mistralai/Mistral-Nemo-Instruct-2407"],youtubeId:"e9gNEAlsOvU"},Bk={datasets:[{description:"Bing queries with relevant passages from various web sources.",id:"microsoft/ms_marco"}],demo:{inputs:[{label:"Source sentence",content:"Machine learning is so easy.",type:"text"},{label:"Sentences to compare to",content:"Deep learning is so straightforward.",type:"text"},{label:"",content:"This is so difficult, like rocket science.",type:"text"},{label:"",content:"I can't believe how much I struggled with this.",type:"text"}],outputs:[{type:"chart",data:[{label:"Deep learning is so straightforward.",score:2.2006407},{label:"This is so difficult, like rocket science.",score:-6.2634873},{label:"I can't believe how much I struggled with this.",score:-10.251488}]}]},metrics:[{description:"Discounted Cumulative Gain (DCG) measures the gain, or usefulness, of search results discounted by their position. The normalization is done by dividing the DCG by the ideal DCG, which is the DCG of the perfect ranking.",id:"Normalized Discounted Cumulative Gain"},{description:"Reciprocal Rank is a measure used to rank the relevancy of documents given a set of documents. Reciprocal Rank is the reciprocal of the rank of the document retrieved, meaning, if the rank is 3, the Reciprocal Rank is 0.33. If the rank is 1, the Reciprocal Rank is 1",id:"Mean Reciprocal Rank"},{description:"Mean Average Precision (mAP) is the overall average of the Average Precision (AP) values, where AP is the Area Under the PR Curve (AUC-PR)",id:"Mean Average Precision"}],models:[{description:"An extremely efficient text ranking model trained on a web search dataset.",id:"cross-encoder/ms-marco-MiniLM-L6-v2"},{description:"A strong multilingual text reranker model.",id:"Alibaba-NLP/gte-multilingual-reranker-base"},{description:"An efficient text ranking model that punches above its weight.",id:"Alibaba-NLP/gte-reranker-modernbert-base"}],spaces:[],summary:"Text Ranking is the task of ranking a set of texts based on their relevance to a query. Text ranking models are trained on large datasets of queries and relevant documents to learn how to rank documents based on their relevance to the query. This task is particularly useful for search engines and information retrieval systems.",widgetModels:["cross-encoder/ms-marco-MiniLM-L6-v2"],youtubeId:""},Hk={datasets:[{description:"Microsoft Research Video to Text is a large-scale dataset for open domain video captioning",id:"iejMac/CLIP-MSR-VTT"},{description:"UCF101 Human Actions dataset consists of 13,320 video clips from YouTube, with 101 classes.",id:"quchenyuan/UCF101-ZIP"},{description:"A high-quality dataset for human action recognition in YouTube videos.",id:"nateraw/kinetics"},{description:"A dataset of video clips of humans performing pre-defined basic actions with everyday objects.",id:"HuggingFaceM4/something_something_v2"},{description:"This dataset consists of text-video pairs and contains 
71noisy samples with irrelevant video descriptions",id:"HuggingFaceM4/webvid"},{description:"A dataset of short Flickr videos for the temporal localization of events with descriptions.",id:"iejMac/CLIP-DiDeMo"}],demo:{inputs:[{label:"Input",content:"Darth Vader is surfing on the waves.",type:"text"}],outputs:[{filename:"text-to-video-output.gif",type:"img"}]},metrics:[{description:"Inception Score uses an image classification model that predicts class labels and evaluates how distinct and diverse the images are. A higher score indicates better video generation.",id:"is"},{description:"Frechet Inception Distance uses an image classification model to obtain image embeddings. The metric compares mean and standard deviation of the embeddings of real and generated images. A smaller score indicates better video generation.",id:"fid"},{description:"Frechet Video Distance uses a model that captures coherence for changes in frames and the quality of each frame. A smaller score indicates better video generation.",id:"fvd"},{description:"CLIPSIM measures similarity between video frames and text using an image-text similarity model. A higher score indicates better video generation.",id:"clipsim"}],models:[{description:"A strong model for consistent video generation.",id:"tencent/HunyuanVideo"},{description:"A text-to-video model with high fidelity motion and strong prompt adherence.",id:"Lightricks/LTX-Video"},{description:"A text-to-video model focusing on physics-aware applications like robotics.",id:"nvidia/Cosmos-1.0-Diffusion-7B-Text2World"},{description:"Very fast model for video generation.",id:"Lightricks/LTX-Video-0.9.8-13B-distilled"}],spaces:[{description:"An application that generates video from text.",id:"VideoCrafter/VideoCrafter"},{description:"Consistent video generation application.",id:"Wan-AI/Wan2.1"},{description:"A cutting edge video generation application.",id:"Pyramid-Flow/pyramid-flow"}],summary:"Text-to-video models can be used in any application that requires generating consistent sequence of images from text. ",widgetModels:["Wan-AI/Wan2.2-TI2V-5B"],youtubeId:void 0},Pk={datasets:[{description:"The CIFAR-100 dataset consists of 60000 32x32 colour images in 100 classes, with 600 images per class.",id:"cifar100"},{description:"Multiple images of celebrities, used for facial expression translation.",id:"CelebA"}],demo:{inputs:[{label:"Seed",content:"42",type:"text"},{label:"Number of images to generate:",content:"4",type:"text"}],outputs:[{filename:"unconditional-image-generation-output.jpeg",type:"img"}]},metrics:[{description:"The inception score (IS) evaluates the quality of generated images. It measures the diversity of the generated images (the model predictions are evenly distributed across all possible labels) and their 'distinction' or 'sharpness' (the model confidently predicts a single label for each image).",id:"Inception score (IS)"},{description:"The Fréchet Inception Distance (FID) evaluates the quality of images created by a generative model by calculating the distance between feature vectors for real and generated images.",id:"Frećhet Inception Distance (FID)"}],models:[{description:"High-quality image generation model trained on the CIFAR-10 dataset. It synthesizes images of the ten classes presented in the dataset using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.",id:"google/ddpm-cifar10-32"},{description:"High-quality image generation model trained on the 256x256 CelebA-HQ dataset. It synthesizes images of faces using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.",id:"google/ddpm-celebahq-256"}],spaces:[{description:"An application that can generate realistic faces.",id:"CompVis/celeba-latent-diffusion"}],summary:"Unconditional image generation is the task of generating images with no condition in any context (like a prompt text or another image). Once trained, the model will create images that resemble its training data distribution.",widgetModels:[""],youtubeId:""},Vk={datasets:[{description:"Benchmark dataset used for video classification with videos that belong to 400 classes.",id:"kinetics400"}],demo:{inputs:[{filename:"video-classification-input.gif",type:"img"}],outputs:[{type:"chart",data:[{label:"Playing Guitar",score:.514},{label:"Playing Tennis",score:.193},{label:"Cooking",score:.068}]}]},metrics:[{description:"",id:"accuracy"},{description:"",id:"recall"},{description:"",id:"precision"},{description:"",id:"f1"}],models:[{description:"Strong Video Classification model trained on the Kinetics 400 dataset.",id:"google/vivit-b-16x2-kinetics400"},{description:"Strong Video Classification model trained on the Kinetics 400 dataset.",id:"microsoft/xclip-base-patch32"}],spaces:[{description:"An application that classifies video at different timestamps.",id:"nateraw/lavila"},{description:"An application that classifies video.",id:"fcakyon/video-classification"}],summary:"Video classification is the task of assigning a label or class to an entire video. Videos are expected to have only one class for each video. Video classification models take a video as input and return a prediction about which class the video belongs to.",widgetModels:[],youtubeId:""},$k={datasets:[{description:"A large dataset used to train visual document retrieval models.",id:"vidore/colpali_train_set"}],demo:{inputs:[{filename:"input.png",type:"img"},{label:"Question",content:"Is the model in this paper the fastest for inference?",type:"text"}],outputs:[{type:"chart",data:[{label:"Page 10",score:.7},{label:"Page 11",score:.06},{label:"Page 9",score:.003}]}]},isPlaceholder:!1,metrics:[{description:"NDCG@k scores ranked recommendation lists for top-k results. 0 is the worst, 1 is the best.",id:"Normalized Discounted Cumulative Gain at K"}],models:[{description:"Very accurate visual document retrieval model for multilingual queries and documents.",id:"vidore/colqwen2-v1.0"}
71,{description:"Very fast and efficient visual document retrieval model that can also take in other modalities like audio.",id:"Tevatron/OmniEmbed-v0.1"}],spaces:[{description:"A leaderboard of visual document retrieval models.",id:"vidore/vidore-leaderboard"},{description:"Visual retrieval augmented generation demo based on ColQwen2 model.",id:"vidore/visual-rag-tool"}],summary:"Visual document retrieval is the task of searching for relevant image-based documents, such as PDFs. These models take a text query and multiple documents as input and return the top-most relevant documents and relevancy scores as output.",widgetModels:[""],youtubeId:""},Fk={datasets:[{description:"A widely used dataset containing questions (with answers) about images.",id:"Graphcore/vqa"},{description:"A dataset to benchmark visual reasoning based on text in images.",id:"facebook/textvqa"}],demo:{inputs:[{filename:"elephant.jpeg",type:"img"},{label:"Question",content:"What is in this image?",type:"text"}],outputs:[{type:"chart",data:[{label:"elephant",score:.97},{label:"elephants",score:.06},{label:"animal",score:.003}]}]},isPlaceholder:!1,metrics:[{description:"",id:"accuracy"},{description:"Measures how much a predicted answer differs from the ground truth based on the difference in their semantic meaning.",id:"wu-palmer similarity"}],models:[{description:"A visual question answering model trained to convert charts and plots to text.",id:"google/deplot"},{description:"A visual question answering model trained for mathematical reasoning and chart derendering from images.",id:"google/matcha-base"},{description:"A strong visual question answering that answers questions from book covers.",id:"google/pix2struct-ocrvqa-large"}],spaces:[{description:"An application that compares visual question answering models across different tasks.",id:"merve/pix2struct"},{description:"An application that can answer questions based on images.",id:"nielsr/vilt-vqa"},{description:"An application that can caption images and answer questions about a given image. ",id:"Salesforce/BLIP"},{description:"An application that can caption images and answer questions about a given image. ",id:"vumichien/Img2Prompt"}],summary:"Visual Question Answering is the task of answering open-ended questions based on an image. They output natural language responses to natural language questions.",widgetModels:["dandelin/vilt-b32-finetuned-vqa"],youtubeId:""},Xk={datasets:[{description:"A widely used dataset used to benchmark multiple variants of text classification.",id:"nyu-mll/glue"},{description:"The Multi-Genre Natural Language Inference (MultiNLI) corpus is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment information.",id:"nyu-mll/multi_nli"},{description:"FEVER is a publicly available dataset for fact extraction and verification against textual sources.",id:"fever/fever"}],demo:{inputs:[{label:"Text Input",content:"Dune is the best movie ever.",type:"text"},{label:"Candidate Labels",content:"CINEMA, ART, MUSIC",type:"text"}],outputs:[{type:"chart",data:[{label:"CINEMA",score:.9},{label:"ART",score:.1},{label:"MUSIC",score:0}]}]},metrics:[],models:[{description:"Powerful zero-shot text classification model.",id:"facebook/bart-large-mnli"},{description:"Cutting-edge zero-shot multilingual text classification model.",id:"MoritzLaurer/ModernBERT-large-zeroshot-v2.0"},{description:"Zero-shot text classification model that can be used for topic and sentiment classification.",id:"knowledgator/gliclass-modern-base-v2.0-init"}],spaces:[],summary:"Zero-shot text classification is a task in natural language processing where a model is trained on a set of labeled examples but is then able to classify new examples from previously unseen classes.",widgetModels:["facebook/bart-large-mnli"]},Yk={datasets:[{description:"",id:""}],demo:{inputs:[{filename:"image-classification-input.jpeg",type:"img"},{label:"Classes",content:"cat, dog, bird",type:"text"}],outputs:[{type:"chart",data:[{label:"Cat",score:.664},{label:"Dog",score:.329},{label:"Bird",score:.008}]}]},metrics:[{description:"Computes the number of times the correct label appears in to
71p K labels predicted",id:"top-K accuracy"}],models:[{description:"Multilingual image classification model for 80 languages.",id:"visheratin/mexma-siglip"},{description:"Strong zero-shot image classification model.",id:"google/siglip2-base-patch16-224"},{description:"Robust zero-shot image classification model.",id:"intfloat/mmE5-mllama-11b-instruct"},{description:"Powerful zero-shot image classification model supporting 94 languages.",id:"jinaai/jina-clip-v2"},{description:"Strong image classification model for biomedical domain.",id:"microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224"}],spaces:[{description:"An application that leverages zero-shot image classification to find best captions to generate an image. ",id:"pharma/CLIP-Interrogator"},{description:"An application to compare different zero-shot image classification models. ",id:"merve/compare_clip_siglip"}],summary:"Zero-shot image classification is the task of classifying previously unseen classes during training of a model.",widgetModels:["google/siglip-so400m-patch14-224"],youtubeId:""},Qk={datasets:[],demo:{inputs:[{filename:"zero-shot-object-detection-input.jpg",type:"img"},{label:"Classes",content:"cat, dog, bird",type:"text"}],outputs:[{filename:"zero-shot-object-detection-output.jpg",type:"img"}]},metrics:[{description:"The Average Precision (AP) metric is the Area Under the PR Curve (AUC-PR). It is calculated for each class separately",id:"Average Precision"},{description:"The Mean Average Precision (mAP) metric is the overall average of the AP values",id:"Mean Average Precision"},{description:"The APα metric is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75",id:"APα"}],models:[{description:"Solid zero-shot object detection model.",id:"openmmlab-community/mm_grounding_dino_large_all"},{description:"Cutting-edge zero-shot object detection model.",id:"fushh7/LLMDet"}],spaces:[{description:"A demo to compare different zero-shot object detection models per output and latency.",id:"ariG23498/zero-shot-od"},{description:"A demo that combines a zero-shot object detection and mask generation model for zero-shot segmentation.",id:"merve/OWLSAM"}],summary:"Zero-shot object detection is a computer vision task to detect objects and their classes in images, without any prior training or knowledge of the classes. Zero-shot object detection models receive an image as input, as well as a list of candidate classes, and output the bounding boxes and labels where the objects have been detected.",widgetModels:[],youtubeId:""},Kk={datasets:[{description:"A large dataset of over 10 million 3D objects.",id:"allenai/objaverse-xl"},{description:"A dataset of isolated object images for evaluating image-to-3D models.",id:"dylanebert/iso3d"}],demo:{inputs:[{filename:"image-to-3d-image-input.png",type:"img"}],outputs:[{label:"Result",content:"image-to-3d-3d-output-filename.glb",type:"text"}]},metrics:[],models:[{description:"Fast image-to-3D mesh model by Tencent.",id:"TencentARC/InstantMesh"},{description:"3D world generation model.",id:"tencent/HunyuanWorld-1"},{description:"A scaled up image-to-3D mesh model derived from TripoSR.",id:"hwjiang/Real3D"},{description:"Consistent image-to-3d generation model.",id:"stabilityai/stable-point-aware-3d"}],spaces:[{description:"Leaderboard to evaluate image-to-3D models.",id:"dylanebert/3d-arena"},{description:"Image-to-3D demo with mesh outputs.",id:"TencentARC/InstantMesh"},{description:"Image-to-3D demo.",id:"stabilityai/stable-point-aware-3d"},{description:"Image-to-3D demo with mesh outputs.",id:"hwjiang/Real3D"},{description:"Image-to-3D demo with splat outputs.",id:"dylanebert/LGM-mini"}],summary:"Image-to-3D models take in image input and produce 3D output.",widgetModels:[],youtubeId:""},Zk={datasets:[{description:"A large dataset of over 10 million 3D objects.",id:"allenai/objaverse-xl"},{description:"Descriptive captions for 3D objects in Objaverse.",id:"tiange/Cap3D"}],demo:{inputs:[{label:"Prompt",content:"a cat statue",type:"text"}],outputs:[{label:"Result",content:"text-to-3d-3d-output-filename.glb",type:"text"}]},metrics:[],models:[{description:"Text-to-3D mesh model by OpenAI",id:"openai/shap-e"},{description:"Generative 3D gaussian splatting model.",id:"ashawkey/LGM"}],spaces:[{description:"Text-to-3D demo with mesh outputs.",id:"hysts/Shap-E"},{description:"Text/image-to-3D demo with splat outputs.",id:"ashawkey/LGM"}],summary:"Text-to-3D models take in text input and produce 3D output.",widgetModels:[],youtubeId:""},Jk={datasets:[{description:"A dataset of hand keypoints of over 500k examples.",id:"Vincent-luo/hagrid-mediapipe-hands"}],demo:{inputs:[{filename:"keypoint-detection-input.png",type:"img"}],outputs:[{filename:"keypoint-detection-output.png",type:"img"}]},metrics:[],models:[{description:"A robust keypoint detection model.",id:"magic-leap-community/superpoint"},{description:"A robust keypoint matching model.",id:"magic-leap-community/superglue_outdoor"},{description:"Strong keypoint detection model used to detect human pose.",id:"qualcomm/RTMPose-Body2d"},{description:"Powerful keypoint matching model.",id:"ETH-CVG/lightglue_disk"}],spaces:[{description:"An application that detects hand keypoints in real-time.",id:"datasciencedojo/Hand-Keypoint-Detection-Realtime"},{description:"An application for keypoint detection and matching.",id:"ETH-CVG/LightGlue"}],summary:"Keypoint detection is the task of identifying meaningful distinctive points or features in an image.",widgetModels:[],youtubeId:""},Gk={datasets:[{description:"Multiple-choice questions and answers about videos.",id:"lmms-lab/Video-MME"},{description:"A dataset of instructions and question-answer pairs about videos.",id:"lmms-lab/VideoChatGPT"},{description:"Large video understanding dataset.",id:"HuggingFaceFV/finevideo"}],demo:{inputs:[{filename:"video-text-to-text-input.gif",type:"img"},{label:"Text Prompt",content:"What is happening in this video?",type:"text"}],outputs:[{label:"Answer",content:"The video shows a series of images showing a fountain with water jets and a variety of colorful flowers and butterflies in the background.",type:"text"}]},metrics:[],models:[{description:"A robust video-text-to-text model.",id:"Vision-CAIR/LongVU_Qwen2_7B"},{description:"Strong video-text-to-text model with reasoning capabilities.",id:"GoodiesHere/Apollo-LMMs-Apollo-7B-t32"},{description:"Strong video-text-to-text model.",id:"HuggingFaceTB/SmolVLM2-2.2B-Instruct"}],spaces:[{description:"An application to chat with a video-text-to-text model.",id:"llava-hf/video-llava"},{description:"A leaderboard for various video-text-to-text models.",id:"opencompass/openvlm_video_leaderboard"},{description:"An application to generate highlights from a video.",id:"HuggingFaceTB/SmolVLM2-HighlightGenerator"}],summary:"Video-text-to-text models take in a video and a text prompt and output text. These models are also called video-language models.",widgetModels:[""],youtubeId:""},Wk={"audio-classification":["speechbrain","transformers","transformers.js"],"audio-to-audio":["asteroid","fairseq","speechbrain"],"automatic-speech-recognition":["espnet","nemo","speechbrain","transformers","transformers.js"],"audio-text-to-text":[],"depth-estimation":["transformers","transformers.js"],"document-question-answering":["transformers","transformers.js"],"feature-extraction":["sentence-transformers","transformers","transformers.js"],"fill-mask":["transformers","transformers.js"],"graph-ml":["transformers"],"image-classification":["keras","timm","transformers","transformers.js"],"image-feature-extraction":["timm","transformers"],"image-segmentation":["transformers","transformers.js"],"image-text-to-text":["transformers"],"image-to-image":["diffusers","transformers","transformers.js"],"image-to-text":["transformers","transformers.js"],"image-to-vi
71deo":["diffusers"],"keypoint-detection":["transformers"],"video-classification":["transformers"],"mask-generation":["transformers"],"multiple-choice":["transformers"],"object-detection":["transformers","transformers.js","ultralytics"],other:[],"question-answering":["adapter-transformers","allennlp","transformers","transformers.js"],robotics:[],"reinforcement-learning":["transformers","stable-baselines3","ml-agents","sample-factory"],"sentence-similarity":["sentence-transformers","spacy","transformers.js"],summarization:["transformers","transformers.js"],"table-question-answering":["transformers"],"table-to-text":["transformers"],"tabular-classification":["sklearn"],"tabular-regression":["sklearn"],"tabular-to-text":["transformers"],"text-classification":["adapter-transformers","setfit","spacy","transformers","transformers.js"],"text-generation":["transformers","transformers.js"],"text-ranking":["sentence-transformers","transformers"],"text-retrieval":[],"text-to-image":["diffusers"],"text-to-speech":["espnet","tensorflowtts","transformers","transformers.js"],"text-to-audio":["transformers","transformers.js"],"text-to-video":["diffusers"],"time-series-forecasting":[],"token-classification":["adapter-transformers","flair","spacy","span-marker","stanza","transformers","transformers.js"],translation:["transformers","transformers.js"],"unconditional-image-generation":["diffusers"],"video-text-to-text":["transformers"],"visual-question-answering":["transformers","transformers.js"],"voice-activity-detection":[],"zero-shot-classification":["transformers","transformers.js"],"zero-shot-image-classification":["transformers","transformers.js"],"zero-shot-object-detection":["transformers","transformers.js"],"text-to-3d":["diffusers"],"image-to-3d":["diffusers"],"any-to-any":["transformers"],"visual-document-retrieval":["transformers"],"video-to-video":["diffusers"]};function be(t,a=Uc){return{...a,id:t,label:lf[t].name,libraries:Wk[t]}}be("any-to-any",ck),be("audio-classification",fk),be("audio-to-audio",pk),be("audio-text-to-text",Uc),be("automatic-speech-recognition",dk),be("depth-estimation",Tk),be("document-question-answering",mk),be("visual-document-retrieval",$k),be("feature-extraction",hk),be("fill-mask",gk),be("image-classification",yk),be("image-feature-extraction",bk),be("image-segmentation",xk),be("image-to-image",vk),be("image-text-to-text",_k),be("image-to-text",wk),be("image-to-video",Sk),be("keypoint-detection",Jk),be("mask-generation",Ak),be("object-detection",kk),be("video-classification",Vk),be("question-answering",Ck),be("reinfor
71cement-learning",Ek),be("sentence-similarity",Rk),be("summarization",Dk),be("table-question-answering",Ok),be("tabular-classification",Mk),be("tabular-regression",Uk),be("text-classification",zk),be("text-generation",qk),be("text-ranking",Bk),be("text-to-image",Nk),be("text-to-speech",Ik),be("text-to-video",Hk),be("token-classification",jk),be("translation",Lk),be("unconditional-image-generation",Pk),be("video-text-to-text",Gk),be("video-to-video",Uc),be("visual-question-answering",Fk),be("zero-shot-classification",Xk),be("zero-shot-image-classification",Yk),be("zero-shot-object-detection",Qk),be("text-to-3d",Zk),be("image-to-3d",Kk);const eT=()=>'"Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!"',tT=()=>'"Меня зовут Вольфганг и я живу в Берлине"',nT=()=>'"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."',aT=()=>`{
72    "query": "How many stars does the transformers repository have?",
73    "table": {
74        "Repository": ["Transformers", "Datasets", "Tokenizers"],
75        "Stars": ["36542", "4512", "3934"],
76        "Contributors": ["651", "77", "34"],
77        "Programming language": [
78            "Python",
79            "Python",
80            "Rust, Python and NodeJS"
81        ]
82    }
83}`,iT=()=>`{
84        "image": "cat.png",
85        "question": "What is in this image?"
86    }`,rT=()=>`{
87    "question": "What is my name?",
88    "context": "My name is Clara and I live in Berkeley."
89}`,oT=()=>'"I like you. I love you"',lT=()=>'"My name is Sarah Jessica Parker but you can call me Jessica"',ig=t=>t.tags.includes("conversational")?t.pipeline_tag==="text-generation"?[{role:"user",content:"What is the capital of France?"}]:[{role:"user",content:[{type:"text",text:"Describe this image in one sentence."},{type:"image_url",image_url:{url:"https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"}}]}]:'"Can you please let us know more details about your "',sT=t=>`"The answer to the universe is ${t.mask_token}."`,uT=()=>`{
90    "source_sentence": "That is a happy person",
91    "sentences": [
92        "That is a happy dog",
93        "That is a very happy person",
94        "Today is a sunny day"
95    ]
96}`,cT=()=>'"Today is a sunny day and I will get some ice cream."',fT=()=>'"cats.jpg"',pT=()=>'"cats.jpg"',dT=()=>`{
97    "image": "cat.png",
98    "prompt": "Turn the cat into a tiger."
99}`,mT=()=>`{
100    "image": "cat.png",
101    "prompt": "The cat starts to dance"
102}`,hT=()=>'"cats.jpg"',gT=()=>'"cats.jpg"',yT=()=>'"sample1.flac"',bT=()=>'"sample1.flac"',vT=()=>'"Astronaut riding a horse"',wT=()=>'"A young man walking on the street"',_T=()=>'"The answer to the universe is 42"',xT=()=>'"liquid drum and bass, atmospheric synths, airy sounds"',ST=()=>'"sample1.flac"',rg=()=>`'{"Height":[11.52,12.48],"Length1":[23.2,24.0],"Length2":[25.4,26.3],"Species": ["Bream","Bream"]}'`,AT=()=>'"cats.jpg"',kT={"audio-to-audio":yT,"audio-classification":bT,"automatic-speech-recognition":ST,"document-question-answering":iT,"feature-extraction":cT,"fill-mask":sT,"image-classification":fT,"image-to-text":pT,"image-to-image":dT,"image-to-video":mT,"image-segmentation":hT,"object-detection":gT,"question-answering":rT,"sentence-similarity":uT,summarization:nT,"table-question-answering":aT,"tabular-regression":rg,"tabular-classification":rg,"text-classification":oT,"text-generation":ig,"image-text-to-text":ig,"text-to-image":vT,"text-to-vi
102deo":wT,"text-to-speech":_T,"text-to-audio":xT,"token-classification":lT,translation:tT,"zero-shot-classification":eT,"zero-shot-image-classification":AT};function TT(t,a=!1,r=!1){if(t.pipeline_tag){const l=kT[t.pipeline_tag];if(l){let s=l(t);if(typeof s=="string"&&(a&&(s=s.replace(/(?:(?:\r?\n|\r)\t*)|\t+/g," ")),r)){const c=/^"(.+)"$/s,p=s.match(c);s=p?p[1]:s}return s}}return"No input example has been defined for this model task."}function ET(t,a){let r=JSON.stringify(t,null,"	");return a?.indent&&(r=r.replaceAll(`
103`,`
104${a.indent}`)),a?.attributeKeyQuotes||(r=r.replace(/"([^"]+)":/g,"$1:")),a?.customContentEscaper&&(r=a.customContentEscaper(r)),r}const ey="custom_code";function Nn(t){const a=t.split("/");return a.length===1?a[0]:a[1]}const CT=t=>JSON.stringify(t).slice(1,-1),RT=t=>[`from adapters import AutoAdapterModel
105
106model = AutoAdapterModel.from_pretrained("${t.config?.adapter_transformers?.model_name}")
107model.load_adapter("${t.id}", set_active=True)`],DT=t=>[`import allennlp_models
108from allennlp.predictors.predictor import Predictor
109
110predictor = Predictor.from_path("hf://${t.id}")`],OT=t=>[`import allennlp_models
111from allennlp.predictors.predictor import Predictor
112
113predictor = Predictor.from_path("hf://${t.id}")
114predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
115predictions = predictor.predict_json(predictor_input)`],MT=t=>t.tags.includes("question-answering")?OT(t):DT(t),UT=t=>[`from araclip import AraClip
116
117model = AraClip.from_pretrained("${t.id}")`],NT=t=>[`from asteroid.models import BaseModel
118
119model = BaseModel.from_pretrained("${t.id}")`],IT=t=>{const a=`# Watermark Generator
120from audioseal import AudioSeal
121
122model = AudioSeal.load_generator("${t.id}")
123# pass a tensor (tensor_wav) of shape (batch, channels, samples) and a sample rate
124wav, sr = tensor_wav, 16000
125	
126watermark = model.get_watermark(wav, sr)
127watermarked_audio = wav + watermark`,r=`# Watermark Detector
128from audioseal import AudioSeal
129
130detector = AudioSeal.load_detector("${t.id}")
131	
132result, message = detector.detect_watermark(watermarked_audio, sr)`;return[a,r]};function $i(t){return t.cardData?.base_model?.toString()??"fill-in-base-model"}function Qa(t){const a=t.widgetData?.[0]?.text??t.cardData?.instance_prompt;if(a)return CT(a)}const jT=t=>[`import requests
133from PIL import Image
134from ben2 import AutoModel
135
136url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg"
137image = Image.open(requests.get(url, stream=True).raw)
138
139model = AutoModel.from_pretrained("${t.id}")
140model.to("cuda").eval()
141foreground = model.inference(image)
142`],LT=t=>[`from bertopic import BERTopic
143
144model = BERTopic.load("${t.id}")`],zT=t=>[`from bm25s.hf import BM25HF
145
146retriever = BM25HF.load_from_hub("${t.id}")`],qT=()=>[`# pip install chatterbox-tts
147import torchaudio as ta
148from chatterbox.tts import ChatterboxTTS
149
150model = ChatterboxTTS.from_pretrained(device="cuda")
151
152text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill."
153wav = model.generate(text)
154ta.save("test-1.wav", wav, model.sr)
155
156# If you want to synthesize with a different voice, specify the audio prompt
157AUDIO_PROMPT_PATH="YOUR_FILE.wav"
158wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH)
159ta.save("test-2.wav", wav, model.sr)`],BT=()=>["pip install git+https://github.com/SAP-samples/contexttab",`# Run a classification task
160from sklearn.datasets import load_breast_cancer
161from sklearn.metrics import accuracy_score
162from sklearn.model_selection import train_test_split
163
164from contexttab import ConTextTabClassifier
165
166# Load sample data
167X, y = load_breast_cancer(return_X_y=True)
168X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
169
170# Initialize a classifier
171# You can omit checkpoint and checkpoint_revision to use the default model
172clf = ConTextTabClassifier(checkpoint="l2/base.pt", checkpoint_revision="v1.0.0", bagging=1, max_context_size=2048)
173
174clf.fit(X_train, y_train)
175
176# Predict probabilities
177prediction_probabilities = clf.predict_proba(X_test)
178# Predict labels
179predictions = clf.predict(X_test)
180print("Accuracy", accuracy_score(y_test, predictions))`,`# Run a regression task
181from sklearn.datasets import fetch_openml
182from sklearn.metrics import r2_score
183from sklearn.model_selection import train_test_split
184
185from contexttab import ConTextTabRegressor
186
187
188# Load sample data
189df = fetch_openml(data_id=531, as_frame=True)
190X = df.data
191y = df.target.astype(float)
192
193# Train-test split
194X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
195
196# Initialize the regressor
197# You can omit checkpoint and checkpoint_revision to use the default model
198regressor = ConTextTabRegressor(checkpoint="l2/base.pt", checkpoint_revision="v1.0.0", bagging=1, max_context_size=2048)
199
200regressor.fit(X_train, y_train)
201
202# Predict on the test set
203predictions = regressor.predict(X_test)
204
205r2 = r2_score(y_test, predictions)
206print("R² Score:", r2)`],HT=()=>[`# pip install git+https://github.com/Google-Health/cxr-foundation.git#subdirectory=python
207
208# Load image as grayscale (Stillwaterising, CC0, via Wikimedia Commons)
209import requests
210from PIL import Image
211from io import BytesIO
212image_url = "https://upload.wikimedia.org/wikipedia/commons/c/c8/Chest_Xray_PA_3-8-2010.png"
213img = Image.open(requests.get(image_url, headers={'User-Agent': 'Demo'}, stream=True).raw).convert('L')
214
215# Run inference
216from clientside.clients import make_hugging_face_client
217cxr_client = make_hugging_face_client('cxr_model')
218print(cxr_client.get_image_embeddings_from_images([img]))`],PT=t=>{let a,r,l;return a="<ENCODER>",r="<NUMBER_OF_FEATURES>",l="<OUT_CHANNELS>",t.id==="depth-anything/Depth-Anything-V2-Small"?(a="vits",r="64",l="[48, 96, 192, 384]"):t.id==="depth-anything/Depth-Anything-V2-Base"?(a="vitb",r="128",l="[96, 192, 384, 768]"):t.id==="depth-anything/Depth-Anything-V2-Large"&&(a="vitl",r="256",l="[256, 512, 1024, 1024"),[`
219# Install from https://github.com/DepthAnything/Depth-Anything-V2
220
221# Load the model and infer depth from an image
222import cv2
223import torch
224
225from depth_anything_v2.dpt import DepthAnythingV2
226
227# instantiate the model
228model = DepthAnythingV2(encoder="${a}", features=${r}, out_channels=${l})
229
230# load the weights
231filepath = hf_hub_download(repo_id="${t.id}", filename="depth_anything_v2_${a}.pth", repo_type="model")
232state_dict = torch.load(filepath, map_location="cpu")
233model.load_state_dict(state_dict).eval()
234
235raw_img = cv2.imread("your/image/path")
236depth = model.infer_image(raw_img) # HxW raw depth map in numpy
237    `]},VT=t=>[`# Download checkpoint
238pip install huggingface-hub
239huggingface-cli download --local-dir checkpoints ${t.id}`,`import depth_pro
240
241# Load model and preprocessing transform
242model, transform = depth_pro.create_model_and_transforms()
243model.eval()
244
245# Load and preprocess an image.
246image, _, f_px = depth_pro.load_rgb("example.png")
247image = transform(image)
248
249# Run inference.
250prediction = model.infer(image, f_px=f_px)
251
252# Results: 1. Depth in meters
253depth = prediction["depth"]
254# Results: 2. Focal length in pixels
255focallength_px = prediction["focallength_px"]`],$T=()=>[`from huggingface_hub import from_pretrained_keras
256import tensorflow as tf, requests
257
258# Load and format input
259IMAGE_URL = "https://storage.googleapis.com/dx-scin-public-data/dataset/images/3445096909671059178.png"
260input_tensor = tf.train.Example(
261    features=tf.train.Features(
262        feature={
263            "image/encoded": tf.train.Feature(
264                bytes_list=tf.train.BytesList(value=[requests.get(IMAGE_URL, stream=True).content])
265            )
266        }
267    )
268).SerializeToString()
269
270# Load model and run inference
271loaded_model = from_pretrained_keras("google/derm-foundation")
272infer = loaded_model.signatures["serving_default"]
273print(infer(inputs=tf.constant([input_tensor])))`],FT=t=>[`import soundfile as sf
274from dia.model import Dia
275
276model = Dia.from_pretrained("${t.id}")
277text = "[S1] Dia is an open weights text to dialogue model. [S2] You get full control over scripts and voices. [S1] Wow. Amazing. (laughs) [S2] Try it now on Git hub or Hugging Face."
278output = model.generate(text)
279
280sf.write("simple.mp3", output, 44100)`],XT=t=>[`# pip install git+https://github.com/NVlabs/describe-anything
281from huggingface_hub import snapshot_download
282from dam import DescribeAnythingModel
283
284snapshot_download(${t.id}, local_dir="checkpoints")
285
286dam = DescribeAnythingModel(
287	model_path="checkpoints",
288	conv_mode="v1",
289	prompt_mode="focal_prompt",
290)`],ty="Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",ny="Turn this cat into a dog",sf="A man with short gray hair plays a red electric guitar.",YT=t=>[`from diffusers import DiffusionPipeline
291
292pipe = DiffusionPipeline.from_pretrained("${t.id}")
293
294prompt = "${Qa(t)??ty}"
295image = pipe(prompt).images[0]`],QT=t=>[`from diffusers import DiffusionPipeline
296from diffusers.utils import load_image
297
298pipe = DiffusionPipeline.from_pretrained("${t.id}")
299
300prompt = "${Qa(t)??ny}"
301input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
302
303image = pipe(image=input_image, prompt=prompt).images[0]`],KT=t=>[`import torch
304from diffusers import DiffusionPipeline
305from diffusers.utils import load_image, export_to_video
306
307pipe = DiffusionPipeline.from_pretrained("${t.id}", torch_dtype=torch.float16)
308pipe.to("cuda")
309
310prompt = "${Qa(t)??sf}"
311image = load_image(
312    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
313)
314
315output = pipe(image=image, prompt=prompt).frames[0]
316export_to_video(output, "output.mp4")`],ZT=t=>[`from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
317
318controlnet = ControlNetModel.from_pretrained("${t.id}")
319pipe = StableDiffusionControlNetPipeline.from_pretrained(
320	"${$i(t)}", controlnet=controlnet
321)`],JT=t=>[`from diffusers import DiffusionPipeline
322
323pipe = DiffusionPipeline.from_pretrained("${$i(t)}")
324pipe.load_lora_weights("${t.id}")
325
326prompt = "${Qa(t)??ty}"
327image = pipe(prompt).images[0]`],GT=t=>[`from diffusers import DiffusionPipeline
328from diffusers.utils import load_image
329
330pipe = DiffusionPipeline.from_pretrained("${$i(t)}")
331pipe.load_lora_weights("${t.id}")
332
333prompt = "${Qa(t)??ny}"
334input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
335
336image = pipe(image=input_image, prompt=prompt).images[0]`],WT=t=>[`from diffusers import DiffusionPipeline
337from diffusers.utils import export_to_video
338
339pipe = DiffusionPipeline.from_pretrained("${$i(t)}")
340pipe.load_lora_weights("${t.id}")
341
342prompt = "${Qa(t)??sf}"
343
344output = pipe(prompt=prompt).frames[0]
345export_to_video(output, "output.mp4")`],eE=t=>[`from diffusers import DiffusionPipeline
346from diffusers.utils import load_image, export_to_video
347
348pipe = DiffusionPipeline.from_pretrained("${$i(t)}")
349pipe.load_lora_weights("${t.id}")
350
351prompt = "${Qa(t)??sf}"
352input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png")
353
354image = pipe(image=input_image, prompt=prompt).frames[0]
355export_to_video(output, "output.mp4")`],tE=t=>[`from diffusers import DiffusionPipeline
356
357pipe = DiffusionPipeline.from_pretrained("${$i(t)}")
358pipe.load_textual_inversion("${t.id}")`],nE=t=>[`import torch
359from diffusers import FluxFillPipeline
360from diffusers.utils import load_image
361
362image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup.png")
363mask = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup_mask.png")
364
365pipe = FluxFillPipeline.from_pretrained("${t.id}", torch_dtype=torch.bfloat16).to("cuda")
366image = pipe(
367    prompt="a white paper cup",
368    image=image,
369    mask_image=mask,
370    height=1632,
371    width=1232,
372    guidance_scale=30,
373    num_inference_steps=50,
374    max_sequence_length=512,
375    generator=torch.Generator("cpu").manual_seed(0)
376).images[0]
377image.save(f"flux-fill-dev.png")`],aE=t=>[`import torch
378from diffusers import AutoPipelineForInpainting
379from diffusers.utils import load_image
380
381pipe = AutoPipelineForInpainting.from_pretrained("${t.id}", torch_dtype=torch.float16, variant="fp16").to("cuda")
382
383img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
384mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"
385
386image = load_image(img_url).resize((1024, 1024))
387mask_image = load_image(mask_url).resize((1024, 1024))
388
389prompt = "a tiger sitting on a park bench"
390generator = torch.Generator(device="cuda").manual_seed(0)
391
392image = pipe(
393  prompt=prompt,
394  image=image,
395  mask_image=mask_image,
396  guidance_scale=8.0,
397  num_inference_steps=20,  # steps between 15 and 30 work well for us
398  strength=0.99,  # make sure to use \`strength\` below 1.0
399  generator=generator,
400).images[0]`],ay=t=>t.tags.includes("StableDiffusionInpaintPipeline")||t.tags.includes("StableDiffusionXLInpaintPipeline")?aE(t):t.tags.includes("controlnet")?ZT(t):t.tags.includes("lora")?t.pipeline_tag==="image-to-image"?GT(t):t.pipeline_tag==="image-to-vi
400deo"?eE(t):t.pipeline_tag==="text-to-video"?WT(t):JT(t):t.tags.includes("textual_inversion")?tE(t):t.tags.includes("FluxFillPipeline")?nE(t):t.pipeline_tag==="image-to-video"?KT(t):t.pipeline_tag==="image-to-image"?QT(t):YT(t),iE=t=>{const a=`# Pipeline for Stable Diffusion 3
401from diffusionkit.mlx import DiffusionPipeline
402
403pipeline = DiffusionPipeline(
404	shift=3.0,
405	use_t5=False,
406	model_version=${t.id},
407	low_memory_mode=True,
408	a16=True,
409	w16=True,
410)`,r=`# Pipeline for Flux
411from diffusionkit.mlx import FluxPipeline
412
413pipeline = FluxPipeline(
414  shift=1.0,
415  model_version=${t.id},
416  low_memory_mode=True,
417  a16=True,
418  w16=True,
419)`,l=`# Image Generation
420HEIGHT = 512
421WIDTH = 512
422NUM_STEPS = ${t.tags.includes("flux")?4:50}
423CFG_WEIGHT = ${t.tags.includes("flux")?0:5}
424
425image, _ = pipeline.generate_image(
426  "a photo of a cat",
427  cfg_weight=CFG_WEIGHT,
428  num_steps=NUM_STEPS,
429  latent_size=(HEIGHT // 8, WIDTH // 8),
430)`;return[t.tags.includes("flux")?r:a,l]},rE=t=>[`# pip install --no-binary :all: cartesia-pytorch
431from cartesia_pytorch import ReneLMHeadModel
432from transformers import AutoTokenizer
433
434model = ReneLMHeadModel.from_pretrained("${t.id}")
435tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-1B-hf")
436
437in_message = ["Rene Descartes was"]
438inputs = tokenizer(in_message, return_tensors="pt")
439
440outputs = model.generate(inputs.input_ids, max_length=50, top_k=100, top_p=0.99)
441out_message = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
442
443print(out_message)
444)`],oE=t=>[`import mlx.core as mx
445import cartesia_mlx as cmx
446
447model = cmx.from_pretrained("${t.id}")
448model.set_dtype(mx.float32)   
449
450prompt = "Rene Descartes was"
451
452for text in model.generate(
453    prompt,
454    max_tokens=500,
455    eval_every_n=5,
456    verbose=True,
457    top_p=0.99,
458    temperature=0.85,
459):
460    print(text, end="", flush=True)
461`],lE=t=>{const a=Nn(t.id).replaceAll("-","_");return[`# Load it from the Hub directly
462import edsnlp
463nlp = edsnlp.load("${t.id}")
464`,`# Or install it as a package
465!pip install git+https://huggingface.co/${t.id}
466
467# and import it as a module
468import ${a}
469
470nlp = ${a}.load()  # or edsnlp.load("${a}")
471`]},sE=t=>[`from espnet2.bin.tts_inference import Text2Speech
472
473model = Text2Speech.from_pretrained("${t.id}")
474
475speech, *_ = model("text to generate speech from")`],uE=t=>[`from espnet2.bin.asr_inference import Speech2Text
476
477model = Speech2Text.from_pretrained(
478  "${t.id}"
479)
480
481speech, rate = soundfile.read("speech.wav")
482text, *_ = model(speech)[0]`],cE=()=>["unknown model type (must be text-to-speech or automatic-speech-recognition)"],fE=t=>t.tags.includes("text-to-speech")?sE(t):t.tags.includes("automatic-speech-recognition")?uE(t):cE(),pE=t=>[`from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
483
484models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
485    "${t.id}"
486)`],dE=t=>[`from flair.models import SequenceTagger
487
488tagger = SequenceTagger.load("${t.id}")`],mE=t=>[`from gliner import GLiNER
489
490model = GLiNER.from_pretrained("${t.id}")`],hE=t=>[`# Download model
491from huggingface_hub import snapshot_download
492
493snapshot_download(${t.id}, local_dir="checkpoints")
494
495from indextts.infer import IndexTTS
496
497# Ensure config.yaml is present in the checkpoints directory
498tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")
499
500voice = "path/to/your/reference_voice.wav"  # Path to the voice reference audio file
501text = "Hello, how are you?"
502output_path = "output_index.wav"
503
504tts.infer(voice, text, output_path)`],gE=t=>[`# CLI usage
505# see docs: https://ai-riksarkivet.github.io/htrflow/latest/getting_started/quick_start.html
506htrflow pipeline <path/to/pipeline.yaml> <path/to/image>`,`# Python usage
507from htrflow.pipeline.pipeline import Pipeline
508from htrflow.pipeline.steps import Task
509from htrflow.models.framework.model import ModelClass
510
511pipeline = Pipeline(
512    [
513        Task(
514            ModelClass, {"model": "${t.id}"}, {}
515        ),
516    ])`],yE=t=>[`# Available backend options are: "jax", "torch", "tensorflow".
517import os
518os.environ["KERAS_BACKEND"] = "jax"
519	
520import keras
521
522model = keras.saving.load_model("hf://${t.id}")
523`],bE=t=>`
524import keras_hub
525
526# Load CausalLM model (optional: use half precision for inference)
527causal_lm = keras_hub.models.CausalLM.from_preset("hf://${t}", dtype="bfloat16")
528causal_lm.compile(sampler="greedy")  # (optional) specify a sampler
529
530# Generate text
531causal_lm.generate("Keras: deep learning for", max_length=64)
532`,vE=t=>`
533import keras_hub
534
535# Load TextToImage model (optional: use half precision for inference)
536text_to_image = keras_hub.models.TextToImage.from_preset("hf://${t}", dtype="bfloat16")
537
538# Generate images with a TextToImage model.
539text_to_image.generate("Astronaut in a jungle")
540`,wE=t=>`
541import keras_hub
542
543# Load TextClassifier model
544text_classifier = keras_hub.models.TextClassifier.from_preset(
545    "hf://${t}",
546    num_classes=2,
547)
548# Fine-tune
549text_classifier.fit(x=["Thilling adventure!", "Total snoozefest."], y=[1, 0])
550# Classify text
551text_classifier.predict(["Not my cup of tea."])
552`,_E=t=>`
553import keras_hub
554import keras
555
556# Load ImageClassifier model
557image_classifier = keras_hub.models.ImageClassifier.from_preset(
558    "hf://${t}",
559    num_classes=2,
560)
561# Fine-tune
562image_classifier.fit(
563    x=keras.random.randint((32, 64, 64, 3), 0, 256),
564    y=keras.random.randint((32, 1), 0, 2),
565)
566# Classify image
567image_classifier.predict(keras.random.randint((1, 64, 64, 3), 0, 256))
568`,og={CausalLM:bE,TextToImage:vE,TextClassifier:wE,ImageClassifier:_E},xE=(t,a)=>`
569import keras_hub
570
571# Create a ${t} model
572task = keras_hub.models.${t}.from_preset("hf://${a}")
573`,SE=t=>`
574import keras_hub
575
576# Create a Backbone model unspecialized for any task
577backbone = keras_hub.models.Backbone.from_preset("hf://${t}")
578`,AE=t=>{const a=t.id,r=t.config?.keras_hub?.tasks??[],l=[];for(const[s,c]of Object.entries(og))r.includes(s)&&l.push(c(a));for(const s of r)Object.keys(og).includes(s)||l.push(xE(s,a));return l.push(SE(a)),l},kE=t=>[`# Example usage for KimiAudio
579# pip install git+https://github.com/MoonshotAI/Kimi-Audio.git
580
581from kimia_infer.api.kimia import KimiAudio
582
583model = KimiAudio(model_path="${t.id}", load_detokenizer=True)
584
585sampling_params = {
586    "audio_temperature": 0.8,
587    "audio_top_k": 10,
588    "text_temperature": 0.0,
589    "text_top_k": 5,
590}
591
592# For ASR
593asr_audio = "asr_example.wav"
594messages_asr = [
595    {"role": "user", "message_type": "text", "content": "Please transcribe the following audio:"},
596    {"role": "user", "message_type": "audio", "content": asr_audio}
597]
598_, text = model.generate(messages_asr, **sampling_params, output_type="text")
599print(text)
600
601# For Q&A
602qa_audio = "qa_example.wav"
603messages_conv = [{"role": "user", "message_type": "audio", "content": qa_audio}]
604wav, text = model.generate(messages_conv, **sampling_params, output_type="both")
605sf.write("output_audio.wav", wav.cpu().view(-1).numpy(), 24000)
606print(text)
607`],TE=t=>[`from kittentts import KittenTTS
608m = KittenTTS("${t.id}")
609
610audio = m.generate("This high quality TTS model works without a GPU")
611
612# Save the audio
613import soundfile as sf
614sf.write('output.wav', audio, 24000)`],EE=t=>t.tags.includes("bi-encoder")?[`#install from https://github.com/webis-de/lightning-ir
615
616from lightning_ir import BiEncoderModule
617model = BiEncoderModule("${t.id}")
618
619model.score("query", ["doc1", "doc2", "doc3"])`]:t.tags.includes("cross-encoder")?[`#install from https://github.com/webis-de/lightning-ir
620
621from lightning_ir import CrossEncoderModule
622model = CrossEncoderModule("${t.id}")
623
624model.score("query", ["doc1", "doc2", "doc3"])`]:[`#install from https://github.com/webis-de/lightning-ir
625
626from lightning_ir import BiEncoderModule, CrossEncoderModule
627
628# depending on the model type, use either BiEncoderModule or CrossEncoderModule
629model = BiEncoderModule("${t.id}") 
630# model = CrossEncoderModule("${t.id}")
631
632model.score("query", ["doc1", "doc2", "doc3"])`],CE=t=>{const a=[`# !pip install llama-cpp-python
633
634from llama_cpp import Llama
635
636llm = Llama.from_pretrained(
637	repo_id="${t.id}",
638	filename="{{GGUF_FILE}}",
639)
640`];if(t.tags.includes("conversational")){const r=TT(t);a.push(`llm.create_chat_completion(
641	messages = ${ET(r,{attributeKeyQuotes:!0,indent:"	"})}
642)`)}else a.push(`output = llm(
643	"Once upon a time,",
644	max_tokens=512,
645	echo=True
646)
647print(output)`);return a},RE=t=>{if(t.tags.includes("smolvla")){const a=[`# See https://github.com/huggingface/lerobot?tab=readme-ov-file#installation for more details
648git clone https://github.com/huggingface/lerobot.git
649cd lerobot
650pip install -e .[smolvla]`,`# Launch finetuning on your dataset
651python lerobot/scripts/train.py \\
652--policy.path=${t.id} \\
653--dataset.repo_id=lerobot/svla_so101_pickplace \\ 
654--batch_size=64 \\
655--steps=20000 \\
656--output_dir=outputs/train/my_smolvla \\
657--job_name=my_smolvla_training \\
658--policy.device=cuda \\
659--wandb.enable=true`];return t.id!=="lerobot/smolvla_base"&&a.push(`# Run the policy using the record function	
660python -m lerobot.record \\
661  --robot.type=so101_follower \\
662  --robot.port=/dev/ttyACM0 \\ # <- Use your port
663  --robot.id=my_blue_follower_arm \\ # <- Use your robot id
664  --robot.cameras="{ front: {type: opencv, index_or_path: 8, width: 640, height: 480, fps: 30}}" \\ # <- Use your cameras
665  --dataset.single_task="Grasp a lego block and put it in the bin." \\ # <- Use the same task description you used in your dataset recording
666  --dataset.repo_id=HF_USER/dataset_name \\  # <- This will be the dataset name on HF Hub
667  --dataset.episode_time_s=50 \\
668  --dataset.num_episodes=10 \\
669  --policy.path=${t.id}`),a}return[]},DE=t=>[`# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy)
670# See https://github.com/keras-team/tf-keras for more details.
671from huggingface_hub import from_pretrained_keras
672
673model = from_pretrained_keras("${t.id}")
674`],OE=t=>[`from mamba_ssm import MambaLMHeadModel
675
676model = MambaLMHeadModel.from_pretrained("${t.id}")`],ME=t=>
676[`# Install from https://github.com/Camb-ai/MARS5-TTS
677
678from inference import Mars5TTS
679mars5 = Mars5TTS.from_pretrained("${t.id}")`],UE=t=>[`# Install from https://github.com/pq-yang/MatAnyone.git
680
681from matanyone.model.matanyone import MatAnyone
682model = MatAnyone.from_pretrained("${t.id}")`,`
683from matanyone import InferenceCore
684processor = InferenceCore("${t.id}")`],NE=()=>[`# Install from https://github.com/buaacyw/MeshAnything.git
685
686from MeshAnything.models.meshanything import MeshAnything
687
688# refer to https://github.com/buaacyw/MeshAnything/blob/main/main.py#L91 on how to define args
689# and https://github.com/buaacyw/MeshAnything/blob/main/app.py regarding usage
690model = MeshAnything(args)`],IE=t=>[`import open_clip
691
692model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:${t.id}')
693tokenizer = open_clip.get_tokenizer('hf-hub:${t.id}')`],jE=t=>{if(t.config?.architectures?.[0]){const a=t.config.architectures[0];return[[`from paddlenlp.transformers import AutoTokenizer, ${a}`,"",`tokenizer = AutoTokenizer.from_pretrained("${t.id}", from_hf_hub=True)`,`model = ${a}.from_pretrained("${t.id}", from_hf_hub=True)`].join(`
694`)]}else return[["# ⚠️ Type of model unknown","from paddlenlp.transformers import AutoTokenizer, AutoModel","",`tokenizer = AutoTokenizer.from_pretrained("${t.id}", from_hf_hub=True)`,`model = AutoModel.from_pretrained("${t.id}", from_hf_hub=True)`].join(`
695`)]},LE=t=>{const a={textline_detection:{className:"TextDetection"},textline_recognition:{className:"TextRecognition"},seal_text_detection:{className:"SealTextDetection"},doc_img_unwarping:{className:"TextImageUnwarping"},doc_img_orientation_classification:{className:"DocImgOrientationClassification"},textline_orientation_classification:{className:"TextLineOrientationClassification"},chart_parsing:{className:"ChartParsing"},formula_recognition:{className:"FormulaRecognition"},layout_detection:{className:"LayoutDetection"},table_cells_detection:{className:"TableCellsDetection"},wired_table_classification:{className:"TableClassification"},table_structure_recognition:{className:"TableStructureRecognition"}};if(t.tags.includes("doc_vlm"))return[`# pip install paddleocr
696from paddleocr import DocVLM
697model = DocVLM(model_name="${Nn(t.id)}")
698output = model.predict(
699    input={"image": "path/to/image.png", "query": "Parsing this image and output the content in Markdown format."},
700    batch_size=1
701)
702for res in output:
703    res.print()
704    res.save_to_json(save_path="./output/res.json")`];for(const r of t.tags)if(r in a){const{className:l}=a[r];return[`# pip install paddleocr
705from paddleocr import ${l}
706model = ${l}(model_name="${Nn(t.id)}")
707output = model.predict(input="path/to/image.png", batch_size=1)
708for res in output:
709    res.print()
710    res.save_to_img(save_path="./output/")
711    res.save_to_json(save_path="./output/res.json")`]}return[`# Please refer to the document for information on how to use the model. 
712# https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/module_usage/module_overview.html`]},zE=t=>{const a=`# Use PE-Core models as CLIP models
713import core.vision_encoder.pe as pe
714
715model = pe.CLIP.from_config("${t.id}", pretrained=True)`,r=`# Use any PE model as a vision encoder
716import core.vision_encoder.pe as pe
717
718model = pe.VisionTransformer.from_config("${t.id}", pretrained=True)`;return t.id.includes("Core")?[a,r]:[r]},qE=t=>[`from huggingface_hub import snapshot_download
719from phantom_wan import WANI2V, configs
720
721checkpoint_dir = snapshot_download("${t.id}")
722wan_i2v = WanI2V(
723            config=configs.WAN_CONFIGS['i2v-14B'],
724            checkpoint_dir=checkpoint_dir,
725        )
726 video = wan_i2v.generate(text_prompt, image_prompt)`],BE=t=>[`from pyannote.audio import Pipeline
727  
728pipeline = Pipeline.from_pretrained("${t.id}")
729
730# inference on the whole file
731pipeline("file.wav")
732
733# inference on an excerpt
734from pyannote.core import Segment
735excerpt = Segment(start=2.0, end=5.0)
736
737from pyannote.audio import Audio
738waveform, sample_rate = Audio().crop("file.wav", excerpt)
739pipeline({"waveform": waveform, "sample_rate": sample_rate})`],HE=t=>[`from pyannote.audio import Model, Inference
740
741model = Model.from_pretrained("${t.id}")
742inference = Inference(model)
743
744# inference on the whole file
745inference("file.wav")
746
747# inference on an excerpt
748from pyannote.core import Segment
749excerpt = Segment(start=2.0, end=5.0)
750inference.crop("file.wav", excerpt)`],PE=t=>t.tags.includes("pyannote-audio-pipeline")?BE(t):HE(t),VE=t=>[`from relik import Relik
751 
752relik = Relik.from_pretrained("${t.id}")`],$E=t=>[`# Install from https://github.com/microsoft/renderformer
753
754from renderformer import RenderFormerRenderingPipeline
755pipeline = RenderFormerRenderingPipeline.from_pretrained("${t.id}")`],FE=t=>[`from tensorflow_tts.inference import AutoProcessor, TFAutoModel
756
757processor = AutoProcessor.from_pretrained("${t.id}")
758model = TFAutoModel.from_pretrained("${t.id}")
759`],XE=t=>[`from tensorflow_tts.inference import TFAutoModel
760
761model = TFAutoModel.from_pretrained("${t.id}")
762audios = model.inference(mels)
763`],YE=t=>[`from tensorflow_tts.inference import TFAutoModel
764
765model = TFAutoModel.from_pretrained("${t.id}")
766`],QE=t=>t.tags.includes("text-to-mel")?FE(t):t.tags.includes("mel-to-wav")?XE(t):YE(t),KE=t=>[`import timm
767
768model = timm.create_model("hf_hub:${t.id}", pretrained=True)`],ZE=()=>[`# pip install sae-lens
769from sae_lens import SAE
770
771sae, cfg_dict, sparsity = SAE.from_pretrained(
772    release = "RELEASE_ID", # e.g., "gpt2-small-res-jb". See other options in https://github.com/jbloomAus/SAELens/blob/main/sae_lens/pretrained_saes.yaml
773    sae_id = "SAE_ID", # e.g., "blocks.8.hook_resid_pre". Won't always be a hook point
774)`],JE=()=>[`# seed_story_cfg_path refers to 'https://github.com/TencentARC/SEED-Story/blob/master/configs/clm_models/agent_7b_sft.yaml'
775# llm_cfg_path refers to 'https://github.com/TencentARC/SEED-Story/blob/master/configs/clm_models/llama2chat7b_lora.yaml'
776from omegaconf import OmegaConf
777import hydra
778
779# load Llama2
780llm_cfg = OmegaConf.load(llm_cfg_path)
781llm = hydra.utils.instantiate(llm_cfg, torch_dtype="fp16")
782
783# initialize seed_story
784seed_story_cfg = OmegaConf.load(seed_story_cfg_path)
785seed_story = hydra.utils.instantiate(seed_story_cfg, llm=llm) `],GE=(t,a)=>[`import joblib
786from skops.hub_utils import download
787download("${t.id}", "path_to_folder")
788model = joblib.load(
789	"${a}"
790)
791# only load pickle files from sources you trust
792# read more about it here https://skops.readthedocs.io/en/stable/persistence.html`],WE=(t,a)=>[`from skops.hub_utils import download
793from skops.io import load
794download("${t.id}", "path_to_folder")
795# make sure model file is in skops format
796# if model is a pickle file, make sure it's from a source you trust
797model = load("path_to_folder/${a}")`],e2=t=>[`from huggingface_hub import hf_hub_download
798import joblib
799model = joblib.load(
800	hf_hub_download("${t.id}", "sklearn_model.joblib")
801)
802# only load pickle files from sources you trust
803# read more about it here https://skops.readthedocs.io/en/stable/persistence.html`],t2=t=>{if(t.tags.includes("skops")){const a=t.config?.sklearn?.model?.file,r=t.config?.sklearn?.model_format;return a?r==="pickle"?GE(t,a):WE(t,a):["# ⚠️ Model filename not specified in config.json"]}else return e2(t)},n2=t=>[`import torch
804import torchaudio
805from einops import rearrange
806from stable_audio_tools import get_pretrained_model
807from stable_audio_tools.inference.generation import generate_diffusion_cond
808
809device = "cuda" if torch.cuda.is_available() else "cpu"
810
811# Download model
812model, model_config = get_pretrained_model("${t.id}")
813sample_rate = model_config["sample_rate"]
814sample_size = model_config["sample_size"]
815
816model = model.to(device)
817
818# Set up text and timing conditioning
819conditioning = [{
820	"prompt": "128 BPM tech house drum loop",
821}]
822
823# Generate stereo audio
824output = generate_diffusion_cond(
825	model,
826	conditioning=conditioning,
827	sample_size=sample_size,
828	device=device
829)
830
831# Rearrange audio batch to a single sequence
832output = rearrange(output, "b d n -> d (b n)")
833
834# Peak normalize, clip, convert to int16, and save to file
835output = output.to(torch.float32).div(torch.max(torch.abs(output))).clamp(-1, 1).mul(32767).to(torch.int16).cpu()
836torchaudio.save("output.wav", output, sample_rate)`],a2=t=>[`from huggingface_hub import from_pretrained_fastai
837
838learn = from_pretrained_fastai("${t.id}")`],i2=t=>{const a=`# Use SAM2 with images
839import torch
840from sam2.sam2_image_predictor import SAM2ImagePredictor
841
842predictor = SAM2ImagePredictor.from_pretrained(${t.id})
843
844with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
845    predictor.set_image(<your_image>)
846    masks, _, _ = predictor.predict(<input_prompts>)`,r=`# Use SAM2 with videos
847import torch
848from sam2.sam2_video_predictor import SAM2VideoPredictor
849	
850predictor = SAM2VideoPredictor.from_pretrained(${t.id})
851
852with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
853    state = predictor.init_state(<your_video>)
854
855    # add new prompts and instantly get the output on the same frame
856    frame_idx, object_ids, masks = predictor.add_new_points(state, <your_prompts>):
857
858    # propagate the prompts to get masklets throughout the video
859    for frame_idx, object_ids, masks in predictor.propagate_in_video(state):
860        ...`;return[a,r]},r2=t=>[`python -m sample_factory.huggingface.load_from_hub -r ${t.id} -d ./train_dir`];function o2(t){const a=t.widgetData?.[0];if(a?.source_sentence&&a?.sentences?.length)return[a.source_sentence,...a.sentences]}const l2=t=>{const a=t.tags.includes(ey)?", trust_remote_code=True":"";if(t.tags.includes("cross-encoder")||t.pipeline_tag=="text-ranking")return[`from sentence_transformers import CrossEncoder
861
862model = CrossEncoder("${t.id}"${a})
863
864query = "Which planet is known as the Red Planet?"
865passages = [
866	"Venus is often called Earth's twin because of its similar size and proximity.",
867	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
868	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
869	"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
870]
871
872scores = model.predict([(query, passage) for passage in passages])
873print(scores)`];const r=o2(t)??["The weather is lovely today.","It's so sunny outside!","He drove to the stadium."];return[`from sentence_transformers import SentenceTransformer
874
875model = SentenceTransformer("${t.id}"${a})
876
877sentences = ${JSON.stringify(r,null,4)}
878embeddings = model.encode(sentences)
879
880similarities = model.similarity(embeddings, embeddings)
881print(similarities.shape)
882# [${r.length}, ${r.length}]`]},s2=t=>[`from setfit import SetFitModel
883
884model = SetFitModel.from_pretrained("${t.id}")`],u2=t=>[`!pip install https://huggingface.co/${t.id}/resolve/main/${Nn(t.id)}-any-py3-none-any.whl
885
886# Using spacy.load().
887import spacy
888nlp = spacy.load("${Nn(t.id)}")
889
890# Importing as module.
891import ${Nn(t.id)}
892nlp = ${Nn(t.id)}.load()`],c2=t=>[`from span_marker import SpanMarkerModel
893
894model = SpanMarkerModel.from_pretrained("${t.id}")`],f2=t=>[`import stanza
895
896stanza.download("${Nn(t.id).replace("stanza-","")}")
897nlp = stanza.Pipeline("${Nn(t.id).replace("stanza-","")}")`],p2=t=>{switch(t){case"EncoderClassifier":return"classify_file";case"EncoderDecoderASR":case"EncoderASR":return"transcribe_file";case"SpectralMaskEnhancement":return"enhance_file";case"SepformerSeparation":return"separate_file";default:return}},d2=t=>{const a=t.config?.speechbrain?.speechbrain_interface;if(a===void 0)return["# interface not specified in config.json"];const r=p2(a);
897return r===void 0?["# interface in config.json invalid"]:[`from speechbrain.pretrained import ${a}
898model = ${a}.from_hparams(
899  "${t.id}"
900)
901model.${r}("file.wav")`]},m2=t=>[`from terratorch.registry import BACKBONE_REGISTRY
902
903model = BACKBONE_REGISTRY.build("${t.id}")`],h2=t=>t.config?.tokenizer_config?.chat_template!==void 0||t.config?.processor_config?.chat_template!==void 0||t.config?.chat_template_jinja!==void 0,iy=t=>{const a=t.transformersInfo;if(!a)return["# ⚠️ Type of model unknown"];const r=t.tags.includes(ey)?", trust_remote_code=True":"",l=[];if(a.processor){const s=a.processor==="AutoTokenizer"?"tokenizer":a.processor==="AutoFeatureExtractor"?"extractor":"processor";l.push("# Load model directly",`from transformers import ${a.processor}, ${a.auto_model}`,"",`${s} = ${a.processor}.from_pretrained("${t.id}"`+r+")",`model = ${a.auto_model}.from_pretrained("${t.id}"`+r+")"),t.tags.includes("conversational")&&h2(t)&&(t.tags.includes("image-text-to-text")?l.push("messages = [",["    {",'        "role": "user",','        "content": [','            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},','            {"type": "text", "text": "What animal is on the candy?"}',"        ]","    },"].join(`
904`),"]"):l.push("messages = [",'    {"role": "user", "content": "Who are you?"},',"]"),l.push(`inputs = ${s}.apply_chat_template(`,"	messages,","	add_generation_prompt=True,","	tokenize=True,","	return_dict=True,",'	return_tensors="pt",',").to(model.device)","","outputs = model.generate(**inputs, max_new_tokens=40)",`print(${s}.decode(outputs[0][inputs["input_ids"].shape[-1]:]))`))}else l.push("# Load model directly",`from transformers import ${a.auto_model}`,`model = ${a.auto_model}.from_pretrained("${t.id}"`+r+', torch_dtype="auto")');if(t.pipeline_tag&&sk.transformers?.includes(t.pipeline_tag)){const s=["# Use a pipeline as a high-level helper","from transformers import pipeline","",`pipe = pipeline("${t.pipeline_tag}", model="${t.id}"`+r+")"];return t.tags.includes("conversational")?t.tags.includes("image-text-to-text")?(s.push("messages = [",["    {",'        "role": "user",','        "content": [','            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},','            {"type": "text", "text": "What animal is on the candy?"}',"        ]","    },"].join(`
905`),"]"),s.push("pipe(text=messages)")):(s.push("messages = [",'    {"role": "user", "content": "Who are you?"},',"]"),s.push("pipe(messages)")):t.pipeline_tag==="zero-shot-image-classification"?s.push("pipe(",'    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",','    candidate_labels=["animals", "humans", "landscape"],',")"):t.pipeline_tag==="image-classification"&&s.push('pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")'),[s.join(`
906`),l.join(`
907`)]}return[l.join(`
908`)]},g2=t=>{if(!t.pipeline_tag)return["// ⚠️ Unknown pipeline tag"];const a="@huggingface/transformers";return[`// npm i ${a}
909import { pipeline } from '${a}';
910
911// Allocate pipeline
912const pipe = await pipeline('${t.pipeline_tag}', '${t.id}');`]},y2=t=>{switch(t){case"CAUSAL_LM":return"CausalLM";case"SEQ_2_SEQ_LM":return"Seq2SeqLM";case"TOKEN_CLS":return"TokenClassification";case"SEQ_CLS":return"SequenceClassification";default:return}},b2=t=>{const{base_model_name_or_path:a,task_type:r}=t.config?.peft??{},l=y2(r);return l?a?[`from peft import PeftModel
913from transformers import AutoModelFor${l}
914
915base_model = AutoModelFor${l}.from_pretrained("${a}")
916model = PeftModel.from_pretrained(base_model, "${t.id}")`]:["Base model is not found."]:["Task type is invalid."]},v2=t=>[`from huggingface_hub import hf_hub_download
917import fasttext
918
919model = fasttext.load_model(hf_hub_download("${t.id}", "model.bin"))`],w2=t=>[`from huggingface_sb3 import load_from_hub
920checkpoint = load_from_hub(
921	repo_id="${t.id}",
922	filename="{MODEL FILENAME}.zip",
923)`],_2=(t,a)=>{switch(t){case"ASR":return[`import nemo.collections.asr as nemo_asr
924asr_model = nemo_asr.models.ASRModel.from_pretrained("${a.id}")
925
926transcriptions = asr_model.transcribe(["file.wav"])`];default:return}},x2=t=>[`mlagents-load-from-hf --repo-id="${t.id}" --local-dir="./download: string[]s"`],S2=()=>[`string modelName = "[Your model name here].sentis";
927Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName);
928IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model);
929// Please see provided C# file for more details
930`],A2=t=>[`
931# Load the model and infer image from text
932import torch
933from app.sana_pipeline import SanaPipeline
934from torchvision.utils import save_image
935
936sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml")
937sana.from_pretrained("hf://${t.id}")
938
939image = sana(
940    prompt='a cyberpunk cat with a neon sign that says "Sana"',
941    height=1024,
942    width=1024,
943    guidance_scale=5.0,
944    pag_guidance_scale=2.0,
945    num_inference_steps=18,
946) `],k2=t=>[`# Install from https://github.com/google-deepmind/videoprism
947import jax
948from videoprism import models as vp
949
950flax_model = vp.get_model("${t.id}")
951loaded_state = vp.load_pretrained_weights("${t.id}")
952
953@jax.jit
954def forward_fn(inputs, train=False):
955  return flax_model.apply(loaded_state, inputs, train=train)`],T2=t=>[`from Trainer_finetune import Model
956
957model = Model.from_pretrained("${t.id}")`],E2=t=>[`from huggingface_hub import hf_hub_download
958	 from inference_onnx import LVFaceONNXInferencer
959
960model_path = hf_hub_download("${t.id}", "LVFace-L_Glint360K/LVFace-L_Glint360K.onnx")
961inferencer = LVFaceONNXInferencer(model_path, use_gpu=True, timeout=300)
962img_path = 'path/to/image1.jpg'
963embedding = inferencer.infer_from_image(img_path)`],C2=t=>[`from voicecraft import VoiceCraft
964
965model = VoiceCraft.from_pretrained("${t.id}")`],R2=()=>[`# !pip install git+https://github.com/fluxions-ai/vui
966
967import torchaudio
968
969from vui.inference import render
970from vui.model import Vui,
971
972model = Vui.from_pretrained().cuda()
973waveform = render(
974    model,
975    "Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!",
976)
977print(waveform.shape)
978torchaudio.save("out.opus", waveform[0], 22050)
979`],D2=()=>[`import ChatTTS
980import torchaudio
981
982chat = ChatTTS.Chat()
983chat.load_models(compile=False) # Set to True for better performance
984
985texts = ["PUT YOUR TEXT HERE",]
986
987wavs = chat.infer(texts, )
988
989torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)`],lg=t=>{const a=t.tags.find(s=>s.match(/^yolov\d+$/)),r=a?`YOLOv${a.slice(4)}`:"YOLOvXX";return[(a?"":`# Couldn't find a valid YOLO version tag.
990# Replace XX with the correct version.
991`)+`from ultralytics import ${r}
992
993model = ${r}.from_pretrained("${t.id}")
994source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
995model.predict(source=source, save=True)`]},O2=t=>[`# Option 1: use with transformers
996
997from transformers import AutoModelForImageSegmentation
998birefnet = AutoModelForImageSegmentation.from_pretrained("${t.id}", trust_remote_code=True)
999`,`# Option 2: use with BiRefNet
1000
1001# Install from https://github.com/ZhengPeng7/BiRefNet
1002
1003from models.birefnet import BiRefNet
1004model = BiRefNet.from_pretrained("${t.id}")`],M2=t=>[`from swarmformer import SwarmFormerModel
1005
1006model = SwarmFormerModel.from_pretrained("${t.id}")
1007`],U2=t=>[`# Follow installation instructions at https://github.com/PKU-YuanGroup/UniWorld-V1
1008
1009from univa.models.qwen2p5vl.modeling_univa_qwen2p5vl import UnivaQwen2p5VLForConditionalGeneration
1010	model = UnivaQwen2p5VLForConditionalGeneration.from_pretrained(
1011        "${t.id}",
1012        torch_dtype=torch.bfloat16,
1013        attn_implementation="flash_attention_2",
1014    ).to("cuda")
1015	processor = AutoProcessor.from_pretrained("${t.id}")
1016`],N2=t=>[`# Download the model from the Hub
1017pip install huggingface_hub[hf_xet]
1018
1019huggingface-cli download --local-dir ${Nn(t.id)} ${t.id}`],I2=t=>[`# Make sure mlx-lm is installed
1020# pip install --upgrade mlx-lm
1021# if on a CUDA device, also pip install mlx[cuda]
1022
1023# Generate text with mlx-lm
1024from mlx_lm import load, generate
1025
1026model, tokenizer = load("${t.id}")
1027
1028prompt = "Once upon a time in"
1029text = generate(model, tokenizer, prompt=prompt, verbose=True)`],j2=t=>[`# Make sure mlx-lm is installed
1030# pip install --upgrade mlx-lm
1031
1032# Generate text with mlx-lm
1033from mlx_lm import load, generate
1034
1035model, tokenizer = load("${t.id}")
1036
1037prompt = "Write a story about Einstein"
1038messages = [{"role": "user", "content": prompt}]
1039prompt = tokenizer.apply_chat_template(
1040    messages, add_generation_prompt=True
1041)
1042
1043text = generate(model, tokenizer, prompt=prompt, verbose=True)`],L2=t=>[`# Make sure mlx-vlm is installed
1044# pip install --upgrade mlx-vlm
1045
1046from mlx_vlm import load, generate
1047from mlx_vlm.prompt_utils import apply_chat_template
1048from mlx_vlm.utils import load_config
1049
1050# Load the model
1051model, processor = load("${t.id}")
1052config = load_config("${t.id}")
1053
1054# Prepare input
1055image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
1056prompt = "Describe this image."
1057
1058# Apply chat template
1059formatted_prompt = apply_chat_template(
1060    processor, config, prompt, num_images=1
1061)
1062
1063# Generate output
1064output = generate(model, processor, formatted_prompt, image)
1065print(output)`],z2=t=>
1065[`from mlxim.model import create_model
1066
1067model = create_model(${t.id})`],q2=t=>t.pipeline_tag==="image-text-to-text"?L2(t):t.pipeline_tag==="text-generation"?t.tags.includes("conversational")?j2(t):I2(t):N2(t),B2=t=>[`from model2vec import StaticModel
1068
1069model = StaticModel.from_pretrained("${t.id}")`],H2=t=>{let a;t.tags.includes("diffusers")?a=P2(t):t.tags.includes("transformers")?a=V2(t):a=$2(t);const r=l=>/^from pruna import PrunaModel/m.test(l)?l:`from pruna import PrunaModel
1070${l}`;return a=a.map(r),t.tags.includes("pruna_pro-ai")?a.map(l=>l.replace(/\bpruna\b/g,"pruna_pro").replace(/\bPrunaModel\b/g,"PrunaProModel")):a},P2=t=>ay(t).map(r=>r.replace(/\b\w*Pipeline\w*\b/g,"PrunaModel").replace(/from diffusers import ([^,\n]*PrunaModel[^,\n]*)/g,"").replace(/from diffusers import ([^,\n]+),?\s*([^,\n]*PrunaModel[^,\n]*)/g,"from diffusers import $1").replace(/from diffusers import\s*(\n|$)/g,"").replace(/from diffusers import PrunaModel/g,"from pruna import PrunaModel").replace(/from diffusers import ([^,\n]+), PrunaModel/g,"from diffusers import $1").replace(/from diffusers import PrunaModel, ([^,\n]+)/g,"from diffusers import $1").replace(/\n\n+/g,`
1071`).trim()),V2=t=>{const a=t.transformersInfo;let l=iy(t).map(s=>s.replace(/from transformers import pipeline/g,"from pruna import PrunaModel").replace(/pipeline\([^)]*\)/g,`PrunaModel.from_pretrained("${t.id}")`));return a?.auto_model&&(l=l.map(s=>s.replace(new RegExp(`from transformers import ${a.auto_model}
1072?`,"g"),"").replace(new RegExp(`${a.auto_model}.from_pretrained`,"g"),"PrunaModel.from_pretrained").replace(new RegExp(`^.*from.*import.*(, *${a.auto_model})+.*$`,"gm"),c=>c.replace(new RegExp(`, *${a.auto_model}`,"g"),"")))),l},$2=t=>[`from pruna import PrunaModel
1073model = PrunaModel.from_pretrained("${t.id}")
1074`],F2=t=>{let a;return t.tags.includes("automatic-speech-recognition")&&(a=_2("ASR",t)),a??["# tag did not correspond to a valid NeMo domain."]},X2=t=>{const a=t.tags??[];return a.includes("gguf")||a.includes("onnx")?[]:[`
1075  import outetts
1076  
1077  enum = outetts.Models("${t.id}".split("/", 1)[1])       # VERSION_1_0_SIZE_1B
1078  cfg  = outetts.ModelConfig.auto_config(enum, outetts.Backend.HF)
1079  tts  = outetts.Interface(cfg)
1080  
1081  speaker = tts.load_default_speaker("EN-FEMALE-1-NEUTRAL")
1082  tts.generate(
1083	  outetts.GenerationConfig(
1084		  text="Hello there, how are you doing?",
1085		  speaker=speaker,
1086	  )
1087  ).save("output.wav")
1088  `]},Y2=t=>[`from pxia import AutoModel
1089
1090model = AutoModel.from_pretrained("${t.id}")`],Q2=t=>[`from pythae.models import AutoModel
1091
1092model = AutoModel.load_from_hf_hub("${t.id}")`],K2=t=>[`from audiocraft.models import MusicGen
1093
1094model = MusicGen.get_pretrained("${t.id}")
1095
1096descriptions = ['happy rock', 'energetic EDM', 'sad jazz']
1097wav = model.generate(descriptions)  # generates 3 samples.`],Z2=t=>[`from audiocraft.models import MAGNeT
1098	
1099model = MAGNeT.get_pretrained("${t.id}")
1100
1101descriptions = ['disco beat', 'energetic EDM', 'funky groove']
1102wav = model.generate(descriptions)  # generates 3 samples.`],J2=t=>[`from audiocraft.models import AudioGen
1103	
1104model = AudioGen.get_pretrained("${t.id}")
1105model.set_generation_params(duration=5)  # generate 5 seconds.
1106descriptions = ['dog barking', 'sirene of an emergency vehicle', 'footsteps in a corridor']
1107wav = model.generate(descriptions)  # generates 3 samples.`],G2=t=>[`from anemoi.inference.runners.default import DefaultRunner
1108from anemoi.inference.config.run import RunConfiguration
1109# Create Configuration
1110config = RunConfiguration(checkpoint = {"huggingface":"${t.id}"})
1111# Load Runner
1112runner = DefaultRunner(config)`],W2=t=>t.tags.includes("musicgen")?K2(t):t.tags.includes("audiogen")?J2(t):t.tags.includes("magnet")?Z2(t):["# Type of model unknown."],eC=()=>[`# Install CLI with Homebrew on macOS device
1113brew install whisperkit-cli
1114
1115# View all available inference options
1116whisperkit-cli transcribe --help
1117	
1118# Download and run inference using whisper base model
1119whisperkit-cli transcribe --audio-path /path/to/audio.mp3
1120
1121# Or use your preferred model variant
1122whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose`],tC=t=>[`from threedtopia_xl.models import threedtopia_xl
1123
1124model = threedtopia_xl.from_pretrained("${t.id}")
1125model.generate(cond="path/to/image.png")`],nC=t=>[`# pip install git+https://github.com/Zyphra/Zonos.git
1126import torchaudio
1127from zonos.model import Zonos
1128from zonos.conditioning import make_cond_dict
1129
1130model = Zonos.from_pretrained("${t.id}", device="cuda")
1131
1132wav, sr = torchaudio.load("speaker.wav")           # 5-10s reference clip
1133speaker = model.make_speaker_embedding(wav, sr)
1134
1135cond  = make_cond_dict(text="Hello, world!", speaker=speaker, language="en-us")
1136codes = model.generate(model.prepare_conditioning(cond))
1137
1138audio = model.autoencoder.decode(codes)[0].cpu()
1139torchaudio.save("sample.wav", audio, model.autoencoder.sampling_rate)
1140`],aC={acestep:{prettyLabel:"ACE-Step",repoName:"ACE-Step",repoUrl:"https://github.com/ace-step/ACE-Step",filter:!1,countDownloads:'path:"ace_step_transformer/config.json"'},"adapter-transformers":{prettyLabel:"Adapters",repoName:"adapters",repoUrl:"https://github.com/Adapter-Hub/adapters",docsUrl:"https://huggingface.co/docs/hub/adapters",snippets:RT,filter:!0,countDownloads:'path:"adapter_config.json"'},allennlp:{prettyLabel:"AllenNLP",repoName:"AllenNLP",repoUrl:"https://github.com/allenai/allennlp",docsUrl:"https://huggingface.co/docs/hub/allennlp",snippets:MT,filter:!0},anemoi:{prettyLabel:"AnemoI",repoName:"AnemoI",repoUrl:"https://github.com/ecmwf/anemoi-inference",docsUrl:"https://anemoi.readthedocs.io/en/latest/",filter:!1,countDownloads:'path_extension:"ckpt"',snippets:G2},araclip:{prettyLabel:"AraClip",repoName:"AraClip",repoUrl:"https://huggingface.co/Arabic-Clip/araclip",filter:!1,snippets:UT},asteroid:{prettyLabel:"Asteroid",repoName:"Asteroid",repoUrl:"https://github.com/asteroid-team/asteroid",docsUrl:"https://huggingface.co/docs/hub/asteroid",snippets:NT,filter:!0,countDownloads:'path:"pytorch_model.bin"'},audiocraft:{prettyLabel:"Audiocraft",repoName:"audiocraft",repoUrl:"https://github.com/facebookresearch/audiocraft",snippets:W2,filter:!1,countDownloads:'path:"state_dict.bin"'},audioseal:{prettyLabel:"AudioSeal",repoName:"audioseal",repoUrl:"https://github.com/facebookresearch/audioseal",filter:!1,countDownloads:'path_extension:"pth"',snippets:IT},"bagel-mot":{prettyLabel:"Bagel",repoName:"Bagel",repoUrl:"https://github.com/ByteDance-Seed/Bagel/",filter:!1,countDownloads:'path:"llm_config.json"'},bboxmaskpose:{prettyLabel:"BBoxMaskPose",repoName:"BBoxMaskPose",repoUrl:"https://github.com/MiraPurkrabek/BBoxMaskPose",filter:!1,countDownloads:'path_extension:"pth"'},ben2:{prettyLabel:"BEN2",repoName:"BEN2",repoUrl:"https://github.com/PramaLLC/BEN2",snippets:jT,filter:!1},bertopic:{prettyLabel:"BERTopic",repoName:"BERTopic",repoUrl:"https://github.com/MaartenGr/BERTopic",snippets:LT,filter:!0},big_vision:{prettyLabel:"Big Vision",repoName:"big_vision",repoUrl:"https://github.com/google-research/big_vision",filter:!1,countDownloads:'path_extension:"npz"'},birder:{prettyLabel:"Birder",repoName:"Birder",repoUrl:"https://gitlab.com/birder/birder",filter:!1,countDownloads:'path_extension:"pt"'},birefnet:{prettyLabel:"BiRefNet",repoName:"BiRefNet",repoUrl:"https://github.com/ZhengPeng7/BiRefNet",snippets:O2,filter:!1},bm25s:{prettyLabel:"BM25S",repoName:"bm25s",repoUrl:"https://github.com/xhluca/bm25s",snippets:zT,filter:!1,countDownloads:'path:"params.index.json"'},champ:{prettyLabel:"Champ",repoName:"Champ",repoUrl:"https://github.com/fudan-generative-vision/champ",countDownloads:'path:"champ/motion_module.pth"'},chatterbox:{prettyLabel:"Chatterbox",repoName:"Chatterbox",repoUrl:"https://github.com/resemble-ai/chatterbox",snippets:qT,countDownloads:'path:"tokenizer.json"',filter:!1},chat_tts:{prettyLabel:"ChatTTS",repoName:"ChatTTS",repoUrl:"https://github.com/2noise/ChatTTS.git",snippets:D2,filter:!1,countDownloads:'path:"asset/GPT.pt"'},colpali:{prettyLabel:"ColPali",repoName:"ColPali",repoUrl:"https://github.com/ManuelFay/colpali",filter:!1,countDownloads:'path:"adapter_config.json"'},comet:{prettyLabel:"COMET",repoName:"COMET",repoUrl:"https://github.com/Unbabel/COMET/",countDownloads:'path:"hparams.yaml"'},contexttab:{prettyLabel:"ConTextTab",repoName:"ConTextTab",repoUrl:"https://github.com/SAP-samples/contexttab",countDownloads:'path_extension:"pt"',snippets:BT},cosmos:{prettyLabel:"Cosmos",repoName:"Cosmos",repoUrl:"https://github.com/NVIDIA/Cosmos",countDownloads:'path:"config.json" OR path_extension:"pt"'},"cxr-foundation":{prettyLabel:"CXR Foundation",repoName:"cxr-foundation",repoUrl:"https://github.com/google-health/cxr-foundation",snippets:HT,filter:!1,countDownloads:'path:"precomputed_embeddings/embeddings.npz" OR path:"pax-elixr-b-text/saved_model.pb"'},deepforest:{prettyLabel:"DeepForest",repoName:"deepforest",docsUrl:"https://deepforest.readthedocs.io/en/latest/",repoUrl:"https://github.com/weecology/DeepForest"},"depth-anything-v2":{prettyLabel:"DepthAnythingV2",repoName:"Depth Anything V2",repoUrl:"https://github.com/DepthAnything/Depth-Anything-V2",snippets:PT,filter:!1,countDownloads:'path_extension:"pth"'},"depth-pro":{prettyLabel:"Depth Pro",repoName:"Depth Pro",repoUrl:"https://github.com/apple/ml-depth-pro",countDownloads:'path_extension:"pt"',snippets:VT,filter:!1},"derm-foundation":{prettyLabel:"Derm Foundation",repoName:"derm-foundation",repoUrl:"https://github.com/google-health/derm-foundation",snippets:$T,filter:!1,countDownloads:'path:"scin_dataset_precomputed_embeddings.npz" OR path:"saved_model.pb"'},"describe-anything":{prettyLabel:"Describe Anything",repoName:"Describe Anything",repoUrl:"https://github.com/NVlabs/describe-anything",snippets:XT,filter:!1},"dia-tts":{prettyLabel:"Dia",repoName:"Dia",repoUrl:"https://github.com/nari-labs/dia",snippets:FT,filter:!1},diffree:{prettyLabel:"Diffree",repoName:"Diffree",repoUrl:"https://github.com/OpenGVLab/Diffree",filter:!1,countDownloads:'path:"diffree-step=000010999.ckpt"'},diffusers:{prettyLabel:"Diffusers",repoName:"🤗/diffusers",repoUrl:"https://github.com/huggingface/diffusers",docsUrl:"https://huggingface.co/docs/hub/diffusers",snippets:ay,filter:!0},diffusionkit:{prettyLabel:"DiffusionKit",repoName:"DiffusionKit",repoUrl:"https://github.com/argmaxinc/DiffusionKit",snippets:iE},doctr:{prettyLabel:"docTR",repoName:"doctr",repoUrl:"https://github.com/mindee/doctr"},cartesia_pytorch:{prettyLabel:"Cartesia Pytorch",repoName:"Cartesia Pytorch",repoUrl:"https://github.com/cartesia-ai/cartesia_pytorch",snippets:rE},cartesia_mlx:{prettyLabel:"Cartesia MLX",repoName:"Cartesia MLX",repoUrl:"https://github.com/cartesia-ai/cartesia_mlx",snippets:oE},clipscope:{prettyLabel:"clipscope",repoName:"clipscope",repoUrl:"https://github.com/Lewington-pitsos/clipscope",filter:!1,countDownloads:'path_extension:"pt"'}
1140,cosyvoice:{prettyLabel:"CosyVoice",repoName:"CosyVoice",repoUrl:"https://github.com/FunAudioLLM/CosyVoice",filter:!1,countDownloads:'path_extension:"onnx" OR path_extension:"pt"'},cotracker:{prettyLabel:"CoTracker",repoName:"CoTracker",repoUrl:"https://github.com/facebookresearch/co-tracker",filter:!1,countDownloads:'path_extension:"pth"'},edsnlp:{prettyLabel:"EDS-NLP",repoName:"edsnlp",repoUrl:"https://github.com/aphp/edsnlp",docsUrl:"https://aphp.github.io/edsnlp/latest/",filter:!1,snippets:lE,countDownloads:'path_filename:"config" AND path_extension:"cfg"'},elm:{prettyLabel:"ELM",repoName:"elm",repoUrl:"https://github.com/slicex-ai/elm",filter:!1,countDownloads:'path_filename:"slicex_elm_config" AND path_extension:"json"'},espnet:{prettyLabel:"ESPnet",repoName:"ESPnet",repoUrl:"https://github.com/espnet/espnet",docsUrl:"https://huggingface.co/docs/hub/espnet",snippets:fE,filter:!0},fairseq:{prettyLabel:"Fairseq",repoName:"fairseq",repoUrl:"https://github.com/pytorch/fairseq",snippets:pE,filter:!0},fastai:{prettyLabel:"fastai",repoName:"fastai",repoUrl:"https://github.com/fastai/fastai",docsUrl:"https://huggingface.co/docs/hub/fastai",snippets:a2,filter:!0},fasttext:{prettyLabel:"fastText",repoName:"fastText",repoUrl:"https://fasttext.cc/",snippets:v2,filter:!0,countDownloads:'path_extension:"bin"'},flair:{prettyLabel:"Flair",repoName:"Flair",repoUrl:"https://github.com/flairNLP/flair",docsUrl:"https://huggingface.co/docs/hub/flair",snippets:dE,filter:!0,countDownloads:'path:"pytorch_model.bin"'},fme:{prettyLabel:"Full Model Emulation",repoName:"Full Model Emulation",repoUrl:"https://github.com/ai2cm/ace",docsUrl:"https://ai2-climate-emulator.readthedocs.io/en/latest/",filter:!1,countDownloads:'path_extension:"tar"'},"gemma.cpp":{prettyLabel:"gemma.cpp",repoName:"gemma.cpp",repoUrl:"https://github.com/google/gemma.cpp",filter:!1,countDownloads:'path_extension:"sbs"'},"geometry-crafter":{prettyLabel:"GeometryCrafter",repoName:"GeometryCrafter",repoUrl:"https://github.com/TencentARC/GeometryCrafter",countDownloads:'path:"point_map_vae/diffusion_pytorch_model.safetensors"'},gliner:{prettyLabel:"GLiNER",repoName:"GLiNER",repoUrl:"https://github.com/urchade/GLiNER",snippets:mE,filter:!1,countDownloads:'path:"gliner_config.json"'},"glyph-byt5":{prettyLabel:"Glyph-ByT5",repoName:"Glyph-ByT5",repoUrl:"https://github.com/AIGText/Glyph-ByT5",filter:!1,countDownloads:'path:"checkpoints/byt5_model.pt"'},grok:{prettyLabel:"Grok",repoName:"Grok",repoUrl:"https://github.com/xai-org/grok-1",filter:!1,countDownloads:'path:"ckpt/tensor00000_000" OR path:"ckpt-0/tensor00000_000"'},hallo:{prettyLabel:"Hallo",repoName:"Hallo",repoUrl:"https://github.com/fudan-generative-vision/hallo",countDownloads:'path:"hallo/net.pth"'},hermes:{prettyLabel:"HERMES",repoName:"HERMES",repoUrl:"https://github.com/LMD0311/HERMES",filter:!1,countDownloads:'path:"ckpt/hermes_final.pth"'},hezar:{prettyLabel:"Hezar",repoName:"Hezar",repoUrl:"https://github.com/hezarai/hezar",docsUrl:"https://hezarai.github.io/hezar",countDownloads:'path:"model_config.yaml" OR path:"embedding/embedding_config.yaml"'},htrflow:{prettyLabel:"HTRflow",repoName:"HTRflow",repoUrl:"https://github.com/AI-Riksarkivet/htrflow",docsUrl:"https://ai-riksarkivet.github.io/htrflow",snippets:gE},"hunyuan-dit":{prettyLabel:"HunyuanDiT",repoName:"HunyuanDiT",repoUrl:"https://github.com/Tencent/HunyuanDiT",countDownloads:'path:"pytorch_model_ema.pt" OR path:"pytorch_model_distill.pt"'},"hunyuan3d-2":{prettyLabel:"Hunyuan3D-2",repoName:"Hunyuan3D-2",repoUrl:"https://github.com/Tencent/Hunyuan3D-2",countDownloads:'path_filename:"model_index" OR path_filename:"config"'},"hunyuanworld-voyager":{prettyLabel:"HunyuanWorld-voyager",repoName:"HunyuanWorld-voyager",repoUrl:"https://github.com/Tencent-Hunyuan/HunyuanWorld-Voyager"},imstoucan:{prettyLabel:"IMS Toucan",repoName:"IMS-Toucan",repoUrl:"https://github.com/DigitalPhonetics/IMS-Toucan",countDownloads:'path:"embedding_gan.pt" OR path:"Vocoder.pt" OR path:"ToucanTTS.pt"'},"index-tts":{prettyLabel:"IndexTTS",repoName:"IndexTTS",repoUrl:"https://github.com/index-tts/index-tts",snippets:hE,filter:!1},infinitetalk:{prettyLabel:"InfiniteTalk",repoName:"InfiniteTalk",repoUrl:"https://github.com/MeiGen-AI/InfiniteTalk",filter:!1,countDownloads:'path_extension:"safetensors"'},"infinite-you":{prettyLabel:"InfiniteYou",repoName:"InfiniteYou",repoUrl:"https://github.com/bytedance/InfiniteYou",filter:!1,countDownloads:'path:"infu_flux_v1.0/sim_stage1/image_proj_model.bin" OR path:"infu_flux_v1.0/aes_stage2/image_proj_model.bin"'},keras:{prettyLabel:"Keras",repoName:"Keras",repoUrl:"https://github.com/keras-team/keras",docsUrl:"https://huggingface.co/docs/hub/keras",snippets:yE,filter:!0,countDownloads:'path:"config.json" OR path_extension:"keras"'},"tf-keras":{prettyLabel:"TF-Keras",repoName:"TF-Keras",repoUrl:"https://github.com/keras-team/tf-keras",docsUrl:"https://huggingface.co/docs/hub/tf-keras",snippets:DE,countDownloads:'path:"saved_model.pb"'},"keras-hub":{prettyLabel:"KerasHub",repoName:"KerasHub",repoUrl:"https://github.com/keras-team/keras-hub",docsUrl:"https://keras.io/keras_hub/",snippets:AE,filter:!0},"kimi-audio":{prettyLabel:"KimiAudio",repoName:"KimiAudio",repoUrl:"https://github.com/MoonshotAI/Kimi-Audio",snippets:kE,filter:!1},kittentts:{prettyLabel:"KittenTTS",repoName:"KittenTTS",repoUrl:"https://github.com/KittenML/KittenTTS",snippets:TE},kronos:{prettyLabel:"KRONOS",repoName:"KRONOS",repoUrl:"https://github.com/mahmoodlab/KRONOS",filter:!1,countDownloads:'path_extension:"pt"'},k2:{prettyLabel:"K2",repoName:"k2",repoUrl:"https://github.com/k2-fsa/k2"},"lightning-ir":{prettyLabel:"Lightning IR",repoName:"Lightning IR",repoUrl:"https://github.com/webis-de/lightning-ir",snippets:EE},"litert-lm":{prettyLabel:"LiteRT-LM",repoName:"LiteRT-LM",repoUrl:"https://github.com/google-ai-edge/LiteRT-LM",filter:!1,countDownloads:'path_extension:"litertlm"'},lerobot:{prettyLabel:"LeRobot",repoName:"LeRobot",repoUrl:"https://github.com/huggingface/lerobot",docsUrl:"https://huggingface.co/docs/lerobot",f
1140ilter:!1,snippets:RE},liveportrait:{prettyLabel:"LivePortrait",repoName:"LivePortrait",repoUrl:"https://github.com/KwaiVGI/LivePortrait",filter:!1,countDownloads:'path:"liveportrait/landmark.onnx"'},"llama-cpp-python":{prettyLabel:"llama-cpp-python",repoName:"llama-cpp-python",repoUrl:"https://github.com/abetlen/llama-cpp-python",snippets:CE},"mini-omni2":{prettyLabel:"Mini-Omni2",repoName:"Mini-Omni2",repoUrl:"https://github.com/gpt-omni/mini-omni2",countDownloads:'path:"model_config.yaml"'},mindspore:{prettyLabel:"MindSpore",repoName:"mindspore",repoUrl:"https://github.com/mindspore-ai/mindspore"},"magi-1":{prettyLabel:"MAGI-1",repoName:"MAGI-1",repoUrl:"https://github.com/SandAI-org/MAGI-1",countDownloads:'path:"ckpt/vae/config.json"'},"magenta-realtime":{prettyLabel:"Magenta RT",repoName:"Magenta RT",repoUrl:"https://github.com/magenta/magenta-realtime",countDownloads:'path:"checkpoints/llm_base_x4286_c1860k.tar" OR path:"checkpoints/llm_large_x3047_c1860k.tar" OR path:"checkpoints/llm_large_x3047_c1860k/checkpoint"'},"mamba-ssm":{prettyLabel:"MambaSSM",repoName:"MambaSSM",repoUrl:"https://github.com/state-spaces/mamba",filter:!1,snippets:OE},"mars5-tts":{prettyLabel:"MARS5-TTS",repoName:"MARS5-TTS",repoUrl:"https://github.com/Camb-ai/MARS5-TTS",filter:!1,countDownloads:'path:"mars5_ar.safetensors"',snippets:ME},matanyone:{prettyLabel:"MatAnyone",repoName:"MatAnyone",repoUrl:"https://github.com/pq-yang/MatAnyone",snippets:UE,filter:!1},"mesh-anything":{prettyLabel:"MeshAnything",repoName:"MeshAnything",repoUrl:"https://github.com/buaacyw/MeshAnything",filter:!1,countDownloads:'path:"MeshAnything_350m.pth"',snippets:NE},merlin:{prettyLabel:"Merlin",repoName:"Merlin",repoUrl:"https://github.com/StanfordMIMI/Merlin",filter:!1,countDownloads:'path_extension:"pt"'},medvae:{prettyLabel:"MedVAE",repoName:"MedVAE",repoUrl:"https://github.com/StanfordMIMI/MedVAE",filter:!1,countDownloads:'path_extension:"ckpt"'},mitie:{prettyLabel:"MITIE",repoName:"MITIE",repoUrl:"https://github.com/mit-nlp/MITIE",countDownloads:'path_filename:"total_word_feature_extractor"'},"ml-agents":{prettyLabel:"ml-agents",repoName:"ml-agents",repoUrl:"https://github.com/Unity-Technologies/ml-agents",docsUrl:"https://huggingface.co/docs/hub/ml-agents",snippets:x2,filter:!0,countDownloads:'path_extension:"onnx"'},mlx:{prettyLabel:"MLX",repoName:"MLX",repoUrl:"https://github.com/ml-explore/mlx-examples/tree/main",snippets:q2,filter:!0},"mlx-image":{prettyLabel:"mlx-image",repoName:"mlx-image",repoUrl:"https://github.com/riccardomusmeci/mlx-image",docsUrl:"https://huggingface.co/docs/hub/mlx-image",snippets:z2,filter:!1,countDownloads:'path:"model.safetensors"'},"mlc-llm":{prettyLabel:"MLC-LLM",repoName:"MLC-LLM",repoUrl:"https://github.com/mlc-ai/mlc-llm",docsUrl:"https://llm.mlc.ai/docs/",filter:!1,countDownloads:'path:"mlc-chat-config.json"'},model2vec:{prettyLabel:"Model2Vec",repoName:"model2vec",repoUrl:"https://github.com/MinishLab/model2vec",snippets:B2,filter:!1},moshi:{prettyLabel:"Moshi",repoName:"Moshi",repoUrl:"https://github.com/kyutai-labs/moshi",filter:!1,countDownloads:'path:"tokenizer-e351c8d8-checkpoint125.safetensors"'},mtvcraft:{prettyLabel:"MTVCraft",repoName:"MTVCraft",repoUrl:"https://github.com/baaivision/MTVCraft",filter:!1,countDownloads:'path:"vae/3d-vae.pt"'},nemo:{prettyLabel:"NeMo",repoName:"NeMo",repoUrl:"https://github.com/NVIDIA/NeMo",snippets:F2,filter:!0,countDownloads:'path_extension:"nemo" OR path:"model_config.yaml" OR path_extension:"json"'},"open-oasis":{prettyLabel:"open-oasis",repoName:"open-oasis",repoUrl:"https://github.com/etched-ai/open-oasis",countDownloads:'path:"oasis500m.safetensors"'},open_clip:{prettyLabel:"OpenCLIP",repoName:"OpenCLIP",repoUrl:"https://github.com/mlfoundations/open_clip",snippets:IE,filter:!0,countDownloads:`path:"open_clip_model.safetensors"
1141			OR path:"model.safetensors"
1142			OR path:"open_clip_pytorch_model.bin"
1143			OR path:"pytorch_model.bin"`},"open-sora":{prettyLabel:"Open-Sora",repoName:"Open-Sora",repoUrl:"https://github.com/hpcaitech/Open-Sora",filter:!1,countDownloads:'path:"Open_Sora_v2.safetensors"'},outetts:{prettyLabel:"OuteTTS",repoName:"OuteTTS",repoUrl:"https://github.com/edwko/OuteTTS",snippets:X2,filter:!1},paddlenlp:{prettyLabel:"paddlenlp",repoName:"PaddleNLP",repoUrl:"https://github.com/PaddlePaddle/PaddleNLP",docsUrl:"https://huggingface.co/docs/hub/paddlenlp",snippets:jE,filter:!0,countDownloads:'path:"model_config.json"'},PaddleOCR:{prettyLabel:"PaddleOCR",repoName:"PaddleOCR",repoUrl:"https://github.com/PaddlePaddle/PaddleOCR",snippets:LE,filter:!0},peft:{prettyLabel:"PEFT",repoName:"PEFT",repoUrl:"https://github.com/huggingface/peft",snippets:b2,filter:!0,countDownloads:'path:"adapter_config.json"'},"perception-encoder":{prettyLabel:"PerceptionEncoder",repoName:"PerceptionModels",repoUrl:"https://github.com/facebookresearch/perception_models",filter:!1,snippets:zE,countDownloads:'path_extension:"pt"'},"phantom-wan":{prettyLabel:"Phantom",repoName:"Phantom",repoUrl:"https://github.com/Phantom-video/Phantom",snippets:qE,filter:!1,countDownloads:'path_extension:"pth"'},"pruna-ai":{prettyLabel:"Pruna AI",repoName:"Pruna AI",repoUrl:"https://github.com/PrunaAI/pruna",snippets:H2,docsUrl:"https://docs.pruna.ai"},pxia:{prettyLabel:"pxia",repoName:"pxia",repoUrl:"https://github.com/not-lain/pxia",snippets:Y2,filter:!1},"pyannote-audio":{prettyLabel:"pyannote.audio",repoName:"pyannote-audio",repoUrl:"https://github.com/pyannote/pyannote-audio",snippets:PE,filter:!0},"py-feat":{prettyLabel:"Py-Feat",repoName:"Py-Feat",repoUrl:"https://github.com/cosanlab/py-feat",docsUrl:"https://py-feat.org/",filter:!1},pythae:{prettyLabel:"pythae",repoName:"pythae",repoUrl:"https://github.com/clementchadebec/benchmark_VAE",snippets:Q2,filter:!1},recurrentgemma:{prettyLabel:"RecurrentGemma",repoName:"recurrentgemma",repoUrl:"https://github.com/google-deepmind/recurrentgemma",filter:!1,countDownloads:'path:"tokenizer.model"'},relik:{prettyLabel:"Relik",repoName:"Relik",repoUrl:"https://github.com/SapienzaNLP/relik",snippets:VE,filter:!1},refiners:{prettyLabel:"Refiners",repoName:"Refiners",repoUrl:"https://github.com/finegrain-ai/refiners",docsUrl:"https://refine.rs/",filter:!1,countDownloads:'path:"model.safetensors"'},renderformer:{prettyLabel:"RenderFormer",repoName:"RenderFormer",repoUrl:"https://github.com/microsoft/renderformer",snippets:$E,filter:!1},reverb:{prettyLabel:"Reverb",repoName:"Reverb",repoUrl:"https://github.com/revdotcom/reverb",filter:!1},rkllm:{prettyLabel:"RKLLM",repoName:"RKLLM",repoUrl:"https://github.com/airockchip/rknn-llm",countDownloads:'path_extension:"rkllm"'},saelens:{prettyLabel:"SAELens",repoName:"SAELens",repoUrl:"https://github.com/jbloomAus/SAELens",
1143snippets:ZE,filter:!1},sam2:{prettyLabel:"sam2",repoName:"sam2",repoUrl:"https://github.com/facebookresearch/segment-anything-2",filter:!1,snippets:i2,countDownloads:'path_extension:"pt"'},"sample-factory":{prettyLabel:"sample-factory",repoName:"sample-factory",repoUrl:"https://github.com/alex-petrenko/sample-factory",docsUrl:"https://huggingface.co/docs/hub/sample-factory",snippets:r2,filter:!0,countDownloads:'path:"cfg.json"'},sapiens:{prettyLabel:"sapiens",repoName:"sapiens",repoUrl:"https://github.com/facebookresearch/sapiens",filter:!1,countDownloads:'path_extension:"pt2" OR path_extension:"pth" OR path_extension:"onnx"'},seedvr:{prettyLabel:"SeedVR",repoName:"SeedVR",repoUrl:"https://github.com/ByteDance-Seed/SeedVR",filter:!1,countDownloads:'path_extension:"pth"'},"sentence-transformers":{prettyLabel:"sentence-transformers",repoName:"sentence-transformers",repoUrl:"https://github.com/UKPLab/sentence-transformers",docsUrl:"https://huggingface.co/docs/hub/sentence-transformers",snippets:l2,filter:!0},setfit:{prettyLabel:"setfit",repoName:"setfit",repoUrl:"https://github.com/huggingface/setfit",docsUrl:"https://huggingface.co/docs/hub/setfit",snippets:s2,filter:!0},sklearn:{prettyLabel:"Scikit-learn",repoName:"Scikit-learn",repoUrl:"https://github.com/scikit-learn/scikit-learn",snippets:t2,filter:!0,countDownloads:'path:"sklearn_model.joblib"'},spacy:{prettyLabel:"spaCy",repoName:"spaCy",repoUrl:"https://github.com/explosion/spaCy",docsUrl:"https://huggingface.co/docs/hub/spacy",snippets:u2,filter:!0,countDownloads:'path_extension:"whl"'},"span-marker":{prettyLabel:"SpanMarker",repoName:"SpanMarkerNER",repoUrl:"https://github.com/tomaarsen/SpanMarkerNER",docsUrl:"https://huggingface.co/docs/hub/span_marker",snippets:c2,filter:!0},speechbrain:{prettyLabel:"speechbrain",repoName:"speechbrain",repoUrl:"https://github.com/speechbrain/speechbrain",docsUrl:"https://huggingface.co/docs/hub/speechbrain",snippets:d2,filter:!0,countDownloads:'path:"hyperparams.yaml"'},"ssr-speech":{prettyLabel:"SSR-Speech",repoName:"SSR-Speech",repoUrl:"https://github.com/WangHelin1997/SSR-Speech",filter:!1,countDownloads:'path_extension:".pth"'},"stable-audio-tools":{prettyLabel:"Stable Audio Tools",repoName:"stable-audio-tools",repoUrl:"https://github.com/Stability-AI/stable-audio-tools.git",filter:!1,countDownloads:'path:"model.safetensors"',snippets:n2},monkeyocr:{prettyLabel:"MonkeyOCR",repoName:"monkeyocr",repoUrl:"https://github.com/Yuliang-Liu/MonkeyOCR",filter:!1,countDownloads:'path:"Recognition/config.json"'},"diffusion-single-file":{prettyLabel:"Diffusion Single File",repoName:"diffusion-single-file",repoUrl:"https://github.com/comfyanonymous/ComfyUI",filter:!1,countDownloads:'path_extension:"safetensors"'},"seed-story":{prettyLabel:"SEED-Story",repoName:"SEED-Story",repoUrl:"https://github.com/TencentARC/SEED-Story",filter:!1,countDownloads:'path:"cvlm_llama2_tokenizer/tokenizer.model"',snippets:JE},soloaudio:{prettyLabel:"SoloAudio",repoName:"SoloAudio",repoUrl:"https://github.com/WangHelin1997/SoloAudio",filter:!1,countDownloads:'path:"soloaudio_v2.pt"'},songbloom:{prettyLabel:"SongBloom",repoName:"SongBloom",repoUrl:"https://github.com/Cypress-Yang/SongBloom",filter:!1,countDownloads:'path_extension:"pt"'},"stable-baselines3":{prettyLabel:"stable-baselines3",repoName:"stable-baselines3",repoUrl:"https://github.com/huggingface/huggingface_sb3",docsUrl:"https://huggingface.co/docs/hub/stable-baselines3",snippets:w2,filter:!0,countDownloads:'path_extension:"zip"'},stanza:{prettyLabel:"Stanza",repoName:"stanza",repoUrl:"https://github.com/stanfordnlp/stanza",docsUrl:"https://huggingface.co/docs/hub/stanza",snippets:f2,filter:!0,countDownloads:'path:"models/default.zip"'},swarmformer:{prettyLabel:"SwarmFormer",repoName:"SwarmFormer",repoUrl:"https://github.com/takara-ai/SwarmFormer",snippets:M2,filter:!1},"f5-tts":{prettyLabel:"F5-TTS",repoName:"F5-TTS",repoUrl:"https://github.com/SWivid/F5-TTS",filter:!1,countDownloads:'path_extension:"safetensors" OR path_extension:"pt"'},genmo:{prettyLabel:"Genmo",repoName:"Genmo",repoUrl:"https://github.com/genmoai/models",filter:!1,countDownloads:'path:"vae_stats.json"'},"tencent-song-generation":{prettyLabel:"SongGeneration",repoName:"SongGeneration",repoUrl:"https://github.com/tencent-ailab/songgeneration",filter:!1,countDownloads:'path:"ckpt/songgeneration_base/model.pt"'},tensorflowtts:{prettyLabel:"TensorFlowTTS",repoName:"TensorFlowTTS",repoUrl:"https://github.com/TensorSpeech/TensorFlowTTS",snippets:QE},tabpfn:{prettyLabel:"TabPFN",repoName:"TabPFN",repoUrl:"https://github.com/PriorLabs/TabPFN"},terratorch:{prettyLabel:"TerraTorch",repoName:"TerraTorch",repoUrl:"https://github.com/IBM/terrator
1143ch",docsUrl:"https://ibm.github.io/terratorch/",filter:!1,countDownloads:'path_extension:"pt" OR path_extension:"ckpt"',snippets:m2},"tic-clip":{prettyLabel:"TiC-CLIP",repoName:"TiC-CLIP",repoUrl:"https://github.com/apple/ml-tic-clip",filter:!1,countDownloads:'path_extension:"pt" AND path_prefix:"checkpoints/"'},timesfm:{prettyLabel:"TimesFM",repoName:"timesfm",repoUrl:"https://github.com/google-research/timesfm",filter:!1,countDownloads:'path:"checkpoints/checkpoint_1100000/state/checkpoint" OR path:"checkpoints/checkpoint_2150000/state/checkpoint" OR path_extension:"ckpt"'},timm:{prettyLabel:"timm",repoName:"pytorch-image-models",repoUrl:"https://github.com/rwightman/pytorch-image-models",docsUrl:"https://huggingface.co/docs/hub/timm",snippets:KE,filter:!0,countDownloads:'path:"pytorch_model.bin" OR path:"model.safetensors"'},tirex:{prettyLabel:"TiRex",repoName:"TiRex",repoUrl:"https://github.com/NX-AI/tirex",countDownloads:'path_extension:"ckpt"'},torchgeo:{prettyLabel:"TorchGeo",repoName:"TorchGeo",repoUrl:"https://github.com/microsoft/torchgeo",docsUrl:"https://torchgeo.readthedocs.io/",filter:!1,countDownloads:'path_extension:"pt" OR path_extension:"pth"'},transformers:{prettyLabel:"Transformers",repoName:"🤗/transformers",repoUrl:"https://github.com/huggingface/transformers",docsUrl:"https://huggingface.co/docs/hub/transformers",snippets:iy,filter:!0},"transformers.js":{prettyLabel:"Transformers.js",repoName:"transformers.js",repoUrl:"https://github.com/huggingface/transformers.js",docsUrl:"https://huggingface.co/docs/hub/transformers-js",snippets:g2,filter:!0},trellis:{prettyLabel:"Trellis",repoName:"Trellis",repoUrl:"https://github.com/microsoft/TRELLIS",countDownloads:'path_extension:"safetensors"'},ultralytics:{prettyLabel:"ultralytics",repoName:"ultralytics",repoUrl:"https://github.com/ultralytics/ultralytics",docsUrl:"https://github.com/ultralytics/ultralytics",filter:!1,countDownloads:'path_extension:"pt"',snippets:lg},univa:{prettyLabel:"univa",repoName:"univa",repoUrl:"https://github.com/PKU-YuanGroup/UniWorld-V1",snippets:U2,filter:!0,countDownloads:'path:"config.json"'},"uni-3dar":{prettyLabel:"Uni-3DAR",repoName:"Uni-3DAR",repoUrl:"https://github.com/dptech-corp/Uni-3DAR",docsUrl:"https://github.com/dptech-corp/Uni-3DAR",countDownloads:'path_extension:"pt"'},"unity-sentis":{prettyLabel:"unity-sentis",repoName:"unity-sentis",repoUrl:"https://github.com/Unity-Technologies/sentis-samples",snippets:S2,filter:!0,countDownloads:'path_extension:"sentis"'},sana:{prettyLabel:"Sana",repoName:"Sana",repoUrl:"https://github.com/NVlabs/Sana",countDownloads:'path_extension:"pth"',snippets:A2},videoprism:{prettyLabel:"VideoPrism",repoName:"VideoPrism",repoUrl:"https://github.com/google-deepmind/videoprism",countDownloads:'path_extension:"npz"',snippets:k2},"vfi-mamba":{prettyLabel:"VFIMamba",repoName:"VFIMamba",repoUrl:"https://github.com/MCG-NJU/VFIMamba",countDownloads:'path_extension:"pkl"',snippets:T2},lvface:{prettyLabel:"LVFace",repoName:"LVFace",repoUrl:"https://github.com/bytedance/LVFace",countDownloads:'path_extension:"pt" OR path_extension:"onnx"',snippets:E2},voicecraft:{prettyLabel:"VoiceCraft",repoName:"VoiceCraft",repoUrl:"https://github.com/jasonppy/VoiceCraft",docsUrl:"https://github.com/jasonppy/VoiceCraft",snippets:C2},vui:{prettyLabel:"Vui",repoName:"Vui",repoUrl:"https://github.com/vui-ai/vui",countDownloads:'path_extension:"pt"',snippets:R2},"wan2.2":{prettyLabel:"Wan2.2",repoName:"Wan2.2",repoUrl:"https://github.com/Wan-Video/Wan2.2",countDownloads:'path_filename:"config" AND path_extension:"json"'},wham:{prettyLabel:"WHAM",repoName:"wham",repoUrl:"https://huggingface.co/microsoft/wham",docsUrl:"https://huggingface.co/microsoft/wham/blob/main/README.md",countDownloads:'path_extension:"ckpt"'},whisperkit:{prettyLabel:"WhisperKit",repoName:"WhisperKit",repoUrl:"https://github.com/argmaxinc/WhisperKit",docsUrl:"https://github.com/argmaxinc/WhisperKit?tab=readme-ov-file#homebrew",snippets:eC,countDownloads:'path_filename:"model" AND path_extension:"mil" AND _exists_:"path_prefix"'},yolov10:{prettyLabel:"YOLOv10",repoName:"YOLOv10",repoUrl:"https://github.com/THU-MIG/yolov10",docsUrl:"https://github.com/THU-MIG/yolov10",countDownloads:'path_extension:"pt" OR path_extension:"safetensors"',snippets:lg},zonos:{prettyLabel:"Zonos",repoName:"Zonos",repoUrl:"https://github.com/Zyphra/Zonos",docsUrl:"https://github.com/Zyphra/Zonos",snippets:nC,filter:!1},"3dtopia-xl":{prettyLabel:"3DTopia-XL",repoName:"3DTopia-XL",repoUrl:"https://github.com/3DTopia/3DTopia-XL",filter:!1,countDownloads:'path:"model_vae_fp16.pt"',snippets:tC}};Object.entries(aC).filter(([t,a])=>a.filter).map(([t])=>t);var he;(function(t){t[t.F32=0]="F32",t[t.F16=1]="F16",t[t.Q4_0=2]="Q4_0",t[t.Q4_1=3]="Q4_1",t[t.Q4_1_SOME_F16=4]="Q4_1_SOME_F16",t[t.Q4_2=5]="Q4_2",t[t.Q4_3=6]="Q4_3",t[t.Q8_0=7]="Q8_0",t[t.Q5_0=8]="Q5_0",t[t.Q5_1=9]="Q5_1",t[t.Q2_K=10]="Q2_K",t[t.Q3_K_S=11]="Q3_K_S",t[t.Q3_K_M=12]="Q3_K_M",t[t.Q3_K_L=13]="Q3_K_L",t[t.Q4_K_S=14]="Q4_K_S",t[t.Q4_K_M=15]="Q4_K_M",t[t.Q5_K_S=16]="Q5_K_S",t[t.Q5_K_M=17]="Q5_K_M",t[t.Q6_K=18]="Q6_K",t[t.IQ2_XXS=19]="IQ2_XXS",t[t.IQ2_XS=20]="IQ2_XS",t[t.Q2_K_S=21]="Q2_K_S",t[t.IQ3_XS=22]="IQ3_XS",t[t.IQ3_XXS=23]="IQ3_XXS",t[t.IQ1_S=24]="IQ1_S",t[t.IQ4_NL=25]="IQ4_NL",t[t.IQ3_S=26]="IQ3_S",t[t.IQ3_M=27]="IQ3_M",t[t.IQ2_S=28]="IQ2_S",t[t.IQ2_M=29]="IQ2_M",t[t.IQ4_XS=30]="IQ4_XS",t[t.IQ1_M=31]="IQ1_M",t[t.BF16=32]="BF16",t[t.Q4_0_4_4=33]="Q4_0_4_4",t[t.Q4_0_4_8=34]="Q4_0_4_8",t[t.Q4_0_8_8=35]="Q4_0_8_8",t[t.TQ1_0=36]="TQ1_0",t[t.TQ2_0=37]="TQ2_0",t[t.MXFP4_MOE=38]="MXFP4_MOE",t[t.Q2_K_XL=1e3]="Q2_K_XL",t[t.Q3_K_XL=1001]="Q3_K_XL",t[t.Q4_K_XL=1002]="Q4_K_XL",t[t.Q5_K_XL=1003]="Q5_K_XL",t[t.Q6_K_XL=1004]="Q6_K_XL",t[t.Q8_K_XL=1005]="Q8_K_XL"})(he||(he={}));const iC=Object.values(he).filter(t=>typeof t=="string");new RegExp(`(?<quant>${iC.join("|")})(_(?<sizeVariation>[A-Z]+))?`);he.F32,he.BF16,he.F16,he.Q8_K_XL,he.Q8_0,he.Q6_K_XL,he.Q6_K,he.Q5_K_XL,he.Q5_K_M,he.Q5_K_S,he.Q5_0,he.Q5_1,he.Q4_K_XL,he.Q4_K_M,he.Q4_K_S,he.IQ4_NL,he.IQ4_XS,he.Q4_0_4_4,he.Q4_0_4_8,he.Q4_0_8_8,he.Q4_1_SOME_F16,he.Q4_0,he.Q4_1,he.Q4_2,he.Q4_3,he.MXFP4_MOE,he.Q3_K_XL,he.Q3_K_L,he.Q3_K_M,he.Q3_K_S,he.IQ3_M,he.IQ3_S,he.IQ3_XS,he.IQ3_XXS,he.Q2_K_XL,he.Q2_K,he.Q2_K_S,he.IQ2_M,he.IQ2_S,he.IQ2_XS,he.IQ2_XXS,he.IQ1_S,he.IQ1_M,he.TQ1_0,he.TQ2_0;var sg;(function(t){t[t.F32=0]="F32",t[t.F16=1]="F16",t[t.Q4_0=2]="Q4_0",t[t.Q4_1=3]="Q4_1",t[t.Q5_0=6]="Q5_0",t[t.Q5_1=7]="Q5_1",t[t.Q8_0=8]="Q8_0",t[t.Q8_1=9]="Q8_1",t[t.Q2_K=10]="Q2_K",t[t.Q3_K=11]="Q3_K",t[t.Q4_K=12]="Q4_K",t[t.Q5_K=13]="Q5_K",t[t.Q6_K=14]="Q6_K",t[t.Q8_K=15]="Q8_K",t[t.IQ2_XXS=16]="IQ2_XXS",t[t.IQ2_XS=17]="IQ2_XS",t[t.IQ3_XXS=18]="IQ3_XXS",t[t.IQ1_S=19]="IQ1_S",t[t.IQ4_NL=20]="IQ4_NL",t[t.IQ3_S=21]="I
1143Q3_S",t[t.IQ2_S=22]="IQ2_S",t[t.IQ4_XS=23]="IQ4_XS",t[t.I8=24]="I8",t[t.I16=25]="I16",t[t.I32=26]="I32",t[t.I64=27]="I64",t[t.F64=28]="F64",t[t.IQ1_M=29]="IQ1_M",t[t.BF16=30]="BF16",t[t.TQ1_0=34]="TQ1_0",t[t.TQ2_0=35]="TQ2_0",t[t.MXFP4=39]="MXFP4"})(sg||(sg={}));const rC={js:{fetch:{basic:`async function query(data) {
1144	const response = await fetch(
1145		"{{ fullUrl }}",
1146		{
1147			headers: {
1148				Authorization: "{{ authorizationHeader }}",
1149				"Content-Type": "application/json",
1150{% if billTo %}
1151				"X-HF-Bill-To": "{{ billTo }}",
1152{% endif %}			},
1153			method: "POST",
1154			body: JSON.stringify(data),
1155		}
1156	);
1157	const result = await response.json();
1158	return result;
1159}
1160
1161query({ inputs: {{ providerInputs.asObj.inputs }} }).then((response) => {
1162    console.log(JSON.stringify(response));
1163});`,basicAudio:`async function query(data) {
1164	const response = await fetch(
1165		"{{ fullUrl }}",
1166		{
1167			headers: {
1168				Authorization: "{{ authorizationHeader }}",
1169				"Content-Type": "audio/flac",
1170{% if billTo %}
1171				"X-HF-Bill-To": "{{ billTo }}",
1172{% endif %}			},
1173			method: "POST",
1174			body: JSON.stringify(data),
1175		}
1176	);
1177	const result = await response.json();
1178	return result;
1179}
1180
1181query({ inputs: {{ providerInputs.asObj.inputs }} }).then((response) => {
1182    console.log(JSON.stringify(response));
1183});`,basicImage:`async function query(data) {
1184	const response = await fetch(
1185		"{{ fullUrl }}",
1186		{
1187			headers: {
1188				Authorization: "{{ authorizationHeader }}",
1189				"Content-Type": "image/jpeg",
1190{% if billTo %}
1191				"X-HF-Bill-To": "{{ billTo }}",
1192{% endif %}			},
1193			method: "POST",
1194			body: JSON.stringify(data),
1195		}
1196	);
1197	const result = await response.json();
1198	return result;
1199}
1200
1201query({ inputs: {{ providerInputs.asObj.inputs }} }).then((response) => {
1202    console.log(JSON.stringify(response));
1203});`,conversational:`async function query(data) {
1204	const response = await fetch(
1205		"{{ fullUrl }}",
1206		{
1207			headers: {
1208				Authorization: "{{ authorizationHeader }}",
1209				"Content-Type": "application/json",
1210{% if billTo %}
1211				"X-HF-Bill-To": "{{ billTo }}",
1212{% endif %}			},
1213			method: "POST",
1214			body: JSON.stringify(data),
1215		}
1216	);
1217	const result = await response.json();
1218	return result;
1219}
1220
1221query({ 
1222{{ autoInputs.asTsString }}
1223}).then((response) => {
1224    console.log(JSON.stringify(response));
1225});`,imageToImage:`const image = fs.readFileSync("{{inputs.asObj.inputs}}");
1226
1227async function query(data) {
1228	const response = await fetch(
1229		"{{ fullUrl }}",
1230		{
1231			headers: {
1232				Authorization: "{{ authorizationHeader }}",
1233				"Content-Type": "image/jpeg",
1234{% if billTo %}
1235				"X-HF-Bill-To": "{{ billTo }}",
1236{% endif %}			},
1237			method: "POST",
1238			body: {
1239				"inputs": \`data:image/png;base64,\${data.inputs.encode("base64")}\`,
1240				"parameters": data.parameters,
1241			}
1242		}
1243	);
1244	const result = await response.json();
1245	return result;
1246}
1247
1248query({ 
1249	inputs: image,
1250	parameters: {
1251		prompt: "{{ inputs.asObj.parameters.prompt }}",
1252	}
1253}).then((response) => {
1254    console.log(JSON.stringify(response));
1255});`,imageToVideo:`const image = fs.readFileSync("{{inputs.asObj.inputs}}");
1256
1257async function query(data) {
1258	const response = await fetch(
1259		"{{ fullUrl }}",
1260		{
1261			headers: {
1262				Authorization: "{{ authorizationHeader }}",
1263				"Content-Type": "image/jpeg",
1264{% if billTo %}
1265				"X-HF-Bill-To": "{{ billTo }}",
1266{% endif %}			},
1267			method: "POST",
1268			body: {
1269				"image_url": \`data:image/png;base64,\${data.image.encode("base64")}\`,
1270				"prompt": data.prompt,
1271			}
1272		}
1273	);
1274	const result = await response.json();
1275	return result;
1276}
1277
1278query({
1279	"image": image,
1280	"prompt": "{{inputs.asObj.parameters.prompt}}",
1281}).then((response) => {
1282    // Use video
1283});`,textToAudio:`{% if model.library_name == "transformers" %}
1284async function query(data) {
1285	const response = await fetch(
1286		"{{ fullUrl }}",
1287		{
1288			headers: {
1289				Authorization: "{{ authorizationHeader }}",
1290				"Content-Type": "application/json",
1291{% if billTo %}
1292				"X-HF-Bill-To": "{{ billTo }}",
1293{% endif %}			},
1294			method: "POST",
1295			body: JSON.stringify(data),
1296		}
1297	);
1298	const result = await response.blob();
1299    return result;
1300}
1301
1302query({ inputs: {{ providerInputs.asObj.inputs }} }).then((response) => {
1303    // Returns a byte object of the Audio wavform. Use it directly!
1304});
1305{% else %}
1306async function query(data) {
1307	const response = await fetch(
1308		"{{ fullUrl }}",
1309		{
1310			headers: {
1311				Authorization: "{{ authorizationHeader }}",
1312				"Content-Type": "application/json",
1313			},
1314			method: "POST",
1315			body: JSON.stringify(data),
1316		}
1317	);
1318    const result = await response.json();
1319    return result;
1320}
1321
1322query({ inputs: {{ providerInputs.asObj.inputs }} }).then((response) => {
1323    console.log(JSON.stringify(response));
1324});
1325{% endif %} `,textToImage:`async function query(data) {
1326	const response = await fetch(
1327		"{{ fullUrl }}",
1328		{
1329			headers: {
1330				Authorization: "{{ authorizationHeader }}",
1331				"Content-Type": "application/json",
1332{% if billTo %}
1333				"X-HF-Bill-To": "{{ billTo }}",
1334{% endif %}			},
1335			method: "POST",
1336			body: JSON.stringify(data),
1337		}
1338	);
1339	const result = await response.blob();
1340	return result;
1341}
1342
1343
1344query({ {{ providerInputs.asTsString }} }).then((response) => {
1345    // Use image
1346});`,textToSpeech:`{% if model.library_name == "transformers" %}
1347async function query(data) {
1348	const response = await fetch(
1349		"{{ fullUrl }}",
1350		{
1351			headers: {
1352				Authorization: "{{ authorizationHeader }}",
1353				"Content-Type": "application/json",
1354{% if billTo %}
1355				"X-HF-Bill-To": "{{ billTo }}",
1356{% endif %}			},
1357			method: "POST",
1358			body: JSON.stringify(data),
1359		}
1360	);
1361	const result = await response.blob();
1362    return result;
1363}
1364
1365query({ text: {{ inputs.asObj.inputs }} }).then((response) => {
1366    // Returns a byte object of the Audio wavform. Use it directly!
1367});
1368{% else %}
1369async function query(data) {
1370	const response = await fetch(
1371		"{{ fullUrl }}",
1372		{
1373			headers: {
1374				Authorization: "{{ authorizationHeader }}",
1375				"Content-Type": "application/json",
1376			},
1377			method: "POST",
1378			body: JSON.stringify(data),
1379		}
1380	);
1381    const result = await response.json();
1382    return result;
1383}
1384
1385query({ text: {{ inputs.asObj.inputs }} }).then((response) => {
1386    console.log(JSON.stringify(response));
1387});
1388{% endif %} `,zeroShotClassification:`async function query(data) {
1389    const response = await fetch(
1390		"{{ fullUrl }}",
1391        {
1392            headers: {
1393				Authorization: "{{ authorizationHeader }}",
1394                "Content-Type": "application/json",
1395{% if billTo %}
1396                "X-HF-Bill-To": "{{ billTo }}",
1397{% endif %}         },
1398            method: "POST",
1399            body: JSON.stringify(data),
1400        }
1401    );
1402    const result = await response.json();
1403    return result;
1404}
1405
1406query({
1407    inputs: {{ providerInputs.asObj.inputs }},
1408    parameters: { candidate_labels: ["refund", "legal", "faq"] }
1409}).then((response) => {
1410    console.log(JSON.stringify(response));
1411});`},"huggingface.js":{basic:`import { InferenceClient } from "@huggingface/inference";
1412
1413const client = new InferenceClient("{{ accessToken }}");
1414
1415const output = await client.{{ methodName }}({
1416{% if endpointUrl %}
1417    endpointUrl: "{{ endpointUrl }}",
1418{% endif %}
1419	model: "{{ model.id }}",
1420	inputs: {{ inputs.asObj.inputs }},
1421	provider: "{{ provider }}",
1422}{% if billTo %}, {
1423	billTo: "{{ billTo }}",
1424}{% endif %});
1425
1426console.log(output);`,basicAudio:`import { InferenceClient } from "@huggingface/inference";
1427
1428const client = new InferenceClient("{{ accessToken }}");
1429
1430const data = fs.readFileSync({{inputs.asObj.inputs}});
1431
1432const output = await client.{{ methodName }}({
1433{% if endpointUrl %}
1434    endpointUrl: "{{ endpointUrl }}",
1435{% endif %}
1436	data,
1437	model: "{{ model.id }}",
1438	provider: "{{ provider }}",
1439}{% if billTo %}, {
1440	billTo: "{{ billTo }}",
1441}{% endif %});
1442
1443console.log(output);`,basicImage:`import { InferenceClient } from "@huggingface/inference";
1444
1445const client = new InferenceClient("{{ accessToken }}");
1446
1447const data = fs.readFileSync({{inputs.asObj.inputs}});
1448
1449const output = await client.{{ methodName }}({
1450{% if endpointUrl %}
1451    endpointUrl: "{{ endpointUrl }}",
1452{% endif %}
1453	data,
1454	model: "{{ model.id }}",
1455	provider: "{{ provider }}",
1456}{% if billTo %}, {
1457	billTo: "{{ billTo }}",
1458}{% endif %});
1459
1460console.log(output);`,conversational:`import { InferenceClient } from "@huggingface/inference";
1461
1462const client = new InferenceClient("{{ accessToken }}");
1463
1464const chatCompletion = await client.chatCompletion({
1465{% if endpointUrl %}
1466    endpointUrl: "{{ endpointUrl }}",
1467{% endif %}
1468    provider: "{{ provider }}",
1469    model: "{{ model.id }}",
1470{{ inputs.asTsString }}
1471}{% if billTo %}, {
1472    billTo: "{{ billTo }}",
1473}{% endif %});
1474
1475console.log(chatCompletion.choices[0].message);
1475`,conversationalStream:`import { InferenceClient } from "@huggingface/inference";
1476
1477const client = new InferenceClient("{{ accessToken }}");
1478
1479let out = "";
1480
1481const stream = client.chatCompletionStream({
1482{% if endpointUrl %}
1483    endpointUrl: "{{ endpointUrl }}",
1484{% endif %}
1485    provider: "{{ provider }}",
1486    model: "{{ model.id }}",
1487{{ inputs.asTsString }}
1488}{% if billTo %}, {
1489    billTo: "{{ billTo }}",
1490}{% endif %});
1491
1492for await (const chunk of stream) {
1493	if (chunk.choices && chunk.choices.length > 0) {
1494		const newContent = chunk.choices[0].delta.content;
1495		out += newContent;
1496		console.log(newContent);
1497	}
1498}`,imageToImage:`import { InferenceClient } from "@huggingface/inference";
1499
1500const client = new InferenceClient("{{ accessToken }}");
1501
1502const data = fs.readFileSync("{{inputs.asObj.inputs}}");
1503
1504const image = await client.imageToImage({
1505{% if endpointUrl %}
1506	endpointUrl: "{{ endpointUrl }}",
1507{% endif %}
1508	provider: "{{provider}}",
1509	model: "{{model.id}}",
1510	inputs: data,
1511	parameters: { prompt: "{{inputs.asObj.parameters.prompt}}", },
1512}{% if billTo %}, {
1513	billTo: "{{ billTo }}",
1514}{% endif %});
1515/// Use the generated image (it's a Blob)
1516// For example, you can save it to a file or display it in an image element
1517`,imageToVideo:`import { InferenceClient } from "@huggingface/inference";
1518
1519const client = new InferenceClient("{{ accessToken }}");
1520
1521const data = fs.readFileSync("{{inputs.asObj.inputs}}");
1522
1523const video = await client.imageToVideo({
1524{% if endpointUrl %}
1525	endpointUrl: "{{ endpointUrl }}",
1526{% endif %}
1527	provider: "{{provider}}",
1528	model: "{{model.id}}",
1529	inputs: data,
1530	parameters: { prompt: "{{inputs.asObj.parameters.prompt}}", },
1531}{% if billTo %}, {
1532	billTo: "{{ billTo }}",
1533}{% endif %});
1534
1535/// Use the generated video (it's a Blob)
1536// For example, you can save it to a file or display it in a video element
1537`,textToImage:`import { InferenceClient } from "@huggingface/inference";
1538
1539const client = new InferenceClient("{{ accessToken }}");
1540
1541const image = await client.textToImage({
1542{% if endpointUrl %}
1543    endpointUrl: "{{ endpointUrl }}",
1544{% endif %}
1545    provider: "{{ provider }}",
1546    model: "{{ model.id }}",
1547	inputs: {{ inputs.asObj.inputs }},
1548	parameters: { num_inference_steps: 5 },
1549}{% if billTo %}, {
1550    billTo: "{{ billTo }}",
1551}{% endif %});
1552/// Use the generated image (it's a Blob)`,textToSpeech:`import { InferenceClient } from "@huggingface/inference";
1553
1554const client = new InferenceClient("{{ accessToken }}");
1555
1556const audio = await client.textToSpeech({
1557{% if endpointUrl %}
1558    endpointUrl: "{{ endpointUrl }}",
1559{% endif %}
1560    provider: "{{ provider }}",
1561    model: "{{ model.id }}",
1562	inputs: {{ inputs.asObj.inputs }},
1563}{% if billTo %}, {
1564    billTo: "{{ billTo }}",
1565}{% endif %});
1566// Use the generated audio (it's a Blob)`,textToVideo:`import { InferenceClient } from "@huggingface/inference";
1567
1568const client = new InferenceClient("{{ accessToken }}");
1569
1570const video = await client.textToVideo({
1571{% if endpointUrl %}
1572    endpointUrl: "{{ endpointUrl }}",
1573{% endif %}
1574    provider: "{{ provider }}",
1575    model: "{{ model.id }}",
1576	inputs: {{ inputs.asObj.inputs }},
1577}{% if billTo %}, {
1578    billTo: "{{ billTo }}",
1579}{% endif %});
1580// Use the generated video (it's a Blob)`},openai:{conversational:`import { OpenAI } from "openai";
1581
1582const client = new OpenAI({
1583	baseURL: "{{ baseUrl }}",
1584	apiKey: "{{ accessToken }}",
1585{% if billTo %}
1586	defaultHeaders: {
1587		"X-HF-Bill-To": "{{ billTo }}" 
1588	}
1589{% endif %}
1590});
1591
1592const chatCompletion = await client.chat.completions.create({
1593	model: "{{ providerModelId }}",
1594{{ inputs.asTsString }}
1595});
1596
1597console.log(chatCompletion.choices[0].message);`,conversationalStream:`import { OpenAI } from "openai";
1598
1599const client = new OpenAI({
1600	baseURL: "{{ baseUrl }}",
1601	apiKey: "{{ accessToken }}",
1602{% if billTo %}
1603    defaultHeaders: {
1604		"X-HF-Bill-To": "{{ billTo }}" 
1605	}
1606{% endif %}
1607});
1608
1609const stream = await client.chat.completions.create({
1610    model: "{{ providerModelId }}",
1611{{ inputs.asTsString }}
1612    stream: true,
1613});
1614
1615for await (const chunk of stream) {
1616    process.stdout.write(chunk.choices[0]?.delta?.content || "");
1617}`}},python:{fal_client:{imageToImage:`{%if provider == "fal-ai" %}
1618import fal_client
1619import base64
1620
1621def on_queue_update(update):
1622    if isinstance(update, fal_client.InProgress):
1623        for log in update.logs:
1624           print(log["message"])
1625
1626with open("{{inputs.asObj.inputs}}", "rb") as image_file:
1627    image_base_64 = base64.b64encode(image_file.read()).decode('utf-8')
1628
1629result = fal_client.subscribe(
1630    "fal-ai/flux-kontext/dev",
1631    arguments={
1632        "prompt": f"data:image/png;base64,{image_base_64}",
1633        "image_url": "{{ providerInputs.asObj.inputs }}",
1634    },
1635    with_logs=True,
1636    on_queue_update=on_queue_update,
1637)
1638print(result)
1639{%endif%}
1640`,imageToVideo:`{%if provider == "fal-ai" %}
1641import fal_client
1642import base64
1643
1644def on_queue_update(update):
1645    if isinstance(update, fal_client.InProgress):
1646        for log in update.logs:
1647           print(log["message"])
1648
1649with open("{{inputs.asObj.inputs}}", "rb") as image_file:
1650    image_base_64 = base64.b64encode(image_file.read()).decode('utf-8')
1651
1652result = fal_client.subscribe(
1653    "{{model.id}}",
1654    arguments={
1655        "image_url": f"data:image/png;base64,{image_base_64}",
1656        "prompt": "{{inputs.asObj.parameters.prompt}}",
1657    },
1658    with_logs=True,
1659    on_queue_update=on_queue_update,
1660)
1661print(result)
1662{%endif%}
1663`,textToImage:`{% if provider == "fal-ai" %}
1664import fal_client
1665
1666{% if providerInputs.asObj.loras is defined and providerInputs.asObj.loras != none %}
1667result = fal_client.subscribe(
1668    "{{ providerModelId }}",
1669    arguments={
1670        "prompt": {{ inputs.asObj.inputs }},
1671        "loras":{{ providerInputs.asObj.loras | tojson }},
1672    },
1673)
1674{% else %}
1675result = fal_client.subscribe(
1676    "{{ providerModelId }}",
1677    arguments={
1678        "prompt": {{ inputs.asObj.inputs }},
1679    },
1680)
1681{% endif %} 
1682print(result)
1683{% endif %} `},huggingface_hub:{basic:`result = client.{{ methodName }}(
1684    {{ inputs.asObj.inputs }},
1685    model="{{ model.id }}",
1686)`,basicAudio:'output = client.{{ methodName }}({{ inputs.asObj.inputs }}, model="{{ model.id }}")',basicImage:'output = client.{{ methodName }}({{ inputs.asObj.inputs }}, model="{{ model.id }}
1686")',conversational:`completion = client.chat.completions.create(
1687    model="{{ model.id }}",
1688{{ inputs.asPythonString }}
1689)
1690
1691print(completion.choices[0].message) `,conversationalStream:`stream = client.chat.completions.create(
1692    model="{{ model.id }}",
1693{{ inputs.asPythonString }}
1694    stream=True,
1695)
1696
1697for chunk in stream:
1698    print(chunk.choices[0].delta.content, end="") `,documentQuestionAnswering:`output = client.document_question_answering(
1699    "{{ inputs.asObj.image }}",
1700    question="{{ inputs.asObj.question }}",
1701    model="{{ model.id }}",
1702) `,imageToImage:`with open("{{ inputs.asObj.inputs }}", "rb") as image_file:
1703   input_image = image_file.read()
1704
1705# output is a PIL.Image object
1706image = client.image_to_image(
1707    input_image,
1708    prompt="{{ inputs.asObj.parameters.prompt }}",
1709    model="{{ model.id }}",
1710)
1711`,imageToVideo:`with open("{{ inputs.asObj.inputs }}", "rb") as image_file:
1712   input_image = image_file.read()
1713
1714video = client.image_to_video(
1715    input_image,
1716    prompt="{{ inputs.asObj.parameters.prompt }}",
1717    model="{{ model.id }}",
1718) 
1719`,importInferenceClient:`from huggingface_hub import InferenceClient
1720
1721client = InferenceClient(
1722{% if endpointUrl %}
1723    base_url="{{ baseUrl }}",
1724{% endif %}
1725    provider="{{ provider }}",
1726    api_key="{{ accessToken }}",
1727{% if billTo %}
1728    bill_to="{{ billTo }}",
1729{% endif %}
1730)`,questionAnswering:`answer = client.question_answering(
1731    question="{{ inputs.asObj.question }}",
1732    context="{{ inputs.asObj.context }}",
1733    model="{{ model.id }}",
1734) `,tableQuestionAnswering:`answer = client.table_question_answering(
1735    query="{{ inputs.asObj.query }}",
1736    table={{ inputs.asObj.table }},
1737    model="{{ model.id }}",
1738) `,textToImage:`# output is a PIL.Image object
1739image = client.text_to_image(
1740    {{ inputs.asObj.inputs }},
1741    model="{{ model.id }}",
1742) `,textToSpeech:`# audio is returned as bytes
1743audio = client.text_to_speech(
1744    {{ inputs.asObj.inputs }},
1745    model="{{ model.id }}",
1746) 
1747`,textToVideo:`video = client.text_to_video(
1748    {{ inputs.asObj.inputs }},
1749    model="{{ model.id }}",
1750) `},openai:{conversational:`from openai import OpenAI
1751
1752client = OpenAI(
1753    base_url="{{ baseUrl }}",
1754    api_key="{{ accessToken }}",
1755{% if billTo %}
1756    default_headers={
1757        "X-HF-Bill-To": "{{ billTo }}"
1758    }
1759{% endif %}
1760)
1761
1762completion = client.chat.completions.create(
1763    model="{{ providerModelId }}",
1764{{ inputs.asPythonString }}
1765)
1766
1767print(completion.choices[0].message) `,conversationalStream:`from openai import OpenAI
1768
1769client = OpenAI(
1770    base_url="{{ baseUrl }}",
1771    api_key="{{ accessToken }}",
1772{% if billTo %}
1773    default_headers={
1774        "X-HF-Bill-To": "{{ billTo }}"
1775    }
1776{% endif %}
1777)
1778
1779stream = client.chat.completions.create(
1780    model="{{ providerModelId }}",
1781{{ inputs.asPythonString }}
1782    stream=True,
1783)
1784
1785for chunk in stream:
1786    print(chunk.choices[0].delta.content, end="")`},requests:{basic:`def query(payload):
1787    response = requests.post(API_URL, headers=headers, json=payload)
1788    return response.json()
1789
1790output = query({
1791    "inputs": {{ providerInputs.asObj.inputs }},
1792}) `,basicAudio:`def query(filename):
1793    with open(filename, "rb") as f:
1794        data = f.read()
1795    response = requests.post(API_URL, headers={"Content-Type": "audio/flac", **headers}, data=data)
1796    return response.json()
1797
1798output = query({{ providerInputs.asObj.inputs }})`,basicImage:`def query(filename):
1799    with open(filename, "rb") as f:
1800        data = f.read()
1801    response = requests.post(API_URL, headers={"Content-Type": "image/jpeg", **headers}, data=data)
1802    return response.json()
1803
1804output = query({{ providerInputs.asObj.inputs }})`,conversational:`def query(payload):
1805    response = requests.post(API_URL, headers=headers, json=payload)
1806    return response.json()
1807
1808response = query({
1809{{ autoInputs.asJsonString }}
1810})
1811
1812print(response["choices"][0]["message"])`,conversationalStream:`def query(payload):
1813    response = requests.post(API_URL, headers=headers, json=payload, stream=True)
1814    for line in response.iter_lines():
1815        if not line.startswith(b"data:"):
1816            continue
1817        if line.strip() == b"data: [DONE]":
1818            return
1819        yield json.loads(line.decode("utf-8").lstrip("data:").rstrip("/n"))
1820
1821chunks = query({
1822{{ autoInputs.asJsonString }},
1823    "stream": True,
1824})
1825
1826for chunk in chunks:
1827    print(chunk["choices"][0]["delta"]["content"], end="")`,documentQuestionAnswering:`def query(payload):
1828    with open(payload["image"], "rb") as f:
1829        img = f.read()
1830        payload["image"] = base64.b64encode(img).decode("utf-8")
1831    response = requests.post(API_URL, headers=headers, json=payload)
1832    return response.json()
1833
1834output = query({
1835    "inputs": {
1836        "image": "{{ inputs.asObj.image }}",
1837        "question": "{{ inputs.asObj.question }}",
1838    },
1839}) `,imageToImage:`
1840def query(payload):
1841    with open(payload["inputs"], "rb") as f:
1842        img = f.read()
1843        payload["inputs"] = base64.b64encode(img).decode("utf-8")
1844    response = requests.post(API_URL, headers=headers, json=payload)
1845    return response.content
1846
1847image_bytes = query({
1848{{ providerInputs.asJsonString }}
1849})
1850
1851# You can access the image with PIL.Image for example
1852import io
1853from PIL import Image
1854image = Image.open(io.BytesIO(image_bytes)) `,imageToVideo:`
1855def query(payload):
1856    with open(payload["inputs"], "rb") as f:
1857        img = f.read()
1858        payload["inputs"] = base64.b64encode(img).decode("utf-8")
1859    response = requests.post(API_URL, headers=headers, json=payload)
1860    return response.content
1861
1862video_bytes = query({
1863{{ inputs.asJsonString }}
1864})
1865`,importRequests:`{% if importBase64 %}
1866import base64
1867{% endif %}
1868{% if importJson %}
1869import json
1870{% endif %}
1871import requests
1872
1873API_URL = "{{ fullUrl }}"
1874headers = {
1875    "Authorization": "{{ authorizationHeader }}",
1876{% if billTo %}
1877    "X-HF-Bill-To": "{{ billTo }}"
1878{% endif %}
1879}`,tabular:`def query(payload):
1880    response = requests.post(API_URL, headers=headers, json=payload)
1881    return response.content
1882
1883response = query({
1884    "inputs": {
1885        "data": {{ providerInputs.asObj.inputs }}
1886    },
1887}) `,textToAudio:`{% if model.library_name == "transformers" %}
1888def query(payload):
1889    response = requests.post(API_URL, headers=headers, json=payload)
1890    return response.content
1891
1892audio_bytes = query({
1893    "inputs": {{ inputs.asObj.inputs }},
1894})
1895# You can access the audio with IPython.display for example
1896from IPython.display import Audio
1897Audio(audio_bytes)
1898{% else %}
1899def query(payload):
1900    response = requests.post(API_URL, headers=headers, json=payload)
1901    return response.json()
1902
1903audio, sampling_rate = query({
1904    "inputs": {{ inputs.asObj.inputs }},
1905})
1906# You can access the audio with IPython.display for example
1907from IPython.display import Audio
1908Audio(audio, rate=sampling_rate)
1909{% endif %} `,textToImage:`{% if provider == "hf-inference" %}
1910def query(payload):
1911    response = requests.post(API_URL, headers=headers, json=payload)
1912    return response.content
1913
1914image_bytes = query({
1915    "inputs": {{ providerInputs.asObj.inputs }},
1916})
1917
1918# You can access the image with PIL.Image for example
1919import io
1920from PIL import Image
1921image = Image.open(io.BytesIO(image_bytes))
1922{% endif %}`,textToSpeech:`{% if model.library_name == "transformers" %}
1923def query(payload):
1924    response = requests.post(API_URL, headers=headers, json=payload)
1925    return response.content
1926
1927audio_bytes = query({
1928    "text": {{ inputs.asObj.inputs }},
1929})
1930# You can access the audio with IPython.display for example
1931from IPython.display import Audio
1932Audio(audio_bytes)
1933{% else %}
1934def query(payload):
1935    response = requests.post(API_URL, headers=headers, json=payload)
1936    return response.json()
1937
1938audio, sampling_rate = query({
1939    "text": {{ inputs.asObj.inputs }},
1940})
1941# You can access the audio with IPython.display for example
1942from IPython.display import Audio
1943Audio(audio, rate=sampling_rate)
1944{% endif %} `,zeroShotClassification:`def query(payload):
1945    response = requests.post(API_URL, headers=headers, json=payload)
1946    return response.json()
1947
1948output = query({
1949    "inputs": {{ providerInputs.asObj.inputs }},
1950    "parameters": {"candidate_labels": ["refund", "legal", "faq"]},
1951}) `,zeroShotImageClassification:`def query(data):
1952    with open(data["image_path"], "rb") as f:
1953        img = f.read()
1954    payload={
1955        "parameters": data["parameters"],
1956        "inputs": base64.b64encode(img).decode("utf-8")
1957    }
1958    response = requests.post(API_URL, headers=headers, json=payload)
1959    return response.json()
1960
1961output = query({
1962    "image_path": {{ providerInputs.asObj.inputs }},
1963    "parameters": {"candidate_labels": ["cat", "dog", "llama"]},
1964}) `}},sh:{curl:{basic:`curl {{ fullUrl }} \\
1965    -X POST \\
1966    -H 'Authorization: {{ authorizationHeader }}' \\
1967    -H 'Content-Type: application/json' \\
1968{% if billTo %}
1969    -H 'X-HF-Bill-To: {{ billTo }}' \\
1970{% endif %}
1971    -d '{
1972{{ providerInputs.asCurlString }}
1973    }'`,basicAudio:`curl {{ fullUrl }} \\
1974    -X POST \\
1975    -H 'Authorization: {{ authorizationHeader }}' \\
1976    -H 'Content-Type: audio/flac' \\
1977{% if billTo %}
1978    -H 'X-HF-Bill-To: {{ billTo }}' \\
1979{% endif %}
1980    --data-binary @{{ providerInputs.asObj.inputs }}`,basicImage:`curl {{ fullUrl }} \\
1981    -X POST \\
1982    -H 'Authorization: {{ authorizationHeader }}' \\
1983    -H 'Content-Type: image/jpeg' \\
1984{% if billTo %}
1985    -H 'X-HF-Bill-To: {{ billTo }}' \\
1986{% endif %}
1987    --data-binary @{{ providerInputs.asObj.inputs }}`,conversational:`curl {{ fullUrl }} \\
1988    -H 'Authorization: {{ authorizationHeader }}' \\
1989    -H 'Content-Type: application/json' \\
1990{% if billTo %}
1991    -H 'X-HF-Bill-To: {{ billTo }}' \\
1992{% endif %}
1993    -d '{
1994{{ autoInputs.asCurlString }},
1995        "stream": false
1996    }
1996'`,conversationalStream:`curl {{ fullUrl }} \\
1997    -H 'Authorization: {{ authorizationHeader }}' \\
1998    -H 'Content-Type: application/json' \\
1999{% if billTo %}
2000    -H 'X-HF-Bill-To: {{ billTo }}' \\
2001{% endif %}
2002    -d '{
2003{{ autoInputs.asCurlString }},
2004        "stream": true
2005    }'`,zeroShotClassification:`curl {{ fullUrl }} \\
2006    -X POST \\
2007    -d '{"inputs": {{ providerInputs.asObj.inputs }}, "parameters": {"candidate_labels": ["refund", "legal", "faq"]}}' \\
2008    -H 'Content-Type: application/json' \\
2009    -H 'Authorization: {{ authorizationHeader }}'
2010{% if billTo %} \\
2011    -H 'X-HF-Bill-To: {{ billTo }}'
2012{% endif %}`}}},ry=(t,a,r)=>{const l=rC[t]?.[a]?.[r];if(!l)throw new Error(`Template not found: ${t}/${a}/${r}`);return s=>new lk(l).render({...s})};ry("python","huggingface_hub","importInferenceClient");ry("python","requests","importRequests");const oC="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",lC=`
2013You are an assistant that receives a list of ingredients that a user has and suggests a recipe they could make with some or all of those ingredients. You don't need to use every ingredient they mention in your recipe. The recipe can include additional ingredients they didn't mention, but try not to include too many extra ingredients. Format your response in markdown to make it easier to render to a web page
2014`,sC=new pA(oC);async function uC(t){const a=t.join(", ");try{return(await sC.chatCompletion({model:"mistralai/Mixtral-8x7B-Instruct-v0.1",messages:[{role:"system",content:lC},{role:"user",content:`I have ${a}. Please give me a recipe you'd recommend I make!`}],max_tokens:1024})).choices[0].message.content}catch(r){console.error(r.message)}}function cC(){const[t,a]=zi.useState([]),[r,l]=zi.useState(null),s=zi.useRef(null);zi.useEffect(()=>{r&&s.current&&s.current.scrollIntoView({behavior:"smooth"})},[r]);function c(b){const d=b.get("ingredient");d.trim()!==""&&a(y=>[...y,d])}async function p(){l(null);const b=await uC(t);l(b)}function m(){a([]),l(null)}return ve.jsxs("main",{className:"main-main",children:[ve.jsx("h4",{children:"Add at least four ingredients"}),ve.jsxs("form",{action:c,className:"add-ingredient-form",children:[ve.jsx("input",{type:"text",placeholder:"e.g. oregano","aria-label":"Add ingredient",name:"ingredient"}),ve.jsx("button",{children:"Add ingredient"})]}),t.length>0&&ve.jsx(G0,{ref:s,ingredients:t,getRecipe:p}),r&&ve.jsx(J0,{recipe:r,resetApp:m})]})}const fC="/assets/user-DOZ_BC_f.png",pC="/assets/star-filled-B7I4siQ-.png",dC="/assets/star-empty-CosESN_E.png";function mC(t){let a=t.isFilled?"Remove from favorites":"Add to favorites",r=t.isFilled?pC:dC,l=t.isFilled?"filled star icon":"empty star icon";return console.log(a),console.log(l),ve.jsx("button",{onClick:t.handleClick,"aria-pressed":t.isFilled,"aria-label":a,className:"favorite-button",children:ve.jsx("img",{src:r,alt:l,className:"favorite"})})}function hC(){const[t,a]=_v.useState({firstName:"John",lastName:"Doe",phone:"+1 (212) 555-1212",email:"[email protected]",isFavorite:!0});function r(){a(l=>({...l,isFavorite:!l.isFavorite}))}return ve.jsx("main",{className:"main-test",children:ve.jsxs("article",{className:"card",children:[ve.jsx("img",{src:fC,className:"avatar",alt:"User profile picture of John Doe"}),ve.jsx("div",{className:"info",children:ve.jsxs("div",{className:"info-container",children:[ve.jsx(mC,{isFilled:t.isFavorite,handleClick:r}),ve.jsxs("h2",{className:"name",children:[t.firstName," ",t.lastName]}),ve.jsx("p",{className:"contact",children:t.phone}),ve.jsx("p",{className:"contact",children:t.email})]})})]})})}function gC(){return ve.jsxs(ve.Fragment,{children:[ve.jsx(Dv,{}),ve.jsxs("div",{className:"flex-container",children:[ve.jsx(cC,{}),ve.jsx(hC,{})]})]})}Cv.createRoot(document.getElementById("root")).render(ve.jsx(zi.StrictMode,{children:ve.jsx(gC,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.