vendor: 5,808 bytes, lines 1-9
1var Mf=e=>{throw TypeError(e)};var Ru=(e,t,n)=>t.has(e)||Mf("Cannot "+n);var L=(e,t,n)=>(Ru(e,t,"read from private field"),n?n.call(e):t.get(e)),de=(e,t,n)=>t.has(e)?Mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(Ru(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Qe=(e,t,n)=>(Ru(e,t,"access private method"),n);var oa=(e,t,n,r)=>({set _(i){ne(e,t,i,n)},get _(){return L(e,t,r)}});function ox(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ey={exports:{}},Bl={},ty={exports:{}},se={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its 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 qs=Symbol.for("react.element"),sx=Symbol.for("react.portal"),ax=Symbol.for("react.fragment"),lx=Symbol.for("react.strict_mode"),ux=Symbol.for("react.profiler"),cx=Symbol.for("react.provider"),dx=Symbol.for("react.context"),hx=Symbol.for("react.forward_ref"),fx=Symbol.for("react.suspense"),px=Symbol.for("react.memo"),mx=Symbol.for("react.lazy"),zf=Symbol.iterator;function gx(e){return e===null||typeof e!="object"?null:(e=zf&&e[zf]||e["@@iterator"],typeof e=="function"?e:null)}var ny={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ry=Object.assign,iy={};function Eo(e,t,n){this.props=e,this.context=t,this.refs=iy,this.updater=n||ny}Eo.prototype.isReactComponent={};Eo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oy(){}oy.prototype=Eo.prototype;function ih(e,t,n){this.props=e,this.context=t,this.refs=iy,this.updater=n||ny}var oh=ih.prototype=new oy;oh.constructor=ih;ry(oh,Eo.prototype);oh.isPureReactComponent=!0;var Ff=Array.isArray,sy=Object.prototype.hasOwnProperty,sh={current:null},ay={key:!0,ref:!0,__self:!0,__source:!0};function ly(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)sy.call(t,r)&&!ay.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:qs,type:e,key:o,ref:s,props:i,_owner:sh.current}}function yx(e,t){return{$$typeof:qs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ah(e){return typeof e=="object"&&e!==null&&e.$$typeof===qs}function vx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uf=/\/+/g;function Au(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vx(""+e.key):t.toString(36)}function $a(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case qs:case sx:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Au(s,0):r,Ff(i)?(n="",e!=null&&(n=e.replace(Uf,"$&/")+"/"),$a(i,t,n,"",function(u){return u})):i!=null&&(ah(i)&&(i=yx(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Uf,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Ff(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Au(o,a);s+=$a(o,t,n,l,i)}else if(l=gx(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Au(o,a++),s+=$a(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function sa(e,t,n){if(e==null)return e;var r=[],i=0;return $a(e,r,"","",function(o){return t.call(n,o,i++)}),r}function wx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ut={current:null},Ma={transition:null},bx={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:Ma,ReactCurrentOwner:sh};function uy(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,342 bytes, lines 9-25
9se.Children={map:sa,forEach:function(e,t,n){sa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sa(e,function(){t++}),t},toArray:function(e){return sa(e,function(t){return t})||[]},only:function(e){if(!ah(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=Eo;se.Fragment=ax;se.Profiler=ux;se.PureComponent=ih;se.StrictMode=lx;se.Suspense=fx;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bx;se.act=uy;se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ry({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=sh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)sy.call(t,l)&&!ay.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:qs,type:e.type,key:i,ref:o,props:r,_owner:s}};se.createContext=function(e){return e={$$typeof:dx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cx,_context:e},e.Consumer=e};se.createElement=ly;se.createFactory=function(e){var t=ly.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:hx,render:e}};se.isValidElement=ah;se.lazy=function(e){return{$$typeof:mx,_payload:{_status:-1,_result:e},_init:wx}};se.memo=function(e,t){return{$$typeof:px,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ma.transition;Ma.transition={};try{e()}finally{Ma.transition=t}};se.unstable_act=uy;se.useCallback=function(e,t){return ut.current.useCallback(e,t)};se.useContext=function(e){return ut.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};se.useEffect=function(e,t){return ut.current.useEffect(e,t)};se.useId=function(){return ut.current.useId()};se.useImperativeHandle=function(e,t,n){return ut.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return ut.current.useMemo(e,t)};se.useReducer=function(e,t,n){return ut.current.useReducer(e,t,n)};se.useRef=function(e){return ut.current.useRef(e)};se.useState=function(e){return ut.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return ut.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return ut.current.useTransition()};se.version="18.3.1";ty.exports=se;var b=ty.exports;const U=Ul(b),cy=ox({__proto__:null,default:U},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its 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 xx=b,Sx=Symbol.for("react.element"),_x=Symbol.for("react.fragment"),kx=Object.prototype.hasOwnProperty,Ex=xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cx={key:!0,ref:!0,__self:!0,__source:!0};function dy(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)kx.call(t,r)&&!Cx.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Sx,type:e,key:o,ref:s,props:i,_owner:Ex.current}}Bl.Fragment=_x;Bl.jsx=dy;Bl.jsxs=dy;ey.exports=Bl;var C=ey.exports,hy={exports:{}},Dt={},fy={exports:{}},py={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its 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 */(function(e){function t(N,j){var x=N.length;N.push(j);e:for(;0<x;){var Y=x-1>>>1,G=N[Y];if(0<i(G,j))N[Y]=j,N[x]=G,x=Y;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var j=N[0],x=N.pop();if(x!==j){N[0]=x;e:for(var Y=0,G=N.length,k=G>>>1;Y<k;){var X=2*(Y+1)-1,pe=N[X],le=X+1,ae=N[le];if(0>
vendor: 9,094 bytes, lines 25-33
25i(pe,x))le<G&&0>i(ae,pe)?(N[Y]=ae,N[le]=x,Y=le):(N[Y]=pe,N[X]=x,Y=X);else if(le<G&&0>i(ae,x))N[Y]=ae,N[le]=x,Y=le;else break e}}return j}function i(N,j){var x=N.sortIndex-j.sortIndex;return x!==0?x:N.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,h=null,f=3,d=!1,m=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=N)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function S(N){if(g=!1,v(N),!m)if(n(l)!==null)m=!0,H(E);else{var j=n(u);j!==null&&q(S,j.startTime-N)}}function E(N,j){m=!1,g&&(g=!1,p(R),R=-1),d=!0;var x=f;try{for(v(j),h=n(l);h!==null&&(!(h.expirationTime>j)||N&&!D());){var Y=h.callback;if(typeof Y=="function"){h.callback=null,f=h.priorityLevel;var G=Y(h.expirationTime<=j);j=e.unstable_now(),typeof G=="function"?h.callback=G:h===n(l)&&r(l),v(j)}else r(l);h=n(l)}if(h!==null)var k=!0;else{var X=n(u);X!==null&&q(S,X.startTime-j),k=!1}return k}finally{h=null,f=x,d=!1}}var _=!1,T=null,R=-1,P=5,I=-1;function D(){return!(e.unstable_now()-I<P)}function A(){if(T!==null){var N=e.unstable_now();I=N;var j=!0;try{j=T(!0,N)}finally{j?V():(_=!1,T=null)}}else _=!1}var V;if(typeof y=="function")V=function(){y(A)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,B=$.port2;$.port1.onmessage=A,V=function(){B.postMessage(null)}}else V=function(){w(A,0)};function H(N){T=N,_||(_=!0,V())}function q(N,j){R=w(function(){N(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){m||d||(m=!0,H(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var x=f;f=j;try{return N()}finally{f=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,j){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var x=f;f=N;try{return j()}finally{f=x}},e.unstable_scheduleCallback=function(N,j,x){var Y=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?Y+x:Y):x=Y,N){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=x+G,N={id:c++,callback:j,priorityLevel:N,startTime:x,expirationTime:G,sortIndex:-1},x>Y?(N.sortIndex=x,t(u,N),n(l)===null&&N===n(u)&&(g?(p(R),R=-1):g=!0,q(S,x-Y))):(N.sortIndex=G,t(l,N),m||d||(m=!0,H(E))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var j=f;return function(){var x=f;f=j;try{return N.apply(this,arguments)}finally{f=x}}}})(py);fy.exports=py;var Tx=fy.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its 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 Px=b,jt=Tx;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var my=new Set,ms={};function vi(e,t){mo(e,t),mo(e+"Capture",t)}function mo(e,t){for(ms[e]=t,e=0;e<t.length;e++)my.add(t[e])}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=Object.prototype.hasOwnProperty,Rx=/^[: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]*$/,Bf={},Vf={};function Ax(e){return Tc.call(Vf,e)?!0:Tc.call(Bf,e)?!1:Rx.test(e)?Vf[e]=!0:(Bf[e]=!0,!1)}function Ox(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ix(e,t,n,r){if(t===null||typeof t>"u"||Ox(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var lh=/[\-:]([a-z])/g;function uh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lh,uh);Ke[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lh,uh);Ke[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lh,uh);Ke[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function ch(e,t,n,r){var i=Ke.hasOwnProperty(t)?Ke[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ix(t,n,i,r)&&(n=null),r||i===null?Ax(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 17,938 bytes, lines 33-37
33var Yn=Px.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,aa=Symbol.for("react.element"),Li=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),dh=Symbol.for("react.strict_mode"),Pc=Symbol.for("react.profiler"),gy=Symbol.for("react.provider"),yy=Symbol.for("react.context"),hh=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),Ac=Symbol.for("react.suspense_list"),fh=Symbol.for("react.memo"),ur=Symbol.for("react.lazy"),vy=Symbol.for("react.offscreen"),Hf=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Hf&&e[Hf]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,Ou;function Go(e){if(Ou===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ou=t&&t[1]||""}return` 34`+Ou+e}var Iu=!1;function Nu(e,t){if(!e||Iu)return"";Iu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),o=r.stack.split(` 36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=` 37`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function Nx(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=Nu(e.type,!1),e;case 11:return e=Nu(e.type.render,!1),e;case 1:return e=Nu(e.type,!0),e;default:return""}}function Oc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Di:return"Fragment";case Li:return"Portal";case Pc:return"Profiler";case dh:return"StrictMode";case Rc:return"Suspense";case Ac:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yy:return(e.displayName||"Context")+".Consumer";case gy:return(e._context.displayName||"Context")+".Provider";case hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fh:return t=e.displayName||null,t!==null?t:Oc(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return Oc(e(t))}catch{}}return null}function jx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oc(t);case 8:return t===dh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lx(e){var t=wy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function la(e){e._valueTracker||(e._valueTracker=Lx(e))}function by(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nl(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}}function Ic(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Or(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xy(e,t){t=t.checked,t!=null&&ch(e,"checked",t,!1)}function Nc(e,t){xy(e,t);var n=Or(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jc(e,t.type,n):t.hasOwnProperty("defaultValue")&&jc(e,t.type,Or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jc(e,t,n){(t!=="number"||nl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Gi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Or(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(Qo(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Or(n)}}function Sy(e,t){var n=Or(t.value),r=Or(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _y(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_y(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ua,ky=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ua=ua||document.createElement("div"),ua.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ua.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dx=["Webkit","ms","Moz","O"];Object.keys(es).forEach(function(e){Dx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),es[t]=es[e]})});function Ey(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||es.hasOwnProperty(e)&&es[e]?(""+t).trim():t+"px"}function Cy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ey(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $x=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $c(e,t){if(t){if($x[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Mc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 zc=null;function ph(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fc=null,Qi=null,Yi=null;function Qf(e){if(e=Qs(e)){if(typeof Fc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Kl(t),Fc(e.stateNode,e.type,t))}}function Ty(e){Qi?Yi?Yi.push(e):Yi=[e]:Qi=e}function Py(){if(Qi){var e=Qi,t=Yi;if(Yi=Qi=null,Qf(e),t)for(e=0;e<t.length;e++)Qf(t[e])}}function Ry(e,t){return e(t)}function Ay(){}var ju=!1;function Oy(e,t,n){if(ju)return e(t,n);ju=!0;try{return Ry(e,t,n)}finally{ju=!1,(Qi!==null||Yi!==null)&&(Ay(),Py())}}function ys(e,t){var n=e.stateNode;if(n===null)return null;var r=Kl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var Uc=!1;if(Vn)try{var Do={};Object.defineProperty(Do,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Do,Do),window.removeEventListener("test",Do,Do)}catch{Uc=!1}function Mx(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ts=!1,rl=null,il=!1,Bc=null,zx={onError:function(e){ts=!0,rl=e}};function Fx(e,t,n,r,i,o,s,a,l){ts=!1,rl=null,Mx.apply(zx,arguments)}function Ux(e,t,n,r,i,o,s,a,l){if(Fx.apply(this,arguments),ts){if(ts){var u=rl;ts=!1,rl=null}else throw Error(M(198));il||(il=!0,Bc=u)}}function wi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Iy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Yf(e){if(wi(e)!==e)throw Error(M(188))}function Bx(e){var t=e.alternate;if(!t){if(t=wi(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Yf(i),e;if(o===r)return Yf(i),t;o=o.sibling}throw Error(M(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Ny(e){return e=Bx(e),e!==null?jy(e):null}function jy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jy(e);if(t!==null)return t;e=e.sibling}return null}var Ly=jt.unstable_scheduleCallback,Jf=jt.unstable_cancelCallback,Vx=jt.unstable_shouldYield,Hx=jt.unstable_requestPaint,Ie=jt.unstable_now,Wx=jt.unstable_getCurrentPriorityLevel,mh=jt.unstable_ImmediatePriority,Dy=jt.unstable_UserBlockingPriority,ol=jt.unstable_NormalPriority,qx=jt.unstable_LowPriority,$y=jt.unstable_IdlePriority,Vl=null,En=null;function Kx(e){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(Vl,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:Yx,Gx=Math.log,Qx=Math.LN2;function Yx(e){return e>>>=0,e===0?32:31-(Gx(e)/Qx|0)|0}var ca=64,da=4194304;function Yo(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yo(a):(o&=s,o!==0&&(r=Yo(o)))}else s=n&~i,s!==0?r=Yo(s):o!==0&&(r=Yo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-cn(t),i=1<<n,r|=e[n],t&=~i;return r}function Jx(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-cn(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Jx(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Vc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function My(){var e=ca;return ca<<=1,!(ca&4194240)&&(ca=64),e}function Lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=n}function Zx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-cn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function gh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var fe=0;function zy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fy,yh,Uy,By,Vy,Hc=!1,ha=[],_r=null,kr=null,Er=null,vs=new Map,ws=new Map,hr=[],eS="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 submit".split(" ");function Xf(e,t){switch(e){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":Er=null;break;case"pointerover":case"pointerout":vs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(t.pointerId)}}function $o(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Qs(t),t!==null&&yh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function tS(e,t,n,r,i){switch(t){case"focusin":return _r=$o(_r,e,t,n,r,i),!0;case"dragenter":return kr=$o(kr,e,t,n,r,i),!0;case"mouseover":return Er=$o(Er,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return vs.set(o,$o(vs.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ws.set(o,$o(ws.get(o)||null,e,t,n,r,i)),!0}return!1}function Hy(e){var t=ei(e.target);if(t!==null){var n=wi(t);if(n!==null){if(t=n.tag,t===13){if(t=Iy(n),t!==null){e.blockedOn=t,Vy(e.priority,function(){Uy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function za(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zc=r,n.target.dispatchEvent(r),zc=null}else return t=Qs(n),t!==null&&yh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zf(e,t,n){za(e)&&n.delete(t)}function nS(){Hc=!1,_r!==null&&za(_r)&&(_r=null),kr!==null&&za(kr)&&(kr=null),Er!==null&&za(Er)&&(Er=null),vs.forEac
vendor: 11,841 bytes, line 37
37h(Zf),ws.forEach(Zf)}function Mo(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,nS)))}function bs(e){function t(i){return Mo(i,e)}if(0<ha.length){Mo(ha[0],e);for(var n=1;n<ha.length;n++){var r=ha[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_r!==null&&Mo(_r,e),kr!==null&&Mo(kr,e),Er!==null&&Mo(Er,e),vs.forEach(t),ws.forEach(t),n=0;n<hr.length;n++)r=hr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hr.length&&(n=hr[0],n.blockedOn===null);)Hy(n),n.blockedOn===null&&hr.shift()}var Ji=Yn.ReactCurrentBatchConfig,al=!0;function rS(e,t,n,r){var i=fe,o=Ji.transition;Ji.transition=null;try{fe=1,vh(e,t,n,r)}finally{fe=i,Ji.transition=o}}function iS(e,t,n,r){var i=fe,o=Ji.transition;Ji.transition=null;try{fe=4,vh(e,t,n,r)}finally{fe=i,Ji.transition=o}}function vh(e,t,n,r){if(al){var i=Wc(e,t,n,r);if(i===null)Wu(e,t,r,ll,n),Xf(e,r);else if(tS(i,e,t,n,r))r.stopPropagation();else if(Xf(e,r),t&4&&-1<eS.indexOf(e)){for(;i!==null;){var o=Qs(i);if(o!==null&&Fy(o),o=Wc(e,t,n,r),o===null&&Wu(e,t,r,ll,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Wu(e,t,r,null,n)}}var ll=null;function Wc(e,t,n,r){if(ll=null,e=ph(r),e=ei(e),e!==null)if(t=wi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Iy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ll=e,null}function Wy(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wx()){case mh:return 1;case Dy:return 4;case ol:case qx:return 16;case $y:return 536870912;default:return 16}default:return 16}}var br=null,wh=null,Fa=null;function qy(){if(Fa)return Fa;var e,t=wh,n=t.length,r,i="value"in br?br.value:br.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Fa=i.slice(e,1<r?1-r:void 0)}function Ua(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fa(){return!0}function ep(){return!1}function $t(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?fa:ep,this.isPropagationStopped=ep,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fa)},persist:function(){},isPersistent:fa}),t}var Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bh=$t(Co),Gs=Pe({},Co,{view:0,detail:0}),oS=$t(Gs),Du,$u,zo,Hl=Pe({},Gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xh,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!==zo&&(zo&&e.type==="mousemove"?(Du=e.screenX-zo.screenX,$u=e.screenY-zo.screenY):$u=Du=0,zo=e),Du)},movementY:function(e){return"movementY"in e?e.movementY:$u}}),tp=$t(Hl),sS=Pe({},Hl,{dataTransfer:0}),aS=$t(sS),lS=Pe({},Gs,{relatedTarget:0}),Mu=$t(lS),uS=Pe({},Co,{animationName:0,elapsedTime:0,pseudoElement:0}),cS=$t(uS),dS=Pe({},Co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hS=$t(dS),fS=Pe({},Co,{data:0}),np=$t(fS),pS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mS={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"},gS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gS[e])?!!t[e]:!1}function xh(){return yS}var vS=Pe({},Gs,{key:function(e){if(e.key){var t=pS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xh,charCode:function(e){return e.type==="keypress"?Ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wS=$t(vS),bS=Pe({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rp=$t(bS),xS=Pe({},Gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xh}),SS=$t(xS),_S=Pe({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0}),kS=$t(_S),ES=Pe({},Hl,{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}),CS=$t(ES),TS=[9,13,27,32],Sh=Vn&&"CompositionEvent"in window,ns=null;Vn&&"documentMode"in document&&(ns=document.documentMode);var PS=Vn&&"TextEvent"in window&&!ns,Ky=Vn&&(!Sh||ns&&8<ns&&11>=ns),ip=" ",op=!1;function Gy(e,t){switch(e){case"keyup":return TS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $i=!1;function RS(e,t){switch(e){case"compositionend":return Qy(t);case"keypress":return t.which!==32?null:(op=!0,ip);case"textInput":return e=t.data,e===ip&&op?null:e;default:return null}}function AS(e,t){if($i)return e==="compositionend"||!Sh&&Gy(e,t)?(e=qy(),Fa=wh=br=null,$i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ky&&t.locale!=="ko"?null:t.data;default:return null}}var OS={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 sp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function Yy(e,t,n,r){Ty(r),t=ul(t,"onChange"),0<t.length&&(n=new bh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rs=null,xs=null;function IS(e){av(e,0)}function Wl(e){var t=Fi(e);if(by(t))return e}function NS(e,t){if(e==="change")return t}var Jy=!1;if(Vn){var zu;if(Vn){var Fu="oninput"in document;if(!Fu){var ap=document.createElement("div");ap.setAttribute("oninput","return;"),Fu=typeof ap.oninput=="function"}zu=Fu}else zu=!1;Jy=zu&&(!document.documentMode||9<document.documentMode)}function lp(){rs&&(rs.detachEvent("onpropertychange",Xy),xs=rs=null)}function Xy(e){if(e.propertyName==="value"&&Wl(xs)){var t=[];Yy(t,xs,e,ph(e)),Oy(IS,t)}}function jS(e,t,n){e==="focusin"?(lp(),rs=t,xs=n,rs.attachEvent("onpropertychange",Xy)):e==="focusout"&&lp()}function LS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wl(xs)}function DS(e,t){if(e==="click")return Wl(t)}function $S(e,t){if(e==="input"||e==="change")return Wl(t)}function MS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hn=typeof Object.is=="function"?Object.is:MS;function Ss(e,t){if(hn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Tc.call(t,i)||!hn(e[i],t[i]))return!1}return!0}function up(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cp(e,t){var n=up(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=up(n)}}function Zy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ev(){for(var e=window,t=nl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nl(e.document)}return t}function _h(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zS(e){var t=ev(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zy(n.ownerDocument.documentElement,n)){if(r!==null&&_h(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cp(n,o);var s=cp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var FS=Vn&&"documentMode"in document&&11>=document.documentMode,Mi=null,qc=null,is=null,Kc=!1;function dp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kc||Mi==null||Mi!==nl(r)||(r=Mi,"selectionStart"in r&&_h(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),is&&Ss(is,r)||(is=r,r=ul(qc,"onSelect"),0<r.length&&(t=new bh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mi)))}function pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zi={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionend:pa("Transition","TransitionEnd")},Uu={},tv={};Vn&&(tv=document.createElement("div").style,"AnimationEvent"in window||(delete zi.animationend.animation,delete zi.animationiteration.animation,delete zi.animationstart.animation),"TransitionEvent"in window||delete zi.transitionend.transition);function ql(e){if(Uu[e])return Uu[e];if(!zi[e])return e;var t=zi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tv)return Uu[e]=t[n];return e}var nv=ql("animationend"),rv=ql("animationiteration"),iv=ql("animationstart"),ov=ql("transitionend"),sv=new Map,hp="abort auxClick 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(" ");function $r(e,t){sv.set(e,t),vi(t,[e])}for(var Bu=0;Bu<hp.length;Bu++){var Vu=hp[Bu],US=Vu.toLowerCase(),BS=Vu[0].toUpperCase()+Vu.slice(1);$r(US,"on"+BS)}$r(nv,"onAnimationEnd");$r(rv,"onAnimationIteration");$r(iv,"onAnimationStart");$r("dblclick","onDoubleClick");$r("focusin","onFocus");$r("focusout","onBlur");$r(ov,"onTransitionEnd");mo("onMouseEnter",["mouseout","mouseover"]);mo("onMouseLeave",["mouseout","mouseover"]);mo("onPointerEnter",["pointerout","pointerover"]);mo("onPointerLeave",["pointerout","pointerover"]);vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vi("onBeforeInput",["compositionend","keypress","textInput","paste"]);vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),VS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jo));function fp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ux(r,t,void 0,e),e.currentTarget=null}function av(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;fp(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;fp(i,a,u),o=l}}}if(il)throw e=Bc,il=!1,Bc=null,e}function Se(e,t){var n=t[Xc];n===void 0&&(n=t[Xc]=new Set);var r=e+"__bubble";n.has(r)||(lv(t,e,2,!1),n.add(r))}function Hu(e,t,n){var r=0;t&&(r|=4),lv(n,e,r,t)}var ma="_reactListening"+Math.random().toString(36).slice(2);function _s(e){if(!e[ma]){e[ma]=!0,my.forEach(function(n){n!=="selectionchange"&&(VS.has(n)||Hu(n,!1,e),Hu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ma]||(t[ma]=!0,Hu("selectionchange",!1,t))}}function lv(e,t,n,r){switch(Wy(t)){case 1:var i=rS;break;case 4:i=iS;break;default:i=vh}n=i.bind(null,t,n,e),i=void 0,!Uc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wu(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 2,527 bytes, line 37
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ei(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Oy(function(){var u=o,c=ph(n),h=[];e:{var f=sv.get(e);if(f!==void 0){var d=bh,m=e;switch(e){case"keypress":if(Ua(n)===0)break e;case"keydown":case"keyup":d=wS;break;case"focusin":m="focus",d=Mu;break;case"focusout":m="blur",d=Mu;break;case"beforeblur":case"afterblur":d=Mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=aS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=SS;break;case nv:case rv:case iv:d=cS;break;case ov:d=kS;break;case"scroll":d=oS;break;case"wheel":d=CS;break;case"copy":case"cut":case"paste":d=hS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=rp}var g=(t&4)!==0,w=!g&&e==="scroll",p=g?f!==null?f+"Capture":null:f;g=[];for(var y=u,v;y!==null;){v=y;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,p!==null&&(S=ys(y,p),S!=null&&g.push(ks(y,S,v)))),w)break;y=y.return}0<g.length&&(f=new d(f,m,null,n,c),h.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&n!==zc&&(m=n.relatedTarget||n.fromElement)&&(ei(m)||m[Hn]))break e;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(m=n.relatedTarget||n.toElement,d=u,m=m?ei(m):null,m!==null&&(w=wi(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=u),d!==m)){if(g=tp,S="onMouseLeave",p="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=rp,S="onPointerLeave",p="onPointerEnter",y="pointer"),w=d==null?f:Fi(d),v=m==null?f:Fi(m),f=new g(S,y+"leave",d,n,c),f.target=w,f.relatedTarget=v,S=null,ei(c)===u&&(g=new g(p,y+"enter",m,n,c),g.target=v,g.relatedTarget=w,S=g),w=S,d&&m)t:{for(g=d,p=m,y=0,v=g;v;v=Ei(v))y++;for(v=0,S=p;S;S=Ei(S))v++;for(;0<y-v;)g=Ei(g),y--;for(;0<v-y;)p=Ei(p),v--;for(;y--;){if(g===p||p!==null&&g===p.alternate)break t;g=Ei(g),p=Ei(p)}g=null}else g=null;d!==null&&pp(h,f,d,g,!1),m!==null&&w!==null&&pp(h,w,m,g,!0)}}
vendor: 7,977 bytes, lines 37-38
37e:{if(f=u?Fi(u):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var E=NS;else if(sp(f))if(Jy)E=$S;else{E=LS;var _=jS}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=DS);if(E&&(E=E(e,u))){Yy(h,E,n,c);break e}_&&_(e,f,u),e==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&jc(f,"number",f.value)}switch(_=u?Fi(u):window,e){case"focusin":(sp(_)||_.contentEditable==="true")&&(Mi=_,qc=u,is=null);break;case"focusout":is=qc=Mi=null;break;case"mousedown":Kc=!0;break;case"contextmenu":case"mouseup":case"dragend":Kc=!1,dp(h,n,c);break;case"selectionchange":if(FS)break;case"keydown":case"keyup":dp(h,n,c)}var T;if(Sh)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else $i?Gy(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Ky&&n.locale!=="ko"&&($i||R!=="onCompositionStart"?R==="onCompositionEnd"&&$i&&(T=qy()):(br=c,wh="value"in br?br.value:br.textContent,$i=!0)),_=ul(u,R),0<_.length&&(R=new np(R,e,null,n,c),h.push({event:R,listeners:_}),T?R.data=T:(T=Qy(n),T!==null&&(R.data=T)))),(T=PS?RS(e,n):AS(e,n))&&(u=ul(u,"onBeforeInput"),0<u.length&&(c=new np("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:u}),c.data=T))}av(h,t)})}function ks(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ul(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ys(e,n),o!=null&&r.unshift(ks(e,o,i)),o=ys(e,t),o!=null&&r.push(ks(e,o,i))),e=e.return}return r}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pp(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ys(n,o),l!=null&&s.unshift(ks(n,l,a))):i||(l=ys(n,o),l!=null&&s.push(ks(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var HS=/\r\n?/g,WS=/\u0000|\uFFFD/g;function mp(e){return(typeof e=="string"?e:""+e).replace(HS,` 38`).replace(WS,"")}function ga(e,t,n){if(t=mp(t),mp(e)!==t&&n)throw Error(M(425))}function cl(){}var Gc=null,Qc=null;function Yc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jc=typeof setTimeout=="function"?setTimeout:void 0,qS=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,KS=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(e){return gp.resolve(null).then(e).catch(GS)}:Jc;function GS(e){setTimeout(function(){throw e})}function qu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),bs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);bs(t)}function Cr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function yp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var To=Math.random().toString(36).slice(2),_n="__reactFiber$"+To,Es="__reactProps$"+To,Hn="__reactContainer$"+To,Xc="__reactEvents$"+To,QS="__reactListeners$"+To,YS="__reactHandles$"+To;function ei(e){var t=e[_n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hn]||n[_n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yp(e);e!==null;){if(n=e[_n])return n;e=yp(e)}return t}e=n,n=e.parentNode}return null}function Qs(e){return e=e[_n]||e[Hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Kl(e){return e[Es]||null}var Zc=[],Ui=-1;function Mr(e){return{current:e}}function _e(e){0>Ui||(e.current=Zc[Ui],Zc[Ui]=null,Ui--)}function we(e,t){Ui++,Zc[Ui]=e.current,e.current=t}var Ir={},et=Mr(Ir),gt=Mr(!1),hi=Ir;function go(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return e=e.childContextTypes,e!=null}function dl(){_e(gt),_e(et)}function vp(e,t,n){if(et.current!==Ir)throw Error(M(168));we(et,t),we(gt,n)}function uv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,jx(e)||"Unknown",i));return Pe({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,hi=et.current,we(et,e),we(gt,gt.current),!0}function wp(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=uv(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,_e(gt),_e(et),we(et,e)):_e(gt),we(gt,n)}var Mn=null,Gl=!1,Ku=!1;function cv(e){Mn===null?Mn=[e]:Mn.push(e)}function JS(e){Gl=!0,cv(e)}function zr(){if(!Ku&&Mn!==null){Ku=!0;var e=0,t=fe;try{var n=Mn;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mn=null,Gl=!1}catch(i){throw Mn!==null&&(Mn=Mn.slice(e+1)),Ly(mh,zr),i}finally{fe=t,Ku=!1}}return null}var Bi=[],Vi=0,fl=null,pl=0,Ft=[],Ut=0,fi=null,Fn=1,Un="";function Gr(e,t){Bi[Vi++]=pl,Bi[Vi++]=fl,fl=e,pl=t}function dv(e,t,n){Ft[Ut++]=Fn,Ft[Ut++]=Un,Ft[Ut++]=fi,fi=e;var r=Fn;e=Un;var i=32-cn(r)-1;r&=~(1<<i),n+=1;var o=32-cn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Fn=1<<32-cn(t)+i|n<<i|r,Un=o+e}else Fn=1<<o|n<<i|r,Un=e}function kh(e){e.return!==null&&(Gr(e,1),dv(e,1,0))}function Eh(e){for(;e===fl;)fl=Bi[--Vi],Bi[Vi]=null,pl=Bi[--Vi],Bi[Vi]=null;for(;e===fi;)fi=Ft[--Ut],Ft[Ut]=null,Un=Ft[--Ut],Ft[Ut]=null,Fn=Ft[--Ut],Ft[Ut]=null}var It=null,At=null,Ee=!1,un=null;function hv(e,t){var n=Vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,It=e,At=Cr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,It=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fi!==null?{id:Fn,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,It=e,At=null,!0):!1;default:return!1}}function ed(e){return(e.mode&1)!==0&&(e.flags&128)===0}function td(e){if(Ee){var t=At;if(t){var n=t;if(!bp(e,t)){if(ed(e))throw Error(M(418));t=Cr(n.nextSibling);var r=It;t&&bp(e,t)?hv(r,n):(e.flags=e.flags&-4097|2,Ee=!1,It=e)}}else{if(ed(e))throw Error(M(418));e.flags=e.flags&-4097|2,Ee=!1,It=e}}}function xp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;It=e}function ya(e){if(e!==It)return!1;if(!Ee)return xp(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yc(e.type,e.memoizedProps)),t&&(t=At)){if(ed(e))throw fv(),Error(M(418));for(;t;)hv(e,t),t=Cr(t.nextSibling)}if(xp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){At=Cr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}At=null}}else At=It?Cr(e.stateNode.nextSibling):null;return!0}function fv(){for(var e=At;e;)e=Cr(e.nextSibling)}function yo(){At=It=null,Ee=!1}function Ch(e){un===null?un=[e]:un.push(e)}var XS=Yn.ReactCurrentBatchConfig;
vendor: 11,209 bytes, line 38
38function Fo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sp(e){var t=e._init;return t(e._payload)}function pv(e){function t(p,y){if(e){var v=p.deletions;v===null?(p.deletions=[y],p.flags|=16):v.push(y)}}function n(p,y){if(!e)return null;for(;y!==null;)t(p,y),y=y.sibling;return null}function r(p,y){for(p=new Map;y!==null;)y.key!==null?p.set(y.key,y):p.set(y.index,y),y=y.sibling;return p}function i(p,y){return p=Ar(p,y),p.index=0,p.sibling=null,p}function o(p,y,v){return p.index=v,e?(v=p.alternate,v!==null?(v=v.index,v<y?(p.flags|=2,y):v):(p.flags|=2,y)):(p.flags|=1048576,y)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,y,v,S){return y===null||y.tag!==6?(y=ec(v,p.mode,S),y.return=p,y):(y=i(y,v),y.return=p,y)}function l(p,y,v,S){var E=v.type;return E===Di?c(p,y,v.props.children,S,v.key):y!==null&&(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ur&&Sp(E)===y.type)?(S=i(y,v.props),S.ref=Fo(p,y,v),S.return=p,S):(S=Ga(v.type,v.key,v.props,null,p.mode,S),S.ref=Fo(p,y,v),S.return=p,S)}function u(p,y,v,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=tc(v,p.mode,S),y.return=p,y):(y=i(y,v.children||[]),y.return=p,y)}function c(p,y,v,S,E){return y===null||y.tag!==7?(y=di(v,p.mode,S,E),y.return=p,y):(y=i(y,v),y.return=p,y)}function h(p,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ec(""+y,p.mode,v),y.return=p,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case aa:return v=Ga(y.type,y.key,y.props,null,p.mode,v),v.ref=Fo(p,null,y),v.return=p,v;case Li:return y=tc(y,p.mode,v),y.return=p,y;case ur:var S=y._init;return h(p,S(y._payload),v)}if(Qo(y)||Lo(y))return y=di(y,p.mode,v,null),y.return=p,y;va(p,y)}return null}function f(p,y,v,S){var E=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(p,y,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case aa:return v.key===E?l(p,y,v,S):null;case Li:return v.key===E?u(p,y,v,S):null;case ur:return E=v._init,f(p,y,E(v._payload),S)}if(Qo(v)||Lo(v))return E!==null?null:c(p,y,v,S,null);va(p,v)}return null}function d(p,y,v,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(v)||null,a(y,p,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case aa:return p=p.get(S.key===null?v:S.key)||null,l(y,p,S,E);case Li:return p=p.get(S.key===null?v:S.key)||null,u(y,p,S,E);case ur:var _=S._init;return d(p,y,v,_(S._payload),E)}if(Qo(S)||Lo(S))return p=p.get(v)||null,c(y,p,S,E,null);va(y,S)}return null}function m(p,y,v,S){for(var E=null,_=null,T=y,R=y=0,P=null;T!==null&&R<v.length;R++){T.index>R?(P=T,T=null):P=T.sibling;var I=f(p,T,v[R],S);if(I===null){T===null&&(T=P);break}e&&T&&I.alternate===null&&t(p,T),y=o(I,y,R),_===null?E=I:_.sibling=I,_=I,T=P}if(R===v.length)return n(p,T),Ee&&Gr(p,R),E;if(T===null){for(;R<v.length;R++)T=h(p,v[R],S),T!==null&&(y=o(T,y,R),_===null?E=T:_.sibling=T,_=T);return Ee&&Gr(p,R),E}for(T=r(p,T);R<v.length;R++)P=d(T,p,R,v[R],S),P!==null&&(e&&P.alternate!==null&&T.delete(P.key===null?R:P.key),y=o(P,y,R),_===null?E=P:_.sibling=P,_=P);return e&&T.forEach(function(D){return t(p,D)}),Ee&&Gr(p,R),E}function g(p,y,v,S){var E=Lo(v);if(typeof E!="function")throw Error(M(150));if(v=E.call(v),v==null)throw Error(M(151));for(var _=E=null,T=y,R=y=0,P=null,I=v.next();T!==null&&!I.done;R++,I=v.next()){T.index>R?(P=T,T=null):P=T.sibling;var D=f(p,T,I.value,S);if(D===null){T===null&&(T=P);break}e&&T&&D.alternate===null&&t(p,T),y=o(D,y,R),_===null?E=D:_.sibling=D,_=D,T=P}if(I.done)return n(p,T),Ee&&Gr(p,R),E;if(T===null){for(;!I.done;R++,I=v.next())I=h(p,I.value,S),I!==null&&(y=o(I,y,R),_===null?E=I:_.sibling=I,_=I);return Ee&&Gr(p,R),E}for(T=r(p,T);!I.done;R++,I=v.next())I=d(T,p,R,I.value,S),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),y=o(I,y,R),_===null?E=I:_.sibling=I,_=I);return e&&T.forEach(function(A){return t(p,A)}),Ee&&Gr(p,R),E}function w(p,y,v,S){if(typeof v=="object"&&v!==null&&v.type===Di&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case aa:e:{for(var E=v.key,_=y;_!==null;){if(_.key===E){if(E=v.type,E===Di){if(_.tag===7){n(p,_.sibling),y=i(_,v.props.children),y.return=p,p=y;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ur&&Sp(E)===_.type){n(p,_.sibling),y=i(_,v.props),y.ref=Fo(p,_,v),y.return=p,p=y;break e}n(p,_);break}else t(p,_);_=_.sibling}v.type===Di?(y=di(v.props.children,p.mode,S,v.key),y.return=p,p=y):(S=Ga(v.type,v.key,v.props,null,p.mode,S),S.ref=Fo(p,y,v),S.return=p,p=S)}return s(p);case Li:e:{for(_=v.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(p,y.sibling),y=i(y,v.children||[]),y.return=p,p=y;break e}else{n(p,y);break}else t(p,y);y=y.sibling}y=tc(v,p.mode,S),y.return=p,p=y}return s(p);case ur:return _=v._init,w(p,y,_(v._payload),S)}if(Qo(v))return m(p,y,v,S);if(Lo(v))return g(p,y,v,S);va(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(p,y.sibling),y=i(y,v),y.return=p,p=y):(n(p,y),y=ec(v,p.mode,S),y.return=p,p=y),s(p)):n(p,y)}return w}var vo=pv(!0),mv=pv(!1),ml=Mr(null),gl=null,Hi=null,Th=null;function Ph(){Th=Hi=gl=null}function Rh(e){var t=ml.current;_e(ml),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xi(e,t){gl=e,Th=Hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(Th!==e)if(e={context:e,memoizedValue:t,next:null},Hi===null){if(gl===null)throw Error(M(308));Hi=e,gl.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var ti=null;function Ah(e){ti===null?ti=[e]:ti.push(e)}function gv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ah(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wn(e,r)}function Wn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function Oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Wn(e,n)}return i=r.interleaved,i===null?(t.next=t,Ah(r)):(t.next=i.next,i.next=t),r.interleaved=t,Wn(e,n)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gh(e,n)}}function _p(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function yl(e,t,n,r){var i=e.updateQueue;cr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,d=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(f=t,d=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){h=m.call(d,h,f);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(d,h,f):m,f==null)break e;h=Pe({},h,f);break e;case 2:cr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=d,l=h):c=c.next=d,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);mi|=s,e.lanes=s,e.memoizedState=h}}function kp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(M(191,i));i.call(r)}}}var Ys={},Cn=Mr(Ys),Cs=Mr(Ys),Ts=Mr(Ys);function ni(e){if(e===Ys)throw Error(M(174));return e}function Ih(e,t){switch(we(Ts,t),we(Cs,e),we(Cn,Ys),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dc(t,e)}_e(Cn),we(Cn,t)}function wo(){_e(Cn),_e(Cs),_e(Ts)}function vv(e){ni(Ts.current);var t=ni(Cn.current),n=Dc(t,e.type);t!==n&&(we(Cs,e),we(Cn,n))}function Nh(e){Cs.current===e&&(_e(Cn),_e(Cs))}var Ce=Mr(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gu=[];function jh(){for(var e=0;e<Gu.length;e++)Gu[e]._workInProgressVersionPrimary=null;Gu.length=0}var Va=Yn.ReactCurrentDispatcher,Qu=Yn.ReactCurrentBatchConfig,pi=0,Te=null,Me=null,Ue=null,wl=!1,os=!1,Ps=0,ZS=0;function Ye(){throw Error(M(321))}function Lh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hn(e[n],t[n]))return!1;return!0}function Dh(e,t,n,r,i,o){if(pi=o,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=e===null||e.memoizedState===null?r1:i1,e=n(r,i),os){o=0;
vendor: 4,705 bytes, line 38
38do{if(os=!1,Ps=0,25<=o)throw Error(M(301));o+=1,Ue=Me=null,t.updateQueue=null,Va.current=o1,e=n(r,i)}while(os)}if(Va.current=bl,t=Me!==null&&Me.next!==null,pi=0,Ue=Me=Te=null,wl=!1,t)throw Error(M(300));return e}function $h(){var e=Ps!==0;return Ps=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Te.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function qt(){if(Me===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ue===null?Te.memoizedState:Ue.next;if(t!==null)Ue=t,Me=e;else{if(e===null)throw Error(M(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ue===null?Te.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Rs(e,t){return typeof t=="function"?t(e):t}function Yu(e){var t=qt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=Me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((pi&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,Te.lanes|=c,mi|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,hn(r,t.memoizedState)||(mt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Te.lanes|=o,mi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ju(e){var t=qt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);hn(o,t.memoizedState)||(mt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function wv(){}function bv(e,t){var n=Te,r=qt(),i=t(),o=!hn(r.memoizedState,i);if(o&&(r.memoizedState=i,mt=!0),r=r.queue,Mh(_v.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,As(9,Sv.bind(null,n,r,i,t),void 0,null),Be===null)throw Error(M(349));pi&30||xv(n,t,i)}return i}function xv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sv(e,t,n,r){t.value=n,t.getSnapshot=r,kv(t)&&Ev(e)}function _v(e,t,n){return n(function(){kv(t)&&Ev(e)})}function kv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hn(e,n)}catch{return!0}}function Ev(e){var t=Wn(e,1);t!==null&&dn(t,e,1,-1)}function Ep(e){var t=vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:e},t.queue=e,e=e.dispatch=n1.bind(null,Te,e),[t.memoizedState,e]}function As(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cv(){return qt().memoizedState}function Ha(e,t,n,r){var i=vn();Te.flags|=e,i.memoizedState=As(1|t,n,void 0,r===void 0?null:r)}function Ql(e,t,n,r){var i=qt();r=r===void 0?null:r;var o=void 0;if(Me!==null){var s=Me.memoizedState;if(o=s.destroy,r!==null&&Lh(r,s.deps)){i.memoizedState=As(t,n,o,r);return}}Te.flags|=e,i.memoizedState=As(1|t,n,o,r)}function Cp(e,t){return Ha(8390656,8,e,t)}function Mh(e,t){return Ql(2048,8,e,t)}function Tv(e,t){return Ql(4,2,e,t)}function Pv(e,t){return Ql(4,4,e,t)}function Rv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Av(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,Rv.bind(null,t,e),n)}function zh(){}function Ov(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Iv(e,t){var n=qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Nv(e,t,n){return pi&21?(hn(n,t)||(n=My(),Te.lanes|=n,mi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mt=!0),e.memoizedState=n)}function e1(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=Qu.transition;Qu.transition={};try{e(!1),t()}finally{fe=n,Qu.transition=r}}function jv(){return qt().memoizedState}
vendor: 9,318 bytes, lines 38-40
38function t1(e,t,n){var r=Rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lv(e))Dv(t,n);else if(n=gv(e,t,n,r),n!==null){var i=lt();dn(n,e,r,i),$v(n,t,r)}}function n1(e,t,n){var r=Rr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lv(e))Dv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,hn(a,s)){var l=t.interleaved;l===null?(i.next=i,Ah(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=gv(e,t,i,r),n!==null&&(i=lt(),dn(n,e,r,i),$v(n,t,r))}}function Lv(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Dv(e,t){os=wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $v(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gh(e,n)}}var bl={readContext:Wt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},r1={readContext:Wt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Cp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4194308,4,Rv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=t1.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Ep,useDebugValue:zh,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Ep(!1),t=e[0];return e=e1.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,i=vn();if(Ee){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Be===null)throw Error(M(349));pi&30||xv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Cp(_v.bind(null,r,o,e),[e]),r.flags|=2048,As(9,Sv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vn(),t=Be.identifierPrefix;if(Ee){var n=Un,r=Fn;n=(r&~(1<<32-cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ps++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ZS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i1={readContext:Wt,useCallback:Ov,useContext:Wt,useEffect:Mh,useImperativeHandle:Av,useInsertionEffect:Tv,useLayoutEffect:Pv,useMemo:Iv,useReducer:Yu,useRef:Cv,useState:function(){return Yu(Rs)},useDebugValue:zh,useDeferredValue:function(e){var t=qt();return Nv(t,Me.memoizedState,e)},useTransition:function(){var e=Yu(Rs)[0],t=qt().memoizedState;return[e,t]},useMutableSource:wv,useSyncExternalStore:bv,useId:jv,unstable_isNewReconciler:!1},o1={readContext:Wt,useCallback:Ov,useContext:Wt,useEffect:Mh,useImperativeHandle:Av,useInsertionEffect:Tv,useLayoutEffect:Pv,useMemo:Iv,useReducer:Ju,useRef:Cv,useState:function(){return Ju(Rs)},useDebugValue:zh,useDeferredValue:function(e){var t=qt();return Me===null?t.memoizedState=e:Nv(t,Me.memoizedState,e)},useTransition:function(){var e=Ju(Rs)[0],t=qt().memoizedState;return[e,t]},useMutableSource:wv,useSyncExternalStore:bv,useId:jv,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function rd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yl={isMounted:function(e){return(e=e._reactInternals)?wi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),i=Rr(e),o=Bn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Tr(e,o,i),t!==null&&(dn(t,e,i,r),Ba(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),i=Rr(e),o=Bn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Tr(e,o,i),t!==null&&(dn(t,e,i,r),Ba(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=Rr(e),i=Bn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Tr(e,i,r),t!==null&&(dn(t,e,r,n),Ba(t,e,r))}};function Tp(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ss(n,r)||!Ss(i,o):!0}function Mv(e,t,n){var r=!1,i=Ir,o=t.contextType;return typeof o=="object"&&o!==null?o=Wt(o):(i=yt(t)?hi:et.current,r=t.contextTypes,o=(r=r!=null)?go(e,i):Ir),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Pp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Yl.enqueueReplaceState(t,t.state,null)}function id(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Oh(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Wt(o):(o=yt(t)?hi:et.current,i.context=go(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(rd(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Yl.enqueueReplaceState(i,i.state,null),yl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bo(e,t){try{var n="",r=t;do n+=Nx(r),r=r.return;while(r);var i=n}catch(o){i=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Xu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function od(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var s1=typeof WeakMap=="function"?WeakMap:Map;function zv(e,t,n){n=Bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,md=r),od(e,t)},n}function Fv(e,t,n){n=Bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){od(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){od(e,t),typeof r!="function"&&(Pr===null?Pr=new Set([this]):Pr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Rp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new s1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=b1.bind(null,e,t,n),t.then(e,e))}function Ap(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Op(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bn(-1,1),t.tag=2,Tr(n,t,1))),n.lanes|=1),e)}var a1=Yn.ReactCurrentOwner,mt=!1;function ot(e,t,n,r){t.child=e===null?mv(t,null,n,r):vo(t,e.child,n,r)}function Ip(e,t,n,r,i){n=n.render;var o=t.ref;return Xi(t,i),r=Dh(e,t,n,r,o,i),n=$h(),e!==null&&!mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qn(e,t,i)):(Ee&&n&&kh(t),t.flags|=1,ot(e,t,r,i),t.child)}function Np(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Kh(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Uv(e,t,o,r,i)):(e=Ga(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ss,n(s,r)&&e.ref===t.ref)return qn(e,t,i)}return t.flags|=1,e=Ar(o,r),e.ref=t.ref,e.return=t,t.child=e}function Uv(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ss(o,r)&&e.ref===t.ref)if(mt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(mt=!0);else return t.lanes=e.lanes,qn(e,t,i)}return sd(e,t,n,r,i)}function Bv(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(qi,Tt),Tt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(qi,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,we(qi,Tt),Tt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,we(qi,Tt),Tt|=r;return ot(e,t,i,n),t.child}function Vv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,298 bytes, line 40
40function sd(e,t,n,r,i){var o=yt(n)?hi:et.current;return o=go(t,o),Xi(t,i),n=Dh(e,t,n,r,o,i),r=$h(),e!==null&&!mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qn(e,t,i)):(Ee&&r&&kh(t),t.flags|=1,ot(e,t,n,i),t.child)}function jp(e,t,n,r,i){if(yt(n)){var o=!0;hl(t)}else o=!1;if(Xi(t,i),t.stateNode===null)Wa(e,t),Mv(t,n,r),id(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Wt(u):(u=yt(n)?hi:et.current,u=go(t,u));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Pp(t,s,r,u),cr=!1;var f=t.memoizedState;s.state=f,yl(t,r,s,i),l=t.memoizedState,a!==r||f!==l||gt.current||cr?(typeof c=="function"&&(rd(t,n,c,r),l=t.memoizedState),(a=cr||Tp(t,n,a,r,f,l,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,yv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:tn(t.type,a),s.props=u,h=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Wt(l):(l=yt(n)?hi:et.current,l=go(t,l));var d=n.getDerivedStateFromProps;(c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||f!==l)&&Pp(t,s,r,l),cr=!1,f=t.memoizedState,s.state=f,yl(t,r,s,i);var m=t.memoizedState;a!==h||f!==m||gt.current||cr?(typeof d=="function"&&(rd(t,n,d,r),m=t.memoizedState),(u=cr||Tp(t,n,u,r,f,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ad(e,t,n,r,o,i)}function ad(e,t,n,r,i,o){Vv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&wp(t,n,!1),qn(e,t,o);r=t.stateNode,a1.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=vo(t,e.child,null,o),t.child=vo(t,null,a,o)):ot(e,t,a,o),t.memoizedState=r.state,i&&wp(t,n,!0),t.child}function Hv(e){var t=e.stateNode;t.pendingContext?vp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vp(e,t.context,!1),Ih(e,t.containerInfo)}function Lp(e,t,n,r,i){return yo(),Ch(i),t.flags|=256,ot(e,t,n,r),t.child}var ld={dehydrated:null,treeContext:null,retryLane:0};function ud(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wv(e,t,n){var r=t.pendingProps,i=Ce.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),we(Ce,i&1),e===null)return td(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Zl(s,r,0,null),e=di(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ud(n),t.memoizedState=ld,e):Fh(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return l1(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ar(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Ar(a,o):(o=di(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ud(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=ld,r}return o=e.child,e=o.sibling,r=Ar(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fh(e,t){return t=Zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wa(e,t,n,r){return r!==null&&Ch(r),vo(t,e.child,null,n),e=Fh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 4,861 bytes, line 40
40function l1(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Xu(Error(M(422))),wa(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Zl({mode:"visible",children:r.children},i,0,null),o=di(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&vo(t,e.child,null,s),t.child.memoizedState=ud(s),t.memoizedState=ld,o);if(!(t.mode&1))return wa(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(M(419)),r=Xu(o,r,void 0),wa(e,t,s,r)}if(a=(s&e.childLanes)!==0,mt||a){if(r=Be,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Wn(e,i),dn(r,e,i,-1))}return qh(),r=Xu(Error(M(421))),wa(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=x1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,At=Cr(i.nextSibling),It=t,Ee=!0,un=null,e!==null&&(Ft[Ut++]=Fn,Ft[Ut++]=Un,Ft[Ut++]=fi,Fn=e.id,Un=e.overflow,fi=t),t=Fh(t,r.children),t.flags|=4096,t)}function Dp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nd(e.return,t,n)}function Zu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qv(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ot(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dp(e,n,t);else if(e.tag===19)Dp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zu(t,!0,n,null,o);break;case"together":Zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function u1(e,t,n){switch(t.tag){case 3:Hv(t),yo();break;case 5:vv(t);break;case 1:yt(t.type)&&hl(t);break;case 4:Ih(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;we(ml,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?Wv(e,t,n):(we(Ce,Ce.current&1),e=qn(e,t,n),e!==null?e.sibling:null);we(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return qv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),we(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Bv(e,t,n)}return qn(e,t,n)}var Kv,cd,Gv,Qv;Kv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cd=function(){};Gv=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ni(Cn.current);var o=null;switch(n){case"input":i=Ic(e,i),r=Ic(e,r),o=[];break;case"select":i=Pe({},i,{value:void 0}),r=Pe({},r,{value:void 0}),o=[];break;case"textarea":i=Lc(e,i),r=Lc(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cl)}$c(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ms.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];
vendor: 5,266 bytes, line 40
40if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ms.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Se("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Qv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Uo(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function c1(e,t,n){var r=t.pendingProps;switch(Eh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return yt(t.type)&&dl(),Je(t),null;case 3:return r=t.stateNode,wo(),_e(gt),_e(et),jh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ya(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,un!==null&&(vd(un),un=null))),cd(e,t),Je(t),null;case 5:Nh(t);var i=ni(Ts.current);if(n=t.type,e!==null&&t.stateNode!=null)Gv(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Je(t),null}if(e=ni(Cn.current),ya(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_n]=t,r[Es]=o,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(i=0;i<Jo.length;i++)Se(Jo[i],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Wf(r,o),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Se("invalid",r);break;case"textarea":Kf(r,o),Se("invalid",r)}$c(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&ga(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ga(r.textContent,a,e),i=["children",""+a]):ms.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Se("scroll",r)}switch(n){case"input":la(r),qf(r,o,!0);break;case"textarea":la(r),Gf(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=cl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_y(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[_n]=t,e[Es]=r,Kv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Mc(n,r),n){case"dialog":Se("cancel",e),Se("close",e),i=r;break;case"iframe":case"object":case"embed":Se("load",e),i=r;break;case"video":case"audio":for(i=0;i<Jo.length;i++)Se(Jo[i],e);i=r;break;case"source":Se("error",e),i=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),i=r;break;case"details":Se("toggle",e),i=r;break;case"input":Wf(e,r),i=Ic(e,r),Se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Pe({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Kf(e,r),i=Lc(e,r),Se("invalid",e);break;default:i=r}$c(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Cy(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ky(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&gs(e,l):typeof l=="number"&&gs(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ms.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Se("scroll",e):l!=null&&ch(e,o,l,s))}switch(n){case"input":la(e),qf(e,r,!1);break;case"textarea":la(e),Gf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Or(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gi(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=cl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,395 bytes, line 40
40return Je(t),null;case 6:if(e&&t.stateNode!=null)Qv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=ni(Ts.current),ni(Cn.current),ya(t)){if(r=t.stateNode,n=t.memoizedProps,r[_n]=t,(o=r.nodeValue!==n)&&(e=It,e!==null))switch(e.tag){case 3:ga(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ga(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_n]=t,t.stateNode=r}return Je(t),null;case 13:if(_e(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&At!==null&&t.mode&1&&!(t.flags&128))fv(),yo(),t.flags|=98560,o=!1;else if(o=ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(M(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(M(317));o[_n]=t}else yo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),o=!1}else un!==null&&(vd(un),un=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?ze===0&&(ze=3):qh())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return wo(),cd(e,t),e===null&&_s(t.stateNode.containerInfo),Je(t),null;case 10:return Rh(t.type._context),Je(t),null;case 17:return yt(t.type)&&dl(),Je(t),null;case 19:if(_e(Ce),o=t.memoizedState,o===null)return Je(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Uo(o,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=vl(e),s!==null){for(t.flags|=128,Uo(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Ce,Ce.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ie()>xo&&(t.flags|=128,r=!0,Uo(o,!1),t.lanes=4194304)}else{if(!r)if(e=vl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ee)return Je(t),null}else 2*Ie()-o.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,Uo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ie(),t.sibling=null,n=Ce.current,we(Ce,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return Wh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function d1(e,t){switch(Eh(t),t.tag){case 1:return yt(t.type)&&dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),_e(gt),_e(et),jh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nh(t),null;case 13:if(_e(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Ce),null;case 4:return wo(),null;case 10:return Rh(t.type._context),null;case 22:case 23:return Wh(),null;case 24:return null;default:return null}}var ba=!1,Ze=!1,h1=typeof WeakSet=="function"?WeakSet:Set,W=null;function Wi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function dd(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var $p=!1;function f1(e,t){if(Gc=al,e=ev(),_h(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,h=e,f=null;t:for(;;){for(var d;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:e,selectionRange:n},al=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,w=m.memoizedState,p=t.stateNode,y=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:tn(t.type,g),w);p.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(S){Oe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return m=$p,$p=!1,m}function ss(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&dd(t,n,o)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yv(e){var t=e.alternate;t!==null&&(e.alternate=null,Yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Es],delete t[Xc],delete t[QS],delete t[YS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jv(e){return e.tag===5||e.tag===3||e.tag===4}function Mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jv(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.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 fd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cl));else if(r!==4&&(e=e.child,e!==null))for(fd(e,t,n),e=e.sibling;e!==null;)fd(e,t,n),e=e.sibling}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}var We=null,an=!1;function ir(e,t,n){for(n=n.child;n!==null;)Xv(e,t,n),n=n.sibling}function Xv(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:Ze||Wi(n,t);case 6:var r=We,i=an;We=null,ir(e,t,n),We=r,an=i,We!==null&&(an?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(an?(e=We,n=n.stateNode,e.nodeType===8?qu(e.parentNode,n):e.nodeType===1&&qu(e,n),bs(e)):qu(We,n.stateNode));break;case 4:r=We,i=an,We=n.stateNode.containerInfo,an=!0,ir(e,t,n),We=r,an=i;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&dd(n,t,s),i=i.next}while(i!==r)}ir(e,t,n);break;case 1:if(!Ze&&(Wi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Oe(n,t,a)}ir(e,t,n);break;case 21:ir(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,ir(e,t,n),Ze=r):ir(e,t,n);break;default:ir(e,t,n)}}function zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var i=S1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:We=a.stateNode,an=!1;break e;case 3:We=a.stateNode.containerInfo,an=!0;break e;case 4:We=a.stateNode.containerInfo,an=!0;break e}a=a.return}if(We===null)throw Error(M(160));Xv(o,s,i),We=null,an=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Oe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zv(t,e),t=t.sibling}function Zv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),yn(e),r&4){try{ss(3,e,e.return),Jl(3,e)}catch(g){Oe(e,e.return,g)}try{ss(5,e,e.return)}catch(g){Oe(e,e.return,g)}}break;case 1:Xt(t,e),yn(e),r&512&&n!==null&&Wi(n,n.return);break;case 5:if(Xt(t,e),yn(e),r&512&&n!==null&&Wi(n,n.return),e.flags&32){var i=e.stateNode;try{gs(i,"")}catch(g){Oe(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&xy(i,o),Mc(a,s);var u=Mc(a,o);for(s=0;s<l.length;s+=2){var c=l[s],h=l[s+1];c==="style"?Cy(i,h):c==="dangerouslySetInnerHTML"?ky(i,h):c==="children"?gs(i,h):ch(i,c,h,u)}switch(a){case"input":Nc(i,o);break;case"textarea":Sy(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?Gi(i,!!o.multiple,d,!1):f!==!!o.multiple&&(o.defaultValue!=null?Gi(i,!!o.multiple,o.defaultValue,!0):Gi(i,!!o.multiple,o.multiple?[]:"",!1))}i[Es]=o}catch(g){Oe(e,e.return,g)}}break;case 6:if(Xt(t,e),yn(e),r&4){if(e.stateNode===null)throw Error(M(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){Oe(e,e.return,g)}}break;case 3:if(Xt(t,e),yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{bs(t.containerInfo)}catch(g){Oe(e,e.return,g)}break;case 4:Xt(t,e),yn(e);break;case 13:Xt(t,e),yn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Vh=Ie())),r&4&&zp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(u=Ze)||c,Xt(t,e),Ze=u):Xt(t,e),yn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(W=e,c=e.child;c!==null;){for(h=W=c;W!==null;){switch(f=W,d=f.child,f.tag){case 0:case 11:case 14:case 15:ss(4,f,f.return);break;case 1:Wi(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Oe(r,n,g)}}break;case 5:Wi(f,f.return);break;case 22:if(f.memoizedState!==null){Up(h);continue}}d!==null?(d.return=f,W=d):Up(h)}c=c.sibling}e:for(c=null,h=e;;){if(h.tag===5){if(c===null){c=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ey("display",s))}catch(g){Oe(e,e.return,g)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Oe(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Xt(t,e),yn(e),r&4&&zp(e);break;case 21:break;default:Xt(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jv(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(gs(i,""),r.flags&=-33);var o=Mp(e);pd(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Mp(e);fd(e,a,s);break;default:throw Error(M(161))}}catch(l){Oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function p1(e,t,n){W=e,ew(e)}function ew(e,t,n){for(var r=(e.mode&1)!==0;W!==null;){var i=W,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ba;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ze;a=ba;var u=Ze;if(ba=s,(Ze=l)&&!u)for(W=i;W!==null;)s=W,l=s.child,s.tag===22&&s.memoizedState!==null?Bp(i):l!==null?(l.return=s,W=l):Bp(i);for(;o!==null;)W=o,ew(o),o=o.sibling;W=i,ba=a,Ze=u}Fp(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,W=o):Fp(e)}}function Fp(e){for(;W!==null;){var t=W;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:tn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&kp(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}kp(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&bs(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Ze||t.flags&512&&hd(t)}catch(f){Oe(t,t.return,f)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function Up(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function Bp(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(l){Oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Oe(t,i,l)}}var o=t.return;try{hd(t)}catch(l){Oe(t,o,l)}break;case 5:var s=t.return;try{hd(t)}catch(l){Oe(t,s,l)}}}catch(l){Oe(t,t.return,l)}if(t===e){W=null;break}var a=t.sibling;if(a!==null){a.return=t.return,W=a;break}W=t.return}}var m1=Math.ceil,xl=Yn.ReactCurrentDispatcher,Uh=Yn.ReactCurrentOwner,Ht=Yn.ReactCurrentBatchConfig,ue=0,Be=null,De=null,qe=0,Tt=0,qi=Mr(0),ze=0,Os=null,mi=0,Xl=0,Bh=0,as=null,pt=null,Vh=0,xo=1/0,Dn=null,Sl=!1,md=null,Pr=null,xa=!1,xr=null,_l=0,ls=0,gd=null,qa=-1,Ka=0;function lt(){return ue&6?Ie():qa!==-1?qa:qa=Ie()}function Rr(e){return e.mode&1?ue&2&&qe!==0?qe&-qe:XS.transition!==null?(Ka===0&&(Ka=My()),Ka):(e=fe,e!==0||(e=window.event,e=e===void 0?16:Wy(e.type)),e):1}function dn(e,t,n,r){if(50<ls)throw ls=0,gd=null,Error(M(185));Ks(e,n,r),(!(ue&2)||e!==Be)&&(e===Be&&(!(ue&2)&&(Xl|=n),ze===4&&fr(e,qe)),vt(e,r),n===1&&ue===0&&!(t.mode&1)&&(xo=Ie()+500,Gl&&zr()))}function vt(e,t){var n=e.callbackNode;Xx(e,t);var r=sl(e,e===Be?qe:0);if(r===0)n!==null&&Jf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jf(n),t===1)e.tag===0?JS(Vp.bind(null,e)):cv(Vp.bind(null,e)),KS(function(){!(ue&6)&&zr()}),n=null;else{switch(zy(r)){case 1:n=mh;break;case 4:n=Dy;break;case 16:n=ol;break;case 536870912:n=$y;break;default:n=ol}n=lw(n,tw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tw(e,t){if(qa=-1,Ka=0,ue&6)throw Error(M(327));var n=e.callbackNode;if(Zi()&&e.callbackNode!==n)return null;var r=sl(e,e===Be?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=kl(e,r);else{t=r;var i=ue;ue|=2;var o=rw();(Be!==e||qe!==t)&&(Dn=null,xo=Ie()+500,ci(e,t));do try{v1();break}catch(a){nw(e,a)}while(!0);Ph(),xl.current=o,ue=i,De!==null?t=0:(Be=null,qe=0,t=ze)}if(t!==0){if(t===2&&(i=Vc(e),i!==0&&(r=i,t=yd(e,i))),t===1)throw n=Os,ci(e,0),fr(e,r),vt(e,Ie()),n;if(t===6)fr(e,r);else{if(i=e.current.alternate,!(r&30)&&!g1(i)&&(t=kl(e,r),t===2&&(o=Vc(e),o!==0&&(r=o,t=yd(e,o))),t===1))throw n=Os,ci(e,0),fr(e,r),vt(e,Ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:Qr(e,pt,Dn);break;case 3:if(fr(e,r),(r&130023424)===r&&(t=Vh+500-Ie(),10<t)){if(sl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Jc(Qr.bind(null,e,pt,Dn),t);break}Qr(e,pt,Dn);break;case 4:if(fr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-cn(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*m1(r/1960))-r,10<r){e.timeoutHandle=Jc(Qr.bind(null,e,pt,Dn),r);break}Qr(e,pt,Dn);break;case 5:Qr(e,pt,Dn);break;default:throw Error(M(329))}}}return vt(e,Ie()),e.callbackNode===n?tw.bind(null,e):null}function yd(e,t){var n=as;return e.current.memoizedState.isDehydrated&&(ci(e,t).flags|=256),e=kl(e,t),e!==2&&(t=pt,pt=n,t!==null&&vd(t)),e}function vd(e){pt===null?pt=e:pt.push.apply(pt,e)}function g1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!hn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fr(e,t){for(t&=~Bh,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),r=1<<n;e[n]=-1,t&=~r}}function Vp(e){if(ue&6)throw Error(M(327));Zi();var t=sl(e,0);if(!(t&1))return vt(e,Ie()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var r=Vc(e);r!==0&&(t=r,n=yd(e,r))}if(n===1)throw n=Os,ci(e,0),fr(e,t),vt(e,Ie()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qr(e,pt,Dn),vt(e,Ie()),null}function Hh(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(xo=Ie()+500,Gl&&zr())}}function gi(e){xr!==null&&xr.tag===0&&!(ue&6)&&Zi();var t=ue;ue|=1;var n=Ht.transition,r=fe;try{if(Ht.transition=null,fe=1,e)return e()}finally{fe=r,Ht.transition=n,ue=t,!(ue&6)&&zr()}}function Wh(){Tt=qi.current,_e(qi)}function ci(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qS(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Eh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&dl();break;case 3:wo(),_e(gt),_e(et),jh();break;case 5:Nh(r);break;case 4:wo();break;case 13:_e(Ce);break;case 19:_e(Ce);break;case 10:Rh(r.type._context);break;case 22:case 23:Wh()}n=n.return}if(Be=e,De=e=Ar(e.current,null),qe=Tt=t,ze=0,Os=null,Bh=Xl=mi=0,pt=as=null,ti!==null){for(t=0;t<ti.length;t++)if(n=ti[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ti=null}return e}function nw(e,t){do{var n=De;try{if(Ph(),Va.current=bl,wl){for(var r=Te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}wl=!1}if(pi=0,Ue=Me=Te=null,os=!1,Ps=0,Uh.current=null,n===null||n.return===null){ze=1,Os=t,De=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Ap(s);if(d!==null){d.flags&=-257,Op(d,s,a,o,t),d.mode&1&&Rp(o,u,t),t=d,l=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){Rp(o,u,t),qh();break e}l=Error(M(426))}}else if(Ee&&a.mode&1){var w=Ap(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Op(w,s,a,o,t),Ch(bo(l,a));break e}}o=l=bo(l,a),ze!==4&&(ze=2),as===null?as=[o]:as.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=zv(o,l,t);_p(o,p);break e;case 1:a=l;var y=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Pr===null||!Pr.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Fv(o,a,t);_p(o,S);break e}}o=o.return}while(o!==null)}ow(n)}catch(E){t=E,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function rw(){var e=xl.current;return xl.current=bl,e===null?bl:e}function qh(){(ze===0||ze===3||ze===2)&&(ze=4),Be===null||!(mi&268435455)&&!(Xl&268435455)||fr(Be,qe)}function kl(e,t){var n=ue;ue|=2;var r=rw();(Be!==e||qe!==t)&&(Dn=null,ci(e,t));do try{y1();break}catch(i){nw(e,i)}while(!0);if(Ph(),ue=n,xl.current=r,De!==null)throw Error(M(261));return Be=null,qe=0,ze}function y1(){for(;De!==null;)iw(De)}function v1(){for(;De!==null&&!Vx();)iw(De)}function iw(e){var t=aw(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?ow(e):De=t,Uh.current=null}function ow(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=d1(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,De=null;return}}else if(n=c1(n,t,Tt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ze===0&&(ze=5)}function Qr(e,t,n){var r=fe,i=Ht.transition;try{Ht.transition=null,fe=1,w1(e,t,n,r)}finally{Ht.transition=i,fe=r}return null}function w1(e,t,n,r){do Zi();while(xr!==null);if(ue&6)throw Error(M(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Zx(e,o),e===Be&&(De=Be=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xa||(xa=!0,lw(ol,function(){return Zi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ht.transition,Ht.transition=null;var s=fe;fe=1;var a=ue;ue|=4,Uh.current=null,f1(e,n),Zv(n,e),zS(Qc),al=!!Gc,Qc=Gc=null,e.current=n,p1(n),Hx(),ue=a,fe=s,Ht.transition=o}else e.current=n;if(xa&&(xa=!1,xr=e,_l=i),o=e.pendingLanes,o===0&&(Pr=null),Kx(n.stateNode),vt(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sl)throw Sl=!1,e=md,md=null,e;return _l&1&&e.tag!==0&&Zi(),o=e.pendingLanes,o&1?e===gd?ls++:(ls=0,gd=e):ls=0,zr(),null}function Zi(){if(xr!==null){var e=zy(_l),t=Ht.transition,n=fe;try{if(Ht.transition=null,fe=16>e?16:e,xr===null)var r=!1;else{if(e=xr,xr=null,_l=0,ue&6)throw Error(M(331));var i=ue;for(ue|=4,W=e.current;W!==null;){var o=W,s=o.child;if(W.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(W=u;W!==null;){var c=W;switch(c.tag){case 0:case 11:case 15:ss(8,c,o)}var h=c.child;if(h!==null)h.return=c,W=h;else for(;W!==null;){c=W;var f=c.sibling,d=c.return;if(Yv(c),c===u){W=null;break}if(f!==null){f.return=d,W=f;break}W=d}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}W=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,W=s;else e:for(;W!==null;){if(o=W,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ss(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,W=p;break e}W=o.return}}var y=e.current;for(W=y;W!==null;){s=W;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,W=v;else e:for(s=y;W!==null;){if(a=W,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Jl(9,a)}}catch(E){Oe(a,a.return,E)}if(a===s){W=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,W=S;break e}W=a.return}}if(ue=i,zr(),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(Vl,e)}catch{}r=!0}return r}finally{fe=n,Ht.transition=t}}return!1}function Hp(e,t,n){t=bo(n,t),t=zv(e,t,1),e=Tr(e,t,1),t=lt(),e!==null&&(Ks(e,1,t),vt(e,t))}function Oe(e,t,n){if(e.tag===3)Hp(e,e,n);else for(;t!==null;){if(t.tag===3){Hp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pr===null||!Pr.has(r))){e=bo(n,e),e=Fv(t,e,1),t=Tr(t,e,1),e=lt(),t!==null&&(Ks(t,1,e),vt(t,e));break}}t=t.return}}function b1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(qe&n)===n&&(ze===4||ze===3&&(qe&130023424)===qe&&500>Ie()-Vh?ci(e,0):Bh|=n),vt(e,t)}function sw(e,t){t===0&&(e.mode&1?(t=da,da<<=1,!(da&130023424)&&(da=4194304)):t=1);var n=lt();e=Wn(e,t),e!==null&&(Ks(e,t,n),vt(e,n))}function x1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sw(e,n)}function S1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),sw(e,n)}var aw;aw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)mt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mt=!1,u1(e,t,n);mt=!!(e.flags&131072)}else mt=!1,Ee&&t.flags&1048576&&dv(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var i=go(t,et.current);Xi(t,n),i=Dh(null,t,r,e,i,n);var o=$h();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,hl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Oh(t),i.updater=Yl,t.stateNode=i,i._reactInternals=t,id(t,r,e,n),t=ad(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&kh(t),ot(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=k1(r),e=tn(r,e),i){case 0:t=sd(null,t,r,e,n);break e;case 1:t=jp(null,t,r,e,n);break e;case 11:t=Ip(null,t,r,e,n);break e;case 14:t=Np(null,t,r,tn(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tn(r,i),sd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tn(r,i),jp(e,t,r,i,n);case 3:e:{if(Hv(t),e===null)throw Error(M(387));
vendor: 4,729 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,yv(e,t),yl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bo(Error(M(423)),t),t=Lp(e,t,r,n,i);break e}else if(r!==i){i=bo(Error(M(424)),t),t=Lp(e,t,r,n,i);break e}else for(At=Cr(t.stateNode.containerInfo.firstChild),It=t,Ee=!0,un=null,n=mv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yo(),r===i){t=qn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return vv(t),e===null&&td(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Yc(r,i)?s=null:o!==null&&Yc(r,o)&&(t.flags|=32),Vv(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return Wv(e,t,n);case 4:return Ih(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vo(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tn(r,i),Ip(e,t,r,i,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,we(ml,r._currentValue),r._currentValue=s,o!==null)if(hn(o.value,s)){if(o.children===i.children&&!gt.current){t=qn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Bn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),nd(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ot(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xi(t,n),i=Wt(i),r=r(i),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,i=tn(r,t.pendingProps),i=tn(r.type,i),Np(e,t,r,i,n);case 15:return Uv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tn(r,i),Wa(e,t),t.tag=1,yt(r)?(e=!0,hl(t)):e=!1,Xi(t,n),Mv(t,r,i),id(t,r,i,n),ad(null,t,r,!0,e,n);case 19:return qv(e,t,n);case 22:return Bv(e,t,n)}throw Error(M(156,t.tag))};function lw(e,t){return Ly(e,t)}function _1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,r){return new _1(e,t,n,r)}function Kh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k1(e){if(typeof e=="function")return Kh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hh)return 11;if(e===fh)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ga(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Kh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Di:return di(n.children,i,o,t);case dh:s=8,i|=8;break;case Pc:return e=Vt(12,n,t,i|2),e.elementType=Pc,e.lanes=o,e;case Rc:return e=Vt(13,n,t,i),e.elementType=Rc,e.lanes=o,e;case Ac:return e=Vt(19,n,t,i),e.elementType=Ac,e.lanes=o,e;case vy:return Zl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gy:s=10;break e;case yy:s=9;break e;case hh:s=11;break e;case fh:s=14;break e;case ur:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Vt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function di(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Zl(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=vy,e.lanes=n,e.stateNode={isHidden:!1},e}function ec(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}
vendor: 4,777 bytes, line 40
40function tc(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gh(e,t,n,r,i,o,s,a,l){return e=new E1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(o),e}function C1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Li,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uw(e){if(!e)return Ir;e=e._reactInternals;e:{if(wi(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(yt(n))return uv(e,n,t)}return t}function cw(e,t,n,r,i,o,s,a,l){return e=Gh(n,r,!0,e,i,o,s,a,l),e.context=uw(null),n=e.current,r=lt(),i=Rr(n),o=Bn(r,i),o.callback=t??null,Tr(n,o,i),e.current.lanes=i,Ks(e,i,r),vt(e,r),e}function eu(e,t,n,r){var i=t.current,o=lt(),s=Rr(i);return n=uw(n),t.context===null?t.context=n:t.pendingContext=n,t=Bn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Tr(i,t,s),e!==null&&(dn(e,i,s,o),Ba(e,i,s)),s}function El(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Wp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qh(e,t){Wp(e,t),(e=e.alternate)&&Wp(e,t)}function T1(){return null}var dw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yh(e){this._internalRoot=e}tu.prototype.render=Yh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));eu(e,t,null,null)};tu.prototype.unmount=Yh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gi(function(){eu(null,e,null,null)}),t[Hn]=null}};function tu(e){this._internalRoot=e}tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=By();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hr.length&&t!==0&&t<hr[n].priority;n++);hr.splice(n,0,e),n===0&&Hy(e)}};function Jh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qp(){}function P1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=El(s);o.call(u)}}var s=cw(t,r,e,0,null,!1,!1,"",qp);return e._reactRootContainer=s,e[Hn]=s.current,_s(e.nodeType===8?e.parentNode:e),gi(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=El(l);a.call(u)}}var l=Gh(e,0,!1,null,null,!1,!1,"",qp);return e._reactRootContainer=l,e[Hn]=l.current,_s(e.nodeType===8?e.parentNode:e),gi(function(){eu(t,l,n,r)}),l}function ru(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=El(s);a.call(l)}}eu(t,s,e,i)}else s=P1(n,t,e,i,r);return El(s)}Fy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Yo(t.pendingLanes);n!==0&&(gh(t,n|1),vt(t,Ie()),!(ue&6)&&(xo=Ie()+500,zr()))}break;case 13:gi(function(){var r=Wn(e,1);if(r!==null){var i=lt();dn(r,e,1,i)}}),Qh(e,1)}};yh=function(e){if(e.tag===13){var t=Wn(e,134217728);if(t!==null){var n=lt();dn(t,e,134217728,n)}Qh(e,134217728)}};Uy=function(e){if(e.tag===13){var t=Rr(e),n=Wn(e,t);if(n!==null){var r=lt();dn(n,e,t,r)}Qh(e,t)}};By=function(){return fe};Vy=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};Fc=function(e,t,n){switch(t){case"input":if(Nc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Kl(r);if(!i)throw Error(M(90));by(r),Nc(r,i)}}}break;case"textarea":Sy(e,n);break;case"select":t=n.value,t!=null&&Gi(e,!!n.multiple,t,!1)}};Ry=Hh;Ay=gi;
40var R1={usingClientEntryPoint:!1,Events:[Qs,Fi,Kl,Ty,Py,Hh]},Bo={findFiberByHostInstance:ei,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},A1={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ny(e),e===null?null:e.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||T1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{Vl=Sa.inject(A1),En=Sa}catch{}}Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R1;Dt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jh(t))throw Error(M(200));return C1(e,t,null,n)};Dt.createRoot=function(e,t){if(!Jh(e))throw Error(M(299));var n=!1,r="",i=dw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gh(e,1,!1,null,null,n,!1,r,i),e[Hn]=t.current,_s(e.nodeType===8?e.parentNode:e),new Yh(t)};Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Ny(t),e=e===null?null:e.stateNode,e};Dt.flushSync=function(e){return gi(e)};Dt.hydrate=function(e,t,n){if(!nu(t))throw Error(M(200));return ru(null,e,t,!0,n)};Dt.hydrateRoot=function(e,t,n){if(!Jh(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=dw;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=cw(t,null,e,1,n??null,i,!1,o,s),e[Hn]=t.current,_s(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new tu(t)};Dt.render=function(e,t,n){if(!nu(t))throw Error(M(200));return ru(null,e,t,!1,n)};Dt.unmountComponentAtNode=function(e){if(!nu(e))throw Error(M(40));return e._reactRootContainer?(gi(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[Hn]=null})}),!0):!1};Dt.unstable_batchedUpdates=Hh;Dt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return ru(e,t,n,!1,r)};Dt.version="18.3.1-next-f1338f8080-20240426";function hw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hw)}catch(e){console.error(e)}}hw(),hy.exports=Dt;var Js=hy.exports;const fw=Ul(Js);var pw,Kp=Js;pw=Kp.createRoot,Kp.hydrateRoot;const O1=1,I1=1e6;let nc=0;function N1(){return nc=(nc+1)%Number.MAX_SAFE_INTEGER,nc.toString()}const rc=new Map,Gp=e=>{if(rc.has(e))return;const t=setTimeout(()=>{rc.delete(e),us({type:"REMOVE_TOAST",toastId:e})},I1);rc.set(e,t)},j1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,O1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Gp(n):e.toasts.forEach(r=>{Gp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Qa=[];let Ya={toasts:[]};function us(e){Ya=j1(Ya,e),Qa.forEach(t=>{t(Ya)})}function L1({...e}){const t=N1(),n=i=>us({type:"UPDATE_TOAST",toast:{...i,id:t}}
vendor: 13,266 bytes, line 40
40),r=()=>us({type:"DISMISS_TOAST",toastId:t});return us({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function D1(){const[e,t]=b.useState(Ya);return b.useEffect(()=>(Qa.push(t),()=>{const n=Qa.indexOf(t);n>-1&&Qa.splice(n,1)}),[e]),{...e,toast:L1,dismiss:n=>us({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mw(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Qp(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Qp(e[i],null)}}}}function Ge(...e){return b.useCallback(mw(...e),e)}function Xs(e,t=[]){let n=[];function r(o,s){const a=b.createContext(s),l=n.length;n=[...n,s];const u=h=>{var p;const{scope:f,children:d,...m}=h,g=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,w=b.useMemo(()=>m,Object.values(m));return C.jsx(g.Provider,{value:w,children:d})};u.displayName=o+"Provider";function c(h,f){var g;const d=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,m=b.useContext(d);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>b.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,$1(i,...t)]}function $1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(o)[`__scope${u}`];return{...a,...h}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Cl(e){const t=z1(e),n=b.forwardRef((r,i)=>{const{children:o,...s}=r,a=b.Children.toArray(o),l=a.find(U1);if(l){const u=l.props.children,c=a.map(h=>h===l?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:h);return C.jsx(t,{...s,ref:i,children:b.isValidElement(u)?b.cloneElement(u,void 0,c):null})}return C.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var M1=Cl("Slot");function z1(e){const t=b.forwardRef((n,r)=>{const{children:i,...o}=n;if(b.isValidElement(i)){const s=V1(i),a=B1(o,i.props);return i.type!==b.Fragment&&(a.ref=r?mw(r,s):s),b.cloneElement(i,a)}return b.Children.count(i)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gw=Symbol("radix.slottable");function F1(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=gw,t}function U1(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gw}function B1(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function V1(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function H1(e){const t=e+"CollectionProvider",[n,r]=Xs(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:w,children:p}=g,y=U.useRef(null),v=U.useRef(new Map).current;return C.jsx(i,{scope:w,itemMap:v,collectionRef:y,children:p})};s.displayName=t;const a=e+"CollectionSlot",l=Cl(a),u=U.forwardRef((g,w)=>{const{scope:p,children:y}=g,v=o(a,p),S=Ge(w,v.collectionRef);return C.jsx(l,{ref:S,children:y})});u.displayName=a;const c=e+"CollectionItemSlot",h="data-radix-collection-item",f=Cl(c),d=U.forwardRef((g,w)=>{const{scope:p,children:y,...v}=g,S=U.useRef(null),E=Ge(w,S),_=o(c,p);return U.useEffect(()=>(_.itemMap.set(S,{ref:S,...v}),()=>void _.itemMap.delete(S))),C.jsx(f,{[h]:"",ref:E,children:y})});d.displayName=c;function m(g){const w=o(e+"CollectionConsumer",g);return U.useCallback(()=>{const y=w.collectionRef.current;if(!y)return[];const v=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((_,T)=>v.indexOf(_.ref.current)-v.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},m,r]}var W1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=W1.reduce((e,t)=>{const n=Cl(`Primitive.${t}`),r=b.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yw(e,t){e&&Js.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function q1(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var K1="DismissableLayer",wd="dismissableLayer.update",G1="dismissableLayer.pointerDownOutside",Q1="dismissableLayer.focusOutside",Yp,vw=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xh=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=b.useContext(vw),[c,h]=b.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=b.useState({}),m=Ge(t,T=>h(T)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),p=g.indexOf(w),y=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=p,E=J1(T=>{const R=T.target,P=[...u.branches].some(I=>I.contains(R));!S||P||(i==null||i(T),s==null||s(T),T.defaultPrevented||a==null||a())},f),_=X1(T=>{const R=T.target;[...u.branches].some(I=>I.contains(R))||(o==null||o(T),s==null||s(T),T.defaultPrevented||a==null||a())},f);return q1(T=>{y===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),b.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Jp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Yp)}},[c,f,n,u]),b.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Jp())},[c,u]),b.useEffect(()=>{const T=()=>d({});return document.addEventListener(wd,T),()=>document.removeEventListener(wd,T)},[]),C.jsx(Fe.div,{...l,ref:m,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,E.onPointerDownCapture)})});Xh.displayName=K1;var Y1="DismissableLayerBranch",ww=b.forwardRef((e,t)=>{const n=b.useContext(vw),r=b.useRef(null),i=Ge(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),C.jsx(Fe.div,{...e,ref:i})});ww.displayName=Y1;function J1(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){bw(G1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function X1(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=b.useRef(!1);return b.useEffect(()=>{const i=o=>{o.target&&!r.current&&bw(Q1,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jp(){const e=new CustomEvent(wd);document.dispatchEvent(e)}function bw(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?yw(i,o):i.dispatchEvent(o)}var Z1=Xh,e_=ww,Kn=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},t_="Portal",xw=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=b.useState(!1);Kn(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?fw.createPortal(C.jsx(Fe.div,{...r,ref:t}),s):null});xw.displayName=t_;function n_(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var bi=e=>{const{present:t,children:n}=e,r=r_(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Ge(r.ref,i_(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:o}):null};bi.displayName="Presence";function r_(e){const[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),o=b.useRef("none"),s=e?"mounted":"unmounted",[a,l]=n_(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=_a(r.current);o.current=a==="mounted"?u:"none"},[a]),Kn(()=>{const u=r.current,c=i.current;if(c!==e){const f=o.current,d=_a(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Kn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,h=d=>{const g=_a(r.current).includes(d.animationName);if(d.target===t&&g&&(l("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=d=>{d.target===t&&(o.current=_a(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _a(e){return(e==null?void 0:e.animationName)||"none"}function i_(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var o_=cy[" useInsertionEffect ".trim().toString()]||Kn;function s_({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=a_({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=b.useRef(e!==void 0);b.useEffect(()=>{const h=c.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=b.useCallback(c=>{var h;if(a){const f=l_(c)?c(e):c;f!==e&&((h=s.current)==null||h.call(s,f))}else o(c)},[a,e,o,s]);return[l,u]}function a_({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),i=b.useRef(n),o=b.useRef(t);return o_(()=>{o.current=t},[t]),b.useEffect(()=>{var s;i.current!==n&&((s=o.current)==null||s.call(o,n),i.current=n)},[n,i]),[n,r,o]}function l_(e){return typeof e=="function"}var u_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),c_="VisuallyHidden",iu=b.forwardRef((e,t)=>C.jsx(Fe.span,{...e,ref:t,style:{...u_,...e.style}}));iu.displayName=c_;var d_=iu,Zh="ToastProvider",[ef,h_,f_]=H1("Toast"),[Sw,CL]=Xs("Toast",[f_]),[p_,ou]=Sw(Zh),_w=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,l]=b.useState(null),[u,c]=b.useState(0),h=b.useRef(!1),f=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zh}\`. Expected non-empty \`string\`.`),C.jsx(ef.Provider,{scope:t,children:C.jsx(p_,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>c(d=>d+1),[]),onToastRemove:b.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:s})})};_w.displayName=Zh;var kw="ToastViewport",m_=["F8"],bd="toast.viewportPause",xd="toast.viewportResume",Ew=b.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=m_,label:i="Notifications ({hotkey})",...o}=e,s=ou(kw,n),a=h_(n),l=b.useRef(null),u=b.useRef(null),c=b.useRef(null),h=b.useRef(null),f=Ge(t,h,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=s.toastCount>0;b.useEffect(()=>{const w=p=>{var v;r.length!==0&&r.every(S=>p[S]||p.code===S)&&((v=h.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=l.current,p=h.current;if(m&&w&&p){const y=()=>{if(!s.isClosePausedRef.current){const _=new CustomEvent(bd);p.dispatchEvent(_),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const _=new CustomEvent(xd);p.dispatchEvent(_),s.isClosePausedRef.current=!1}},S=_=>{!w.contains(_.relatedTarget)&&v()},E=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",y),w.addEventListener("focusout",S),w.addEventListener("pointermove",y),w.addEventListener("pointerleave",E),window.addEventListener("blur",y),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",y),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",y),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",y),window.removeEventListener("focus",v)}}},[m,s.isClosePausedRef]);const g=b.useCallback(({tabbingDirection:w})=>{const y=a().map(v=>{const S=v.ref.current,E=[S,...P_(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?y.reverse():y).flat()},[a]);return b.useEffect(()=>{const w=h.current;if(w){const p=y=>{var E,_,T;const v=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!v){const R=document.activeElement,P=y.shiftKey;if(y.target===w&&P){(E=u.current)==null||E.focus();return}const A=g({tabbingDirection:P?"backwards":"forwards"}),V=A.findIndex($=>$===R);ic(A.slice(V+1))?y.preventDefault():P?(_=u.current)==null||_.focus():(T=c.current)==null||T.focus()}};return w.addEventListener("keydown",p),()=>w.removeEventListener("keydown",p)}},[a,g]),C.jsxs(e_,{ref:l,role:"region","aria-label":i.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&C.jsx(Sd,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});ic(w)}}),C.jsx(ef.Slot,{scope:n,children:C.jsx(Fe.ol,{tabIndex:-1,...o,ref:f})}),m&&C.jsx(Sd,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});ic(w)}})]})});Ew.displayName=kw;var Cw="ToastFocusProxy",Sd=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=ou(Cw,n);return C.jsx(iu,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Sd.displayName=Cw;var Zs="Toast",g_="toast.swipeStart",y_="toast.swipeMove",v_="toast.swipeCancel",w_="toast.swipeEnd",Tw=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[a,l]=s_({prop:r,defaultProp:i??!0,onChange:o,caller:Zs});return C.jsx(bi,{present:n||a,children:C.jsx(S_,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:at(e.onPause),onResume:at(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:c,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:c,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});Tw.displayName=Zs;var[b_,x_]=Sw(Zs,{onClose(){}}),S_=b.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:d,...m}=e,g=ou(Zs,n),[w,p]=b.useState(null),y=Ge(t,$=>p($)),v=b.useRef(null),S=b.useRef(null),E=i||g.duration,_=b.useRef(0),T=b.useRef(E),R=b.useRef(0),{onToastAdd:P,onToastRemove:I}=g,D=at(()=>{var B;(w==null?void 0:w.contains(document.activeElement))&&((B=g.viewport)==null||B.focus()),s()}),A=b.useCallback($=>{!$||$===1/0||(window.clearTimeout(R.current),_.current=new Date().getTime(),R.current=window.setTimeout(D,$))},[D]);b.useEffect(()=>{const $=g.viewport;if($){const B=()=>{A(T.current),u==null||u()},H=()=>{const q=new Date().getTime()-_.current;T.current=T.current-q,window.clearTimeout(R.current),l==null||l()};return $.addEventListener(bd,H),$.addEventListener(xd,B),()=>{$.removeEventListener(bd,H),$.removeEventListener(xd,B)}}},[g.viewport,E,l,u,A]),b.useEffect(()=>{o&&!g.isClosePausedRef.current&&A(E)},[o,E,g.isClosePausedRef,A]),b.useEffect(()=>(P(),()=>I()),[P,I]);const V=b.useMemo(()=>w?jw(w):null,[w]);return g.viewport?C.jsxs(C.Fragment,{children:[V&&C.jsx(__,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),C.jsx(b_,{scope:n,onClose:D,children:Js.createPortal(C.jsx(ef.ItemSlot,{scope:n,children:C.jsx(Z1,{asChild:!0,onEscapeKeyDown:ve(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||D(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Fe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...m,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:ve(e.onPointerDown,$=>{$.button===0&&(v.current={x:$.clientX,y:$.clientY})}),onPointerMove:ve(e.onPointerMove,$=>{if(!v.current)return;const B=$.clientX-v.current.x,H=$.clientY-v.current.y,q=!!S.current,N=["left","right"].includes(g.swipeDirection),j=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,x=N?j(0,B):0,Y=N?0:j(0,H),G=$.pointerType==="touch"?10:2,k={x,y:Y},X={originalEvent:$,delta:k};q?(S.current=k,ka(y_,h,X,{discrete:!1})):Xp(k,g.swipeDirection,G)?(S.current=k,ka(g_,c,X,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(B)>G||Math.abs(H)>G)&&(v.current=null)}),onPointerUp:ve(e.onPointerUp,$=>{const B=S.current,H=$.target;if(H.hasPointerCapture($.pointerId)&&H.releasePointerCapture($.pointerId),S.current=null,v.current=null,B){const q=$.currentTarget,N={originalEvent:$,delta:B};Xp(B,g.swipeDirection,g.swipeThreshold)?ka(w_,d,N,{discrete:!0}):ka(v_,f,N,{discrete:!0}),q.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),__=e=>{const{__scopeToast:t,children:n,...r}=e,i=ou(Zs,t),[o,s]=b.useState(!1),[a,l]=b.useState(!1);return C_(()=>s(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:C.jsx(xw,{asChild:!0,children:C.jsx(iu,{...r,children:o&&C.jsxs(C.Fragment,{children:[i.label," ",n]})})})},k_="ToastTitle",Pw=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Fe.div,{...r,ref:t})});Pw.displayName=k_;var E_="ToastDescription",Rw=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Fe.div,{...r,ref:t})});Rw.displayName=E_;var Aw="ToastAction",Ow=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?C.jsx(Nw,{altText:n,asChild:!0,children:C.jsx(tf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Aw}\`. Expected non-empty \`string\`.`),null)});Ow.displayName=Aw;var Iw="ToastClose",tf=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=x_(Iw,n);return C.jsx(Nw,{asChild:!0,children:C.jsx(Fe.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,i.onClose)})})});tf.displayName=Iw;var Nw=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return C.jsx(Fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function jw(e){const t=[];
vendor: 6,990 bytes, lines 40-100
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),T_(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...jw(r))}}),t}function ka(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?yw(i,o):i.dispatchEvent(o)}var Xp=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function C_(e=()=>{}){const t=at(e);Kn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function T_(e){return e.nodeType===e.ELEMENT_NODE}function P_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ic(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var R_=_w,Lw=Ew,Dw=Tw,$w=Pw,Mw=Rw,zw=Ow,Fw=tf;function Uw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Uw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Uw(e))&&(r&&(r+=" "),r+=t);return r}const Zp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,em=Bw,Vw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return em(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],h=o==null?void 0:o[u];if(c===null)return null;const f=Zp(c)||Zp(h);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[h,f]=c;return f===void 0||(u[h]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(m=>{let[g,w]=m;return Array.isArray(w)?w.includes({...o,...a}[g]):{...o,...a}[g]===w})?[...u,h,f]:u},[]);return em(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const A_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var O_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const I_=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>b.createElement("svg",{ref:l,...O_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Hw("lucide",i),...a},[...s.map(([u,c])=>b.createElement(u,c)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Fr=(e,t)=>{const n=b.forwardRef(({className:r,...i},o)=>b.createElement(I_,{ref:o,iconNode:t,className:Hw(`lucide-${A_(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const N_=Fr("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const j_=Fr("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const L_=Fr("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const tm=Fr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const D_=Fr("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const nm=Fr("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const $_=Fr("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const M_=Fr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,913 bytes, line 100
100],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nf="-",z_=e=>{const t=U_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(nf);return a[0]===""&&a.length!==1&&a.shift(),Ww(a,t)||F_(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},Ww=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Ww(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(nf);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},rm=/^\[(.+)\]$/,F_=e=>{if(rm.test(e)){const t=rm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},U_=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return V_(Object.entries(e.classGroups),n).forEach(([o,s])=>{_d(s,r,o,t)}),r},_d=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:im(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(B_(i)){_d(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{_d(s,im(t,o),n,r)})})},im=(e,t)=>{let n=e;return t.split(nf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},B_=e=>e.isThemeGetter,V_=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e,H_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},qw="!",W_=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=a=>{const l=[];let u=0,c=0,h;for(let w=0;w<a.length;w++){let p=a[w];if(u===0){if(p===i&&(r||a.slice(w,w+o)===t)){l.push(a.slice(c,w)),c=w+o;continue}if(p==="/"){h=w;continue}}p==="["?u++:p==="]"&&u--}const f=l.length===0?a:a.substring(c),d=f.startsWith(qw),m=d?f.substring(1):f,g=h&&h>c?h-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:s}):s},q_=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},K_=e=>({cache:H_(e.cacheSize),parseClassName:W_(e),...z_(e)}),G_=/\s+/,Q_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(G_);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=n(u);let m=!!d,g=r(m?f.substring(0,d):f);if(!g){if(!m){a=u+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=u+(a.length>0?" "+a:a);continue}m=!1}const w=q_(c).join(":"),p=h?w+qw:w,y=p+g;if(o.includes(y))continue;o.push(y);const v=i(g,m);for(let S=0;S<v.length;++S){const E=v[S];o.push(p+E)}a=u+(a.length>0?" "+a:a)}return a};function Y_(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Kw(t))&&(r&&(r+=" "),r+=n);return r}const Kw=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Kw(e[r]))&&(n&&(n+=" "),n+=t);return n};function J_(e,...t){let n,r,i,o=s;function s(l){const u=t.reduce((c,h)=>h(c),e());return n=K_(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Q_(l,n);return i(l,c),c}return function(){return o(Y_.apply(null,arguments))}}const xe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gw=/^\[(?:([a-z-]+):)?(.+)\]$/i,X_=/^\d+\/\d+$/,Z_=new Set(["px","full","screen"]),ek=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ik=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nn=e=>eo(e)||Z_.has(e)||X_.test(e),or=e=>Po(e,"length",hk),eo=e=>!!e&&!Number.isNaN(Number(e)),oc=e=>Po(e,"number",eo),Vo=e=>!!e&&Number.isInteger(Number(e)),ok=e=>e.endsWith("%")&&eo(e.slice(0,-1)),re=e=>Gw.test(e),sr=e=>ek.test(e),sk=new Set(["length","size","percentage"]),ak=e=>Po(e,sk,Qw),lk=e=>Po(e,"position",Qw),uk=new Set(["image","url"]),ck=e=>Po(e,uk,pk),dk=e=>Po(e,"",fk),Ho=()=>!0,Po=(e,t,n)=>{const r=Gw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},hk=e=>tk.test(e)&&!nk.test(e),Qw=()=>!1,fk=e=>rk.test(e),pk=e=>ik.test(e),mk=()=>{const e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),i=xe("borderColor"),o=xe("borderRadius"),s=xe("borderSpacing"),a=xe("borderWidth"),l=xe("contrast"),u=xe("grayscale"),c=xe("hueRotate"),h=xe("invert"),f=xe("gap"),d=xe("gradientColorStops"),m=xe("gradientColorStopPositions"),g=xe("inset"),w=xe("margin"),p=xe("opacity"),y=xe("padding"),v=xe("saturate"),S=xe("scale"),E=xe("sepia"),_=xe("skew"),T=xe("space"),R=xe("translate"),P=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",re,t],A=()=>[re,t],V=()=>["",Nn,or],$=()=>["auto",eo,re],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",re],x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[eo,re];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[Nn,or],blur:["none","",sr,re],brightness:Y(),borderColor:[e],borderRadius:["n
100one","","full",sr,re],borderSpacing:A(),borderWidth:V(),contrast:Y(),grayscale:j(),hueRotate:Y(),invert:j(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[ok,or],inset:D(),margin:D(),opacity:Y(),padding:A(),saturate:Y(),scale:Y(),sepia:j(),skew:Y(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[sr]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),re]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vo,re]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Vo,re]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",Vo,re]},re]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[Vo,re]},re]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[sr]},sr]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sr,or]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oc]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",eo,oc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nn,or]}],"underline-offset":[{"underline-offset":["auto",Nn,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),lk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ak]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ck]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
vendor: 5,180 bytes, line 100
100],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Nn,re]}],"outline-w":[{outline:[Nn,or]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Nn,or]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sr,dk]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",sr,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Vo,re]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 100
100],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Nn,or,oc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},gk=J_(mk);function Lt(...e){return gk(Bw(e))}const yk=R_,Yw=b.forwardRef(({className:e,...t},n)=>C.jsx(Lw,{ref:n,className:Lt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Yw.displayName=Lw.displayName;const vk=Vw("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Jw=b.forwardRef(({className:e,variant:t,...n},r)=>C.jsx(Dw,{ref:r,className:Lt(vk({variant:t}),e),...n}));Jw.displayName=Dw.displayName;const wk=b.forwardRef(({className:e,...t},n)=>C.jsx(zw,{ref:n,className:Lt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));wk.displayName=zw.displayName;const Xw=b.forwardRef(({className:e,...t},n)=>C.jsx(Fw,{ref:n,className:Lt("absolute right-2 top-2 rounded-md p-1 text-foreground
100/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:C.jsx(M_,{className:"h-4 w-4"})}));Xw.displayName=Fw.displayName;const Zw=b.forwardRef(({className:e,...t},n)=>C.jsx($w,{ref:n,className:Lt("text-sm font-semibold",e),...t}));Zw.displayName=$w.displayName;const e0=b.forwardRef(({className:e,...t},n)=>C.jsx(Mw,{ref:n,className:Lt("text-sm opacity-90",e),...t}));e0.displayName=Mw.displayName;function bk(){const{toasts:e}=D1();return C.jsxs(yk,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return C.jsxs(Jw,{...o,children:[C.jsxs("div",{className:"grid gap-1",children:[n&&C.jsx(Zw,{children:n}),r&&C.jsx(e0,{children:r})]}),i,C.jsx(Xw,{})]},t)}),C.jsx(Yw,{})]})}var om=["light","dark"],xk="(prefers-color-scheme: dark)",Sk=b.createContext(void 0),_k={setTheme:e=>{},themes:[]},kk=()=>{var e;return(e=b.useContext(Sk))!=null?e:_k};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let u=o==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(m=>`'${m}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?om.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(m,g=!1,w=!0)=>{let p=s?s[m]:m,y=g?m+"|| ''":`'${p}'`,v="";return i&&w&&!g&&om.includes(m)&&(v+=`d.style.colorScheme = '${m}';`),n==="class"?g||p?v+=`c.add(${y})`:v+="null":p&&(v+=`d[s](n,${y})`),v},d=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${xk}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:d}})});var Ek=e=>{switch(e){case"success":return Pk;case"info":return Ak;case"warning":return Rk;case"error":return Ok;default:return null}},Ck=Array(12).fill(0),Tk=({visible:e,className:t})=>U.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},U.createElement("div",{className:"sonner-spinner"},Ck.map((n,r)=>U.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Pk=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Rk=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},U.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ak=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ok=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},U.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ik=U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),U.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Nk=()=>{let[e,t]=U.useState(document.hidden);return U.useEffect(()=>{let n=()=>{t(document.hidden)};
100return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},kd=1,jk=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:kd++,o=this.toasts.find(a=>a.id===i),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
100this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,o,s=r.then(async l=>{if(o=["resolve",l],U.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(Dk(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>s.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||kd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ft=new jk,Lk=(e,t)=>{let n=(t==null?void 0:t.id)||kd++;return ft.addToast({title:e,...t,id:n}),n},Dk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",$k=Lk,Mk=()=>ft.toasts,zk=()=>ft.getActiveToasts();Object.assign($k,{success:ft.success,info:ft.info,warning:ft.warning,error:ft.error,custom:ft.custom,message:ft.message,promise:ft.promise,dismiss:ft.dismiss,loading:ft.loading},{getHistory:Mk,getToasts:zk});function Fk(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Fk(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
100left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
100:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
100--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 101`);function Ea(e){return e.label!==void 0}var Uk=3,Bk="32px",Vk="16px",sm=4e3,Hk=356,Wk=14,qk=20,Kk=200;function Zt(...e){return e.filter(Boolean).join(" ")}function Gk(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Qk=e=>{var t,n,r,i,o,s,a,l,u,c,h;let{invert:f,toast:d,unstyled:m,interacting:g,setHeights:w,visibleToasts:p,heights:y,index:v,toasts:S,expanded:E,removeToast:_,defaultRichColors:T,closeButton:R,style:P,cancelButtonStyle:I,actionButtonStyle:D,className:A="",descriptionClassName:V="",duration:$,position:B,gap:H,loadingIcon:q,expandByDefault:N,classNames:j,icons:x,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:G}=e,[k,X]=U.useState(null),[pe,le]=U.useState(null),[ae,nt]=U.useState(!1),[rt,dt]=U.useState(!1),[St,Xn]=U.useState(!1),[mn,Si]=U.useState(!1),[_i,Br]=U.useState(!1),[ki,Vr]=U.useState(0),[On,jo]=U.useState(0),Hr=U.useRef(d.duration||$||sm),ia=U.useRef(null),In=U.useRef(null),Cu=v===0,Tu=v+1<=p,O=d.type,F=d.dismissible!==!1,ee=d.className||"",oe=d.descriptionClassName||"",ce=U.useMemo(()=>y.findIndex(te=>te.toastId===d.id)||0,[y,d.id]),_t=U.useMemo(()=>{var te;return(te=d.closeButton)!=null?te:R}
101,[d.closeButton,R]),gn=U.useMemo(()=>d.duration||$||sm,[d.duration,$]),kt=U.useRef(0),Mt=U.useRef(0),Zn=U.useRef(0),Ne=U.useRef(null),[er,Gt]=B.split("-"),Df=U.useMemo(()=>y.reduce((te,me,ke)=>ke>=ce?te:te+me.height,0),[y,ce]),$f=Nk(),rx=d.invert||f,Pu=O==="loading";Mt.current=U.useMemo(()=>ce*H+Df,[ce,Df]),U.useEffect(()=>{Hr.current=gn},[gn]),U.useEffect(()=>{nt(!0)},[]),U.useEffect(()=>{let te=In.current;if(te){let me=te.getBoundingClientRect().height;return jo(me),w(ke=>[{toastId:d.id,height:me,position:d.position},...ke]),()=>w(ke=>ke.filter(Qt=>Qt.toastId!==d.id))}},[w,d.id]),U.useLayoutEffect(()=>{if(!ae)return;let te=In.current,me=te.style.height;te.style.height="auto";let ke=te.getBoundingClientRect().height;te.style.height=me,jo(ke),w(Qt=>Qt.find(Yt=>Yt.toastId===d.id)?Qt.map(Yt=>Yt.toastId===d.id?{...Yt,height:ke}:Yt):[{toastId:d.id,height:ke,position:d.position},...Qt])},[ae,d.title,d.description,w,d.id]);let tr=U.useCallback(()=>{dt(!0),Vr(Mt.current),w(te=>te.filter(me=>me.toastId!==d.id)),setTimeout(()=>{_(d)},Kk)},[d,_,w,Mt]);U.useEffect(()=>{if(d.promise&&O==="loading"||d.duration===1/0||d.type==="loading")return;let te;return E||g||G&&$f?(()=>{if(Zn.current<kt.current){let me=new Date().getTime()-kt.current;Hr.current=Hr.current-me}Zn.current=new Date().getTime()})():Hr.current!==1/0&&(kt.current=new Date().getTime(),te=setTimeout(()=>{var me;(me=d.onAutoClose)==null||me.call(d,d),tr()},Hr.current)),()=>clearTimeout(te)},[E,g,d,O,G,$f,tr]),U.useEffect(()=>{d.delete&&tr()},[tr,d.delete]);function ix(){var te,me,ke;return x!=null&&x.loading?U.createElement("div",{className:Zt(j==null?void 0:j.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":O==="loading"},x.loading):q?U.createElement("div",{className:Zt(j==null?void 0:j.loader,(me=d==null?void 0:d.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":O==="loading"},q):U.createElement(Tk,{className:Zt(j==null?void 0:j.loader,(ke=d==null?void 0:d.classNames)==null?void 0:ke.loader),visible:O==="loading"})}return U.createElement("li",{tabIndex:0,ref:In,className:Zt(A,ee,j==null?void 0:j.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[O],(n=d==null?void 0:d.classNames)==null?void 0:n[O]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:T,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":ae,"data-promise":!!d.promise,"data-swiped":_i,"data-removed":rt,"data-visible":Tu,"data-y-position":er,"data-x-position":Gt,"data-index":v,"data-front":Cu,"data-swiping":St,"data-dismissible":F,"data-type":O,"data-invert":rx,"data-swipe-out":mn,"data-swipe-direction":pe,"data-expanded":!!(E||N&&ae),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${rt?ki:Mt.current}px`,"--initial-height":N?"auto":`${On}px`,...P,...d.style},onDragEnd:()=>{Xn(!1),X(null),Ne.current=null},onPointerDown:te=>{Pu||!F||(ia.current=new Date,Vr(Mt.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(Xn(!0),Ne.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,me,ke,Qt;if(mn||!F)return;Ne.current=null;let Yt=Number(((te=In.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nr=Number(((me=In.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wr=new Date().getTime()-((ke=ia.current)==null?void 0:ke.getTime()),Jt=k==="x"?Yt:nr,rr=Math.abs(Jt)/Wr;if(Math.abs(Jt)>=qk||rr>.11){Vr(Mt.current),(Qt=d.onDismiss)==null||Qt.call(d,d),le(k==="x"?Yt>0?"right":"left":nr>0?"down":"up"),tr(),Si(!0),Br(!1);return}Xn(!1),X(null)},onPointerMove:te=>{var me,ke,Qt,Yt;if(!Ne.current||!F||((me=window.getSelection())==null?void 0:me.toString().length)>0)return;let nr=te.clientY-Ne.current.y,Wr=te.clientX-Ne.current.x,Jt=(ke=e.swipeDirections)!=null?ke:Gk(B);!k&&(Math.abs(Wr)>1||Math.abs(nr)>1)&&X(Math.abs(Wr)>Math.abs(nr)?"x":"y");let rr={x:0,y:0};k==="y"?(Jt.includes("top")||Jt.includes("bottom"))&&(Jt.includes("top")&&nr<0||Jt.includes("bottom")&&nr>0)&&(rr.y=nr):k==="x"&&(Jt.includes("left")||Jt.includes("right"))&&(Jt.includes("left")&&Wr<0||Jt.includes("right")&&Wr>0)&&(rr.x=Wr),(Math.abs(rr.x)>0||Math.abs(rr.y)>0)&&Br(!0),(Qt=In.current)==null||Qt.style.setProperty("--swipe-amount-x",`${rr.x}px`),(Yt=In.current)==null||Yt.style.setProperty("--swipe-amount-y",`${rr.y}px`)}},_t&&!d.jsx?U.createElement("button",{"aria-label":Y,"data-disabled":Pu,"data-close-button":!0,onClick:Pu||!F?()=>{}:()=>{var te;tr(),(te=d.onDismiss)==null||te.call(d,d)},className:Zt(j==null?void 0:j.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},(o=x==null?void 0:x.close)!=null?o:Ik):null,d.jsx||b.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:U.createElement(U.Fragment,null,O||d.icon||d.promise?U.createElement("div",{"data-icon":"",className:Zt(j==null?void 0:j.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||ix():null,d.type!=="loading"?d.icon||(x==null?void 0:x[O])||Ek(O):null):null,U.createElement("div",{"data-content":"",className:Zt(j==null?void 0:j.content,(a=d==null?void 0:d.classNames)==null?void 0:a.content)},U.createElement("div",{"data-title":"",className:Zt(j==null?void 0:j.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?U.createElement("div",{"data-description":"",className:Zt(V,oe,j==null?void 0:j.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),b.isValidElement(d.cancel)?d.cancel:d.cancel&&Ea(d.cancel)?U.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||I,onClick:te=>{var me,ke;Ea(d.cancel)&&F&&((ke=(me=d.cancel).onClick)==null||ke.call(me,te),tr())},className:Zt(j==null?void 0:j.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,b.isValidElement(d.action)?d.action:d.action&&Ea(d.action)?U.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||D,onClick:te=>{var me,ke;Ea(d.action)&&((ke=(me=d.action).onClick)==null||ke.call(me,te),!te.defaultPrevented&&tr())},className:Zt(j==null?void 0:j.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function am(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Yk(e,t){let n={};return[e,t].forEach((r,i)=>{let o=i===1,s=o?"--mobile-offset":"--offset",a=o?Vk:Bk;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Jk=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:s,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:m=Uk,toastOptions:g,dir:w=am(),gap:p=Wk,loadingIcon:y,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[_,T]=U.useState([]),R=U.useMemo(()=>Array.from(new Set([r].concat(_.filter(G=>G.position).map(G=>G.position)))),[_,r]),[P,I]=U.useState([]),[D,A]=U.useState(!1),[V,$]=U.useState(!1),[B,H]=U.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
101k":"light"),q=U.useRef(null),N=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=U.useRef(null),x=U.useRef(!1),Y=U.useCallback(G=>{T(k=>{var X;return(X=k.find(pe=>pe.id===G.id))!=null&&X.delete||ft.dismiss(G.id),k.filter(({id:pe})=>pe!==G.id)})},[]);return U.useEffect(()=>ft.subscribe(G=>{if(G.dismiss){T(k=>k.map(X=>X.id===G.id?{...X,delete:!0}:X));return}setTimeout(()=>{fw.flushSync(()=>{T(k=>{let X=k.findIndex(pe=>pe.id===G.id);return X!==-1?[...k.slice(0,X),{...k[X],...G},...k.slice(X+1)]:[G,...k]})})})}),[]),U.useEffect(()=>{if(c!=="system"){H(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:k})=>{H(k?"dark":"light")})}catch{G.addListener(({matches:X})=>{try{H(X?"dark":"light")}catch(pe){console.error(pe)}})}},[c]),U.useEffect(()=>{_.length<=1&&A(!1)},[_]),U.useEffect(()=>{let G=k=>{var X,pe;i.every(le=>k[le]||k.code===le)&&(A(!0),(X=q.current)==null||X.focus()),k.code==="Escape"&&(document.activeElement===q.current||(pe=q.current)!=null&&pe.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[i]),U.useEffect(()=>{if(q.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,x.current=!1)}},[q.current]),U.createElement("section",{ref:t,"aria-label":`${S} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((G,k)=>{var X;let[pe,le]=G.split("-");return _.length?U.createElement("ol",{key:G,dir:w==="auto"?am():w,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":B,"data-y-position":pe,"data-lifted":D&&_.length>1&&!o,"data-x-position":le,style:{"--front-toast-height":`${((X=P[0])==null?void 0:X.height)||0}px`,"--width":`${Hk}px`,"--gap":`${p}px`,...d,...Yk(l,u)},onBlur:ae=>{x.current&&!ae.currentTarget.contains(ae.relatedTarget)&&(x.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||x.current||(x.current=!0,j.current=ae.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{V||A(!1)},onDragEnd:()=>A(!1),onPointerDown:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},_.filter(ae=>!ae.position&&k===0||ae.position===G).map((ae,nt)=>{var rt,dt;return U.createElement(Qk,{key:ae.id,icons:v,index:nt,toast:ae,defaultRichColors:h,duration:(rt=g==null?void 0:g.duration)!=null?rt:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:m,closeButton:(dt=g==null?void 0:g.closeButton)!=null?dt:s,interacting:V,position:G,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:_.filter(St=>St.position==ae.position),heights:P.filter(St=>St.position==ae.position),setHeights:I,expandByDefault:o,gap:p,loadingIcon:y,expanded:D,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const Xk=({...e})=>{const{theme:t="system"}=kk();return C.jsx(Jk,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Zk=["top","right","bottom","left"],Nr=Math.min,Pt=Math.max,Tl=Math.round,Ca=Math.floor,jr=e=>({x:e,y:e}),eE={left:"right",right:"left",bottom:"top",top:"bottom"},tE={start:"end",end:"start"};function Ed(e,t,n){return Pt(e,Nr(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function rf(e){return e==="x"?"y":"x"}function of(e){return e==="y"?"height":"width"}function Lr(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function sf(e){return rf(Lr(e))}function nE(e,t,n){n===void 0&&(n=!1);const r=Ro(e),i=sf(e),o=of(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Pl(s)),[s,Pl(s)]}function rE(e){const t=Pl(e);return[Cd(e),t,Cd(t)]}function Cd(e){return e.replace(/start|end/g,t=>tE[t])}function iE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function oE(e,t,n,r){const i=Ro(e);let o=iE(Qn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Cd)))),o}function Pl(e){return e.replace(/left|right|bottom|top/g,t=>eE[t])}function sE(e){return{top:0,right:0,bottom:0,left:0,...e}}function t0(e){return typeof e!="number"?sE(e):{top:e,right:e,bottom:e,left:e}}function Rl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lm(e,t,n){let{reference:r,floating:i}=e;const o=Lr(t),s=sf(t),a=of(s),l=Qn(t),u=o==="y",c=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-i.width,y:h};break;default:d={x:r.x,y:r.y}}switch(Ro(t)){case"start":d[s]-=f*(n&&u?-1:1);break;case"end":d[s]+=f*(n&&u?-1:1);break}return d}const aE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}
vendor: 9,689 bytes, line 101
101=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=lm(u,r,l),f=r,d={},m=0;for(let g=0;g<a.length;g++){const{name:w,fn:p}=a[g],{x:y,y:v,data:S,reset:E}=await p({x:c,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,h=v??h,d={...d,[w]:{...d[w],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:c,y:h}=lm(u,f,l)),g=-1)}return{x:c,y:h,placement:f,strategy:i,middlewareData:d}};async function Is(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=Gn(t,e),m=t0(d),w=a[f?h==="floating"?"reference":"floating":h],p=Rl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y=h==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},E=Rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(p.top-E.top+m.top)/S.y,bottom:(E.bottom-p.bottom+m.bottom)/S.y,left:(p.left-E.left+m.left)/S.x,right:(E.right-p.right+m.right)/S.x}}const lE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Gn(e,t)||{};if(u==null)return{};const h=t0(c),f={x:n,y:r},d=sf(i),m=of(d),g=await s.getDimensions(u),w=d==="y",p=w?"top":"left",y=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[d]-f[d]-o.floating[m],E=f[d]-o.reference[d],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let T=_?_[v]:0;(!T||!await(s.isElement==null?void 0:s.isElement(_)))&&(T=a.floating[v]||o.floating[m]);const R=S/2-E/2,P=T/2-g[m]/2-1,I=Nr(h[p],P),D=Nr(h[y],P),A=I,V=T-g[m]-D,$=T/2-g[m]/2+R,B=Ed(A,$,V),H=!l.arrow&&Ro(i)!=null&&$!==B&&o.reference[m]/2-($<A?I:D)-g[m]/2<0,q=H?$<A?$-A:$-V:0;return{[d]:f[d]+q,data:{[d]:B,centerOffset:$-B-q,...H&&{alignmentOffset:q}},reset:H}}}),uE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=Gn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=Qn(i),y=Lr(a),v=Qn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(v||!g?[Pl(a)]:rE(a)),_=m!=="none";!f&&_&&E.push(...oE(a,g,m,S));const T=[a,...E],R=await Is(t,w),P=[];let I=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&P.push(R[p]),h){const $=nE(i,s,S);P.push(R[$[0]],R[$[1]])}if(I=[...I,{placement:i,overflows:P}],!P.every($=>$<=0)){var D,A;const $=(((D=o.flip)==null?void 0:D.index)||0)+1,B=T[$];if(B)return{data:{index:$,overflows:I},reset:{placement:B}};let H=(A=I.filter(q=>q.overflows[0]<=0).sort((q,N)=>q.overflows[1]-N.overflows[1])[0])==null?void 0:A.placement;if(!H)switch(d){case"bestFit":{var V;const q=(V=I.filter(N=>{if(_){const j=Lr(N.placement);return j===y||j==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(j=>j>0).reduce((j,x)=>j+x,0)]).sort((N,j)=>N[1]-j[1])[0])==null?void 0:V[0];q&&(H=q);break}case"initialPlacement":H=a;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function um(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cm(e){return Zk.some(t=>e[t]>=0)}const cE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Gn(e,t);switch(r){case"referenceHidden":{const o=await Is(t,{...i,elementContext:"reference"}),s=um(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:cm(s)}}}case"escaped":{const o=await Is(t,{...i,altBoundary:!0}),s=um(o,n.floating);return{data:{escapedOffsets:s,escaped:cm(s)}}}default:return{}}}}};async function dE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Qn(n),a=Ro(n),l=Lr(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,h=Gn(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*c,y:f*u}:{x:f*u,y:d*c}}const hE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await dE(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},fE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:p,y}=w;return{x:p,y}}},...l}=Gn(e,t),u={x:n,y:r},c=await Is(t,l),h=Lr(Qn(i)),f=rf(h);let d=u[f],m=u[h];if(o){const w=f==="y"?"top":"left",p=f==="y"?"bottom":"right",y=d+c[w],v=d-c[p];d=Ed(y,d,v)}if(s){const w=h==="y"?"top":"left",p=h==="y"?"bottom":"right",y=m+c[w],v=m-c[p];m=Ed(y,m,v)}const g=a.fn({...t,[f]:d,[h]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:o,[h]:s}}}}}},pE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Gn(e,t),c={x:n,y:r},h=Lr(i),f=rf(h);let d=c[f],m=c[h];const g=Gn(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",S=o.reference[f]-o.floating[v]+w.mainAxis,E=o.reference[f]+o.reference[v]-w.mainAxis;d<S?d=S:d>E&&(d=E)}if(u){var p,y;const v=f==="y"?"width":"height",S=["top","left"].includes(Qn(i)),E=o.reference[h]-o.floating[v]+(S&&((p=s.offset)==null?void 0:p[h])||0)+(S?0:w.crossAxis),_=o.reference[h]+o.reference[v]+(S?0:((y=s.offset)==null?void 0:y[h])||0)-(S?w.crossAxis:0);m<E?m=E:m>_&&(m=_)}return{[f]:d,[h]:m}}}},mE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Gn(e,t),c=await Is(t,u),h=Qn(i),f=Ro(i),d=Lr(i)==="y",{width:m,height:g}=o.floating;let w,p;h==="top"||h==="bottom"?(w=h,p=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(p=h,w=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,v=m-c.left-c.right,S=Nr(g-c[w],y),E=Nr(m-c[p],v),_=!t.middlewareData.shift;let T=S,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=y),_&&!f){const I=Pt(c.left,0),D=Pt(c.right,0),A=Pt(c.top,0),V=Pt(c.bottom,0);d?R=m-2*(I!==0||D!==0?I+D:Pt(c.left,c.right)):T=g-2*(A!==0||V!==0?A+V:Pt(c.top,c.bottom))}await l({...t,availableWidth:R,availableHeight:T});const P=await s.getDimensions(a.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function su(){return typeof window<"u"}function Ao(e){return n0(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(n0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n0(e){return su()?e instanceof Node||e instanceof Nt(e).Node:!1}function fn(e){return su()?e instanceof Element||e instanceof Nt(e).Element:!1}function Tn(e){return su()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function dm(e){return!su()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function gE(e){return["table","td","th"].includes(Ao(e))}function au(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function af(e){const t=lf(),n=fn(e)?pn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yE(e){let t=Dr(e);for(;Tn(t)&&!So(t);){if(af(t))return t;if(au(t))return null;t=Dr(t)}return null}function lf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function So(e){return["html","body","#document"].includes(Ao(e))}function pn(e){return Nt(e).getComputedStyle(e)}function lu(e){return fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dm(e)&&e.host||Rn(e);return dm(t)?t.host:t}function r0(e){const t=Dr(e);return So(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tn(t)&&ea(t)?t:r0(t)}function Ns(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=r0(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Nt(i);if(o){const a=Td(s);
vendor: 6,192 bytes, line 101
101return t.concat(s,s.visualViewport||[],ea(i)?i:[],a&&n?Ns(a):[])}return t.concat(i,Ns(i,[],n))}function Td(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function i0(e){const t=pn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Tn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Tl(n)!==o||Tl(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function uf(e){return fn(e)?e:e.contextElement}function to(e){const t=uf(e);if(!Tn(t))return jr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=i0(t);let s=(o?Tl(n.width):n.width)/r,a=(o?Tl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const vE=jr(0);function o0(e){const t=Nt(e);return!lf()||!t.visualViewport?vE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function yi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=uf(e);let s=jr(1);t&&(r?fn(r)&&(s=to(r)):s=to(e));const a=wE(o,n,r)?o0(o):jr(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,h=i.height/s.y;if(o){const f=Nt(o),d=r&&fn(r)?Nt(r):r;let m=f,g=Td(m);for(;g&&r&&d!==m;){const w=to(g),p=g.getBoundingClientRect(),y=pn(g),v=p.left+(g.clientLeft+parseFloat(y.paddingLeft))*w.x,S=p.top+(g.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,h*=w.y,l+=v,u+=S,m=Nt(g),g=Td(m)}}return Rl({width:c,height:h,x:l,y:u})}function bE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Rn(r),a=t?au(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=jr(1);const c=jr(0),h=Tn(r);if((h||!h&&!o)&&((Ao(r)!=="body"||ea(s))&&(l=lu(r)),Tn(r))){const f=yi(r);u=to(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function xE(e){return Array.from(e.getClientRects())}function Pd(e,t){const n=lu(e).scrollLeft;return t?t.left+n:yi(Rn(e)).left+n}function SE(e){const t=Rn(e),n=lu(e),r=e.ownerDocument.body,i=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Pd(e);const a=-n.scrollTop;return pn(r).direction==="rtl"&&(s+=Pt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function _E(e,t){const n=Nt(e),r=Rn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=lf();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function kE(e,t){const n=yi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Tn(e)?to(e):jr(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function hm(e,t,n){let r;if(t==="viewport")r=_E(e,n);else if(t==="document")r=SE(Rn(e));else if(fn(t))r=kE(t,n);else{const i=o0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Rl(r)}function s0(e,t){const n=Dr(e);return n===t||!fn(n)||So(n)?!1:pn(n).position==="fixed"||s0(n,t)}function EE(e,t){const n=t.get(e);if(n)return n;let r=Ns(e,[],!1).filter(a=>fn(a)&&Ao(a)!=="body"),i=null;const o=pn(e).position==="fixed";let s=o?Dr(e):e;for(;fn(s)&&!So(s);){const a=pn(s),l=af(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ea(s)&&!l&&s0(e,s))?r=r.filter(c=>c!==s):i=a,s=Dr(s)}return t.set(e,r),r}function CE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?au(t)?[]:EE(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const h=hm(t,c,i);return u.top=Pt(h.top,u.top),u.right=Nr(h.right,u.right),u.bottom=Nr(h.bottom,u.bottom),u.left=Pt(h.left,u.left),u},hm(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function TE(e){const{width:t,height:n}=i0(e);return{width:t,height:n}}function PE(e,t,n){const r=Tn(t),i=Rn(t),o=n==="fixed",s=yi(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=jr(0);if(r||!r&&!o)if((Ao(t)!=="body"||ea(i))&&(a=lu(t)),r){const d=yi(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=Pd(i));let u=0,c=0;if(i&&!r&&!o){const d=i.getBoundingClientRect();c=d.top+a.scrollTop,u=d.left+a.scrollLeft-Pd(i,d)}const h=s.left+a.scrollLeft-l.x-u,f=s.top+a.scrollTop-l.y-c;return{x:h,y:f,width:s.width,height:s.height}}function sc(e){return pn(e).position==="static"}function fm(e,t){if(!Tn(e)||pn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rn(e)===n&&(n=n.ownerDocument.body),n}function a0(e,t){const n=Nt(e);if(au(e))return n;if(!Tn(e)){let i=Dr(e);for(;i&&!So(i);){if(fn(i)&&!sc(i))return i;i=Dr(i)}return n}let r=fm(e,t);for(;r&&gE(r)&&sc(r);)r=fm(r,t);return r&&So(r)&&sc(r)&&!af(r)?n:r||yE(e)||n}const RE=async function(e){const t=this.getOffsetParent||a0,n=this.getDimensions,r=await n(e.floating);return{reference:PE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AE(e){return pn(e).direction==="rtl"}const OE={convertOffsetParentRelativeRectToViewportRelativeRect:bE,getDocumentElement:Rn,getClippingRect:CE,getOffsetParent:a0,getElementRects:RE,getClientRects:xE,getDimensions:TE,getScale:to,isElement:fn,isRTL:AE};function IE(e,t){let n=null,r;const i=Rn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:h,height:f}=e.getBoundingClientRect();if(a||t(),!h||!f)return;const d=Ca(c),m=Ca(i.clientWidth-(u+h)),g=Ca(i.clientHeight-(c+f)),w=Ca(u),y={rootMargin:-d+"px "+-m+"px "+-g+"px "+-w+"px",threshold:Pt(0,Nr(1,l))||1};let v=!0;function S(E){const _=E[0].intersectionRatio;if(_!==l){if(!v)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(S,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),o}function NE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=uf(e),c=i||o?[...u?Ns(u):[],...Ns(t)]:[];
vendor: 4,166 bytes, line 101
101c.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const h=u&&a?IE(u,n):null;let f=-1,d=null;s&&(d=new ResizeObserver(p=>{let[y]=p;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let m,g=l?yi(e):null;l&&w();function w(){const p=yi(e);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&n(),g=p,m=requestAnimationFrame(w)}return n(),()=>{var p;c.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),h==null||h(),(p=d)==null||p.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const jE=hE,LE=fE,DE=uE,$E=mE,ME=cE,pm=lE,zE=pE,FE=(e,t,n)=>{const r=new Map,i={platform:OE,...n},o={...i.platform,_c:r};return aE(e,t,{...i,platform:o})};var Ja=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Al(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Al(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Al(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function l0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mm(e,t){const n=l0(e);return Math.round(t*n)/n}function ac(e){const t=b.useRef(e);return Ja(()=>{t.current=e}),t}function UE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,h]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,d]=b.useState(r);Al(f,r)||d(r);const[m,g]=b.useState(null),[w,p]=b.useState(null),y=b.useCallback(N=>{N!==_.current&&(_.current=N,g(N))},[]),v=b.useCallback(N=>{N!==T.current&&(T.current=N,p(N))},[]),S=o||m,E=s||w,_=b.useRef(null),T=b.useRef(null),R=b.useRef(c),P=l!=null,I=ac(l),D=ac(i),A=ac(u),V=b.useCallback(()=>{if(!_.current||!T.current)return;const N={placement:t,strategy:n,middleware:f};D.current&&(N.platform=D.current),FE(_.current,T.current,N).then(j=>{const x={...j,isPositioned:A.current!==!1};$.current&&!Al(R.current,x)&&(R.current=x,Js.flushSync(()=>{h(x)}))})},[f,t,n,D,A]);Ja(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[u]);const $=b.useRef(!1);Ja(()=>($.current=!0,()=>{$.current=!1}),[]),Ja(()=>{if(S&&(_.current=S),E&&(T.current=E),S&&E){if(I.current)return I.current(S,E,V);V()}},[S,E,V,I,P]);const B=b.useMemo(()=>({reference:_,floating:T,setReference:y,setFloating:v}),[y,v]),H=b.useMemo(()=>({reference:S,floating:E}),[S,E]),q=b.useMemo(()=>{const N={position:n,left:0,top:0};if(!H.floating)return N;const j=mm(H.floating,c.x),x=mm(H.floating,c.y);return a?{...N,transform:"translate("+j+"px, "+x+"px)",...l0(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:x}},[n,a,H.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:V,refs:B,elements:H,floatingStyles:q}),[c,V,B,H,q])}const BE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pm({element:r.current,padding:i}).fn(n):{}:r?pm({element:r,padding:i}).fn(n):{}}}},VE=(e,t)=>({...jE(e),options:[e,t]}),HE=(e,t)=>({...LE(e),options:[e,t]}),WE=(e,t)=>({...zE(e),options:[e,t]}),qE=(e,t)=>({...DE(e),options:[e,t]}),KE=(e,t)=>({...$E(e),options:[e,t]}),GE=(e,t)=>({...ME(e),options:[e,t]}),QE=(e,t)=>({...BE(e),options:[e,t]});var YE="Arrow",u0=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return C.jsx(Fe.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});u0.displayName=YE;var JE=u0;function XE(e){const[t,n]=b.useState(void 0);return Kn(()=>
vendor: 5,066 bytes, line 101
101{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var c0="Popper",[d0,h0]=Xs(c0),[TL,f0]=d0(c0),p0="PopperAnchor",m0=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=f0(p0,n),s=b.useRef(null),a=Ge(t,s);return b.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:C.jsx(Fe.div,{...i,ref:a})});m0.displayName=p0;var cf="PopperContent",[ZE,eC]=d0(cf),g0=b.forwardRef((e,t)=>{var ae,nt,rt,dt,St,Xn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=e,w=f0(cf,n),[p,y]=b.useState(null),v=Ge(t,mn=>y(mn)),[S,E]=b.useState(null),_=XE(S),T=(_==null?void 0:_.width)??0,R=(_==null?void 0:_.height)??0,P=r+(o!=="center"?"-"+o:""),I=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(u)?u:[u],A=D.length>0,V={padding:I,boundary:D.filter(nC),altBoundary:A},{refs:$,floatingStyles:B,placement:H,isPositioned:q,middlewareData:N}=UE({strategy:"fixed",placement:P,whileElementsMounted:(...mn)=>NE(...mn,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[VE({mainAxis:i+R,alignmentAxis:s}),l&&HE({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?WE():void 0,...V}),l&&qE({...V}),KE({...V,apply:({elements:mn,rects:Si,availableWidth:_i,availableHeight:Br})=>{const{width:ki,height:Vr}=Si.reference,On=mn.floating.style;On.setProperty("--radix-popper-available-width",`${_i}px`),On.setProperty("--radix-popper-available-height",`${Br}px`),On.setProperty("--radix-popper-anchor-width",`${ki}px`),On.setProperty("--radix-popper-anchor-height",`${Vr}px`)}}),S&&QE({element:S,padding:a}),rC({arrowWidth:T,arrowHeight:R}),f&&GE({strategy:"referenceHidden",...V})]}),[j,x]=w0(H),Y=at(m);Kn(()=>{q&&(Y==null||Y())},[q,Y]);const G=(ae=N.arrow)==null?void 0:ae.x,k=(nt=N.arrow)==null?void 0:nt.y,X=((rt=N.arrow)==null?void 0:rt.centerOffset)!==0,[pe,le]=b.useState();return Kn(()=>{p&&le(window.getComputedStyle(p).zIndex)},[p]),C.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:q?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(dt=N.transformOrigin)==null?void 0:dt.x,(St=N.transformOrigin)==null?void 0:St.y].join(" "),...((Xn=N.hide)==null?void 0:Xn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(ZE,{scope:n,placedSide:j,onArrowChange:E,arrowX:G,arrowY:k,shouldHideArrow:X,children:C.jsx(Fe.div,{"data-side":j,"data-align":x,...g,ref:v,style:{...g.style,animation:q?void 0:"none"}})})})});g0.displayName=cf;var y0="PopperArrow",tC={top:"bottom",right:"left",bottom:"top",left:"right"},v0=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=eC(y0,r),s=tC[o.placedSide];return C.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:C.jsx(JE,{...i,ref:n,style:{...i.style,display:"block"}})})});v0.displayName=y0;function nC(e){return e!==null}var rC=e=>({name:"transformOrigin",options:e,fn(t){var w,p,y;const{placement:n,rects:r,middlewareData:i}=t,s=((w=i.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=w0(n),h={start:"0%",center:"50%",end:"100%"}[c],f=(((p=i.arrow)==null?void 0:p.x)??0)+a/2,d=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let m="",g="";return u==="bottom"?(m=s?h:`${f}px`,g=`${-l}px`):u==="top"?(m=s?h:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,g=s?h:`${d}px`):u==="left"&&(m=`${r.floating.width+l}px`,g=s?h:`${d}px`),{data:{x:m,y:g}}}});function w0(e){const[t,n="center"]=e.split("-");return[t,n]}var iC=m0,oC=g0,sC=v0,[uu,PL]=Xs("Tooltip",[h0]),df=h0(),b0="TooltipProvider",aC=700,gm="tooltip.open",[lC,x0]=uu(b0),S0=e=>{const{__scopeTooltip:t,delayDuration:n=aC,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,s=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),C.jsx(lC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(u=>{a.current=u}
vendor: 5,737 bytes, line 101
101,[]),disableHoverableContent:i,children:o})};S0.displayName=b0;var _0="Tooltip",[RL,cu]=uu(_0),Rd="TooltipTrigger",uC=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=cu(Rd,n),o=x0(Rd,n),s=df(n),a=b.useRef(null),l=Ge(t,a,i.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),h=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),C.jsx(iC,{asChild:!0,...s,children:C.jsx(Fe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ve(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ve(e.onBlur,i.onClose),onClick:ve(e.onClick,i.onClose)})})});uC.displayName=Rd;var cC="TooltipPortal",[AL,dC]=uu(cC,{forceMount:void 0}),_o="TooltipContent",k0=b.forwardRef((e,t)=>{const n=dC(_o,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=cu(_o,e.__scopeTooltip);return C.jsx(bi,{present:r||s.open,children:s.disableHoverableContent?C.jsx(E0,{side:i,...o,ref:t}):C.jsx(hC,{side:i,...o,ref:t})})}),hC=b.forwardRef((e,t)=>{const n=cu(_o,e.__scopeTooltip),r=x0(_o,e.__scopeTooltip),i=b.useRef(null),o=Ge(t,i),[s,a]=b.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:h}=r,f=b.useCallback(()=>{a(null),h(!1)},[h]),d=b.useCallback((m,g)=>{const w=m.currentTarget,p={x:m.clientX,y:m.clientY},y=yC(p,w.getBoundingClientRect()),v=vC(p,y),S=wC(g.getBoundingClientRect()),E=xC([...v,...S]);a(E),h(!0)},[h]);return b.useEffect(()=>()=>f(),[f]),b.useEffect(()=>{if(l&&c){const m=w=>d(w,c),g=w=>d(w,l);return l.addEventListener("pointerleave",m),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",g)}}},[l,c,d,f]),b.useEffect(()=>{if(s){const m=g=>{const w=g.target,p={x:g.clientX,y:g.clientY},y=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),v=!bC(p,s);y?f():v&&(f(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,c,s,u,f]),C.jsx(E0,{...e,ref:o})}),[fC,pC]=uu(_0,{isInside:!1}),mC=F1("TooltipContent"),E0=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=cu(_o,n),u=df(n),{onClose:c}=l;return b.useEffect(()=>(document.addEventListener(gm,c),()=>document.removeEventListener(gm,c)),[c]),b.useEffect(()=>{if(l.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(l.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,c]),C.jsx(Xh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:C.jsxs(oC,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(mC,{children:r}),C.jsx(fC,{scope:n,isInside:!0,children:C.jsx(d_,{id:l.contentId,role:"tooltip",children:i||r})})]})})});k0.displayName=_o;var C0="TooltipArrow",gC=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=df(n);return pC(C0,n).isInside?null:C.jsx(sC,{...i,...r,ref:t})});gC.displayName=C0;function yC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function vC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wC(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function bC(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o],l=t[s],u=a.x,c=a.y,h=l.x,f=l.y;c>r!=f>r&&n<(h-u)*(r-c)/(f-c)+u&&(i=!i)}return i}function xC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),SC(t)}function SC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var _C=S0,T0=k0;const kC=_C,EC=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>C.jsx(T0,{ref:r,sideOffset:t,className:Lt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
101de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));EC.displayName=T0.displayName;var du=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hu=typeof window>"u"||"Deno"in globalThis;function nn(){}function CC(e,t){return typeof e=="function"?e(t):e}function TC(e){return typeof e=="number"&&e>=0&&e!==1/0}function PC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ad(e,t){return typeof e=="function"?e(t):e}function RC(e,t){return typeof e=="function"?e(t):e}function ym(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==hf(s,t.options))return!1}else if(!Ls(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function vm(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(js(t.options.mutationKey)!==js(o))return!1}else if(!Ls(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function hf(e,t){return((t==null?void 0:t.queryKeyHashFn)||js)(e)}function js(e){return JSON.stringify(e,(t,n)=>Od(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ls(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ls(e[n],t[n])):!1}function P0(e,t){if(e===t)return e;const n=wm(e)&&wm(t);if(n||Od(e)&&Od(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<s;c++){const h=n?c:o[c];(!n&&l.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,u++):(a[h]=P0(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&u++)}return i===s&&u===i?e:a}return t}function wm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Od(e){if(!bm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!bm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bm(e){return Object.prototype.toString.call(e)==="[object Object]"}function AC(e){return new Promise(t=>{setTimeout(t,e)})}function OC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?P0(e,t):t}function IC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function NC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ff=Symbol();function R0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ff?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ii,mr,so,qg,jC=(qg=class extends du{constructor(){super();de(this,ii);de(this,mr);de(this,so);ne(this,so,t=>{if(!hu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){L(this,mr)||this.setEventListener(L(this,so))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,mr))==null||t.call(this),ne(this,mr,void 0))}setEventListener(t){var n;ne(this,so,t),(n=L(this,mr))==null||n.call(this),ne(this,mr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){L(this,ii)!==t&&(ne(this,ii,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof L(this,ii)=="boolean"?L(this,ii):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ii=new WeakMap,mr=new WeakMap,so=new WeakMap,qg),A0=new jC,ao,gr,lo,Kg,LC=(Kg=class extends du{constructor(){super();de(this,ao,!0);de(this,gr);de(this,lo);ne(this,lo,t=>{if(!hu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){L(this,gr)||this.setEventListener(L(this,lo))}onUnsubscribe(){var t;this.hasListeners()||((t=L(this,gr))==null||t.call(this),ne(this,gr,void 0))}setEventListener(t){var n;
vendor: 4,162 bytes, line 101
101ne(this,lo,t),(n=L(this,gr))==null||n.call(this),ne(this,gr,t(this.setOnline.bind(this)))}setOnline(t){L(this,ao)!==t&&(ne(this,ao,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return L(this,ao)}},ao=new WeakMap,gr=new WeakMap,lo=new WeakMap,Kg),Ol=new LC;function DC(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function $C(e){return Math.min(1e3*2**e,3e4)}function O0(e){return(e??"online")==="online"?Ol.isOnline():!0}var I0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lc(e){return e instanceof I0}function N0(e){let t=!1,n=0,r=!1,i;const o=DC(),s=g=>{var w;r||(f(new I0(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>A0.isFocused()&&(e.networkMode==="always"||Ol.isOnline())&&e.canRun(),c=()=>O0(e.networkMode)&&e.canRun(),h=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),i==null||i(),o.reject(g))},d=()=>new Promise(g=>{var w;i=p=>{(r||u())&&g(p)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(p){g=Promise.reject(p)}Promise.resolve(g).then(h).catch(p=>{var _;if(r)return;const y=e.retry??(hu?0:3),v=e.retryDelay??$C,S=typeof v=="function"?v(n,p):v,E=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,p);if(t||!E){f(p);return}n++,(_=e.onFail)==null||_.call(e,n,p),AC(S).then(()=>u()?void 0:d()).then(()=>{t?f(p):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?m():d().then(m),o)}}var MC=e=>setTimeout(e,0);function zC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=MC;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var st=zC(),oi,Gg,j0=(Gg=class{constructor(){de(this,oi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),TC(this.gcTime)&&ne(this,oi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hu?1/0:5*60*1e3))}clearGcTimeout(){L(this,oi)&&(clearTimeout(L(this,oi)),ne(this,oi,void 0))}},oi=new WeakMap,Gg),uo,si,zt,ai,Xe,Hs,li,on,Ln,Qg,FC=(Qg=class extends j0{constructor(t){super();de(this,on);de(this,uo);de(this,si);de(this,zt);de(this,ai);de(this,Xe);de(this,Hs);de(this,li);ne(this,li,!1),ne(this,Hs,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,ai,t.client),ne(this,zt,L(this,ai).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,uo,BC(this.options)),this.state=t.state??L(this,uo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=L(this,Xe))==null?void 0:t.promise}setOptions(t){this.options={...L(this,Hs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,zt).remove(this)}setData(t,n){const r=OC(this.state.data,t,this.options);return Qe(this,on,Ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Qe(this,on,Ln).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=L(this,Xe))==null?void 0:r.promise;return(i=L(this,Xe))==null||i.cancel(t),n?n.then(nn).catch(nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,uo))}isActive(){return this.observers.some(t=>RC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ff||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 101
101Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ad(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!PC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,Xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=L(this,Xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),L(this,zt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(L(this,Xe)&&(L(this,li)?L(this,Xe).cancel({revert:!0}):L(this,Xe).cancelRetry()),this.scheduleGc()),L(this,zt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Qe(this,on,Ln).call(this,{type:"invalidate"})}
vendor: 13,445 bytes, line 101
101fetch(t,n){var u,c,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(L(this,Xe))return L(this,Xe).continueRetry(),L(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ne(this,li,!0),r.signal)})},o=()=>{const f=R0(this.options,n),m=(()=>{const g={client:L(this,ai),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return ne(this,li,!1),this.options.persister?this.options.persister(f,m,this):f(m)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:L(this,ai),state:this.state,fetchFn:o};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),ne(this,si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Qe(this,on,Ln).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=f=>{var d,m,g,w;lc(f)&&f.silent||Qe(this,on,Ln).call(this,{type:"error",error:f}),lc(f)||((m=(d=L(this,zt).config).onError)==null||m.call(d,f,this),(w=(g=L(this,zt).config).onSettled)==null||w.call(g,this.state.data,f,this)),this.scheduleGc()};return ne(this,Xe,N0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,m,g,w;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(p){l(p);return}(m=(d=L(this,zt).config).onSuccess)==null||m.call(d,f,this),(w=(g=L(this,zt).config).onSettled)==null||w.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,d)=>{Qe(this,on,Ln).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{Qe(this,on,Ln).call(this,{type:"pause"})},onContinue:()=>{Qe(this,on,Ln).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),L(this,Xe).start()}},uo=new WeakMap,si=new WeakMap,zt=new WeakMap,ai=new WeakMap,Xe=new WeakMap,Hs=new WeakMap,li=new WeakMap,on=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...UC(r.data,this.options),fetchMeta:t.meta??null};case"success":return ne(this,si,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return lc(i)&&i.revert&&L(this,si)?{...L(this,si),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),st.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),L(this,zt).notify({query:this,type:"updated",action:t})})},Qg);function UC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function BC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bn,Yg,VC=(Yg=class extends du{constructor(t={}){super();de(this,bn);this.config=t,ne(this,bn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??hf(i,n);let s=this.get(o);return s||(s=new FC({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){L(this,bn).has(t.queryHash)||(L(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=L(this,bn).get(t.queryHash);n&&(t.destroy(),n===t&&L(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return L(this,bn).get(t)}getAll(){return[...L(this,bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ym(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ym(t,r)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bn=new WeakMap,Yg),xn,it,ui,Sn,lr,Jg,HC=(Jg=class extends j0{constructor(t){super();de(this,Sn);de(this,xn);de(this,it);de(this,ui);this.mutationId=t.mutationId,ne(this,it,t.mutationCache),ne(this,xn,[]),this.state=t.state||WC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){L(this,xn).includes(t)||(L(this,xn).push(t),this.clearGcTimeout(),L(this,it).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,xn,L(this,xn).filter(n=>n!==t)),this.scheduleGc(),L(this,it).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){L(this,xn).length||(this.state.status==="pending"?this.scheduleGc():L(this,it).remove(this))}continue(){var t;return((t=L(this,ui))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,u,c,h,f,d,m,g,w,p,y,v,S,E,_,T,R;const n=()=>{Qe(this,Sn,lr).call(this,{type:"continue"})};ne(this,ui,N0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,I)=>{Qe(this,Sn,lr).call(this,{type:"failed",failureCount:P,error:I})},onPause:()=>{Qe(this,Sn,lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,it).canRun(this)}));const r=this.state.status==="pending",i=!L(this,ui).canStart();try{if(r)n();else{Qe(this,Sn,lr).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=L(this,it).config).onMutate)==null?void 0:s.call(o,t,this));const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));I!==this.state.context&&Qe(this,Sn,lr).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const P=await L(this,ui).start();return await((c=(u=L(this,it).config).onSuccess)==null?void 0:c.call(u,P,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,P,t,this.state.context)),await((m=(d=L(this,it).config).onSettled)==null?void 0:m.call(d,P,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,P,null,t,this.state.context)),Qe(this,Sn,lr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(p=L(this,it).config).onError)==null?void 0:y.call(p,P,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,P,t,this.state.context)),await((_=(E=L(this,it).config).onSettled)==null?void 0:_.call(E,void 0,P,this.state.variables,this.state.context,this)),await((R=(T=this.options).onSettled)==null?void 0:R.call(T,void 0,P,t,this.state.context)),P}finally{Qe(this,Sn,lr).call(this,{type:"error",error:P})}}finally{L(this,it).runNext(this)}}},xn=new WeakMap,it=new WeakMap,ui=new WeakMap,Sn=new WeakSet,lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),st.batch(()=>{L(this,xn).forEach(r=>{r.onMutationUpdate(t)}),L(this,it).notify({mutation:this,type:"updated",action:t})})},Jg);function WC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,sn,Ws,Xg,qC=(Xg=class extends du{constructor(t={}){super();de(this,zn);de(this,sn);de(this,Ws);this.config=t,ne(this,zn,new Set),ne(this,sn,new Map),ne(this,Ws,0)}build(t,n,r){const i=new HC({mutationCache:this,mutationId:++oa(this,Ws)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){L(this,zn).add(t);const n=Ta(t);if(typeof n=="string"){const r=L(this,sn).get(n);r?r.push(t):L(this,sn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(L(this,zn).delete(t)){const n=Ta(t);if(typeof n=="string"){const r=L(this,sn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&L(this,sn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ta(t);if(typeof n=="string"){const r=L(this,sn).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Ta(t);if(typeof n=="string"){const i=(r=L(this,sn).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{L(this,zn).forEach(t=>{this.notify({type:"removed",mutation:t})}),L(this,zn).clear(),L(this,sn).clear()})}getAll(){return Array.from(L(this,zn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vm(n,r))}findAll(t={}){return this.getAll().filter(n=>vm(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(nn))))}},zn=new WeakMap,sn=new WeakMap,Ws=new WeakMap,Xg);function Ta(e){var t;return(t=e.options.scope)==null?void 0:t.id}function xm(e){return{onFetch:(t,n)=>{var c,h,f,d,m;const r=t.options,i=(f=(h=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,o=((d=t.state.data)==null?void 0:d.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},p=R0(t.options,t.fetchOptions),y=async(v,S,E)=>{if(g)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const T=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w(D),D})(),R=await p(T),{maxPages:P}=t.options,I=E?NC:IC;return{pages:I(v.pages,R,P),pageParams:I(v.pageParams,S,P)}};if(i&&o.length){const v=i==="backward",S=v?KC:Sm,E={pages:o,pageParams:s},_=S(r,E);a=await y(E,_,v)}else{const v=e??o.length;do{const S=l===0?s[0]??r.initialPageParam:Sm(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Sm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function KC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Re,yr,vr,co,ho,wr,fo,po,Zg,GC=(Zg=class{constructor(e={}){de(this,Re);de(this,yr);de(this,vr);de(this,co);de(this,ho);de(this,wr);de(this,fo);de(this,po);ne(this,Re,e.queryCache||new VC),ne(this,yr,e.mutationCache||new qC),ne(this,vr,e.defaultOptions||{}),ne(this,co,new Map),ne(this,ho,new Map),ne(this,wr,0)}mount(){oa(this,wr)._++,L(this,wr)===1&&(ne(this,fo,A0.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Re).onFocus())})),ne(this,po,Ol.subscribe(async e=>{e&&(await this.resumePausedMutations(),L(this,Re).onOnline())})))}unmount(){var e,t;oa(this,wr)._--,L(this,wr)===0&&((e=L(this,fo))==null||e.call(this),ne(this,fo,void 0),(t=L(this,po))==null||t.call(this),ne(this,po,void 0))}isFetching(e){return L(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return L(this,yr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Re).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=L(this,Re).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ad(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return L(this,Re).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=L(this,Re).get(r.queryHash),o=i==null?void 0:i.state.data,s=CC(t,o);if(s!==void 0)return L(this,Re).build(this,r).setData(s,{...n,manual:!0})}
101setQueriesData(e,t,n){return st.batch(()=>L(this,Re).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=L(this,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=L(this,Re);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=L(this,Re);return st.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=st.batch(()=>L(this,Re).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(nn).catch(nn)}invalidateQueries(e,t={}){return st.batch(()=>(L(this,Re).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=st.batch(()=>L(this,Re).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(nn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=L(this,Re).build(this,t);return n.isStaleByTime(Ad(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nn).catch(nn)}fetchInfiniteQuery(e){return e.behavior=xm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nn).catch(nn)}ensureInfiniteQueryData(e){return e.behavior=xm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ol.isOnline()?L(this,yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Re)}getMutationCache(){return L(this,yr)}getDefaultOptions(){return L(this,vr)}setDefaultOptions(e){ne(this,vr,e)}setQueryDefaults(e,t){L(this,co).set(js(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...L(this,co).values()],n={};return t.forEach(r=>{Ls(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){L(this,ho).set(js(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...L(this,ho).values()],n={};return t.forEach(r=>{Ls(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...L(this,vr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ff&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...L(this,vr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){L(this,Re).clear(),L(this,yr).clear()}},Re=new WeakMap,yr=new WeakMap,vr=new WeakMap,co=new WeakMap,ho=new WeakMap,wr=new WeakMap,fo=new WeakMap,po=new WeakMap,Zg),QC=b.createContext(void 0),YC=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(QC.Provider,{value:e,children:t}));/** 102 * @remix-run/router v1.23.0 103 * 104 * Copyright (c) Remix Software Inc. 105 * 106 * This source code is licensed under the MIT license found in the 107 * LICENSE.md file in the root directory of this source tree. 108 * 109 * @license MIT 110 */function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}var Sr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Sr||(Sr={}));const _m="popstate";function JC(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return Id("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:D0(i)}return ZC(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XC(){return Math.random().toString(36).substr(2,8)}function km(e,t){return{usr:e.state,key:e.key,idx:t}}function Id(e,t,n,r){return n===void 0&&(n=null),Il({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fu(t):t,{state:n,key:t&&t.key||r||XC()})}function D0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Sr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Il({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function h(){a=Sr.Pop;let w=c(),p=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:p})}function f(w,p){a=Sr.Push;let y=Id(g.location,w,p);u=c()+1;let v=km(y,u),S=g.createHref(y);try{s.pushState(v,"",S)}
vendor: 3,324 bytes, line 110
110catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}o&&l&&l({action:a,location:g.location,delta:1})}function d(w,p){a=Sr.Replace;let y=Id(g.location,w,p);u=c();let v=km(y,u),S=g.createHref(y);s.replaceState(v,"",S),o&&l&&l({action:a,location:g.location,delta:0})}function m(w){let p=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof w=="string"?w:D0(w);return y=y.replace(/ $/,"%20"),bt(p,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,p)}let g={get action(){return a},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(_m,h),l=w,()=>{i.removeEventListener(_m,h),l=null}},createHref(w){return t(i,w)},createURL:m,encodeLocation(w){let p=m(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:d,go(w){return s.go(w)}};return g}var Em;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Em||(Em={}));function eT(e,t,n){return n===void 0&&(n="/"),tT(e,t,n,!1)}function tT(e,t,n,r){let i=typeof t=="string"?fu(t):t,o=z0(i.pathname||"/",n);if(o==null)return null;let s=$0(e);nT(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=fT(o);a=dT(s[l],u,r)}return a}function $0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(bt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=no([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(bt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$0(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:uT(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of M0(o.path))i(o,s,l)}),t}function M0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=M0(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rT=/^:[\w-]+$/,iT=3,oT=2,sT=1,aT=10,lT=-2,Cm=e=>e==="*";function uT(e,t){let n=e.split("/"),r=n.length;return n.some(Cm)&&(r+=lT),t&&(r+=oT),n.filter(i=>!Cm(i)).reduce((i,o)=>i+(rT.test(o)?iT:o===""?sT:aT),r)}function cT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dT(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",h=Tm({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=Tm({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!h)return null;
vendor: 4,131 bytes, lines 110-119
110Object.assign(i,h.params),s.push({params:i,pathname:no([o,h.pathname]),pathnameBase:pT(no([o,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(o=no([o,h.pathnameBase]))}return s}function Tm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,h)=>{let{paramName:f,isOptional:d}=c;if(f==="*"){let g=a[h]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=a[h];return d&&!m?u[f]=void 0:u[f]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function hT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),L0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function z0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const no=e=>e.join("/").replace(/\/\/+/g,"/"),pT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function mT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const F0=["post","put","patch","delete"];new Set(F0);const gT=["get",...F0];new Set(gT);/** 111 * React Router v6.30.1 112 * 113 * Copyright (c) Remix Software Inc. 114 * 115 * This source code is licensed under the MIT license found in the 116 * LICENSE.md file in the root directory of this source tree. 117 * 118 * @license MIT 119 */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}const yT=b.createContext(null),vT=b.createContext(null),U0=b.createContext(null),pu=b.createContext(null),mu=b.createContext({outlet:null,matches:[],isDataRoute:!1}),B0=b.createContext(null);function pf(){return b.useContext(pu)!=null}function V0(){return pf()||bt(!1),b.useContext(pu).location}function wT(e,t){return bT(e,t)}function bT(e,t,n,r){pf()||bt(!1);let{navigator:i}=b.useContext(U0),{matches:o}=b.useContext(mu),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=V0(),c;if(t){var h;let w=typeof t=="string"?fu(t):t;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||bt(!1),c=w}else c=u;let f=c.pathname||"/",d=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=eT(e,{pathname:d}),g=ET(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:no([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:no([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&g?b.createElement(pu.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Sr.Pop}},g):g}function xT(){let e=RT(),t=mT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
119Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const ST=b.createElement(xT,null);class _T extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(mu.Provider,{value:this.props.routeContext},b.createElement(B0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kT(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(yT);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(mu.Provider,{value:t},r)}function ET(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);c>=0||bt(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let h=s[c];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=c),h.route.id){let{loaderData:f,errors:d}=n,m=h.route.loader&&f[h.route.id]===void 0&&(!d||d[h.route.id]===void 0);if(h.route.lazy||m){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,h,f)=>{let d,m=!1,g=null,w=null;n&&(d=a&&h.route.id?a[h.route.id]:void 0,g=h.route.errorElement||ST,l&&(u<0&&f===0?(m=!0,w=null):u===f&&(m=!0,w=h.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,f+1)),y=()=>{let v;return d?v=g:m?v=w:h.route.Component?v=b.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=c,b.createElement(kT,{match:h,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?b.createElement(_T,{location:n.location,revalidation:n.revalidation,component:g,error:d,children:y(),routeC
vendor: 4,772 bytes, lines 119-128
119ontext:{outlet:null,matches:p,isDataRoute:!0}}):y()},null)}var Nd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Nd||{});function CT(e){let t=b.useContext(vT);return t||bt(!1),t}function TT(e){let t=b.useContext(mu);return t||bt(!1),t}function PT(e){let t=TT(),n=t.matches[t.matches.length-1];return n.route.id||bt(!1),n.route.id}function RT(){var e;let t=b.useContext(B0),n=CT(Nd.UseRouteError),r=PT(Nd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function AT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function jd(e){bt(!1)}function OT(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Sr.Pop,navigator:o,static:s=!1,future:a}=e;pf()&&bt(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:o,static:s,future:Nl({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=fu(r));let{pathname:c="/",search:h="",hash:f="",state:d=null,key:m="default"}=r,g=b.useMemo(()=>{let w=z0(c,l);return w==null?null:{location:{pathname:w,search:h,hash:f,state:d,key:m},navigationType:i}},[l,c,h,f,d,m,i]);return g==null?null:b.createElement(U0.Provider,{value:u},b.createElement(pu.Provider,{children:n,value:g}))}function IT(e){let{children:t,location:n}=e;return wT(Ld(t),n)}new Promise(()=>{});function Ld(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Ld(r.props.children,o));return}r.type!==jd&&bt(!1),!r.props.index||!r.props.children||bt(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ld(r.props.children,o)),n.push(s)}),n}/** 120 * React Router DOM v6.30.1 121 * 122 * Copyright (c) Remix Software Inc. 123 * 124 * This source code is licensed under the MIT license found in the 125 * LICENSE.md file in the root directory of this source tree. 126 * 127 * @license MIT 128 */const NT="6";try{window.__reactRouterVersion=NT}catch{}const jT="startTransition",Pm=cy[jT];function LT(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=JC({window:i,v5Compat:!0}));let s=o.current,[a,l]=b.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=b.useCallback(h=>{u&&Pm?Pm(()=>l(h)):l(h)},[l,u]);return b.useLayoutEffect(()=>s.listen(c),[s,c]),b.useEffect(()=>AT(r),[r]),b.createElement(OT,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var Rm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rm||(Rm={}));var Am;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Am||(Am={}));const DT=Vw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xa=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?M1:"button";return C.jsx(s,{className:Lt(DT({variant:t,size:n,className:e})),ref:o,...i})});Xa.displayName="Button";const Dd=b.forwardRef(({className:e,...t},n)=>C.jsx("textarea",{className:Lt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
128ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Dd.displayName="Textarea";var $T=b.createContext(void 0);function MT(e){const t=b.useContext($T);return e||t||"ltr"}function zT(e,[t,n]){return Math.min(n,Math.max(t,e))}function FT(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var mf="ScrollArea",[H0,OL]=Xs(mf),[UT,Kt]=H0(mf),W0=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...s}=e,[a,l]=b.useState(null),[u,c]=b.useState(null),[h,f]=b.useState(null),[d,m]=b.useState(null),[g,w]=b.useState(null),[p,y]=b.useState(0),[v,S]=b.useState(0),[E,_]=b.useState(!1),[T,R]=b.useState(!1),P=Ge(t,D=>l(D)),I=MT(i);return C.jsx(UT,{scope:n,type:r,dir:I,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:m,scrollbarXEnabled:E,onScrollbarXEnabledChange:_,scrollbarY:g,onScrollbarYChange:w,scrollbarYEnabled:T,onScrollbarYEnabledChange:R,onCornerWidthChange:y,onCornerHeightChange:S,children:C.jsx(Fe.div,{dir:I,...s,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":p+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})});W0.displayName=mf;var q0="ScrollAreaViewport",K0=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...o}=e,s=Kt(q0,n),a=b.useRef(null),l=Ge(t,a,s.onViewportChange);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),C.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...o,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:C.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});K0.displayName=q0;var An="ScrollAreaScrollbar",gf=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Kt(An,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=i,a=e.orientation==="horizontal";return b.useEffect(()=>(a?o(!0):s(!0),()=>{a?o(!1):s(!1)}),[a,o,s]),i.type==="hover"?C.jsx(BT,{...r,ref:t,forceMount:n}):i.type==="scroll"?C.jsx(VT,{...r,ref:t,forceMount:n}):i.type==="auto"?C.jsx(G0,{...r,ref:t,forceMount:n}):i.type==="always"?C.jsx(yf,{...r,ref:t}):null});gf.displayName=An;var BT=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Kt(An,e.__scopeScrollArea),[o,s]=b.useState(!1);return b.useEffect(()=>{const a=i.scrollArea;let l=0;if(a){const u=()=>{window.clearTimeout(l),s(!0)},c=()=>{l=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),C.jsx(bi,{present:n||o,children:C.jsx(G0,{"data-state":o?"visible":"hidden",...r,ref:t})})}),VT=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Kt(An,e.__scopeScrollArea),o=e.orientation==="horizontal",s=yu(()=>l("SCROLL_END"),100),[a,l]=FT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay,l]),b.useEffect(()=>{const u=i.viewport,c=o?"scrollLeft":"scrollTop";if(u){let h=u[c];const f=()=>{const d=u[c];h!==d&&(l("SCROLL"),s()),h=d};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,o,l,s]),C.jsx(bi,{present:n||a!=="hidden",children:C.jsx(yf,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ve(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ve(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),G0=b.forwardRef((e,t)=>
vendor: 4,774 bytes, line 128
128{const n=Kt(An,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,s]=b.useState(!1),a=e.orientation==="horizontal",l=yu(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;s(a?u:c)}},10);return ko(n.viewport,l),ko(n.content,l),C.jsx(bi,{present:r||o,children:C.jsx(yf,{"data-state":o?"visible":"hidden",...i,ref:t})})}),yf=b.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=Kt(An,e.__scopeScrollArea),o=b.useRef(null),s=b.useRef(0),[a,l]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Z0(a.viewport,a.content),c={...r,sizes:a,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>o.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,d){return QT(f,s.current,a,d)}return n==="horizontal"?C.jsx(HT,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const f=i.viewport.scrollLeft,d=Om(f,a,i.dir);o.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=h(f,i.dir))}}):n==="vertical"?C.jsx(WT,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const f=i.viewport.scrollTop,d=Om(f,a);o.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=h(f))}}):null}),HT=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=Kt(An,e.__scopeScrollArea),[s,a]=b.useState(),l=b.useRef(null),u=Ge(t,l,o.onScrollbarXChange);return b.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),C.jsx(Y0,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":gu(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(o.viewport){const f=o.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),tb(f,h)&&c.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ll(s.paddingLeft),paddingEnd:Ll(s.paddingRight)}})}})}),WT=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=Kt(An,e.__scopeScrollArea),[s,a]=b.useState(),l=b.useRef(null),u=Ge(t,l,o.onScrollbarYChange);return b.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),C.jsx(Y0,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":gu(n)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(o.viewport){const f=o.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),tb(f,h)&&c.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ll(s.paddingTop),paddingEnd:Ll(s.paddingBottom)}})}})}),[qT,Q0]=H0(An),Y0=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:h,...f}=e,d=Kt(An,n),[m,g]=b.useState(null),w=Ge(t,P=>g(P)),p=b.useRef(null),y=b.useRef(""),v=d.viewport,S=r.content-r.viewport,E=at(c),_=at(l),T=yu(h,10);function R(P){if(p.current){const I=P.clientX-p.current.left,D=P.clientY-p.current.top;u({x:I,y:D})}}return b.useEffect(()=>{const P=I=>{const D=I.target;(m==null?void 0:m.contains(D))&&E(I,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[v,m,S,E]),b.useEffect(_,[r,_]),ko(m,T),ko(d.content,T),C.jsx(qT,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:at(o),onThumbPointerUp:at(s),onThumbPositionChange:_,onThumbPointerDown:at(a),children:C.jsx(Fe.div,{...f,ref:w,style:{position:"absolute",...f.style},onPointerDown:ve(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),p.current=m.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),R(P))}),onPointerMove:ve(e.onPointerMove,R),onPointerUp:ve(e.onPointerUp,P=>{const I=P.target;I.hasPointerCapture(P.pointerId)&&I.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=y.current,d.viewport&&(d.viewport.style.scrollBehavior=""),p.current=null})})})}),jl="ScrollAreaThumb",J0=b.forwardRef((e,t)=>
128{const{forceMount:n,...r}=e,i=Q0(jl,e.__scopeScrollArea);return C.jsx(bi,{present:n||i.hasThumb,children:C.jsx(KT,{ref:t,...r})})}),KT=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,o=Kt(jl,n),s=Q0(jl,n),{onThumbPositionChange:a}=s,l=Ge(t,h=>s.onThumbChange(h)),u=b.useRef(void 0),c=yu(()=>{u.current&&(u.current(),u.current=void 0)},100);return b.useEffect(()=>{const h=o.viewport;if(h){const f=()=>{if(c(),!u.current){const d=YT(h,a);u.current=d,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[o.viewport,c,a]),C.jsx(Fe.div,{"data-state":s.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ve(e.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),m=h.clientX-d.left,g=h.clientY-d.top;s.onThumbPointerDown({x:m,y:g})}),onPointerUp:ve(e.onPointerUp,s.onThumbPointerUp)})});J0.displayName=jl;var vf="ScrollAreaCorner",X0=b.forwardRef((e,t)=>{const n=Kt(vf,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?C.jsx(GT,{...e,ref:t}):null});X0.displayName=vf;var GT=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=Kt(vf,n),[o,s]=b.useState(0),[a,l]=b.useState(0),u=!!(o&&a);return ko(i.scrollbarX,()=>{var h;const c=((h=i.scrollbarX)==null?void 0:h.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),ko(i.scrollbarY,()=>{var h;const c=((h=i.scrollbarY)==null?void 0:h.offsetWidth)||0;i.onCornerWidthChange(c),s(c)}),u?C.jsx(Fe.div,{...r,ref:t,style:{width:o,height:a,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ll(e){return e?parseInt(e,10):0}function Z0(e,t){const n=e/t;return isNaN(n)?0:n}function gu(e){const t=Z0(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function QT(e,t,n,r="ltr"){const i=gu(n),o=i/2,s=t||o,a=i-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,h=r==="ltr"?[0,c]:[c*-1,0];return eb([l,u],h)(e)}function Om(e,t,n="ltr"){const r=gu(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,s=t.content-t.viewport,a=o-r,l=n==="ltr"?[0,s]:[s*-1,0],u=zT(e,l);return eb([0,s],[0,a])(u)}function eb(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function tb(e,t){return e>0&&e<t}var YT=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},s=n.left!==o.left,a=n.top!==o.top;(s||a)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function yu(e,t){const n=at(e),r=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),b.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ko(e,t){const n=at(t);Kn(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var nb=W0,JT=K0,XT=X0;const rb=b.forwardRef(({className:e,children:t,...n},r)=>C.jsxs(nb,{ref:r,className:Lt("relative overflow-hidden",e),...n,children:[C.jsx(JT,{className:"h-full w-full rounded-[inherit]",children:t}),C.jsx(ib,{}),C.jsx(XT,{})]}));rb.displayName=nb.displayName;const ib=b.forwardRef(({className:e,orientation:t="vertical",...n},r)=>C.jsx(gf,{ref:r,orientation:t,className:Lt("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:C.jsx(J0,{className:"relative flex-1 rounded-full bg-border"})}));ib.displayName=gf.displayName;function ZT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const eP=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tP=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nP={};function Im(e,t){return(nP.jsx?tP:eP).test(e)}const rP=/[ \t\n\f\r]/g;function iP(e){return typeof e=="object"?e.type==="text"?Nm(e.value):!1:Nm(e)}function Nm(e){return e.replace(rP,"")===""}class ta{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ta.prototype.normal={};ta.prototype.property={};ta.prototype.space=void 0;function ob(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ta(n,r,t)}function $d(e){return e.toLowerCase()}class xt{constructor(t,n){this.attribute=n,this.property=t}}xt.prototype.attribute="";xt.prototype.booleanish=!1;xt.prototype.boolean=!1;xt.prototype.commaOrSpaceSeparated=!1;xt.prototype.commaSeparated=!1;xt.prototype.defined=!1;xt.prototype.mustUseProperty=!1;xt.prototype.number=!1;xt.prototype.overloadedBoolean=!1;xt.prototype.property="";xt.prototype.spaceSeparated=!1;xt.prototype.space=void 0;let oP=0;const ie=xi(),je=xi(),Md=xi(),z=xi(),ye=xi(),ro=xi(),Et=xi();function xi(){return 2**++oP}const zd=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:je,commaOrSpaceSeparated:Et,commaSeparated:ro,number:z,overloadedBoolean:Md,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),uc=Object.keys(zd);class wf extends xt{constructor(t,n,r,i){let o=-1;if(super(t,n),jm(this,"space",i),typeof r=="number")for(;++o<uc.length;){const s=uc[o];jm(this,uc[o],(r&zd[s])===zd[s])}}}wf.prototype.defined=!0;function jm(e,t,n){n&&(e[t]=n)}function Oo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new wf(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[$d(r)]=r,n[$d(o.attribute)]=r}return new ta(t,n,e.space)}const sb=Oo({properties:{ariaActiveDescendant:null,ariaAtomic:je,ariaAutoComplete:null,ariaBusy:je,ariaChecked:je,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControl
vendor: 5,400 bytes, line 128
128s:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:je,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:je,ariaFlowTo:ye,ariaGrabbed:je,ariaHasPopup:null,ariaHidden:je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:z,ariaLive:null,ariaModal:je,ariaMultiLine:je,ariaMultiSelectable:je,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:je,ariaReadOnly:je,ariaRelevant:null,ariaRequired:je,ariaRoleDescription:ye,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:je,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ab(e,t){return t in e?e[t]:t}function lb(e,t){return ab(e,t.toLowerCase())}const sP=Oo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ro,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:ye,autoFocus:ie,autoPlay:ie,blocking:ye,capture:null,charSet:null,checked:ie,cite:null,className:ye,cols:z,colSpan:null,content:null,contentEditable:je,controls:ie,controlsList:ye,coords:z|ro,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Md,draggable:je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:ye,height:z,hidden:Md,high:z,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:ye,itemRef:ye,itemScope:ie,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:z,pattern:null,ping:ye,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:ye,required:ie,reversed:ie,rows:z,rowSpan:z,sandbox:ye,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:je,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:je,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:lb}),aP=Oo({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",colorRen
128dering:"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-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:Et,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
128dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:ro,g2:ro,glyphName:ro,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:Et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Et,rev:Et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Et,requiredFeatures:Et,requiredFonts:Et,requiredFormats:Et,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:Et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Et,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ab}),ub=Oo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,409 bytes, lines 128-129
128,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),cb=Oo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lb}),db=Oo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lP={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"},uP=/[A-Z]/g,Lm=/-[a-z]/g,cP=/^data[-\w.:]+$/i;function dP(e,t){const n=$d(t);let r=t,i=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&cP.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Lm,fP);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Lm.test(o)){let s=o.replace(uP,hP);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=wf}return new i(r,t)}function hP(e){return"-"+e.toLowerCase()}function fP(e){return e.charAt(1).toUpperCase()}const pP=ob([sb,sP,ub,cb,db],"html"),bf=ob([sb,aP,ub,cb,db],"svg");function mP(e){return e.join(" ").trim()}var xf={},Dm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,gP=/\n/g,yP=/^\s*/,vP=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wP=/^:\s*/,bP=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xP=/^[;\s]*/,SP=/^\s+|\s+$/g,_P=` 129`,$m="/",Mm="*",Jr="",kP="comment",EP="declaration";function CP(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(gP);g&&(n+=g.length);var w=m.lastIndexOf(_P);r=~w?m.length-w:r+m.length}function o(){var m={line:n,column:r};return function(g){return g.position=new s(m),u(),g}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var w=g[0];return i(w),e=e.slice(w.length),g}}function u(){l(yP)}function c(m){var g;for(m=m||[];g=h();)g!==!1&&m.push(g);return m}function h(){var m=o();if(!($m!=e.charAt(0)||Mm!=e.charAt(1))){for(var g=2;Jr!=e.charAt(g)&&(Mm!=e.charAt(g)||$m!=e.charAt(g+1));)++g;if(g+=2,Jr===e.charAt(g-1))return a("End of comment missing");var w=e.slice(2,g-2);return r+=2,i(w),e=e.slice(g),r+=2,m({type:kP,comment:w})}}function f(){var m=o(),g=l(vP);if(g){if(h(),!l(wP))return a("property missing ':'");var w=l(bP),p=m({type:EP,property:zm(g[0].replace(Dm,Jr)),value:w?zm(w[0].replace(Dm,Jr)):Jr});return l(xP),p}}function d(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),d()}function zm(e){return e?e.replace(SP,Jr):Jr}var TP=CP,PP=tl&&tl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xf,"__esModule",{value:!0});xf.default=AP;const RP=PP(TP);function AP(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,RP.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;i?t(s,a,o):a&&(n=n||{},n[s]=a)}),n}var vu={};Object.defineProperty(vu,"__esModule",{value:!0});vu.camelCase=void 0;var OP=/^--[a-zA-Z0-9_-]+$/,IP=/-([a-z])/g,NP=/^[^-]+$/,jP=/^-(webkit|moz|ms|o|khtml)-/,LP=/^-(ms)-/,DP=function(e){return!e||NP.test(e)||OP.test(e)},$P=function(e,t){return t.toUpperCase()},Fm=function(e,t){return"".concat(t,"-")},MP=function(e,t){return t===void 0&&(t={}),DP(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(LP,Fm):e=e.replace(jP,Fm),e.replace(IP,$P))};vu.camelCase=MP;var zP=tl&&tl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},FP=zP(xf),UP=vu;function Fd(e,t){var n={};return!e||typeof e!="string"||(0,FP.default)(e,function(r,i){r&&i&&(n[(0,UP.camelCase)(r,t)]=i)}),n}Fd.default=Fd;var BP=Fd;const VP=Ul(BP),hb=fb("end"),Sf=fb("start");function fb(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function HP(e){const t=Sf(e),n=hb(e);
vendor: 2,261 bytes, line 129
129if(t&&n)return{start:t,end:n}}function cs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Um(e.position):"start"in e||"end"in e?Um(e):"line"in e||"column"in e?Ud(e):""}function Ud(e){return Bm(e&&e.line)+":"+Bm(e&&e.column)}function Um(e){return Ud(e&&e.start)+"-"+Ud(e&&e.end)}function Bm(e){return e&&typeof e=="number"?e:1}class tt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=cs(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tt.prototype.file="";tt.prototype.name="";tt.prototype.reason="";tt.prototype.message="";tt.prototype.stack="";tt.prototype.column=void 0;tt.prototype.line=void 0;tt.prototype.ancestors=void 0;tt.prototype.cause=void 0;tt.prototype.fatal=void 0;tt.prototype.place=void 0;tt.prototype.ruleId=void 0;tt.prototype.source=void 0;const _f={}.hasOwnProperty,WP=new Map,qP=/[A-Z]/g,KP=new Set(["table","tbody","thead","tfoot","tr"]),GP=new Set(["td","th"]),pb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QP(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=rR(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 129
129if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=nR(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?bf:pP,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=mb(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function mb(e,t,n){if(t.type==="element")return YP(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return JP(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ZP(e,t,n);if(t.type==="mdxjsEsm")return XP(e,t);if(t.type==="root")return eR(e,t,n);if(t.type==="text")return tR(e,t)}function YP(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=bf,e.schema=i),e.ancestors.push(t);const o=yb(e,t.tagName,!1),s=iR(e,t);let a=Ef(e,t);return KP.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!iP(l):!0})),gb(e,s,o,t),kf(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function JP(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ds(e,t.position)}function XP(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ds(e,t.position)}function ZP(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=bf,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:yb(e,t.name,!0),s=oR(e,t),a=Ef(e,t);return gb(e,s,o,t),kf(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function eR(e,t,n){const r={};return kf(r,Ef(e,t)),e.create(t,e.Fragment,r,n)}function tR(e,t){return t.value}function gb(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function kf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function nR(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function rR(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=Sf(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function iR(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&_f.call(t.properties,i)){const o=sR(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&GP.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function oR(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ds(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ds(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Ef(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:WP;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=mb(e,o,s);a!==void 0&&n.push(a)}return n}function sR(e,t,n){const r=dP(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ZT(n):mP(n)),r.property==="style"){let i=typeof n=="object"?n:aR(e,String(n));return e.stylePropertyNameCase==="css"&&(i=lR(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?lP[r.property]||r.property:r.attribute,n]}}function aR(e,t){try{return VP(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new tt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=pb+"#cannot-parse-style-attribute",i}}function yb(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Im(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Im(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return _f.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ds(e)}function Ds(e,t){const n=new tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=pb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function lR(e){const t={};let n;for(n in e)_f.call(e,n)&&(t[uR(n)]=e[n]);return t}function uR(e){let t=e.replace(qP,cR);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function cR(e){return"-"+e.toLowerCase()}const cc={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"]},dR={};function hR(e,t){const n=dR,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return vb(e,r,i)}function vb(e,t,n){if(fR(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vm(e.children,t,n)}return Array.isArray(e)?Vm(e,t,n):""}function Vm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=vb(e[i],t,n);return r.join("")}function fR(e){return!!(e&&typeof e=="object")}const Hm=document.createElement("i");function Cf(e){const t="&"+e+";";Hm.innerHTML=t;const n=Hm.textContent;
vendor: 12,683 bytes, line 129
129return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Pn(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Bt(e,t){return e.length>0?(Pn(e,e.length,0,t),e):t}const Wm={}.hasOwnProperty;function pR(e){const t={};let n=-1;for(;++n<e.length;)mR(t,e[n]);return t}function mR(e,t){let n;for(n in t){const i=(Wm.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){Wm.call(i,s)||(i[s]=[]);const a=o[s];gR(i[s],Array.isArray(a)?a:a?[a]:[])}}}function gR(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pn(e,0,0,r)}function wb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function io(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kn=Ur(/[A-Za-z]/),Ot=Ur(/[\dA-Za-z]/),yR=Ur(/[#-'*+\--9=?A-Z^-~]/);function Bd(e){return e!==null&&(e<32||e===127)}const Vd=Ur(/\d/),vR=Ur(/[\dA-Fa-f]/),wR=Ur(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function wt(e){return e!==null&&(e<0||e===32)}function he(e){return e===-2||e===-1||e===32}const bR=Ur(new RegExp("\\p{P}|\\p{S}","u")),xR=Ur(/\s/);function Ur(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Io(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Ot(e.charCodeAt(n+1))&&Ot(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return he(l)?(e.enter(n),a(l)):t(l)}function a(l){return he(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const SR={tokenize:_R};function _R(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const kR={tokenize:ER},qm={tokenize:CR};function ER(e){const t=this,n=[];let r=0,i,o,s;return a;function a(v){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let E=S,_;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){_=t.events[E][1].end;break}p(r);let T=S;for(;T<t.events.length;)t.events[T][1].end={..._},T++;return Pn(t.events,E+1,0,t.events.slice(S)),t.events.length=T,u(v)}return a(v)}function u(v){if(r===n.length){if(!i)return f(v);if(i.currentConstruct&&i.currentConstruct.concrete)return m(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qm,c,h)(v)}function c(v){return i&&y(),p(r),f(v)}function h(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(v)}function f(v){return t.containerState={},e.attempt(qm,d,m)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),f(v)}function m(v){if(v===null){i&&y(),p(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(v)}function g(v){if(v===null){w(e.exit("chunkFlow"),!0),p(0),e.consume(v);return}return Z(v)?(e.consume(v),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),g)}function w(v,S){const E=t.sliceStream(v);if(S&&E.push(null),v.previous=o,o&&(o.next=v),o=v,i.defineSkip(v.start),i.write(E),t.parser.lazy[v.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<s&&(!i.events[_][1].end||i.events[_][1].end.offset>s))return;const T=t.events.length;let R=T,P,I;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(P){I=t.events[R][1].end;break}P=!0}for(p(r),_=T;_<t.events.length;)t.events[_][1].end={...I},_++;Pn(t.events,R+1,0,t.events.slice(T)),t.events.length=_}}function p(v){let S=n.length;for(;S-- >v;){const E=n[S];t.containerState=E[1],E[0].exit.call(t,e)}n.length=v}function y(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function CR(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Km(e){if(e===null||wt(e)||xR(e))return 1;if(bR(e))return 2}function Tf(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Hd={name:"attention",resolveAll:TR,tokenize:PR};function TR(e,t){let n=-1,r,i,o,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},f={...e[n][1].start};Gm(h,-l),Gm(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Bt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Bt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Bt(u,Tf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Bt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Bt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Pn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function PR(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Km(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Km(l),h=!c||c===2&&i||n.includes(l),f=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?h:h&&(i||!f)),u._close=!!(o===42?f:f&&(c||!h)),t(l)}}function Gm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RR={name:"autolink",tokenize:AR};function AR(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return kn(d)?(e.consume(d),s):d===64?n(d):u(d)}function s(d){return d===43||d===45||d===46||Ot(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||Ot(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Bd(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):yR(d)?(e.consume(d),u):n(d)}function c(d){return Ot(d)?h(d):n(d)}function h(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):f(d)}function f(d){if((d===45||Ot(d))&&r++<63){const m=d===45?f:h;return e.consume(d),m}return n(d)}}const wu={partial:!0,tokenize:OR};function OR(e,t,n){return r;function r(o){return he(o)?be(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||Z(o)?t(o):n(o)}}const bb={continuation:{tokenize:NR},exit:jR,name:"blockQuote",tokenize:IR};function IR(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return he(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function NR(e,t,n){const r=this;return i;function i(s){return he(s)?be(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(bb,t,n)(s)}}function jR(e){e.exit("blockQuote")}const xb={name:"characterEscape",tokenize:LR};function LR(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return wR(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Sb={name:"characterReference",tokenize:DR};function DR(e,t,n){const r=this;let i=0,o,s;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Ot,c(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=vR,c):(e.enter("characterReferenceValue"),o=7,s=Vd,c(h))}function c(h){if(h===59&&i){const f=e.exit("characterReferenceValue");return s===Ot&&!Cf(r.sliceSerialize(f))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<o?(e.consume(h),c):n(h)}}const Qm={partial:!0,tokenize:MR},Ym={concrete:!0,name:"codeFenced",tokenize:$R};function $R(e,t,n){const r=this,i={partial:!0,tokenize:E};let o=0,s=0,a;return l;function l(_){return u(_)}function u(_){const T=r.events[r.events.length-1];return o=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===a?(s++,e.consume(_),c):s<3?n(_):(e.exit("codeFencedFenceSequence"),he(_)?be(e,h,"whitespace")(_):h(_))}function h(_){return _===null||Z(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(Qm,g,S)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(_))}function f(_){return _===null||Z(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(_)):he(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,d,"whitespace")(_)):_===96&&_===a?n(_):(e.consume(_),f)}function d(_){return _===null||Z(_)?h(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||Z(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(_)):_===96&&_===a?n(_):(e.consume(_),m)}function g(_){return e.attempt(i,S,w)(_)}function w(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),p}function p(_){return o>0&&he(_)?be(e,y,"linePrefix",o+1)(_):y(_)}function y(_){return _===null||Z(_)?e.check(Qm,g,S)(_):(e.enter("codeFlowValue"),v(_))}function v(_){return _===null||Z(_)?(e.exit("codeFlowValue"),y(_)):(e.consume(_),v)}function S(_){return e.exit("codeFenced"),t(_)}function E(_,T,R){let P=0;return I;function I(B){return _.enter("lineEnding"),_.consume(B),_.exit("lineEnding"),D}function D(B){return _.enter("codeFencedFence"),he(B)?be(_,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):A(B)}function A(B){return B===a?(_.enter("codeFencedFenceSequence"),V(B)):R(B)}function V(B){return B===a?(P++,_.consume(B),V):P>=s?(_.exit("codeFencedFenceSequence"),he(B)?be(_,$,"whitespace")(B):$(B)):R(B)}function $(B){return B===null||Z(B)?(_.exit("codeFencedFence"),T(B)):R(B)}}}
vendor: 10,113 bytes, line 129
129function MR(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const dc={name:"codeIndented",tokenize:FR},zR={partial:!0,tokenize:UR};function FR(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),be(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):Z(u)?e.attempt(zR,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Z(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function UR(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):be(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):Z(s)?i(s):n(s)}}const BR={name:"codeText",previous:HR,resolve:VR,tokenize:WR};function VR(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function HR(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function WR(e,t,n){let r=0,i,o;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(o=e.enter("codeTextSequence"),i=0,c(h)):Z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||Z(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),u)}function c(h){return h===96?(e.consume(h),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",u(h))}}class qR{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Wo(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Wo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Wo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Wo(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Wo(this.left,n.reverse())}}}function Wo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function _b(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new qR(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,KR(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return Pn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function KR(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,h,f=-1,d=n,m=0,g=0;const w=[g];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(g=f+1,w.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):w.pop(),f=w.length;f--;){const p=a.slice(w[f],w[f+1]),y=o.pop();l.push([y,y+p.length-1]),e.splice(y,2,p)}for(l.reverse(),f=-1;++f<l.length;)u[m+l[f][0]]=m+l[f][1],m+=l[f][1]-l[f][0]-1;return u}const GR={resolve:YR,tokenize:JR},QR={partial:!0,tokenize:XR};function YR(e){return _b(e),e}function JR(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):Z(a)?e.check(QR,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function XR(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,o,"linePrefix")}function o(s){if(s===null||Z(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function kb(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return h;function h(p){return p===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(p),e.exit(o),f):p===null||p===32||p===41||Bd(p)?n(p):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(p))}function f(p){return p===62?(e.enter(o),e.consume(p),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===62?(e.exit("chunkString"),e.exit(a),f(p)):p===null||p===60||Z(p)?n(p):(e.consume(p),p===92?m:d)}function m(p){return p===60||p===62||p===92?(e.consume(p),d):d(p)}function g(p){return!c&&(p===null||p===41||wt(p))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(p)):c<u&&p===40?(e.consume(p),c++,g):p===41?(e.consume(p),c--,g):p===null||p===32||p===40||Bd(p)?n(p):(e.consume(p),p===92?w:g)}function w(p){return p===40||p===41||p===92?(e.consume(p),g):g(p)}}function Eb(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),c}function c(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Z(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||Z(d)||a++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!he(d)),d===92?f:h)}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,h):h(d)}}function Cb(e,t,n,r,i,o){let s;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===s?(e.exit(o),l(s)):f===null?n(f):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||Z(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?h:c)}function h(f){return f===s||f===92?(e.consume(f),c):c(f)}}function ds(e,t){let n;return r;function r(i){return Z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):he(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ZR={name:"definition",tokenize:tA},eA={partial:!0,tokenize:nA};function tA(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),s(d)}function s(d){return Eb.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=io(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return wt(d)?ds(e,u)(d):u(d)}function u(d){return kb(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(eA,h,h)(d)}function h(d){return he(d)?be(e,f,"whitespace")(d):f(d)}function f(d){return d===null||Z(d)?(e.exit("definition"),r.parser.defined.push(i),t(d
vendor: 13,769 bytes, line 129
129)):n(d)}}function nA(e,t,n){return r;function r(a){return wt(a)?ds(e,i)(a):n(a)}function i(a){return Cb(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return he(a)?be(e,s,"whitespace")(a):s(a)}function s(a){return a===null||Z(a)?t(a):n(a)}}const rA={name:"hardBreakEscape",tokenize:iA};function iA(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return Z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const oA={name:"headingAtx",resolve:sA,tokenize:aA};function sA(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function aA(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||wt(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Z(c)?(e.exit("atxHeading"),t(c)):he(c)?be(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||wt(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const lA=["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"],Jm=["pre","script","style","textarea"],uA={concrete:!0,name:"htmlFlow",resolveTo:hA,tokenize:fA},cA={partial:!0,tokenize:mA},dA={partial:!0,tokenize:pA};function hA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fA(e,t,n){const r=this;let i,o,s,a,l;return u;function u(k){return c(k)}function c(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),f):k===47?(e.consume(k),o=!0,g):k===63?(e.consume(k),i=3,r.interrupt?t:x):kn(k)?(e.consume(k),s=String.fromCharCode(k),w):n(k)}function f(k){return k===45?(e.consume(k),i=2,d):k===91?(e.consume(k),i=5,a=0,m):kn(k)?(e.consume(k),i=4,r.interrupt?t:x):n(k)}function d(k){return k===45?(e.consume(k),r.interrupt?t:x):n(k)}function m(k){const X="CDATA[";return k===X.charCodeAt(a++)?(e.consume(k),a===X.length?r.interrupt?t:A:m):n(k)}function g(k){return kn(k)?(e.consume(k),s=String.fromCharCode(k),w):n(k)}function w(k){if(k===null||k===47||k===62||wt(k)){const X=k===47,pe=s.toLowerCase();return!X&&!o&&Jm.includes(pe)?(i=1,r.interrupt?t(k):A(k)):lA.includes(s.toLowerCase())?(i=6,X?(e.consume(k),p):r.interrupt?t(k):A(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):o?y(k):v(k))}return k===45||Ot(k)?(e.consume(k),s+=String.fromCharCode(k),w):n(k)}function p(k){return k===62?(e.consume(k),r.interrupt?t:A):n(k)}function y(k){return he(k)?(e.consume(k),y):I(k)}function v(k){return k===47?(e.consume(k),I):k===58||k===95||kn(k)?(e.consume(k),S):he(k)?(e.consume(k),v):I(k)}function S(k){return k===45||k===46||k===58||k===95||Ot(k)?(e.consume(k),S):E(k)}function E(k){return k===61?(e.consume(k),_):he(k)?(e.consume(k),E):v(k)}function _(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,T):he(k)?(e.consume(k),_):R(k)}function T(k){return k===l?(e.consume(k),l=null,P):k===null||Z(k)?n(k):(e.consume(k),T)}function R(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||wt(k)?E(k):(e.consume(k),R)}function P(k){return k===47||k===62||he(k)?v(k):n(k)}function I(k){return k===62?(e.consume(k),D):n(k)}function D(k){return k===null||Z(k)?A(k):he(k)?(e.consume(k),D):n(k)}function A(k){return k===45&&i===2?(e.consume(k),H):k===60&&i===1?(e.consume(k),q):k===62&&i===4?(e.consume(k),Y):k===63&&i===3?(e.consume(k),x):k===93&&i===5?(e.consume(k),j):Z(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(cA,G,V)(k)):k===null||Z(k)?(e.exit("htmlFlowData"),V(k)):(e.consume(k),A)}function V(k){return e.check(dA,$,G)(k)}function $(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),B}function B(k){return k===null||Z(k)?V(k):(e.enter("htmlFlowData"),A(k))}function H(k){return k===45?(e.consume(k),x):A(k)}function q(k){return k===47?(e.consume(k),s="",N):A(k)}function N(k){if(k===62){const X=s.toLowerCase();return Jm.includes(X)?(e.consume(k),Y):A(k)}return kn(k)&&s.length<8?(e.consume(k),s+=String.fromCharCode(k),N):A(k)}function j(k){return k===93?(e.consume(k),x):A(k)}function x(k){return k===62?(e.consume(k),Y):k===45&&i===2?(e.consume(k),x):A(k)}function Y(k){return k===null||Z(k)?(e.exit("htmlFlowData"),G(k)):(e.consume(k),Y)}function G(k){return e.exit("htmlFlow"),t(k)}}function pA(e,t,n){const r=this;return i;function i(s){return Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function mA(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(wu,t,n)}}const gA={name:"htmlText",tokenize:yA};function yA(e,t,n){const r=this;let i,o,s;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),l}function l(x){return x===33?(e.consume(x),u):x===47?(e.consume(x),E):x===63?(e.consume(x),v):kn(x)?(e.consume(x),R):n(x)}function u(x){return x===45?(e.consume(x),c):x===91?(e.consume(x),o=0,m):kn(x)?(e.consume(x),y):n(x)}function c(x){return x===45?(e.consume(x),d):n(x)}function h(x){return x===null?n(x):x===45?(e.consume(x),f):Z(x)?(s=h,q(x)):(e.consume(x),h)}function f(x){return x===45?(e.consume(x),d):h(x)}function d(x){return x===62?H(x):x===45?f(x):h(x)}function m(x){const Y="CDATA[";return x===Y.charCodeAt(o++)?(e.consume(x),o===Y.length?g:m):n(x)}function g(x){return x===null?n(x):x===93?(e.consume(x),w):Z(x)?(s=g,q(x)):(e.consume(x),g)}function w(x){return x===93?(e.consume(x),p):g(x)}function p(x){return x===62?H(x):x===93?(e.consume(x),p):g(x)}function y(x){return x===null||x===62?H(x):Z(x)?(s=y,q(x)):(e.consume(x),y)}function v(x){return x===null?n(x):x===63?(e.consume(x),S):Z(x)?(s=v,q(x)):(e.consume(x),v)}function S(x){return x===62?H(x):v(x)}function E(x){return kn(x)?(e.consume(x),_):n(x)}function _(x){return x===45||Ot(x)?(e.consume(x),_):T(x)}function T(x){return Z(x)?(s=T,q(x)):he(x)?(e.consume(x),T):H(x)}function R(x){return x===45||Ot(x)?(e.consume(x),R):x===47||x===62||wt(x)?P(x):n(x)}function P(x){return x===47?(e.consume(x),H):x===58||x===95||kn(x)?(e.consume(x),I):Z(x)?(s=P,q(x)):he(x)?(e.consume(x),P):H(x)}function I(x){return x===45||x===46||x===58||x===95||Ot(x)?(e.consume(x),I):D(x)}function D(x){return x===61?(e.consume(x),A):Z(x)?(s=D,q(x)):he(x)?(e.consume(x),D):P(x)}function A(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,V):Z(x)?(s=A,q(x)):he(x)?(e.consume(x),A):(e.consume(x),$)}function V(x){return x===i?(e.consume(x),i=void 0,B):x===null?n(x):Z(x)?(s=V,q(x)):(e.consume(x),V)}function $(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||wt(x)?P(x):(e.consume(x),$)}function B(x){return x===47||x===62||wt(x)?P(x):n(x)}function H(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function q(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),N}function N(x){return he(x)?be(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):j(x)}function j(x){return e.enter("htmlTextData"),s(x)}}const Pf={name:"labelEnd",resolveAll:xA,resolveTo:SA,tokenize:_A},vA={tokenize:kA},wA={tokenize:EA},bA={tokenize:CA};function xA(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Pn(e,0,e.length,n),e}function SA(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=Bt(a,e.slice(o+1,o+r+3)),a=Bt(a,[["enter",c,t]]),a=Bt(a,Tf(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Bt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=Bt(a,e.slice(s+1)),a=Bt(a,[["exit",l,t]]),Pn(e,o,e.length,a),e}function _A(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(f){return o?o._inactive?h(f):(s=r.parser.defined.includes(io(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(vA,c,s?c:h)(f):f===91?e.attempt(wA,c,s?u:h)(f):s?c(f):h(f)}function u(f){return e.attempt(bA,c,h)(f)}function c(f){return t(f)}function h(f){return o._balanced=!0,n(f)}}function kA(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return wt(h)?ds(e,o)(h):o(h)}function o(h){return h===41?c(h):kb(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return wt(h)?ds(e,l)(h):c(h)}function a(h){return n(h)}function l(h){return h===34||h===39||h===40?Cb(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function u(h){return wt(h)?ds(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function EA(e,t,n){const r=this;return i;function i(a){return Eb.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(io(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function CA(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const TA={name:"labelStartImage",resolveAll:Pf.resolveAll,tokenize:PA};function PA(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const RA={name:"labelStartLink",resolveAll:Pf.resolveAll,tokenize:AA};function AA(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const hc={name:"lineEnding",tokenize:OA};function OA(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const Za={name:"thematicBreak",tokenize:IA};function IA(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||Z(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),he(u)?be(e,a,"whitespace")(u):a(u))}}const ht={continuation:{tokenize:DA},exit:MA,name:"list",tokenize:LA},NA={partial:!0,tokenize:zA},jA={partial:!0,tokenize:$A};function LA(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Vd(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Za,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return Vd(d)&&++s<10?(e.consume(d),l):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(wu,r.interrupt?n:c,e.attempt(NA,f,h))}
vendor: 8,905 bytes, lines 129-131
129function c(d){return r.containerState.initialBlankLine=!0,o++,f(d)}function h(d){return he(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):n(d)}function f(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function DA(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(wu,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!he(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jA,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(ht,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function $A(e,t,n){const r=this;return be(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function MA(e){e.exit(this.containerState.type)}function zA(e,t,n){const r=this;return be(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!he(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Xm={name:"setextUnderline",resolveTo:FA,tokenize:UA};function FA(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function UA(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,h;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){h=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),he(u)?be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Z(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const BA={tokenize:VA};function VA(e){const t=this,n=e.attempt(wu,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(GR,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HA={resolveAll:Pb()},WA=Tb("string"),qA=Tb("text");function Tb(e){return{resolveAll:Pb(e==="text"?KA:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const h=i[c];let f=-1;if(h)for(;++f<h.length;){const d=h[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Pb(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function KA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const GA={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:bb},QA={91:ZR},YA={[-2]:dc,[-1]:dc,32:dc},JA={35:oA,42:Za,45:[Xm,Za],60:uA,61:Xm,95:Za,96:Ym,126:Ym},XA={38:Sb,92:xb},ZA={[-5]:hc,[-4]:hc,[-3]:hc,33:TA,38:Sb,42:Hd,60:[RR,gA],91:RA,92:[rA,xb],93:Pf,95:Hd,96:BR},eO={null:[Hd,HA]},tO={null:[42,95]},nO={null:[]},rO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:tO,contentInitial:QA,disable:nO,document:GA,flow:JA,flowInitial:YA,insideSpan:eO,string:XA,text:ZA},Symbol.toStringTag,{value:"Module"}));function iO(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:T(E),check:T(_),consume:y,enter:v,exit:S,interrupt:T(_,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:d,write:h};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function h(D){return s=Bt(s,D),w(),s[s.length-1]!==null?[]:(R(t,0),u.events=Tf(o,u.events,u),u.events)}function f(D,A){return sO(d(D),A)}function d(D){return oO(s,D)}function m(){const{_bufferIndex:D,_index:A,line:V,column:$,offset:B}=r;return{_bufferIndex:D,_index:A,line:V,column:$,offset:B}}function g(D){i[D.line]=D.column,I()}function w(){let D;for(;r._index<s.length;){const A=s[r._index];if(typeof A=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<A.length;)p(A.charCodeAt(r._bufferIndex));else p(A)}}function p(D){c=c(D)}function y(D){Z(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,I()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function v(D,A){const V=A||{};return V.type=D,V.start=m(),u.events.push(["enter",V,u]),a.push(V),V}function S(D){const A=a.pop();return A.end=m(),u.events.push(["exit",A,u]),A}function E(D,A){R(D,A.from)}function _(D,A){A.restore()}function T(D,A){return V;function V($,B,H){let q,N,j,x;return Array.isArray($)?G($):"tokenize"in $?G([$]):Y($);function Y(le){return ae;function ae(nt){const rt=nt!==null&&le[nt],dt=nt!==null&&le.null,St=[...Array.isArray(rt)?rt:rt?[rt]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return G(St)(nt)}}function G(le){return q=le,N=0,le.length===0?H:k(le[N])}function k(le){return ae;function ae(nt){return x=P(),j=le,le.partial||(u.currentConstruct=le),le.name&&u.parser.constructs.disable.null.includes(le.name)?pe():le.tokenize.call(A?Object.assign(Object.create(u),A):u,l,X,pe)(nt)}}function X(le){return D(j,x),B}function pe(le){return x.restore(),++N<q.length?k(q[N]):H}}}function R(D,A){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&Pn(u.events,A,u.events.length-A,D.resolve(u.events.slice(A),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function P(){const D=m(),A=u.previous,V=u.currentConstruct,$=u.events.length,B=Array.from(a);return{from:$,restore:H};function H(){r=D,u.previous=A,u.currentConstruct=V,u.events.length=$,a=B,I()}}function I(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function oO(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function sO(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=` 130`;break}case-3:{s=`\r 131`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function aO(e){const r={constructs:pR([rO,...(e||{}).extensions||[]]),content:i(SR),defined:[],document:i(kR),flow:i(BA),lazy:{},string:i(WA),text:i(qA)};return r;function i(o){return s;function s(a){return iO(r,o,a)}}}function lO(e){for(;!_b(e););return e}const Zm=/[\0\t\n\r]/g;function uO(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,h,f,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),h=0,t="",n&&(o.charCo
vendor: 9,129 bytes, line 131
131deAt(0)===65279&&h++,n=void 0);h<o.length;){if(Zm.lastIndex=h,u=Zm.exec(o),f=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(f),!u){t=o.slice(h);break}if(d===10&&h===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<f&&(l.push(o.slice(h,f)),e+=f-h),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const cO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dO(e){return e.replace(cO,hO)}function hO(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return wb(n.slice(o?2:1),o?16:10)}return Cf(n)||e}const Rb={}.hasOwnProperty;function fO(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),pO(n)(lO(aO(n).document().write(uO()(e,t,!0))))}function pO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(On),autolinkProtocol:P,autolinkEmail:P,atxHeading:o(_i),blockQuote:o(dt),characterEscape:P,characterReference:P,codeFenced:o(St),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(St,s),codeText:o(Xn,s),codeTextData:P,data:P,codeFlowValue:P,definition:o(mn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Si),hardBreakEscape:o(Br),hardBreakTrailing:o(Br),htmlFlow:o(ki,s),htmlFlowData:P,htmlText:o(ki,s),htmlTextData:P,image:o(Vr),label:s,link:o(On),listItem:o(Hr),listItemValue:f,listOrdered:o(jo,h),listUnordered:o(jo),paragraph:o(ia),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(_i),strong:o(In),thematicBreak:o(Tu)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:rt,autolinkProtocol:nt,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:le,characterReference:ae,codeFenced:l(w),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:I,codeIndented:l(p),codeText:l(B),codeTextData:I,data:I,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(V),htmlFlowData:I,htmlText:l($),htmlTextData:I,image:l(q),label:j,labelText:N,lineEnding:D,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:x,resourceTitleString:Y,resource:G,setextHeading:l(R),setextHeadingLineSequence:T,setextHeadingText:_,strong:l(),thematicBreak:l()}};Ab(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(O){let F={type:"root",children:[]};const ee={stack:[F],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},oe=[];let ce=-1;for(;++ce<O.length;)if(O[ce][1].type==="listOrdered"||O[ce][1].type==="listUnordered")if(O[ce][0]==="enter")oe.push(ce);else{const _t=oe.pop();ce=i(O,_t,ce)}for(ce=-1;++ce<O.length;){const _t=t[O[ce][0]];Rb.call(_t,O[ce][1].type)&&_t[O[ce][1].type].call(Object.assign({sliceSerialize:O[ce][2].sliceSerialize},ee),O[ce][1])}if(ee.tokenStack.length>0){const _t=ee.tokenStack[ee.tokenStack.length-1];(_t[1]||eg).call(ee,void 0,_t[0])}for(F.position={start:ar(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:ar(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)F=t.transforms[ce](F)||F;return F}function i(O,F,ee){let oe=F-1,ce=-1,_t=!1,gn,kt,Mt,Zn;for(;++oe<=ee;){const Ne=O[oe];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?ce++:ce--,Zn=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(gn&&!Zn&&!ce&&!Mt&&(Mt=oe),Zn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zn=void 0}if(!ce&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||ce===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(gn){let er=oe;for(kt=void 0;er--;){const Gt=O[er];if(Gt[1].type==="lineEnding"||Gt[1].type==="lineEndingBlank"){if(Gt[0]==="exit")continue;kt&&(O[kt][1].type="lineEndingBlank",_t=!0),Gt[1].type="lineEnding",kt=er}else if(!(Gt[1].type==="linePrefix"||Gt[1].type==="blockQuotePrefix"||Gt[1].type==="blockQuotePrefixWhitespace"||Gt[1].type==="blockQuoteMarker"||Gt[1].type==="listItemIndent"))break}Mt&&(!kt||Mt<kt)&&(gn._spread=!0),gn.end=Object.assign({},kt?O[kt][1].start:Ne[1].end),O.splice(kt||oe,0,["exit",gn,Ne[2]]),oe++,ee++}if(Ne[1].type==="listItemPrefix"){const er={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};gn=er,O.splice(oe,0,["enter",er,Ne[2]]),oe++,ee++,Mt=void 0,Zn=!0}}}return O[F][1]._spread=_t,ee}function o(O,F){return ee;function ee(oe){a.call(this,O(oe),oe),F&&F.call(this,oe)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(O,F,ee){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([F,ee||void 0]),O.position={start:ar(F.start),end:void 0}}function l(O){return F;function F(ee){O&&O.call(this,ee),u.call(this,ee)}}function u(O,F){const ee=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==O.type&&(F?F.call(this,O,oe[0]):(oe[1]||eg).call(this,O,oe[0]));else throw new Error("Cannot close `"+O.type+"` ("+cs({start:O.start,end:O.end})+"): itâs not open");ee.position.end=ar(O.end)}function c(){return hR(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(O){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function d(){const O=this.resume(),F=this.stack[this.stack.length-1];F.lang=O}function m(){const O=this.resume(),F=this.stack[this.stack.length-1];F.meta=O}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const O=this.resume(),F=this.stack[this.stack.length-1];F.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function p(){const O=this.resume(),F=this.stack[this.stack.length-1];F.value=O.replace(/(\r?\n|\r)$/g,"")}function y(O){const F=this.resume(),ee=this.stack[this.stack.length-1];ee.label=F,ee.identifier=io(this.sliceSerialize(O)).toLowerCase()}function v(){const O=this.resume(),F=this.stack[this.stack.length-1];F.title=O}function S(){const O=this.resume(),F=this.stack[this.stack.length-1];F.url=O}function E(O){const F=this.stack[this.stack.length-1];if(!F.depth){const ee=this.sliceSerialize(O).length;F.depth=ee}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function T(O){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function P(O){const ee=this.stack[this.stack.length-1].children;let oe=ee[ee.length-1];(!oe||oe.type!=="text")&&(oe=Cu(),oe.position={start:ar(O.start),end:void 0},ee.push(oe)),this.stack.push(oe)}function I(O){const F=this.stack.pop();F.value+=this.sliceSerialize(O),F.position.end=ar(O.end)}function D(O){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=F.children[F.children.length-1];ee.position.end=ar(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(F.type)&&(P.call(this,O),I.call(this,O))}function A(){this.data.atHardBreak=!0}function V(){const O=this.resume(),F=this.stack[this.stack.length-1];F.value=O}function $(){const O=this.resume(),F=this.stack[this.stack.length-1];F.value=O}function B(){const O=this.resume(),F=this.stack[this.stack.length-1];F.value=O}function H(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=F,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function q(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=F,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function N(O){const F=this.sliceSerialize(O),ee=this.stack[this.stack.length-2];ee.label=dO(F),ee.identifier=io(F).toLowerCase()}function j(){const O=this.stack[this.stack.length-1],F=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const oe=O.children;ee.children=oe}else ee.alt=F}function x(){const O=this.resume(),F=this.stack[this.stack.length-1];F.url=O}function Y(){const O=this.resume(),F=this.stack[this.stack.length-1];F.title=O}function G(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function X(O){const F=this.resume(),ee=this.stack[this.stack.length-1];ee.label=F,ee.identifier=io(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function pe(O){this.data.characterReferenceType=O.type}function le(O){const F=this.sliceSerialize(O),ee=this.data.characterReferenceType;let oe;
vendor: 12,542 bytes, lines 131-135
131ee?(oe=wb(F,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=Cf(F);const ce=this.stack[this.stack.length-1];ce.value+=oe}function ae(O){const F=this.stack.pop();F.position.end=ar(O.end)}function nt(O){I.call(this,O);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(O)}function rt(O){I.call(this,O);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(O)}function dt(){return{type:"blockquote",children:[]}}function St(){return{type:"code",lang:null,meta:null,value:""}}function Xn(){return{type:"inlineCode",value:""}}function mn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Si(){return{type:"emphasis",children:[]}}function _i(){return{type:"heading",depth:0,children:[]}}function Br(){return{type:"break"}}function ki(){return{type:"html",value:""}}function Vr(){return{type:"image",title:null,url:"",alt:null}}function On(){return{type:"link",title:null,url:"",children:[]}}function jo(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function Hr(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function ia(){return{type:"paragraph",children:[]}}function In(){return{type:"strong",children:[]}}function Cu(){return{type:"text",value:""}}function Tu(){return{type:"thematicBreak"}}}function ar(e){return{line:e.line,column:e.column,offset:e.offset}}function Ab(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ab(e,r):mO(e,r)}}function mO(e,t){let n;for(n in t)if(Rb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function eg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+cs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+cs({start:t.start,end:t.end})+") is still open")}function gO(e){const t=this;t.parser=n;function n(r){return fO(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function yO(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function vO(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 132`}]}function wO(e,t){const n=t.value?t.value+` 133`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function bO(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xO(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SO(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Io(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _O(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kO(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ob(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function EO(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ob(e,t);const i={src:Io(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function CO(e,t){const n={src:Io(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function TO(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function PO(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ob(e,t);const i={href:Io(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function RO(e,t){const n={href:Io(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AO(e,t,n){const r=e.all(t),i=n?OO(n):Ib(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:` 134`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:` 135`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function OO(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ib(n[r])}return t}function Ib(e){const t=e.spread;return t??e.children.length>1}function IO(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function NO(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jO(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function LO(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DO(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Sf(t.children[1]),l=hb(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function $O(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const h=t.children[l],f={},d=s?s[l]:void 0;d&&(f.align=d);let m={type:"element",tagName:o,properties:f,children:[]};h&&(m.children=e.all(h),e.patch(h,m),m=e.applyData(h,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function MO(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const tg=9,ng=32;function zO(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(rg(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(rg(t.slice(i),i>0,!1)),o.join("")}function rg(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===tg||o===ng;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===tg||o===ng;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function FO(e,t){const n={type:"text",value:zO(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function UO(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const BO={blockquote:yO,break:vO,code:wO,delete:bO,emphasis:xO,footnoteReference:SO,heading:_O,html:kO,imageReference:EO,image:CO,inlineCode:TO,linkReference:PO,link:RO,listItem:AO,list:IO,paragraph:NO,root:jO,strong:LO,table:DO,tableCell:MO,tableRow:$O,text:FO,thematicBreak:UO,toml:Pa,yaml:Pa,definition:Pa,footnoteDefinition:Pa};function Pa(){}const Nb=-1,bu=0,hs=1,Dl=2,Rf=3,Af=4,Of=5,If=6,jb=7,Lb=8,ig=typeof self=="object"?self:globalThis,VO=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case bu:case Nb:return n(s,i);case hs:{const a=n([],i);for(const l of s)a.push(r(l));return a}case Dl:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case Rf:return n(new Date(s),i);case Af:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Of:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case If:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case jb:{const{name:a,message:l}=s;return n(new ig[a](l),i)}case Lb:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new ig[o](s),i)};return r},og=e=>VO(new Map,e)(0),Ci="",{toString:HO}={},{keys:WO}=Object,qo=e=>{const t=typeof e;if(t!=="object"||!e)return[bu,t];const n=HO.call(e).slice(8,-1);switch(n){case"Array":return[hs,Ci];case"Object":return[Dl,Ci];case"Date":return[Rf,Ci];case"RegExp":return[Af,Ci];case"Map":return[Of,Ci];case"Set":return[If,Ci];case"DataView":return[hs,n]}return n.includes("Array")?[hs,n]:n.includes("Error")?[jb,n]:[Dl,n]},Ra=([e,t])=>e===bu&&(t==="function"||t==="symbol"),qO=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=qo(s);switch(a){case bu:{let c=s;switch(l){case"bigint":a=Lb,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Nb],s)}return i([a,c],s)}case hs:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),i([l,[...f]],s)}const c=[],h=i([a,c],s);for(const f of s)c.push(o(f));return h}case Dl:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],h=i([a,c],s);for(const f of WO(s))(e||!Ra(qo(s[f])))&&c.push([o(f),o(s[f])]);return h}case Rf:return i([a,s.toISOString()],s);case Af:{const{source:c,flags:h}=s;return i([a,{source:c,flags:h}],s)}case Of:{const c=[],h=i([a,c],s);for(const[f,d]of s)(e||!(Ra(qo(f))||Ra(qo(d))))&&c.push([o(f),o(d)]);return h}case If:{const c=[],h=i([a,c],s);for(const f of s)(e||!Ra(qo(f)))&&c.push(o(f));return h}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},sg=(e,{json:t,lossy:n}={})=>{const r=[];return qO(!(t||n),!!t,new Map,r)(e),r},$l=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?og(sg(e,t)):structuredClone(e):(e,t)=>og(sg(e,t));function KO(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function GO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 19,676 bytes, lines 135-141
135function QO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KO,r=e.options.footnoteBackLabel||GO,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),h=String(u.identifier).toUpperCase(),f=Io(h.toLowerCase());let d=0;const m=[],g=e.footnoteCounts.get(h);for(;g!==void 0&&++d<=g;){m.length>0&&m.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,d);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const w=c[c.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const y=w.children[w.children.length-1];y&&y.type==="text"?y.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else c.push(...m);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,p),a.push(p)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$l(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 136`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` 137`}]}}const Db=function(e){if(e==null)return ZO;if(typeof e=="function")return xu(e);if(typeof e=="object")return Array.isArray(e)?YO(e):JO(e);if(typeof e=="string")return XO(e);throw new Error("Expected function, string, or object as test")};function YO(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Db(e[n]);return xu(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function JO(e){const t=e;return xu(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function XO(e){return xu(t);function t(n){return n&&n.type===e}}function xu(e){return t;function t(n,r,i){return!!(eI(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ZO(){return!0}function eI(e){return e!==null&&typeof e=="object"&&"type"in e}const $b=[],tI=!0,ag=!1,nI="skip";function rI(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Db(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=$b,m,g,w;if((!t||o(l,u,c[c.length-1]||void 0))&&(d=iI(n(l,c)),d[0]===ag))return d;if("children"in l&&l.children){const p=l;if(p.children&&d[0]!==nI)for(g=(r?p.children.length:-1)+s,w=c.concat(p);g>-1&&g<p.children.length;){const y=p.children[g];if(m=a(y,g,w)(),m[0]===ag)return m;g=typeof m[1]=="number"?m[1]:g+s}}return d}}}function iI(e){return Array.isArray(e)?e:typeof e=="number"?[tI,e]:e==null?$b:[e]}function Mb(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),rI(e,o,a,i);function a(l,u){const c=u[u.length-1],h=c?c.children.indexOf(l):void 0;return s(l,h,c)}}const Wd={}.hasOwnProperty,oI={};function sI(e,t){const n=t||oI,r=new Map,i=new Map,o=new Map,s={...BO,...n.handlers},a={all:u,applyData:lI,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:aI,wrap:cI};return Mb(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?r:i,f=String(c.identifier).toUpperCase();h.has(f)||h.set(f,c)}}),a;function l(c,h){const f=c.type,d=a.handlers[f];if(Wd.call(a.handlers,f)&&d)return d(a,c,h);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:g,...w}=c,p=$l(w);return p.children=a.all(c),p}return $l(c)}return(a.options.unknownHandler||uI)(a,c,h)}function u(c){const h=[];if("children"in c){const f=c.children;let d=-1;for(;++d<f.length;){const m=a.one(f[d],c);if(m){if(d&&f[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=lg(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=lg(g.value))}Array.isArray(m)?h.push(...m):h.push(m)}}}return h}}function aI(e,t){e.position&&(t.position=HP(e))}function lI(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,$l(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function uI(e,t){const n=t.data||{},r="value"in t&&!(Wd.call(n,"hProperties")||Wd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cI(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 138`});++r<e.length;)r&&n.push({type:"text",value:` 139`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 140`}),n}function lg(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ug(e,t){const n=sI(e,t),r=n.one(e,void 0),i=QO(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` 141`},i),o}function dI(e,t){return e&&"run"in e?async function(n,r){const i=ug(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ug(n,{file:r,...e||t})}}function cg(e){if(e)throw e}var el=Object.prototype.hasOwnProperty,zb=Object.prototype.toString,dg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,fg=function(t){return typeof Array.isArray=="function"?Array.isArray(t):zb.call(t)==="[object Array]"},pg=function(t){if(!t||zb.call(t)!=="[object Object]")return!1;var n=el.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&el.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||el.call(t,i)},mg=function(t,n){dg&&n.name==="__proto__"?dg(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},gg=function(t,n){if(n==="__proto__")if(el.call(t,n)){if(hg)return hg(t,n).value}else return;return t[n]},hI=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=gg(a,n),i=gg(t,n),a!==i&&(c&&i&&(pg(i)||(o=fg(i)))?(o?(o=!1,s=r&&fg(r)?r:[]):s=r&&pg(r)?r:{},mg(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&mg(a,{name:n,newValue:i}));return a};const fc=Ul(hI);function qd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function fI(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const c=e[++o];let h=-1;if(l){s(l);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,c?pI(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function pI(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const wn={basename:mI,dirname:gI,extname:yI,join:vI,sep:"/"};function mI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');na(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function gI(e){if(na(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function yI(e){na(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function vI(...e){let t=-1,n;for(;++t<e.length;)na(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wI(n)}function wI(e){na(e);const t=e.codePointAt(0)===47;let n=bI(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bI(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function na(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xI={cwd:SI};function SI(){return"/"}function Kd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _I(e){if(typeof e=="string")e=new URL(e);else if(!Kd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return kI(e)}function kI(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const pc=["history","path","basename","stem","extname","dirname"];class Fb{constructor(t){let n;t?Kd(t)?n={path:t}:typeof t=="string"||EI(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":xI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pc.length;){const o=pc[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)pc.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?wn.basename(this.path):void 0}set basename(t){gc(t,"basename"),mc(t,"basename"),this.path=wn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wn.dirname(this.path):void 0}set dirname(t){yg(this.basename,"dirname"),this.path=wn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wn.extname(this.path):void 0}set extname(t){if(mc(t,"extname"),yg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Kd(t)&&(t=_I(t)),gc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wn.basename(this.path,this.extname):void 0}set stem(t){gc(t,"stem"),mc(t,"stem"),this.path=wn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new tt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function mc(e,t){if(e&&e.includes(wn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wn.sep+"`")}function gc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function EI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const CI=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},TI={}.hasOwnProperty;class Nf extends CI{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=fI()}copy(){const t=new Nf;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(fc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wc("data",this.frozen),this.namespace[t]=n,this):TI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Aa(t),r=this.parser||this.Parser;return yc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),yc("process",this.parser||this.Parser),vc("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Aa(t),l=r.parse(a);r.run(l,a,function(c,h,f){if(c||!h||!f)return u(c);const d=h,m=r.stringify(d,f);AI(m)?f.value=m:f.result=m,u(c,f)});function u(c,h){c||!h?s(c):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),yc("processSync",this.parser||this.Parser),vc("processSync",this.compiler||this.Compiler),this.process(t,i),wg("processSync","process",n),r;function i(o,s){n=!0,cg(o),r=s}}run(t,n,r){vg(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Aa(n);i.run(t,l,u);function u(c,h,f){const d=h||t;c?a(c):s?s(d):r(void 0,d,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),wg("runSync","run",r),i;function o(s,a){cg(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Aa(n),i=this.compiler||this.Compiler;return vc("stringify",i),vg(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(wc("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...h]=u;l(c,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=fc(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const h=u[c];o(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let h=-1,f=-1;for(;++h<r.length;)if(r[h][0]===u){f=h;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[d,...m]=c;const g=r[f][1];qd(g)&&qd(d)&&(d=fc(!0,g,d)),r[f]=[u,d,...m]}}}}const PI=new Nf().freeze();function yc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vg(e){if(!qd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Aa(e){return RI(e)?e:new Fb(e)}function RI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function AI(e){return typeof e=="string"||OI(e)}function OI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const II="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bg=[],xg={allowDangerousHtml:!0},NI=/^(https?|ircs?|mailto|xmpp)$/i,jI=[{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 LI(e){const t=DI(e),n=$I(e);return MI(t.runSync(t.parse(n),n),e)}function DI(e){const t=e.rehypePlugins||bg,n=e.remarkPlugins||bg,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xg}:xg;return PI().use(gO).use(n).use(dI,r).use(t)}function $I(e){const t=e.children||"",n=new Fb;return typeof t=="string"&&(n.value=t),n}function MI(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||zI;for(const c of jI)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+II+c.id,void 0);return Mb(e,u),QP(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function u(c,h,f){if(c.type==="raw"&&f&&typeof h=="number")return s?f.children.splice(h,1):f.children[h]={type:"text",value:c.value},h;if(c.type==="element"){let d;for(d in cc)if(Object.hasOwn(cc,d)&&Object.hasOwn(c.properties,d)){const m=c.properties[d],g=cc[d];(g===null||g.includes(c.tagName))&&(c.properties[d]=l(String(m||""),d,c))}}
141if(c.type==="element"){let d=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!d&&r&&typeof h=="number"&&(d=!r(c,h,f)),d&&f&&typeof h=="number")return a&&c.children?f.children.splice(h,1,...c.children):f.children.splice(h,1),h}}}function zI(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||NI.test(e.slice(0,t))?e:""}const FI="/assets/volt-logo-DQJ2NDnb.png";function UI(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(h){s(h)}}function l(c){try{u(r.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const BI=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class jf extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class VI extends jf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Sg extends jf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class _g extends jf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Gd;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Gd||(Gd={}));class HI{constructor(t,{headers:n={},customFetch:r,region:i=Gd.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=BI(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return UI(this,arguments,void 0,function*(n,r={}){var i;let o,s;try{const{headers:a,method:l,body:u,signal:c,timeout:h}=r;let f={},{region:d}=r;d||(d=this.region);const m=new URL(`${this.url}/${n}`);d&&d!=="any"&&(f["x-region"]=d,m.searchParams.set("forceFunctionRegion",d));let g;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(f["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(f["Content-Type"]="application/json",g=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?g=JSON.stringify(u):g=u;let w=c;h&&(s=new AbortController,o=setTimeout(()=>s.abort(),h),c?(w=s.signal,c.addEventListener("abort",()=>s.abort())):w=s.signal);const p=yield this.fetch(m.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:g,signal:w}).catch(E=>{throw new VI(E)}),y=p.headers.get("x-relay-error");if(y&&y==="true")throw new Sg(p);if(!p.ok)throw new _g(p);let v=((i=p.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return v==="application/json"?S=yield p.json():v==="application/octet-stream"||v==="application/pdf"?S=yield p.blob():v==="text/event-stream"?S=p:v==="multipart/form-data"?S=yield p.formData():S=yield p.text(),{data:S,error:null,response:p}}catch(a){return{data:null,error:a,response:a instanceof _g||a instanceof Sg?a.context:void 0}}finally{o&&clearTimeout(o)}})}}var WI=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
141de=e.code}},qI=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let s=null,a=null,l=null,u=o.status,c=o.statusText;if(o.ok){var h,f;if(n.method!=="HEAD"){var d;const p=await o.text();p===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((d=n.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text"))?a=p:a=JSON.parse(p))}const g=(h=n.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),w=(f=o.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");g&&w&&w.length>1&&(l=parseInt(w[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(s={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var m;const g=await o.text();try{s=JSON.parse(g),Array.isArray(s)&&o.status===404&&(a=[],s=null,u=200,c="OK")}catch{o.status===404&&g===""?(u=204,c="No Content"):s={message:g}}if(s&&n.isMaybeSingle&&(!(s==null||(m=s.details)===null||m===void 0)&&m.includes("0 rows"))&&(s=null,u=200,c="OK"),s&&n.shouldThrowOnError)throw new WI(s)}return{error:s,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(i=i.catch(o=>{var s;let a="",l="",u="";const c=o==null?void 0:o.cause;if(c){var h,f,d,m;const p=(h=c==null?void 0:c.message)!==null&&h!==void 0?h:"",y=(f=c==null?void 0:c.code)!==null&&f!==void 0?f:"";a=`${(d=o==null?void 0:o.name)!==null&&d!==void 0?d:"FetchError"}: ${o==null?void 0:o.message}`,a+=` 142 143Caused by: ${(m=c==null?void 0:c.name)!==null&&m!==void 0?m:"Error"}: ${p}`,y&&(a+=` (${y})`),c!=null&&c.stack&&(a+=` 144${c.stack}`)}else{var g;a=(g=o==null?void 0:o.stack)!==null&&g!==void 0?g:""}const w=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",l="Request was aborted (timeout or manual cancellation)",w>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${w} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((c==null?void 0:c.name)==="HeadersOverflowError"||(c==null?void 0:c.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",l="HTTP headers exceeded server limits (typically 16KB)",w>this.urlLengthLimit&&(l+=`. Your request URL is ${w} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(s=o==null?void 0:o.name)!==null&&s!==void 0?s:"FetchError"}: ${o==null?void 0:o.message}`,details:a,hint:l,code:u},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},KI=class extends qI{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const o=i?`${i}.order`:"order",s=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${s?`${s},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
144explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:o="text"}={}){var s;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(s=this.headers.get("Accept"))!==null&&s!==void 0?s:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${a};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const kg=new RegExp("[,()]");var Ii=class extends KI{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&kg.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&kg.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},GI=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let o=!1;const s=(e??"*").split("").map(u=>/\s/.test(u)&&!o?"":(u==='"'&&(o=!o),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",s),r&&l.append("Prefer",`count=${r}`),new Ii({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:o,headers:s}=this.cloneRequestState();if(t&&s.append("Prefer",`count=${t}`),n||s.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1440){const l=[...new Set(a)].map(u=>`"${u}"`);o.searchParams.set("columns",l.join(","))}}return new Ii({method:i,url:o,headers:s,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var o;const s="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,h)=>c.concat(Object.keys(h)),[]);if(u.length>0){const c=[...new Set(u)].map(h=>`"${h}"`);a.searchParams.set("columns",c.join(","))}}return new Ii({method:s,url:a,headers:l,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new Ii({method:r,url:i,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Ii({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function QI(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YI(e){var t=QI(e,"string");return $s(t)=="symbol"?t:t+""}function JI(e,t,n){return(t=YI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(n),!0).forEach(function(r){JI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XI=class Ub{constructor(t,{headers:n={},schema:r,fetch:i,timeout:o,urlLengthLimit:s=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=s;const a=i??globalThis.fetch;o!==void 0&&o>0?this.fetch=(l,u)=>{const c=new AbortController,h=setTimeout(()=>c.abort(),o),f=u==null?void 0:u.signal;if(f){if(f.aborted)return clearTimeout(h),a(l,u);const d=()=>{clearTimeout(h),c.abort()};return f.addEventListener("abort",d,{once:!0}),a(l,Oa(Oa({},u),{},{signal:c.signal})).finally(()=>{clearTimeout(h),f.removeEventListener("abort",d)})}return a(l,Oa(Oa({},u),{},{signal:c.signal})).finally(()=>clearTimeout(h))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new GI(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new Ub(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:o}={}){var s;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=d=>d!==null&&typeof d=="object"&&(!Array.isArray(d)||d.some(c)),h=r&&Object.values(n).some(c);h?(a="POST",u=n):r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,m])=>m!==void 0).map(([d,m])=>[d,Array.isArray(m)?`{${m.join(",")}}`:`${m}
144`]).forEach(([d,m])=>{l.searchParams.append(d,m)})):(a="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&f.set("Prefer",`count=${o}`),new Ii({method:a,url:l,headers:f,schema:this.schemaName,body:u,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}};class ZI{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,o=parseInt(i.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 145import ws from "ws" 146new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 147 148Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const eN="2.99.0",tN=`realtime-js/${eN}`,nN="1.0.0",Bb="2.0.0",Cg=Bb,Qd=1e4,rN=1e3,iN=100;var dr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(dr||(dr={}));var $e;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})($e||($e={}));var ln;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ln||(ln={}));var Yd;(function(e){e.websocket="websocket"})(Yd||(Yd={}));var Xr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Xr||(Xr={}));class oN{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},s=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,s)}_encodeUserBroadcastPush(t,n,r){var i,o;const s=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`topic length ${s.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+s.length+u.length+h.length,d=new ArrayBuffer(this.HEADER_LENGTH+f);let m=new DataView(d),g=0;m.setUint8(g++,this.KINDS.userBroadcastPush),m.setUint8(g++,l.length),m.setUint8(g++,a.length),m.setUint8(g++,s.length),m.setUint8(g++,u.length),m.setUint8(g++,h.length),m.setUint8(g++,n),Array.from(l,p=>m.setUint8(g++,p.charCodeAt(0))),Array.from(a,p=>
148m.setUint8(g++,p.charCodeAt(0))),Array.from(s,p=>m.setUint8(g++,p.charCodeAt(0))),Array.from(u,p=>m.setUint8(g++,p.charCodeAt(0))),Array.from(h,p=>m.setUint8(g++,p.charCodeAt(0)));var w=new Uint8Array(d.byteLength+r.byteLength);return w.set(new Uint8Array(d),0),w.set(new Uint8Array(r),d.byteLength),w.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,o,s,a,l]=r;return n({join_ref:i,ref:o,topic:s,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),o=n.getUint8(2),s=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+i));l=l+i;const c=r.decode(t.slice(l,l+o));l=l+o;const h=r.decode(t.slice(l,l+s));l=l+s;const f=t.slice(l,t.byteLength),d=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,m={type:this.BROADCAST_EVENT,event:c,payload:d};return s>0&&(m.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:m}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class Vb{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ge;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ge||(ge={}));const Tg=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((o,s)=>(o[s]=sN(s,e,t,i),o),{}):{}},sN=(e,t,n,r)=>{const i=t.find(a=>a.name===e),o=i==null?void 0:i.type,s=n[e];return o&&!r.includes(o)?Hb(o,s):Jd(s)},Hb=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return cN(t,n)}switch(e){case ge.bool:return aN(t);case ge.float4:case ge.float8:case ge.int2:case ge.int4:case ge.int8:case ge.numeric:case ge.oid:return lN(t);case ge.json:case ge.jsonb:return uN(t);case ge.timestamp:return dN(t);case ge.abstime:case ge.date:case ge.daterange:case ge.int4range:case ge.int8range:case ge.money:case ge.reltime:case ge.text:case ge.time:case ge.timestamptz:case ge.timetz:case ge.tsrange:case ge.tstzrange:return Jd(t);default:return Jd(t)}},Jd=e=>e,aN=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},lN=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},uN=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},cN=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let o;const s=e.slice(1,n);try{o=JSON.parse("["+s+"]")}catch{o=s?s.split(","):[]}return o.map(a=>Hb(t,a))}return e},dN=e=>typeof e=="string"?e.replace(" ","T"):e,Wb=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class bc{constructor(t,n,r={},i=Qd){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
148oin_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Pg;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Pg||(Pg={}));class fs{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:o,onLeave:s,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=fs.syncState(this.state,i,o,s),this.pendingDiffs.forEach(l=>{this.state=fs.syncDiff(this.state,l,o,s)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},i=>{const{onJoin:o,onLeave:s,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=fs.syncDiff(this.state,i,o,s),a())}),this.onJoin((i,o,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:o,newPresences:s})}),this.onLeave((i,o,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:o,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const o=this.cloneDeep(t),s=this.transformState(n),a={},l={};return this.map(o,(u,c)=>{s[u]||(l[u]=c)}),this.map(s,(u,c)=>{const h=o[u];if(h){const f=c.map(w=>w.presence_ref),d=h.map(w=>w.presence_ref),m=c.filter(w=>d.indexOf(w.presence_ref)<0),g=h.filter(w=>f.indexOf(w.presence_ref)<0);m.length>0&&(a[u]=m),g.length>0&&(l[u]=g)}else a[u]=c}),this.syncDiff(o,{joins:a,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:o,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(o,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const h=t[a].map(d=>d.presence_ref),f=c.filter(d=>h.indexOf(d.presence_ref)<0);t[a].unshift(...f)}r(a,c,l)}),this.map(s,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(h=>h.presence_ref);u=u.filter(h=>c.indexOf(h.presence_ref)<0),t[a]=u,i(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Rg;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Rg||(Rg={}));var ps;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ps||(ps={}));var $n;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})($n||($n={}));class Ki{constructor(t,n={config:{}},r){var i,o;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=$e.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new bc(this,ln.join,this.params,this.timeout),this.rejoinTimer=new Vb(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=$e.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=$e.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=$e.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ln.reply,{},(s,a)=>{this._trigger(this._replyEventName(a),s)}),this.presence=new fs(this),this.broadcastEndpointURL=Wb(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,o;if(this.socket.isConnected()||this.socket.connect(),this.state==$e.closed){const{config:{broadcast:s,presence:a,private:l}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&i!==void 0?i:[],c=!!this.bindings[ps.PRESENCE]&&this.bindings[ps.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},f={broadcast:s,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(d=>t==null?void 0:t($n.CHANNEL_ERROR,d)),this._onClose(()=>t==null?void 0:t($n.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var m;if(this.socket._isManualToken()||this.socket.setAuth(),d===void 0){t==null||t($n.SUBSCRIBED);return}
148else{const g=this.bindings.postgres_changes,w=(m=g==null?void 0:g.length)!==null&&m!==void 0?m:0,p=[];for(let y=0;y<w;y++){const v=g[y],{filter:{event:S,schema:E,table:_,filter:T}}=v,R=d&&d[y];if(R&&R.event===S&&Ki.isFilterValueEqual(R.schema,E)&&Ki.isFilterValueEqual(R.table,_)&&Ki.isFilterValueEqual(R.filter,T))p.push(Object.assign(Object.assign({},v),{id:R.id}));else{this.unsubscribe(),this.state=$e.errored,t==null||t($n.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=p,t&&t($n.SUBSCRIBED);return}}).receive("error",d=>{this.state=$e.errored,t==null||t($n.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t==null||t($n.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===$e.joined&&t===ps.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const s={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,s,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
148in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:s}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:s,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var s,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(s=this.params)===null||s===void 0?void 0:s.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),u.receive("ok",()=>o("ok")),u.receive("error",()=>o("error")),u.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=$e.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ln.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new bc(this,ln.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=$e.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,o=setTimeout(()=>i.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(o),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new bc(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>iN){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,o;const s=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=ln;if(r&&[a,l,u,c].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(d=>{var m,g,w;return((m=d.filter)===null||m===void 0?void 0:m.event)==="*"||((w=(g=d.filter)===null||g===void 0?void 0:g.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===s}).map(d=>d.callback(f,r)):(o=this.bindings[s])===null||o===void 0||o.filter(d=>{var m,g,w,p,y,v;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in d){const S=d.id,E=(m=d.filter)===null||m===void 0?void 0:m.event;return S&&((g=n.ids)===null||g===void 0?void 0:g.includes(S))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const S=(y=(p=d==null?void 0:d.filter)===null||p===void 0?void 0:p.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return S==="*"||S===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===s}).map(d=>{if(typeof f=="object"&&"ids"in f){const m=f.data,{schema:g,table:w,commit_timestamp:p,type:y,errors:v}=m;f=Object.assign(Object.assign({},{schema:g,table:w,commit_timestamp:p,eventType:y,new:{},old:{},errors:v}),this._getPayloadRecords(m))}d.callback(f,r)})}_isClosed(){return this.state===$e.closed}_isJoined(){return this.state===$e.joined}_isJoining(){return this.state===$e.joining}_isLeaving(){return this.state===$e.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),o={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var o;return!(((o=i.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===r&&Ki.isEqual(i.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ln.close,{},t)}_onError(t){this._on(ln.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=$e.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Tg(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Tg(t.columns,t.old_record)),n}}const xc=()=>{},Ia={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},hN=[1e3,2e3,5e3,1e4],fN=1e4,pN=` 149 addEventListener("message", (e) => { 150 if (e.data.event === "start") { 151 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 152 } 153 });`;class mN{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Qd,this.transport=null,this.heartbeatIntervalMs=Ia.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=xc,this.ref=0,this.reconnectTimer=null,this.vsn=Cg,this.logger=xc,this.conn=null,this.sendBuffer=[],this.serializer
153=new oN,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Yd.websocket}`,this.httpEndpoint=Wb(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=ZI.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 154 155To use Realtime in Node.js, you need to provide a WebSocket implementation: 156 157Option 1: Use Node.js 22+ which has native WebSocket support 158Option 2: Install and provide the "ws" package: 159 160 npm install ws 161 162 import ws from "ws" 163 const client = new RealtimeClient(url, { 164 ...options, 165 transport: ws 166 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case dr.connecting:return Xr.Connecting;case dr.open:return Xr.Open;case dr.closing:return Xr.Closing;default:return Xr.Closed}}isConnected(){return this.connectionState()===Xr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(o=>o.topic===r);if(i)return i;{const o=new Ki(`realtime:${t}`,n,this);return this.channels.push(o),o}}push(t){const{topic:n,event:r,payload:i,ref:o}=t,s=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${o})`,i),this.isConnected()?s():this.sendBuffer.push(s)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(rN,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Ia.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
166{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(c){this.log("error","error in heartbeat callback",c)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:i,payload:o,ref:s}=n,a=s?`(${s})`:"",l=o.status||"";this.log("receive",`${l} ${r} ${i} ${a}`.trim(),o),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,o,s)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===dr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===dr.open||this.conn.readyState===dr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.accessTokenValue&&(this.channels.forEach(n=>{n.updateJoinPayload({access_token:this.accessTokenValue})}),this.sendBuffer=[],this.channels.forEach(n=>{n._isJoining()&&(n.joinPush.sent=!1,n.joinPush.send())})),this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(ln.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([pN],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
166h(i=>{const o={access_token:n,version:tN};n&&i.updateJoinPayload(o),i.joinedOnce&&i._isJoined()&&i._push(ln.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Vb(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ia.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,o,s,a,l,u,c,h,f,d;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Qd,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:Ia.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(s=t==null?void 0:t.accessToken)!==null&&s!==void 0?s:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:xc,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Cg,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:m=>hN[m-1]||fN,this.vsn){case nN:this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(m,g)=>g(JSON.stringify(m)),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:(m,g)=>g(JSON.parse(m));break;case Bb:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var Ms=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function gN(e,t,n){const r=new URL(t,e);if(n)for(const[i,o]of Object.entries(n))o!==void 0&&r.searchParams.set(i,o);return r.toString()}async function yN(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function vN(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:o,headers:s}){const a=gN(e.baseUrl,r,i),l=await yN(e.auth),u=await t(a,{method:n,headers:{...o?{"Content-Type":"application/json"}:{},...l,...s},body:o?JSON.stringify(o):void 0}),c=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&c?JSON.parse(c):c;if(!u.ok){const d=h?f:void 0,m=d==null?void 0:d.error;throw new Ms((m==null?void 0:m.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:m==null?void 0:m.type,icebergCode:m==null?void 0:m.code,details:d})}return{status:u.status,headers:u.headers,data:f}}}}function Na(e){return e.join("�")}var wN=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Na(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Na(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Na(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Na(e.namespace)}`}),!0}catch(t){if(t instanceof Ms&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ms&&n.status===409)return;throw n}}};function Ti(e){return e.join("�")}var bN=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ti(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ms&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ms&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},xN=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=vN({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new wN(this.client,t),this.tableOps=new bN(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
166async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Su=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function _u(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Xo=class extends Su{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},qb=class extends Su{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const SN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_N=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xd=e=>{if(Array.isArray(e))return e.map(n=>Xd(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[i]=Xd(r)}),t},kN=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function zs(e){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(e)}function EN(e,t){if(zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CN(e){var t=EN(e,"string");return zs(t)=="symbol"?t:t+""}function TN(e,t,n){return(t=CN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ag(Object(n),!0).forEach(function(r){TN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Og=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},PN=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"){const i=e,o=i.status||500;if(typeof i.json=="function")i.json().then(s=>{const a=(s==null?void 0:s.statusCode)||(s==null?void 0:s.code)||o+"";t(new Xo(Og(s),o,a,r))}).catch(()=>{if(r==="vectors"){const s=o+"";t(new Xo(i.statusText||`HTTP ${o} error`,o,s,r))}else{const s=o+"";t(new Xo(i.statusText||`HTTP ${o} error`,o,s,r))}});else{const s=o+"";t(new Xo(i.statusText||`HTTP ${o} error`,o,s,r))}}else t(new qb(Og(e),e,r))},RN=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?J(J({},i),n):(_N(r)?(i.headers=J({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),J(J({},i),n))};async function Ko(e,t,n,r,i,o,s){return new Promise((a,l)=>{e(n,RN(t,r,i,o)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(s==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>PN(u,l,r,s))})}function Kb(e="storage"){return{get:async(t,n,r,i)=>Ko(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,o)=>Ko(t,"POST",n,i,o,r,e),put:async(t,n,r,i,o)=>Ko(t,"PUT",n,i,o,r,e),head:async(t,n,r,i)=>Ko(t,"HEAD",n,J(J({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,o)=>Ko(t,"DELETE",n,i,o,r,e)}}const AN=Kb("storage"),{get:Fs,post:rn,put:Zd,head:ON,remove:Lf}=AN,Rt=Kb("vectors");var No=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=SN(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=J(J({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(_u(n))return{data:null,error:n};throw n}}},IN=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_u(t))return{data:null,error:t};throw t}}};let Gb;Gb=Symbol.toStringTag;var NN=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Gb]="BlobDownloadBuilder",this.promise=null}asStream(){return new IN(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(_u(t))return{data:null,error:t};throw t}}};const jN={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ig={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var LN=class extends No{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let o;const s=J(J({},Ig),r);let a=J(J({},i.headers),e==="POST"&&{"x-upsert":String(s.upsert)});const l=s.metadata;typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",s.cacheControl),l&&o.append("metadata",i.encodeMetadata(l)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",s.cacheControl),l&&!o.has("metadata")&&o.append("metadata",i.encodeMetadata(l))):(o=n,a["cache-control"]=`max-age=${s.cacheControl}`,a["content-type"]=s.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!s.duplex&&(s.duplex="half")),r!=null&&r.headers&&(a=J(J({},a),r.headers));const u=i._removeEmptyFolders(t),c=i._getFinalPath(u),h=await(e=="PUT"?Zd:rn)(i.fetch,`${i.url}/object/${c}`,o,J({headers:a},s!=null&&s.duplex?{duplex:s.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const o=i._removeEmptyFolders(e),s=i._getFinalPath(o),a=new URL(i.url+`/object/upload/sign/${s}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const u=J({upsert:Ig.upsert},r),c=J(J({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:o,fullPath:(await Zd(i.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=J({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const o=await rn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),s=new URL(n.url+o.url),a=s.searchParams.get("token");if(!a)throw new Su("No token returned by API");return{signedUrl:s.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await rn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
166stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await rn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e),o=await rn(r.fetch,`${r.url}/object/sign/${i}`,J({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"",a=n!=null&&n.transform&&o.signedURL.includes("/object/sign/")?o.signedURL.replace("/object/sign/","/render/image/sign/"):o.signedURL;return{signedUrl:encodeURI(`${r.url}${a}${s}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await rn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(s=>J(J({},s),{},{signedUrl:s.signedURL?encodeURI(`${r.url}${s.signedURL}${o}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),o=i?`?${i}`:"",s=this._getFinalPath(e),a=()=>Fs(this.fetch,`${this.url}/${r}/${s}${o}`,{headers:this.headers,noResolveJson:!0},n);return new NN(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Xd(await Fs(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await ON(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(_u(i)){var r;const o=i instanceof Xo?i.status:i instanceof qb?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(o!==void 0&&[400,404].includes(o))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",s=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});s!==""&&r.push(s);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await Lf(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=J(J(J({},jN),t),{},{prefix:e||""});return await rn(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=J({},e);return await rn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const DN="2.99.0",ra={"X-Client-Info":`storage-js/${DN}`};var $N=class extends No{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const o=i.href.replace(/\/$/,""),s=J(J({},ra),t);super(o,s,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Fs(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Fs(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await rn(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Zd(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await rn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Lf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},MN=class extends No{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},ra),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await rn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Fs(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Lf(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!kN(e))throw new Su("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new xN({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
166),r=this.shouldThrowOnError;return new Proxy(n,{get(i,o){const s=i[o];return typeof s!="function"?s:async(...a)=>{try{return{data:await s.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},zN=class extends No{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},ra),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Rt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Rt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},FN=class extends No{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},ra),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},UN=class extends No{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=J(J({},ra),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Rt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},BN=class extends UN{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new VN(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},VN=class extends zN{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new HN(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},HN=class extends FN{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,J(J({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},WN=class extends $N{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new LN(this.url,this.headers,e,this.fetch)}get vectors(){return new BN(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new MN(this.url+"/iceberg",this.headers,this.fetch)}};function ku(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const Qb="2.99.0",Ni=30*1e3,eh=3,Sc=eh*Ni,qN="http://localhost:9999",KN="supabase.auth.token",GN={"X-Client-Info":`gotrue-js/${Qb}`},th="X-Supabase-Api-Version",Yb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},QN=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,YN=10*60*1e3;
166class Us extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function K(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class JN extends Us{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function XN(e){return K(e)&&e.name==="AuthApiError"}class Zr extends Us{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Jn extends Us{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class Ct extends Jn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function _c(e){return K(e)&&e.name==="AuthSessionMissingError"}class Pi extends Jn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class ja extends Jn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class La extends Jn{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function ZN(e){return K(e)&&e.name==="AuthImplicitGrantRedirectError"}class Ng extends Jn{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class ej extends Jn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class nh extends Jn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function kc(e){return K(e)&&e.name==="AuthRetryableFetchError"}class jg extends Jn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class rh extends Jn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Lg=` 167\r=`.split(""),tj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Lg.length;t+=1)e[Lg[t].charCodeAt(0)]=-2;for(let t=0;t<Ml.length;t+=1)e[Ml[t].charCodeAt(0)]=t;return e})();function Dg(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ml[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ml[r]),t.queuedBits-=6}}function Jb(e,t,n){const r=tj[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function $g(e){const t=[],n=s=>{t.push(String.fromCodePoint(s))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},o=s=>{ij(s,r,n)};for(let s=0;s<e.length;s+=1)Jb(e.charCodeAt(s),i,o);return t.join("")}function nj(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function rj(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}nj(r,t)}}function ij(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function oo(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)Jb(e.charCodeAt(i),n,r);return new Uint8Array(t)}function oj(e){const t=[];return rj(e,n=>t.push(n)),new Uint8Array(t)}function ri(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
167Dg(i,n,r)),Dg(null,n,r),t.join("")}function sj(e){return Math.round(Date.now()/1e3)+e}function aj(){return Symbol("auth-callback")}const He=()=>typeof window<"u"&&typeof document<"u",qr={tested:!1,writable:!1},Xb=()=>{if(!He())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(qr.tested)return qr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),qr.tested=!0,qr.writable=!0}catch{qr.tested=!0,qr.writable=!1}return qr.writable};function lj(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,o)=>{t[o]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const Zb=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),uj=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ji=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Kr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ve=async(e,t)=>{await e.removeItem(t)};class Eu{constructor(){this.promise=new Eu.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Eu.promiseConstructor=Promise;function Da(e){const t=e.split(".");if(t.length!==3)throw new rh("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!QN.test(t[r]))throw new rh("JWT not in base64url format");return{header:JSON.parse($g(t[0])),payload:JSON.parse($g(t[1])),signature:oo(t[2]),raw:{header:t[0],payload:t[1]}}}async function cj(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function dj(e,t){return new Promise((r,i)=>{(async()=>{for(let o=0;o<1/0;o++)try{const s=await e(o);if(!t(o,null,s)){r(s);return}}catch(s){if(!t(o,s)){i(s);return}}})()})}function hj(e){return("0"+e.toString(16)).substr(-2)}function fj(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let o=0;o<56;o++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,hj).join("")}async function pj(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(o=>String.fromCharCode(o)).join("")}async function mj(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await pj(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ri(e,t,n=!1){const r=fj();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await ji(e,`${t}-code-verifier`,i);const o=await mj(r);return[o,r===o?"plain":"s256"]}const gj=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function yj(e){const t=e.headers.get(th);if(!t||!t.match(gj))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function vj(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function wj(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const bj=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ai(e){if(!bj.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ec(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function xj(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
167if(typeof r=="symbol"){const o=r.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function Mg(e){return JSON.parse(JSON.stringify(e))}const Yr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Sj=[502,503,504];async function zg(e){var t;if(!uj(e))throw new nh(Yr(e),0);if(Sj.includes(e.status))throw new nh(Yr(e),e.status);let n;try{n=await e.json()}catch(o){throw new Zr(Yr(o),o)}let r;const i=yj(e);if(i&&i.getTime()>=Yb["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new jg(Yr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Ct}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((o,s)=>o&&typeof s=="string",!0))throw new jg(Yr(n),e.status,n.weak_password.reasons);throw new JN(Yr(n),e.status||500,r)}const _j=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function Q(e,t,n,r){var i;const o=Object.assign({},r==null?void 0:r.headers);o[th]||(o[th]=Yb["2024-01-01"].name),r!=null&&r.jwt&&(o.Authorization=`Bearer ${r.jwt}`);const s=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const a=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await kj(e,t,n+a,{headers:o,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function kj(e,t,n,r,i,o){const s=_j(t,r,i,o);let a;try{a=await e(n,Object.assign({},s))}catch(l){throw console.error(l),new nh(Yr(l),0)}if(a.ok||await zg(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await zg(l)}}function en(e){var t;let n=null;Tj(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=sj(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Fg(e){const t=en(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function pr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function Ej(e){return{data:e,error:null}}function Cj(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o}=e,s=ku(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o},l=Object.assign({},s);return{data:{properties:a,user:l},error:null}}function Ug(e){return e}function Tj(e){return e.access_token&&e.refresh_token&&e.expires_in}const Cc=["global","local","others"];class Pj{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Zb(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,n=Cc[0]){if(Cc.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Cc.join(", ")}`);try{return await Q(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(K(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await Q(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:pr})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=ku(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await Q(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:Cj,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(K(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:pr})}catch(n){if(K(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,o,s,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await Q(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:Ug});if(c.error)throw c.error;const h=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>
1670&&(d.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(m.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(K(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Ai(t);try{return await Q(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:pr})}catch(n){if(K(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Ai(t);try{return await Q(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:pr})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Ai(t);try{return await Q(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:pr})}catch(r){if(K(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Ai(t.userId);try{const{data:n,error:r}=await Q(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Ai(t.userId),Ai(t.id);try{return{data:await Q(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,o,s,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await Q(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:Ug});if(c.error)throw c.error;const h=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>0&&(d.forEach(m=>{const g=parseInt(m.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(m.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(K(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await Q(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await Q(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(K(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await Q(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await Q(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(K(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await Q(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(K(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await Q(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(K(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await Q(this.fetch,"DELET
167E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(K(n))return{data:null,error:n};throw n}}}function Bg(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const jn={debug:!!(globalThis&&Xb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class ex extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Rj extends ex{}async function Aj(e,t,n){jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;t>0&&setTimeout(()=>{r.abort(),jn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Rj(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(jn.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}catch(i){if((i==null?void 0:i.name)==="AbortError"&&t>0)return jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{jn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw i}}function Oj(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function tx(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Ij(e){return parseInt(e,16)}function Nj(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function jj(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:o=new Date,nonce:s,notBefore:a,requestId:l,resources:u,scheme:c,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(s&&s.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${s}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 168`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const d=tx(e.address),m=c?`${c}://${r}
168`:r,g=e.statement?`${e.statement} 169`:"",w=`${m} wants you to sign in with your Ethereum account: 170${d} 171 172${g}`;let p=`URI: ${h} 173Version: ${f} 174Chain ID: ${n}${s?` 175Nonce: ${s}`:""} 176Issued At: ${o.toISOString()}`;if(i&&(p+=` 177Expiration Time: ${i.toISOString()}`),a&&(p+=` 178Not Before: ${a.toISOString()}`),l&&(p+=` 179Request ID: ${l}`),u){let y=` 180Resources:`;for(const v of u){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);y+=` 181- ${v}`}p+=y}return`${w} 182${p}`}class Le extends Error{constructor({message:t,code:n,cause:r,name:i}){var o;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(o=i??(r instanceof Error?r.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=n}}class zl extends Le{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function Lj({error:e,options:t}){var n,r,i;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Le({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=o.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Le({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=o.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Le({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=o.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Le({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Le({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Le({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Le({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(nx(s)){if(o.rp.id!==s)return new Le({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Le({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Le({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function Dj({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Le({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Le({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(nx(r)){if(n.rpId!==r)return new Le({message:`The RP ID "${n.rpId}
182" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Le({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Le({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class $j{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Mj=new $j;function zj(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=ku(e,["challenge","user","excludeCredentials"]),o=oo(t).buffer,s=Object.assign(Object.assign({},n),{id:oo(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:o,user:s});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:oo(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function Fj(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=ku(e,["challenge","allowCredentials"]),i=oo(t).buffer,o=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){o.allowCredentials=new Array(n.length);for(let s=0;s<n.length;s++){const a=n[s];o.allowCredentials[s]=Object.assign(Object.assign({},a),{id:oo(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function Uj(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:ri(new Uint8Array(e.response.attestationObject)),clientDataJSON:ri(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Bj(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ri(new Uint8Array(i.authenticatorData)),clientDataJSON:ri(new Uint8Array(i.clientDataJSON)),signature:ri(new Uint8Array(i.signature)),userHandle:i.userHandle?ri(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function nx(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Vg(){var e,t;return!!(He()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function Vj(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new zl("Browser returned unexpected credential type",t)}:{data:null,error:new zl("Empty credential response",t)}}catch(t){return{data:null,error:Lj({error:t,options:e})}}}async function Hj(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new zl("Browser returned unexpected credential type",t)}:{data:null,error:new zl("Empty credential response",t)}}
182catch(t){return{data:null,error:Dj({error:t,options:e})}}}const Wj={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},qj={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Fl(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const o in i){const s=i[o];if(s!==void 0)if(Array.isArray(s))r[o]=s;else if(n(s))r[o]=s;else if(t(s)){const a=r[o];t(a)?r[o]=Fl(a,s):r[o]=Fl(s)}else r[o]=s}return r}function Kj(e,t){return Fl(Wj,e,t||{})}function Gj(e,t){return Fl(qj,e,t||{})}class Qj{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},o){var s;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=i??Mj.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const h=r;if(h)c.name=`${c.id}:${h}`;else{const d=(await this.client.getUser()).data.user,m=((s=d==null?void 0:d.user_metadata)===null||s===void 0?void 0:s.name)||(d==null?void 0:d.email)||(d==null?void 0:d.id)||"User";c.name=`${c.id}:${m}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=Kj(a.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:h,error:f}=await Vj({publicKey:c,signal:u});return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const c=Gj(a.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:h,error:f}=await Hj(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return h?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(a){return K(a)?{data:null,error:a}:{data:null,error:new Zr("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Us("rpId is required for WebAuthn authentication")};try{if(!Vg())return{data:null,error:new Zr("Browser does not support WebAuthn",null)};const{data:s,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:o});if(!s)return{data:null,error:a};const{webauthn:l}=s;return this._verify({factorId:t,challengeId:s.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(s){return K(s)?{data:null,error:s}:{data:null,error:new Zr("Unexpected error in authenticate",s)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!n)return{data:null,error:new Us("rpId is required for WebAuthn registration")};try{if(!Vg())return{data:null,error:new Zr("Browser does not support WebAuthn",null)};const{data:s,error:a}=await this._enroll({friendlyName:t});if(!s)return await this.client.mfa.listFactors().then(c=>{var h;return(h=c.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:s.id,friendlyName:s.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:o});return l?this._verify({factorId:s.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(s){return K(s)?{data:null,error:s}:{data:null,error:new Zr("Unexpected error in register",s)}}}}Oj();const Yj={url:qN,storageKey:KN,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:GN,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Hg(e,t,n){return await n()}const Oi={};class Bs{get jwks(){var t,n;return(n=(t=Oi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Oi[this.storageKey]=Object.assign(Object.assign({},Oi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Oi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Oi[this.storageKey]=Object.assign(Object.assign({},Oi[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},Yj),t);if(this.storageKey=o.storageKey,this.instanceID=(n=Bs.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Bs.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&He()){const s=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(s),this.logDebugMessages&&console.trace(s)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new Pj({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=Zb(o.fetch),this.lock=o.lock||Hg,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&He()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=Aj:this.lock=Hg,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Qj(this)}
182,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:Xb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Bg(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=Bg(this.memoryStorage)),He()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s);try{await this._notifyAllSubscribers(s.data.event,s.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}o.skipAutoInitialize||this.initialize().catch(s=>{this._debug("#initialize()","error",s)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Qb}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(He()&&(n=lj(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),He()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:o}=await this._getSessionFromURL(n,r);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),ZN(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return{error:o}}const{session:s,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",s,"redirect type",a),await this._saveSession(s),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return K(n)?this._returnResult({error:n}):this._returnResult({error:new Zr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:en}),{data:s,error:a}=o;if(a||!s)return this._returnResult({data:{user:null,session:null},error:a});const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(K(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var n,r,i;try{let o;if("email"in t){const{email:c,password:h,options:f}=t;let d=null,m=null;this.flowType==="pkce"&&([d,m]=await Ri(this.storage,this.storageKey)),o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:d,code_challenge_method:m},xform:en})}else if("phone"in t){const{phone:c,password:h,options:f}=t;o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:en})}else throw new ja("You must provide either an email or phone number and a password");const{data:s,error:a}=o;if(a||!s)return await Ve(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let n;if("email"in t){const{email:o,password:s,options:a}=t;n=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Fg})}else if("phone"in t){const{phone:o,password:s,options:a}=t;n=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Fg})}else throw new ja("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const o=new Pi;return this._returnResult({data:{user:null,session:null},error:o})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(o=t.o
182ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,o,s,a,l,u,c,h,f;let d,m;if("message"in t)d=t.message,m=t.signature;else{const{chain:g,wallet:w,statement:p,options:y}=t;let v;if(He())if(typeof w=="object")v=w;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")v=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=w}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href),E=await v.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=tx(E[0]);let T=(r=y==null?void 0:y.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const P=await v.request({method:"eth_chainId"});T=Ij(P)}const R={domain:S.host,address:_,statement:p,uri:S.href,version:"1",chainId:T,nonce:(i=y==null?void 0:y.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(s=(o=y==null?void 0:y.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&s!==void 0?s:new Date,expirationTime:(a=y==null?void 0:y.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=y==null?void 0:y.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=y==null?void 0:y.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=y==null?void 0:y.signInWithEthereum)===null||c===void 0?void 0:c.resources};d=jj(R),m=await v.request({method:"personal_sign",params:[Nj(d),_]})}try{const{data:g,error:w}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:d,signature:m},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:en});if(w)throw w;if(!g||!g.session||!g.user){const p=new Pi;return this._returnResult({data:{user:null,session:null},error:p})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:w})}catch(g){if(K(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var n,r,i,o,s,a,l,u,c,h,f,d;let m,g;if("message"in t)m=t.message,g=t.signature;else{const{chain:w,wallet:p,statement:y,options:v}=t;let S;if(He())if(typeof p=="object")S=p;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))S=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof p!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=p}const E=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in S&&S.signIn){const _=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),y?{statement:y}:null));let T;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")T=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)T=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)m=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),g=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");m=[`${E.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(i=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}
182`]:[],...!((s=v==null?void 0:v.signInWithSolana)===null||s===void 0)&&s.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((h=(c=v==null?void 0:v.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||h===void 0)&&h.length?["Resources",...v.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 183`);const _=await S.signMessage(new TextEncoder().encode(m),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=_}}try{const{data:w,error:p}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:m,signature:ri(g)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(d=t.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:en});if(p)throw p;if(!w||!w.session||!w.user){const y=new Pi;return this._returnResult({data:{user:null,session:null},error:y})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:p})}catch(w){if(K(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const n=await Kr(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new ej;const{data:o,error:s}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:en});if(await Ve(this.storage,`${this.storageKey}-code-verifier`),s)throw s;if(!o||!o.session||!o.user){const a=new Pi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:i??null}),error:s})}catch(o){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:o,nonce:s}=t,a=await Q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:o,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:en}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Pi;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,o,s;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Ri(this.storage,this.storageKey));const{error:h}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(s=l==null?void 0:l.channel)!==null&&s!==void 0?s:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new ja("You must provide either an email or phone number.")}catch(a){if(await Ve(this.storage,`${this.storageKey}
183-code-verifier`),K(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,o;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,o=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:a}=await Q(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:i,xform:en});if(a)throw a;if(!s)throw new Error("An error occurred on token verification.");const l=s.session,u=s.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(K(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,o,s;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Ri(this.storage,this.storageKey));const u=await Q(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:Ej});return!((o=u.data)===null||o===void 0)&&o.url&&He()&&!(!((s=t.options)===null||s===void 0)&&s.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Ct;const{error:i}=await Q(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(K(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:o}=t,{error:s}=await Q(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:s})}else if("phone"in t){const{phone:r,type:i,options:o}=t,{data:s,error:a}=await Q(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:a})}throw new ja("You must provide either an email or phone number and a type")}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Kr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
183id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Sc:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const s=await Kr(this.userStorage,this.storageKey+"-user");s!=null&&s.user?t.user=s.user:t.user=Ec()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const s={value:this.suppressGetSessionWarning};t.user=xj(t.user,s),s.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:pr}):await this._useSession(async n=>{var r,i,o;const{data:s,error:a}=n;if(a)throw a;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ct}:await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&o!==void 0?o:void 0,xform:pr})})}catch(n){if(K(n))return _c(n)&&(await this._removeSession(),await Ve(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:o}=r;if(o)throw o;if(!i.session)throw new Ct;const s=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ri(this.storage,this.storageKey));const{data:u,error:c}=await Q(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:s.access_token,xform:pr});if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),this._returnResult({data:{user:s.user},error:null})})}catch(r){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ct;const n=Date.now()/1e3;let r=n,i=!0,o=null;const{payload:s}=Da(t.access_token);if(s.exp&&(r=s.exp,i=r<=n),i){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(n){if(K(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:a}=n;if(a)throw a;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Ct;const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(K(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!He())throw new La("No browser detected.");
183if(t.error||t.error_description||t.error_code)throw new La(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Ng("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new La("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Ng("No code detected.");const{data:y,error:v}=await this._exchangeCodeForSession(t.code);if(v)throw v;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:o,refresh_token:s,expires_in:a,expires_at:l,token_type:u}=t;if(!o||!a||!s||!u)throw new La("No session defined in URL");const c=Math.round(Date.now()/1e3),h=parseInt(a);let f=c+h;l&&(f=parseInt(l));const d=f-c;d*1e3<=Ni&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${h}s`);const m=f-h;c-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,f,c):c-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,f,c);const{data:g,error:w}=await this._getUser(o);if(w)throw w;const p={provider_token:r,provider_refresh_token:i,access_token:o,expires_in:h,expires_at:f,refresh_token:s,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:p,redirectType:t.type},error:null})}catch(r){if(K(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Kr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:o}=n;if(o&&!_c(o))return this._returnResult({error:o});const s=(r=i.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:a}=await this.admin.signOut(s,t);if(a&&!(XN(a)&&(a.status===404||a.status===401||a.status===403)||_c(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ve(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=aj(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:o},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await Ri(this.storage,this.storageKey,!0));try{return await Q(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(o){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async o=>{var s,a,l,u,c;const{data:h,error:f}=o;if(f)throw f;const d=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Q(this.fetch,"GET",d,{headers:this.headers,jwt:(c=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return He()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(K(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:o}}=n;if(i)throw i;const{options:s,provider:a,token:l,access_token:u,nonce:c}=t,h=await Q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=o==null?void 0:o.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:en}),{data:f,error:d}=h;return d?this._returnResult({data:{user:null,session:null},error:d}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Pi}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:d}))}catch(i){if(await Ve(this.storage,`${this.storageKey}-code-verifier`),K(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:o,error:s}=n;if(s)throw s;
183return await Q(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=o.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await dj(async i=>(i>0&&await cj(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await Q(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:en})),(i,o)=>{const s=200*Math.pow(2,i);return o&&kc(o)&&Date.now()+s-r<Ni})}catch(r){if(this._debug(n,"error",r),K(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),He()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await Kr(this.storage,this.storageKey);if(i&&this.userStorage){let s=await Kr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!s&&(s={user:i.user},await ji(this.userStorage,this.storageKey+"-user",s)),i.user=(t=s==null?void 0:s.user)!==null&&t!==void 0?t:Ec()}else if(i&&!i.user&&!i.user){const s=await Kr(this.storage,this.storageKey+"-user");s&&(s!=null&&s.user)?(i.user=s.user,await Ve(this.storage,this.storageKey+"-user"),await ji(this.storage,this.storageKey,i)):i.user=Ec()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const o=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Sc;if(this._debug(r,`session has${o?"":" not"} expired with margin of ${Sc}s`),o){if(this.autoRefreshToken&&i.refresh_token){const{error:s}=await this._callRefreshToken(i.refresh_token);s&&(console.error(s),kc(s)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:s,error:a}=await this._getUser(i.access_token);!a&&(s!=null&&s.user)?(i.user=s.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(s){console.error("Error getting user data:",s),this._debug(r,"error getting user data, skipping SIGNED_IN notification",s)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Eu;const{data:o,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!o.session)throw new Ct;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(i,"error",o),K(o)){const s={data:null,error:o};return kc(o)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(o),o}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const o=[],s=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){o.push(l)}});if(await Promise.all(s),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ve(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await ji(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const o=Mg(i);await ji(this.storage,this.storageKey,o)}else{const i=Mg(n);await ji(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ve(this.storage,this.storageKey),await Ve(this.storage,this.storageKey+"-code-verifier"),await Ve(this.storage,this.storageKey+"-user"),this.userStorage&&await Ve(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&He()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
183catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ni);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/Ni);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Ni}ms, refresh threshold is ${eh} ticks`),i<=eh&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof ex)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!He()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[o,s]=await Ri(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const o=new URLSearchParams(r.queryParams);i.push(o.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;return o?this._returnResult({data:null,error:o}):await Q(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:o,error:s}=n;if(s)return this._returnResult({data:null,error:s});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await Q(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;
183if(o)return this._returnResult({data:null,error:o});const s=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Uj(t.webauthn.credential_response):Bj(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await Q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:s,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const s=await Q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(s.error)return s;const{data:a}=s;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:zj(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Fj(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(o),o.status==="verified"&&i[o.factor_type].push(o);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,o;if(t)try{const{payload:d}=Da(t);let m=null;d.aal&&(m=d.aal);let g=m;const{data:{user:w},error:p}=await this.getUser(t);if(p)return this._returnResult({data:null,error:p});((r=(n=w==null?void 0:w.factors)===null||n===void 0?void 0:n.filter(S=>S.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(g="aal2");const v=d.amr||[];return{data:{currentLevel:m,nextLevel:g,currentAuthenticationMethods:v},error:null}}catch(d){if(K(d))return this._returnResult({data:null,error:d});throw d}const{data:{session:s},error:a}
183=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Da(s.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((o=(i=s.user.factors)===null||i===void 0?void 0:i.filter(d=>d.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(c="aal2");const f=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await Q(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new Ct});const s=await Q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return s.data&&s.data.redirect_url&&He()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:o}=r;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new Ct});const s=await Q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return s.data&&s.data.redirect_url&&He()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Q(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(t){if(K(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await Q(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ct})})}catch(n){if(K(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+YN>i)return r;const{data:o,error:s}=await Q(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=i,r=o.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:d,error:m}
183=await this.getSession();if(m||!d.session)return this._returnResult({data:null,error:m});r=d.session.access_token}const{header:i,payload:o,signature:s,raw:{header:a,payload:l}}=Da(r);n!=null&&n.allowExpired||vj(o.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:d}=await this.getUser(r);if(d)throw d;return{data:{claims:o,header:i,signature:s},error:null}}const c=wj(i.alg),h=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,h,s,oj(`${a}.${l}`)))throw new rh("Invalid JWT signature");return{data:{claims:o,header:i,signature:s},error:null}}catch(r){if(K(r))return this._returnResult({data:null,error:r});throw r}}}Bs.nextInstanceID={};const Jj=Bs,Xj="2.99.0";let Zo="";typeof Deno<"u"?Zo="deno":typeof document<"u"?Zo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Zo="react-native":Zo="node";const Zj={"X-Client-Info":`supabase-js-${Zo}/${Xj}`},eL={headers:Zj},tL={schema:"public"},nL={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},rL={};function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function iL(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oL(e){var t=iL(e,"string");return Vs(t)=="symbol"?t:t+""}function sL(e,t,n){return(t=oL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(n),!0).forEach(function(r){sL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const aL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),lL=()=>Headers,uL=(e,t,n)=>{const r=aL(n),i=lL();return async(o,s)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new i(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(o,Ae(Ae({},s),{},{headers:u}))}};function cL(e){return e.endsWith("/")?e:e+"/"}function dL(e,t){var n,r;const{db:i,auth:o,realtime:s,global:a}=e,{db:l,auth:u,realtime:c,global:h}=t,f={db:Ae(Ae({},l),i),auth:Ae(Ae({},u),o),realtime:Ae(Ae({},c),s),storage:{},global:Ae(Ae(Ae({},h),a),{},{headers:Ae(Ae({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function hL(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(cL(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var fL=class extends Jj{constructor(e){super(e)}},pL=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const o=hL(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const s=`sb-${o.hostname.split(".")[0]}-auth-token`,a={db:tL,realtime:rL,auth:Ae(Ae({},nL),{},{storageKey:s}),global:eL},l=dL(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=uL(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ae({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new XI(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new WN(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new HI(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
183channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:o,flowType:s,lock:a,debug:l,throwOnError:u},c,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new fL({url:this.authUrl.href,headers:Ae(Ae({},f),c),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:s,lock:a,debug:l,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(d=>d.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new mN(this.realtimeUrl.href,Ae(Ae({},e),{},{params:Ae(Ae({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const mL=(e,t,n)=>new pL(e,t,n);function gL(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}gL()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const yL="https://pbfjxusqprshoqfjxzwk.supabase.co",vL="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBiZmp4dXNxcHJzaG9xZmp4endrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAyMTE0OTIsImV4cCI6MjA4NTc4NzQ5Mn0.PH21014DBqnDegHRdHH5Z0iIg8N90dL8eAjLPYybEbM",wL=mL(yL,vL,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),bL=[{display:"Betaalbaar wonen in de stad",prompt:"Wat zijn de standpunten van Volt Amsterdam over betaalbaar wonen? Volt vindt dat wonen een recht is voor iedereen en dat er te weinig betaalbare woningen zijn. Geef een overzicht van hun plannen voor meer betaalbare woningen, het aanpakken van speculatie, en het beschermen van huurders. Verwijs naar het verkiezingsprogramma voor meer details."},{display:"Vrij bewegen in iedere buurt",prompt:"Wat zijn de standpunten van Volt Amsterdam over veiligheid en vrij bewegen in de stad? Volt wil een Amsterdam waar je je vrij kunt bewegen, overdag én 's avonds. Dit omvat: betere verlichting op loop- en fietsroutes, goed nacht-OV, het aanpakken van gevaarlijke kruispunten, en samenwerking met bewoners. Geef een overzicht van hun plannen voor een veilige stad w
183aar vrijheid vanzelfsprekend is."},{display:"Doen wat bij jou past",prompt:"Wat zijn de standpunten van Volt Amsterdam over 'doen wat bij jou past'? Amsterdam is een plek om te leven, maken, ondernemen, dansen, sporten en studeren. Volt wil een stad waar je jezelf kunt zijn met duidelijke, eerlijke spelregels. Geef een overzicht van hun plannen over nachtcultuur, schone straten, ondernemerschap en slim toerisme."},{display:"Europees denken, Amsterdams doen",prompt:"Wat zijn de standpunten van Volt Amsterdam over 'Europees denken, Amsterdams doen'? Volt wil Amsterdam sterker maken door Europees te denken. Dit betekent: Europa als schild voor onafhankelijkheid (energie, digitaal, weerbaarheid), Europa als hefboom voor eerlijke regels (klimaat, belasting, tech), en Europa als brug naar anderen (samenwerking met Europese steden). Geef een overzicht van hun visie."}],xL=()=>{var d;const[e,t]=b.useState([]),[n,r]=b.useState(""),[i,o]=b.useState(!1),s=b.useRef(null),a=b.useRef(null),l=b.useRef(crypto.randomUUID());b.useEffect(()=>{s.current&&(s.current.scrollTop=s.current.scrollHeight)},[e]);const u=async m=>{var p,y,v,S,E,_;if(!m.trim()||i)return;const g={role:"user",content:m.trim()};t(T=>[...T,g]),r(""),o(!0),wL.from("chat_analytics").insert({user_message:m.trim().slice(0,2e3),session_id:l.current}).then(()=>{}),o(!0);let w="";try{const T=await fetch("https://pbfjxusqprshoqfjxzwk.supabase.co/functions/v1/voltaire-chat",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBiZmp4dXNxcHJzaG9xZmp4endrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAyMTE0OTIsImV4cCI6MjA4NTc4NzQ5Mn0.PH21014DBqnDegHRdHH5Z0iIg8N90dL8eAjLPYybEbM"},body:JSON.stringify({messages:[...e,g]})});if(!T.ok){const A=await T.json().catch(()=>({}));throw new Error(A.error||`Fout: ${T.status}`)}if(!T.body)throw new Error("Geen response body");const R=T.body.getReader(),P=new TextDecoder;let I="",D=!1;for(t(A=>[...A,{role:"assistant",content:""}]);!D;){const{done:A,value:V}=await R.read();if(A)break;I+=P.decode(V,{stream:!0});let $;for(;($=I.indexOf(` 184`))!==-1;){let B=I.slice(0,$);if(I=I.slice($+1),B.endsWith("\r")&&(B=B.slice(0,-1)),B.startsWith(":")||B.trim()===""||!B.startsWith("data: "))continue;const H=B.slice(6).trim();if(H==="[DONE]"){D=!0;break}try{const N=(v=(y=(p=JSON.parse(H).choices)==null?void 0:p[0])==null?void 0:y.delta)==null?void 0:v.content;N&&(w+=N,t(j=>{const x=[...j];return x[x.length-1]={role:"assistant",content:w},x}))}catch{I=B+` 185`+I;break}}}if(I.trim())for(let A of I.split(` 186`)){if(!A||(A.endsWith("\r")&&(A=A.slice(0,-1)),A.startsWith(":")||A.trim()==="")||!A.startsWith("data: "))continue;const V=A.slice(6).trim();if(V!=="[DONE]")try{const B=(_=(E=(S=JSON.parse(V).choices)==null?void 0:S[0])==null?void 0:E.delta)==null?void 0:_.content;B&&(w+=B,t(H=>{const q=[...H];return q[q.length-1]={role:"assistant",content:w},q}))}catch{}}}catch(T){console.error("Chat error:",T);const R=T instanceof Error?T.message:"Er ging iets mis. Probeer het opnieuw.";t(P=>[...P.filter((D,A)=>!(A===P.length-1&&D.role==="assistant"&&!D.content)),{role:"assistant",content:`â ï¸ ${R}`}])}finally{o(!1)}},c=m=>{m.preventDefault(),u(n)},h=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),u(n))},f=()=>{t([]),r("")};return C.jsxs("div",{className:"min-h-screen bg-primary flex flex-col",children:[C.jsx("header",{className:"bg-primary text-primary-foreground py-4 px-6 border-b border-sidebar-border",children:C.jsxs("div",{className:"max-w-4xl mx-auto flex items-center justify-between",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[e.length>0&&C.jsx(Xa,{variant:"ghost",size:"icon",onClick:f,className:"text-primary-foreground hover:bg-white/10 mr-2",title:"Nieuw gesprek",children:C.jsx(D_,{className:"w-5 h-5"})}),C.jsx("div",{className:"flex items-center gap-2",children:C.jsx("a",{href:"https://voltnederland.org/storage/amsterdam/2026/volt-amsterdam-verkiezingsprogramma-gemeenteraadsverkiezingen-2026.pdf",target:"_blank",rel:"noopener noreferrer",className:"font-bold tracking-tight text-xl text-primary-foreground hover:text-primary-foreground
186/80 underline underline-offset-2 transition-colors",children:"Bouw aan je toekomst."})})]}),C.jsxs("a",{href:"https://voltnederland.org/amsterdam",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-primary-foreground/80 hover:text-primary-foreground transition-colors",children:[C.jsx("span",{className:"hidden sm:inline",children:"Volt Amsterdam"}),C.jsx(N_,{className:"w-4 h-4"})]})]})}),C.jsxs("main",{className:"flex-1 flex flex-col max-w-4xl mx-auto w-full",children:[e.length===0?C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-6 py-12",children:[C.jsxs("div",{className:"text-center mb-8",children:[C.jsx("img",{src:FI,alt:"Volt",className:"w-40 mx-auto mb-4 brightness-0 invert"}),C.jsxs("div",{className:"inline-flex items-center gap-2 bg-accent text-accent-foreground px-4 py-2 rounded-full text-sm font-semibold mb-6",children:[C.jsx($_,{className:"w-4 h-4"}),"AI-Powered"]}),C.jsx("h1",{className:"text-4xl font-extrabold text-primary-foreground mb-4 tracking-tight sm:text-6xl",children:"VoltAIre"}),C.jsx("p",{className:"text-xl text-primary-foreground/90 max-w-lg mx-auto leading-relaxed mb-8",children:"Jouw AI gids voor waar Volt Amsterdam voor staat bij de Gemeenteraadsverkiezingen 2026."}),C.jsx("form",{onSubmit:c,className:"w-full max-w-2xl mx-auto",children:C.jsxs("div",{className:"relative bg-white rounded-2xl shadow-lg",children:[C.jsx(Dd,{ref:a,value:n,onChange:m=>r(m.target.value),onKeyDown:h,placeholder:"Stel een vraag over het verkiezingsprogramma...",className:"min-h-[56px] max-h-[200px] resize-none border-0 focus-visible:ring-0 focus-visible:ring-offset-0 pr-14 rounded-2xl text-foreground placeholder:text-muted-foreground text-base",disabled:i}),C.jsx(Xa,{type:"submit",size:"icon",disabled:!n.trim()||i,className:"absolute right-2 bottom-2 h-10 w-10 rounded-xl bg-primary hover:bg-primary/90",children:i?C.jsx(tm,{className:"w-5 h-5 animate-spin"}):C.jsx(nm,{className:"w-5 h-5"})})]})})]}),C.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[C.jsx("p",{className:"text-primary-foreground/70 text-sm font-medium text-center mb-4",children:"Nieuwsgierig naar onze standpunten? Ontdek ze hier:"}),C.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:bL.map((m,g)=>C.jsx("button",{onClick:()=>u(m.prompt),className:"text-left p-4 bg-white/10 hover:bg-white/20 rounded-xl border border-white/20 text-primary-foreground transition-all hover:scale-[1.02] active:scale-[0.98]",children:C.jsx("span",{className:"text-sm",children:m.display})},g))})]}),C.jsxs("p",{className:"text-xs text-primary-foreground/60 text-center mt-8",children:["VoltAIre baseert zich op het"," ",C.jsx("a",{href:"https://linkly.link/2ZXsQ",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-primary-foreground",children:"verkiezingsprogramma"})," ","van Volt Amsterdam 2026-2030"]}),C.jsxs("div",{className:"flex items-center justify-center gap-4 mt-4",children:[C.jsx("a",{href:"https://www.instagram.com/volt.amsterdam/",target:"_blank",rel:"noopener noreferrer",className:"text-primary-foreground/60 hover:text-primary-foreground transition-colors",title:"Instagram",children:C.jsx(j_,{className:"w-5 h-5"})}),C.jsx("a",{href:"https://www.linkedin.com/company/volt-020/posts/?feedView=all",target:"_blank",rel:"noopener noreferrer",className:"text-primary-foreground/60 hover:text-primary-foreground transition-colors",title:"LinkedIn",children:C.jsx(L_,{className:"w-5 h-5"})})]})]}):C.jsx(rb,{className:"flex-1 px-4 py-6",ref:s,children:C.jsxs("div",{className:"space-y-6 max-w-3xl mx-auto",children:[e.map((m,g)=>C.jsx("div",{className:Lt("flex",m.role==="user"?"justify-end":"justify-start"),children:C.jsx("div",{className:Lt("max-w-[85%] rounded-2xl px-5 py-3",m.role==="user"?"bg-accent text-accent-foreground":"bg-white text-foreground shadow-lg"),children:m.role==="assistant"?C.jsx("div",{className:"prose prose-sm max-w-none prose-headings:text-primary prose-a:text-primary prose-a:underline prose-a:font-bold prose-strong:text-primary",children:C.jsx(LI,{components:{a:({href:w,children:p})=>C.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",children:p})},children:m.content||"..."})}):C.jsx("p",{className:"text-sm leading-relaxed",children:m.content})})},g)),i&&((d=e[e.length-1])==null?void 0:d.role)==="user"&&C.jsx("div",{className:"flex justify-start"})]})}),e.length>0&&C.jsx("div",{className:"p-4 bg-primary border-t border-sidebar-border shadow-none",children:C.jsxs("form",{onSubmit:c,className:"max-w-3xl mx-auto",children:[C.jsxs("div",{className:"relative bg-white rounded-2xl shadow-lg",children:[C.jsx(Dd,{ref:a,value:n,onChange:m=>r(m.target.value),onKeyDown:h,placeholder:"Stel een vraag over het verkiezingsprogramma...",className:"min-h-[56px] max-h-[200px] resize-none border-0 focus-visible:ring-0 focus-visible:ring-offset-0 pr-14 rounded-2xl text-foreground placeholder:text-muted-foreground text-base",disabled:i}),C.jsx(Xa,{type:"submit",size:"icon",disabled:!n.trim()||i,className:"absolute right-2 bottom-2 h-10 w-10 rounded-xl bg-primary hover:bg-primary/90",children:i?C.jsx(tm,{className:"w-5 h-5 animate-spin"}):C.jsx(nm,{className:"w-5 h-5"})})]}
186),C.jsxs("p",{className:"text-xs text-primary-foreground/60 text-center mt-3",children:["VoltAIre baseert zich op het"," ",C.jsx("a",{href:"https://linkly.link/2ZXsQ",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-primary-foreground",children:"verkiezingsprogramma"})," ","van Volt Amsterdam 2026-2030"]})]})})]})]})},SL=()=>{const e=V0();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),C.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:C.jsxs("div",{className:"text-center",children:[C.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),C.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),C.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},_L=new GC,kL=()=>C.jsx(YC,{client:_L,children:C.jsxs(kC,{children:[C.jsx(bk,{}),C.jsx(Xk,{}),C.jsx(LT,{children:C.jsxs(IT,{children:[C.jsx(jd,{path:"/",element:C.jsx(xL,{})}),C.jsx(jd,{path:"*",element:C.jsx(SL,{})})]})})]})});pw(document.getElementById("root")).render(C.jsx(kL,{}));
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.