PageSourceSearch

https://adpilot-489907.web.app/assets/index-tNhE6V5Q.js

js adpilot-489907.web.app collected 2026-10-03 12:15:35 UTC 626,320 bytes, 86 lines download raw bytes

vendor: 8,755 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-oFD-YJJQ.js","assets/ConversationPanel-YII99_0H.js","assets/index-DsGRhAoj.js","assets/index-B-bfC41A.js","assets/MetaAdPreview-BBGVzfzq.js","assets/ProductDetail-CPfMQRuU.js","assets/markdownComponents-IAYGZA6S.js","assets/index-DEi9oOxO.js","assets/index-IUPCRQMV.js","assets/BarChart-BOjaE1wW.js","assets/index-D2MP03J3.js","assets/index-CBGWXnl1.js","assets/index-oUjjfrh_.js","assets/index-CX_rsLuS.js","assets/index-27ajqVw0.js","assets/ProductGuides-BW_3YEzR.js","assets/ConsoleLayout-CN_2xnQk.js","assets/PlivoPhoneContext-BQoh5YAP.js","assets/SystemHealthChip-BZxC-Qi5.js","assets/ConsoleLayout-BLH62sJP.css","assets/Warranty-BUBMzvSf.js","assets/CallButton-BGuKa4j9.js","assets/MskuLookup-BelVCXG0.js","assets/Reviews-Wd1zOAvA.js","assets/WaTemplates-Cqy3Vbzs.js","assets/WaSendStateLine-BbHeLOYo.js","assets/EmojiButton-DiuJse3A.js","assets/QuickActions-8RhiF8ek.js","assets/QuickActions-CddH7eBi.css","assets/AdminWarranty-Din_guXf.js","assets/Dash-4uLE9yHf.js","assets/AdminReviews-B5X9Tqh9.js","assets/AdminReturns-tgCU_pPj.js","assets/AdminCsMis-DfEen_W9.js","assets/Integrations-DYBaCpBT.js","assets/SystemHealth-BF9cmXJD.js","assets/Balances-C_OeQ6Ct.js","assets/Sales-DVkTtKvt.js","assets/SalesDashboard-DMS244rU.js","assets/SalesOrders-dc3wUwyT.js","assets/SalesCustomers-DFRupQFA.js","assets/SalesProspects-CaipD5fE.js","assets/SalesEmailTemplates-CJaQ37ao.js","assets/SalesEstimates-BOeyO5zd.js","assets/Conversations-CRtxbCeg.js","assets/mediaDownload-AzRRPiaV.js","assets/Tickets-DeL2-f5W.js","assets/WaTemplatePicker-BUVj5g4S.js","assets/RichTextArea--L970AgC.js","assets/Tickets-BnRtrzEZ.css","assets/tickets-Dbt3yrzb.css","assets/Email-oSSlTDcp.js","assets/Calls-Dt-W-5RS.js","assets/Knowledge-B7YAzWTA.js","assets/Kb-DHCPSzTg.js","assets/ProductGuides-BkJb1BNT.js","assets/AutoQA-C7KSe6xi.js","assets/LogBook-DaPwaLQS.js","assets/ProductDetailKB-DxhLlxgV.js","assets/ProductsHub-DikMlgLG.js","assets/ui-BcvfcZe-.js","assets/FaqSuggestions-BT6EVGxk.js","assets/FactsQueue-CeCchHnP.js","assets/Listings-EKmLRB7d.js","assets/ProductCatalogue-4NXS6-Ox.js","assets/Agent-Bg2Il8zk.js","assets/MarketingOverview-DcdAXWIb.js","assets/AttributedOrders-WQKPQXRd.js","assets/MarketingPlatform-CWq_OOH4.js","assets/MarketingWhatsApp-DyZu6BbL.js","assets/MarketingCampaigns-BrcnA31G.js"])))=>i.map(i=>d[i]);
2function Iw(e,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();function vh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ff={exports:{}},kl={};var Kg;function Pw(){if(Kg)return kl;Kg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:u}}return kl.Fragment=n,kl.jsx=i,kl.jsxs=i,kl}var Xg;function Hw(){return Xg||(Xg=1,ff.exports=Pw()),ff.exports}var w=Hw(),hf={exports:{}},ke={};var Qg;function qw(){if(Qg)return ke;Qg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),_=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=_&&D[_]||D["@@iterator"],typeof D=="function"?D:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,C={};function A(D,V,E){this.props=D,this.context=V,this.refs=C,this.updater=E||S}A.prototype.isReactComponent={},A.prototype.setState=function(D,V){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,V,"setState")},A.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function N(){}N.prototype=A.prototype;function j(D,V,E){this.props=D,this.context=V,this.refs=C,this.updater=E||S}var X=j.prototype=new N;X.constructor=j,T(X,A.prototype),X.isPureReactComponent=!0;var re=Array.isArray;function M(){}var Z={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function fe(D,V,E){var le=E.ref;return{$$typeof:e,type:D,key:V,ref:le!==void 0?le:null,props:E}}function q(D,V){return fe(D.type,V,D.props)}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ne(D){var V={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(E){return V[E]})}var we=/\/+/g;function oe(D,V){return typeof D=="object"&&D!==null&&D.key!=null?ne(""+D.key):V.toString(36)}function te(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(M,M):(D.status="pending",D.then(function(V){D.status==="pending"&&(D.status="fulfilled",D.value=V)},function(V){D.status==="pending"&&(D.status="rejected",D.reason=V)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function P(D,V,E,le,ge){var me=typeof D;(me==="undefined"||me==="boolean")&&(D=null);var Oe=!1;if(D===null)Oe=!0;else switch(me){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(D.$$typeof){case e:case n:Oe=!0;break;case g:return Oe=D._init,P(Oe(D._payload),V,E,le,ge)}}if(Oe)return ge=ge(D),Oe=le===""?"."+oe(D,0):le,re(ge)?(E="",Oe!=null&&(E=Oe.replace(we,"$&/")+"/"),P(ge,V,E,"",function($t){return $t})):ge!=null&&(Q(ge)&&(ge=q(ge,E+(ge.key==null||D&&D.key===ge.key?"":(""+ge.key).replace(we,"$&/")+"/")+Oe)),V.push(ge)),1;Oe=0;var Fe=le===""?".":le+":";if(re(D))for(var Ye=0;Ye<D.length;Ye++)le=D[Ye],me=Fe+oe(le,Ye),Oe+=P(le,V,E,me,ge);else if(Ye=b(D),typeof Ye=="function")for(D=Ye.call(D),Ye=0;!(le=D.next()).done;)le=le.value,me=Fe+oe(le,Ye++),Oe+=P(le,V,E,me,ge);else if(me==="object"){if(typeof D.then=="function")return P(te(D),V,E,le,ge);throw V=String(D),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function ee(D,V,E){if(D==null)return D;var le=[],ge=0;return P(D,le,"","",function(me){return V.call(E,me,ge++)}),le}function ce(D){if(D._status===-1){var V=D._result;V=V(),V.then(function(E){(D._status===0||D._status===-1)&&(D._status=1,D._result=E)},function(E){(D._status===0||D._status===-1)&&(D._status=2,D._result=E)}),D._status===-1&&(D._status=0,D._result=V)}if(D._status===1)return D._result.default;throw D._result}var Te=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},R={map:ee,forEach:function(D,V,E){ee(D,function(){V.apply(this,arguments)},E)},count:function(D){var V=0;return ee(D,function(){V++}),V},toArray:function(D){return ee(D,function(V){return V})||[]},only:function(D){if(!Q(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return ke.Activity=y,ke.Children=R,ke.Component=A,ke.Fragment=i,ke.Profiler=s,ke.PureComponent=j,ke.StrictMode=a,ke.Suspense=
vendor: 5,177 bytes, line 2
2d,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return Z.H.useMemoCache(D)}},ke.cache=function(D){return function(){return D.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(D,V,E){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var le=T({},D.props),ge=D.key;if(V!=null)for(me in V.key!==void 0&&(ge=""+V.key),V)!ue.call(V,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&V.ref===void 0||(le[me]=V[me]);var me=arguments.length-2;if(me===1)le.children=E;else if(1<me){for(var Oe=Array(me),Fe=0;Fe<me;Fe++)Oe[Fe]=arguments[Fe+2];le.children=Oe}return fe(D.type,ge,le)},ke.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},ke.createElement=function(D,V,E){var le,ge={},me=null;if(V!=null)for(le in V.key!==void 0&&(me=""+V.key),V)ue.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ge[le]=V[le]);var Oe=arguments.length-2;if(Oe===1)ge.children=E;else if(1<Oe){for(var Fe=Array(Oe),Ye=0;Ye<Oe;Ye++)Fe[Ye]=arguments[Ye+2];ge.children=Fe}if(D&&D.defaultProps)for(le in Oe=D.defaultProps,Oe)ge[le]===void 0&&(ge[le]=Oe[le]);return fe(D,me,ge)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(D){return{$$typeof:f,render:D}},ke.isValidElement=Q,ke.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:ce}},ke.memo=function(D,V){return{$$typeof:p,type:D,compare:V===void 0?null:V}},ke.startTransition=function(D){var V=Z.T,E={};Z.T=E;try{var le=D(),ge=Z.S;ge!==null&&ge(E,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(M,Te)}catch(me){Te(me)}finally{V!==null&&E.types!==null&&(V.types=E.types),Z.T=V}},ke.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ke.use=function(D){return Z.H.use(D)},ke.useActionState=function(D,V,E){return Z.H.useActionState(D,V,E)},ke.useCallback=function(D,V){return Z.H.useCallback(D,V)},ke.useContext=function(D){return Z.H.useContext(D)},ke.useDebugValue=function(){},ke.useDeferredValue=function(D,V){return Z.H.useDeferredValue(D,V)},ke.useEffect=function(D,V){return Z.H.useEffect(D,V)},ke.useEffectEvent=function(D){return Z.H.useEffectEvent(D)},ke.useId=function(){return Z.H.useId()},ke.useImperativeHandle=function(D,V,E){return Z.H.useImperativeHandle(D,V,E)},ke.useInsertionEffect=function(D,V){return Z.H.useInsertionEffect(D,V)},ke.useLayoutEffect=function(D,V){return Z.H.useLayoutEffect(D,V)},ke.useMemo=function(D,V){return Z.H.useMemo(D,V)},ke.useOptimistic=function(D,V){return Z.H.useOptimistic(D,V)},ke.useReducer=function(D,V,E){return Z.H.useReducer(D,V,E)},ke.useRef=function(D){return Z.H.useRef(D)},ke.useState=function(D){return Z.H.useState(D)},ke.useSyncExternalStore=function(D,V,E){return Z.H.useSyncExternalStore(D,V,E)},ke.useTransition=function(){return Z.H.useTransition()},ke.version="19.2.4",ke}var Jg;function bh(){return Jg||(Jg=1,hf.exports=qw()),hf.exports}var k=bh();const $w=vh(k),ID=Iw({__proto__:null,default:$w},[k]);var df={exports:{}},Tl={},pf={exports:{}},mf={};var Zg;function Vw(){return Zg||(Zg=1,(function(e){function n(P,ee){var ce=P.length;P.push(ee);e:for(;0<ce;){var Te=ce-1>>>1,R=P[Te];if(0<s(R,ee))P[Te]=ee,P[ce]=R,ce=Te;else break e}}function i(P){return P.length===0?null:P[0]}function a(P){if(P.length===0)return null;var ee=P[0],ce=P.pop();if(ce!==ee){P[0]=ce;e:for(var Te=0,R=P.length,D=R>>>1;Te<D;){var V=2*(Te+1)-1,E=P[V],le=V+1,ge=P[le];if(0>s(E,ce))le<R&&0>s(ge,E)?(P[Te]=ge,P[le]=ce,Te=le):(P[Te]=E,P[V]=ce,Te=V);else if(le<R&&0>s(ge,ce))P[Te]=ge,P[le]=ce,Te=le;else break e}}return ee}function s(P,ee){var ce=P.sortIndex-ee.sortIndex;return ce!==0?ce:P.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],p=[],g=1,y=null,_=3,b=!1,S=!1,T=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function X(P){for(var ee=i(p);ee!==null;){if(ee.callback===null)a(p);else if(ee.startTime<=P)a(p),ee.sortIndex=ee.expirationTime,n(d,ee);else break;ee=i(p)}}function re(P){if(T=!1,X(P),!S)if(i(d)!==null)S=!0,M||(M=!0,ne());else{var ee=i(p);ee!==null&&te(re,ee.startTime-P)}}var M=!1,Z=-1,ue=5,fe=-1;function q(){return C?!0:!(e.unstable_now()-fe<ue)}function Q(){if(C=!1,M){var P=e.unstable_now();fe=P;var ee=!0;try{e:{S=!1,T&&(T=!1,N(Z),Z=-1),b=!0;var ce=_;try{t:{for(X(P),y=i(d);y!==null&&!(y.expirationTime>P&&q());){var Te=y.callback;if(typeof Te=="function"){y.callback=null,_=y.priorityLevel;var R=Te(y.expirationTime<=P);if(P=e.unstable_now(),typeof R=="function"){y.callback=R,X(P),ee=!0;break t}y===i(d)&&a(d),X(P)}else a(d);y=i(d)}if(y!==null)ee=!0;else{var D=i(p);D!==null&&te(re,D.startTime-P),ee=!1}}break e}finally{y=null,_=ce,b=!1}ee=void 0}}finally{ee?ne():M=!1}}}var ne;if(typeof j=="function")ne=function(){j(Q)};
vendor: 10,344 bytes, lines 2-4
2else if(typeof MessageChannel<"u"){var we=new MessageChannel,oe=we.port2;we.port1.onmessage=Q,ne=function(){oe.postMessage(null)}}else ne=function(){A(Q,0)};function te(P,ee){Z=A(function(){P(e.unstable_now())},ee)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(P){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var ce=_;_=ee;try{return P()}finally{_=ce}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(P,ee){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ce=_;_=P;try{return ee()}finally{_=ce}},e.unstable_scheduleCallback=function(P,ee,ce){var Te=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Te+ce:Te):ce=Te,P){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ce+R,P={id:g++,callback:ee,priorityLevel:P,startTime:ce,expirationTime:R,sortIndex:-1},ce>Te?(P.sortIndex=ce,n(p,P),i(d)===null&&P===i(p)&&(T?(N(Z),Z=-1):T=!0,te(re,ce-Te))):(P.sortIndex=R,n(d,P),S||b||(S=!0,M||(M=!0,ne()))),P},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(P){var ee=_;return function(){var ce=_;_=ee;try{return P.apply(this,arguments)}finally{_=ce}}}})(mf)),mf}var Wg;function Gw(){return Wg||(Wg=1,pf.exports=Vw()),pf.exports}var gf={exports:{}},Bt={};var ey;function Fw(){if(ey)return Bt;ey=1;var e=bh();function n(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(d,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:d,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Bt.createPortal=function(d,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return u(d,p,null,g)},Bt.flushSync=function(d){var p=c.T,g=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=p,a.p=g,a.d.f()}},Bt.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},Bt.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Bt.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var g=p.as,y=f(g,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:_,fetchPriority:b}):g==="script"&&a.d.X(d,{crossOrigin:y,integrity:_,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},Bt.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=f(g,p.crossOrigin);a.d.L(d,g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(d,p){if(typeof d=="string")if(p){var g=f(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},Bt.requestFormReset=function(d){a.d.r(d)},Bt.unstable_batchedUpdates=function(d,p){return d(p)},Bt.useFormState=function(d,p,g){return c.H.useFormState(d,p,g)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.2.4",Bt}var ty;function Yw(){if(ty)return gf.exports;ty=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),gf.exports=Fw(),gf.exports}var ny;function Kw(){if(ny)return Tl;ny=1;var e=Gw(),n=bh(),i=Yw();function a(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function c(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(u(t)!==t)throw Error(a(188))}function p(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(a(188));return r!==t?null:t}for(var l=t,o=r;;){var h=l.return;if(h===null)break;var m=h.alternate;if(m===null){if(o=h.return,o!==null){l=o;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===l)return d(h),t;if(m===o)return d(h),r;m=m.sibling}throw Error(a(188))}if(l.return!==o.return)l=h,o=m;else{for(var v=!1,x=h.child;x;){if(x===l){v=!0,l=h,o=m;break}if(x===o){v=!0,o=h,l=m;break}x=x.sibling}if(!v){for(x=m.child;x;){if(x===l){v=!0,l=m,o=h;break}if(x===o){v=!0,o=m,l=h;break}x=x.sibling}if(!v)throw Error(a(189))}}if(l.alternate!==o)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,_=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),j=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=Q&&t[Q]||t["@@iterator"],typeof t=="function"?t:null)}var we=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===we?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case re:return"Suspense";case M:return"SuspenseList";case fe:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case j:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case X:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return r=t.displayName||null,r!==null?r:oe(t.type)||"Memo";case ue:r=t._payload,t=t._init;try{return oe(t(r))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Te=[],R=-1;function D(t){return{current:t}}function V(t){0>R||(t.current=Te[R],Te[R]=null,R--)}function E(t,r){R++,Te[R]=t.current,t.current=r}var le=D(null),ge=D(null),me=D(null),Oe=D(null);function Fe(t,r){switch(E(me,r),E(ge,t),E(le,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?yg(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=yg(r),t=vg(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(le),E(le,t)}function Ye(){V(le),V(ge),V(me)}function $t(t){t.memoizedState!==null&&E(Oe,t);var r=le.current,l=vg(r,t.type);r!==l&&(E(ge,t),E(le,l))}function Rn(t){ge.current===t&&(V(le),V(ge)),Oe.current===t&&(V(Oe),wl._currentValue=ce)}var Jr,Ai;function On(t){if(Jr===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Jr=r&&r[1]||"",Ai=-1<l.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Jr+t+Ai}var yr=!1;function vr(t,r){if(!t||yr)return"";yr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch($){var H=$}Reflect.construct(t,[],K)}else{try{K.call()}catch($){H=$}t.call(K.prototype)}}else{try{throw Error()}catch($){H=$}(K=t())&&typeof K.catch=="function"&&K.catch(function(){})}}
vendor: 5,211 bytes, lines 4-9
4catch($){if($&&H&&typeof $.stack=="string")return[$.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),v=m[0],x=m[1];if(v&&x){var O=v.split(`
5`),I=x.split(`
6`);for(h=o=0;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;for(;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;if(o===O.length||h===I.length)for(o=O.length-1,h=I.length-1;1<=o&&0<=h&&O[o]!==I[h];)h--;for(;1<=o&&0<=h;o--,h--)if(O[o]!==I[h]){if(o!==1||h!==1)do if(o--,h--,0>h||O[o]!==I[h]){var G=`
7`+O[o].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=o&&0<=h);break}}}finally{yr=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?On(l):""}function Zr(t,r){switch(t.tag){case 26:case 27:case 5:return On(t.type);case 16:return On("Lazy");case 13:return t.child!==r&&r!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return vr(t.type,!1);case 11:return vr(t.type.render,!1);case 1:return vr(t.type,!0);case 31:return On("Activity");default:return""}}function Ci(t){try{var r="",l=null;do r+=Zr(t,l),l=t,t=t.return;while(t);return r}catch(o){return`
8Error generating stack: `+o.message+`
9`+o.stack}}var Bn=Object.prototype.hasOwnProperty,br=e.unstable_scheduleCallback,Wr=e.unstable_cancelCallback,Na=e.unstable_shouldYield,La=e.unstable_requestPaint,J=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,U=e.unstable_ImmediatePriority,Y=e.unstable_UserBlockingPriority,se=e.unstable_NormalPriority,ye=e.unstable_LowPriority,Ee=e.unstable_IdlePriority,qe=e.log,Vt=e.unstable_setDisableYieldValue,dt=null,Me=null;function pt(t){if(typeof qe=="function"&&Vt(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(dt,t)}catch{}}var De=Math.clz32?Math.clz32:lt,Ue=Math.log,Ke=Math.LN2;function lt(t){return t>>>=0,t===0?32:31-(Ue(t)/Ke|0)|0}var en=256,Rt=262144,_r=4194304;function Ut(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Et(t,r,l){var o=t.pendingLanes;if(o===0)return 0;var h=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var x=o&134217727;return x!==0?(o=x&~m,o!==0?h=Ut(o):(v&=x,v!==0?h=Ut(v):l||(l=x&~t,l!==0&&(h=Ut(l))))):(x=o&~m,x!==0?h=Ut(x):v!==0?h=Ut(v):l||(l=o&~t,l!==0&&(h=Ut(l)))),h===0?0:r!==0&&r!==h&&(r&m)===0&&(m=h&-h,l=r&-r,m>=l||m===32&&(l&4194048)!==0)?r:h}function wr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function rs(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var t=_r;return _r<<=1,(_r&62914560)===0&&(_r=4194304),t}function yt(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function tn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function A0(t,r,l,o,h,m){var v=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var x=t.entanglements,O=t.expirationTimes,I=t.hiddenUpdates;for(l=v&~l;0<l;){var G=31-De(l),K=1<<G;x[G]=0,O[G]=-1;var H=I[G];if(H!==null)for(I[G]=null,G=0;G<H.length;G++){var $=H[G];$!==null&&($.lane&=-536870913)}l&=~K}o!==0&&Wh(t,o,0),m!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~r))}function Wh(t,r,l){t.pendingLanes|=r,t.suspendedLanes&=~r;var o=31-De(r);t.entangledLanes|=r,t.entanglements[o]=t.entanglements[o]|1073741824|l&261930}function ed(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var o=31-De(l),h=1<<o;h&r|t[o]&r&&(t[o]|=r),l&=~h}}function td(t,r){var l=r&-r;return l=(l&42)!==0?1:Wo(l),(l&(t.suspendedLanes|r))!==0?0:l}function Wo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function eu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}
vendor: 8,013 bytes, line 9
9function nd(){var t=ee.p;return t!==0?t:(t=window.event,t===void 0?32:Hg(t.type))}function rd(t,r){var l=ee.p;try{return ee.p=t,r()}finally{ee.p=l}}var xr=Math.random().toString(36).slice(2),Ot="__reactFiber$"+xr,Gt="__reactProps$"+xr,Ri="__reactContainer$"+xr,tu="__reactEvents$"+xr,C0="__reactListeners$"+xr,R0="__reactHandles$"+xr,id="__reactResources$"+xr,Ma="__reactMarker$"+xr;function nu(t){delete t[Ot],delete t[Gt],delete t[tu],delete t[C0],delete t[R0]}function Oi(t){var r=t[Ot];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Ri]||l[Ot]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=kg(t);t!==null;){if(l=t[Ot])return l;t=kg(t)}return r}t=l,l=t.parentNode}return null}function ji(t){if(t=t[Ot]||t[Ri]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function Ua(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(a(33))}function Di(t){var r=t[id];return r||(r=t[id]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function At(t){t[Ma]=!0}var ad=new Set,ld={};function ei(t,r){zi(t,r),zi(t+"Capture",r)}function zi(t,r){for(ld[t]=r,t=0;t<r.length;t++)ad.add(r[t])}var O0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sd={},od={};function j0(t){return Bn.call(od,t)?!0:Bn.call(sd,t)?!1:O0.test(t)?od[t]=!0:(sd[t]=!0,!1)}function is(t,r,l){if(j0(r))if(l===null)t.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+l)}}function as(t,r,l){if(l===null)t.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+l)}}function Yn(t,r,l,o){if(o===null)t.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(r,l,""+o)}}function mn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ud(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function D0(t,r,l){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,m=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(v){l=""+v,m.call(this,v)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ru(t){if(!t._valueTracker){var r=ud(t)?"checked":"value";t._valueTracker=D0(t,r,""+t[r])}}function cd(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),o="";return t&&(o=ud(t)?t.checked?"true":"false":t.value),t=o,t!==l?(r.setValue(t),!0):!1}function ls(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var z0=/[\n"\\]/g;function gn(t){return t.replace(z0,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function iu(t,r,l,o,h,m,v,x){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),r!=null?v==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+mn(r)):t.value!==""+mn(r)&&(t.value=""+mn(r)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),r!=null?au(t,v,mn(r)):l!=null?au(t,v,mn(l)):o!=null&&t.removeAttribute("value"),h==null&&m!=null&&(t.defaultChecked=!!m),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+mn(x):t.removeAttribute("name")}function fd(t,r,l,o,h,m,v,x){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){ru(t);return}l=l!=null?""+mn(l):"",r=r!=null?""+mn(r):l,x||r===t.value||(t.value=r),t.defaultValue=r}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=x?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),ru(t)}function au(t,r,l){r==="number"&&ls(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Ni(t,r,l,o){if(t=t.options,r){r={};for(var h=0;h<l.length;h++)r["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=r.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&o&&(t[l].defaultSelected=!0)}else{for(l=""+mn(l),r=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,o&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function hd(t,r,l){if(r!=null&&(r=""+mn(r),r!==t.value&&(t.value=r),l==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=l!=null?""+mn(l):""}function dd(t,r,l,o){if(r==null){if(o!=null){if(l!=null)throw Error(a(92));if(te(o)){if(1<o.length)throw Error(a(93));o=o[0]}l=o}l==null&&(l=""),r=l}l=mn(r),t.defaultValue=l,o=t.textContent,o===l&&o!==""&&o!==null&&(t.value=o),ru(t)}function Li(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var N0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pd(t,r,l){var o=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":o?t.setProperty(r,l):typeof l!="number"||l===0||N0.has(r)?r==="float"?t.cssFloat=l:t[r]=(""+l).trim():t[r]=l+"px"}function md(t,r,l){if(r!=null&&typeof r!="object")throw Error(a(62));if(t=t.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var h in r)o=r[h],r.hasOwnProperty(h)&&l[h]!==o&&pd(t,h,o)}else for(var m in r)r.hasOwnProperty(m)&&pd(t,m,r[m])}function lu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 L0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),M0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ss(t){return M0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Kn(){}var su=null;function ou(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Mi=null,Ui=null;function gd(t){var r=ji(t);if(r&&(t=r.stateNode)){var l=t[Gt]||null;e:switch(t=r.stateNode,r.type){case"input":if(iu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+gn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var o=l[r];if(o!==t&&o.form===t.form){var h=o[Gt]||null;if(!h)throw Error(a(90));iu(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<l.length;r++)o=l[r],o.form===t.form&&cd(o)}break e;case"textarea":hd(t,l.value,l.defaultValue);break e;case"select":r=l.value,r!=null&&Ni(t,!!l.multiple,r,!1)}}}var uu=!1;function yd(t,r,l){if(uu)return t(r,l);uu=!0;try{var o=t(r);return o}finally{if(uu=!1,(Mi!==null||Ui!==null)&&(Ks(),Mi&&(r=Mi,t=Ui,Ui=Mi=null,gd(r),t)))for(r=0;r<t.length;r++)gd(t[r])}}function Ba(t,r){var l=t.stateNode;if(l===null)return null;var o=l[Gt]||null;if(o===null)return null;l=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(a(231,r,typeof l));return l}var Xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(Xn)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){cu=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{cu=!1}var Sr=null,fu=null,os=null;function vd(){if(os)return os;var t,r=fu,l=r.length,o,h="value"in Sr?Sr.value:Sr.textContent,m=h.length;for(t=0;t<l&&r[t]===h[t];t++);var v=l-t;for(o=1;o<=v&&r[l-o]===h[m-o];o++);return os=h.slice(t,1<o?1-o:void 0)}function us(t){var r=t.keyCode;
vendor: 4,829 bytes, line 9
9return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function cs(){return!0}function bd(){return!1}function Ft(t){function r(l,o,h,m,v){this._reactName=l,this._targetInst=h,this.type=o,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(l=t[x],this[x]=l?l(m):m[x]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?cs:bd,this.isPropagationStopped=bd,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),r}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=Ft(ti),Pa=y({},ti,{view:0,detail:0}),U0=Ft(Pa),hu,du,Ha,hs=y({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ha&&(Ha&&t.type==="mousemove"?(hu=t.screenX-Ha.screenX,du=t.screenY-Ha.screenY):du=hu=0,Ha=t),hu)},movementY:function(t){return"movementY"in t?t.movementY:du}}),_d=Ft(hs),B0=y({},hs,{dataTransfer:0}),I0=Ft(B0),P0=y({},Pa,{relatedTarget:0}),pu=Ft(P0),H0=y({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),q0=Ft(H0),$0=y({},ti,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),V0=Ft($0),G0=y({},ti,{data:0}),wd=Ft(G0),F0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X0(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=K0[t])?!!r[t]:!1}function mu(){return X0}var Q0=y({},Pa,{key:function(t){if(t.key){var r=F0[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=us(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Y0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mu,charCode:function(t){return t.type==="keypress"?us(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?us(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),J0=Ft(Q0),Z0=y({},hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=Ft(Z0),W0=y({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mu}),e_=Ft(W0),t_=y({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),n_=Ft(t_),r_=y({},hs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i_=Ft(r_),a_=y({},ti,{newState:0,oldState:0}),l_=Ft(a_),s_=[9,13,27,32],gu=Xn&&"CompositionEvent"in window,qa=null;Xn&&"documentMode"in document&&(qa=document.documentMode);var o_=Xn&&"TextEvent"in window&&!qa,Sd=Xn&&(!gu||qa&&8<qa&&11>=qa),Ed=" ",kd=!1;function Td(t,r){switch(t){case"keyup":return s_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Bi=!1;function u_(t,r){switch(t){case"compositionend":return Ad(r);case"keypress":return r.which!==32?null:(kd=!0,Ed);case"textInput":return t=r.data,t===Ed&&kd?null:t;default:return null}}function c_(t,r){if(Bi)return t==="compositionend"||!gu&&Td(t,r)?(t=vd(),os=fu=Sr=null,Bi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;
vendor: 5,767 bytes, line 9
9if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Sd&&r.locale!=="ko"?null:r.data;default:return null}}var f_={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 Cd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!f_[t.type]:r==="textarea"}function Rd(t,r,l,o){Mi?Ui?Ui.push(o):Ui=[o]:Mi=o,r=to(r,"onChange"),0<r.length&&(l=new fs("onChange","change",null,l,o),t.push({event:l,listeners:r}))}var $a=null,Va=null;function h_(t){fg(t,0)}function ds(t){var r=Ua(t);if(cd(r))return t}function Od(t,r){if(t==="change")return r}var jd=!1;if(Xn){var yu;if(Xn){var vu="oninput"in document;if(!vu){var Dd=document.createElement("div");Dd.setAttribute("oninput","return;"),vu=typeof Dd.oninput=="function"}yu=vu}else yu=!1;jd=yu&&(!document.documentMode||9<document.documentMode)}function zd(){$a&&($a.detachEvent("onpropertychange",Nd),Va=$a=null)}function Nd(t){if(t.propertyName==="value"&&ds(Va)){var r=[];Rd(r,Va,t,ou(t)),yd(h_,r)}}function d_(t,r,l){t==="focusin"?(zd(),$a=r,Va=l,$a.attachEvent("onpropertychange",Nd)):t==="focusout"&&zd()}function p_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ds(Va)}function m_(t,r){if(t==="click")return ds(r)}function g_(t,r){if(t==="input"||t==="change")return ds(r)}function y_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var nn=typeof Object.is=="function"?Object.is:y_;function Ga(t,r){if(nn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),o=Object.keys(r);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var h=l[o];if(!Bn.call(r,h)||!nn(t[h],r[h]))return!1}return!0}function Ld(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Md(t,r){var l=Ld(t);t=0;for(var o;l;){if(l.nodeType===3){if(o=t+l.textContent.length,t<=r&&o>=r)return{node:l,offset:r-t};t=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ld(l)}}function Ud(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Ud(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Bd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=ls(t.document);r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=ls(t.document)}return r}function bu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var v_=Xn&&"documentMode"in document&&11>=document.documentMode,Ii=null,_u=null,Fa=null,wu=!1;function Id(t,r,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wu||Ii==null||Ii!==ls(o)||(o=Ii,"selectionStart"in o&&bu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Fa&&Ga(Fa,o)||(Fa=o,o=to(_u,"onSelect"),0<o.length&&(r=new fs("onSelect","select",null,r,l),t.push({event:r,listeners:o}),r.target=Ii)))}function ni(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Pi={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionrun:ni("Transition","TransitionRun"),transitionstart:ni("Transition","TransitionStart"),transitioncancel:ni("Transition","TransitionCancel"),transitionend:ni("Transition","TransitionEnd")},xu={},Pd={};Xn&&(Pd=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function ri(t){if(xu[t])return xu[t];if(!Pi[t])return t;var r=Pi[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in Pd)return xu[t]=r[l];return t}var Hd=ri("animationend"),qd=ri("animationiteration"),$d=ri("animationstart"),b_=ri("transitionrun"),__=ri("transitionstart"),w_=ri("transitioncancel"),Vd=ri("transitionend"),Gd=new Map,Su="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Su.push("scrollEnd");function jn(t,r){Gd.set(t,r),ei(r,[t])}var ps=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},yn=[],Hi=0,Eu=0;function ms(){for(var t=Hi,r=Eu=Hi=0;r<t;){var l=yn[r];yn[r++]=null;var o=yn[r];yn[r++]=null;var h=yn[r];yn[r++]=null;var m=yn[r];if(yn[r++]=null,o!==null&&h!==null){var v=o.pending;
vendor: 13,823 bytes, line 9
9v===null?h.next=h:(h.next=v.next,v.next=h),o.pending=h}m!==0&&Fd(l,h,m)}}function gs(t,r,l,o){yn[Hi++]=t,yn[Hi++]=r,yn[Hi++]=l,yn[Hi++]=o,Eu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function ku(t,r,l,o){return gs(t,r,l,o),ys(t)}function ii(t,r){return gs(t,null,null,r),ys(t)}function Fd(t,r,l){t.lanes|=l;var o=t.alternate;o!==null&&(o.lanes|=l);for(var h=!1,m=t.return;m!==null;)m.childLanes|=l,o=m.alternate,o!==null&&(o.childLanes|=l),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(h=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,h&&r!==null&&(h=31-De(l),t=m.hiddenUpdates,o=t[h],o===null?t[h]=[r]:o.push(r),r.lane=l|536870912),m):null}function ys(t){if(50<pl)throw pl=0,Nc=null,Error(a(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var qi={};function x_(t,r,l,o){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(t,r,l,o){return new x_(t,r,l,o)}function Tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn(t,r){var l=t.alternate;return l===null?(l=rn(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Yd(t,r){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,r=l.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function vs(t,r,l,o,h,m){var v=0;if(o=t,typeof t=="function")Tu(t)&&(v=1);else if(typeof t=="string")v=Aw(t,l,le.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case fe:return t=rn(31,l,r,h),t.elementType=fe,t.lanes=m,t;case T:return ai(l.children,h,m,r);case C:v=8,h|=24;break;case A:return t=rn(12,l,r,h|2),t.elementType=A,t.lanes=m,t;case re:return t=rn(13,l,r,h),t.elementType=re,t.lanes=m,t;case M:return t=rn(19,l,r,h),t.elementType=M,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:v=10;break e;case N:v=9;break e;case X:v=11;break e;case Z:v=14;break e;case ue:v=16,o=null;break e}v=29,l=Error(a(130,t===null?"null":typeof t,"")),o=null}return r=rn(v,l,r,h),r.elementType=t,r.type=o,r.lanes=m,r}function ai(t,r,l,o){return t=rn(7,t,o,r),t.lanes=l,t}function Au(t,r,l){return t=rn(6,t,null,r),t.lanes=l,t}function Kd(t){var r=rn(18,null,null,0);return r.stateNode=t,r}function Cu(t,r,l){return r=rn(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Xd=new WeakMap;function vn(t,r){if(typeof t=="object"&&t!==null){var l=Xd.get(t);return l!==void 0?l:(r={value:t,source:r,stack:Ci(r)},Xd.set(t,r),r)}return{value:t,source:r,stack:Ci(r)}}var $i=[],Vi=0,bs=null,Ya=0,bn=[],_n=0,Er=null,In=1,Pn="";function Jn(t,r){$i[Vi++]=Ya,$i[Vi++]=bs,bs=t,Ya=r}function Qd(t,r,l){bn[_n++]=In,bn[_n++]=Pn,bn[_n++]=Er,Er=t;var o=In;t=Pn;var h=32-De(o)-1;o&=~(1<<h),l+=1;var m=32-De(r)+h;if(30<m){var v=h-h%5;m=(o&(1<<v)-1).toString(32),o>>=v,h-=v,In=1<<32-De(r)+h|l<<h|o,Pn=m+t}else In=1<<m|l<<h|o,Pn=t}function Ru(t){t.return!==null&&(Jn(t,1),Qd(t,1,0))}function Ou(t){for(;t===bs;)bs=$i[--Vi],$i[Vi]=null,Ya=$i[--Vi],$i[Vi]=null;for(;t===Er;)Er=bn[--_n],bn[_n]=null,Pn=bn[--_n],bn[_n]=null,In=bn[--_n],bn[_n]=null}function Jd(t,r){bn[_n++]=In,bn[_n++]=Pn,bn[_n++]=Er,In=r.id,Pn=r.overflow,Er=t}var jt=null,it=null,Pe=!1,kr=null,wn=!1,ju=Error(a(519));function Tr(t){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(vn(r,t)),ju}function Zd(t){var r=t.stateNode,l=t.type,o=t.memoizedProps;switch(r[Ot]=t,r[Gt]=o,l){case"dialog":Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":case"embed":Ne("load",r);break;case"video":case"audio":for(l=0;l<gl.length;l++)Ne(gl[l],r);break;case"source":Ne("error",r);break;case"img":case"image":case"link":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"input":Ne("invalid",r),fd(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ne("invalid",r);break;case"textarea":Ne("invalid",r),dd(r,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||o.suppressHydrationWarning===!0||mg(r.textContent,l)?(o.popover!=null&&(Ne("beforetoggle",r),Ne("toggle",r)),o.onScroll!=null&&Ne("scroll",r),o.onScrollEnd!=null&&Ne("scrollend",r),o.onClick!=null&&(r.onclick=Kn),r=!0):r=!1,r||Tr(t,!0)}function Wd(t){for(jt=t.return;jt;)switch(jt.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:jt=jt.return}}function Gi(t){if(t!==jt)return!1;if(!Pe)return Wd(t),Pe=!0,!1;var r=t.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Xc(t.type,t.memoizedProps)),l=!l),l&&it&&Tr(t),Wd(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));it=Eg(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));it=Eg(t)}else r===27?(r=it,Pr(t.type)?(t=ef,ef=null,it=t):it=r):it=jt?Sn(t.stateNode.nextSibling):null;return!0}function li(){it=jt=null,Pe=!1}function Du(){var t=kr;return t!==null&&(Qt===null?Qt=t:Qt.push.apply(Qt,t),kr=null),t}function Ka(t){kr===null?kr=[t]:kr.push(t)}var zu=D(null),si=null,Zn=null;function Ar(t,r,l){E(zu,r._currentValue),r._currentValue=l}function Wn(t){t._currentValue=zu.current,V(zu)}function Nu(t,r,l){for(;t!==null;){var o=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),t===l)break;t=t.return}}function Lu(t,r,l,o){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var m=h.dependencies;if(m!==null){var v=h.child;m=m.firstContext;e:for(;m!==null;){var x=m;m=h;for(var O=0;O<r.length;O++)if(x.context===r[O]){m.lanes|=l,x=m.alternate,x!==null&&(x.lanes|=l),Nu(m.return,l,t),o||(v=null);break e}m=x.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(a(341));v.lanes|=l,m=v.alternate,m!==null&&(m.lanes|=l),Nu(v,l,t),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===t){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function Fi(t,r,l,o){t=null;for(var h=r,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(a(387));if(v=v.memoizedProps,v!==null){var x=h.type;nn(h.pendingProps.value,v.value)||(t!==null?t.push(x):t=[x])}}else if(h===Oe.current){if(v=h.alternate,v===null)throw Error(a(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(wl):t=[wl])}h=h.return}t!==null&&Lu(r,t,l,o),r.flags|=262144}function _s(t){for(t=t.firstContext;t!==null;){if(!nn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oi(t){si=t,Zn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Dt(t){return ep(si,t)}function ws(t,r){return si===null&&oi(t),ep(t,r)}function ep(t,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},Zn===null){if(t===null)throw Error(a(308));Zn=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Zn=Zn.next=r;return l}var S_=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(l,o){t.push(o)}};this.abort=function(){r.aborted=!0,t.forEach(function(l){return l()})}},E_=e.unstable_scheduleCallback,k_=e.unstable_NormalPriority,vt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mu(){return{controller:new S_,data:new Map,refCount:0}}function Xa(t){t.refCount--,t.refCount===0&&E_(k_,function(){t.controller.abort()})}var Qa=null,Uu=0,Yi=0,Ki=null;function T_(t,r){if(Qa===null){var l=Qa=[];Uu=0,Yi=Pc(),Ki={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Uu++,r.then(tp,tp),r}function tp(){if(--Uu===0&&Qa!==null){Ki!==null&&(Ki.status="fulfilled");var t=Qa;Qa=null,Yi=0,Ki=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function A_(t,r){var l=[],o={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return t.then(function(){o.status="fulfilled",o.value=r;for(var h=0;h<l.length;h++)(0,l[h])(r)},function(h){for(o.status="rejected",o.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),o}var np=P.S;P.S=function(t,r){Im=J(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&T_(t,r),np!==null&&np(t,r)};var ui=D(null);function Bu(){var t=ui.current;return t!==null?t:et.pooledCache}function xs(t,r){r===null?E(ui,ui.current):E(ui,r.pool)}function rp(){var t=Bu();return t===null?null:{parent:vt._currentValue,pool:t}}var Xi=Error(a(460)),Iu=Error(a(474)),Ss=Error(a(542)),Es={then:function(){}};function ip(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ap(t,r,l){switch(l=t[l],l===void 0?t.push(r):l!==r&&(r.then(Kn,Kn),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,sp(t),t;default:if(typeof r.status=="string")r.then(Kn,Kn);else{if(t=et,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=r,t.status="pending",t.then(function(o){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=o}},function(o){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,sp(t),t}throw fi=r,Xi}}function ci(t){try{var r=t._init;return r(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fi=l,Xi):l}}var fi=null;function lp(){if(fi===null)throw Error(a(459));var t=fi;return fi=null,t}function sp(t){if(t===Xi||t===Ss)throw Error(a(483))}var Qi=null,Ja=0;function ks(t){var r=Ja;return Ja+=1,Qi===null&&(Qi=[]),ap(Qi,t,r)}function Za(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Ts(t,r){throw r.$$typeof===_?Error(a(525)):(t=Object.prototype.toString.call(r),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function op(t){function r(L,z){if(t){var B=L.deletions;B===null?(L.deletions=[z],L.flags|=16):B.push(z)}}function l(L,z){if(!t)return null;for(;z!==null;)r(L,z),z=z.sibling;return null}function o(L){for(var z=new Map;L!==null;)L.key!==null?z.set(L.key,L):z.set(L.index,L),L=L.sibling;return z}function h(L,z){return L=Qn(L,z),L.index=0,L.sibling=null,L}function m(L,z,B){return L.index=B,t?(B=L.alternate,B!==null?(B=B.index,B<z?(L.flags|=67108866,z):B):(L.flags|=67108866,z)):(L.flags|=1048576,z)}function v(L){return t&&L.alternate===null&&(L.flags|=67108866),L}function x(L,z,B,F){return z===null||z.tag!==6?(z=Au(B,L.mode,F),z.return=L,z):(z=h(z,B),z.return=L,z)}function O(L,z,B,F){var ve=B.type;return ve===T?G(L,z,B.props.children,F,B.key):z!==null&&(z.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ue&&ci(ve)===z.type)?(z=h(z,B.props),Za(z,B),z.return=L,z):(z=vs(B.type,B.key,B.props,null,L.mode,F),Za(z,B),z.return=L,z)}function I(L,z,B,F){return z===null||z.tag!==4||z.stateNode.containerInfo!==B.containerInfo||z.stateNode.implementation!==B.implementation?(z=Cu(B,L.mode,F),z.return=L,z):(z=h(z,B.children||[]),z.return=L,z)}function G(L,z,B,F,ve){return z===null||z.tag!==7?(z=ai(B,L.mode,F,ve),z.return=L,z):(z=h(z,B),z.return=L,z)}function K(L,z,B){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Au(""+z,L.mode,B),z.return=L,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case b:return B=vs(z.type,z.key,z.props,null,L.mode,B),Za(B,z),B.return=L,B;case S:return z=Cu(z,L.mode,B),z.return=L,z;case ue:return z=ci(z),K(L,z,B)}if(te(z)||ne(z))return z=ai(z,L.mode,B,null),z.return=L,z;if(typeof z.then=="function")return K(L,ks(z),B);if(z.$$typeof===j)return K(L,ws(L,z),B);Ts(L,z)}return null}function H(L,z,B,F){var ve=z!==null?z.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ve!==null?null:x(L,z,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case b:return B.key===ve?O(L,z,B,F):null;case S:return B.key===ve?I(L,z,B,F):null;case ue:return B=ci(B),H(L,z,B,F)}if(te(B)||ne(B))return ve!==null?null:G(L,z,B,F,null);if(typeof B.then=="function")return H(L,z,ks(B),F);if(B.$$typeof===j)return H(L,z,ws(L,B),F);Ts(L,B)}return null}function $(L,z,B,F,ve){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return L=L.get(B)||null,x(z,L,""+F,ve);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return L=L.get(F.key===null?B:F.key)||null,O(z,L,F,ve);case S:return L=L.get(F.key===null?B:F.key)||null,I(z,L,F,ve);case ue:return F=ci(F),$(L,z,B,F,ve)}if(te(F)||ne(F))return L=L.get(B)||null,G(z,L,F,ve,null);if(typeof F.then=="function")return $(L,z,B,ks(F),ve);if(F.$$typeof===j)return $(L,z,B,ws(z,F),ve);Ts(z,F)}return null}function he(L,z,B,F){for(var ve=null,$e=null,pe=z,Ce=z=0,Ie=null;pe!==null&&Ce<B.length;Ce++){pe.index>
vendor: 5,771 bytes, line 9
9Ce?(Ie=pe,pe=null):Ie=pe.sibling;var Ve=H(L,pe,B[Ce],F);if(Ve===null){pe===null&&(pe=Ie);break}t&&pe&&Ve.alternate===null&&r(L,pe),z=m(Ve,z,Ce),$e===null?ve=Ve:$e.sibling=Ve,$e=Ve,pe=Ie}if(Ce===B.length)return l(L,pe),Pe&&Jn(L,Ce),ve;if(pe===null){for(;Ce<B.length;Ce++)pe=K(L,B[Ce],F),pe!==null&&(z=m(pe,z,Ce),$e===null?ve=pe:$e.sibling=pe,$e=pe);return Pe&&Jn(L,Ce),ve}for(pe=o(pe);Ce<B.length;Ce++)Ie=$(pe,L,Ce,B[Ce],F),Ie!==null&&(t&&Ie.alternate!==null&&pe.delete(Ie.key===null?Ce:Ie.key),z=m(Ie,z,Ce),$e===null?ve=Ie:$e.sibling=Ie,$e=Ie);return t&&pe.forEach(function(Gr){return r(L,Gr)}),Pe&&Jn(L,Ce),ve}function xe(L,z,B,F){if(B==null)throw Error(a(151));for(var ve=null,$e=null,pe=z,Ce=z=0,Ie=null,Ve=B.next();pe!==null&&!Ve.done;Ce++,Ve=B.next()){pe.index>Ce?(Ie=pe,pe=null):Ie=pe.sibling;var Gr=H(L,pe,Ve.value,F);if(Gr===null){pe===null&&(pe=Ie);break}t&&pe&&Gr.alternate===null&&r(L,pe),z=m(Gr,z,Ce),$e===null?ve=Gr:$e.sibling=Gr,$e=Gr,pe=Ie}if(Ve.done)return l(L,pe),Pe&&Jn(L,Ce),ve;if(pe===null){for(;!Ve.done;Ce++,Ve=B.next())Ve=K(L,Ve.value,F),Ve!==null&&(z=m(Ve,z,Ce),$e===null?ve=Ve:$e.sibling=Ve,$e=Ve);return Pe&&Jn(L,Ce),ve}for(pe=o(pe);!Ve.done;Ce++,Ve=B.next())Ve=$(pe,L,Ce,Ve.value,F),Ve!==null&&(t&&Ve.alternate!==null&&pe.delete(Ve.key===null?Ce:Ve.key),z=m(Ve,z,Ce),$e===null?ve=Ve:$e.sibling=Ve,$e=Ve);return t&&pe.forEach(function(Bw){return r(L,Bw)}),Pe&&Jn(L,Ce),ve}function We(L,z,B,F){if(typeof B=="object"&&B!==null&&B.type===T&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case b:e:{for(var ve=B.key;z!==null;){if(z.key===ve){if(ve=B.type,ve===T){if(z.tag===7){l(L,z.sibling),F=h(z,B.props.children),F.return=L,L=F;break e}}else if(z.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ue&&ci(ve)===z.type){l(L,z.sibling),F=h(z,B.props),Za(F,B),F.return=L,L=F;break e}l(L,z);break}else r(L,z);z=z.sibling}B.type===T?(F=ai(B.props.children,L.mode,F,B.key),F.return=L,L=F):(F=vs(B.type,B.key,B.props,null,L.mode,F),Za(F,B),F.return=L,L=F)}return v(L);case S:e:{for(ve=B.key;z!==null;){if(z.key===ve)if(z.tag===4&&z.stateNode.containerInfo===B.containerInfo&&z.stateNode.implementation===B.implementation){l(L,z.sibling),F=h(z,B.children||[]),F.return=L,L=F;break e}else{l(L,z);break}else r(L,z);z=z.sibling}F=Cu(B,L.mode,F),F.return=L,L=F}return v(L);case ue:return B=ci(B),We(L,z,B,F)}if(te(B))return he(L,z,B,F);if(ne(B)){if(ve=ne(B),typeof ve!="function")throw Error(a(150));return B=ve.call(B),xe(L,z,B,F)}if(typeof B.then=="function")return We(L,z,ks(B),F);if(B.$$typeof===j)return We(L,z,ws(L,B),F);Ts(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,z!==null&&z.tag===6?(l(L,z.sibling),F=h(z,B),F.return=L,L=F):(l(L,z),F=Au(B,L.mode,F),F.return=L,L=F),v(L)):l(L,z)}return function(L,z,B,F){try{Ja=0;var ve=We(L,z,B,F);return Qi=null,ve}catch(pe){if(pe===Xi||pe===Ss)throw pe;var $e=rn(29,pe,null,L.mode);return $e.lanes=F,$e.return=L,$e}}}var hi=op(!0),up=op(!1),Cr=!1;function Pu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hu(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Rr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Or(t,r,l){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Ge&2)!==0){var h=o.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),o.pending=r,r=ys(t),Fd(t,null,l),r}return gs(t,o,r,l),ys(t)}function Wa(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var o=r.lanes;o&=t.pendingLanes,l|=o,r.lanes=l,ed(t,l)}}function qu(t,r){var l=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var h=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?h=m=v:m=m.next=v,l=l.next}while(l!==null);m===null?h=m=r:m=m.next=r}else h=m=r;l={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}var $u=!1;function el(){if($u){var t=Ki;if(t!==null)throw t}}function tl(t,r,l,o){$u=!1;var h=t.updateQueue;Cr=!1;var m=h.firstBaseUpdate,v=h.lastBaseUpdate,x=h.shared.pending;if(x!==null){h.shared.pending=null;var O=x,I=O.next;O.next=null,v===null?m=I:v.next=I,v=O;var G=t.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==v&&(x===null?G.firstBaseUpdate=I:x.next=I,G.lastBaseUpdate=O))}if(m!==null){var K=h.baseState;v=0,G=I=O=null,x=m;do{var H=x.lane&-536870913,$=H!==x.lane;if($?(Be&H)===H:(o&H)===H){H!==0&&H===Yi&&($u=!0),G!==null&&(G=G.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var he=t,xe=x;H=r;var We=l;switch(xe.tag){case 1:if(he=xe.payload,typeof he=="function"){K=he.call(We,K,H);break e}K=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=xe.payload,H=typeof he=="function"?he.call(We,K,H):he,H==null)break e;K=y({},K,H);break e;case 2:Cr=!0}}H=x.callback,H!==null&&(t.flags|=64,$&&(t.flags|=8192),$=h.callbacks,$===null?h.callbacks=[H]:$.push(H))}else $={lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(I=G=$,O=K):G=G.next=$,v|=H;if(x=x.next,x===null){if(x=h.shared.pending,x===null)break;$=x,x=$.next,$.next=null,h.lastBaseUpdate=$,h.shared.pending=null}}while(!0);G===null&&(O=K),h.baseState=O,h.firstBaseUpdate=I,h.lastBaseUpdate=G,m===null&&(h.shared.lanes=0),Lr|=v,t.lanes=v,t.memoizedState=K}}function cp(t,r){if(typeof t!="function")throw Error(a(191,t));t.call(r)}function fp(t,r){var l=t.callbacks;
vendor: 7,495 bytes, line 9
9if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)cp(l[t],r)}var Ji=D(null),As=D(0);function hp(t,r){t=or,E(As,t),E(Ji,r),or=t|r.baseLanes}function Vu(){E(As,or),E(Ji,Ji.current)}function Gu(){or=As.current,V(Ji),V(As)}var an=D(null),xn=null;function jr(t){var r=t.alternate;E(mt,mt.current&1),E(an,t),xn===null&&(r===null||Ji.current!==null||r.memoizedState!==null)&&(xn=t)}function Fu(t){E(mt,mt.current),E(an,t),xn===null&&(xn=t)}function dp(t){t.tag===22?(E(mt,mt.current),E(an,t),xn===null&&(xn=t)):Dr()}function Dr(){E(mt,mt.current),E(an,an.current)}function ln(t){V(an),xn===t&&(xn=null),V(mt)}var mt=D(0);function Cs(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Zc(l)||Wc(l)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var er=0,Ae=null,Je=null,bt=null,Rs=!1,Zi=!1,di=!1,Os=0,nl=0,Wi=null,C_=0;function ct(){throw Error(a(321))}function Yu(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!nn(t[l],r[l]))return!1;return!0}function Ku(t,r,l,o,h,m){return er=m,Ae=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,P.H=t===null||t.memoizedState===null?Qp:uc,di=!1,m=l(o,h),di=!1,Zi&&(m=mp(r,l,o,h)),pp(t),m}function pp(t){P.H=al;var r=Je!==null&&Je.next!==null;if(er=0,bt=Je=Ae=null,Rs=!1,nl=0,Wi=null,r)throw Error(a(300));t===null||_t||(t=t.dependencies,t!==null&&_s(t)&&(_t=!0))}function mp(t,r,l,o){Ae=t;var h=0;do{if(Zi&&(Wi=null),nl=0,Zi=!1,25<=h)throw Error(a(301));if(h+=1,bt=Je=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}P.H=Jp,m=r(l,o)}while(Zi);return m}function R_(){var t=P.H,r=t.useState()[0];return r=typeof r.then=="function"?rl(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Ae.flags|=1024),r}function Xu(){var t=Os!==0;return Os=0,t}function Qu(t,r,l){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~l}function Ju(t){if(Rs){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Rs=!1}er=0,bt=Je=Ae=null,Zi=!1,nl=Os=0,Wi=null}function Ht(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Ae.memoizedState=bt=t:bt=bt.next=t,bt}function gt(){if(Je===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=bt===null?Ae.memoizedState:bt.next;if(r!==null)bt=r,Je=t;else{if(t===null)throw Ae.alternate===null?Error(a(467)):Error(a(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},bt===null?Ae.memoizedState=bt=t:bt=bt.next=t}return bt}function js(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rl(t){var r=nl;return nl+=1,Wi===null&&(Wi=[]),t=ap(Wi,t,r),r=Ae,(bt===null?r.memoizedState:bt.next)===null&&(r=r.alternate,P.H=r===null||r.memoizedState===null?Qp:uc),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return rl(t);if(t.$$typeof===j)return Dt(t)}throw Error(a(438,String(t)))}function Zu(t){var r=null,l=Ae.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var o=Ae.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=js(),Ae.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(t),o=0;o<t;o++)l[o]=q;return r.index++,l}function tr(t,r){return typeof r=="function"?r(t):r}function zs(t){var r=gt();return Wu(r,Je,t)}function Wu(t,r,l){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=l;var h=t.baseQueue,m=o.pending;if(m!==null){if(h!==null){var v=h.next;h.next=m.next,m.next=v}r.baseQueue=h=m,o.pending=null}if(m=t.baseState,h===null)t.memoizedState=m;else{r=h.next;var x=v=null,O=null,I=r,G=!1;do{var K=I.lane&-536870913;if(K!==I.lane?(Be&K)===K:(er&K)===K){var H=I.revertLane;if(H===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),K===Yi&&(G=!0);else if((er&H)===H){I=I.next,H===Yi&&(G=!0);continue}else K={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(x=O=K,v=m):O=O.next=K,Ae.lanes|=H,Lr|=H;K=I.action,di&&l(m,K),m=I.hasEagerState?I.eagerState:l(m,K)}else H={lane:K,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(x=O=H,v=m):O=O.next=H,Ae.lanes|=K,Lr|=K;I=I.next}while(I!==null&&I!==r);if(O===null?v=m:O.next=x,!nn(m,t.memoizedState)&&(_t=!0,G&&(l=Ki,l!==null)))throw l;t.memoizedState=m,t.baseState=v,t.baseQueue=O,o.lastRenderedState=m}return h===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function ec(t){var r=gt(),l=r.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=t;var o=l.dispatch,h=l.pending,m=r.memoizedState;if(h!==null){l.pending=null;var v=h=h.next;do m=t(m,v.action),v=v.next;while(v!==h);nn(m,r.memoizedState)||(_t=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),l.lastRenderedState=m}return[m,o]}function gp(t,r,l){var o=Ae,h=gt(),m=Pe;if(m){if(l===void 0)throw Error(a(407));l=l()}else l=r();var v=!nn((Je||h).memoizedState,l);if(v&&(h.memoizedState=l,_t=!0),h=h.queue,rc(bp.bind(null,o,h,t),[t]),h.getSnapshot!==r||v||bt!==null&&bt.memoizedState.tag&1){if(o.flags|=2048,ea(9,{destroy:void 0},vp.bind(null,o,h,l,r),null),et===null)throw Error(a(349));m||(er&127)!==0||yp(o,r,l)}return l}function yp(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Ae.updateQueue,r===null?(r=js(),Ae.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function vp(t,r,l,o){r.value=l,r.getSnapshot=o,_p(r)&&wp(t)}function bp(t,r,l){return l(function(){_p(r)&&wp(t)})}function _p(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!nn(t,l)}catch{return!0}}function wp(t){var r=ii(t,2);r!==null&&Jt(r,t,2)}function tc(t){var r=Ht();if(typeof t=="function"){var l=t;if(t=l(),di){pt(!0);try{l()}finally{pt(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:t},r}function xp(t,r,l,o){return t.baseState=l,Wu(t,Je,typeof o=="function"?o:tr)}function O_(t,r,l,o,h){if(Ms(t))throw Error(a(485));if(t=r.action,t!==null){var m={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};P.T!==null?l(!0):m.isTransition=!1,o(m),l=r.pending,l===null?(m.next=r.pending=m,Sp(r,m)):(m.next=l.next,r.pending=l.next=m)}}function Sp(t,r){var l=r.action,o=r.payload,h=t.state;if(r.isTransition){var m=P.T,v={};P.T=v;try{var x=l(h,o),O=P.S;O!==null&&O(v,x),Ep(t,r,x)}catch(I){nc(t,r,I)}finally{m!==null&&v.types!==null&&(m.types=v.types),P.T=m}}else try{m=l(h,o),Ep(t,r,m)}catch(I){nc(t,r,I)}}function Ep(t,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){kp(t,r,o)},function(o){return nc(t,r,o)}):kp(t,r,l)}function kp(t,r,l){r.status="fulfilled",r.value=l,Tp(r),t.state=l,r=t.pen
vendor: 5,661 bytes, line 9
9ding,r!==null&&(l=r.next,l===r?t.pending=null:(l=l.next,r.next=l,Sp(t,l)))}function nc(t,r,l){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=l,Tp(r),r=r.next;while(r!==o)}t.action=null}function Tp(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Ap(t,r){return r}function Cp(t,r){if(Pe){var l=et.formState;if(l!==null){e:{var o=Ae;if(Pe){if(it){t:{for(var h=it,m=wn;h.nodeType!==8;){if(!m){h=null;break t}if(h=Sn(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){it=Sn(h.nextSibling),o=h.data==="F!";break e}}Tr(o)}o=!1}o&&(r=l[0])}}return l=Ht(),l.memoizedState=l.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ap,lastRenderedState:r},l.queue=o,l=Yp.bind(null,Ae,o),o.dispatch=l,o=tc(!1),m=oc.bind(null,Ae,!1,o.queue),o=Ht(),h={state:r,dispatch:null,action:t,pending:null},o.queue=h,l=O_.bind(null,Ae,h,m,l),h.dispatch=l,o.memoizedState=t,[r,l,!1]}function Rp(t){var r=gt();return Op(r,Je,t)}function Op(t,r,l){if(r=Wu(t,r,Ap)[0],t=zs(tr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=rl(r)}catch(v){throw v===Xi?Ss:v}else o=r;r=gt();var h=r.queue,m=h.dispatch;return l!==r.memoizedState&&(Ae.flags|=2048,ea(9,{destroy:void 0},j_.bind(null,h,l),null)),[o,m,t]}function j_(t,r){t.action=r}function jp(t){var r=gt(),l=Je;if(l!==null)return Op(r,l,t);gt(),r=r.memoizedState,l=gt();var o=l.queue.dispatch;return l.memoizedState=t,[r,o,!1]}function ea(t,r,l,o){return t={tag:t,create:l,deps:o,inst:r,next:null},r=Ae.updateQueue,r===null&&(r=js(),Ae.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=t.next=t:(o=l.next,l.next=t,t.next=o,r.lastEffect=t),t}function Dp(){return gt().memoizedState}function Ns(t,r,l,o){var h=Ht();Ae.flags|=t,h.memoizedState=ea(1|r,{destroy:void 0},l,o===void 0?null:o)}function Ls(t,r,l,o){var h=gt();o=o===void 0?null:o;var m=h.memoizedState.inst;Je!==null&&o!==null&&Yu(o,Je.memoizedState.deps)?h.memoizedState=ea(r,m,l,o):(Ae.flags|=t,h.memoizedState=ea(1|r,m,l,o))}function zp(t,r){Ns(8390656,8,t,r)}function rc(t,r){Ls(2048,8,t,r)}function D_(t){Ae.flags|=4;var r=Ae.updateQueue;if(r===null)r=js(),Ae.updateQueue=r,r.events=[t];else{var l=r.events;l===null?r.events=[t]:l.push(t)}}function Np(t){var r=gt().memoizedState;return D_({ref:r,nextImpl:t}),function(){if((Ge&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function Lp(t,r){return Ls(4,2,t,r)}function Mp(t,r){return Ls(4,4,t,r)}function Up(t,r){if(typeof r=="function"){t=t();var l=r(t);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Bp(t,r,l){l=l!=null?l.concat([t]):null,Ls(4,4,Up.bind(null,r,t),l)}function ic(){}function Ip(t,r){var l=gt();r=r===void 0?null:r;var o=l.memoizedState;return r!==null&&Yu(r,o[1])?o[0]:(l.memoizedState=[t,r],t)}function Pp(t,r){var l=gt();r=r===void 0?null:r;var o=l.memoizedState;if(r!==null&&Yu(r,o[1]))return o[0];if(o=t(),di){pt(!0);try{t()}finally{pt(!1)}}return l.memoizedState=[o,r],o}function ac(t,r,l){return l===void 0||(er&1073741824)!==0&&(Be&261930)===0?t.memoizedState=r:(t.memoizedState=l,t=Hm(),Ae.lanes|=t,Lr|=t,l)}function Hp(t,r,l,o){return nn(l,r)?l:Ji.current!==null?(t=ac(t,l,o),nn(t,r)||(_t=!0),t):(er&42)===0||(er&1073741824)!==0&&(Be&261930)===0?(_t=!0,t.memoizedState=l):(t=Hm(),Ae.lanes|=t,Lr|=t,r)}function qp(t,r,l,o,h){var m=ee.p;ee.p=m!==0&&8>m?m:8;var v=P.T,x={};P.T=x,oc(t,!1,r,l);try{var O=h(),I=P.S;if(I!==null&&I(x,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var G=A_(O,o);il(t,r,G,un(t))}else il(t,r,o,un(t))}catch(K){il(t,r,{then:function(){},status:"rejected",reason:K},un())}finally{ee.p=m,v!==null&&x.types!==null&&(v.types=x.types),P.T=v}}function z_(){}function lc(t,r,l,o){if(t.tag!==5)throw Error(a(476));var h=$p(t).queue;qp(t,h,r,ce,l===null?z_:function(){return Vp(t),l(o)})}function $p(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:ce},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:l},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Vp(t){var r=$p(t);r.next===null&&(r=t.alternate.memoizedState),il(t,r.next.queue,{},un())}function sc(){return Dt(wl)}function Gp(){return gt().memoizedState}function Fp(){return gt().memoizedState}function N_(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var l=un();t=Rr(l);var o=Or(r,t,l);o!==null&&(Jt(o,r,l),Wa(o,r,l)),r={cache:Mu()},t.payload=r;return}r=r.return}}function L_(t,r,l){var o=un();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ms(t)?Kp(r,l):(l=ku(t,r,l,o),l!==null&&(Jt(l,t,o),Xp(l,r,o)))}function Yp(t,r,l){var o=un();il(t,r,l,o)}function il(t,r,l,o){var h={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ms(t))Kp(r,h);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var v=r.lastRenderedState,x=m(v,l);if(h.hasEagerState=!0,h.eagerState=x,nn(x,v))return gs(t,r,h,0),et===null&&ms(),!1}catch{}if(l=ku(t,r,h,o),l!==null)return Jt(l,t,o),Xp(l,r,o),!0}return!1}function oc(t,r,l,o){if(o={lane:2,revertLane:Pc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ms(t)){if(r)throw Error(a(479))}else r=ku(t,l,o,2),r!==null&&Jt(r,t,2)}function Ms(t){var r=t.alternate;return t===Ae||r!==null&&r===Ae}function Kp(t,r){Zi=Rs=!0;var l=t.pending;
vendor: 4,837 bytes, line 9
9l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Xp(t,r,l){if((l&4194048)!==0){var o=r.lanes;o&=t.pendingLanes,l|=o,r.lanes=l,ed(t,l)}}var al={readContext:Dt,use:Ds,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};al.useEffectEvent=ct;var Qp={readContext:Dt,use:Ds,useCallback:function(t,r){return Ht().memoizedState=[t,r===void 0?null:r],t},useContext:Dt,useEffect:zp,useImperativeHandle:function(t,r,l){l=l!=null?l.concat([t]):null,Ns(4194308,4,Up.bind(null,r,t),l)},useLayoutEffect:function(t,r){return Ns(4194308,4,t,r)},useInsertionEffect:function(t,r){Ns(4,2,t,r)},useMemo:function(t,r){var l=Ht();r=r===void 0?null:r;var o=t();if(di){pt(!0);try{t()}finally{pt(!1)}}return l.memoizedState=[o,r],o},useReducer:function(t,r,l){var o=Ht();if(l!==void 0){var h=l(r);if(di){pt(!0);try{l(r)}finally{pt(!1)}}}else h=r;return o.memoizedState=o.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},o.queue=t,t=t.dispatch=L_.bind(null,Ae,t),[o.memoizedState,t]},useRef:function(t){var r=Ht();return t={current:t},r.memoizedState=t},useState:function(t){t=tc(t);var r=t.queue,l=Yp.bind(null,Ae,r);return r.dispatch=l,[t.memoizedState,l]},useDebugValue:ic,useDeferredValue:function(t,r){var l=Ht();return ac(l,t,r)},useTransition:function(){var t=tc(!1);return t=qp.bind(null,Ae,t.queue,!0,!1),Ht().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,l){var o=Ae,h=Ht();if(Pe){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),et===null)throw Error(a(349));(Be&127)!==0||yp(o,r,l)}h.memoizedState=l;var m={value:l,getSnapshot:r};return h.queue=m,zp(bp.bind(null,o,m,t),[t]),o.flags|=2048,ea(9,{destroy:void 0},vp.bind(null,o,m,l,r),null),l},useId:function(){var t=Ht(),r=et.identifierPrefix;if(Pe){var l=Pn,o=In;l=(o&~(1<<32-De(o)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Os++,0<l&&(r+="H"+l.toString(32)),r+="_"}else l=C_++,r="_"+r+"r_"+l.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:sc,useFormState:Cp,useActionState:Cp,useOptimistic:function(t){var r=Ht();r.memoizedState=r.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=oc.bind(null,Ae,!0,l),l.dispatch=r,[t,r]},useMemoCache:Zu,useCacheRefresh:function(){return Ht().memoizedState=N_.bind(null,Ae)},useEffectEvent:function(t){var r=Ht(),l={impl:t};return r.memoizedState=l,function(){if((Ge&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},uc={readContext:Dt,use:Ds,useCallback:Ip,useContext:Dt,useEffect:rc,useImperativeHandle:Bp,useInsertionEffect:Lp,useLayoutEffect:Mp,useMemo:Pp,useReducer:zs,useRef:Dp,useState:function(){return zs(tr)},useDebugValue:ic,useDeferredValue:function(t,r){var l=gt();return Hp(l,Je.memoizedState,t,r)},useTransition:function(){var t=zs(tr)[0],r=gt().memoizedState;return[typeof t=="boolean"?t:rl(t),r]},useSyncExternalStore:gp,useId:Gp,useHostTransitionStatus:sc,useFormState:Rp,useActionState:Rp,useOptimistic:function(t,r){var l=gt();return xp(l,Je,t,r)},useMemoCache:Zu,useCacheRefresh:Fp};uc.useEffectEvent=Np;var Jp={readContext:Dt,use:Ds,useCallback:Ip,useContext:Dt,useEffect:rc,useImperativeHandle:Bp,useInsertionEffect:Lp,useLayoutEffect:Mp,useMemo:Pp,useReducer:ec,useRef:Dp,useState:function(){return ec(tr)},useDebugValue:ic,useDeferredValue:function(t,r){var l=gt();return Je===null?ac(l,t,r):Hp(l,Je.memoizedState,t,r)},useTransition:function(){var t=ec(tr)[0],r=gt().memoizedState;return[typeof t=="boolean"?t:rl(t),r]},useSyncExternalStore:gp,useId:Gp,useHostTransitionStatus:sc,useFormState:jp,useActionState:jp,useOptimistic:function(t,r){var l=gt();return Je!==null?xp(l,Je,t,r):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Zu,useCacheRefresh:Fp};Jp.useEffectEvent=Np;function cc(t,r,l,o){r=t.memoizedState,l=l(o,r),l=l==null?r:y({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var fc={enqueueSetState:function(t,r,l){t=t._reactInternals;var o=un(),h=Rr(o);h.payload=r,l!=null&&(h.callback=l),r=Or(t,h,o),r!==null&&(Jt(r,t,o),Wa(r,t,o))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var o=un(),h=Rr(o);h.tag=1,h.payload=r,l!=null&&(h.callback=l),r=Or(t,h,o),r!==null&&(Jt(r,t,o),Wa(r,t,o))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=un(),o=Rr(l);o.tag=2,r!=null&&(o.callback=r),r=Or(t,o,l),r!==null&&(Jt(r,t,l),Wa(r,t,l))}};function Zp(t,r,l,o,h,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,v):r.prototype&&r.prototype.isPureReactComponent?!Ga(l,o)||
vendor: 12,819 bytes, line 9
9!Ga(h,m):!0}function Wp(t,r,l,o){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,o),r.state!==t&&fc.enqueueReplaceState(r,r.state,null)}function pi(t,r){var l=r;if("ref"in r){l={};for(var o in r)o!=="ref"&&(l[o]=r[o])}if(t=t.defaultProps){l===r&&(l=y({},l));for(var h in t)l[h]===void 0&&(l[h]=t[h])}return l}function em(t){ps(t)}function tm(t){console.error(t)}function nm(t){ps(t)}function Us(t,r){try{var l=t.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function rm(t,r,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function hc(t,r,l){return l=Rr(l),l.tag=3,l.payload={element:null},l.callback=function(){Us(t,r)},l}function im(t){return t=Rr(t),t.tag=3,t}function am(t,r,l,o){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var m=o.value;t.payload=function(){return h(m)},t.callback=function(){rm(r,l,o)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){rm(r,l,o),typeof h!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})})}function M_(t,r,l,o,h){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=l.alternate,r!==null&&Fi(r,l,h,!0),l=an.current,l!==null){switch(l.tag){case 31:case 13:return xn===null?Xs():l.alternate===null&&ft===0&&(ft=3),l.flags&=-257,l.flags|=65536,l.lanes=h,o===Es?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([o]):r.add(o),Uc(t,o,h)),!1;case 22:return l.flags|=65536,o===Es?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([o]):l.add(o)),Uc(t,o,h)),!1}throw Error(a(435,l.tag))}return Uc(t,o,h),Xs(),!1}if(Pe)return r=an.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,o!==ju&&(t=Error(a(422),{cause:o}),Ka(vn(t,l)))):(o!==ju&&(r=Error(a(423),{cause:o}),Ka(vn(r,l))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,o=vn(o,l),h=hc(t.stateNode,o,h),qu(t,h),ft!==4&&(ft=2)),!1;var m=Error(a(520),{cause:o});if(m=vn(m,l),dl===null?dl=[m]:dl.push(m),ft!==4&&(ft=2),r===null)return!0;o=vn(o,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,t=h&-h,l.lanes|=t,t=hc(l.stateNode,o,t),qu(l,t),!1;case 1:if(r=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Mr===null||!Mr.has(m))))return l.flags|=65536,h&=-h,l.lanes|=h,h=im(h),am(h,t,l,o),qu(l,h),!1}l=l.return}while(l!==null);return!1}var dc=Error(a(461)),_t=!1;function zt(t,r,l,o){r.child=t===null?up(r,null,l,o):hi(r,t.child,l,o)}function lm(t,r,l,o,h){l=l.render;var m=r.ref;if("ref"in o){var v={};for(var x in o)x!=="ref"&&(v[x]=o[x])}else v=o;return oi(r),o=Ku(t,r,l,v,m,h),x=Xu(),t!==null&&!_t?(Qu(t,r,h),nr(t,r,h)):(Pe&&x&&Ru(r),r.flags|=1,zt(t,r,o,h),r.child)}function sm(t,r,l,o,h){if(t===null){var m=l.type;return typeof m=="function"&&!Tu(m)&&m.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=m,om(t,r,m,o,h)):(t=vs(l.type,null,o,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!wc(t,h)){var v=m.memoizedProps;if(l=l.compare,l=l!==null?l:Ga,l(v,o)&&t.ref===r.ref)return nr(t,r,h)}return r.flags|=1,t=Qn(m,o),t.ref=r.ref,t.return=r,r.child=t}function om(t,r,l,o,h){if(t!==null){var m=t.memoizedProps;if(Ga(m,o)&&t.ref===r.ref)if(_t=!1,r.pendingProps=o=m,wc(t,h))(t.flags&131072)!==0&&(_t=!0);else return r.lanes=t.lanes,nr(t,r,h)}return pc(t,r,l,o,h)}function um(t,r,l,o){var h=o.children,m=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,t!==null){for(o=r.child=t.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~m}else o=0,r.child=null;return cm(t,r,m,l,o)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&xs(r,m!==null?m.cachePool:null),m!==null?hp(r,m):Vu(),dp(r);else return o=r.lanes=536870912,cm(t,r,m!==null?m.baseLanes|l:l,l,o)}else m!==null?(xs(r,m.cachePool),hp(r,m),Dr(),r.memoizedState=null):(t!==null&&xs(r,null),Vu(),Dr());return zt(t,r,h,l),r.child}function ll(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function cm(t,r,l,o,h){var m=Bu();return m=m===null?null:{parent:vt._currentValue,pool:m},r.memoizedState={baseLanes:l,cachePool:m},t!==null&&xs(r,null),Vu(),dp(r),t!==null&&Fi(t,r,o,!0),r.childLanes=h,null}function Bs(t,r){return r=Ps({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function fm(t,r,l){return hi(r,t.child,null,l),t=Bs(r,r.pendingProps),t.flags|=2,ln(r),r.memoizedState=null,t}function U_(t,r,l){var o=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(Pe){if(o.mode==="hidden")return t=Bs(r,o),r.lanes=536870912,ll(null,t);if(Fu(r),(t=it)?(t=Sg(t,wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Er!==null?{id:In,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=Kd(t),l.return=r,r.child=l,jt=r,it=null)):t=null,t===null)throw Tr(r);return r.lanes=536870912,null}return Bs(r,o)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(Fu(r),h)if(r.flags&256)r.flags&=-257,r=fm(t,r,l);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(a(558));else if(_t||Fi(t,r,l,!1),h=(l&t.childLanes)!==0,_t||h){if(o=et,o!==null&&(v=td(o,l),v!==0&&v!==m.retryLane))throw m.retryLane=v,ii(t,v),Jt(o,t,v),dc;Xs(),r=fm(t,r,l)}else t=m.treeContext,it=Sn(v.nextSibling),jt=r,Pe=!0,kr=null,wn=!1,t!==null&&Jd(r,t),r=Bs(r,o),r.flags|=4096;return r}return t=Qn(t.child,{mode:o.mode,children:o.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Is(t,r){var l=r.ref;if(l===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(t===null||t.ref!==l)&&(r.flags|=4194816)}}function pc(t,r,l,o,h){return oi(r),l=Ku(t,r,l,o,void 0,h),o=Xu(),t!==null&&!_t?(Qu(t,r,h),nr(t,r,h)):(Pe&&o&&Ru(r),r.flags|=1,zt(t,r,l,h),r.child)}function hm(t,r,l,o,h,m){return oi(r),r.updateQueue=null,l=mp(r,o,l,h),pp(t),o=Xu(),t!==null&&!_t?(Qu(t,r,m),nr(t,r,m)):(Pe&&o&&Ru(r),r.flags|=1,zt(t,r,l,m),r.child)}function dm(t,r,l,o,h){if(oi(r),r.stateNode===null){var m=qi,v=l.contextType;typeof v=="object"&&v!==null&&(m=Dt(v)),m=new l(o,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=fc,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=o,m.state=r.memoizedState,m.refs={},Pu(r),v=l.contextType,m.context=typeof v=="object"&&v!==null?Dt(v):qi,m.state=r.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(cc(r,l,v,o),m.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&fc.enqueueReplaceState(m,m.state,null),tl(r,o,m,h),el(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(t===null){m=r.stateNode;var x=r.memoizedProps,O=pi(l,x);m.props=O;var I=m.context,G=l.contextType;v=qi,typeof G=="object"&&G!==null&&(v=Dt(G));var K=l.getDerivedStateFromProps;G=typeof K=="function"||typeof m.getSnapshotBeforeUpdate=="function",x=r.pendingProps!==x,G||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x||I!==v)&&Wp(r,m,o,v),Cr=!1;var H=r.memoizedState;m.state=H,tl(r,o,m,h),el(),I=r.memoizedState,x||H!==I||Cr?(typeof K=="function"&&(cc(r,l,K,o),I=r.memoizedState),(O=Cr||Zp(r,l,O,o,H,I,v))?(G||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=I),m.props=o,m.state=I,m.context=v,o=O):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{m=r.stateNode,Hu(t,r),v=r.memoizedProps,G=pi(l,v),m.props=G,K=r.pendingProps,H=m.context,I=l.contextType,O=qi,typeof I=="object"&&I!==null&&(O=Dt(I)),x=l.getDerivedStateFromProps,(I=typeof x=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==K||H!==O)&&Wp(r,m,o,O),Cr=!1,H=r.memoizedState,m.state=H,tl(r,o,m,h),el();var $=r.memoizedState;v!==K||H!==$||Cr||t!==null&&t.dependencies!==null&&_s(t.dependencies)?(typeof x=="function"&&(cc(r,l,x,o),$=r.memoizedState),(G=Cr||Zp(r,l,G,o,H,$,O)||t!==null&&t.dependencies!==null&&_s(t.dependencies))?(I||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,$,O),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,$,O)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&H===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&H===t.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=$),m.props=o,m.state=$,m.context=O,o=G):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&H===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&H===t.memoizedState||(r.flags|=1024),o=!1)}return m=o,Is(t,r),o=(r.flags&128)!==0,m||o?(m=r.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&o?(r.child=hi(r,t.child,null,h),r.child=hi(r,null,l,h)):zt(t,r,l,h),r.memoizedState=m.state,t=r.child):t=nr(t,r,h),t}function pm(t,r,l,o){return li(),r.flags|=256,zt(t,r,l,o),r.child}var mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(t){return{baseLanes:t,cachePool:rp()}}function yc(t,r,l){return t=t!==null?t.childLanes&~l:0,r&&(t|=on),t}function mm(t,r,l){var o=r.pendingProps,h=!1,m=(r.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(mt.current&2)!==0),v&&(h=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,t===null){if(Pe){if(h?jr(r):Dr(),(t=it)?(t=Sg(t,wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Er!==null?{id:In,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=Kd(t),l.return=r,r.child=l,jt=r,it=null)):t=null,t===null)throw Tr(r);return Wc(t)?r.lanes=32:r.lanes=536870912,null}var x=o.children;return o=o.fallback,h?(Dr(),h=r.mode,x=Ps({mode:"hidden",children:x},h),o=ai(o,h,l,null),x.return=r,o.return=r,x.sibling=o,r.child=x,o=r.child,o.memoizedState=gc(l),o.childLanes=yc(t,v,l),r.memoizedState=mc,ll(null,o)):(jr(r),vc(r,x))}var O=t.memoizedState;if(O!==null&&(x=O.dehydrated,x!==null)){if(m)r.flags&256?(jr(r),r.flags&=-257,r=bc(t,r,l)):r.memoizedState!==null?(Dr(),r.child=t.child,r.flags|=128,r=null):(Dr(),x=o.fallback,h=r.mode,o=Ps({mode:"visible",children:o.children},h),x=ai(x,h,l,null),x.flags|=2,o.return=r,x.return=r,o.sibling=x,r.child=o,hi(r,t.child,null,l),o=r.child,o.memoizedState=gc(l),o.childLanes=yc(t,v,l),r.memoizedState=mc,r=ll(null,o));else if(jr(r),Wc(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var I=v.dgst;v=I,o=Error(a(419)),o.stack="",o.digest=v,Ka({value:o,source:null,stack:null}),r=bc(t,r,l)}else if(_t||Fi(t,r,l,!1),v=(l&t.childLanes)!==0,_t||v){if(v=et,v!==null&&(o=td(v,l),o!==0&&o!==O.retryLane))throw O.retryLane=o,ii(t,o),Jt(v,t,o),dc;Zc(x)||Xs(),r=bc(t,r,l)}else Zc(x)?(r.flags|=192,r.child=t.child,r=null):(t=O.treeContext,it=Sn(x.nextSibling),jt=r,Pe=!0,kr=null,wn=!1,t!==null&&Jd(r,t),r=vc(r,o.children),r.flags|=4096);return r}return h?(Dr(),x=o.fallback,h=r.mode,O=t.child,I=O.sibling,o=Qn(O,{mode:"hidden",children:o.children}),o.subtreeFlags=O.subtreeFlags&65011712,I!==null?x=Qn(I,x):(x=ai(x,h,l,null),x.flags|=2),x.return=r,o.return=r,o.sibling=x,r.child=o,ll(null,o),o=r.child,x=t.child.memoizedState,x===null?x=gc(l):(h=x.cachePool,h!==null?(O=vt._currentValue,h=h.parent!==O?{parent:O,pool:O}
vendor: 5,540 bytes, line 9
9:h):h=rp(),x={baseLanes:x.baseLanes|l,cachePool:h}),o.memoizedState=x,o.childLanes=yc(t,v,l),r.memoizedState=mc,ll(t.child,o)):(jr(r),l=t.child,t=l.sibling,l=Qn(l,{mode:"visible",children:o.children}),l.return=r,l.sibling=null,t!==null&&(v=r.deletions,v===null?(r.deletions=[t],r.flags|=16):v.push(t)),r.child=l,r.memoizedState=null,l)}function vc(t,r){return r=Ps({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Ps(t,r){return t=rn(22,t,null,r),t.lanes=0,t}function bc(t,r,l){return hi(r,t.child,null,l),t=vc(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function gm(t,r,l){t.lanes|=r;var o=t.alternate;o!==null&&(o.lanes|=r),Nu(t.return,r,l)}function _c(t,r,l,o,h,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:h,treeForkCount:m}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=l,v.tailMode=h,v.treeForkCount=m)}function ym(t,r,l){var o=r.pendingProps,h=o.revealOrder,m=o.tail;o=o.children;var v=mt.current,x=(v&2)!==0;if(x?(v=v&1|2,r.flags|=128):v&=1,E(mt,v),zt(t,r,o,l),o=Pe?Ya:0,!x&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gm(t,l,r);else if(t.tag===19)gm(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(h){case"forwards":for(l=r.child,h=null;l!==null;)t=l.alternate,t!==null&&Cs(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=r.child,r.child=null):(h=l.sibling,l.sibling=null),_c(r,!1,h,l,m,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&Cs(t)===null){r.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}_c(r,!0,l,null,m,o);break;case"together":_c(r,!1,null,null,void 0,o);break;default:r.memoizedState=null}return r.child}function nr(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),Lr|=r.lanes,(l&r.childLanes)===0)if(t!==null){if(Fi(t,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(a(153));if(r.child!==null){for(t=r.child,l=Qn(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=Qn(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function wc(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&_s(t)))}function B_(t,r,l){switch(r.tag){case 3:Fe(r,r.stateNode.containerInfo),Ar(r,vt,t.memoizedState.cache),li();break;case 27:case 5:$t(r);break;case 4:Fe(r,r.stateNode.containerInfo);break;case 10:Ar(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Fu(r),null;break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(jr(r),r.flags|=128,null):(l&r.child.childLanes)!==0?mm(t,r,l):(jr(r),t=nr(t,r,l),t!==null?t.sibling:null);jr(r);break;case 19:var h=(t.flags&128)!==0;if(o=(l&r.childLanes)!==0,o||(Fi(t,r,l,!1),o=(l&r.childLanes)!==0),h){if(o)return ym(t,r,l);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),E(mt,mt.current),o)break;return null;case 22:return r.lanes=0,um(t,r,l,r.pendingProps);case 24:Ar(r,vt,t.memoizedState.cache)}return nr(t,r,l)}function vm(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps)_t=!0;else{if(!wc(t,l)&&(r.flags&128)===0)return _t=!1,B_(t,r,l);_t=(t.flags&131072)!==0}else _t=!1,Pe&&(r.flags&1048576)!==0&&Qd(r,Ya,r.index);switch(r.lanes=0,r.tag){case 16:e:{var o=r.pendingProps;if(t=ci(r.elementType),r.type=t,typeof t=="function")Tu(t)?(o=pi(t,o),r.tag=1,r=dm(null,r,t,o,l)):(r.tag=0,r=pc(null,r,t,o,l));else{if(t!=null){var h=t.$$typeof;if(h===X){r.tag=11,r=lm(null,r,t,o,l);break e}else if(h===Z){r.tag=14,r=sm(null,r,t,o,l);break e}}throw r=oe(t)||t,Error(a(306,r,""))}}return r;case 0:return pc(t,r,r.type,r.pendingProps,l);case 1:return o=r.type,h=pi(o,r.pendingProps),dm(t,r,o,h,l);case 3:e:{if(Fe(r,r.stateNode.containerInfo),t===null)throw Error(a(387));o=r.pendingProps;var m=r.memoizedState;h=m.element,Hu(t,r),tl(r,o,null,l);var v=r.memoizedState;if(o=v.cache,Ar(r,vt,o),o!==m.cache&&Lu(r,[vt],l,!0),el(),o=v.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=pm(t,r,o,l);break e}else if(o!==h){h=vn(Error(a(424)),r),Ka(h),r=pm(t,r,o,l);break e}else for(t=r.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,it=Sn(t.firstChild),jt=r,Pe=!0,kr=null,wn=!0,l=up(r,null,o,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(li(),o===h){r=nr(t,r,l);break e}zt(t,r,o,l)}r=r.child}return r;case 26:return Is(t,r),t===null?(l=Rg(r.type,null,r.pendingProps,null))?r.memoizedState=l:Pe||(l=r.type,t=r.pendingProps,o=no(me.current).createElement(l),o[Ot]=r,o[Gt]=t,Nt(o,l,t),At(o),r.stateNode=o):r.memoizedState=Rg(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return $t(r),t===null&&Pe&&(o=r.stateNode=Tg(r.type,r.pendingProps,me.current),jt=r,wn=!0,h=it,Pr(r.type)?(ef=h,it=Sn(o.firstChild)):it=h),zt(t,r,r.pendingProps.children,l),Is(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Pe&&((h=o=it)&&(o=pw(o,r.type,r.pendingProps,wn),o!==null?(r.stateNode=o,jt=r,it=Sn(o.firstChild),wn=!1,h=!0):h=!1),h||Tr(r)),$t(r),h=r.type,m=r.pendingProps,v=t!==null?t.memoizedProps:null,o=m.children,Xc(h,m)?o=null:v!==null&&Xc(h,v)&&(r.flags|=32),r.memoizedState!==null&&(h=Ku(t,r,R_,null,null,l),wl._
vendor: 4,232 bytes, line 9
9currentValue=h),Is(t,r),zt(t,r,o,l),r.child;case 6:return t===null&&Pe&&((t=l=it)&&(l=mw(l,r.pendingProps,wn),l!==null?(r.stateNode=l,jt=r,it=null,t=!0):t=!1),t||Tr(r)),null;case 13:return mm(t,r,l);case 4:return Fe(r,r.stateNode.containerInfo),o=r.pendingProps,t===null?r.child=hi(r,null,o,l):zt(t,r,o,l),r.child;case 11:return lm(t,r,r.type,r.pendingProps,l);case 7:return zt(t,r,r.pendingProps,l),r.child;case 8:return zt(t,r,r.pendingProps.children,l),r.child;case 12:return zt(t,r,r.pendingProps.children,l),r.child;case 10:return o=r.pendingProps,Ar(r,r.type,o.value),zt(t,r,o.children,l),r.child;case 9:return h=r.type._context,o=r.pendingProps.children,oi(r),h=Dt(h),o=o(h),r.flags|=1,zt(t,r,o,l),r.child;case 14:return sm(t,r,r.type,r.pendingProps,l);case 15:return om(t,r,r.type,r.pendingProps,l);case 19:return ym(t,r,l);case 31:return U_(t,r,l);case 22:return um(t,r,l,r.pendingProps);case 24:return oi(r),o=Dt(vt),t===null?(h=Bu(),h===null&&(h=et,m=Mu(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=l),h=m),r.memoizedState={parent:o,cache:h},Pu(r),Ar(r,vt,h)):((t.lanes&l)!==0&&(Hu(t,r),tl(r,null,null,l),el()),h=t.memoizedState,m=r.memoizedState,h.parent!==o?(h={parent:o,cache:o},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),Ar(r,vt,o)):(o=m.cache,Ar(r,vt,o),o!==h.cache&&Lu(r,[vt],l,!0))),zt(t,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function rr(t){t.flags|=4}function xc(t,r,l,o,h){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(Gm())t.flags|=8192;else throw fi=Es,Iu}else t.flags&=-16777217}function bm(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ng(r))if(Gm())t.flags|=8192;else throw fi=Es,Iu}function Hs(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?st():536870912,t.lanes|=r,ia|=r)}function sl(t,r){if(!Pe)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function at(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(r)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=o,t.childLanes=l,r}function I_(t,r,l){var o=r.pendingProps;switch(Ou(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(r),null;case 1:return at(r),null;case 3:return l=r.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Wn(vt),Ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Gi(r)?rr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Du())),at(r),null;case 26:var h=r.type,m=r.memoizedState;return t===null?(rr(r),m!==null?(at(r),bm(r,m)):(at(r),xc(r,h,null,o,l))):m?m!==t.memoizedState?(rr(r),at(r),bm(r,m)):(at(r),r.flags&=-16777217):(t=t.memoizedProps,t!==o&&rr(r),at(r),xc(r,h,t,o,l)),null;case 27:if(Rn(r),l=me.current,h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&rr(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return at(r),null}t=le.current,Gi(r)?Zd(r):(t=Tg(h,o,l),r.stateNode=t,rr(r))}return at(r),null;case 5:if(Rn(r),h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&rr(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return at(r),null}if(m=le.current,Gi(r))Zd(r);else{var v=no(me.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;
vendor: 27,178 bytes, line 9
9case"select":m=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?v.createElement(h,{is:o.is}):v.createElement(h)}}m[Ot]=r,m[Gt]=o;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=m;e:switch(Nt(m,h,o),h){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&rr(r)}}return at(r),xc(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,l),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==o&&rr(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(a(166));if(t=me.current,Gi(r)){if(t=r.stateNode,l=r.memoizedProps,o=null,h=jt,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}t[Ot]=r,t=!!(t.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||mg(t.nodeValue,l)),t||Tr(r,!0)}else t=no(t).createTextNode(o),t[Ot]=r,r.stateNode=t}return at(r),null;case 31:if(l=r.memoizedState,t===null||t.memoizedState!==null){if(o=Gi(r),l!==null){if(t===null){if(!o)throw Error(a(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[Ot]=r}else li(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;at(r),t=!1}else l=Du(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return r.flags&256?(ln(r),r):(ln(r),null);if((r.flags&128)!==0)throw Error(a(558))}return at(r),null;case 13:if(o=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Gi(r),o!==null&&o.dehydrated!==null){if(t===null){if(!h)throw Error(a(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[Ot]=r}else li(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;at(r),h=!1}else h=Du(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(ln(r),r):(ln(r),null)}return ln(r),(r.flags&128)!==0?(r.lanes=l,r):(l=o!==null,t=t!==null&&t.memoizedState!==null,l&&(o=r.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==h&&(o.flags|=2048)),l!==t&&l&&(r.child.flags|=8192),Hs(r,r.updateQueue),at(r),null);case 4:return Ye(),t===null&&Vc(r.stateNode.containerInfo),at(r),null;case 10:return Wn(r.type),at(r),null;case 19:if(V(mt),o=r.memoizedState,o===null)return at(r),null;if(h=(r.flags&128)!==0,m=o.rendering,m===null)if(h)sl(o,!1);else{if(ft!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Cs(t),m!==null){for(r.flags|=128,sl(o,!1),t=m.updateQueue,r.updateQueue=t,Hs(r,t),r.subtreeFlags=0,t=l,l=r.child;l!==null;)Yd(l,t),l=l.sibling;return E(mt,mt.current&1|2),Pe&&Jn(r,o.treeForkCount),r.child}t=t.sibling}o.tail!==null&&J()>Fs&&(r.flags|=128,h=!0,sl(o,!1),r.lanes=4194304)}else{if(!h)if(t=Cs(m),t!==null){if(r.flags|=128,h=!0,t=t.updateQueue,r.updateQueue=t,Hs(r,t),sl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!Pe)return at(r),null}else 2*J()-o.renderingStartTime>Fs&&l!==536870912&&(r.flags|=128,h=!0,sl(o,!1),r.lanes=4194304);o.isBackwards?(m.sibling=r.child,r.child=m):(t=o.last,t!==null?t.sibling=m:r.child=m,o.last=m)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,l=mt.current,E(mt,h?l&1|2:l&1),Pe&&Jn(r,o.treeForkCount),t):(at(r),null);case 22:case 23:return ln(r),Gu(),o=r.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(l&536870912)!==0&&(r.flags&128)===0&&(at(r),r.subtreeFlags&6&&(r.flags|=8192)):at(r),l=r.updateQueue,l!==null&&Hs(r,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==l&&(r.flags|=2048),t!==null&&V(ui),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Wn(vt),at(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function P_(t,r){switch(Ou(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Wn(vt),Ye(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Rn(r),null;case 31:if(r.memoizedState!==null){if(ln(r),r.alternate===null)throw Error(a(340));li()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(ln(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(a(340));li()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(mt),null;case 4:return Ye(),null;case 10:return Wn(r.type),null;case 22:case 23:return ln(r),Gu(),t!==null&&V(ui),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Wn(vt),null;case 25:return null;default:return null}}function _m(t,r){switch(Ou(r),r.tag){case 3:Wn(vt),Ye();break;case 26:case 27:case 5:Rn(r);break;case 4:Ye();break;case 31:r.memoizedState!==null&&ln(r);break;case 13:ln(r);break;case 19:V(mt);break;case 10:Wn(r.type);break;case 22:case 23:ln(r),Gu(),t!==null&&V(ui);break;case 24:Wn(vt)}}function ol(t,r){try{var l=r.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var h=o.next;l=h;do{if((l.tag&t)===t){o=void 0;var m=l.create,v=l.inst;o=m(),v.destroy=o}l=l.next}while(l!==h)}}catch(x){Qe(r,r.return,x)}}function zr(t,r,l){try{var o=r.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var m=h.next;o=m;do{if((o.tag&t)===t){var v=o.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,h=r;var O=l,I=x;try{I()}catch(G){Qe(h,O,G)}}}o=o.next}while(o!==m)}}catch(G){Qe(r,r.return,G)}}function wm(t){var r=t.updateQueue;if(r!==null){var l=t.stateNode;try{fp(r,l)}catch(o){Qe(t,t.return,o)}}}function xm(t,r,l){l.props=pi(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(o){Qe(t,r,o)}}function ul(t,r){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof l=="function"?t.refCleanup=l(o):l.current=o}}catch(h){Qe(t,r,h)}}function Hn(t,r){var l=t.ref,o=t.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(h){Qe(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){Qe(t,r,h)}else l.current=null}function Sm(t){var r=t.type,l=t.memoizedProps,o=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(h){Qe(t,t.return,h)}}function Sc(t,r,l){try{var o=t.stateNode;ow(o,t.type,l,r),o[Gt]=r}catch(h){Qe(t,t.return,h)}}function Em(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Pr(t.type)||t.tag===4}function Ec(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Em(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Pr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function kc(t,r,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(t),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Kn));else if(o!==4&&(o===27&&Pr(t.type)&&(l=t.stateNode,r=null),t=t.child,t!==null))for(kc(t,r,l),t=t.sibling;t!==null;)kc(t,r,l),t=t.sibling}function qs(t,r,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(o!==4&&(o===27&&Pr(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(qs(t,r,l),t=t.sibling;t!==null;)qs(t,r,l),t=t.sibling}function km(t){var r=t.stateNode,l=t.memoizedProps;try{for(var o=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Nt(r,o,l),r[Ot]=t,r[Gt]=l}catch(m){Qe(t,t.return,m)}}var ir=!1,wt=!1,Tc=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function H_(t,r){if(t=t.containerInfo,Yc=uo,t=Bd(t),bu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var h=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var v=0,x=-1,O=-1,I=0,G=0,K=t,H=null;t:for(;;){for(var $;K!==l||h!==0&&K.nodeType!==3||(x=v+h),K!==m||o!==0&&K.nodeType!==3||(O=v+o),K.nodeType===3&&(v+=K.nodeValue.length),($=K.firstChild)!==null;)H=K,K=$;for(;;){if(K===t)break t;if(H===l&&++I===h&&(x=v),H===m&&++G===o&&(O=v),($=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=$}l=x===-1||O===-1?null:{start:x,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(Kc={focusedElem:t,selectionRange:l},uo=!1,Ct=r;Ct!==null;)if(r=Ct,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Ct=t;else for(;Ct!==null;){switch(r=Ct,m=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)h=t[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,l=r,h=m.memoizedProps,m=m.memoizedState,o=l.stateNode;try{var he=pi(l.type,h);t=o.getSnapshotBeforeUpdate(he,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(xe){Qe(l,l.return,xe)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,l=t.nodeType,l===9)Jc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Jc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=r.sibling,t!==null){t.return=r.return,Ct=t;break}Ct=r.return}}function Am(t,r,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:lr(t,l),o&4&&ol(5,l);break;case 1:if(lr(t,l),o&4)if(t=l.stateNode,r===null)try{t.componentDidMount()}catch(v){Qe(l,l.return,v)}else{var h=pi(l.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(v){Qe(l,l.return,v)}}o&64&&wm(l),o&512&&ul(l,l.return);break;case 3:if(lr(t,l),o&64&&(t=l.updateQueue,t!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{fp(t,r)}catch(v){Qe(l,l.return,v)}}break;case 27:r===null&&o&4&&km(l);case 26:case 5:lr(t,l),r===null&&o&4&&Sm(l),o&512&&ul(l,l.return);break;case 12:lr(t,l);break;case 31:lr(t,l),o&4&&Om(t,l);break;case 13:lr(t,l),o&4&&jm(t,l),o&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Q_.bind(null,l),gw(t,l))));break;case 22:if(o=l.memoizedState!==null||ir,!o){r=r!==null&&r.memoizedState!==null||wt,h=ir;var m=wt;ir=o,(wt=r)&&!m?sr(t,l,(l.subtreeFlags&8772)!==0):lr(t,l),ir=h,wt=m}break;case 30:break;default:lr(t,l)}}function Cm(t){var r=t.alternate;r!==null&&(t.alternate=null,Cm(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&nu(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ot=null,Yt=!1;function ar(t,r,l){for(l=l.child;l!==null;)Rm(t,r,l),l=l.sibling}function Rm(t,r,l){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(dt,l)}catch{}switch(l.tag){case 26:wt||Hn(l,r),ar(t,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:wt||Hn(l,r);var o=ot,h=Yt;Pr(l.type)&&(ot=l.stateNode,Yt=!1),ar(t,r,l),vl(l.stateNode),ot=o,Yt=h;break;case 5:wt||Hn(l,r);case 6:if(o=ot,h=Yt,ot=null,ar(t,r,l),ot=o,Yt=h,ot!==null)if(Yt)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(l.stateNode)}catch(m){Qe(l,r,m)}else try{ot.removeChild(l.stateNode)}catch(m){Qe(l,r,m)}break;case 18:ot!==null&&(Yt?(t=ot,wg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ha(t)):wg(ot,l.stateNode));break;case 4:o=ot,h=Yt,ot=l.stateNode.containerInfo,Yt=!0,ar(t,r,l),ot=o,Yt=h;break;case 0:case 11:case 14:case 15:zr(2,l,r),wt||zr(4,l,r),ar(t,r,l);break;case 1:wt||(Hn(l,r),o=l.stateNode,typeof o.componentWillUnmount=="function"&&xm(l,r,o)),ar(t,r,l);break;case 21:ar(t,r,l);break;case 22:wt=(o=wt)||l.memoizedState!==null,ar(t,r,l),wt=o;break;default:ar(t,r,l)}}function Om(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ha(t)}catch(l){Qe(r,r.return,l)}}}function jm(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ha(t)}catch(l){Qe(r,r.return,l)}}function q_(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Tm),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Tm),r;default:throw Error(a(435,t.tag))}}function $s(t,r){var l=q_(t);r.forEach(function(o){if(!l.has(o)){l.add(o);var h=J_.bind(null,t,o);o.then(h,h)}})}function Kt(t,r){var l=r.deletions;if(l!==null)for(var o=0;o<l.length;o++){var h=l[o],m=t,v=r,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(Pr(x.type)){ot=x.stateNode,Yt=!1;break e}break;case 5:ot=x.stateNode,Yt=!1;break e;case 3:case 4:ot=x.stateNode.containerInfo,Yt=!0;break e}x=x.return}if(ot===null)throw Error(a(160));Rm(m,v,h),ot=null,Yt=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Dm(r,t),r=r.sibling}var Dn=null;function Dm(t,r){var l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Kt(r,t),Xt(t),o&4&&(zr(3,t,t.return),ol(3,t),zr(5,t,t.return));break;case 1:Kt(r,t),Xt(t),o&512&&(wt||l===null||Hn(l,l.return)),o&64&&ir&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var h=Dn;if(Kt(r,t),Xt(t),o&512&&(wt||l===null||Hn(l,l.return)),o&4){var m=l!==null?l.memoizedState:null;if(o=t.memoizedState,l===null)if(o===null)if(t.stateNode===null){e:{o=t.type,l=t.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Ma]||m[Ot]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(o),h.head.insertBefore(m,h.querySelector("head > title"))),Nt(m,o,l),m[Ot]=t,At(m),o=m;break e;case"link":var v=Dg("link","href",h).get(o+(l.href||""));if(v){for(var x=0;x<v.length;x++)if(m=v[x],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(x,1);break t}}m=h.createElement(o),Nt(m,o,l),h.head.appendChild(m);break;case"meta":if(v=Dg("meta","content",h).get(o+(l.content||""))){for(x=0;x<v.length;x++)if(m=v[x],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(x,1);break t}}m=h.createElement(o),Nt(m,o,l),h.head.appendChild(m);break;default:throw Error(a(468,o))}m[Ot]=t,At(m),o=m}t.stateNode=o}else zg(h,t.type,t.stateNode);else t.stateNode=jg(h,o,t.memoizedProps);else m!==o?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,o===null?zg(h,t.type,t.stateNode):jg(h,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Sc(t,t.memoizedProps,l.memoizedProps)}break;case 27:Kt(r,t),Xt(t),o&512&&(wt||l===null||Hn(l,l.return)),l!==null&&o&4&&Sc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Kt(r,t),Xt(t),o&512&&(wt||l===null||Hn(l,l.return)),t.flags&32){h=t.stateNode;try{Li(h,"")}catch(he){Qe(t,t.return,he)}}o&4&&t.stateNode!=null&&(h=t.memoizedProps,Sc(t,h,l!==null?l.memoizedProps:h)),o&1024&&(Tc=!0);break;case 6:if(Kt(r,t),Xt(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,l=t.stateNode;try{l.nodeValue=o}catch(he){Qe(t,t.return,he)}}break;case 3:if(ao=null,h=Dn,Dn=ro(r.containerInfo),Kt(r,t),Dn=h,Xt(t),o&4&&l!==null&&l.memoizedState.isDehydrated)try{ha(r.containerInfo)}catch(he){Qe(t,t.return,he)}Tc&&(Tc=!1,zm(t));break;case 4:o=Dn,Dn=ro(t.stateNode.containerInfo),Kt(r,t),Xt(t),Dn=o;break;case 12:Kt(r,t),Xt(t);break;case 31:Kt(r,t),Xt(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,$s(t,o)));break;case 13:Kt(r,t),Xt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gs=J()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,$s(t,o)));break;case 22:h=t.memoizedState!==null;var O=l!==null&&l.memoizedState!==null,I=ir,G=wt;if(ir=I||h,wt=G||O,Kt(r,t),wt=G,ir=I,Xt(t),o&8192)e:for(r=t.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(l===null||O||ir||wt||mi(t)),l=null,r=t;;){if(r.tag===5||r.tag===26){if(l===null){O=l=r;try{if(m=O.stateNode,h)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=O.stateNode;var K=O.memoizedProps.style,H=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){Qe(O,O.return,he)}}}else if(r.tag===6){if(l===null){O=r;try{O.stateNode.nodeValue=h?"":O.memoizedProps}catch(he){Qe(O,O.return,he)}}}else if(r.tag===18){if(l===null){O=r;try{var $=O.stateNode;h?xg($,!0):xg(O.stateNode,!1)}catch(he){Qe(O,O.return,he)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=t.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,$s(t,l))));break;case 19:Kt(r,t),Xt(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,$s(t,o)));break;case 30:break;case 21:break;default:Kt(r,t),Xt(t)}}function Xt(t){var r=t.flags;if(r&2){try{for(var l,o=t.return;o!==null;){if(Em(o)){l=o;break}o=o.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var h=l.stateNode,m=Ec(t);qs(t,m,h);break;case 5:var v=l.stateNode;l.flags&32&&(Li(v,""),l.flags&=-33);var x=Ec(t);qs(t,x,v);break;case 3:case 4:var O=l.stateNode.containerInfo,I=Ec(t);kc(t,I,O);break;default:throw Error(a(161))}}catch(G){Qe(t,t.return,G)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function zm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;zm(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function lr(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Am(t,r.alternate,r),r=r.sibling}function mi(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:zr(4,r,r.return),mi(r);break;case 1:Hn(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&xm(r,r.return,l),mi(r);break;case 27:vl(r.stateNode);case 26:case 5:Hn(r,r.return),mi(r);break;case 22:r.memoizedState===null&&mi(r);break;case 30:mi(r);break;default:mi(r)}t=t.sibling}}function sr(t,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,h=t,m=r,v=m.flags;switch(m.tag){case 0:case 11:case 15:sr(h,m,l),ol(4,m);break;case 1:if(sr(h,m,l),o=m,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(I){Qe(o,o.return,I)}if(o=m,h=o.updateQueue,h!==null){var x=o.stateNode;try{var O=h.shared.hiddenCallbacks;if(O!==null)for(h.shared.hiddenCallbacks=null,h=0;h<O.length;h++)cp(O[h],x)}catch(I){Qe(o,o.return,I)}}l&&v&64&&wm(m),ul(m,m.return);break;case 27:km(m);case 26:case 5:sr(h,m,l),l&&o===null&&v&4&&Sm(m),ul(m,m.return);break;case 12:sr(h,m,l);break;case 31:sr(h,m,l),l&&v&4&&Om(h,m);break;case 13:sr(h,m,l),l&&v&4&&jm(h,m);break;case 22:m.memoizedState===null&&sr(h,m,l),ul(m,m.return);break;case 30:break;default:sr(h,m,l)}r=r.sibling}}function Ac(t,r){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Xa(l))}function Cc(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Xa(t))}function zn(t,r,l,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Nm(t,r,l,o),r=r.sibling}function Nm(t,r,l,o){var h=r.flags;switch(r.tag){case 0:case 11:case 15:zn(t,r,l,o),h&2048&&ol(9,r);break;case 1:zn(t,r,l,o);break;case 3:zn(t,r,l,o),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Xa(t)));break;case 12:if(h&2048){zn(t,r,l,o),t=r.stateNode;try{var m=r.memoizedProps,v=m.id,x=m.onPostCommit;typeof x=="function"&&x(v,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){Qe(r,r.return,O)}}else zn(t,r,l,o);break;case 31:zn(t,r,l,o);break;case 13:zn(t,r,l,o);break;case 23:break;case 22:m=r.stateNode,v=r.alternate,r.memoizedState!==null?m._visibility&2?zn(t,r,l,o):cl(t,r):m._visibility&2?zn(t,r,l,o):(m._visibility|=2,ta(t,r,l,o,(r.subtreeFlags&10256)!==0||!1)),h&2048&&Ac(v,r);break;case 24:zn(t,r,l,o),h&2048&&Cc(r.alternate,r);break;default:zn(t,r,l,o)}}function ta(t,r,l,o,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=t,v=r,x=l,O=o,I=v.flags;switch(v.tag){case 0:case 11:case 15:ta(m,v,x,O,h),ol(8,v);break;case 23:break;case 22:var G=v.stateNode;v.memoizedState!==null?G._visibility&2?ta(m,v,x,O,h):cl(m,v):(G._visibility|=2,ta(m,v,x,O,h)),h&&I&2048&&Ac(v.alternate,v);break;case 24:ta(m,v,x,O,h),h&&I&2048&&Cc(v.alternate,v);break;default:ta(m,v,x,O,h)}r=r.sibling}}function cl(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=t,o=r,h=o.flags;switch(o.tag){case 22:cl(l,o),h&2048&&Ac(o.alternate,o);break;case 24:cl(l,o),h&2048&&Cc(o.alternate,o);break;default:cl(l,o)}r=r.sibling}}var fl=8192;function na(t,r,l){if(t.subtreeFlags&fl)for(t=t.child;t!==null;)Lm(t,r,l),t=t.sibling}function Lm(t,r,l){switch(t.tag){case 26:na(t,r,l),t.flags&fl&&t.memoizedState!==null&&Cw(l,Dn,t.memoizedState,t.memoizedProps);break;case 5:na(t,r,l);break;case 3:case 4:var o=Dn;Dn=ro(t.stateNode.containerInfo),na(t,r,l),Dn=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=fl,fl=16777216,na(t,r,l),fl=o):na(t,r,l));break;default:na(t,r,l)}}function Mm(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function hl(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];Ct=o,Bm(o,t)}Mm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Um(t),t=t.sibling}function Um(t){switch(t.tag){case 0:case 11:case 15:hl(t),t.flags&2048&&zr(9,t,t.return);break;case 3:hl(t);break;case 12:hl(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Vs(t)):hl(t);break;default:hl(t)}}function Vs(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];Ct=o,Bm(o,t)}Mm(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:zr(8,r,r.return),Vs(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Vs(r));break;default:Vs(r)}t=t.sibling}}function Bm(t,r){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:zr(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Xa(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Ct=o;else e:for(l=t;Ct!==null;){o=Ct;var h=o.sibling,m=o.return;if(Cm(o),o===l){Ct=null;break e}if(h!==null){h.return=m,Ct=h;break e}Ct=m}}}var $_={getCacheForType:function(t){var r=Dt(vt),l=r.data.get(t);return l===void 0&&(l=t(),r.data.set(t,l)),l},cacheSignal:function(){return Dt(vt).controller.signal}},V_=typeof WeakMap=="function"?WeakMap:Map,Ge=0,et=null,ze=null,Be=0,Xe=0,sn=null,Nr=!1,ra=!1,Rc=!1,or=0,ft=0,Lr=0,gi=0,Oc=0,on=0,ia=0,dl=null,Qt=null,jc=!1,Gs=0,Im=0,Fs=1/0,Ys=null,Mr=null,kt=0,Ur=null,aa=null,ur=0,Dc=0,zc=null,Pm=null,pl=0,Nc=null;function un(){return(Ge&2)!==0&&Be!==0?Be&-Be:P.T!==null?Pc():nd()}function Hm(){if(on===0)if((Be&536870912)===0||Pe){var t=Rt;Rt<<=1,(Rt&3932160)===0&&(Rt=262144),on=t}else on=536870912;return t=an.current,t!==null&&(t.flags|=32),on}function Jt(t,r,l){(t===et&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(la(t,0),Br(t,Be,on,!1)),tn(t,l),((Ge&2)===0||t!==et)&&(t===et&&((Ge&2)===0&&(gi|=l),ft===4&&Br(t,Be,on,!1)),qn(t))}function qm(t,r,l){if((Ge&6)!==0)throw Error(a(327));var o=!l&&(r&127)===0&&(r&t.expiredLanes)===0||wr(t,r),h=o?Y_(t,r):Mc(t,r,!0),m=o;do{if(h===0){ra&&!o&&Br(t,r,0,!1);break}else{if(l=t.current.alternate,m&&!G_(l)){h=Mc(t,r,!1),m=!1;continue}if(h===2){if(m=r,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var x=t;h=dl;var O=x.current.memoizedState.isDehydrated;if(O&&(la(x,v).flags|=256),v=Mc(x,v,!1),v!==2){if(Rc&&!O){x.errorRecoveryDisabledLanes|=m,gi|=m,h=4;break e}m=Qt,Qt=h,m!==null&&(Qt===null?Qt=m:Qt.push.apply(Qt,m))}h=v}if(m=!1,h!==2)continue}}if(h===1){la(t,0),Br(t,r,0,!0);break}e:{switch(o=t,m=h,m){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:Br(o,r,on,!Nr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(h=Gs+300-J(),10<h)){if(Br(o,r,on,!Nr),Et(o,0,!0)!==0)break e;ur=r,o.timeoutHandle=bg($m.bind(null,o,l,Qt,Ys,jc,r,on,gi,ia,Nr,m,"Throttled",-0,0),h);break e}$m(o,l,Qt,Ys,jc,r,on,gi,ia,Nr,m,null,-0,0)}}break}while(!0);qn(t)}function $m(t,r,l,o,h,m,v,x,O,I,G,K,H,$){if(t.timeoutHandle=-1,K=r.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},Lm(r,m,K);var he=(m&62914560)===m?Gs-J():(m&4194048)===m?Im-J():0;if(he=Rw(K,he),he!==null){ur=m,t.cancelPendingCommit=he(Jm.bind(null,t,r,m,l,o,h,v,x,O,G,K,null,H,$)),Br(t,m,v,!I);return}}Jm(t,r,m,l,o,h,v,x,O)}function G_(t){for(var r=t;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var h=l[o],m=h.getSnapshot;h=h.value;try{if(!nn(m(),h))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Br(t,r,l,o){r&=~Oc,r&=~gi,t.suspendedLanes|=r,t.pingedLanes&=~r,o&&(t.warmLanes|=r),o=t.expirationTimes;for(var h=r;
vendor: 13,534 bytes, line 9
90<h;){var m=31-De(h),v=1<<m;o[m]=-1,h&=~v}l!==0&&Wh(t,l,r)}function Ks(){return(Ge&6)===0?(ml(0),!1):!0}function Lc(){if(ze!==null){if(Xe===0)var t=ze.return;else t=ze,Zn=si=null,Ju(t),Qi=null,Ja=0,t=ze;for(;t!==null;)_m(t.alternate,t),t=t.return;ze=null}}function la(t,r){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,fw(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ur=0,Lc(),et=t,ze=l=Qn(t.current,null),Be=r,Xe=0,sn=null,Nr=!1,ra=wr(t,r),Rc=!1,ia=on=Oc=gi=Lr=ft=0,Qt=dl=null,jc=!1,(r&8)!==0&&(r|=r&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=r;0<o;){var h=31-De(o),m=1<<h;r|=t[h],o&=~m}return or=r,ms(),l}function Vm(t,r){Ae=null,P.H=al,r===Xi||r===Ss?(r=lp(),Xe=3):r===Iu?(r=lp(),Xe=4):Xe=r===dc?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,sn=r,ze===null&&(ft=1,Us(t,vn(r,t.current)))}function Gm(){var t=an.current;return t===null?!0:(Be&4194048)===Be?xn===null:(Be&62914560)===Be||(Be&536870912)!==0?t===xn:!1}function Fm(){var t=P.H;return P.H=al,t===null?al:t}function Ym(){var t=P.A;return P.A=$_,t}function Xs(){ft=4,Nr||(Be&4194048)!==Be&&an.current!==null||(ra=!0),(Lr&134217727)===0&&(gi&134217727)===0||et===null||Br(et,Be,on,!1)}function Mc(t,r,l){var o=Ge;Ge|=2;var h=Fm(),m=Ym();(et!==t||Be!==r)&&(Ys=null,la(t,r)),r=!1;var v=ft;e:do try{if(Xe!==0&&ze!==null){var x=ze,O=sn;switch(Xe){case 8:Lc(),v=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(r=!0);var I=Xe;if(Xe=0,sn=null,sa(t,x,O,I),l&&ra){v=0;break e}break;default:I=Xe,Xe=0,sn=null,sa(t,x,O,I)}}F_(),v=ft;break}catch(G){Vm(t,G)}while(!0);return r&&t.shellSuspendCounter++,Zn=si=null,Ge=o,P.H=h,P.A=m,ze===null&&(et=null,Be=0,ms()),v}function F_(){for(;ze!==null;)Km(ze)}function Y_(t,r){var l=Ge;Ge|=2;var o=Fm(),h=Ym();et!==t||Be!==r?(Ys=null,Fs=J()+500,la(t,r)):ra=wr(t,r);e:do try{if(Xe!==0&&ze!==null){r=ze;var m=sn;t:switch(Xe){case 1:Xe=0,sn=null,sa(t,r,m,1);break;case 2:case 9:if(ip(m)){Xe=0,sn=null,Xm(r);break}r=function(){Xe!==2&&Xe!==9||et!==t||(Xe=7),qn(t)},m.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:ip(m)?(Xe=0,sn=null,Xm(r)):(Xe=0,sn=null,sa(t,r,m,7));break;case 5:var v=null;switch(ze.tag){case 26:v=ze.memoizedState;case 5:case 27:var x=ze;if(v?Ng(v):x.stateNode.complete){Xe=0,sn=null;var O=x.sibling;if(O!==null)ze=O;else{var I=x.return;I!==null?(ze=I,Qs(I)):ze=null}break t}}Xe=0,sn=null,sa(t,r,m,5);break;case 6:Xe=0,sn=null,sa(t,r,m,6);break;case 8:Lc(),ft=6;break e;default:throw Error(a(462))}}K_();break}catch(G){Vm(t,G)}while(!0);return Zn=si=null,P.H=o,P.A=h,Ge=l,ze!==null?0:(et=null,Be=0,ms(),ft)}function K_(){for(;ze!==null&&!Na();)Km(ze)}function Km(t){var r=vm(t.alternate,t,or);t.memoizedProps=t.pendingProps,r===null?Qs(t):ze=r}function Xm(t){var r=t,l=r.alternate;switch(r.tag){case 15:case 0:r=hm(l,r,r.pendingProps,r.type,void 0,Be);break;case 11:r=hm(l,r,r.pendingProps,r.type.render,r.ref,Be);break;case 5:Ju(r);default:_m(l,r),r=ze=Yd(r,or),r=vm(l,r,or)}t.memoizedProps=t.pendingProps,r===null?Qs(t):ze=r}function sa(t,r,l,o){Zn=si=null,Ju(r),Qi=null,Ja=0;var h=r.return;try{if(M_(t,h,r,l,Be)){ft=1,Us(t,vn(l,t.current)),ze=null;return}}catch(m){if(h!==null)throw ze=h,m;ft=1,Us(t,vn(l,t.current)),ze=null;return}r.flags&32768?(Pe||o===1?t=!0:ra||(Be&536870912)!==0?t=!1:(Nr=t=!0,(o===2||o===9||o===3||o===6)&&(o=an.current,o!==null&&o.tag===13&&(o.flags|=16384))),Qm(r,t)):Qs(r)}function Qs(t){var r=t;do{if((r.flags&32768)!==0){Qm(r,Nr);return}t=r.return;var l=I_(r.alternate,r,or);if(l!==null){ze=l;return}if(r=r.sibling,r!==null){ze=r;return}ze=r=t}while(r!==null);ft===0&&(ft=5)}function Qm(t,r){do{var l=P_(t.alternate,t);if(l!==null){l.flags&=32767,ze=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(t=t.sibling,t!==null)){ze=t;return}ze=t=l}while(t!==null);ft=6,ze=null}function Jm(t,r,l,o,h,m,v,x,O){t.cancelPendingCommit=null;do Js();while(kt!==0);if((Ge&6)!==0)throw Error(a(327));if(r!==null){if(r===t.current)throw Error(a(177));if(m=r.lanes|r.childLanes,m|=Eu,A0(t,l,m,v,x,O),t===et&&(ze=et=null,Be=0),aa=r,Ur=t,ur=l,Dc=m,zc=h,Pm=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Z_(se,function(){return ng(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=P.T,P.T=null,h=ee.p,ee.p=2,v=Ge,Ge|=4;try{H_(t,r,l)}finally{Ge=v,ee.p=h,P.T=o}}kt=1,Zm(),Wm(),eg()}}function Zm(){if(kt===1){kt=0;var t=Ur,r=aa,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=P.T,P.T=null;var o=ee.p;ee.p=2;var h=Ge;Ge|=4;try{Dm(r,t);var m=Kc,v=Bd(t.containerInfo),x=m.focusedElem,O=m.selectionRange;if(v!==x&&x&&x.ownerDocument&&Ud(x.ownerDocument.documentElement,x)){if(O!==null&&bu(x)){var I=O.start,G=O.end;if(G===void 0&&(G=I),"selectionStart"in x)x.selectionStart=I,x.selectionEnd=Math.min(G,x.value.length);else{var K=x.ownerDocument||document,H=K&&K.defaultView||window;if(H.getSelection){var $=H.getSelection(),he=x.textContent.length,xe=Math.min(O.start,he),We=O.end===void 0?xe:Math.min(O.end,he);!$.extend&&xe>We&&(v=We,We=xe,xe=v);var L=Md(x,xe),z=Md(x,We);if(L&&z&&($.rangeCount!==1||$.anchorNode!==L.node||$.anchorOffset!==L.offset||$.focusNode!==z.node||$.focusOffset!==z.offset)){var B=K.createRange();B.setStart(L.node,L.offset),$.removeAllRanges(),xe>We?($.addRange(B),$.extend(z.node,z.offset)):(B.setEnd(z.node,z.offset),$.addRange(B))}}}}for(K=[],$=x;$=$.parentNode;)$.nodeType===1&&K.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var F=K[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}uo=!!Yc,Kc=Yc=null}finally{Ge=h,ee.p=o,P.T=l}}t.current=r,kt=2}}function Wm(){if(kt===2){kt=0;var t=Ur,r=aa,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=P.T,P.T=null;var o=ee.p;ee.p=2;var h=Ge;Ge|=4;try{Am(t,r.alternate,r)}finally{Ge=h,ee.p=o,P.T=l}}kt=3}}function eg(){if(kt===4||kt===3){kt=0,La();var t=Ur,r=aa,l=ur,o=Pm;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?kt=5:(kt=0,aa=Ur=null,tg(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Mr=null),eu(l),r=r.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(dt,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=P.T,h=ee.p,ee.p=2,P.T=null;try{for(var m=t.onRecoverableError,v=0;v<o.length;v++){var x=o[v];m(x.value,{componentStack:x.stack})}}finally{P.T=r,ee.p=h}}(ur&3)!==0&&Js(),qn(t),h=t.pendingLanes,(l&261930)!==0&&(h&42)!==0?t===Nc?pl++:(pl=0,Nc=t):pl=0,ml(0)}}function tg(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Xa(r)))}function Js(){return Zm(),Wm(),eg(),ng()}function ng(){if(kt!==5)return!1;var t=Ur,r=Dc;Dc=0;var l=eu(ur),o=P.T,h=ee.p;try{ee.p=32>l?32:l,P.T=null,l=zc,zc=null;var m=Ur,v=ur;if(kt=0,aa=Ur=null,ur=0,(Ge&6)!==0)throw Error(a(331));var x=Ge;if(Ge|=4,Um(m.current),Nm(m,m.current,v,l),Ge=x,ml(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(dt,m)}catch{}return!0}finally{ee.p=h,P.T=o,tg(t,r)}}function rg(t,r,l){r=vn(l,r),r=hc(t.stateNode,r,2),t=Or(t,r,2),t!==null&&(tn(t,2),qn(t))}function Qe(t,r,l){if(t.tag===3)rg(t,t,l);else for(;r!==null;){if(r.tag===3){rg(r,t,l);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Mr===null||!Mr.has(o))){t=vn(l,t),l=im(2),o=Or(r,l,2),o!==null&&(am(l,o,r,t),tn(o,2),qn(o));break}}r=r.return}}function Uc(t,r,l){var o=t.pingCache;if(o===null){o=t.pingCache=new V_;var h=new Set;o.set(r,h)}else h=o.get(r),h===void 0&&(h=new Set,o.set(r,h));h.has(l)||(Rc=!0,h.add(l),t=X_.bind(null,t,r,l),r.then(t,t))}function X_(t,r,l){var o=t.pingCache;o!==null&&o.delete(r),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,et===t&&(Be&l)===l&&(ft===4||ft===3&&(Be&62914560)===Be&&300>J()-Gs?(Ge&2)===0&&la(t,0):Oc|=l,ia===Be&&(ia=0)),qn(t)}function ig(t,r){r===0&&(r=st()),t=ii(t,r),t!==null&&(tn(t,r),qn(t))}function Q_(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),ig(t,l)}function J_(t,r){var l=0;switch(t.tag){case 31:case 13:var o=t.stateNode,h=t.memoizedState;h!==null&&(l=h.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(r),ig(t,l)}function Z_(t,r){return br(t,r)}var Zs=null,oa=null,Bc=!1,Ws=!1,Ic=!1,Ir=0;function qn(t){t!==oa&&t.next===null&&(oa===null?Zs=oa=t:oa=oa.next=t),Ws=!0,Bc||(Bc=!0,ew())}function ml(t,r){if(!Ic&&Ws){Ic=!0;do for(var l=!1,o=Zs;o!==null;){if(t!==0){var h=o.pendingLanes;if(h===0)var m=0;else{var v=o.suspendedLanes,x=o.pingedLanes;m=(1<<31-De(42|t)+1)-1,m&=h&~(v&~x),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,og(o,m))}else m=Be,m=Et(o,o===et?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||wr(o,m)||(l=!0,og(o,m));o=o.next}while(l);Ic=!1}}function W_(){ag()}function ag(){Ws=Bc=!1;var t=0;Ir!==0&&cw()&&(t=Ir);for(var r=J(),l=null,o=Zs;o!==null;){var h=o.next,m=lg(o,r);m===0?(o.next=null,l===null?Zs=h:l.next=h,h===null&&(oa=l)):(l=o,(t!==0||(m&3)!==0)&&(Ws=!0)),o=h}kt!==0&&kt!==5||ml(t),Ir!==0&&(Ir=0)}function lg(t,r){for(var l=t.suspendedLanes,o=t.pingedLanes,h=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-De(m),x=1<<v,O=h[v];O===-1?((x&l)===0||(x&o)!==0)&&(h[v]=rs(x,r)):O<=r&&(t.expiredLanes|=x),m&=~x}if(r=et,l=Be,l=Et(t,t===r?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,l===0||t===r&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Wr(o),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||wr(t,l)){if(r=l&-l,r===t.callbackPriority)return r;switch(o!==null&&Wr(o),eu(l)){case 2:case 8:l=Y;break;case 32:l=se;break;case 268435456:l=Ee;break;default:l=se}return o=sg.bind(null,t),l=br(l,o),t.callbackPriority=r,t.callbackNode=l,r}return o!==null&&o!==null&&Wr(o),t.callbackPriority=2,t.callbackNode=null,2}function sg(t,r){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Js()&&t.callbackNode!==l)return null;var o=Be;return o=Et(t,t===et?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(qm(t,o,r),lg(t,J()),t.callbackNode!=null&&t.callbackNode===l?sg.bind(null,t):null)}function og(t,r){if(Js())return null;qm(t,r,!0)}function ew(){hw(function(){(Ge&6)!==0?br(U,W_):ag()})}function Pc(){if(Ir===0){var t=Yi;t===0&&(t=en,en<<=1,(en&261888)===0&&(en=256)),Ir=t}return Ir}function ug(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ss(""+t)}function cg(t,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,t.id&&l.setAttribute("form",t.id),r.parentNode.insertBefore(l,r),t=new FormData(t),l.parentNode.removeChild(l),t}function tw(t,r,l,o,h){if(r==="submit"&&l&&l.stateNode===h){var m=ug((h[Gt]||null).action),v=o.submitter;v&&(r=(r=v[Gt]||null)?ug(r.formAction):v.getAttribute("formAction"),r!==null&&(m=r,v=null));var x=new fs("action","action",null,o,h);t.push({event:x,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ir!==0){var O=v?cg(h,v):new FormData(h);lc(l,{pending:!0,data:O,method:h.method,action:m},null,O)}}else typeof m=="function"&&(x.preventDefault(),O=v?cg(h,v):new FormData(h),lc(l,{pending:!0,data:O,method:h.method,action:m},m,O))},currentTarget:h}]})}}for(var Hc=0;Hc<Su.length;Hc++){var qc=Su[Hc],nw=qc.toLowerCase(),rw=qc[0].toUpperCase()+qc.slice(1);jn(nw,"on"+rw)}jn(Hd,"onAnimationEnd"),jn(qd,"onAnimationIteration"),jn($d,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(b_,"onTransitionRun"),jn(__,"onTransitionStart"),jn(w_,"onTransitionCancel"),jn(Vd,"onTransitionEnd"),zi("onMouseEnter",["mouseout","mouseover"]),zi("onMouseLeave",["mouseout","mouseover"]),zi("onPointerEnter",["pointerout","pointerover"]),zi("onPointerLeave",["pointerout","pointerover"]),ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),iw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function fg(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var o=t[l],h=o.event;o=o.listeners;e:{var m=void 0;if(r)for(var v=o.length-1;0<=v;v--){var x=o[v],O=x.instance,I=x.currentTarget;if(x=x.listener,O!==m&&h.isPropagationStopped())break e;m=x,h.currentTarget=I;try{m(h)}catch(G){ps(G)}h.currentTarget=null,m=O}else for(v=0;v<o.length;v++){if(x=o[v],O=x.instance,I=x.currentTarget,x=x.listener,O!==m&&h.isPropagationStopped())break e;m=x,h.currentTarget=I;try{m(h)}catch(G){ps(G)}h.currentTarget=null,m=O}}}}function Ne(t,r){var l=r[tu];l===void 0&&(l=r[tu]=new Set);var o=t+"__bubble";l.has(o)||(hg(r,t,2,!1),l.add(o))}function $c(t,r,l){var o=0;r&&(o|=4),hg(l,t,o,r)}var eo="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,356 bytes, line 9
9function Vc(t){if(!t[eo]){t[eo]=!0,ad.forEach(function(l){l!=="selectionchange"&&(iw.has(l)||$c(l,!1,t),$c(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[eo]||(r[eo]=!0,$c("selectionchange",!1,r))}}function hg(t,r,l,o){switch(Hg(r)){case 2:var h=Dw;break;case 8:h=zw;break;default:h=lf}l=h.bind(null,r,l,t),h=void 0,!cu||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),o?h!==void 0?t.addEventListener(r,l,{capture:!0,passive:h}):t.addEventListener(r,l,!0):h!==void 0?t.addEventListener(r,l,{passive:h}):t.addEventListener(r,l,!1)}function Gc(t,r,l,o,h){var m=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var x=o.stateNode.containerInfo;if(x===h)break;if(v===4)for(v=o.return;v!==null;){var O=v.tag;if((O===3||O===4)&&v.stateNode.containerInfo===h)return;v=v.return}for(;x!==null;){if(v=Oi(x),v===null)return;if(O=v.tag,O===5||O===6||O===26||O===27){o=m=v;continue e}x=x.parentNode}}o=o.return}yd(function(){var I=m,G=ou(l),K=[];e:{var H=Gd.get(t);if(H!==void 0){var $=fs,he=t;switch(t){case"keypress":if(us(l)===0)break e;case"keydown":case"keyup":$=J0;break;case"focusin":he="focus",$=pu;break;case"focusout":he="blur",$=pu;break;case"beforeblur":case"afterblur":$=pu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=_d;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=I0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=e_;break;case Hd:case qd:case $d:$=q0;break;case Vd:$=n_;break;case"scroll":case"scrollend":$=U0;break;case"wheel":$=i_;break;case"copy":case"cut":case"paste":$=V0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=xd;break;case"toggle":case"beforetoggle":$=l_}var xe=(r&4)!==0,We=!xe&&(t==="scroll"||t==="scrollend"),L=xe?H!==null?H+"Capture":null:H;xe=[];for(var z=I,B;z!==null;){var F=z;if(B=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||B===null||L===null||(F=Ba(z,L),F!=null&&xe.push(yl(z,F,B))),We)break;z=z.return}0<xe.length&&(H=new $(H,he,null,l,G),K.push({event:H,listeners:xe}))}}if((r&7)===0){e:{if(H=t==="mouseover"||t==="pointerover",$=t==="mouseout"||t==="pointerout",H&&l!==su&&(he=l.relatedTarget||l.fromElement)&&(Oi(he)||he[Ri]))break e;if(($||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,$?(he=l.relatedTarget||l.toElement,$=I,he=he?Oi(he):null,he!==null&&(We=u(he),xe=he.tag,he!==We||xe!==5&&xe!==27&&xe!==6)&&(he=null)):($=null,he=I),$!==he)){if(xe=_d,F="onMouseLeave",L="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(xe=xd,F="onPointerLeave",L="onPointerEnter",z="pointer"),We=$==null?H:Ua($),B=he==null?H:Ua(he),H=new xe(F,z+"leave",$,l,G),H.target=We,H.relatedTarget=B,F=null,Oi(G)===I&&(xe=new xe(L,z+"enter",he,l,G),xe.target=B,xe.relatedTarget=We,F=xe),We=F,$&&he)t:{for(xe=aw,L=$,z=he,B=0,F=L;F;F=xe(F))B++;F=0;for(var ve=z;ve;ve=xe(ve))F++;for(;0<B-F;)L=xe(L),B--;for(;0<F-B;)z=xe(z),F--;for(;B--;){if(L===z||z!==null&&L===z.alternate){xe=L;break t}L=xe(L),z=xe(z)}xe=null}else xe=null;$!==null&&dg(K,H,$,xe,!1),he!==null&&We!==null&&dg(K,We,he,xe,!0)}}
vendor: 5,189 bytes, lines 9-10
9e:{if(H=I?Ua(I):window,$=H.nodeName&&H.nodeName.toLowerCase(),$==="select"||$==="input"&&H.type==="file")var $e=Od;else if(Cd(H))if(jd)$e=g_;else{$e=p_;var pe=d_}else $=H.nodeName,!$||$.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?I&&lu(I.elementType)&&($e=Od):$e=m_;if($e&&($e=$e(t,I))){Rd(K,$e,l,G);break e}pe&&pe(t,H,I),t==="focusout"&&I&&H.type==="number"&&I.memoizedProps.value!=null&&au(H,"number",H.value)}switch(pe=I?Ua(I):window,t){case"focusin":(Cd(pe)||pe.contentEditable==="true")&&(Ii=pe,_u=I,Fa=null);break;case"focusout":Fa=_u=Ii=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,Id(K,l,G);break;case"selectionchange":if(v_)break;case"keydown":case"keyup":Id(K,l,G)}var Ce;if(gu)e:{switch(t){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Bi?Td(t,l)&&(Ie="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(Sd&&l.locale!=="ko"&&(Bi||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Bi&&(Ce=vd()):(Sr=G,fu="value"in Sr?Sr.value:Sr.textContent,Bi=!0)),pe=to(I,Ie),0<pe.length&&(Ie=new wd(Ie,t,null,l,G),K.push({event:Ie,listeners:pe}),Ce?Ie.data=Ce:(Ce=Ad(l),Ce!==null&&(Ie.data=Ce)))),(Ce=o_?u_(t,l):c_(t,l))&&(Ie=to(I,"onBeforeInput"),0<Ie.length&&(pe=new wd("onBeforeInput","beforeinput",null,l,G),K.push({event:pe,listeners:Ie}),pe.data=Ce)),tw(K,t,I,l,G)}fg(K,r)})}function yl(t,r,l){return{instance:t,listener:r,currentTarget:l}}function to(t,r){for(var l=r+"Capture",o=[];t!==null;){var h=t,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Ba(t,l),h!=null&&o.unshift(yl(t,h,m)),h=Ba(t,r),h!=null&&o.push(yl(t,h,m))),t.tag===3)return o;t=t.return}return[]}function aw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function dg(t,r,l,o,h){for(var m=r._reactName,v=[];l!==null&&l!==o;){var x=l,O=x.alternate,I=x.stateNode;if(x=x.tag,O!==null&&O===o)break;x!==5&&x!==26&&x!==27||I===null||(O=I,h?(I=Ba(l,m),I!=null&&v.unshift(yl(l,I,O))):h||(I=Ba(l,m),I!=null&&v.push(yl(l,I,O)))),l=l.return}v.length!==0&&t.push({event:r,listeners:v})}var lw=/\r\n?/g,sw=/\u0000|\uFFFD/g;function pg(t){return(typeof t=="string"?t:""+t).replace(lw,`
10`).replace(sw,"")}function mg(t,r){return r=pg(r),pg(t)===r}function Ze(t,r,l,o,h,m){switch(l){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Li(t,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Li(t,""+o);break;case"className":as(t,"class",o);break;case"tabIndex":as(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":as(t,l,o);break;case"style":md(t,o,m);break;case"data":if(r!=="object"){as(t,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||l!=="href")){t.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=ss(""+o),t.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(r!=="input"&&Ze(t,r,"name",h.name,h,null),Ze(t,r,"formEncType",h.formEncType,h,null),Ze(t,r,"formMethod",h.formMethod,h,null),Ze(t,r,"formTarget",h.formTarget,h,null)):(Ze(t,r,"encType",h.encType,h,null),Ze(t,r,"method",h.method,h,null),Ze(t,r,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=ss(""+o),t.setAttribute(l,o);break;case"onClick":o!=null&&(t.onclick=Kn);break;case"onScroll":o!=null&&Ne("scroll",t);break;case"onScrollEnd":o!=null&&Ne("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(l=o.__html,l!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}l=ss(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""+o):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":o===!0?t.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,o):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(l,o):t.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(l):t.setAttribute(l,o);break;case"popover":Ne("beforetoggle",t),Ne("toggle",t),is(t,"popover",o);break;case"xlinkActuate":Yn(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Yn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Yn(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Yn(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Yn(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Yn(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":is(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=L0.get(l)||l,is(t,l,o))}}function Fc(t,r,l,o,h,m){switch(l){case"style":md(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(l=o.__html,l!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"children":typeof o=="string"?Li(t,o):(typeof o=="number"||typeof o=="bigint")&&Li(t,""+o);break;case"onScroll":o!=null&&Ne("scroll",t);break;case"onScrollEnd":o!=null&&Ne("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ld.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),r=l.slice(2,h?l.length-7:void 0),m=t[Gt]||null,m=m!=null?m[l]:null,typeof m=="function"&&t.removeEventListener(r,m,h),typeof o=="function")){typeof m!="function"&&m!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(r,o,h);break e}l in t?t[l]=o:o===!0?t.setAttribute(l,""):is(t,l,o)}}}function Nt(t,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",t),Ne("load",t);var o=!1,h=!1,m;for(m in l)if(l.hasOwnProperty(m)){var v=l[m];if(v!=null)switch(m){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ze(t,r,m,v,l,null)}}h&&Ze(t,r,"srcSet",l.srcSet,l,null),o&&Ze(t,r,"src",l.src,l,null);return;case"input":Ne("invalid",t);var x=m=v=h=null,O=null,I=null;for(o in l)if(l.hasOwnProperty(o)){var G=l[o];if(G!=null)switch(o){case"name":h=G;break;case"type":v=G;break;case"checked":O=G;break;case"defaultChecked":I=G;break;case"value":m=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,r));break;default:Ze(t,r,o,G,l,null)}}fd(t,m,x,O,I,v,h,!1);return;case"select":Ne("invalid",t),o=v=m=null;for(h in l)if(l.hasOwnProperty(h)&&(x=l[h],x!=null))switch(h){case"value":m=x;break;case"defaultValue":v=x;break;case"multiple":o=x;default:Ze(t,r,h,x,l,null)}r=m,l=v,t.multiple=!!o,r!=null?Ni(t,!!o,r,!1):l!=null&&Ni(t,!!o,l,!0);return;case"textarea":Ne("invalid",t),m=h=o=null;for(v in l)if(l.hasOwnProperty(v)&&(x=l[v],x!=null))switch(v){case"value":o=x;break;case"defaultValue":h=x;break;case"children":m=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(a(91));break;default:Ze(t,r,v,x,l,null)}dd(t,o,h,m);return;case"option":for(O in l)l.hasOwnProperty(O)&&(o=l[O],o!=null)&&(O==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":Ze(t,r,O,o,l,null));return;case"dialog":Ne("beforetoggle",t),Ne("toggle",t),Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":Ne("load",t);break;case"video":case"audio":for(o=0;o<gl.length;o++)Ne(gl[o],t);break;case"image":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"embed":case"source":case"link":Ne("error",t),Ne("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(o=l[I],o!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ze(t,r,I,o,l,null)}return;default:if(lu(r)){for(G in l)l.hasOwnProperty(G)&&(o=l[G],o!==void 0&&Fc(t,r,G,o,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(o=l[x],o!=null&&Ze(t,r,x,o,l,null))}function ow(t,r,l,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,v=null,x=null,O=null,I=null,G=null;for($ in l){var K=l[$];if(l.hasOwnProperty($)&&K!=null)switch($){case"checked":break;case"value":break;case"defaultValue":O=K;default:o.hasOwnProperty($)||Ze(t,r,$,null,o,K)}}for(var H in o){var $=o[H];if(K=l[H],o.hasOwnProperty(H)&&($!=null||K!=null))switch(H){case"type":m=$;break;case"name":h=$;break;case"checked":I=$;break;case"defaultChecked":G=$;break;case"value":v=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,r));break;default:$!==K&&Ze(t,r,H,$,o,K)}}iu(t,v,x,O,I,G,m,h);return;case"select":$=v=x=H=null;for(m in l)if(O=l[m],l.hasOwnProperty(m)&&O!=null)switch(m){case"value":break;case"multiple":$=O;default:o.hasOwnProperty(m)||Ze(t,r,m,null,o,O)}for(h in o)if(m=o[h],O=l[h],o.hasOwnProperty(h)&&(m!=null||O!=null))switch(h){case"value":H=m;break;case"defaultValue":x=m;break;case"multiple":v=m;default:m!==O&&Ze(t,r,h,m,o,O)}r=x,l=v,o=$,H!=null?Ni(t,!!l,H,!1):!!o!=!!l&&(r!=null?Ni(t,!!l,r,!0):Ni(t,!!l,l?[]:"",!1));return;case"textarea":$=H=null;for(x in l)if(h=l[x],l.hasOwnProperty(x)&&h!=null&&!o.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ze(t,r,x,null,o,h)}for(v in o)if(h=o[v],m=l[v],o.hasOwnProperty(v)&&(h!=null||m!=null))switch(v){case"value":H=h;break;case"defaultValue":$=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==m&&Ze(t,r,v,h,o,m)}hd(t,H,$);return;case"option":for(var he in l)H=l[he],l.hasOwnProperty(he)&&H!=null&&!o.hasOwnProperty(he)&&(he==="selected"?t.selected=!1:Ze(t,r,he,null,o,H));for(O in o)H=o[O],$=l[O],o.hasOwnProperty(O)&&H!==$&&(H!=null||$!=null)&&(O==="selected"?t.selected=H&&typeof H!="function"&&typeof H!="symbol":Ze(t,r,O,H,o,$));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in l)H=l[xe],l.hasOwnProperty(xe)&&H!=null&&!o.hasOwnProperty(xe)&&Ze(t,r,xe,null,o,H);for(I in o)if(H=o[I],$=l[I],o.hasOwnProperty(I)&&H!==$&&(H!=null||$!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,r));break;default:Ze(t,r,I,H,o,$)}return;default:if(lu(r)){for(var We in l)H=l[We],l.hasOwnProperty(We)&&H!==void 0&&!o.hasOwnProperty(We)&&Fc(t,r,We,void 0,o,H);for(G in o)H=o[G],$=l[G],!o.hasOwnProperty(G)||H===$||H===void 0&&$===void 0||Fc(t,r,G,H,o,$);return}}for(var L in l)H=l[L],l.hasOwnProperty(L)&&H!=null&&!o.hasOwnProperty(L)&&Ze(t,r,L,null,o,H);for(K in o)H=o[K],$=l[K],!o.hasOwnProperty(K)||H===$||H==null&&$==null||Ze(t,r,K,H,o,$)}function gg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var h=l[o],m=h.transferSize,v=h.initiatorType,x=h.duration;if(m&&x&&gg(v)){for(v=0,x=h.responseEnd,o+=1;o<l.length;o++){var O=l[o],I=O.startTime;if(I>x)break;var G=O.transferSize,K=O.initiatorType;G&&gg(K)&&(O=O.responseEnd,v+=G*(O<x?1:(x-I)/(O-I)))}if(--o,r+=8*(m+v)/(h.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Yc=null,Kc=null;function no(t){return t.nodeType===9?t:t.ownerDocument}function yg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vg(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Xc(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Qc=null;function cw(){var t=window.event;return t&&t.type==="popstate"?t===Qc?!1:(Qc=t,!0):(Qc=null,!1)}var bg=typeof setTimeout=="function"?setTimeout:void 0,fw=typeof clearTimeout=="function"?clearTimeout:void 0,_g=typeof Promise=="function"?Promise:void 0,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof _g<"u"?function(t){return _g.resolve(null).then(t).cat
vendor: 5,619 bytes, line 10
10ch(dw)}:bg;function dw(t){setTimeout(function(){throw t})}function Pr(t){return t==="head"}function wg(t,r){var l=r,o=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"||l==="/&"){if(o===0){t.removeChild(h),ha(r);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")vl(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,vl(l);for(var m=l.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[Ma]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=v}}else l==="body"&&vl(t.ownerDocument.body);l=h}while(l);ha(r)}function xg(t,r){var l=t;t=0;do{var o=l.nextSibling;if(l.nodeType===1?r?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(r?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=o}while(l)}function Jc(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jc(l),nu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function pw(t,r,l,o){for(;t.nodeType===1;){var h=l;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ma])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Sn(t.nextSibling),t===null)break}return null}function mw(t,r,l){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Sn(t.nextSibling),t===null))return null;return t}function Sg(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Sn(t.nextSibling),t===null))return null;return t}function Zc(t){return t.data==="$?"||t.data==="$~"}function Wc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function gw(t,r){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||l.readyState!=="loading")r();else{var o=function(){r(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Sn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var ef=null;function Eg(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(r===0)return Sn(t.nextSibling);r--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||r++}t=t.nextSibling}return null}function kg(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(r===0)return t;r--}else l!=="/$"&&l!=="/&"||r++}t=t.previousSibling}return null}function Tg(t,r,l){switch(r=no(l),t){case"html":if(t=r.documentElement,!t)throw Error(a(452));return t;case"head":if(t=r.head,!t)throw Error(a(453));return t;case"body":if(t=r.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function vl(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);nu(t)}var En=new Map,Ag=new Set;function ro(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var cr=ee.d;ee.d={f:yw,r:vw,D:bw,C:_w,L:ww,m:xw,X:Ew,S:Sw,M:kw};function yw(){var t=cr.f(),r=Ks();return t||r}function vw(t){var r=ji(t);r!==null&&r.tag===5&&r.type==="form"?Vp(r):cr.r(t)}var ua=typeof document>"u"?null:document;function Cg(t,r,l){var o=ua;if(o&&typeof r=="string"&&r){var h=gn(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),Ag.has(h)||(Ag.add(h),t={rel:t,crossOrigin:l,href:r},o.querySelector(h)===null&&(r=o.createElement("link"),Nt(r,"link",t),At(r),o.head.appendChild(r)))}}function bw(t){cr.D(t),Cg("dns-prefetch",t,null)}function _w(t,r){cr.C(t,r),Cg("preconnect",t,r)}function ww(t,r,l){cr.L(t,r,l);var o=ua;if(o&&t&&r){var h='link[rel="preload"][as="'+gn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+gn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+gn(l.imageSizes)+'"]')):h+='[href="'+gn(t)+'"]';var m=h;switch(r){case"style":m=ca(t);break;case"script":m=fa(t)}En.has(m)||(t=y({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:t,as:r},l),En.set(m,t),o.querySelector(h)!==null||r==="style"&&o.querySelector(bl(m))||r==="script"&&o.querySelector(_l(m))||(r=o.createElement("link"),Nt(r,"link",t),At(r),o.head.appendChild(r)))}}function xw(t,r){cr.m(t,r);var l=ua;
vendor: 6,572 bytes, line 10
10if(l&&t){var o=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+gn(o)+'"][href="'+gn(t)+'"]',m=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=fa(t)}if(!En.has(m)&&(t=y({rel:"modulepreload",href:t},r),En.set(m,t),l.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_l(m)))return}o=l.createElement("link"),Nt(o,"link",t),At(o),l.head.appendChild(o)}}}function Sw(t,r,l){cr.S(t,r,l);var o=ua;if(o&&t){var h=Di(o).hoistableStyles,m=ca(t);r=r||"default";var v=h.get(m);if(!v){var x={loading:0,preload:null};if(v=o.querySelector(bl(m)))x.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},l),(l=En.get(m))&&tf(t,l);var O=v=o.createElement("link");At(O),Nt(O,"link",t),O._p=new Promise(function(I,G){O.onload=I,O.onerror=G}),O.addEventListener("load",function(){x.loading|=1}),O.addEventListener("error",function(){x.loading|=2}),x.loading|=4,io(v,r,o)}v={type:"stylesheet",instance:v,count:1,state:x},h.set(m,v)}}}function Ew(t,r){cr.X(t,r);var l=ua;if(l&&t){var o=Di(l).hoistableScripts,h=fa(t),m=o.get(h);m||(m=l.querySelector(_l(h)),m||(t=y({src:t,async:!0},r),(r=En.get(h))&&nf(t,r),m=l.createElement("script"),At(m),Nt(m,"link",t),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(h,m))}}function kw(t,r){cr.M(t,r);var l=ua;if(l&&t){var o=Di(l).hoistableScripts,h=fa(t),m=o.get(h);m||(m=l.querySelector(_l(h)),m||(t=y({src:t,async:!0,type:"module"},r),(r=En.get(h))&&nf(t,r),m=l.createElement("script"),At(m),Nt(m,"link",t),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(h,m))}}function Rg(t,r,l,o){var h=(h=me.current)?ro(h):null;if(!h)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=ca(l.href),l=Di(h).hoistableStyles,o=l.get(r),o||(o={type:"style",instance:null,count:0,state:null},l.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ca(l.href);var m=Di(h).hoistableStyles,v=m.get(t);if(v||(h=h.ownerDocument||h,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=h.querySelector(bl(t)))&&!m._p&&(v.instance=m,v.state.loading=5),En.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},En.set(t,l),m||Tw(h,t,l,v.state))),r&&o===null)throw Error(a(528,""));return v}if(r&&o!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=fa(l),l=Di(h).hoistableScripts,o=l.get(r),o||(o={type:"script",instance:null,count:0,state:null},l.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function ca(t){return'href="'+gn(t)+'"'}function bl(t){return'link[rel="stylesheet"]['+t+"]"}function Og(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Tw(t,r,l,o){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=t.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),Nt(r,"link",l),At(r),t.head.appendChild(r))}function fa(t){return'[src="'+gn(t)+'"]'}function _l(t){return"script[async]"+t}function jg(t,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var o=t.querySelector('style[data-href~="'+gn(l.href)+'"]');if(o)return r.instance=o,At(o),o;var h=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),At(o),Nt(o,"style",h),io(o,l.precedence,t),r.instance=o;case"stylesheet":h=ca(l.href);var m=t.querySelector(bl(h));if(m)return r.state.loading|=4,r.instance=m,At(m),m;o=Og(l),(h=En.get(h))&&tf(o,h),m=(t.ownerDocument||t).createElement("link"),At(m);var v=m;return v._p=new Promise(function(x,O){v.onload=x,v.onerror=O}),Nt(m,"link",o),r.state.loading|=4,io(m,l.precedence,t),r.instance=m;case"script":return m=fa(l.src),(h=t.querySelector(_l(m)))?(r.instance=h,At(h),h):(o=l,(h=En.get(m))&&(o=y({},l),nf(o,h)),t=t.ownerDocument||t,h=t.createElement("script"),At(h),Nt(h,"link",o),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,io(o,l.precedence,t));return r.instance}function io(t,r,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,m=h,v=0;v<o.length;v++){var x=o[v];if(x.dataset.precedence===r)m=x;else if(m!==h)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(t,r.firstChild))}function tf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function nf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var ao=null;function Dg(t,r,l){if(ao===null){var o=new Map,h=ao=new Map;h.set(l,o)}else h=ao,o=h.get(l),o||(o=new Map,h.set(l,o));if(o.has(t))return o;for(o.set(t,null),l=l.getElementsByTagName(t),h=0;h<l.length;h++){var m=l[h];if(!(m[Ma]||m[Ot]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(r)||"";v=t+v;var x=o.get(v);x?x.push(m):o.set(v,[m])}}return o}function zg(t,r,l){t=t.ownerDocument||t,t.head.insertBefore(l,r==="title"?t.querySelector("head > title"):null)}function Aw(t,r,l){if(l===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Ng(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Cw(t,r,l,o){if(l.type==="stylesheet"&&(typeof o.media!="str
10ing"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var h=ca(o.href),m=r.querySelector(bl(h));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=lo.bind(t),r.then(t,t)),l.state.loading|=4,l.instance=m,At(m);return}m=r.ownerDocument||r,o=Og(o),(h=En.get(h))&&tf(o,h),m=m.createElement("link"),At(m);var v=m;v._p=new Promise(function(x,O){v.onload=x,v.onerror=O}),Nt(m,"link",o),l.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=lo.bind(t),r.addEventListener("load",l),r.addEventListener("error",l))}}var rf=0;function Rw(t,r){return t.stylesheets&&t.count===0&&oo(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var o=setTimeout(function(){if(t.stylesheets&&oo(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+r);0<t.imgBytes&&rf===0&&(rf=62500*uw());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&oo(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>rf?50:800)+r);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var so=null;function oo(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,so=new Map,r.forEach(Ow,t),so=null,lo.call(t))}function Ow(t,r){if(!(r.state.loading&4)){var l=so.get(t);if(l)var o=l.get(null);else{l=new Map,so.set(t,l);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var v=h[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),o=v)}o&&l.set(null,o)}h=r.instance,v=h.getAttribute("data-precedence"),m=l.get(v)||o,m===o&&l.set(null,h),l.set(v,h),this.count++,o=lo.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),m?m.parentNode.insertBefore(h,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var wl={$$typeof:j,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function jw(t,r,l,o,h,m,v,x,O){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Lg(t,r,l,o,h,m,v,x,O,I,G,K){return t=new jw(t,r,l,v,O,I,G,K,x),r=1,m===!0&&(r|=24),m=rn(3,null,null,r),t.current=m,m.stateNode=t,r=Mu(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:o,isDehydrated:l,cache:r},Pu(m),t}function Mg(t){return t?(t=qi,t):qi}function Ug(t,r,l,o,h,m){h=Mg(h),o.context===null?o.context=h:o.pendingContext=h,o=Rr(r),o.payload={element:l},m=m===void 0?null:m,m!==null&&(o.callback=m),l=Or(t,o,r),l!==null&&(Jt(l,t,r),Wa(l,t,r))}function Bg(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function af(t,r){Bg(t,r),(t=t.alternate)&&Bg(t,r)}function Ig(t){if(t.tag===13||t.tag===31){var r=ii(t,67108864);r!==null&&Jt(r,t,67108864),af(t,67108864)}}function Pg(t){if(t.tag===13||t.tag===31){var r=un();r=Wo(r);var l=ii(t,r);l!==null&&Jt(l,t,r),af(t,r)}}var uo=!0;function Dw(t,r,l,o){var h=P.T;P.T=null;var m=ee.p;try{ee.p=2,lf(t,r,l,o)}finally{ee.p=m,P.T=h}}function zw(t,r,l,o){var h=P.T;P.T=null;var m=ee.p;try{ee.p=8,lf(t,r,l,o)}finally{ee.p=m,P.T=h}}function lf(t,r,l,o){if(uo){var h=sf(o);if(h===null)Gc(t,r,o,co,l),qg(t,o);else if(Lw(h,t,r,l,o))o.stopPropagation();else if(qg(t,o),r&4&&-1<Nw.indexOf(t)){for(;h!==null;){var m=ji(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=Ut(m.pendingLanes);if(v!==0){var x=m;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var O=1<<31-De(v);x.entanglements[1]|=O,v&=~O}qn(m),(Ge&6)===0&&(Fs=J()+500,ml(0))}}break;case 31:case 13:x=ii(m,2),x!==null&&Jt(x,m,2),Ks(),af(m,2)}if(m=sf(o),m===null&&Gc(t,r,o,co,l),m===h)break;h=m}h!==null&&o.stopPropagation()}else Gc(t,r,o,null,l)}}function sf(t){return t=ou(t),of(t)}var co=null;function of(t){if(co=null,t=Oi(t),t!==null){var r=u(t);if(r===null)t=null;else{var l=r.tag;if(l===13){if(t=c(r),t!==null)return t;t=null}else if(l===31){if(t=f(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return co=t,null}function Hg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 6,255 bytes, line 10
10:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case U:return 2;case Y:return 8;case se:case ye:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var uf=!1,Hr=null,qr=null,$r=null,xl=new Map,Sl=new Map,Vr=[],Nw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qg(t,r){switch(t){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":xl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(r.pointerId)}}function El(t,r,l,o,h,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:l,eventSystemFlags:o,nativeEvent:m,targetContainers:[h]},r!==null&&(r=ji(r),r!==null&&Ig(r)),t):(t.eventSystemFlags|=o,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function Lw(t,r,l,o,h){switch(r){case"focusin":return Hr=El(Hr,t,r,l,o,h),!0;case"dragenter":return qr=El(qr,t,r,l,o,h),!0;case"mouseover":return $r=El($r,t,r,l,o,h),!0;case"pointerover":var m=h.pointerId;return xl.set(m,El(xl.get(m)||null,t,r,l,o,h)),!0;case"gotpointercapture":return m=h.pointerId,Sl.set(m,El(Sl.get(m)||null,t,r,l,o,h)),!0}return!1}function $g(t){var r=Oi(t.target);if(r!==null){var l=u(r);if(l!==null){if(r=l.tag,r===13){if(r=c(l),r!==null){t.blockedOn=r,rd(t.priority,function(){Pg(l)});return}}else if(r===31){if(r=f(l),r!==null){t.blockedOn=r,rd(t.priority,function(){Pg(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fo(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=sf(t.nativeEvent);if(l===null){l=t.nativeEvent;var o=new l.constructor(l.type,l);su=o,l.target.dispatchEvent(o),su=null}else return r=ji(l),r!==null&&Ig(r),t.blockedOn=l,!1;r.shift()}return!0}function Vg(t,r,l){fo(t)&&l.delete(r)}function Mw(){uf=!1,Hr!==null&&fo(Hr)&&(Hr=null),qr!==null&&fo(qr)&&(qr=null),$r!==null&&fo($r)&&($r=null),xl.forEach(Vg),Sl.forEach(Vg)}function ho(t,r){t.blockedOn===r&&(t.blockedOn=null,uf||(uf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Mw)))}var po=null;function Gg(t){po!==t&&(po=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){po===t&&(po=null);for(var r=0;r<t.length;r+=3){var l=t[r],o=t[r+1],h=t[r+2];if(typeof o!="function"){if(of(o||l)===null)continue;break}var m=ji(l);m!==null&&(t.splice(r,3),r-=3,lc(m,{pending:!0,data:h,method:l.method,action:o},o,h))}}))}function ha(t){function r(O){return ho(O,t)}Hr!==null&&ho(Hr,t),qr!==null&&ho(qr,t),$r!==null&&ho($r,t),xl.forEach(r),Sl.forEach(r);for(var l=0;l<Vr.length;l++){var o=Vr[l];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Vr.length&&(l=Vr[0],l.blockedOn===null);)$g(l),l.blockedOn===null&&Vr.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var h=l[o],m=l[o+1],v=h[Gt]||null;if(typeof m=="function")v||Gg(l);else if(v){var x=null;if(m&&m.hasAttribute("formAction")){if(h=m,v=m[Gt]||null)x=v.formAction;else if(of(h)!==null)continue}else x=v.action;typeof x=="function"?l[o+1]=x:(l.splice(o,3),o-=3),Gg(l)}}}function Fg(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return h=v})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function cf(t){this._internalRoot=t}mo.prototype.render=cf.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(a(409));var l=r.current,o=un();Ug(l,o,t,r,null,null)},mo.prototype.unmount=cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Ug(t.current,2,null,t,null,null),Ks(),r[Ri]=null}};function mo(t){this._internalRoot=t}mo.prototype.unstable_scheduleHydration=function(t){if(t){var r=nd();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Vr.length&&r!==0&&r<Vr[l].priority;l++);Vr.splice(l,0,t),l===0&&$g(t)}};var Yg=n.version;if(Yg!=="19.2.4")throw Error(a(527,Yg,"19.2.4"));ee.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=p(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var Uw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{dt=go.inject(Uw),Me=go}catch{}}return Tl.createRoot=function(t,r){if(!s(t))throw Error(a(299));var l=!1,o="",h=em,m=tm,v=nm;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=Lg(t,1,!1,null,null,l,o,null,h,m,v,Fg),t[Ri]=r.current,Vc(t),new cf(r)},Tl.hydrateRoot=function(t,r,l){if(!s(t))throw Error(a(299));var o=!1,h="",m=em,v=tm,x=nm,O=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(O=l.formState)),r=Lg(t,1,!0,r,l??null,o,h,O,m,v,x,Fg),r.context=Mg(null),l=r.current,o=un(),o=Wo(o),h=Rr(o),h.callback=null,Or(l,h,o),l=o,r.current.lanes=l,tn(r,l),qn(r),t[Ri]=r.current,Vc(t),new mo(r)},Tl.version="19.2.4",Tl}var ry;function Xw(){if(ry)return df.exports;ry=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),df.exports=Kw(),df.exports}var Qw=Xw();const Jw="modulepreload",Zw=function(e){return"/"+e},iy={},ae=function(n,i,a){let s=Promise.resolve();if(i&&i.length>0){let d=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=d(i.map(p=>{if(p=Zw(p),p in iy)return;iy[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":Jw,g||(_.as="script"),_.crossOrigin="",_.href=p,f&&_.setAttribute("nonce",f),document.head.appendChild(_),g)return new Promise((b,S)=>{_.addEventListener("load",b),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};var ay="popstate";function ly(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Ww(e={}){function n(a,s){let u=s.state?.masked,{pathname:c,search:f,hash:d}=u||a.location;return Kf("",{pathname:c,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default",u?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function i(a,s){return typeof s=="string"?s:Hl(s)}return tx(n,i,null,e)}function ut(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Tn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function ex(){return Math.random().toString(36).substring(2,10)}function sy(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Kf(e,n,i=null,a,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ca(n):n,state:i,key:n&&n.key||a||ex(),unstable_mask:s}}function Hl({pathname:e="/",search:n="",hash:i=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Ca(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substring(i),e=e.substring(0,i));let a=e.indexOf("?");a>=0&&(n.search=e.substring(a),e=e.substring(0,a)),e&&(n.pathname=e)}return n}function tx(e,n,i,a={}){let{window:s=document.defaultView,v5Compat:u=!1}=a,c=s.history,f="POP",d=null,p=g();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function g(){return(c.state||{idx:null}).idx}function y(){f="POP";let C=g(),A=C==null?null:C-p;p=C,d&&d({action:f,location:T.location,delta:A})}function _(C,A){f="PUSH";let N=ly(C)?C:Kf(T.location,C,A);p=g()+1;let j=sy(N,p),X=T.createHref(N.unstable_mask||N);try{c.pushState(j,"",X)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;s.location.assign(X)}u&&d&&d({action:f,location:T.location,delta:1})}function b(C,A){f="REPLACE";let N=ly(C)?C:Kf(T.location,C,A);p=g();let j=sy(N,p),X=T.createHref(N.unstable_mask||N);c.replaceState(j,"",X),u&&d&&d({action:f,location:T.location,delta:0})}function S(C){return nx(C)}let T={get action(){return f},get location(){return e(s,c)},listen(C){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(ay,y),d=C,()=>{s.removeEventListener(ay,y),d=null}},createHref(C){return n(s,C)},createURL:S,encodeLocation(C){let A=S(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:_,replace:b,go(C){return c.go(C)}};return T}function nx(e,n=!1){let i="http://localhost";
10typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ut(i,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Hl(e);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=i+a),new URL(a,i)}function Iv(e,n,i="/"){return rx(e,n,i,!1)}function rx(e,n,i,a){let s=typeof n=="string"?Ca(n):n,u=pr(s.pathname||"/",i);if(u==null)return null;let c=Pv(e);ix(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let p=mx(u);f=dx(c[d],p,a)}return f}function Pv(e,n=[],i=[],a="",s=!1){let u=(c,f,d=s,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(a)&&d)return;ut(g.relativePath.startsWith(a),`Absolute route path "${g.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(a.length)}let y=Gn([a,g.relativePath]),_=i.concat(g);c.children&&c.children.length>0&&(ut(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Pv(c.children,n,_,y,d)),!(c.path==null&&!c.index)&&n.push({path:y,score:fx(y,c.index),routesMeta:_})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))u(c,f);else for(let d of Hv(c.path))u(c,f,!0,d)}),n}function Hv(e){let n=e.split("/");if(n.length===0)return[];let[i,...a]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(a.length===0)return s?[u,""]:[u];let c=Hv(a.join("/")),f=[];return f.push(...c.map(d=>d===""?u:[u,d].join("/"))),s&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function ix(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:hx(n.routesMeta.map(a=>a.childrenIndex),i.routesMeta.map(a=>a.childrenIndex)))}var ax=/^:[\w-]+$/,lx=3,sx=2,ox=1,ux=10,cx=-2,oy=e=>e==="*";function fx(e,n){let i=e.split("/"),a=i.length;return i.some(oy)&&(a+=cx),n&&(a+=sx),i.filter(s=>!oy(s)).reduce((s,u)=>s+(ax.test(u)?lx:u===""?ox:ux),a)}function hx(e,n){return e.length===n.length&&e.slice(0,-1).every((a,s)=>a===n[s])?e[e.length-1]-n[n.length-1]:0}function dx(e,n,i=!1){let{routesMeta:a}=e,s={},u="/",c=[];for(let f=0;f<a.length;++f){let d=a[f],p=f===a.length-1,g=u==="/"?n:n.slice(u.length)||"/",y=zo({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},g),_=d.route;if(!y&&p&&i&&!a[a.length-1].route.index&&(y=zo({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!y)return null;
10Object.assign(s,y.params),c.push({params:s,pathname:Gn([u,y.pathname]),pathnameBase:bx(Gn([u,y.pathnameBase])),route:_}),y.pathnameBase!=="/"&&(u=Gn([u,y.pathnameBase]))}return c}function zo(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,a]=px(e.path,e.caseSensitive,e.end),s=n.match(i);if(!s)return null;let u=s[0],c=u.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:a.reduce((p,{paramName:g,isOptional:y},_)=>{if(g==="*"){let S=f[_]||"";c=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[_];return y&&!b?p[g]=void 0:p[g]=(b||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:e}}function px(e,n=!1,i=!0){Tn(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 a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d,p,g)=>{if(a.push({paramName:f,isOptional:d!=null}),d){let y=g.charAt(p+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),a]}function mx(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Tn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function pr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,a=e.charAt(i);return a&&a!=="/"?null:e.slice(i)||"/"}var gx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function yx(e,n="/"){let{pathname:i,search:a="",hash:s=""}=typeof e=="string"?Ca(e):e,u;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?u=uy(i.substring(1),"/"):u=uy(i,n)):u=n,{pathname:u,search:_x(a),hash:wx(s)}}function uy(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function yf(e,n,i,a){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vx(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function _h(e){let n=vx(e);return n.map((i,a)=>a===n.length-1?i.pathname:i.pathnameBase)}function Ho(e,n,i,a=!1){let s;typeof e=="string"?s=Ca(e):(s={...e},ut(!s.pathname||!s.pathname.includes("?"),yf("?","pathname","search",s)),ut(!s.pathname||!s.pathname.includes("#"),yf("#","pathname","hash",s)),ut(!s.search||!s.search.includes("#"),yf("#","search","hash",s)));let u=e===""||s.pathname==="",c=u?"/":s.pathname,f;if(c==null)f=i;else{let y=n.length-1;if(!a&&c.startsWith("..")){let _=c.split("/");for(;_[0]==="..";)_.shift(),y-=1;s.pathname=_.join("/")}f=y>=0?n[y]:"/"}let d=yx(s,f),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&i.endsWith("/");return!d.pathname.endsWith("/")&&(p||g)&&(d.pathname+="/"),d}var Gn=e=>e.join("/").replace(/\/\/+/g,"/"),bx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_x=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,xx=class{constructor(e,n,i,a=!1){this.status=e,this.statusText=n||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Sx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ex(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var qv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $v(e,n){let i=e;
10if(typeof i!="string"||!gx.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let a=i,s=!1;if(qv)try{let u=new URL(window.location.href),c=i.startsWith("//")?new URL(u.protocol+i):new URL(i),f=pr(c.pathname,n);c.origin===u.origin&&f!=null?i=f+c.search+c.hash:s=!0}catch{Tn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:s,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Vv=["POST","PUT","PATCH","DELETE"];new Set(Vv);var kx=["GET",...Vv];new Set(kx);var Ra=k.createContext(null);Ra.displayName="DataRouter";var qo=k.createContext(null);qo.displayName="DataRouterState";var Tx=k.createContext(!1),Gv=k.createContext({isTransitioning:!1});Gv.displayName="ViewTransition";var Ax=k.createContext(new Map);Ax.displayName="Fetchers";var Cx=k.createContext(null);Cx.displayName="Await";var pn=k.createContext(null);pn.displayName="Navigation";var Jl=k.createContext(null);Jl.displayName="Location";var An=k.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var wh=k.createContext(null);wh.displayName="RouteError";var Fv="REACT_ROUTER_ERROR",Rx="REDIRECT",Ox="ROUTE_ERROR_RESPONSE";function jx(e){if(e.startsWith(`${Fv}:${Rx}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function Dx(e){if(e.startsWith(`${Fv}:${Ox}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new xx(n.status,n.statusText,n.data)}catch{}}function zx(e,{relative:n}={}){ut(Oa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:a}=k.useContext(pn),{hash:s,pathname:u,search:c}=Zl(e,{relative:n}),f=u;return i!=="/"&&(f=u==="/"?i:Gn([i,u])),a.createHref({pathname:f,search:c,hash:s})}function Oa(){return k.useContext(Jl)!=null}function Cn(){return ut(Oa(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(Jl).location}var Yv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kv(e){k.useContext(pn).static||k.useLayoutEffect(e)}function xh(){let{isDataRoute:e}=k.useContext(An);return e?Kx():Nx()}function Nx(){ut(Oa(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(Ra),{basename:n,navigator:i}=k.useContext(pn),{matches:a}=k.useContext(An),{pathname:s}=Cn(),u=JSON.stringify(_h(a)),c=k.useRef(!1);return Kv(()=>{c.current=!0}),k.useCallback((d,p={})=>
10{if(Tn(c.current,Yv),!c.current)return;if(typeof d=="number"){i.go(d);return}let g=Ho(d,JSON.parse(u),s,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Gn([n,g.pathname])),(p.replace?i.replace:i.push)(g,p.state,p)},[n,i,u,s,e])}var Lx=k.createContext(null);function Mx(e){let n=k.useContext(An).outlet;return k.useMemo(()=>n&&k.createElement(Lx.Provider,{value:e},n),[n,e])}function PD(){let{matches:e}=k.useContext(An),n=e[e.length-1];return n?n.params:{}}function Zl(e,{relative:n}={}){let{matches:i}=k.useContext(An),{pathname:a}=Cn(),s=JSON.stringify(_h(i));return k.useMemo(()=>Ho(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function Ux(e,n){return Xv(e,n)}function Xv(e,n,i){ut(Oa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=k.useContext(pn),{matches:s}=k.useContext(An),u=s[s.length-1],c=u?u.params:{},f=u?u.pathname:"/",d=u?u.pathnameBase:"/",p=u&&u.route;{let C=p&&p.path||"";Jv(f,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
12Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let g=Cn(),y;if(n){let C=typeof n=="string"?Ca(n):n;ut(d==="/"||C.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${C.pathname}" was given in the \`location\` prop.`),y=C}else y=g;let _=y.pathname||"/",b=_;if(d!=="/"){let C=d.replace(/^\//,"").split("/");b="/"+_.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=Iv(e,{pathname:b});Tn(p||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Tn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=qx(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Gn([d,a.encodeLocation?a.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:Gn([d,a.encodeLocation?a.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),s,i);return n&&T?k.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},T):T}function Bx(){let e=Yx(),n=Sx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:u},"ErrorBoundary")," or"," ",k.createElement("code",{style:u},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},n),i?k.createElement("pre",{style:s},i):null,c)}var Ix=k.createElement(Bx,null),Qv=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const i=Dx(e.digest);i&&(e=i)}let n=e!==void 0?k.createElement(An.Provider,{value:this.props.routeContext},k.createElement(wh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(Px,{error:e},n):n}};Qv.contextType=Tx;var vf=new WeakMap;function Px({children:e,error:n}){let{basename:i}=k.useContext(pn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let a=jx(n.digest);if(a){let s=vf.get(n);if(s)throw s;let u=$v(a.location,i);if(qv&&!vf.get(n))if(u.isExternal||a.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:a.replace}));throw vf.set(n,c),c}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function Hx({routeContext:e,match:n,children:i}){let a=k.useContext(Ra);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(An.Provider,{value:e},i)}function qx(e,n=[],i){let a=i?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,u=a?.errors;if(u!=null){let g=s.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);ut(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let c=!1,f=-1;if(i&&a){c=a.renderFallback;for(let g=0;g<s.length;g++){let y=s[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(f=g),y.route.id){let{loaderData:_,errors:b}
12=a,S=y.route.loader&&!_.hasOwnProperty(y.route.id)&&(!b||b[y.route.id]===void 0);if(y.route.lazy||S){i.isStatic&&(c=!0),f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}}let d=i?.onError,p=a&&d?(g,y)=>{d(g,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:Ex(a.matches),errorInfo:y})}:void 0;return s.reduceRight((g,y,_)=>{let b,S=!1,T=null,C=null;a&&(b=u&&y.route.id?u[y.route.id]:void 0,T=y.route.errorElement||Ix,c&&(f<0&&_===0?(Jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,C=null):f===_&&(S=!0,C=y.route.hydrateFallbackElement||null)));let A=n.concat(s.slice(0,_+1)),N=()=>{let j;return b?j=T:S?j=C:y.route.Component?j=k.createElement(y.route.Component,null):y.route.element?j=y.route.element:j=g,k.createElement(Hx,{match:y,routeContext:{outlet:g,matches:A,isDataRoute:a!=null},children:j})};return a&&(y.route.ErrorBoundary||y.route.errorElement||_===0)?k.createElement(Qv,{location:a.location,revalidation:a.revalidation,component:T,error:b,children:N(),routeC
12ontext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):N()},null)}function Sh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function $x(e){let n=k.useContext(Ra);return ut(n,Sh(e)),n}function Vx(e){let n=k.useContext(qo);return ut(n,Sh(e)),n}function Gx(e){let n=k.useContext(An);return ut(n,Sh(e)),n}function Eh(e){let n=Gx(e),i=n.matches[n.matches.length-1];return ut(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function Fx(){return Eh("useRouteId")}function Yx(){let e=k.useContext(wh),n=Vx("useRouteError"),i=Eh("useRouteError");return e!==void 0?e:n.errors?.[i]}function Kx(){let{router:e}=$x("useNavigate"),n=Eh("useNavigate"),i=k.useRef(!1);return Kv(()=>{i.current=!0}),k.useCallback(async(s,u={})=>{Tn(i.current,Yv),i.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...u}))},[e,n])}var cy={};function Jv(e,n,i){!n&&!cy[e]&&(cy[e]=!0,Tn(!1,i))}k.memo(Xx);function Xx({routes:e,future:n,state:i,isStatic:a,onError:s}){return Xv(e,void 0,{state:i,isStatic:a,onError:s})}function Vn({to:e,replace:n,state:i,relative:a}){ut(Oa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=k.useContext(pn);Tn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=k.useContext(An),{pathname:c}=Cn(),f=xh(),d=Ho(e,_h(u),c,a==="path"),p=JSON.stringify(d);return k.useEffect(()=>{f(JSON.parse(p),{replace:n,state:i,relative:a})},[f,p,a,n,i]),null}function kh(e){return Mx(e.context)}function W(e){ut(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Qx({basename:e="/",children:n=null,location:i,navigationType:a="POP",navigator:s,static:u=!1,unstable_useTransitions:c}){ut(!Oa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:f,navigator:s,static:u,unstable_useTransitions:c,future:{}}),[f,s,u,c]);typeof i=="string"&&(i=Ca(i));let{pathname:p="/",search:g="",hash:y="",state:_=null,key:b="default",unstable_mask:S}=i,T=k.useMemo(()=>{let C=pr(p,f);return C==null?null:{location:{pathname:C,search:g,hash:y,state:_,key:b,unstable_mask:S},navigationType:a}},[f,p,g,y,_,b,a,S]);return Tn(T!=null,`<Router basename="${f}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:k.createElement(pn.Provider,{value:d},k.createElement(Jl.Provider,{children:n,value:T}))}function Jx({children:e,location:n}){return Ux(Xf(e),n)}function Xf(e,n=[]){let i=[];return k.Children.forEach(e,(a,s)=>{if(!k.isValidElement(a))return;let u=[...n,s];if(a.type===k.Fragment){i.push.apply(i,Xf(a.props.children,u));return}ut(a.type===W,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=Xf(a.props.children,u)),i.push(c)}),i}var Oo="get",jo="application/x-www-form-urlencoded";function $o(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Zx(e){return $o(e)&&e.tagName.toLowerCase()==="button"}function Wx(e){return $o(e)&&e.tagName.toLowerCase()==="form"}function eS(e){return $o(e)&&e.tagName.toLowerCase()==="input"}function tS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nS(e,n){return e.button===0&&(!n||n==="_self")&&!tS(e)}function Qf(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let a=e[i];return n.concat(Array.isArray(a)?a.map(s=>[i,s]):[[i,a]])},[]))}function rS(e,n){let i=Qf(e);
12return n&&n.forEach((a,s)=>{i.has(s)||n.getAll(s).forEach(u=>{i.append(s,u)})}),i}var yo=null;function iS(){if(yo===null)try{new FormData(document.createElement("form"),0),yo=!1}catch{yo=!0}return yo}var aS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bf(e){return e!=null&&!aS.has(e)?(Tn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jo}"`),null):e}function lS(e,n){let i,a,s,u,c;if(Wx(e)){let f=e.getAttribute("action");a=f?pr(f,n):null,i=e.getAttribute("method")||Oo,s=bf(e.getAttribute("enctype"))||jo,u=new FormData(e)}else if(Zx(e)||eS(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(a=d?pr(d,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||Oo,s=bf(e.getAttribute("formenctype"))||bf(f.getAttribute("enctype"))||jo,u=new FormData(f,e),!iS()){let{name:p,type:g,value:y}=e;if(g==="image"){let _=p?`${p}.`:"";u.append(`${_}x`,"0"),u.append(`${_}y`,"0")}else p&&u.append(p,y)}}else{if($o(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Oo,a=null,s=jo,c=e}return u&&s==="text/plain"&&(c=u,u=void 0),{action:a,method:i.toLowerCase(),encType:s,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Th(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function sS(e,n,i,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${a}`:s.pathname=`${s.pathname}.${a}`:s.pathname==="/"?s.pathname=`_root.${a}`:n&&pr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function oS(e,n){if(e.id in n)return n[e.id];try{let i=await import(e.module);return n[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function uS(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function cS(e,n,i){let a=await Promise.all(e.map(async s=>{let u=n.routes[s.route.id];if(u){let c=await oS(u,i);return c.links?c.links():[]}return[]}));return pS(a.flat(1).filter(uS).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function fy(e,n,i,a,s,u){let c=(d,p)=>i[p]?d.route.id!==i[p].route.id:!0,f=(d,p)=>i[p].pathname!==d.pathname||i[p].route.path?.endsWith("*")&&i[p].params["*"]!==d.params["*"];return u==="assets"?n.filter((d,p)=>c(d,p)||f(d,p)):u==="data"?n.filter((d,p)=>{let g=a.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(c(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function fS(e,n,{includeHydrateFallback:i}={}){return hS(e.map(a=>{let s=n.routes[a.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),i&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function hS(e){return[...new Set(e)]}function dS(e){let n={},i=Object.keys(e).sort();for(let a of i)n[a]=e[a];return n}function pS(e,n){let i=new Set;return new Set(n),e.reduce((a,s)=>{let u=JSON.stringify(dS(s));return i.has(u)||(i.add(u),a.push({key:u,link:s})),a},[])}function Zv(){let e=k.useContext(Ra);return Th(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function mS(){let e=k.useContext(qo);return Th(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ah=k.createContext(void 0);Ah.displayName="FrameworkContext";function Wv(){let e=k.useContext(Ah);return Th(e,"You must render this element inside a <HydratedRouter> element"),e}function gS(e,n){let i=k.useContext(Ah),[a,s]=k.useState(!1),[u,c]=k.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:g,onTouchStart:y}=n,_=k.useRef(null);k.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=A=>{A.forEach(N=>{c(N.isIntersecting)})},C=new IntersectionObserver(T,{threshold:.5});return _.current&&C.observe(_.current),()=>{C.disconnect()}}},[e]),k.useEffect(()=>{if(a){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[a]);let b=()=>{s(!0)},S=()=>{s(!1),c(!1)};return i?e!=="intent"?[u,_,{}]:[u,_,{onFocus:Al(f,b),onBlur:Al(d,S),onMouseEnter:Al(p,b),onMouseLeave:Al(g,S),onTouchStart:Al(y,b)}]:[!1,_,{}]}function Al(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function yS({page:e,...n}){let{router:i}=Zv(),a=k.useMemo(()=>Iv(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?k.createElement(bS,{page:e,matches:a,...n}):null}function vS(e){let{manifest:n,routeModules:i}=Wv(),[a,s]=k.useState([]);return k.useEffect(()=>{let u=!1;return cS(e,n,i).then(c=>{u||s(c)}),()=>{u=!0}},[e,n,i]),a}function bS({page:e,matches:n,...i}){let a=Cn(),{future:s,manifest:u,routeModules:c}=Wv(),{basename:f}=Zv(),{loaderData:d,matches:p}=mS(),g=k.useMemo(()=>fy(e,n,p,u,a,"data"),[e,n,p,u,a]),y=k.useMemo(()=>fy(e,n,p,u,a,"assets"),[e,n,p,u,a]),_=k.useMemo(()=>
12{if(e===a.pathname+a.search+a.hash)return[];let T=new Set,C=!1;if(n.forEach(N=>{let j=u.routes[N.route.id];!j||!j.hasLoader||(!g.some(X=>X.route.id===N.route.id)&&N.route.id in d&&c[N.route.id]?.shouldRevalidate||j.hasClientLoader?C=!0:T.add(N.route.id))}),T.size===0)return[];let A=sS(e,f,s.unstable_trailingSlashAwareDataRequests,"data");return C&&T.size>0&&A.searchParams.set("_routes",n.filter(N=>T.has(N.route.id)).map(N=>N.route.id).join(",")),[A.pathname+A.search]},[f,s.unstable_trailingSlashAwareDataRequests,d,a,u,g,n,e,c]),b=k.useMemo(()=>fS(y,u),[y,u]),S=vS(y);return k.createElement(k.Fragment,null,_.map(T=>k.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),b.map(T=>k.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),S.map(({key:T,link:C})=>k.createElement("link",{key:T,nonce:i.nonce,...C,crossOrigin:C.crossOrigin??i.crossOrigin})))}function _S(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var wS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wS&&(window.__reactRouterVersion="7.13.1")}catch{}function xS({basename:e,children:n,unstable_useTransitions:i,window:a}){let s=k.useRef();s.current==null&&(s.current=Ww({window:a,v5Compat:!0}));let u=s.current,[c,f]=k.useState({action:u.action,location:u.location}),d=k.useCallback(p=>{i===!1?f(p):k.startTransition(()=>f(p))},[i]);return k.useLayoutEffect(()=>u.listen(d),[u,d]),k.createElement(Qx,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:i})}var eb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ch=k.forwardRef(function({onClick:n,discover:i="render",prefetch:a="none",relative:s,reloadDocument:u,replace:c,unstable_mask:f,state:d,target:p,to:g,preventScrollReset:y,viewTransition:_,unstable_defaultShouldRevalidate:b,...S},T){let{basename:C,navigator:A,unstable_useTransitions:N}=k.useContext(pn),j=typeof g=="string"&&eb.test(g),X=$v(g,C);g=X.to;let re=zx(g,{relative:s}),M=Cn(),Z=null;if(f){let te=Ho(f,[],M.unstable_mask?M.unstable_mask.pathname:"/",!0);C!=="/"&&(te.pathname=te.pathname==="/"?C:Gn([C,te.pathname])),Z=A.createHref(te)}let[ue,fe,q]=gS(a,S),Q=kS(g,{replace:c,unstable_mask:f,state:d,target:p,preventScrollReset:y,relative:s,viewTransition:_,unstable_defaultShouldRevalidate:b,unstable_useTransitions:N});function ne(te){n&&n(te),te.defaultPrevented||Q(te)}let we=!(X.isExternal||u),oe=k.createElement("a",{...S,...q,href:(we?Z:void 0)||X.absoluteURL||re,onClick:we?ne:n,ref:_S(T,fe),target:p,"data-discover":!j&&i==="render"?"true":void 0});return ue&&!j?k.createElement(k.Fragment,null,oe,k.createElement(yS,{page:re})):oe});Ch.displayName="Link";var tb=k.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:a="",end:s=!1,style:u,to:c,viewTransition:f,children:d,...p},g){let y=Zl(c,{relative:p.relative}),_=Cn(),b=k.useContext(qo),{navigator:S,basename:T}=k.useContext(pn),C=b!=null&&OS(y)&&f===!0,A=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,N=_.pathname,j=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(N=N.toLowerCase(),j=j?j.toLowerCase():null,A=A.toLowerCase()),j&&T&&(j=pr(j,T)||j);const X=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let re=N===A||!s&&N.startsWith(A)&&N.charAt(X)==="/",M=j!=null&&(j===A||!s&&j.startsWith(A)&&j.charAt(A.length)==="/"),Z={isActive:re,isPending:M,isTransitioning:C},ue=re?n:void 0,fe;typeof a=="function"?fe=a(Z):fe=[a,re?"active":null,M?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let q=typeof u=="function"?u(Z):u;return k.createElement(Ch,{...p,"aria-current":ue,className:fe,ref:g,style:q,to:c,viewTransition:f},typeof d=="function"?d(Z):d)});tb.displayName="NavLink";var SS=k.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:a,replace:s,state:u,method:c=Oo,action:f,onSubmit:d,relative:p,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:_,...b},S)=>{let{unstable_useTransitions:T}=k.useContext(pn),C=CS(),A=RS(f,{relative:p}),N=c.toLowerCase()==="get"?"get":"post",j=typeof f=="string"&&eb.test(f),X=re=>{if(d&&d(re),re.defaultPrevented)return;re.preventDefault();let M=re.nativeEvent.submitter,Z=M?.getAttribute("formmethod")||c,ue=()=>C(M||re.currentTarget,{fetcherKey:n,method:Z,navigate:i,replace:s,state:u,relative:p,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:_});T&&i!==!1?k.startTransition(()=>ue()):ue()};return k.createElement("form",{ref:S,method:N,action:A,onSubmit:a?d:X,...b,"data-discover":!j&&e==="render"?"true":void 0})});SS.displayName="Form";function ES(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nb(e){let n=k.useContext(Ra);return ut(n,ES(e)),n}function kS(e,{target:n,replace:i,unstable_mask:a,state:s,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:p}={}){let g=xh(),y=Cn(),_=Zl(e,{relative:c}
12);return k.useCallback(b=>{if(nS(b,n)){b.preventDefault();let S=i!==void 0?i:Hl(y)===Hl(_),T=()=>g(e,{replace:S,unstable_mask:a,state:s,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d});p?k.startTransition(()=>T()):T()}},[y,g,_,i,a,s,n,e,u,c,f,d,p])}function HD(e){Tn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=k.useRef(Qf(e)),i=k.useRef(!1),a=Cn(),s=k.useMemo(()=>rS(a.search,i.current?null:n.current),[a.search]),u=xh(),c=k.useCallback((f,d)=>{const p=Qf(typeof f=="function"?f(new URLSearchParams(s)):f);i.current=!0,u("?"+p,d)},[u,s]);return[s,c]}var TS=0,AS=()=>`__${String(++TS)}__`;function CS(){let{router:e}=nb("useSubmit"),{basename:n}=k.useContext(pn),i=Fx(),a=e.fetch,s=e.navigate;return k.useCallback(async(u,c={})=>{let{action:f,method:d,encType:p,formData:g,body:y}=lS(u,n);if(c.navigate===!1){let _=c.fetcherKey||AS();await a(_,i,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||d,formEncType:c.encType||p,flushSync:c.flushSync})}else await s(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||d,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,s,n,i])}function RS(e,{relative:n}={}){let{basename:i}=k.useContext(pn),a=k.useContext(An);ut(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),u={...Zl(e||".",{relative:n})},c=Cn();if(e==null){u.search=c.search;let f=new URLSearchParams(u.search),d=f.getAll("index");if(d.some(g=>g==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let g=f.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:Gn([i,u.pathname])),Hl(u)}function OS(e,{relative:n}={}){let i=k.useContext(Gv);ut(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=nb("useViewTransitionState"),s=Zl(e,{relative:n});if(!i.isTransitioning)return!1;let u=pr(i.currentLocation.pathname,a)||i.currentLocation.pathname,c=pr(i.nextLocation.pathname,a)||i.nextLocation.pathname;return zo(s.pathname,c)!=null||zo(s.pathname,u)!=null}function Vo(e,n){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(i[a[s]]=e[a[s]]);return i}function jS(e,n,i,a){function s(u){return u instanceof i?u:new i(function(c){c(u)})}return new(i||(i=Promise))(function(u,c){function f(g){try{p(a.next(g))}catch(y){c(y)}}function d(g){try{p(a.throw(g))}catch(y){c(y)}}function p(g){g.done?u(g.value):s(g.value).then(f,d)}p((a=a.apply(e,n||[])).next())})}const DS=e=>e?(...n)=>e(...n):(...n)=>fetch(...n);class Rh extends Error{constructor(n,i="FunctionsError",a){super(n),this.name=i,this.context=a}}class zS extends Rh{constructor(n){super("Failed to send a request to the Edge Function","FunctionsFetchError",n)}}class hy extends Rh{constructor(n){super("Relay Error invoking the Edge Function","FunctionsRelayError",n)}}class dy extends Rh{constructor(n){super("Edge Function returned a non-2xx status code","FunctionsHttpError",n)}}var Jf;(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"})(Jf||(Jf={}));class NS{constructor(n,{headers:i={},customFetch:a,region:s=Jf.Any}={}){this.url=n,this.headers=i,this.region=s,this.fetch=DS(a)}setAuth(n){this.headers.Authorization=`Bearer ${n}`}invoke(n){return jS(this,arguments,void 0,function*(i,a={}){var s;let u,c;try{const{headers:f,method:d,body:p,signal:g,timeout:y}=a;let _={},{region:b}=a;b||(b=this.region);const S=new URL(`${this.url}/${i}`);b&&b!=="any"&&(_["x-region"]=b,S.searchParams.set("forceFunctionRegion",b));let T;p&&(f&&!Object.prototype.hasOwnProperty.call(f,"Content-Type")||!f)?typeof Blob<"u"&&p instanceof Blob||p instanceof ArrayBuffer?(_["Content-Type"]="application/octet-stream",T=p):typeof p=="string"?(_["Content-Type"]="text/plain",T=p):typeof FormData<"u"&&p instanceof FormData?T=p:(_["Content-Type"]="application/json",T=JSON.stringify(p)):p&&typeof p!="string"&&!(typeof Blob<"u"&&p instanceof Blob)&&!(p instanceof ArrayBuffer)&&!(typeof FormData<"u"&&p instanceof FormData)?T=JSON.stringify(p):T=p;let C=g;y&&(c=new AbortController,u=setTimeout(()=>c.abort(),y),g?(C=c.signal,g.addEventListener("abort",()=>c.abort())):C=c.signal);const A=yield this.fetch(S.toString(),{method:d||"POST",headers:Object.assign(Object.assign(Object.assign({},_),this.headers),f),body:T,signal:C}).catch(re=>{throw new zS(re)}),N=A.headers.get("x-relay-error");
12if(N&&N==="true")throw new hy(A);if(!A.ok)throw new dy(A);let j=((s=A.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),X;return j==="application/json"?X=yield A.json():j==="application/octet-stream"||j==="application/pdf"?X=yield A.blob():j==="text/event-stream"?X=A:j==="multipart/form-data"?X=yield A.formData():X=yield A.text(),{data:X,error:null,response:A}}catch(f){return{data:null,error:f,response:f instanceof dy||f instanceof hy?f.context:void 0}}finally{u&&clearTimeout(u)}})}}var LS=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},MS=class{constructor(e){var n,i,a;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=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(i=e.isMaybeSingle)!==null&&i!==void 0?i:!1,this.urlLengthLimit=(a=e.urlLengthLimit)!==null&&a!==void 0?a:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){var i=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 a=this.fetch;let s=a(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async u=>{let c=null,f=null,d=null,p=u.status,g=u.statusText;if(u.ok){var y,_;if(i.method!=="HEAD"){var b;const A=await u.text();A===""||(i.headers.get("Accept")==="text/csv"||i.headers.get("Accept")&&(!((b=i.headers.get("Accept"))===null||b===void 0)&&b.includes("application/vnd.pgrst.plan+text"))?f=A:f=JSON.parse(A))}const T=(y=i.headers.get("Prefer"))===null||y===void 0?void 0:y.match(/count=(exact|planned|estimated)/),C=(_=u.headers.get("content-range"))===null||_===void 0?void 0:_.split("/");T&&C&&C.length>1&&(d=parseInt(C[1])),i.isMaybeSingle&&i.method==="GET"&&Array.isArray(f)&&(f.length>1?(c={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,d=null,p=406,g="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{var S;const T=await u.text();try{c=JSON.parse(T),Array.isArray(c)&&u.status===404&&(f=[],c=null,p=200,g="OK")}catch{u.status===404&&T===""?(p=204,g="No Content"):c={message:T}}if(c&&i.isMaybeSingle&&(!(c==null||(S=c.details)===null||S===void 0)&&S.includes("0 rows"))&&(c=null,p=200,g="OK"),c&&i.shouldThrowOnError)throw new LS(c)}return{error:c,data:f,count:d,status:p,statusText:g}});return this.shouldThrowOnError||(s=s.catch(u=>{var c;let f="",d="",p="";const g=u?.cause;if(g){var y,_,b,S;const A=(y=g?.message)!==null&&y!==void 0?y:"",N=(_=g?.code)!==null&&_!==void 0?_:"";f=`${(b=u?.name)!==null&&b!==void 0?b:"FetchError"}: ${u?.message}`,f+=`
13
14Caused by: ${(S=g?.name)!==null&&S!==void 0?S:"Error"}: ${A}`,N&&(f+=` (${N})`),g?.stack&&(f+=`
15${g.stack}`)}else{var T;f=(T=u?.stack)!==null&&T!==void 0?T:""}const C=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(p="",d="Request was aborted (timeout or manual cancellation)",C>this.urlLengthLimit&&(d+=`. Note: Your request URL is ${C} 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.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(p="",d="HTTP headers exceeded server limits (typically 16KB)",C>this.urlLengthLimit&&(d+=`. Your request URL is ${C} 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:`${(c=u?.name)!==null&&c!==void 0?c:"FetchError"}: ${u?.message}`,details:f,hint:d,code:p},data:null,count:null,status:0,statusText:""}}
15)),s.then(e,n)}returns(){return this}overrideTypes(){return this}},US=class extends MS{select(e){let n=!1;const i=(e??"*").split("").map(a=>/\s/.test(a)&&!n?"":(a==='"'&&(n=!n),a)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:n=!0,nullsFirst:i,foreignTable:a,referencedTable:s=a}={}){const u=s?`${s}.order`:"order",c=this.url.searchParams.get(u);return this.url.searchParams.set(u,`${c?`${c},`:""}${e}.${n?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:i=n}={}){const a=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${e}`),this}range(e,n,{foreignTable:i,referencedTable:a=i}={}){const s=typeof a>"u"?"offset":`${a}.offset`,u=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(u,`${n-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}explain({analyze:e=!1,verbose:n=!1,settings:i=!1,buffers:a=!1,wal:s=!1,format:u="text"}={}){var c;const f=[e?"analyze":null,n?"verbose":null,i?"settings":null,a?"buffers":null,s?"wal":null].filter(Boolean).join("|"),d=(c=this.headers.get("Accept"))!==null&&c!==void 0?c:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${u}; for="${d}"; options=${f};`),u==="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 py=new RegExp("[,()]");var _a=class extends US{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}regexMatch(e,n){return this.url.searchParams.append(e,`match.${n}`),this}regexIMatch(e,n){return this.url.searchParams.append(e,`imatch.${n}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}isDistinct(e,n){return this.url.searchParams.append(e,`isdistinct.${n}`),this}in(e,n){const i=Array.from(new Set(n)).map(a=>typeof a=="string"&&py.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(e,`in.(${i})`),this}notIn(e,n){const i=Array.from(new Set(n)).map(a=>typeof a=="string"&&py.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(e,`not.in.(${i})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:i,type:a}={}){let s="";a==="plain"?s="pl":a==="phrase"?s="ph":a==="websearch"&&(s="w");const u=i===void 0?"":`(${i})`;return this.url.searchParams.append(e,`${s}fts${u}.${n}`),this}match(e){return Object.entries(e).forEach(([n,i])=>{this.url.searchParams.append(n,`eq.${i}`)}),this}not(e,n,i){return this.url.searchParams.append(e,`not.${n}.${i}`),this}or(e,{foreignTable:n,referencedTable:i=n}={}){const a=i?`${i}.or`:"or";return this.url.searchParams.append(a,`(${e})`),this}filter(e,n,i){return this.url.searchParams.append(e,`${n}.${i}`),this}},BS=class{constructor(e,{headers:n={},schema:i,fetch:a,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(n),this.schema=i,this.fetch=a,this.urlLengthLimit=s}
15cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,n){const{head:i=!1,count:a}=n??{},s=i?"HEAD":"GET";let u=!1;const c=(e??"*").split("").map(p=>/\s/.test(p)&&!u?"":(p==='"'&&(u=!u),p)).join(""),{url:f,headers:d}=this.cloneRequestState();return f.searchParams.set("select",c),a&&d.append("Prefer",`count=${a}`),new _a({method:s,url:f,headers:d,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:n,defaultToNull:i=!0}={}){var a;const s="POST",{url:u,headers:c}=this.cloneRequestState();if(n&&c.append("Prefer",`count=${n}`),i||c.append("Prefer","missing=default"),Array.isArray(e)){const f=e.reduce((d,p)=>d.concat(Object.keys(p)),[]);if(f.length>0){const d=[...new Set(f)].map(p=>`"${p}"`);u.searchParams.set("columns",d.join(","))}}return new _a({method:s,url:u,headers:c,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:n,ignoreDuplicates:i=!1,count:a,defaultToNull:s=!0}={}){var u;const c="POST",{url:f,headers:d}=this.cloneRequestState();if(d.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),n!==void 0&&f.searchParams.set("on_conflict",n),a&&d.append("Prefer",`count=${a}`),s||d.append("Prefer","missing=default"),Array.isArray(e)){const p=e.reduce((g,y)=>g.concat(Object.keys(y)),[]);if(p.length>0){const g=[...new Set(p)].map(y=>`"${y}"`);f.searchParams.set("columns",g.join(","))}}return new _a({method:c,url:f,headers:d,schema:this.schema,body:e,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:n}={}){var i;const a="PATCH",{url:s,headers:u}=this.cloneRequestState();return n&&u.append("Prefer",`count=${n}`),new _a({method:a,url:s,headers:u,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var n;const i="DELETE",{url:a,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new _a({method:i,url:a,headers:s,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}};function ql(e){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ql(e)}function IS(e,n){if(ql(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,n);if(ql(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function PS(e){var n=IS(e,"string");return ql(n)=="symbol"?n:n+""}function HS(e,n,i){return(n=PS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function my(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,a)}return i}function vo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?my(Object(i),!0).forEach(function(a){HS(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):my(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}var qS=class rb{constructor(n,{headers:i={},schema:a,fetch:s,timeout:u,urlLengthLimit:c=8e3}={}){this.url=n,this.headers=new Headers(i),this.schemaName=a,this.urlLengthLimit=c;const f=s??globalThis.fetch;u!==void 0&&u>0?this.fetch=(d,p)=>{const g=new AbortController,y=setTimeout(()=>g.abort(),u),_=p?.signal;if(_){if(_.aborted)return clearTimeout(y),f(d,p);const b=()=>{clearTimeout(y),g.abort()};return _.addEventListener("abort",b,{once:!0}),f(d,vo(vo({},p),{},{signal:g.signal})).finally(()=>{clearTimeout(y),_.removeEventListener("abort",b)})}return f(d,vo(vo({},p),{},{signal:g.signal})).finally(()=>clearTimeout(y))}:this.fetch=f}
15from(n){if(!n||typeof n!="string"||n.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new BS(new URL(`${this.url}/${n}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(n){return new rb(this.url,{headers:this.headers,schema:n,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(n,i={},{head:a=!1,get:s=!1,count:u}={}){var c;let f;const d=new URL(`${this.url}/rpc/${n}`);let p;const g=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(g)),y=a&&Object.values(i).some(g);y?(f="POST",p=i):a||s?(f=a?"HEAD":"GET",Object.entries(i).filter(([b,S])=>S!==void 0).map(([b,S])=>[b,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([b,S])=>{d.searchParams.append(b,S)})):(f="POST",p=i);const _=new Headers(this.headers);return y?_.set("Prefer",u?`count=${u},return=minimal`:"return=minimal"):u&&_.set("Prefer",`count=${u}`),new _a({method:f,url:d,headers:_,schema:this.schemaName,body:p,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit})}};class $S{constructor(){}static detectEnvironment(){var n;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"&&(!((n=navigator.userAgent)===null||n===void 0)&&n.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 i=globalThis.process;if(i){const a=i.versions;if(a&&a.node){const s=a.node,u=parseInt(s.replace(/^v/,"").split(".")[0]);return u>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${u} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${u} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
16import ws from "ws"
17new 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 n=this.detectEnvironment();if(n.constructor)return n.constructor;let i=n.error||"WebSocket not supported in this environment.";throw n.workaround&&(i+=`
18
19Suggested solution: ${n.workaround}`),new Error(i)}static createWebSocket(n,i){const a=this.getWebSocketConstructor();return new a(n,i)}static isWebSocketSupported(){try{const n=this.detectEnvironment();return n.type==="native"||n.type==="ws"}catch{return!1}}}const VS="2.99.1",GS=`realtime-js/${VS}`,FS="1.0.0",ib="2.0.0",gy=ib,Zf=1e4,YS=1e3,KS=100;var Yr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Yr||(Yr={}));var Tt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Tt||(Tt={}));var Mn;(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"})(Mn||(Mn={}));var Wf;(function(e){e.websocket="websocket"})(Wf||(Wf={}));var xi;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(xi||(xi={}));class XS{constructor(n){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=n??[]}encode(n,i){if(n.event===this.BROADCAST_EVENT&&!(n.payload instanceof ArrayBuffer)&&typeof n.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(n));let a=[n.join_ref,n.ref,n.topic,n.event,n.payload];return i(JSON.stringify(a))}_binaryEncodeUserBroadcastPush(n){var i;return this._isArrayBuffer((i=n.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(n):this._encodeJsonUserBroadcastPush(n)}_encodeBinaryUserBroadcastPush(n){var i,a;const s=(a=(i=n.payload)===null||i===void 0?void 0:i.payload)!==null&&a!==void 0?a:new ArrayBuffer(0);return this._encodeUserBroadcastPush(n,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(n){var i,a;const s=(a=(i=n.payload)===null||i===void 0?void 0:i.payload)!==null&&a!==void 0?a:{},c=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(n,this.JSON_ENCODING,c)}_encodeUserBroadcastPush(n,i,a){var s,u;const c=n.topic,f=(s=n.ref)!==null&&s!==void 0?s:"",d=(u=n.join_ref)!==null&&u!==void 0?u:"",p=n.payload.event,g=this.allowedMetadataKeys?this._pick(n.payload,this.allowedMetadataKeys):{},y=Object.keys(g).length===0?"":JSON.stringify(g);if(d.length>255)throw new Error(`joinRef length ${d.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`ref length ${f.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`topic length ${c.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`userEvent length ${p.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`metadata length ${y.length} exceeds maximum of 255`);const _=this.USER_BROADCAST_PUSH_META_LENGTH+d.length+f.length+c.length+p.length+y.length,b=new ArrayBuffer(this.HEADER_LENGTH+_);let S=new DataView(b),T=0;S.setUint8(T++,this.KINDS.userBroadcastPush),S.setUint8(T++,d.length),S.setUint8(T++,f.length),S.setUint8(T++,c.length),S.setUint8(T++,p.length),S.setUint8(T++,y.length),S.setUint8(T++,i),Array.from(d,A=>S.setUint8(T++,A.charCodeAt(0))),Array.from(f,A=>S.setUint8(T++,A.charCodeAt(0))),Array.from(c,A=>S.setUint8(T++,A.charCodeAt(0))),Array.from(p,A=>S.setUint8(T++,A.charCodeAt(0))),Array.from(y,A=>S.setUint8(T++,A.charCodeAt(0)));var C=new Uint8Array(b.byteLength+a.byteLength);return C.set(new Uint8Array(b),0),C.set(new Uint8Array(a),b.byteLength),C.buffer}decode(n,i){if(this._isArrayBuffer(n)){let a=this._binaryDecode(n);return i(a)}if(typeof n=="string"){const a=JSON.parse(n),[s,u,c,f,d]=a;return i({join_ref:s,ref:u,topic:c,event:f,payload:d})}return i({})}_binaryDecode(n){const i=new DataView(n),a=i.getUint8(0),s=new TextDecoder;if(a===this.KINDS.userBroadcast)return this._decodeUserBroadcast(n,i,s)}_decodeUserBroadcast(n,i,a){const s=i.getUint8(1),u=i.getUint8(2),c=i.getUint8(3),f=i.getUint8(4);let d=this.HEADER_LENGTH+4;const p=a.decode(n.slice(d,d+s));d=d+s;const g=a.decode(n.slice(d,d+u));d=d+u;const y=a.decode(n.slice(d,d+c));d=d+c;const _=n.slice(d,n.byteLength),b=f===this.JSON_ENCODING?JSON.parse(a.decode(_)):_,S={type:this.BROADCAST_EVENT,event:g,payload:b};return c>0&&(S.meta=JSON.parse(y)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(n){var i;return n instanceof ArrayBuffer||((i=n?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(n,i){return!n||typeof n!="object"?{}:Object.fromEntries(Object.entries(n).filter(([a])=>i.includes(a)))}}class ab{constructor(n,i){this.callback=n,this.timerCalc=i,this.timer=void 0,this.tries=0,this.callback=n,this.timerCalc=i}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 nt;(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"})(nt||(nt={}));const yy=(e,n,i={})=>{var a;const s=(a=i.skipTypes)!==null&&a!==void 0?a:[];return n?Object.keys(n).reduce((u,c)=>(u[c]=QS(c,e,n,s),u),{}):{}},QS=(e,n,i,a)=>{const s=n.find(f=>f.name===e),u=s?.type,c=i[e];return u&&!a.includes(u)?lb(u,c):eh(c)},lb=(e,n)=>{if(e.charAt(0)==="_"){const i=e.slice(1,e.length);return e1(n,i)}switch(e){case nt.bool:return JS(n);case nt.float4:case nt.float8:case nt.int2:case nt.int4:case nt.int8:case nt.numeric:case nt.oid:return ZS(n);case nt.json:case nt.jsonb:return WS(n);case nt.timestamp:return t1(n);case nt.abstime:case nt.date:case nt.daterange:case nt.int4range:case nt.int8range:case nt.money:case nt.reltime:case nt.text:case nt.time:case nt.timestamptz:case nt.timetz:case nt.tsrange:case nt.tstzrange:return eh(n);default:return eh(n)}}
19,eh=e=>e,JS=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},ZS=e=>{if(typeof e=="string"){const n=parseFloat(e);if(!Number.isNaN(n))return n}return e},WS=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},e1=(e,n)=>{if(typeof e!="string")return e;const i=e.length-1,a=e[i];if(e[0]==="{"&&a==="}"){let u;const c=e.slice(1,i);try{u=JSON.parse("["+c+"]")}catch{u=c?c.split(","):[]}return u.map(f=>lb(n,f))}return e},t1=e=>typeof e=="string"?e.replace(" ","T"):e,sb=e=>{const n=new URL(e);return n.protocol=n.protocol.replace(/^ws/i,"http"),n.pathname=n.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),n.pathname===""||n.pathname==="/"?n.pathname="/api/broadcast":n.pathname=n.pathname+"/api/broadcast",n.href};class _f{constructor(n,i,a={},s=Zf){this.channel=n,this.event=i,this.payload=a,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(n){this.timeout=n,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,join_ref:this.channel._joinRef()}))}updatePayload(n){this.payload=Object.assign(Object.assign({},this.payload),n)}receive(n,i){var a;return this._hasReceived(n)&&i((a=this.receivedResp)===null||a===void 0?void 0:a.response),this.recHooks.push({status:n,callback:i}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const n=i=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=i,this._matchReceive(i)};this.channel._on(this.refEvent,{},n),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(n,i){this.refEvent&&this.channel._trigger(this.refEvent,{status:n,response:i})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:n,response:i}){this.recHooks.filter(a=>a.status===n).forEach(a=>a.callback(i))}_hasReceived(n){return this.receivedResp&&this.receivedResp.status===n}}var vy;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(vy||(vy={}));class Ml{constructor(n,i){this.channel=n,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const a=i?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(a.state,{},s=>{const{onJoin:u,onLeave:c,onSync:f}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ml.syncState(this.state,s,u,c),this.pendingDiffs.forEach(d=>{this.state=Ml.syncDiff(this.state,d,u,c)}),this.pendingDiffs=[],f()}),this.channel._on(a.diff,{},s=>{const{onJoin:u,onLeave:c,onSync:f}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ml.syncDiff(this.state,s,u,c),f())}),this.onJoin((s,u,c)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:u,newPresences:c})}),this.onLeave((s,u,c)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:u,leftPresences:c})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(n,i,a,s){const u=this.cloneDeep(n),c=this.transformState(i),f={},d={};return this.map(u,(p,g)=>{c[p]||(d[p]=g)}),this.map(c,(p,g)=>{const y=u[p];if(y){const _=g.map(C=>C.presence_ref),b=y.map(C=>C.presence_ref),S=g.filter(C=>b.indexOf(C.presence_ref)<0),T=y.filter(C=>_.indexOf(C.presence_ref)<0);S.length>0&&(f[p]=S),T.length>0&&(d[p]=T)}else f[p]=g}),this.syncDiff(u,{joins:f,leaves:d},a,s)}static syncDiff(n,i,a,s){const{joins:u,leaves:c}={joins:this.transformState(i.joins),leaves:this.transformState(i.leaves)};return a||(a=()=>{}),s||(s=()=>{}),this.map(u,(f,d)=>{var p;const g=(p=n[f])!==null&&p!==void 0?p:[];if(n[f]=this.cloneDeep(d),g.length>0){const y=n[f].map(b=>b.presence_ref),_=g.filter(b=>y.indexOf(b.presence_ref)<0);n[f].unshift(..._)}a(f,g,d)}),this.map(c,(f,d)=>{let p=n[f];if(!p)return;const g=d.map(y=>y.presence_ref);p=p.filter(y=>g.indexOf(y.presence_ref)<0),n[f]=p,s(f,p,d),p.length===0&&delete n[f]}),n}static map(n,i){return Object.getOwnPropertyNames(n).map(a=>i(a,n[a]))}static transformState(n){return n=this.cloneDeep(n),Object.getOwnPropertyNames(n).reduce((i,a)=>{const s=n[a];return"metas"in s?i[a]=s.metas.map(u=>(u.presence_ref=u.phx_ref,delete u.phx_ref,delete u.phx_ref_prev,u)):i[a]=s,i},{})}static cloneDeep(n){return JSON.parse(JSON.stringify(n))}onJoin(n){this.caller.onJoin=n}onLeave(n){this.caller.onLeave=n}onSync(n){this.caller.onSync=n}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var by;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(by||(by={}));var Ul;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ul||(Ul={}));var hr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(hr||(hr={}));class Ea{constructor(n,i={config:{}},a){var s,u;if(this.topic=n,this.params=i,this.socket=a,this.bindings={},this.state=Tt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=n.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.timeout=this.socket.timeout,this.joinPush=new _f(this,Mn.join,this.params,this.timeout),this.rejoinTimer=new ab(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Tt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(c=>c.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Tt.closed,this.socket._remove(this)}),this._onError(c=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,c),this.state=Tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",c=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,c),this.state=Tt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Mn.reply,{},(c,f)=>{this._trigger(this._replyEventName(f),c)}),this.presence=new Ml(this),this.broadcastEndpointURL=sb(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((u=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||u===void 0)&&u.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(n,i=this.timeout){var a,s,u;if(this.socket.isConnected()||this.socket.connect(),this.state==Tt.closed){const{config:{broadcast:c,presence:f,private:d}}=this.params,p=(s=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(b=>b.filter))!==null&&s!==void 0?s:[],g=!!this.bindings[Ul.PRESENCE]&&this.bindings[Ul.PRESENCE].length>0||((u=this.params.config.presence)===null||u===void 0?void 0:u.enabled)===!0,y={},_={broadcast:c,presence:Object.assign(Object.assign({},f),{enabled:g}),postgres_changes:p,private:d};this.socket.accessTokenValue&&(y.access_token=this.socket.accessTokenValue),this._onError(b=>n?.(hr.CHANNEL_ERROR,b)),this._onClose(()=>n?.(hr.CLOSED)),this.updateJoinPayload(Object.assign({config:_},y)),this.joinedOnce=!0,this._rejoin(i),this.joinPush.receive("ok",async({postgres_changes:b})=>{var S;if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){n?.(hr.SUBSCRIBED);return}else{const T=this.bindings.postgres_changes,C=(S=T?.length)!==null&&S!==void 0?S:0,A=[];for(let N=0;N<C;N++){const j=T[N],{filter:{event:X,schema:re,table:M,filter:Z}}=j,ue=b&&b[N];if(ue&&ue.event===X&&Ea.isFilterValueEqual(ue.schema,re)&&Ea.isFilterValueEqual(ue.table,M)&&Ea.isFilterValueEqual(ue.filter,Z))A.push(Object.assign(Object.assign({},j),{id:ue.id}));else{this.unsubscribe(),this.state=Tt.errored,n?.(hr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=A,n&&n(hr.SUBSCRIBED);return}}).receive("error",b=>{this.state=Tt.errored,n?.(hr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(b).join(", ")||"error")))}).receive("timeout",()=>{n?.(hr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(n,i={}){return await this.send({type:"presence",event:"track",payload:n},i.timeout||this.timeout)}async untrack(n={}){return await this.send({type:"presence",event:"untrack"},n)}on(n,i,a){return this.state===Tt.joined&&n===Ul.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(n,i,a)}async httpSend(n,i,a={}){var s;if(i==null)return Promise.reject("Payload is required for httpSend()");const u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:u,body:JSON.stringify({messages:[{topic:this.subTopic,event:n,payload:i,private:this.private}]})},f=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(s=a.timeout)!==null&&s!==void 0?s:this.timeout);if(f.status===202)return{success:!0};let d=f.statusText;
19try{const p=await f.json();d=p.error||p.message||d}catch{}return Promise.reject(new Error(d))}async send(n,i={}){var a,s;if(!this._canPush()&&n.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:u,payload:c}=n,f={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(f.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d={method:"POST",headers:f,body:JSON.stringify({messages:[{topic:this.subTopic,event:u,payload:c,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(a=i.timeout)!==null&&a!==void 0?a:this.timeout);return await((s=p.body)===null||s===void 0?void 0:s.cancel()),p.ok?"ok":"error"}catch(p){return p.name==="AbortError"?"timed out":"error"}}else return new Promise(u=>{var c,f,d;const p=this._push(n.type,n,i.timeout||this.timeout);n.type==="broadcast"&&!(!((d=(f=(c=this.params)===null||c===void 0?void 0:c.config)===null||f===void 0?void 0:f.broadcast)===null||d===void 0)&&d.ack)&&u("ok"),p.receive("ok",()=>u("ok")),p.receive("error",()=>u("error")),p.receive("timeout",()=>u("timed out"))})}updateJoinPayload(n){this.joinPush.updatePayload(n)}unsubscribe(n=this.timeout){this.state=Tt.leaving;const i=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Mn.close,"leave",this._joinRef())};this.joinPush.destroy();let a=null;return new Promise(s=>{a=new _f(this,Mn.leave,{},n),a.receive("ok",()=>{i(),s("ok")}).receive("timeout",()=>{i(),s("timed out")}).receive("error",()=>{s("error")}),a.send(),this._canPush()||a.trigger("ok",{})}).finally(()=>{a?.destroy()})}teardown(){this.pushBuffer.forEach(n=>n.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Tt.closed,this.bindings={}}async _fetchWithTimeout(n,i,a){const s=new AbortController,u=setTimeout(()=>s.abort(),a),c=await this.socket.fetch(n,Object.assign(Object.assign({},i),{signal:s.signal}));return clearTimeout(u),c}_push(n,i,a=this.timeout){if(!this.joinedOnce)throw`tried to push '${n}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new _f(this,n,i,a);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(n){if(n.startTimeout(),this.pushBuffer.push(n),this.pushBuffer.length>KS){const i=this.pushBuffer.shift();i&&(i.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload))}}_onMessage(n,i,a){return i}_isMember(n){return this.topic===n}_joinRef(){return this.joinPush.ref}_trigger(n,i,a){var s,u;const c=n.toLocaleLowerCase(),{close:f,error:d,leave:p,join:g}=Mn;if(a&&[f,d,p,g].indexOf(c)>=0&&a!==this._joinRef())return;let _=this._onMessage(c,i,a);if(i&&!_)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(c)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(b=>{var S,T,C;return((S=b.filter)===null||S===void 0?void 0:S.event)==="*"||((C=(T=b.filter)===null||T===void 0?void 0:T.event)===null||C===void 0?void 0:C.toLocaleLowerCase())===c}).map(b=>b.callback(_,a)):(u=this.bindings[c])===null||u===void 0||u.filter(b=>{var S,T,C,A,N,j;if(["broadcast","presence","postgres_changes"].includes(c))if("id"in b){const X=b.id,re=(S=b.filter)===null||S===void 0?void 0:S.event;return X&&((T=i.ids)===null||T===void 0?void 0:T.includes(X))&&(re==="*"||re?.toLocaleLowerCase()===((C=i.data)===null||C===void 0?void 0:C.type.toLocaleLowerCase()))}else{const X=(N=(A=b?.filter)===null||A===void 0?void 0:A.event)===null||N===void 0?void 0:N.toLocaleLowerCase();return X==="*"||X===((j=i?.event)===null||j===void 0?void 0:j.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===c}).map(b=>{if(typeof _=="object"&&"ids"in _){const S=_.data,{schema:T,table:C,commit_timestamp:A,type:N,errors:j}=S;_=Object.assign(Object.assign({},{schema:T,table:C,commit_timestamp:A,eventType:N,new:{},old:{},errors:j}),this._getPayloadRecords(S))}b.callback(_,a)})}_isClosed(){return this.state===Tt.closed}_isJoined(){return this.state===Tt.joined}_isJoining(){return this.state===Tt.joining}_isLeaving(){return this.state===Tt.leaving}_replyEventName(n){return`chan_reply_${n}`}_on(n,i,a){const s=n.toLocaleLowerCase(),u={type:s,filter:i,callback:a};return this.bindings[s]?this.bindings[s].push(u):this.bindings[s]=[u],this}_off(n,i){const a=n.toLocaleLowerCase();return this.bindings[a]&&(this.bindings[a]=this.bindings[a].filter(s=>{var u;return!(((u=s.type)===null||u===void 0?void 0:u.toLocaleLowerCase())===a&&Ea.isEqual(s.filter,i))})),this}static isEqual(n,i){if(Object.keys(n).length!==Object.keys(i).length)return!1;for(const a in n)if(n[a]!==i[a])return!1;return!0}static isFilterValueEqual(n,i){return(n??void 0)===(i??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(n){this._on(Mn.close,{},n)}_onError(n){this._on(Mn.error,{},i=>n(i))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(n=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Tt.joining,this.joinPush.resend(n))}_getPayloadRecords(n){const i={new:{},old:{}};
19return(n.type==="INSERT"||n.type==="UPDATE")&&(i.new=yy(n.columns,n.record)),(n.type==="UPDATE"||n.type==="DELETE")&&(i.old=yy(n.columns,n.old_record)),i}}const wf=()=>{},bo={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},n1=[1e3,2e3,5e3,1e4],r1=1e4,i1=`
20  addEventListener("message", (e) => {
21    if (e.data.event === "start") {
22      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
23    }
24  });`;class a1{constructor(n,i){var a;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Zf,this.transport=null,this.heartbeatIntervalMs=bo.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=wf,this.ref=0,this.reconnectTimer=null,this.vsn=gy,this.logger=wf,this.conn=null,this.sendBuffer=[],this.serializer=new XS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...u)=>s(...u):(...u)=>fetch(...u),!(!((a=i?.params)===null||a===void 0)&&a.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey,this.endPoint=`${n}/${Wf.websocket}`,this.httpEndpoint=sb(n),this._initializeOptions(i),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(i?.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=$S.createWebSocket(this.endpointURL())}catch(n){this._setConnectionState("disconnected");const i=n.message;throw i.includes("Node.js")?new Error(`${i}
25
26To use Realtime in Node.js, you need to provide a WebSocket implementation:
27
28Option 1: Use Node.js 22+ which has native WebSocket support
29Option 2: Install and provide the "ws" package:
30
31  npm install ws
32
33  import ws from "ws"
34  const client = new RealtimeClient(url, {
35    ...options,
36    transport: ws
37  })`):new Error(`WebSocket not available: ${i}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(n,i){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const a=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(a),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(n?this.conn.close(n,i??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(n){const i=await n.unsubscribe();return this.channels.length===0&&this.disconnect(),i}async removeAllChannels(){const n=await Promise.all(this.channels.map(i=>i.unsubscribe()));return this.channels=[],this.disconnect(),n}log(n,i,a){this.logger(n,i,a)}connectionState(){switch(this.conn&&this.conn.readyState){case Yr.connecting:return xi.Connecting;case Yr.open:return xi.Open;case Yr.closing:return xi.Closing;default:return xi.Closed}}isConnected(){return this.connectionState()===xi.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(n,i={config:{}}){const a=`realtime:${n}`,s=this.getChannels().find(u=>u.topic===a);if(s)return s;{const u=new Ea(`realtime:${n}`,i,this);return this.channels.push(u),u}}push(n){const{topic:i,event:a,payload:s,ref:u}=n,c=()=>{this.encode(n,f=>{var d;(d=this.conn)===null||d===void 0||d.send(f)})};this.log("push",`${i} ${a} (${u})`,s),this.isConnected()?c():this.sendBuffer.push(c)}async setAuth(n=null){this._authPromise=this._performAuth(n);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var n;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(i){this.log("error","error in heartbeat callback",i)}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(i){this.log("error","error in heartbeat callback",i)}this._wasManualDisconnect=!1,(n=this.conn)===null||n===void 0||n.close(YS,"heartbeat timeout"),setTimeout(()=>{var i;this.isConnected()||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout()},bo.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(i){this.log("error","error in heartbeat callback",i)}this._setAuthSafely("heartbeat")}onHeartbeat(n){this.heartbeatCallback=n}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(n=>n()),this.sendBuffer=[])}_makeRef(){let n=this.ref+1;return n===this.ref?this.ref=0:this.ref=n,this.ref.toString()}_leaveOpenTopic(n){let i=this.channels.find(a=>a.topic===n&&(a._isJoined()||a._isJoining()));i&&(this.log("transport",`leaving duplicate topic "${n}"`),i.unsubscribe())}_remove(n){this.channels=this.channels.filter(i=>i.topic!==n.topic)}_onConnMessage(n){this.decode(n.data,i=>
37{if(i.topic==="phoenix"&&i.event==="phx_reply"&&i.ref&&i.ref===this.pendingHeartbeatRef){const p=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(i.payload.status==="ok"?"ok":"error",p)}catch(g){this.log("error","error in heartbeat callback",g)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:a,event:s,payload:u,ref:c}=i,f=c?`(${c})`:"",d=u.status||"";this.log("receive",`${d} ${a} ${s} ${f}`.trim(),u),this.channels.filter(p=>p._isMember(a)).forEach(p=>p._trigger(s,u,c)),this._triggerStateCallbacks("message",i)})}_clearTimer(n){var i;n==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):n==="reconnect"&&((i=this.reconnectTimer)===null||i===void 0||i.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=n=>this._onConnError(n),this.conn.onmessage=n=>this._onConnMessage(n),this.conn.onclose=n=>this._onConnClose(n),this.conn.readyState===Yr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Yr.open||this.conn.readyState===Yr.connecting)try{this.conn.close()}catch(n){this.log("error","Error closing connection",n)}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(n=>n.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(i=>{i.updateJoinPayload({access_token:this.accessTokenValue})}),this.sendBuffer=[],this.channels.forEach(i=>{i._isJoining()&&(i.joinPush.sent=!1,i.joinPush.send())})),this.flushSendBuffer()}).catch(i=>{this.log("error","error waiting for auth on connect",i),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 n=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(n),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this._terminateWorker()},this.workerRef.onmessage=i=>{i.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(n){var i;this._setConnectionState("disconnected"),this.log("transport","close",n),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout(),this._triggerStateCallbacks("close",n)}_onConnError(n){this._setConnectionState("disconnected"),this.log("transport",`${n}`),this._triggerChanError(),this._triggerStateCallbacks("error",n);try{this.heartbeatCallback("error")}catch(i){this.log("error","error in heartbeat callback",i)}}_triggerChanError(){this.channels.forEach(n=>n._trigger(Mn.error))}_appendParams(n,i){if(Object.keys(i).length===0)return n;const a=n.match(/\?/)?"&":"?",s=new URLSearchParams(i);return`${n}${a}${s}`}_workerObjectUrl(n){let i;if(n)i=n;else{const a=new Blob([i1],{type:"application/javascript"});i=URL.createObjectURL(a)}return i}_setConnectionState(n,i=!1){this._connectionState=n,n==="connecting"?this._wasManualDisconnect=!1:n==="disconnecting"&&(this._wasManualDisconnect=i)}async _performAuth(n=null){let i,a=!1;if(n)i=n,a=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),i=this.accessTokenValue}else i=this.accessTokenValue;a?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEac
37h(s=>{const u={access_token:i,version:GS};i&&s.updateJoinPayload(u),s.joinedOnce&&s._isJoined()&&s._push(Mn.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(n="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${n}`,i)})}_triggerStateCallbacks(n,i){try{this.stateChangeCallbacks[n].forEach(a=>{try{a(i)}catch(s){this.log("error",`error in ${n} callback`,s)}})}catch(a){this.log("error",`error triggering ${n} callbacks`,a)}}_setupReconnectionTimer(){this.reconnectTimer=new ab(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},bo.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(n){var i,a,s,u,c,f,d,p,g,y,_,b;switch(this.transport=(i=n?.transport)!==null&&i!==void 0?i:null,this.timeout=(a=n?.timeout)!==null&&a!==void 0?a:Zf,this.heartbeatIntervalMs=(s=n?.heartbeatIntervalMs)!==null&&s!==void 0?s:bo.HEARTBEAT_INTERVAL,this.worker=(u=n?.worker)!==null&&u!==void 0?u:!1,this.accessToken=(c=n?.accessToken)!==null&&c!==void 0?c:null,this.heartbeatCallback=(f=n?.heartbeatCallback)!==null&&f!==void 0?f:wf,this.vsn=(d=n?.vsn)!==null&&d!==void 0?d:gy,n?.params&&(this.params=n.params),n?.logger&&(this.logger=n.logger),(n?.logLevel||n?.log_level)&&(this.logLevel=n.logLevel||n.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(p=n?.reconnectAfterMs)!==null&&p!==void 0?p:(S=>n1[S-1]||r1),this.vsn){case FS:this.encode=(g=n?.encode)!==null&&g!==void 0?g:((S,T)=>T(JSON.stringify(S))),this.decode=(y=n?.decode)!==null&&y!==void 0?y:((S,T)=>T(JSON.parse(S)));break;case ib:this.encode=(_=n?.encode)!==null&&_!==void 0?_:this.serializer.encode.bind(this.serializer),this.decode=(b=n?.decode)!==null&&b!==void 0?b: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=n?.workerUrl}}}var $l=class extends Error{constructor(e,n){super(e),this.name="IcebergError",this.status=n.status,this.icebergType=n.icebergType,this.icebergCode=n.icebergCode,this.details=n.details,this.isCommitStateUnknown=n.icebergType==="CommitStateUnknownException"||[500,502,504].includes(n.status)&&n.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function l1(e,n,i){const a=new URL(n,e);if(i)for(const[s,u]of Object.entries(i))u!==void 0&&a.searchParams.set(s,u);return a.toString()}async function s1(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 o1(e){const n=e.fetchImpl??globalThis.fetch;return{async request({method:i,path:a,query:s,body:u,headers:c}){const f=l1(e.baseUrl,a,s),d=await s1(e.auth),p=await n(f,{method:i,headers:{...u?{"Content-Type":"application/json"}:{},...d,...c},body:u?JSON.stringify(u):void 0}),g=await p.text(),y=(p.headers.get("content-type")||"").includes("application/json"),_=y&&g?JSON.parse(g):g;if(!p.ok){const b=y?_:void 0,S=b?.error;throw new $l(S?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:S?.type,icebergCode:S?.code,details:b})}return{status:p.status,headers:p.headers,data:_}}}}function _o(e){return e.join("�")}var u1=class{constructor(e,n=""){this.client=e,this.prefix=n}async listNamespaces(e){const n=e?{parent:_o(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:n})).data.namespaces.map(a=>({namespace:a}))}async createNamespace(e,n){const i={namespace:e.namespace,properties:n?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_o(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_o(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_o(e.namespace)}`}),!0}catch(n){if(n instanceof $l&&n.status===404)return!1;throw n}}
37async createNamespaceIfNotExists(e,n){try{return await this.createNamespace(e,n)}catch(i){if(i instanceof $l&&i.status===409)return;throw i}}};function da(e){return e.join("�")}var c1=class{constructor(e,n="",i){this.client=e,this.prefix=n,this.accessDelegation=i}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables`})).data.identifiers}async createTable(e,n){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables`,body:n,headers:i})).data.metadata}async updateTable(e,n){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,body:n});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(e,n){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(n?.purge??!1)}})}async loadTable(e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,headers:n})).data.metadata}async tableExists(e){const n={};this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,headers:n}),!0}catch(i){if(i instanceof $l&&i.status===404)return!1;throw i}}async createTableIfNotExists(e,n){try{return await this.createTable(e,n)}catch(i){if(i instanceof $l&&i.status===409)return await this.loadTable({namespace:e.namespace,name:n.name});throw i}}},f1=class{constructor(e){let n="v1";e.catalogName&&(n+=`/${e.catalogName}`);const i=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=o1({baseUrl:i,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new u1(this.client,n),this.tableOps=new c1(this.client,n,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,n){return this.namespaceOps.createNamespace(e,n)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}async createTable(e,n){return this.tableOps.createTable(e,n)}async updateTable(e,n){return this.tableOps.updateTable(e,n)}async dropTable(e,n){await this.tableOps.dropTable(e,n)}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,n){return this.namespaceOps.createNamespaceIfNotExists(e,n)}async createTableIfNotExists(e,n){return this.tableOps.createTableIfNotExists(e,n)}},Go=class extends Error{constructor(e,n="storage",i,a){super(e),this.__isStorageError=!0,this.namespace=n,this.name=n==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=a}};function Fo(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Nl=class extends Go{constructor(e,n,i,a="storage"){super(e,a,n,i),this.name=a==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=n,this.statusCode=i}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},ob=class extends Go{constructor(e,n,i="storage"){super(e,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=n}};const h1=e=>e?(...n)=>e(...n):(...n)=>fetch(...n),d1=e=>{if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},th=e=>{if(Array.isArray(e))return e.map(i=>th(i));if(typeof e=="function"||e!==Object(e))return e;const n={};return Object.entries(e).forEach(([i,a])=>{const s=i.replace(/([-_][a-z])/gi,u=>u.toUpperCase().replace(/[-_]/g,""));n[s]=th(a)}),n},p1=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vl(e)}function m1(e,n){if(Vl(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,n);if(Vl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function g1(e){var n=m1(e,"string");return Vl(n)=="symbol"?n:n+""}function y1(e,n,i){return(n=g1(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}
37function _y(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,a)}return i}function Se(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?_y(Object(i),!0).forEach(function(a){y1(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_y(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}const wy=e=>{var n;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(n=e.error)===null||n===void 0?void 0:n.message)||JSON.stringify(e)},v1=async(e,n,i,a)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"){const s=e,u=s.status||500;if(typeof s.json=="function")s.json().then(c=>{const f=c?.statusCode||c?.code||u+"";n(new Nl(wy(c),u,f,a))}).catch(()=>{if(a==="vectors"){const c=u+"";n(new Nl(s.statusText||`HTTP ${u} error`,u,c,a))}else{const c=u+"";n(new Nl(s.statusText||`HTTP ${u} error`,u,c,a))}});else{const c=u+"";n(new Nl(s.statusText||`HTTP ${u} error`,u,c,a))}}else n(new ob(wy(e),e,a))},b1=(e,n,i,a)=>{const s={method:e,headers:n?.headers||{}};return e==="GET"||e==="HEAD"||!a?Se(Se({},s),i):(d1(a)?(s.headers=Se({"Content-Type":"application/json"},n?.headers),s.body=JSON.stringify(a)):s.body=a,n?.duplex&&(s.duplex=n.duplex),Se(Se({},s),i))};async function Cl(e,n,i,a,s,u,c){return new Promise((f,d)=>{e(i,b1(n,a,s,u)).then(p=>{if(!p.ok)throw p;if(a?.noResolveJson)return p;if(c==="vectors"){const g=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!g||!g.includes("application/json"))return{}}return p.json()}).then(p=>f(p)).catch(p=>v1(p,d,a,c))})}function ub(e="storage"){return{get:async(n,i,a,s)=>Cl(n,"GET",i,a,s,void 0,e),post:async(n,i,a,s,u)=>Cl(n,"POST",i,s,u,a,e),put:async(n,i,a,s,u)=>Cl(n,"PUT",i,s,u,a,e),head:async(n,i,a,s)=>Cl(n,"HEAD",i,Se(Se({},a),{},{noResolveJson:!0}),s,void 0,e),remove:async(n,i,a,s,u)=>Cl(n,"DELETE",i,s,u,a,e)}}const _1=ub("storage"),{get:Gl,post:Ln,put:nh,head:w1,remove:Oh}=_1,hn=ub("vectors");var ja=class{constructor(e,n={},i,a="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.fetch=h1(i),this.namespace=a}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=Se(Se({},this.headers),{},{[e]:n}),this}async handleOperation(e){var n=this;try{return{data:await e(),error:null}}catch(i){if(n.shouldThrowOnError)throw i;if(Fo(i))return{data:null,error:i};throw i}}},x1=class{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n}then(e,n){return this.execute().then(e,n)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Fo(n))return{data:null,error:n};throw n}}};let cb;cb=Symbol.toStringTag;var S1=class{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n,this[cb]="BlobDownloadBuilder",this.promise=null}asStream(){return new x1(this.downloadFn,this.shouldThrowOnError)}then(e,n){return this.getPromise().then(e,n)}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(n){if(e.shouldThrowOnError)throw n;if(Fo(n))return{data:null,error:n};throw n}}};const E1={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},xy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var k1=class extends ja{constructor(e,n={},i,a){super(e,n,a,"storage"),this.bucketId=i}async uploadOrUpdate(e,n,i,a){var s=this;return s.handleOperation(async()=>{let u;const c=Se(Se({},xy),a);let f=Se(Se({},s.headers),e==="POST"&&{"x-upsert":String(c.upsert)});const d=c.metadata;typeof Blob<"u"&&i instanceof Blob?(u=new FormData,u.append("cacheControl",c.cacheControl),d&&u.append("metadata",s.encodeMetadata(d)),u.append("",i)):typeof FormData<"u"&&i instanceof FormData?(u=i,u.has("cacheControl")||u.append("cacheControl",c.cacheControl),d&&!u.has("metadata")&&u.append("metadata",s.encodeMetadata(d))):(u=i,f["cache-control"]=`max-age=${c.cacheControl}`,f["content-type"]=c.contentType,d&&(f["x-metadata"]=s.toBase64(s.encodeMetadata(d))),(typeof ReadableStream<"u"&&u instanceof ReadableStream||u&&typeof u=="object"&&"pipe"in u&&typeof u.pipe=="function")&&!c.duplex&&(c.duplex="half")),a?.headers&&(f=Se(Se({},f),a.headers));const p=s._removeEmptyFolders(n),g=s._getFinalPath(p),y=await(e=="PUT"?nh:Ln)(s.fetch,`${s.url}/object/${g}`,u,Se({headers:f},c?.duplex?{duplex:c.duplex}:{}));return{path:p,id:y.Id,fullPath:y.Key}})}async upload(e,n,i){return this.uploadOrUpdate("POST",e,n,i)}async uploadToSignedUrl(e,n,i,a){var s=this;const u=s._removeEmptyFolders(e),c=s._getFinalPath(u),f=new URL(s.url+`/object/upload/sign/${c}`);return f.searchParams.set("token",n),s.handleOperation(async()=>{let d;const p=Se({upsert:xy.upsert},a),g=Se(Se({},s.headers),{"x-upsert":String(p.upsert)});return typeof Blob<"u"&&i instanceof Blob?(d=new FormData,d.append("cacheControl",p.cacheControl),d.append("",i)):typeof FormData<"u"&&i instanceof FormData?(d=i,d.append("cacheControl",p.cacheControl)):(d=i,g["cache-control"]=`max-age=${p.cacheControl}`,g["content-type"]=p.contentType),{path:u,fullPath:(await nh(s.fetch,f.toString(),d,{headers:g})).Key}})}async createSignedUploadUrl(e,n){var i=this;return i.handleOperation(async()=>{let a=i._getFinalPath(e);const s=Se({},i.headers);n?.upsert&&(s["x-upsert"]="true");const u=await Ln(i.fetch,`${i.url}/object/upload/sign/${a}`,{},{headers:s}),c=new URL(i.url+u.url),f=c.searchParams.get("token");if(!f)throw new Go("No token returned by API");return{signedUrl:c.toString(),path:e,token:f}})}async update(e,n,i){return this.uploadOrUpdate("PUT",e,n,i)}async move(e,n,i){var a=this;return a.handleOperation(async()=>await Ln(a.fetch,`${a.url}/object/move`,{bucketId:a.bucketId,sourceKey:e,destinationKey:n,destinationBucket:i?.destinationBucket},{headers:a.headers}))}async copy(e,n,i){var a=this;return a.handleOperation(async()=>({path:(await Ln(a.fetch,`${a.url}/object/copy`,{bucketId:a.bucketId,sourceKey:e,destinationKey:n,destinationBucket:i?.destinationBucket},{headers:a.headers})).Key}))}async createSignedUrl(e,n,i){var a=this;return a.handleOperation(async()=>{let s=a._getFinalPath(e),u=await Ln(a.fetch,`${a.url}/object/sign/${s}
37`,Se({expiresIn:n},i?.transform?{transform:i.transform}:{}),{headers:a.headers});const c=i?.download?`&download=${i.download===!0?"":i.download}`:"",f=i?.transform&&u.signedURL.includes("/object/sign/")?u.signedURL.replace("/object/sign/","/render/image/sign/"):u.signedURL;return{signedUrl:encodeURI(`${a.url}${f}${c}`)}})}async createSignedUrls(e,n,i){var a=this;return a.handleOperation(async()=>{const s=await Ln(a.fetch,`${a.url}/object/sign/${a.bucketId}`,{expiresIn:n,paths:e},{headers:a.headers}),u=i?.download?`&download=${i.download===!0?"":i.download}`:"";return s.map(c=>Se(Se({},c),{},{signedUrl:c.signedURL?encodeURI(`${a.url}${c.signedURL}${u}`):null}))})}download(e,n,i){const a=typeof n?.transform<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString(n?.transform||{}),u=s?`?${s}`:"",c=this._getFinalPath(e),f=()=>Gl(this.fetch,`${this.url}/${a}/${c}${u}`,{headers:this.headers,noResolveJson:!0},i);return new S1(f,this.shouldThrowOnError)}async info(e){var n=this;const i=n._getFinalPath(e);return n.handleOperation(async()=>th(await Gl(n.fetch,`${n.url}/object/info/${i}`,{headers:n.headers})))}async exists(e){var n=this;const i=n._getFinalPath(e);try{return await w1(n.fetch,`${n.url}/object/${i}`,{headers:n.headers}),{data:!0,error:null}}catch(s){if(n.shouldThrowOnError)throw s;if(Fo(s)){var a;const u=s instanceof Nl?s.status:s instanceof ob?(a=s.originalError)===null||a===void 0?void 0:a.status:void 0;if(u!==void 0&&[400,404].includes(u))return{data:!1,error:s}}throw s}}getPublicUrl(e,n){const i=this._getFinalPath(e),a=[],s=n?.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&a.push(s);const u=typeof n?.transform<"u"?"render/image":"object",c=this.transformOptsToQueryString(n?.transform||{});c!==""&&a.push(c);let f=a.join("&");return f!==""&&(f=`?${f}`),{data:{publicUrl:encodeURI(`${this.url}/${u}/public/${i}${f}`)}}}async remove(e){var n=this;return n.handleOperation(async()=>await Oh(n.fetch,`${n.url}/object/${n.bucketId}`,{prefixes:e},{headers:n.headers}))}async list(e,n,i){var a=this;return a.handleOperation(async()=>{const s=Se(Se(Se({},E1),n),{},{prefix:e||""});return await Ln(a.fetch,`${a.url}/object/list/${a.bucketId}`,s,{headers:a.headers},i)})}async listV2(e,n){var i=this;return i.handleOperation(async()=>{const a=Se({},e);return await Ln(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,a,{headers:i.headers},n)})}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 n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}};const T1="2.99.1",Wl={"X-Client-Info":`storage-js/${T1}`};var A1=class extends ja{constructor(e,n={},i,a){const s=new URL(e);a?.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const u=s.href.replace(/\/$/,""),c=Se(Se({},Wl),n);super(u,c,i,"storage")}async listBuckets(e){var n=this;return n.handleOperation(async()=>{const i=n.listBucketOptionsToQueryString(e);return await Gl(n.fetch,`${n.url}/bucket${i}`,{headers:n.headers})})}async getBucket(e){var n=this;return n.handleOperation(async()=>await Gl(n.fetch,`${n.url}/bucket/${e}`,{headers:n.headers}))}async createBucket(e,n={public:!1}){var i=this;return i.handleOperation(async()=>await Ln(i.fetch,`${i.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:i.headers}))}async updateBucket(e,n){var i=this;return i.handleOperation(async()=>await nh(i.fetch,`${i.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(e){var n=this;return n.handleOperation(async()=>await Ln(n.fetch,`${n.url}/bucket/${e}/empty`,{},{headers:n.headers}))}async deleteBucket(e){var n=this;return n.handleOperation(async()=>await Oh(n.fetch,`${n.url}/bucket/${e}`,{},{headers:n.headers}))}listBucketOptionsToQueryString(e){const n={};return e&&("limit"in e&&(n.limit=String(e.limit)),"offset"in e&&(n.offset=String(e.offset)),e.search&&(n.search=e.search),e.sortColumn&&(n.sortColumn=e.sortColumn),e.sortOrder&&(n.sortOrder=e.sortOrder)),Object.keys(n).length>0?"?"+new URLSearchParams(n).toString():""}},C1=class extends ja{constructor(e,n={},i){const a=e.replace(/\/$/,""),s=Se(Se({},Wl),n);super(a,s,i,"storage")}async createBucket(e){var n=this;return n.handleOperation(async()=>await Ln(n.fetch,`${n.url}/bucket`,{name:e},{headers:n.headers}))}async listBuckets(e){var n=this;return n.handleOperation(async()=>{const i=new URLSearchParams;e?.limit!==void 0&&i.set("limit",e.limit.toString()),e?.offset!==void 0&&i.set("offset",e.offset.toString()),e?.sortColumn&&i.set("sortColumn",e.sortColumn),e?.sortOrder&&i.set("sortOrder",e.sortOrder),e?.search&&i.set("search",e.search);const a=i.toString(),s=a?`${n.url}/bucket?${a}`:`${n.url}/bucket`;return await Gl(n.fetch,s,{headers:n.headers})})}async deleteBucket(e){var n=this;return n.handleOperation(async()=>await Oh(n.fetch,`${n.url}/bucket/${e}`,{},{headers:n.headers}))}from(e){var n=this;if(!p1(e))throw new Go("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 i=new f1({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>n.headers},fetch:this.fetch}),a=this.shouldThrowOnError;return new Proxy(i,{get(s,u){const c=s[u];return typeof c!="function"?c:async(...f)=>{try{return{data:await c.apply(s,f),error:null}}catch(d){if(a)throw d;return{data:null,error:d}}}}})}},R1=class extends ja{constructor(e,n={},i){const a=e.replace(/\/$/,""),s=Se(Se({},Wl),{},{"Content-Type":"application/json"},n);super(a,s,i,"vectors")}async createIndex(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/CreateIndex`,e,{headers:n.headers})||{})}async getIndex(e,n){var i=this;return i.handleOperation(async()=>await hn.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:e,indexName:n},{headers:i.headers}))}async listIndexes(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/ListIndexes`,e,{headers:n.headers}))}async deleteIndex(e,n){var i=this;return i.handleOperation(async()=>await hn.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:e,indexName:n},{headers:i.headers})||{})}},O1=class extends ja{constructor(e,n={},i){const a=e.replace(/\/$/,""),s=Se(Se({},Wl),{},{"Content-Type":"application/json"},n);super(a,s,i,"vectors")}async putVectors(e){var n=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/PutVectors`,e,{headers:n.headers})||{})}async getVectors(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/GetVectors`,e,{headers:n.headers}))}async listVectors(e){var n=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
37if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/ListVectors`,e,{headers:n.headers}))}async queryVectors(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/QueryVectors`,e,{headers:n.headers}))}async deleteVectors(e){var n=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/DeleteVectors`,e,{headers:n.headers})||{})}},j1=class extends ja{constructor(e,n={},i){const a=e.replace(/\/$/,""),s=Se(Se({},Wl),{},{"Content-Type":"application/json"},n);super(a,s,i,"vectors")}async createBucket(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:n.headers})||{})}async getBucket(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/GetVectorBucket`,{vectorBucketName:e},{headers:n.headers}))}async listBuckets(e={}){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/ListVectorBuckets`,e,{headers:n.headers}))}async deleteBucket(e){var n=this;return n.handleOperation(async()=>await hn.post(n.fetch,`${n.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:n.headers})||{})}},D1=class extends j1{constructor(e,n={}){super(e,n.headers||{},n.fetch)}from(e){return new z1(this.url,this.headers,e,this.fetch)}async createBucket(e){var n=()=>super.createBucket,i=this;return n().call(i,e)}async getBucket(e){var n=()=>super.getBucket,i=this;return n().call(i,e)}async listBuckets(e={}){var n=()=>super.listBuckets,i=this;return n().call(i,e)}async deleteBucket(e){var n=()=>super.deleteBucket,i=this;return n().call(i,e)}},z1=class extends R1{constructor(e,n,i,a){super(e,n,a),this.vectorBucketName=i}async createIndex(e){var n=()=>super.createIndex,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(e={}){var n=()=>super.listIndexes,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(e){var n=()=>super.getIndex,i=this;return n().call(i,i.vectorBucketName,e)}async deleteIndex(e){var n=()=>super.deleteIndex,i=this;return n().call(i,i.vectorBucketName,e)}index(e){return new N1(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},N1=class extends O1{constructor(e,n,i,a,s){super(e,n,s),this.vectorBucketName=i,this.indexName=a}async putVectors(e){var n=()=>super.putVectors,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(e){var n=()=>super.getVectors,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(e={}){var n=()=>super.listVectors,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(e){var n=()=>super.queryVectors,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(e){var n=()=>super.deleteVectors,i=this;return n().call(i,Se(Se({},e),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},L1=class extends A1{constructor(e,n={},i,a){super(e,n,i,a)}from(e){return new k1(this.url,this.headers,e,this.fetch)}get vectors(){return new D1(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new C1(this.url+"/iceberg",this.headers,this.fetch)}};const fb="2.99.1",wa=30*1e3,rh=3,xf=rh*wa,M1="http://localhost:9999",U1="supabase.auth.token",B1={"X-Client-Info":`gotrue-js/${fb}`},ih="X-Supabase-Api-Version",hb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},I1=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,P1=600*1e3;class Fl extends Error{constructor(n,i,a){super(n),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=a}}function de(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class H1 extends Fl{constructor(n,i,a){super(n,i,a),this.name="AuthApiError",this.status=i,this.code=a}}function q1(e){return de(e)&&e.name==="AuthApiError"}class Si extends Fl{constructor(n,i){super(n),this.name="AuthUnknownError",this.originalError=i}}class mr extends Fl{constructor(n,i,a,s){super(n,a,s),this.name=i,this.status=a}}class cn extends mr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Sf(e){return de(e)&&e.name==="AuthSessionMissingError"}class pa extends mr{constructor(){super("Auth session or user missing","AuthInvalidToken
37ResponseError",500,void 0)}}class wo extends mr{constructor(n){super(n,"AuthInvalidCredentialsError",400,void 0)}}class xo extends mr{constructor(n,i=null){super(n,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function $1(e){return de(e)&&e.name==="AuthImplicitGrantRedirectError"}class Sy extends mr{constructor(n,i=null){super(n,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class V1 extends mr{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 ah extends mr{constructor(n,i){super(n,"AuthRetryableFetchError",i,void 0)}}function Ef(e){return de(e)&&e.name==="AuthRetryableFetchError"}class Ey extends mr{constructor(n,i,a){super(n,"AuthWeakPasswordError",i,"weak_password"),this.reasons=a}}class lh extends mr{constructor(n){super(n,"AuthInvalidJwtError",400,"invalid_jwt")}}const No="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ky=` 	
38\r=`.split(""),G1=(()=>{const e=new Array(128);for(let n=0;n<e.length;n+=1)e[n]=-1;for(let n=0;n<ky.length;n+=1)e[ky[n].charCodeAt(0)]=-2;for(let n=0;n<No.length;n+=1)e[No[n].charCodeAt(0)]=n;return e})();function Ty(e,n,i){if(e!==null)for(n.queue=n.queue<<8|e,n.queuedBits+=8;n.queuedBits>=6;){const a=n.queue>>n.queuedBits-6&63;i(No[a]),n.queuedBits-=6}else if(n.queuedBits>0)for(n.queue=n.queue<<6-n.queuedBits,n.queuedBits=6;n.queuedBits>=6;){const a=n.queue>>n.queuedBits-6&63;i(No[a]),n.queuedBits-=6}}function db(e,n,i){const a=G1[e];if(a>-1)for(n.queue=n.queue<<6|a,n.queuedBits+=6;n.queuedBits>=8;)i(n.queue>>n.queuedBits-8&255),n.queuedBits-=8;else{if(a===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Ay(e){const n=[],i=c=>{n.push(String.fromCodePoint(c))},a={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},u=c=>{K1(c,a,i)};for(let c=0;c<e.length;c+=1)db(e.charCodeAt(c),s,u);return n.join("")}function F1(e,n){if(e<=127){n(e);return}else if(e<=2047){n(192|e>>6),n(128|e&63);return}else if(e<=65535){n(224|e>>12),n(128|e>>6&63),n(128|e&63);return}else if(e<=1114111){n(240|e>>18),n(128|e>>12&63),n(128|e>>6&63),n(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Y1(e,n){for(let i=0;i<e.length;i+=1){let a=e.charCodeAt(i);if(a>55295&&a<=56319){const s=(a-55296)*1024&65535;a=(e.charCodeAt(i+1)-56320&65535|s)+65536,i+=1}F1(a,n)}}function K1(e,n,i){if(n.utf8seq===0){if(e<=127){i(e);return}for(let a=1;a<6;a+=1)if((e>>7-a&1)===0){n.utf8seq=a;break}if(n.utf8seq===2)n.codepoint=e&31;else if(n.utf8seq===3)n.codepoint=e&15;else if(n.utf8seq===4)n.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");n.utf8seq-=1}else if(n.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");n.codepoint=n.codepoint<<6|e&63,n.utf8seq-=1,n.utf8seq===0&&i(n.codepoint)}}function ka(e){const n=[],i={queue:0,queuedBits:0},a=s=>{n.push(s)};for(let s=0;s<e.length;s+=1)db(e.charCodeAt(s),i,a);return new Uint8Array(n)}function X1(e){const n=[];return Y1(e,i=>n.push(i)),new Uint8Array(n)}function Ei(e){const n=[],i={queue:0,queuedBits:0},a=s=>{n.push(s)};return e.forEach(s=>Ty(s,i,a)),Ty(null,i,a),n.join("")}function Q1(e){return Math.round(Date.now()/1e3)+e}function J1(){return Symbol("auth-callback")}const Mt=()=>typeof window<"u"&&typeof document<"u",yi={tested:!1,writable:!1},pb=()=>{if(!Mt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(yi.tested)return yi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),yi.tested=!0,yi.writable=!0}catch{yi.tested=!0,yi.writable=!1}return yi.writable};function Z1(e){const n={},i=new URL(e);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEac
38h((s,u)=>{n[u]=s})}catch{}return i.searchParams.forEach((a,s)=>{n[s]=a}),n}const mb=e=>e?(...n)=>e(...n):(...n)=>fetch(...n),W1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",xa=async(e,n,i)=>{await e.setItem(n,JSON.stringify(i))},vi=async(e,n)=>{const i=await e.getItem(n);if(!i)return null;try{return JSON.parse(i)}catch{return i}},Lt=async(e,n)=>{await e.removeItem(n)};class Yo{constructor(){this.promise=new Yo.promiseConstructor((n,i)=>{this.resolve=n,this.reject=i})}}Yo.promiseConstructor=Promise;function So(e){const n=e.split(".");if(n.length!==3)throw new lh("Invalid JWT structure");for(let a=0;a<n.length;a++)if(!I1.test(n[a]))throw new lh("JWT not in base64url format");return{header:JSON.parse(Ay(n[0])),payload:JSON.parse(Ay(n[1])),signature:ka(n[2]),raw:{header:n[0],payload:n[1]}}}async function eE(e){return await new Promise(n=>{setTimeout(()=>n(null),e)})}function tE(e,n){return new Promise((a,s)=>{(async()=>{for(let u=0;u<1/0;u++)try{const c=await e(u);if(!n(u,null,c)){a(c);return}}catch(c){if(!n(u,c)){s(c);return}}})()})}function nE(e){return("0"+e.toString(16)).substr(-2)}function rE(){const n=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=i.length;let s="";for(let u=0;u<56;u++)s+=i.charAt(Math.floor(Math.random()*a));return s}return crypto.getRandomValues(n),Array.from(n,nE).join("")}async function iE(e){const i=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",i),s=new Uint8Array(a);return Array.from(s).map(u=>String.fromCharCode(u)).join("")}async function aE(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 i=await iE(e);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ma(e,n,i=!1){const a=rE();let s=a;i&&(s+="/PASSWORD_RECOVERY"),await xa(e,`${n}-code-verifier`,s);const u=await aE(a);return[u,a===u?"plain":"s256"]}const lE=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function sE(e){const n=e.headers.get(ih);if(!n||!n.match(lE))return null;try{return new Date(`${n}T00:00:00.0Z`)}catch{return null}}function oE(e){if(!e)throw new Error("Missing exp claim");const n=Math.floor(Date.now()/1e3);if(e<=n)throw new Error("JWT has expired")}function uE(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 cE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ga(e){if(!cE.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function kf(){const e={};return new Proxy(e,{get:(n,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const a=i.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="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 "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(n,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(n,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function fE(e,n){return new Proxy(e,{get:(i,a,s)=>{if(a==="__isInsecureUserWarningProxy")return!0;if(typeof a=="symbol"){const u=a.toString();if(u==="Symbol(Symbol.toPrimitive)"||u==="Symbol(Symbol.toStringTag)"||u==="Symbol(util.inspect.custom)"||u==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,a,s)}
38return!n.value&&typeof a=="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."),n.value=!0),Reflect.get(i,a,s)}})}function Cy(e){return JSON.parse(JSON.stringify(e))}const wi=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),hE=[502,503,504];async function Ry(e){var n;if(!W1(e))throw new ah(wi(e),0);if(hE.includes(e.status))throw new ah(wi(e),e.status);let i;try{i=await e.json()}catch(u){throw new Si(wi(u),u)}let a;const s=sE(e);if(s&&s.getTime()>=hb["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?a=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(a=i.error_code),a){if(a==="weak_password")throw new Ey(wi(i),e.status,((n=i.weak_password)===null||n===void 0?void 0:n.reasons)||[]);if(a==="session_not_found")throw new cn}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((u,c)=>u&&typeof c=="string",!0))throw new Ey(wi(i),e.status,i.weak_password.reasons);throw new H1(wi(i),e.status||500,a)}const dE=(e,n,i,a)=>{const s={method:e,headers:n?.headers||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},n?.headers),s.body=JSON.stringify(a),Object.assign(Object.assign({},s),i))};async function be(e,n,i,a){var s;const u=Object.assign({},a?.headers);u[ih]||(u[ih]=hb["2024-01-01"].name),a?.jwt&&(u.Authorization=`Bearer ${a.jwt}`);const c=(s=a?.query)!==null&&s!==void 0?s:{};a?.redirectTo&&(c.redirect_to=a.redirectTo);const f=Object.keys(c).length?"?"+new URLSearchParams(c).toString():"",d=await pE(e,n,i+f,{headers:u,noResolveJson:a?.noResolveJson},{},a?.body);return a?.xform?a?.xform(d):{data:Object.assign({},d),error:null}}async function pE(e,n,i,a,s,u){const c=dE(n,a,s,u);let f;try{f=await e(i,Object.assign({},c))}catch(d){throw console.error(d),new ah(wi(d),0)}if(f.ok||await Ry(f),a?.noResolveJson)return f;try{return await f.json()}catch(d){await Ry(d)}}function Nn(e){var n;let i=null;yE(e)&&(i=Object.assign({},e),e.expires_at||(i.expires_at=Q1(e.expires_in)));const a=(n=e.user)!==null&&n!==void 0?n:e;return{data:{session:i,user:a},error:null}}function Oy(e){const n=Nn(e);return!n.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((i,a)=>i&&typeof a=="string",!0)&&(n.data.weak_password=e.weak_password),n}function Kr(e){var n;return{data:{user:(n=e.user)!==null&&n!==void 0?n:e},error:null}}function mE(e){return{data:e,error:null}}function gE(e){const{action_link:n,email_otp:i,hashed_token:a,redirect_to:s,verification_type:u}=e,c=Vo(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),f={action_link:n,email_otp:i,hashed_token:a,redirect_to:s,verification_type:u},d=Object.assign({},c);return{data:{properties:f,user:d},error:null}}function jy(e){return e}function yE(e){return e.access_token&&e.refresh_token&&e.expires_in}const Tf=["global","local","others"];class vE{constructor({url:n="",headers:i={},fetch:a}){this.url=n,this.headers=i,this.fetch=mb(a),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(n,i=Tf[0]){if(Tf.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Tf.join(", ")}`);try{return await be(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:n,noResolveJson:!0}),{data:null,error:null}}catch(a){if(de(a))return{data:null,error:a};throw a}}async inviteUserByEmail(n,i={}){try{return await be(this.fetch,"POST",`${this.url}/invite`,{body:{email:n,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:Kr})}catch(a){if(de(a))return{data:{user:null},error:a};throw a}}async generateLink(n){try{const{options:i}=n,a=Vo(n,["options"]),s=Object.assign(Object.assign({},a),i);return"newEmail"in a&&(s.new_email=a?.newEmail,delete s.newEmail),await be(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:gE,redirectTo:i?.redirectTo})}catch(i){if(de(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(n){try{return await be(this.fetch,"POST",`${this.url}/admin/users`,{body:n,headers:this.headers,xform:Kr})}catch(i){if(de(i))return{data:{user:null},error:i};throw i}}async listUsers(n){var i,a,s,u,c,f,d;try{const p={nextPage:null,lastPage:0,total:0},g=await be(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(i=n?.page)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:"",per_page:(u=(s=n?.perPage)===null||s===void 0?void 0:s.toString())!==null&&u!==void 0?u:""},xform:jy});if(g.error)throw g.error;const y=await g.json(),_=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(d=(f=g.headers.get("link"))===null||f===void 0?void 0:f.split(","))!==null&&d!==void 0?d:[];return b.length>0&&(b.forEach(S=>{const T=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),C=JSON.parse(S.split(";")[1].split("=")[1]);p[`${C}Page`]=T}),p.total=parseInt(_)),{data:Object.assign(Object.assign({},y),p),error:null}}catch(p){if(de(p))return{data:{users:[]},error:p};throw p}}async getUserById(n){ga(n);try{return await be(this.fetch,"GET",`${this.url}/admin/users/${n}`,{headers:this.headers,xform:Kr})}catch(i){if(de(i))return{data:{user:null},error:i};throw i}}async updateUserById(n,i){ga(n);try{return await be(this.fetch,"PUT",`${this.url}/admin/users/${n}`,{body:i,headers:this.headers,xform:Kr})}catch(a){if(de(a))return{data:{user:null},error:a};throw a}}async deleteUser(n,i=!1){ga(n);
38try{return await be(this.fetch,"DELETE",`${this.url}/admin/users/${n}`,{headers:this.headers,body:{should_soft_delete:i},xform:Kr})}catch(a){if(de(a))return{data:{user:null},error:a};throw a}}async _listFactors(n){ga(n.userId);try{const{data:i,error:a}=await be(this.fetch,"GET",`${this.url}/admin/users/${n.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:i,error:a}}catch(i){if(de(i))return{data:null,error:i};throw i}}async _deleteFactor(n){ga(n.userId),ga(n.id);try{return{data:await be(this.fetch,"DELETE",`${this.url}/admin/users/${n.userId}/factors/${n.id}`,{headers:this.headers}),error:null}}catch(i){if(de(i))return{data:null,error:i};throw i}}async _listOAuthClients(n){var i,a,s,u,c,f,d;try{const p={nextPage:null,lastPage:0,total:0},g=await be(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(i=n?.page)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:"",per_page:(u=(s=n?.perPage)===null||s===void 0?void 0:s.toString())!==null&&u!==void 0?u:""},xform:jy});if(g.error)throw g.error;const y=await g.json(),_=(c=g.headers.get("x-total-count"))!==null&&c!==void 0?c:0,b=(d=(f=g.headers.get("link"))===null||f===void 0?void 0:f.split(","))!==null&&d!==void 0?d:[];return b.length>0&&(b.forEach(S=>{const T=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),C=JSON.parse(S.split(";")[1].split("=")[1]);p[`${C}Page`]=T}),p.total=parseInt(_)),{data:Object.assign(Object.assign({},y),p),error:null}}catch(p){if(de(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(n){try{return await be(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:n,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(de(i))return{data:null,error:i};throw i}}async _getOAuthClient(n){try{return await be(this.fetch,"GET",`${this.url}/admin/oauth/clients/${n}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(de(i))return{data:null,error:i};throw i}}async _updateOAuthClient(n,i){try{return await be(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${n}`,{body:i,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(de(a))return{data:null,error:a};throw a}}async _deleteOAuthClient(n){try{return await be(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${n}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(de(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(n){try{return await be(this.fetch,"POST",`${this.url}/admin/oauth/clients/${n}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(de(i))return{data:null,error:i};throw i}}async _listCustomProviders(n){try{const i={};return n?.type&&(i.type=n.type),await be(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:a=>{var s;return{data:{providers:(s=a?.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(i){if(de(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(n){try{return await be(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:n,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(de(i))return{data:null,error:i};throw i}}async _getCustomProvider(n){try{return await be(this.fetch,"GET",`${this.url}/admin/custom-providers/${n}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(de(i))return{data:null,error:i};throw i}}async _updateCustomProvider(n,i){try{return await be(this.fetch,"PUT",`${this.url}/admin/custom-providers/${n}`,{body:i,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(de(a))return{data:null,error:a};throw a}}async _deleteCustomProvider(n){try{return await be(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${n}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(de(i))return{data:null,error:i};throw i}}}function Dy(e={}){return{getItem:n=>e[n]||null,setItem:(n,i)=>{e[n]=i},removeItem:n=>{delete e[n]}}}const fr={debug:!!(globalThis&&pb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
38class gb extends Error{constructor(n){super(n),this.isAcquireTimeout=!0}}class bE extends gb{}async function _E(e,n,i){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,n);const a=new globalThis.AbortController;n>0&&setTimeout(()=>{a.abort(),fr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},n),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,n===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:a.signal},async s=>{if(s){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await i()}finally{fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(n===0)throw fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new bE(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(fr.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null,"  "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}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 i()}})}catch(s){if(s?.name==="AbortError"&&n>0)return fr.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 ${n}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 u=>{if(u){fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,u.name);try{return await i()}finally{fr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await i()}));throw s}}function wE(){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 yb(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function xE(e){return parseInt(e,16)}function SE(e){const n=new TextEncoder().encode(e);return"0x"+Array.from(n,a=>a.toString(16).padStart(2,"0")).join("")}function EE(e){var n;const{chainId:i,domain:a,expirationTime:s,issuedAt:u=new Date,nonce:c,notBefore:f,requestId:d,resources:p,scheme:g,uri:y,version:_}=e;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!a)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(c&&c.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${c}`);if(!y)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(_!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${_}`);if(!((n=e.statement)===null||n===void 0)&&n.includes(`
39`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const b=yb(e.address),S=g?`${g}://${a}`:a,T=e.statement?`${e.statement}
40`:"",C=`${S} wants you to sign in with your Ethereum account:
41${b}
42
43${T}`;let A=`URI: ${y}
44Version: ${_}
45Chain ID: ${i}${c?`
46Nonce: ${c}`:""}
47Issued At: ${u.toISOString()}`;if(s&&(A+=`
48Expiration Time: ${s.toISOString()}`),f&&(A+=`
49Not Before: ${f.toISOString()}`),d&&(A+=`
50Request ID: ${d}`),p){let N=`
51Resources:`;
51for(const j of p){if(!j||typeof j!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${j}`);N+=`
52- ${j}`}A+=N}return`${C}
53${A}`}class St extends Error{constructor({message:n,code:i,cause:a,name:s}){var u;super(n,{cause:a}),this.__isWebAuthnError=!0,this.name=(u=s??(a instanceof Error?a.name:void 0))!==null&&u!==void 0?u:"Unknown Error",this.code=i}}class Lo extends St{constructor(n,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:n}),this.name="WebAuthnUnknownError",this.originalError=i}}function kE({error:e,options:n}){var i,a,s;const{publicKey:u}=n;if(!u)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(n.signal instanceof AbortSignal)return new St({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((i=u.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new St({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(n.mediation==="conditional"&&((a=u.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new St({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=u.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new St({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 St({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new St({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return u.pubKeyCredParams.filter(f=>f.type==="public-key").length===0?new St({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new St({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 c=window.location.hostname;if(vb(c)){if(u.rp.id!==c)return new St({message:`The RP ID "${u.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new St({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(u.user.id.byteLength<1||u.user.id.byteLength>64)return new St({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 St({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 St({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function TE({error:e,options:n}){const{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(n.signal instanceof AbortSignal)return new St({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new St({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(vb(a)){if(i.rpId!==a)return new St({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new St({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new St({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
53ROR",cause:e})}return new St({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class AE{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const n=new AbortController;return this.controller=n,n.signal}cancelCeremony(){if(this.controller){const n=new Error("Manually cancelling existing WebAuthn API call");n.name="AbortError",this.controller.abort(n),this.controller=void 0}}}const CE=new AE;function RE(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:n,user:i,excludeCredentials:a}=e,s=Vo(e,["challenge","user","excludeCredentials"]),u=ka(n).buffer,c=Object.assign(Object.assign({},i),{id:ka(i.id).buffer}),f=Object.assign(Object.assign({},s),{challenge:u,user:c});if(a&&a.length>0){f.excludeCredentials=new Array(a.length);for(let d=0;d<a.length;d++){const p=a[d];f.excludeCredentials[d]=Object.assign(Object.assign({},p),{id:ka(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return f}function OE(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:n,allowCredentials:i}=e,a=Vo(e,["challenge","allowCredentials"]),s=ka(n).buffer,u=Object.assign(Object.assign({},a),{challenge:s});if(i&&i.length>0){u.allowCredentials=new Array(i.length);for(let c=0;c<i.length;c++){const f=i[c];u.allowCredentials[c]=Object.assign(Object.assign({},f),{id:ka(f.id).buffer,type:f.type||"public-key",transports:f.transports})}}return u}function jE(e){var n;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ei(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ei(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(n=i.authenticatorAttachment)!==null&&n!==void 0?n:void 0}}function DE(e){var n;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e,a=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ei(new Uint8Array(s.authenticatorData)),clientDataJSON:Ei(new Uint8Array(s.clientDataJSON)),signature:Ei(new Uint8Array(s.signature)),userHandle:s.userHandle?Ei(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:a,authenticatorAttachment:(n=i.authenticatorAttachment)!==null&&n!==void 0?n:void 0}}function vb(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function zy(){var e,n;return!!(Mt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((n=navigator?.credentials)===null||n===void 0?void 0:n.get)=="function")}async function zE(e){try{const n=await navigator.credentials.create(e);return n?n instanceof PublicKeyCredential?{data:n,error:null}:{data:null,error:new Lo("Browser returned unexpected credential type",n)}:{data:null,error:new Lo("Empty credential response",n)}}catch(n){return{data:null,error:kE({error:n,options:e})}}}async function NE(e){try{const n=await navigator.credentials.get(e);return n?n instanceof PublicKeyCredential?{data:n,error:null}:{data:null,error:new Lo("Browser returned unexpected credential type",n)}:{data:null,error:new Lo("Empty credential response",n)}}catch(n){return{data:null,error:TE({error:n,options:e})}}}const LE={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},ME={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Mo(...e){const n=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),i=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),a={};for(const s of e)if(s)for(const u in s){const c=s[u];if(c!==void 0)if(Array.isArray(c))a[u]=c;else if(i(c))a[u]=c;else if(n(c)){const f=a[u];n(f)?a[u]=Mo(f,c):a[u]=Mo(c)}else a[u]=c}return a}function UE(e,n){return Mo(LE,e,n||{})}function BE(e,n){return Mo(ME,e,n||{})}class IE{constructor(n){this.client=n,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(n){return this.client.mfa.enroll(Object.assign(Object.assign({},n),{factorType:"webauthn"}))}async _challenge({factorId:n,webauthn:i,friendlyName:a,signal:s},u){var c;try{const{data:f,error:d}=await this.client.mfa.challenge({factorId:n,webauthn:i});if(!f)return{data:null,error:d};const p=s??CE.createNewAbortSignal();if(f.webauthn.type==="create"){const{user:g}=f.webauthn.credential_options.publicKey;if(!g.name){const y=a;if(y)g.name=`${g.id}:${y}`;else{const b=(await this.client.getUser()).data.user,S=((c=b?.user_metadata)===null||c===void 0?void 0:c.name)||b?.email||b?.id||"User";g.name=`${g.id}:${S}`}}g.displayName||(g.displayName=g.name)}switch(f.webauthn.type){case"create":{const g=UE(f.webauthn.credential_options.publicKey,u?.create),{data:y,error:_}=await zE({publicKey:g,signal:p});return y?{data:{factorId:n,challengeId:f.id,webauthn:{type:f.webauthn.type,credential_response:y}},error:null}:{data:null,error:_}}case"request":{const g=BE(f.webauthn.credential_options.publicKey,u?.request),{data:y,error:_}=await NE(Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:g,signal:p}));return y?{data:{factorId:n,challengeId:f.id,webauthn:{type:f.webauthn.type,credential_response:y}},error:null}:{data:null,error:_}}}}catch(f){return de(f)?{data:null,error:f}:{data:null,error:new Si("Unexpected error in challenge",f)}}}async _verify({challengeId:n,factorId:i,webauthn:a}){return this.client.mfa.verify({factorId:i,challengeId:n,webauthn:a})}async _authenticate({factorId:n,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},u){if(!i)return{data:null,error:new Fl("rpId is required for WebAuthn authentication")};try{if(!zy())return{data:null,error:new Si("Browser does not support WebAuthn",null)};const{data:c,error:f}=await this.challenge({factorId:n,webauthn:{rpId:i,rpOrigins:a},signal:s},{request:u});if(!c)return{data:null,error:f};const{webauthn:d}=c;return this._verify({factorId:n,challengeId:c.challengeId,webauthn:{type:d.type,rpId:i,rpOrigins:a,credential_response:d.credential_response}})}catch(c){return de(c)?{data:null,error:c}:{data:null,error:new Si("Unexpected error in authenticate",c)}}}async _register({friendlyName:n,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},u){if(!i)return{data:null,error:new Fl("rpId is required for WebAuthn registration")};try{if(!zy())return{data:null,error:new Si("Browser does not support WebAuthn",null)};const{data:c,error:f}=await this._enroll({friendlyName:n});if(!c)return await this.client.mfa.listFactors().then(g=>{var y;return(y=g.data)===null||y===void 0?void 0:y.all.find(_=>_.factor_type==="webauthn"&&_.friendly_name===n&&_.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:f};const{data:d,error:p}=await this._challenge({factorId:c.id,friendlyName:c.friendly_name,webauthn:{rpId:i,rpOrigins:a},signal:s},{create:u});return d?this._verify({factorId:c.id,challengeId:d.challengeId,webauthn:{rpId:i,rpOrigins:a,type:d.webauthn.type,credential_response:d.webauthn.credential_response}}):{data:null,error:p}}catch(c){return de(c)?{data:null,error:c}:{data:null,error:new Si("Unexpected error in register",c)}}}}wE();const PE={url:M1,storageKey:U1,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:B1,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Ny(e,n,i){return await i()}const ya={};class Yl{get jwks(){var n,i;return(i=(n=ya[this.storageKey])===null||n===void 0?void 0:n.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(n){ya[this.storageKey]=Object.assign(Object.assign({},ya[this.storageKey]),{jwks:n})}get jwks_cached_at(){var n,i;return(i=(n=ya[this.storageKey])===null||n===void 0?void 0:n.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(n){ya[this.storageKey]=Object.assign(Object.assign({},ya[this.storageKey]),{cachedAt:n})}constructor(n){var i,a,s;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 u=Object.assign(Object.assign({},PE),n);if(this.storageKey=u.storageKey,this.instanceID=(i=Yl.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,Yl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&Mt()){const c=`${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(c),this.logDebugMessages&&console.trace(c)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.admin=new vE({url:u.url,headers:u.headers,fetch:u.fetch}),this.url=u.url,this.headers=u.headers,this.fetch=mb(u.fetch),this.lock=u.lock||Ny,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
53stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&Mt()&&(!((a=globalThis?.navigator)===null||a===void 0)&&a.locks)?this.lock=_E:this.lock=Ny,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 IE(this)},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?(u.storage?this.storage=u.storage:pb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Dy(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=Dy(this.memoryStorage)),Mt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(c){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",c)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async c=>{this._debug("received broadcast notification from other tab or client",c);try{await this._notifyAllSubscribers(c.data.event,c.data.session,!1)}catch(f){this._debug("#broadcastChannel","error",f)}})}u.skipAutoInitialize||this.initialize().catch(c=>{this._debug("#initialize()","error",c)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(n){if(this.throwOnError&&n&&n.error)throw n.error;return n}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${fb}) ${new Date().toISOString()}`}_debug(...n){return this.logDebugMessages&&this.logger(this._logPrefix(),...n),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 n;try{let i={},a="none";if(Mt()&&(i=Z1(window.location.href),this._isImplicitGrantCallback(i)?a="implicit":await this._isPKCECallback(i)&&(a="pkce")),Mt()&&this.detectSessionInUrl&&a!=="none"){const{data:s,error:u}=await this._getSessionFromURL(i,a);if(u){if(this._debug("#_initialize()","error detecting session from URL",u),$1(u)){const d=(n=u.details)===null||n===void 0?void 0:n.code;if(d==="identity_already_exists"||d==="identity_not_found"||d==="single_identity_not_deletable")return{error:u}}return{error:u}}const{session:c,redirectType:f}=s;return this._debug("#_initialize()","detected session in URL",c,"redirect type",f),await this._saveSession(c),setTimeout(async()=>{f==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",c):await this._notifyAllSubscribers("SIGNED_IN",c)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return de(i)?this._returnResult({error:i}):this._returnResult({error:new Si("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(n){var i,a,s;try{const u=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(i=n?.options)===null||i===void 0?void 0:i.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(s=n?.options)===null||s===void 0?void 0:s.captchaToken}},xform:Nn}),{data:c,error:f}=u;if(f||!c)return this._returnResult({data:{user:null,session:null},error:f});const d=c.session,p=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",d)),this._returnResult({data:{user:p,session:d},error:null})}catch(u){if(de(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async signUp(n){var i,a,s;try{let u;if("email"in n){const{email:g,password:y,options:_}=n;let b=null,S=null;this.flowType==="pkce"&&([b,S]=await ma(this.storage,this.storageKey)),u=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:_?.emailRedirectTo,body:{email:g,password:y,data:(i=_?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:_?.captchaToken},code_challenge:b,code_challenge_method:S},xform:Nn})}else if("phone"in n){const{phone:g,password:y,options:_}=n;u=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:y,data:(a=_?.data)!==null&&a!==void 0?a:{},channel:(s=_?.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:_?.captchaToken}},xform:Nn})}else throw new wo("You must provide either an email or phone number and a password");const{data:c,error:f}=u;if(f||!c)return await Lt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:f});const d=c.session,p=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",d)),this._returnResult({data:{user:p,session:d},error:null})}catch(u){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async signInWithPassword(n){try{let i;if("email"in n){const{email:u,password:c,options:f}=n;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:u,password:c,gotrue_meta_security:{captcha_token:f?.captchaToken}},xform:Oy})}else if("phone"in n){const{phone:u,password:c,options:f}=n;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:u,password:c,gotrue_meta_security:{captcha_token:f?.captchaToken}},xform:Oy})}else throw new wo("You must provide either an email or phone number and a password");const{data:a,error:s}=i;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!a||!a.session||!a.user){const u=new pa;return this._returnResult({data:{user:null,session:null},error:u})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:s})}catch(i){if(de(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(n){var i,a,s,u;return await this._handleProviderSignIn(n.provider,{redirectTo:(i=n.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=n.options)===null||a===void 0?void 0:a.scopes,queryParams:(s=n.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(u=n.options)===null||u===void 0?void 0:u.skipBrowserRedirect})}async exchangeCodeForSession(n){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(n))}async signInWithWeb3(n){const{chain:i}=n;switch(i){case"ethereum":return await this.signInWithEthereum(n);case"solana":return await this.signInWithSolana(n);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(n){var i,a,s,u,c,f,d,p,g,y,_;let b,S;if("message"in n)b=n.message,S=n.signature;else{const{chain:T,wallet:C,statement:A,options:N}=n;let j;if(Mt())if(typeof C=="object")j=C;else{const fe=window;if("ethereum"in fe&&typeof fe.ethereum=="object"&&"request"in fe.ethereum&&typeof fe.ethereum.request=="function")j=fe.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 C!="object"||!N?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=C}const X=new URL((i=N?.url)!==null&&i!==void 0?i:window.location.href),re=await j.request({method:"eth_requestAccounts"}).then(fe=>
53fe).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!re||re.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const M=yb(re[0]);let Z=(a=N?.signInWithEthereum)===null||a===void 0?void 0:a.chainId;if(!Z){const fe=await j.request({method:"eth_chainId"});Z=xE(fe)}const ue={domain:X.host,address:M,statement:A,uri:X.href,version:"1",chainId:Z,nonce:(s=N?.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(c=(u=N?.signInWithEthereum)===null||u===void 0?void 0:u.issuedAt)!==null&&c!==void 0?c:new Date,expirationTime:(f=N?.signInWithEthereum)===null||f===void 0?void 0:f.expirationTime,notBefore:(d=N?.signInWithEthereum)===null||d===void 0?void 0:d.notBefore,requestId:(p=N?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(g=N?.signInWithEthereum)===null||g===void 0?void 0:g.resources};b=EE(ue),S=await j.request({method:"personal_sign",params:[SE(b),M]})}try{const{data:T,error:C}=await be(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:S},!((y=n.options)===null||y===void 0)&&y.captchaToken?{gotrue_meta_security:{captcha_token:(_=n.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:Nn});if(C)throw C;if(!T||!T.session||!T.user){const A=new pa;return this._returnResult({data:{user:null,session:null},error:A})}return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:C})}catch(T){if(de(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async signInWithSolana(n){var i,a,s,u,c,f,d,p,g,y,_,b;let S,T;if("message"in n)S=n.message,T=n.signature;else{const{chain:C,wallet:A,statement:N,options:j}=n;let X;if(Mt())if(typeof A=="object")X=A;else{const M=window;if("solana"in M&&typeof M.solana=="object"&&("signIn"in M.solana&&typeof M.solana.signIn=="function"||"signMessage"in M.solana&&typeof M.solana.signMessage=="function"))X=M.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 A!="object"||!j?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");X=A}const re=new URL((i=j?.url)!==null&&i!==void 0?i:window.location.href);
53if("signIn"in X&&X.signIn){const M=await X.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},j?.signInWithSolana),{version:"1",domain:re.host,uri:re.href}),N?{statement:N}:null));let Z;if(Array.isArray(M)&&M[0]&&typeof M[0]=="object")Z=M[0];else if(M&&typeof M=="object"&&"signedMessage"in M&&"signature"in M)Z=M;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in Z&&"signature"in Z&&(typeof Z.signedMessage=="string"||Z.signedMessage instanceof Uint8Array)&&Z.signature instanceof Uint8Array)S=typeof Z.signedMessage=="string"?Z.signedMessage:new TextDecoder().decode(Z.signedMessage),T=Z.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in X)||typeof X.signMessage!="function"||!("publicKey"in X)||typeof X!="object"||!X.publicKey||!("toBase58"in X.publicKey)||typeof X.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${re.host} wants you to sign in with your Solana account:`,X.publicKey.toBase58(),...N?["",N,""]:[""],"Version: 1",`URI: ${re.href}`,`Issued At: ${(s=(a=j?.signInWithSolana)===null||a===void 0?void 0:a.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((u=j?.signInWithSolana)===null||u===void 0)&&u.notBefore?[`Not Before: ${j.signInWithSolana.notBefore}`]:[],...!((c=j?.signInWithSolana)===null||c===void 0)&&c.expirationTime?[`Expiration Time: ${j.signInWithSolana.expirationTime}`]:[],...!((f=j?.signInWithSolana)===null||f===void 0)&&f.chainId?[`Chain ID: ${j.signInWithSolana.chainId}`]:[],...!((d=j?.signInWithSolana)===null||d===void 0)&&d.nonce?[`Nonce: ${j.signInWithSolana.nonce}`]:[],...!((p=j?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${j.signInWithSolana.requestId}`]:[],...!((y=(g=j?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||y===void 0)&&y.length?["Resources",...j.signInWithSolana.resources.map(Z=>`- ${Z}`)]:[]].join(`
54`);const M=await X.signMessage(new TextEncoder().encode(S),"utf8");if(!M||!(M instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");T=M}}try{const{data:C,error:A}=await be(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:Ei(T)},!((_=n.options)===null||_===void 0)&&_.captchaToken?{gotrue_meta_security:{captcha_token:(b=n.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:Nn});if(A)throw A;if(!C||!C.session||!C.user){const N=new pa;return this._returnResult({data:{user:null,session:null},error:N})}return C.session&&(await this._saveSession(C.session),await this._notifyAllSubscribers("SIGNED_IN",C.session)),this._returnResult({data:Object.assign({},C),error:A})}catch(C){if(de(C))return this._returnResult({data:{user:null,session:null},error:C});throw C}}async _exchangeCodeForSession(n){const i=await vi(this.storage,`${this.storageKey}-code-verifier`),[a,s]=(i??"").split("/");try{if(!a&&this.flowType==="pkce")throw new V1;const{data:u,error:c}=await be(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:n,code_verifier:a},xform:Nn});if(await Lt(this.storage,`${this.storageKey}-code-verifier`),c)throw c;if(!u||!u.session||!u.user){const f=new pa;return this._returnResult({data:{user:null,session:null,redirectType:null},error:f})}return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),this._returnResult({data:Object.assign(Object.assign({},u),{redirectType:s??null}),error:c})}catch(u){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(u))return this._returnResult({data:{user:null,session:null,redirectType:null},error:u});throw u}}async signInWithIdToken(n){try{const{options:i,provider:a,token:s,access_token:u,nonce:c}=n,f=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:s,access_token:u,nonce:c,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Nn}),{data:d,error:p}=f;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!d||!d.session||!d.user){const g=new pa;return this._returnResult({data:{user:null,session:null},error:g})}return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",d.session)),this._returnResult({data:d,error:p})}catch(i){if(de(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(n){var i,a,s,u,c;try{if("email"in n){const{email:f,options:d}=n;let p=null,g=null;this.flowType==="pkce"&&([p,g]=await ma(this.storage,this.storageKey));const{error:y}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:f,data:(i=d?.data)!==null&&i!==void 0?i:{},create_user:(a=d?.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:d?.captchaToken},code_challenge:p,code_challenge_method:g},redirectTo:d?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:y})}if("phone"in n){const{phone:f,options:d}=n,{data:p,error:g}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:f,data:(s=d?.data)!==null&&s!==void 0?s:{},create_user:(u=d?.shouldCreateUser)!==null&&u!==void 0?u:!0,gotrue_meta_security:{captcha_token:d?.captchaToken},channel:(c=d?.channel)!==null&&c!==void 0?c:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:p?.message_id},error:g})}throw new wo("You must provide either an email or phone number.")}catch(f){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(f))return this._returnResult({data:{user:null,session:null},error:f});throw f}}async verifyOtp(n){var i,a;try{let s,u;"options"in n&&(s=(i=n.options)===null||i===void 0?void 0:i.redirectTo,u=(a=n.options)===null||a===void 0?void 0:a.captchaToken);const{data:c,error:f}=await be(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},n),{gotrue_meta_security:{captcha_token:u}}),redirectTo:s,xform:Nn});if(f)throw f;if(!c)throw new Error("An error occurred on token verification.");const d=c.session,p=c.user;return d?.access_token&&(await this._saveSession(d),await this._notifyAllSubscribers(n.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",d)),this._returnResult({data:{user:p,session:d},error:null})}catch(s){if(de(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(n){var i,a,s,u,c;try{let f=null,d=null;this.flowType==="pkce"&&([f,d]=await ma(this.storage,this.storageKey));const p=await be(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in n?{provider_id:n.providerId}:null),"domain"in n?{domain:n.domain}:null),{redirect_to:(a=(i=n.options)===null||i===void 0?void 0:i.redirectTo)!==null&&a!==void 0?a:void 0}),!((s=n?.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:n.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:f,code_challenge_method:d}),headers:this.headers,xform:mE});return!((u=p.data)===null||u===void 0)&&u.url&&Mt()&&!(!((c=n.options)===null||c===void 0)&&c.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(f){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(f))return this._returnResult({data:null,error:f});throw f}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;
54if(a)throw a;if(!i)throw new cn;const{error:s}=await be(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(n){if(de(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async resend(n){try{const i=`${this.url}/resend`;if("email"in n){const{email:a,type:s,options:u}=n,{error:c}=await be(this.fetch,"POST",i,{headers:this.headers,body:{email:a,type:s,gotrue_meta_security:{captcha_token:u?.captchaToken}},redirectTo:u?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in n){const{phone:a,type:s,options:u}=n,{data:c,error:f}=await be(this.fetch,"POST",i,{headers:this.headers,body:{phone:a,type:s,gotrue_meta_security:{captcha_token:u?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:c?.message_id},error:f})}throw new wo("You must provide either an email or phone number and a type")}catch(i){if(de(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async i=>i))}async _acquireLock(n,i){this._debug("#_acquireLock","begin",n);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await a,await i()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,n,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=i();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(n){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await n(i)}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 n=null;const i=await vi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?n=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!n)return{data:{session:null},error:null};const a=n.expires_at?n.expires_at*1e3-Date.now()<xf:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",n.expires_at),!a){if(this.userStorage){const c=await vi(this.userStorage,this.storageKey+"-user");c?.user?n.user=c.user:n.user=kf()}if(this.storage.isServer&&n.user&&!n.user.__isUserNotAvailableProxy){const c={value:this.suppressGetSessionWarning};n.user=fE(n.user,c),c.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:n},error:null}}const{data:s,error:u}=await this._callRefreshToken(n.refresh_token);return u?this._returnResult({data:{session:null},error:u}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(n){if(n)return await this._getUser(n);await this.initializePromise;const i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(n){try{return n?await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:n,xform:Kr}):await this._useSession(async i=>{var a,s,u;const{data:c,error:f}=i;if(f)throw f;return!(!((a=c.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new cn}:await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(u=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&u!==void 0?u:void 0,xform:Kr})})}catch(i){if(de(i))return Sf(i)&&(await this._removeSession(),await Lt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(n,i={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(n,i))}async _updateUser(n,i={}){try{return await this._useSession(async a=>{const{data:s,error:u}=a;if(u)throw u;if(!s.session)throw new cn;const c=s.session;let f=null,d=null;this.flowType==="pkce"&&n.email!=null&&([f,d]=await ma(this.storage,this.storageKey));const{data:p,error:g}=await be(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:Object.assign(Object.assign({}
54,n),{code_challenge:f,code_challenge_method:d}),jwt:c.access_token,xform:Kr});if(g)throw g;return c.user=p.user,await this._saveSession(c),await this._notifyAllSubscribers("USER_UPDATED",c),this._returnResult({data:{user:c.user},error:null})})}catch(a){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(n){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(n))}async _setSession(n){try{if(!n.access_token||!n.refresh_token)throw new cn;const i=Date.now()/1e3;let a=i,s=!0,u=null;const{payload:c}=So(n.access_token);if(c.exp&&(a=c.exp,s=a<=i),s){const{data:f,error:d}=await this._callRefreshToken(n.refresh_token);if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!f)return{data:{user:null,session:null},error:null};u=f}else{const{data:f,error:d}=await this._getUser(n.access_token);if(d)return this._returnResult({data:{user:null,session:null},error:d});u={access_token:n.access_token,refresh_token:n.refresh_token,user:f.user,token_type:"bearer",expires_in:a-i,expires_at:a},await this._saveSession(u),await this._notifyAllSubscribers("SIGNED_IN",u)}return this._returnResult({data:{user:u.user,session:u},error:null})}catch(i){if(de(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(n){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(n))}async _refreshSession(n){try{return await this._useSession(async i=>{var a;if(!n){const{data:c,error:f}=i;if(f)throw f;n=(a=c.session)!==null&&a!==void 0?a:void 0}if(!n?.refresh_token)throw new cn;const{data:s,error:u}=await this._callRefreshToken(n.refresh_token);return u?this._returnResult({data:{user:null,session:null},error:u}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(i){if(de(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(n,i){try{if(!Mt())throw new xo("No browser detected.");if(n.error||n.error_description||n.error_code)throw new xo(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new Sy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new xo("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!n.code)throw new Sy("No code detected.");const{data:N,error:j}=await this._exchangeCodeForSession(n.code);if(j)throw j;const X=new URL(window.location.href);return X.searchParams.delete("code"),window.history.replaceState(window.history.state,"",X.toString()),{data:{session:N.session,redirectType:null},error:null}}const{provider_token:a,provider_refresh_token:s,access_token:u,refresh_token:c,expires_in:f,expires_at:d,token_type:p}=n;if(!u||!f||!c||!p)throw new xo("No session defined in URL");const g=Math.round(Date.now()/1e3),y=parseInt(f);let _=g+y;d&&(_=parseInt(d));const b=_-g;b*1e3<=wa&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${b}s, should have been closer to ${y}s`);const S=_-y;g-S>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",S,_,g):g-S<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",S,_,g);const{data:T,error:C}=await this._getUser(u);if(C)throw C;const A={provider_token:a,provider_refresh_token:s,access_token:u,expires_in:y,expires_at:_,refresh_token:c,token_type:p,user:T.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:A,redirectType:n.type},error:null})}catch(a){if(de(a))return this._returnResult({data:{session:null,redirectType:null},error:a});throw a}}_isImplicitGrantCallback(n){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),n):!!(n.access_token||n.error_description)}async _isPKCECallback(n){const i=await vi(this.storage,`${this.storageKey}-code-verifier`);return!!(n.code&&i)}async signOut(n={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(n))}async _signOut({scope:n}={scope:"global"}){return await this._useSession(async i=>{var a;const{data:s,error:u}=i;if(u&&!Sf(u))return this._returnResult({error:u});const c=(a=s.session)===null||a===void 0?void 0:a.access_token;if(c){const{error:f}=await this.admin.signOut(c,n);if(f&&!(q1(f)&&(f.status===404||f.status===401||f.status===403)||Sf(f)))return this._returnResult({error:f})}return n!=="others"&&(await this._removeSession(),await Lt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(n){const i=J1(),a={id:i,callback:n,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,a),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:a}}}async _emitInitialSession(n){return await this._useSession(async i=>{var a,s;try{const{data:{session:u},error:c}=i;
54if(c)throw c;await((a=this.stateChangeEmitters.get(n))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",u)),this._debug("INITIAL_SESSION","callback id",n,"session",u)}catch(u){await((s=this.stateChangeEmitters.get(n))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",n,"error",u),console.error(u)}})}async resetPasswordForEmail(n,i={}){let a=null,s=null;this.flowType==="pkce"&&([a,s]=await ma(this.storage,this.storageKey,!0));try{return await be(this.fetch,"POST",`${this.url}/recover`,{body:{email:n,code_challenge:a,code_challenge_method:s,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(u){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(u))return this._returnResult({data:null,error:u});throw u}}async getUserIdentities(){var n;try{const{data:i,error:a}=await this.getUser();if(a)throw a;return this._returnResult({data:{identities:(n=i.user.identities)!==null&&n!==void 0?n:[]},error:null})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(n){return"token"in n?this.linkIdentityIdToken(n):this.linkIdentityOAuth(n)}async linkIdentityOAuth(n){var i;try{const{data:a,error:s}=await this._useSession(async u=>{var c,f,d,p,g;const{data:y,error:_}=u;if(_)throw _;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,n.provider,{redirectTo:(c=n.options)===null||c===void 0?void 0:c.redirectTo,scopes:(f=n.options)===null||f===void 0?void 0:f.scopes,queryParams:(d=n.options)===null||d===void 0?void 0:d.queryParams,skipBrowserRedirect:!0});return await be(this.fetch,"GET",b,{headers:this.headers,jwt:(g=(p=y.session)===null||p===void 0?void 0:p.access_token)!==null&&g!==void 0?g:void 0})});if(s)throw s;return Mt()&&!(!((i=n.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(a?.url),this._returnResult({data:{provider:n.provider,url:a?.url},error:null})}catch(a){if(de(a))return this._returnResult({data:{provider:n.provider,url:null},error:a});throw a}}async linkIdentityIdToken(n){return await this._useSession(async i=>{var a;try{const{error:s,data:{session:u}}=i;if(s)throw s;const{options:c,provider:f,token:d,access_token:p,nonce:g}=n,y=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(a=u?.access_token)!==null&&a!==void 0?a:void 0,body:{provider:f,id_token:d,access_token:p,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:c?.captchaToken}},xform:Nn}),{data:_,error:b}=y;return b?this._returnResult({data:{user:null,session:null},error:b}):!_||!_.session||!_.user?this._returnResult({data:{user:null,session:null},error:new pa}):(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("USER_UPDATED",_.session)),this._returnResult({data:_,error:b}))}catch(s){if(await Lt(this.storage,`${this.storageKey}-code-verifier`),de(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(n){try{return await this._useSession(async i=>{var a,s;const{data:u,error:c}=i;if(c)throw c;return await be(this.fetch,"DELETE",`${this.url}/user/identities/${n.identity_id}`,{headers:this.headers,jwt:(s=(a=u.session)===null||a===void 0?void 0:a.access_token)!==null&&s!==void 0?s:void 0})})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(n){const i=`#_refreshAccessToken(${n.substring(0,5)}...)`;this._debug(i,"begin");try{const a=Date.now();return await tE(async s=>(s>
540&&await eE(200*Math.pow(2,s-1)),this._debug(i,"refreshing attempt",s),await be(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:n},headers:this.headers,xform:Nn})),(s,u)=>{const c=200*Math.pow(2,s);return u&&Ef(u)&&Date.now()+c-a<wa})}catch(a){if(this._debug(i,"error",a),de(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(i,"end")}}_isValidSession(n){return typeof n=="object"&&n!==null&&"access_token"in n&&"refresh_token"in n&&"expires_at"in n}async _handleProviderSignIn(n,i){const a=await this._getUrlForProvider(`${this.url}/authorize`,n,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",n,"options",i,"url",a),Mt()&&!i.skipBrowserRedirect&&window.location.assign(a),{data:{provider:n,url:a},error:null}}async _recoverAndRefresh(){var n,i;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const s=await vi(this.storage,this.storageKey);if(s&&this.userStorage){let c=await vi(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!c&&(c={user:s.user},await xa(this.userStorage,this.storageKey+"-user",c)),s.user=(n=c?.user)!==null&&n!==void 0?n:kf()}else if(s&&!s.user&&!s.user){const c=await vi(this.storage,this.storageKey+"-user");c&&c?.user?(s.user=c.user,await Lt(this.storage,this.storageKey+"-user"),await xa(this.storage,this.storageKey,s)):s.user=kf()}if(this._debug(a,"session from storage",s),!this._isValidSession(s)){this._debug(a,"session is not valid"),s!==null&&await this._removeSession();return}const u=((i=s.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<xf;if(this._debug(a,`session has${u?"":" not"} expired with margin of ${xf}s`),u){if(this.autoRefreshToken&&s.refresh_token){const{error:c}=await this._callRefreshToken(s.refresh_token);c&&(console.error(c),Ef(c)||(this._debug(a,"refresh failed with a non-retryable error, removing the session",c),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:c,error:f}=await this._getUser(s.access_token);!f&&c?.user?(s.user=c.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(a,"could not get user data, skipping SIGNED_IN notification")}catch(c){console.error("Error getting user data:",c),this._debug(a,"error getting user data, skipping SIGNED_IN notification",c)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(a,"error",s),console.error(s);return}finally{this._debug(a,"end")}}async _callRefreshToken(n){var i,a;if(!n)throw new cn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${n.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Yo;const{data:u,error:c}=await this._refreshAccessToken(n);if(c)throw c;if(!u.session)throw new cn;await this._saveSession(u.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",u.session);const f={data:u.session,error:null};return this.refreshingDeferred.resolve(f),f}catch(u){if(this._debug(s,"error",u),de(u)){const c={data:null,error:u};return Ef(u)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(c),c}throw(a=this.refreshingDeferred)===null||a===void 0||a.reject(u),u}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(n,i,a=!0){const s=`#_notifyAllSubscribers(${n})`;this._debug(s,"begin",i,`broadcast = ${a}`);try{this.broadcastChannel&&a&&this.broadcastChannel.postMessage({event:n,session:i});const u=[],c=Array.from(this.stateChangeEmitters.values()).map(async f=>{try{await f.callback(n,i)}catch(d){u.push(d)}});if(await Promise.all(c),u.length>0){for(let f=0;f<u.length;f+=1)console.error(u[f]);throw u[0]}}finally{this._debug(s,"end")}}async _saveSession(n){this._debug("#_saveSession()",n),this.suppressGetSessionWarning=!0,await Lt(this.storage,`${this.storageKey}-code-verifier`);const i=Object.assign({},n),a=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!a&&i.user&&await xa(this.userStorage,this.storageKey+"-user",{user:i.user});const s=Object.assign({},i);delete s.user;const u=Cy(s);await xa(this.storage,this.storageKey,u)}else{const s=Cy(i);await xa(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Lt(this.storage,this.storageKey),await Lt(this.storage,this.storageKey+"-code-verifier"),await Lt(this.storage,this.storageKey+"-user"),this.userStorage&&await Lt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const n=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{n&&Mt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",n)}
54catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const n=setInterval(()=>this._autoRefreshTokenTick(),wa);this.autoRefreshTicker=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const n=this.autoRefreshTicker;this.autoRefreshTicker=null,n&&clearInterval(n);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}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 n=Date.now();try{return await this._useSession(async i=>{const{data:{session:a}}=i;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((a.expires_at*1e3-n)/wa);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${wa}ms, refresh threshold is ${rh} ticks`),s<=rh&&await this._callRefreshToken(a.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(n){if(n.isAcquireTimeout||n instanceof gb)this._debug("auto refresh token tick lock not available");else throw n}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Mt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(n){this._debug("#visibilityChangedCallback","error",n)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(n){console.error("_handleVisibilityChange",n)}}async _onVisibilityChanged(n){const i=`#_onVisibilityChanged(${n})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),n||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"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(n,i,a){const s=[`provider=${encodeURIComponent(i)}`];if(a?.redirectTo&&s.push(`redirect_to=${encodeURIComponent(a.redirectTo)}`),a?.scopes&&s.push(`scopes=${encodeURIComponent(a.scopes)}`),this.flowType==="pkce"){const[u,c]=await ma(this.storage,this.storageKey),f=new URLSearchParams({code_challenge:`${encodeURIComponent(u)}`,code_challenge_method:`${encodeURIComponent(c)}`});s.push(f.toString())}if(a?.queryParams){const u=new URLSearchParams(a.queryParams);s.push(u.toString())}return a?.skipBrowserRedirect&&s.push(`skip_http_redirect=${a.skipBrowserRedirect}`),`${n}?${s.join("&")}`}async _unenroll(n){try{return await this._useSession(async i=>{var a;const{data:s,error:u}=i;return u?this._returnResult({data:null,error:u}):await be(this.fetch,"DELETE",`${this.url}/factors/${n.factorId}`,{headers:this.headers,jwt:(a=s?.session)===null||a===void 0?void 0:a.access_token})})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(n){try{return await this._useSession(async i=>{var a,s;const{data:u,error:c}=i;if(c)return this._returnResult({data:null,error:c});const f=Object.assign({friendly_name:n.friendlyName,factor_type:n.factorType},n.factorType==="phone"?{phone:n.phone}:n.factorType==="totp"?{issuer:n.issuer}:{}),{data:d,error:p}=await be(this.fetch,"POST",`${this.url}/factors`,{body:f,headers:this.headers,jwt:(a=u?.session)===null||a===void 0?void 0:a.access_token});return p?this._returnResult({data:null,error:p}):(n.factorType==="totp"&&d.type==="totp"&&(!((s=d?.totp)===null||s===void 0)&&s.qr_code)&&(d.totp.qr_code=`data:image/svg+xml;utf-8,${d.totp.qr_code}`),this._returnResult({data:d,error:null}))})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async _verify(n){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var a;const{data:s,error:u}=i;if(u)return this._returnResult({data:null,error:u});const c=Object.assign({challenge_id:n.challengeId},"webauthn"in n?{webauthn:Object.assign(Object.assign({},n.webauthn),{credential_response:n.webauthn.type==="create"?jE(n.webauthn.credential_response):DE(n.webauthn.credential_response)})}:{code:n.code}),{data:f,error:d}=await be(this.fetch,"POST",`${this.url}/factors/${n.factorId}/verify`,{body:c,headers:this.headers,jwt:(a=s?.session)===null||a===void 0?void 0:a.access_token});return d?this._returnResult({data:null,error:d}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+f.expires_in},f)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",f),this._returnResult({data:f,error:d}))})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}})}async _challenge(n){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var a;const{data:s,error:u}=i;if(u)return this._returnResult({data:null,error:u});const c=await be(this.fetch,"POST",`${this.url}/factors/${n.factorId}/challenge`,{body:n,headers:this.headers,jwt:(a=s?.session)===null||a===void 0?void 0:a.access_token});if(c.error)return c;const{data:f}=c;if(f.type!=="webauthn")return{data:f,error:null};switch(f.webauthn.type){case"create":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:RE(f.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:OE(f.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}})}async _challengeAndVerify(n){const{data:i,error:a}=await this._challenge({factorId:n.factorId});return a?this._returnResult({data:null,error:a}):await this._verify({factorId:n.factorId,challengeId:i.id,code:n.code})}async _listFactors(){var n;const{data:{user:i},error:a}=await this.getUser();if(a)return{data:null,error:a};const s={all:[],phone:[],totp:[],webauthn:[]};for(const u of(n=i?.factors)!==null&&n!==void 0?n:[])s.all.push(u),u.status==="verified"&&s[u.factor_type].push(u);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(n){var i,a,s,u;if(n)try{const{payload:b}=So(n);let S=null;b.aal&&(S=b.aal);let T=S;const{data:{user:C},error:A}=await this.getUser(n);if(A)return this._returnResult({data:null,error:A});((a=(i=C?.factors)===null||i===void 0?void 0:i.filter(X=>X.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(T="aal2");const j=b.amr||[];return{data:{currentLevel:S,nextLevel:T,currentAuthenticationMethods:j},error:null}}catch(b){if(de(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:c},error:f}
54=await this.getSession();if(f)return this._returnResult({data:null,error:f});if(!c)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:d}=So(c.access_token);let p=null;d.aal&&(p=d.aal);let g=p;((u=(s=c.user.factors)===null||s===void 0?void 0:s.filter(b=>b.status==="verified"))!==null&&u!==void 0?u:[]).length>0&&(g="aal2");const _=d.amr||[];return{data:{currentLevel:p,nextLevel:g,currentAuthenticationMethods:_},error:null}}async _getAuthorizationDetails(n){try{return await this._useSession(async i=>{const{data:{session:a},error:s}=i;return s?this._returnResult({data:null,error:s}):a?await be(this.fetch,"GET",`${this.url}/oauth/authorizations/${n}`,{headers:this.headers,jwt:a.access_token,xform:u=>({data:u,error:null})}):this._returnResult({data:null,error:new cn})})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(n,i){try{return await this._useSession(async a=>{const{data:{session:s},error:u}=a;if(u)return this._returnResult({data:null,error:u});if(!s)return this._returnResult({data:null,error:new cn});const c=await be(this.fetch,"POST",`${this.url}/oauth/authorizations/${n}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:f=>({data:f,error:null})});return c.data&&c.data.redirect_url&&Mt()&&!i?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(a){if(de(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(n,i){try{return await this._useSession(async a=>{const{data:{session:s},error:u}=a;if(u)return this._returnResult({data:null,error:u});if(!s)return this._returnResult({data:null,error:new cn});const c=await be(this.fetch,"POST",`${this.url}/oauth/authorizations/${n}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:f=>({data:f,error:null})});return c.data&&c.data.redirect_url&&Mt()&&!i?.skipBrowserRedirect&&window.location.assign(c.data.redirect_url),c})}catch(a){if(de(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;return a?this._returnResult({data:null,error:a}):i?await be(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new cn})})}catch(n){if(de(n))return this._returnResult({data:null,error:n});throw n}}async _revokeOAuthGrant(n){try{return await this._useSession(async i=>{const{data:{session:a},error:s}=i;return s?this._returnResult({data:null,error:s}):a?(await be(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,query:{client_id:n.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new cn})})}catch(i){if(de(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(n,i={keys:[]}){let a=i.keys.find(f=>f.kid===n);if(a)return a;const s=Date.now();if(a=this.jwks.keys.find(f=>f.kid===n),a&&this.jwks_cached_at+P1>s)return a;const{data:u,error:c}=await be(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(c)throw c;return!u.keys||u.keys.length===0||(this.jwks=u,this.jwks_cached_at=s,a=u.keys.find(f=>f.kid===n),!a)?null:a}async getClaims(n,i={}){try{let a=n;if(!a){const{data:b,error:S}
54=await this.getSession();if(S||!b.session)return this._returnResult({data:null,error:S});a=b.session.access_token}const{header:s,payload:u,signature:c,raw:{header:f,payload:d}}=So(a);i?.allowExpired||oE(u.exp);const p=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!p){const{error:b}=await this.getUser(a);if(b)throw b;return{data:{claims:u,header:s,signature:c},error:null}}const g=uE(s.alg),y=await crypto.subtle.importKey("jwk",p,g,!0,["verify"]);if(!await crypto.subtle.verify(g,y,c,X1(`${f}.${d}`)))throw new lh("Invalid JWT signature");return{data:{claims:u,header:s,signature:c},error:null}}catch(a){if(de(a))return this._returnResult({data:null,error:a});throw a}}}Yl.nextInstanceID={};const HE=Yl,qE="2.99.1";let Ll="";typeof Deno<"u"?Ll="deno":typeof document<"u"?Ll="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ll="react-native":Ll="node";const $E={"X-Client-Info":`supabase-js-${Ll}/${qE}`},VE={headers:$E},GE={schema:"public"},FE={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},YE={};function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kl(e)}function KE(e,n){if(Kl(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,n);if(Kl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function XE(e){var n=KE(e,"string");return Kl(n)=="symbol"?n:n+""}function QE(e,n,i){return(n=XE(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Ly(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,a)}return i}function ht(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Ly(Object(i),!0).forEach(function(a){QE(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ly(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}const JE=e=>e?(...n)=>e(...n):(...n)=>fetch(...n),ZE=()=>Headers,WE=(e,n,i)=>{const a=JE(i),s=ZE();return async(u,c)=>{var f;const d=(f=await n())!==null&&f!==void 0?f:e;let p=new s(c?.headers);return p.has("apikey")||p.set("apikey",e),p.has("Authorization")||p.set("Authorization",`Bearer ${d}`),a(u,ht(ht({},c),{},{headers:p}))}};function ek(e){return e.endsWith("/")?e:e+"/"}function tk(e,n){var i,a;const{db:s,auth:u,realtime:c,global:f}=e,{db:d,auth:p,realtime:g,global:y}=n,_={db:ht(ht({},d),s),auth:ht(ht({},p),u),realtime:ht(ht({},g),c),storage:{},global:ht(ht(ht({},y),f),{},{headers:ht(ht({},(i=y?.headers)!==null&&i!==void 0?i:{}),(a=f?.headers)!==null&&a!==void 0?a:{})}),accessToken:async()=>""};return e.accessToken?_.accessToken=e.accessToken:delete _.accessToken,_}function nk(e){const n=e?.trim();if(!n)throw new Error("supabaseUrl is required.");if(!n.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(ek(n))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var rk=class extends HE{constructor(e){super(e)}},ik=class{constructor(e,n,i){var a,s;this.supabaseUrl=e,this.supabaseKey=n;const u=nk(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",u),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",u),this.storageUrl=new URL("storage/v1",u),this.functionsUrl=new URL("functions/v1",u);const c=`sb-${u.hostname.split(".")[0]}-auth-token`,f={db:GE,realtime:YE,auth:ht(ht({},FE),{},{storageKey:c}),global:VE},d=tk(i??{},f);if(this.storageKey=(a=d.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken)this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(g,y)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(y)} is not possible`)}});else{var p;this.auth=this._initSupabaseAuthClient((p=d.auth)!==null&&p!==void 0?p:{},this.headers,d.global.fetch)}this.fetch=WE(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(ht({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new qS(new URL("rest/v1",u).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch,timeout:d.db.timeout,urlLengthLimit:d.db.urlLengthLimit}),this.storage=new L1(this.storageUrl.href,this.headers,this.fetch,i?.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new NS(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,n={},i={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,n,i)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,n,i;if(e.accessToken)return await e.accessToken();const{data:a}=await e.auth.getSession();return(n=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&n!==void 0?n:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:i,storage:a,userStorage:s,storageKey:u,flowType:c,lock:f,debug:d,throwOnError:p},g,y){const _={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new rk({url:this.authUrl.href,headers:ht(ht({},_),g),storageKey:u,autoRefreshToken:e,persistSession:n,detectSessionInUrl:i,storage:a,userStorage:s,flowType:c,lock:f,debug:d,throwOnError:p,fetch:y,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new a1(this.realtimeUrl.href,ht(ht({},e),{},{params:ht(ht({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,n)=>{this._handleTokenChanged(e,"CLIENT",n?.access_token)})}_handleTokenChanged(e,n,i){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const ak=(e,n,i)=>new ik(e,n,i);function lk(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const n=e.version;if(n==null)return!1;const i=n.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=18:!1}lk()&&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 N
54ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const sk="https://nxskzgsvrqacfgyspwmv.supabase.co",ok="sb_publishable_h_Ead5-j2-By5dh2pwZKbw_0cBbg88v",dr=ak(sk,ok,{auth:{flowType:"pkce",detectSessionInUrl:!0,autoRefreshToken:!0,persistSession:!0}}),Xr="/api",uk=18e4;function jh(e,n,i){if(e&&typeof e=="object"){const a=e,s=a.detail;if(typeof s=="string"&&s.trim())return s;if(s&&typeof s=="object"){const u=s;if(typeof u.message=="string"&&u.message.trim())return u.message}if(typeof a.message=="string"&&a.message.trim())return a.message}return i||`API error ${n}`}class bb extends Error{status;constructor(n,i){super(n),this.name="ApiError",this.status=i}}async function Rl(e,n={}){const{method:i="GET",body:a,headers:s={},timeoutMs:u=uk}=n;let c={};try{const{data:{session:g}}=await dr.auth.getSession();g?.access_token&&(c={Authorization:`Bearer ${g.access_token}`})}catch{}const f=new AbortController,d=setTimeout(()=>f.abort(),u);let p;try{p=await fetch(`${Xr}${e}`,{method:i,headers:{"Content-Type":"application/json",...c,...s},body:a?JSON.stringify(a):void 0,signal:f.signal})}catch(g){throw g instanceof DOMException&&g.name==="AbortError"?new Error("Request timed out — please try again."):g}finally{clearTimeout(d)}if(!p.ok){const g=await p.json().catch(()=>null);throw new bb(jh(g,p.status,p.statusText),p.status)}return p.json()}async function ck(e,n){let i={};try{const{data:{session:s}}=await dr.auth.getSession();s?.access_token&&(i={Authorization:`Bearer ${s.access_token}`})}catch{}const a=await fetch(`${Xr}${e}`,{method:"POST",headers:i,body:n});if(!a.ok){const s=await a.json().catch(()=>null);throw new Error(jh(s,a.status,a.statusText))}return a.json()}const Dh={get:e=>Rl(e),post:(e,n,i)=>Rl(e,{method:"POST",body:n,...i?.timeoutMs?{timeoutMs:i.timeoutMs}:{}}),postForm:(e,n)=>ck(e,n),put:(e,n)=>Rl(e,{method:"PUT",body:n}),patch:(e,n)=>Rl(e,{method:"PATCH",body:n}),delete:e=>Rl(e,{method:"DELETE"}),blob:async e=>{let n={};try{const{data:{session:a}}=await dr.auth.getSession();a?.access_token&&(n={Authorization:`Bearer ${a.access_token}`})}catch{}const i=await fetch(`${Xr}${e}`,{headers:n});if(!i.ok){const a=await i.json().catch(()=>null);throw new Error(jh(a,i.status,i.statusText))}return i.blob()}},qD=Object.freeze(Object.defineProperty({__proto__:null,ApiError:bb,BASE_URL:Xr,api:Dh},Symbol.toStringTag,{value:"Module"})),My="[email protected]",fk=[{key:"cs",label:"Customer Support"},{key:"sales",label:"Sales"},{key:"marketing",label:"Ads & Marketing"},{key:"knowledge",label:"Knowledge Base"},{key:"admin",label:"Admin"}],hk=[{key:"cs.conversations",section:"cs",label:"Conversations",route:"/console/cs/conversations",icon:"chat",ready:!0},{key:"cs.tickets",section:"cs",label:"Tickets",route:"/console/cs/tickets",icon:"inbox",ready:!0},{key:"cs.email",section:"cs",label:"Email",route:"/console/cs/email",icon:"inbox",ready:!0},{key:"cs.history",section:"cs",label:"Desk History",route:"/console/cs/history",icon:"book",ready:!0},{key:"cs.calls",section:"cs",label:"Calls",route:"/console/cs/calls",icon:"phone",ready:!0},{key:"cs.warranty",section:"cs",label:"Warranty",route:"/console/cs/warranty",icon:"certificate",ready:!0},{key:"cs.reviews",section:"cs",label:"Reviews",route:"/console/cs/reviews",icon:"star",ready:!0},{key:"cs.returns",section:"cs",label:"Return Pickups",route:"/console/cs/returns",icon:"returns",ready:!0},{key:"sales.dashboard",section:"sales",label:"Dashboard",route:"/console/sales/dashboard",icon:"chart",ready:!0},{key:"sales.leads",section:"sales",label:"Leads",route:"/console/sales/leads",icon:"sales",ready:!0},{key:"sales.estimates",section:"sales",label:"Estimates",route:"/console/sales/estimates",icon:"doc",ready:!0},{key:"sales.orders",section:"sales",label:"Orders",route:"/console/sales/orders",icon:"box",ready:!0},{key:"sales.customers",section:"sales",label:"Customers",route:"/console/sales/customers",icon:"users",ready:!0},{key:"sales.prospects",section:"sales",label:"Prospects",route:"/console/sales/prospects",icon:"spark",ready:!0},{key:"sales.email_templates",section:"sales",label:"Email Templates",route:"/console/sales/email-templates",icon:"doc",ready:!0},{key:"sales.invoice",section:"sales",label:"Invoice via AutoAct",route:"/console/sales/leads",icon:"doc",ready:!0,permissionOnly:!0},{key:"knowledge.products",section:"knowledge",label:"Products",route:"/console/knowledge/products",icon:"box",ready:!0},{key:"knowledge.auto_qa",section:"knowledge",label:"Auto Q&A",route:"/console/knowledge/auto-qa",icon:"spark",ready:!0},{key:"knowledge.base",section:"knowledge",label:"Knowledge Base",route:"/console/knowledge/base",icon:"book",ready:!0},{key:"knowledge.guides",section:"knowledge",label:"Product Guides",route:"/console/knowledge/guides",icon:"doc",ready:!0},{key:"knowledge.log_book",section:"knowledge",label:"Log Book",route:"/console/knowledge/log-book",icon:"book",ready:!0},{key:"marketing.overview",section:"marketing",label:"Overview",route:"/console/marketing/overview",icon:"chart",ready:!0},{key:"marketing.google",section:"marketing",label:"Google Ads",route:"/console/marketing/google",icon:"search",ready:!0},{key:"marketing.social",section:"marketing",label:"Social Ads",route:"/console/marketing/social",icon:"megaphone",ready:!0},{key:"marketing.whatsapp",section:"marketing",label:"WhatsApp Marketing",route:"/console/marketing/whatsapp",icon:"chat",ready:!0},{key:"marketing.campaigns",section:"marketing",label:"Campaigns",route:"/console/marketing/campaigns",icon:"megaphone",ready:!0}
54,{key:"admin.access",section:"admin",label:"Access Control",route:"/console/admin/access",icon:"shield",superAdminOnly:!0,ready:!0},{key:"admin.agent",section:"admin",label:"AI Agent",route:"/console/admin/agent",icon:"spark",ready:!0},{key:"admin.warranty",section:"admin",label:"Warranty",route:"/console/admin/warranty",icon:"certificate",ready:!0},{key:"admin.reviews",section:"admin",label:"Reviews",route:"/console/admin/reviews",icon:"star",ready:!0},{key:"admin.returns",section:"admin",label:"Return Pickups",route:"/console/admin/returns",icon:"returns",ready:!0},{key:"admin.cs_mis",section:"admin",label:"Customer Support MIS",route:"/console/admin/cs-mis",icon:"chart",ready:!0},{key:"admin.wa_templates",section:"admin",label:"WhatsApp Templates",route:"/console/admin/templates",icon:"chat",ready:!0},{key:"admin.quick_actions",section:"admin",label:"Quick Actions",route:"/console/admin/quick-actions",icon:"spark",ready:!0},{key:"admin.integrations",section:"admin",label:"Integrations",route:"/console/admin/integrations",icon:"plug",superAdminOnly:!0,ready:!0},{key:"admin.mailboxes",section:"admin",label:"Mailboxes",route:"/console/admin/mailboxes",icon:"inbox",superAdminOnly:!0,ready:!0},{key:"admin.archive",section:"admin",label:"Archive",route:"/console/admin/archive",icon:"box",superAdminOnly:!0,ready:!0},{key:"admin.health",section:"admin",label:"System Health",route:"/console/admin/health",icon:"chart",superAdminOnly:!0,ready:!0},{key:"admin.balances",section:"admin",label:"Balances",route:"/console/admin/balances",icon:"wallet",superAdminOnly:!0,ready:!0},{key:"admin.youtube",section:"admin",label:"YouTube Replies",route:"/console/admin/youtube",icon:"chat",superAdminOnly:!0,ready:!0}];function dk(e,n){const i=hk.filter(s=>!s.permissionOnly);if(e)return i;const a=new Set(n||[]);return i.filter(s=>!s.superAdminOnly&&a.has(s.key))}function $D(e,n,i){return e||(n||[]).includes(i)}function VD(e){const n=new Set(e.map(i=>i.section));return fk.filter(i=>n.has(i.key))}const _b=k.createContext(null);function pk({children:e}){const[n,i]=k.useState(null),[a,s]=k.useState(null),[u,c]=k.useState(!0),[f,d]=k.useState(null),[p,g]=k.useState(!1),[y,_]=k.useState(null);k.useEffect(()=>{let T=!1;const C=n?.email?.toLowerCase();if(!C){d(null),g(!1),_(null);return}return Dh.get("/v1/access/me").then(A=>{T||(d(A.role||"admin"),g(!!A.is_super_admin||C===My),_(A.allowed_modules??null))}).catch(()=>{T||(d("admin"),g(C===My),_(null))}),()=>{T=!0}},[n?.email]),k.useEffect(()=>{dr.auth.getSession().then(({data:{session:C}})=>{s(C),i(C?.user??null),c(!1)});const{data:{subscription:T}}=dr.auth.onAuthStateChange((C,A)=>{s(A),i(A?.user??null),c(!1)});return()=>T.unsubscribe()},[]);const b=k.useCallback(async()=>{await dr.auth.signOut(),i(null),s(null)},[]),S=k.useCallback(async()=>{const{error:T}=await dr.auth.signInWithOAuth({provider:"azure",options:{scopes:"openid email profile",redirectTo:`${window.location.origin}/auth/callback`}});if(T)throw console.error("Microsoft sign-in failed:",T),T},[]);return w.jsx(_b.Provider,{value:{user:n,session:a,loading:u,role:f,isSuperAdmin:p,allowedModules:y,signOut:b,signInWithMicrosoft:S},children:e})}function zh(){const e=k.useContext(_b);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}const wb=["amicikart.com","amicikart.in","amicitech.in"];function xb(e){const i=(e??"").trim().toLowerCase().split("@");return i.length!==2||!i[0]||!i[1]?!1:wb.includes(i[1])}function GD(){const e=[...wb];return e.length>1?`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`:e[0]}const Af={review_tracker:{allowed:["/review-tracker"],home:"/review-tracker"},warranty:{allowed:["/warranty"],home:"/warranty"},returns:{allowed:["/return-pickups"],home:"/return-pickups"},manuals:{allowed:["/products","/agent/product-guides"],home:"/agent/product-guides"}};function mk(){const{user:e,loading:n,role:i}=zh(),a=Cn(),s=xb(e?.email);if(k.useEffect(()=>{!n&&e&&!s&&dr.auth.signOut()},[n,e,s]),n||e&&s&&i===null)return w.jsx("div",{className:"flex h-screen items-center justify-center bg-gray-100",children:w.jsx("div",{className:"text-gray-500 text-sm",children:"Loading\\u2026"})});if(!e)return w.jsx(Vn,{to:"/login",replace:!0});if(!s)return w.jsx(Vn,{to:"/login?error=unauthorized_domain",replace:!0});const u=(i||"").split(",").map(f=>
54f.trim()).filter(Boolean);return u.length>0&&!u.includes("admin")&&u.every(f=>Af[f])&&!u.flatMap(d=>Af[d].allowed).some(d=>a.pathname.startsWith(d))?w.jsx(Vn,{to:Af[u[0]].home,replace:!0}):w.jsx(kh,{})}function gk(){const{user:e,loading:n,role:i,isSuperAdmin:a,allowedModules:s}=zh(),u=xb(e?.email);if(k.useEffect(()=>{!n&&e&&!u&&dr.auth.signOut()},[n,e,u]),n||e&&u&&i===null)return w.jsx("div",{className:"flex h-screen items-center justify-center bg-[#F6F7F9]",children:w.jsx("div",{className:"text-[#8A93A2] text-sm",children:"Loading…"})});if(!e)return w.jsx(Vn,{to:"/login",replace:!0});if(!u)return w.jsx(Vn,{to:"/login?error=unauthorized_domain",replace:!0});const c=dk(a,s);return!a&&c.length===0?w.jsx(Vn,{to:"/dashboard",replace:!0}):w.jsx(kh,{})}function yk(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const vk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_k={};function Uy(e,n){return(_k.jsx?bk:vk).test(e)}const wk=/[ \t\n\f\r]/g;function xk(e){return typeof e=="object"?e.type==="text"?By(e.value):!1:By(e)}function By(e){return e.replace(wk,"")===""}class es{constructor(n,i,a){this.normal=i,this.property=n,a&&(this.space=a)}}es.prototype.normal={};es.prototype.property={};es.prototype.space=void 0;function Sb(e,n){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new es(i,a,n)}function sh(e){return e.toLowerCase()}class Wt{constructor(n,i){this.attribute=i,this.property=n}}Wt.prototype.attribute="";Wt.prototype.booleanish=!1;Wt.prototype.boolean=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.defined=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.number=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.property="";Wt.prototype.spaceSeparated=!1;Wt.prototype.space=void 0;let Sk=0;const Re=Ti(),xt=Ti(),oh=Ti(),ie=Ti(),rt=Ti(),Ta=Ti(),fn=Ti();function Ti(){return 2**++Sk}const uh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:xt,commaOrSpaceSeparated:fn,commaSeparated:Ta,number:ie,overloadedBoolean:oh,spaceSeparated:rt},Symbol.toStringTag,{value:"Module"})),Cf=Object.keys(uh);class Nh extends Wt{constructor(n,i,a,s){let u=-1;if(super(n,i),Iy(this,"space",s),typeof a=="number")for(;++u<Cf.length;){const c=Cf[u];Iy(this,Cf[u],(a&uh[c])===uh[c])}}}Nh.prototype.defined=!0;function Iy(e,n,i){i&&(e[n]=i)}function Da(e){const n={},i={};for(const[a,s]of Object.entries(e.properties)){const u=new Nh(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),n[a]=u,i[sh(a)]=a,i[sh(u.attribute)]=a}return new es(n,i,e.space)}const Eb=Da({properties:{ariaActiveDescendant:null,ariaAtomic:xt,ariaAutoComplete:null,ariaBusy:xt,ariaChecked:xt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:rt,ariaCurrent:null,ariaDescribedBy:rt,ariaDetails:null,ariaDisabled:xt,ariaDropEffect:rt,ariaErrorMessage:null,ariaExpanded:xt,ariaFlowTo:rt,ariaGrabbed:xt,ariaHasPopup:null,ariaHidden:xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt,ariaLevel:ie,ariaLive:null,ariaModal:xt,ariaMultiLine:xt,ariaMultiSelectable:xt,ariaOrientation:null,ariaOwns:rt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:xt,ariaReadOnly:xt,ariaRelevant:null,ariaRequired:xt,ariaRoleDescription:rt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:xt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function kb(e,n){return n in e?e[n]:n}function Tb(e,n){return kb(e,n.toLowerCase())}const Ek=Da({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ta,acceptCharset:rt,accessKey:rt,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:rt,autoFocus:Re,autoPlay:Re,blocking:rt,capture:null,charSet:null,checked:Re,cite:null,className:rt,cols:ie,colSpan:null,content:null,contentEditable:xt,controls:Re,controlsList:rt,coords:ie|Ta,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:oh,draggable:xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:rt,height:ie,hidden:oh,high:ie,href:null,hrefLang:null,htmlFor:rt,httpEquiv:rt,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:rt,itemRef:rt,itemScope:Re,itemType:rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxCl
54ick: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:Re,optimum:ie,pattern:null,ping:rt,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:rt,required:Re,reversed:Re,rows:ie,rowSpan:ie,sandbox:rt,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:xt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:xt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Tb}),kk=Da({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
54-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:fn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Ta,g2:Ta,glyphName:Ta,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,648 bytes, lines 54-55
54Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fn,rev:fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fn,requiredFeatures:fn,requiredFonts:fn,requiredFormats:fn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kb}),Ab=Da({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Cb=Da({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tb}),Rb=Da({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Tk={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"},Ak=/[A-Z]/g,Py=/-[a-z]/g,Ck=/^data[-\w.:]+$/i;function Rk(e,n){const i=sh(n);let a=n,s=Wt;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Ck.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Py,jk);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Py.test(u)){let c=u.replace(Ak,Ok);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}s=Nh}return new s(a,n)}function Ok(e){return"-"+e.toLowerCase()}function jk(e){return e.charAt(1).toUpperCase()}const Dk=Sb([Eb,Ek,Ab,Cb,Rb],"html"),Lh=Sb([Eb,kk,Ab,Cb,Rb],"svg");function zk(e){return e.join(" ").trim()}var va={},Rf,Hy;function Nk(){if(Hy)return Rf;Hy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
55`,p="/",g="*",y="",_="comment",b="declaration";function S(C,A){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];A=A||{};var N=1,j=1;function X(oe){var te=oe.match(n);te&&(N+=te.length);var P=oe.lastIndexOf(d);j=~P?oe.length-P:j+oe.length}function re(){var oe={line:N,column:j};return function(te){return te.position=new M(oe),fe(),te}}function M(oe){this.start=oe,this.end={line:N,column:j},this.source=A.source}M.prototype.content=C;function Z(oe){var te=new Error(A.source+":"+N+":"+j+": "+oe);if(te.reason=oe,te.filename=A.source,te.line=N,te.column=j,te.source=C,!A.silent)throw te}function ue(oe){var te=oe.exec(C);if(te){var P=te[0];return X(P),C=C.slice(P.length),te}}function fe(){ue(i)}function q(oe){var te;for(oe=oe||[];te=Q();)te!==!1&&oe.push(te);return oe}function Q(){var oe=re();if(!(p!=C.charAt(0)||g!=C.charAt(1))){for(var te=2;y!=C.charAt(te)&&(g!=C.charAt(te)||p!=C.charAt(te+1));)++te;if(te+=2,y===C.charAt(te-1))return Z("End of comment missing");var P=C.slice(2,te-2);return j+=2,X(P),C=C.slice(te),j+=2,oe({type:_,comment:P})}}function ne(){var oe=re(),te=ue(a);if(te){if(Q(),!ue(s))return Z("property missing ':'");var P=ue(u),ee=oe({type:b,property:T(te[0].replace(e,y)),value:P?T(P[0].replace(e,y)):y});return ue(c),ee}}function we(){var oe=[];q(oe);for(var te;te=ne();)te!==!1&&(oe.push(te),q(oe));return oe}return fe(),we()}function T(C){return C?C.replace(f,y):y}return Rf=S,Rf}var qy;function Lk(){if(qy)return va;qy=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(va,"__esModule",{value:!0}),va.default=i;const n=e(Nk());function i(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,n.default)(a),f=typeof s=="function";
vendor: 3,525 bytes, line 55
55return c.forEach(d=>{if(d.type!=="declaration")return;const{property:p,value:g}=d;f?s(p,g,d):g&&(u=u||{},u[p]=g)}),u}return va}var Ol={},$y;function Mk(){if($y)return Ol;$y=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(p){return!p||i.test(p)||e.test(p)},c=function(p,g){return g.toUpperCase()},f=function(p,g){return"".concat(g,"-")},d=function(p,g){return g===void 0&&(g={}),u(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(s,f):p=p.replace(a,f),p.replace(n,c))};return Ol.camelCase=d,Ol}var jl,Vy;function Uk(){if(Vy)return jl;Vy=1;var e=jl&&jl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(Lk()),i=Mk();function a(s,u){var c={};return!s||typeof s!="string"||(0,n.default)(s,function(f,d){f&&d&&(c[(0,i.camelCase)(f,u)]=d)}),c}return a.default=a,jl=a,jl}var Bk=Uk();const Ik=vh(Bk),Ob=jb("end"),Mh=jb("start");function jb(e){return n;function n(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Pk(e){const n=Mh(e),i=Ob(e);if(n&&i)return{start:n,end:i}}function Bl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gy(e.position):"start"in e||"end"in e?Gy(e):"line"in e||"column"in e?ch(e):""}function ch(e){return Fy(e&&e.line)+":"+Fy(e&&e.column)}function Gy(e){return ch(e&&e.start)+"-"+ch(e&&e.end)}function Fy(e){return e&&typeof e=="number"?e:1}class Pt extends Error{constructor(n,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let s="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof n=="string"?s=n:!u.cause&&n&&(c=!0,s=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof a=="string"){const d=a.indexOf(":");d===-1?u.ruleId=a:(u.source=a.slice(0,d),u.ruleId=a.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Bl(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pt.prototype.file="";Pt.prototype.name="";Pt.prototype.reason="";Pt.prototype.message="";Pt.prototype.stack="";Pt.prototype.column=void 0;Pt.prototype.line=void 0;Pt.prototype.ancestors=void 0;Pt.prototype.cause=void 0;Pt.prototype.fatal=void 0;Pt.prototype.place=void 0;Pt.prototype.ruleId=void 0;Pt.prototype.source=void 0;const Uh={}.hasOwnProperty,Hk=new Map,qk=/[A-Z]/g,$k=new Set(["table","tbody","thead","tfoot","tr"]),Vk=new Set(["td","th"]),Db="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gk(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Wk(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,536 bytes, line 55
55if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=Zk(i,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Lh:Dk,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=zb(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function zb(e,n,i){if(n.type==="element")return Fk(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Yk(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Xk(e,n,i);if(n.type==="mdxjsEsm")return Kk(e,n);if(n.type==="root")return Qk(e,n,i);if(n.type==="text")return Jk(e,n)}function Fk(e,n,i){const a=e.schema;let s=a;n.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Lh,e.schema=s),e.ancestors.push(n);const u=Lb(e,n.tagName,!1),c=eT(e,n);let f=Ih(e,n);return $k.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!xk(d):!0})),Nb(e,c,u,n),Bh(c,f),e.ancestors.pop(),e.schema=a,e.create(n,u,c,i)}function Yk(e,n){if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Xl(e,n.position)}function Kk(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Xl(e,n.position)}function Xk(e,n,i){const a=e.schema;let s=a;n.name==="svg"&&a.space==="html"&&(s=Lh,e.schema=s),e.ancestors.push(n);const u=n.name===null?e.Fragment:Lb(e,n.name,!0),c=tT(e,n),f=Ih(e,n);return Nb(e,c,u,n),Bh(c,f),e.ancestors.pop(),e.schema=a,e.create(n,u,c,i)}function Qk(e,n,i){const a={};return Bh(a,Ih(e,n)),e.create(n,e.Fragment,a,i)}function Jk(e,n){return n.value}function Nb(e,n,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=a)}function Bh(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function Zk(e,n,i){return a;function a(s,u,c,f){const p=Array.isArray(c.children)?i:n;return f?p(u,c,f):p(u,c)}}function Wk(e,n){return i;function i(a,s,u,c){const f=Array.isArray(u.children),d=Mh(a);return n(s,u,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function eT(e,n){const i={};let a,s;for(s in n.properties)if(s!=="children"&&Uh.call(n.properties,s)){const u=nT(e,s,n.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Vk.has(n.tagName)?a=f:i[c]=f}}if(a){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function tT(e,n){const i={};for(const a of n.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else Xl(e,n.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else Xl(e,n.position);else u=a.value===null?!0:a.value;i[s]=u}return i}function Ih(e,n){const i=[];let a=-1;const s=e.passKeys?new Map:Hk;for(;++a<n.children.length;){const u=n.children[a];let c;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const p=s.get(d)||0;c=d+"-"+p,s.set(d,p+1)}}const f=zb(e,u,c);f!==void 0&&i.push(f)}return i}function nT(e,n,i){const a=Rk(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?yk(i):zk(i)),a.property==="style"){let s=typeof i=="object"?i:rT(e,String(i));return e.stylePropertyNameCase==="css"&&(s=iT(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?Tk[a.property]||a.property:a.attribute,i]}}function rT(e,n){try{return Ik(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,s=new Pt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Db+"#cannot-parse-style-attribute",s}}function Lb(e,n,i){let a;if(!i)a={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let u=-1,c;for(;++u<s.length;){const f=Uy(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=Uy(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(a.type==="Literal"){const s=a.value;return Uh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);Xl(e)}function Xl(e,n){const i=new Pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Db+"#cannot-handle-mdx-estrees-without-createevaluater",i}function iT(e){const n={};let i;for(i in e)Uh.call(e,i)&&(n[aT(i)]=e[i]);return n}function aT(e){let n=e.replace(qk,lT);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function lT(e){return"-"+e.toLowerCase()}const Of={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"]},sT={};function Ph(e,n){const i=sT,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Mb(e,a,s)}function Mb(e,n,i){if(oT(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yy(e.children,n,i)}return Array.isArray(e)?Yy(e,n,i):""}function Yy(e,n,i){const a=[];let s=-1;for(;++s<e.length;)a[s]=Mb(e[s],n,i);return a.join("")}function oT(e){return!!(e&&typeof e=="object")}const Ky=document.createElement("i");function Hh(e){const n="&"+e+";";Ky.innerHTML=n;const i=Ky.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function dn(e,n,i,a){const s=e.length;let u=0,c;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);u<a.length;)c=a.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function kn(e,n){return e.length>0?(dn(e,e.length,0,n),e):n}const Xy={}.hasOwnProperty;function Ub(e){const n={};let i=-1;for(;++i<e.length;)uT(n,e[i]);return n}function uT(e,n){let i;for(i in n){const s=(Xy.call(e,i)?e[i]:void 0)||(e[i]={}),u=n[i];let c;if(u)for(c in u){Xy.call(s,c)||(s[c]=[]);const f=u[c];cT(s[c],Array.isArray(f)?f:f?[f]:[])}}}function cT(e,n){let i=-1;const a=[];for(;++i<n.length;)(n[i].add==="after"?e:a).push(n[i]);dn(e,0,0,a)}function Bb(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Un(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qt=Qr(/[A-Za-z]/),It=Qr(/[\dA-Za-z]/),fT=Qr(/[#-'*+\--9=?A-Z^-~]/);function Uo(e){return e!==null&&(e<32||e===127)}const fh=Qr(/\d/),hT=Qr(/[\dA-Fa-f]/),dT=Qr(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Ko=Qr(new RegExp("\\p{P}|\\p{S}","u")),ki=Qr(/\s/);function Qr(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function za(e){const n=[];let i=-1,a=0,s=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&It(e.charCodeAt(i+1))&&It(e.charCodeAt(i+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(i+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(a,i),encodeURIComponent(c)),a=i+s+1,c=""),s&&(i+=s,s=0)}return n.join("")+e.slice(a)}function He(e,n,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(d){return Le(d)?(e.enter(i),f(d)):n(d)}function f(d){return Le(d)&&u++<s?(e.consume(d),f):(e.exit(i),n(d))}}const pT={tokenize:mT};function mT(e){const n=e.attempt(this.parser.constructs.contentInitial,a,s);let i;return n;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),He(e,n,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const d=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=d),i=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return _e(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const gT={tokenize:yT},Qy={tokenize:vT};function yT(e){const n=this,i=[];let a=0,s,u,c;return f;function f(j){if(a<i.length){const X=i[a];return n.containerState=X[1],e.attempt(X[0].continuation,d,p)(j)}return p(j)}function d(j){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&N();const X=n.events.length;let re=X,M;for(;re--;)if(n.events[re][0]==="exit"&&n.events[re][1].type==="chunkFlow"){M=n.events[re][1].end;break}A(a);let Z=X;for(;Z<n.events.length;)n.events[Z][1].end={...M},Z++;return dn(n.events,re+1,0,n.events.slice(X)),n.events.length=Z,p(j)}return f(j)}function p(j){if(a===i.length){if(!s)return _(j);if(s.currentConstruct&&s.currentConstruct.concrete)return S(j);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Qy,g,y)(j)}function g(j){return s&&N(),A(a),_(j)}function y(j){return n.parser.lazy[n.now().line]=a!==i.length,c=n.now().offset,S(j)}function _(j){return n.containerState={},e.attempt(Qy,b,S)(j)}function b(j){return a++,i.push([n.currentConstruct,n.containerState]),_(j)}function S(j){if(j===null){s&&N(),A(0),e.consume(j);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),T(j)}function T(j){if(j===null){C(e.exit("chunkFlow"),!0),A(0),e.consume(j);return}return _e(j)?(e.consume(j),C(e.exit("chunkFlow")),a=0,n.interrupt=void 0,f):(e.consume(j),T)}function C(j,X){const re=n.sliceStream(j);
vendor: 6,668 bytes, line 55
55if(X&&re.push(null),j.previous=u,u&&(u.next=j),u=j,s.defineSkip(j.start),s.write(re),n.parser.lazy[j.start.line]){let M=s.events.length;for(;M--;)if(s.events[M][1].start.offset<c&&(!s.events[M][1].end||s.events[M][1].end.offset>c))return;const Z=n.events.length;let ue=Z,fe,q;for(;ue--;)if(n.events[ue][0]==="exit"&&n.events[ue][1].type==="chunkFlow"){if(fe){q=n.events[ue][1].end;break}fe=!0}for(A(a),M=Z;M<n.events.length;)n.events[M][1].end={...q},M++;dn(n.events,ue+1,0,n.events.slice(Z)),n.events.length=M}}function A(j){let X=i.length;for(;X-- >j;){const re=i[X];n.containerState=re[1],re[0].exit.call(n,e)}i.length=j}function N(){s.write([null]),u=void 0,s=void 0,n.containerState._closeFlow=void 0}}function vT(e,n,i){return He(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Aa(e){if(e===null||tt(e)||ki(e))return 1;if(Ko(e))return 2}function Xo(e,n,i){const a=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!a.includes(u)&&(n=u(n,i),a.push(u))}return n}const hh={name:"attention",resolveAll:bT,tokenize:_T};function bT(e,n){let i=-1,a,s,u,c,f,d,p,g;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[a][1].end},_={...e[i][1].start};Jy(y,-d),Jy(_,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:_},u={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},s={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[i][1].start={...f.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=kn(p,[["enter",e[a][1],n],["exit",e[a][1],n]])),p=kn(p,[["enter",s,n],["enter",c,n],["exit",c,n],["enter",u,n]]),p=kn(p,Xo(n.parser.constructs.insideSpan.null,e.slice(a+1,i),n)),p=kn(p,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",s,n]]),e[i][1].end.offset-e[i][1].start.offset?(g=2,p=kn(p,[["enter",e[i][1],n],["exit",e[i][1],n]])):g=0,dn(e,a-1,i-a+3,p),i=a+p.length-g-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function _T(e,n){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Aa(a);let u;return c;function c(d){return u=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===u)return e.consume(d),f;const p=e.exit("attentionSequence"),g=Aa(d),y=!g||g===2&&s||i.includes(d),_=!s||s===2&&g||i.includes(a);return p._open=!!(u===42?y:y&&(s||!_)),p._close=!!(u===42?_:_&&(g||!y)),n(d)}}function Jy(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const wT={name:"autolink",tokenize:xT};function xT(e,n,i){let a=0;return s;function s(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(b){return qt(b)?(e.consume(b),c):b===64?i(b):p(b)}function c(b){return b===43||b===45||b===46||It(b)?(a=1,f(b)):p(b)}function f(b){return b===58?(e.consume(b),a=0,d):(b===43||b===45||b===46||It(b))&&a++<32?(e.consume(b),f):(a=0,p(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||Uo(b)?i(b):(e.consume(b),d)}function p(b){return b===64?(e.consume(b),g):fT(b)?(e.consume(b),p):i(b)}function g(b){return It(b)?y(b):i(b)}function y(b){return b===46?(e.consume(b),a=0,g):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):_(b)}function _(b){if((b===45||It(b))&&a++<63){const S=b===45?_:y;return e.consume(b),S}return i(b)}}const ts={partial:!0,tokenize:ST};function ST(e,n,i){return a;function a(u){return Le(u)?He(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||_e(u)?n(u):i(u)}}const Ib={continuation:{tokenize:kT},exit:TT,name:"blockQuote",tokenize:ET};function ET(e,n,i){const a=this;return s;function s(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Le(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function kT(e,n,i){const a=this;return s;function s(c){return Le(c)?He(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Ib,n,i)(c)}}function TT(e){e.exit("blockQuote")}const Pb={name:"characterEscape",tokenize:AT};function AT(e,n,i){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return dT(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(u)}}const Hb={name:"characterReference",tokenize:CT};function CT(e,n,i){const a=this;let s=0,u,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),u=31,c=It,g(y))}function p(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=hT,g):(e.enter("characterReferenceValue"),u=7,c=fh,g(y))}function g(y){if(y===59&&s){const _=e.exit("characterReferenceValue");return c===It&&!Hh(a.sliceSerialize(_))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&s++<u?(e.consume(y),g):i(y)}}const Zy={partial:!0,tokenize:OT},Wy={concrete:!0,name:"codeFenced",tokenize:RT};function RT(e,n,i){const a=this,s={partial:!0,tokenize:re};let u=0,c=0,f;return d;function d(M){return p(M)}function p(M){const Z=a.events[a.events.length-1];return u=Z&&Z[1].type==="linePrefix"?Z[2].sliceSerialize(Z[1],!0).length:0,f=M,e.enter("co
55deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(M)}function g(M){return M===f?(c++,e.consume(M),g):c<3?i(M):(e.exit("codeFencedFenceSequence"),Le(M)?He(e,y,"whitespace")(M):y(M))}function y(M){return M===null||_e(M)?(e.exit("codeFencedFence"),a.interrupt?n(M):e.check(Zy,T,X)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),_(M))}function _(M){return M===null||_e(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(M)):Le(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),He(e,b,"whitespace")(M)):M===96&&M===f?i(M):(e.consume(M),_)}function b(M){return M===null||_e(M)?y(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||_e(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(M)):M===96&&M===f?i(M):(e.consume(M),S)}function T(M){return e.attempt(s,X,C)(M)}function C(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return u>0&&Le(M)?He(e,N,"linePrefix",u+1)(M):N(M)}function N(M){return M===null||_e(M)?e.check(Zy,T,X)(M):(e.enter("codeFlowValue"),j(M))}function j(M){return M===null||_e(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),j)}function X(M){return e.exit("codeFenced"),n(M)}function re(M,Z,ue){let fe=0;return q;function q(te){return M.enter("lineEnding"),M.consume(te),M.exit("lineEnding"),Q}function Q(te){return M.enter("codeFencedFence"),Le(te)?He(M,ne,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ne(te)}function ne(te){return te===f?(M.enter("codeFencedFenceSequence"),we(te)):ue(te)}function we(te){return te===f?(fe++,M.consume(te),we):fe>=c?(M.exit("codeFencedFenceSequence"),Le(te)?He(M,oe,"whitespace")(te):oe(te)):ue(te)}function oe(te){return te===null||_e(te)?(M.exit("codeFencedFence"),Z(te)):ue(te)}}}function OT(e,n,i){const a=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?i(c):n(c)}}const jf={name:"codeIndented",tokenize:DT},jT={partial:!0,tokenize:zT};function DT(e,n,i){const a=this;return s;function s(p){return e.enter("codeIndented"),He(e,u,"linePrefix",5)(p)}function u(p){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?d(p):_e(p)?e.attempt(jT,c,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||_e(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),n(p)}}function zT(e,n,i){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?i(c):_e(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):He(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):_e(c)?s(c):i(c)}}const NT={name:"codeText",previous:MT,resolve:LT,tokenize:UT};function LT(e){let n=e.length-4,i=3,a,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=i;++a<n;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(a=i-1,n++;++a<=n;)s===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(s=a):(a===n||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),n-=a-s-2,a=s+2),s=void 0);return e}function MT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function UT(e,n,i){let a=0,s,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),a++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(u=e.enter("codeTextSequence"),s=0,g(y)):_e(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||_e(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),p)}function g(y){return y===96?(e.consume(y),s++,g):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(u.type="codeTextData",p(y))}}class BT{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,i,a){const s=i||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Dl(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Dl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Dl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);Dl(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Dl(this.left,i.reverse())}}}function Dl(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function qb(e){const n={};let i=-1,a,s,u,c,f,d,p;const g=new BT(e);for(;++i<g.length;){for(;i in n;)i=n[i];if(a=g.get(i),i&&a[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,IT(g,i)),i=n[i],p=!0);else if(a[1]._container){for(u=i,s=void 0;u--;)if(c=g.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...g.get(s)[1].start},f=g.slice(s,i),f.unshift(a),g.splice(s,i-s+1,f))}}return dn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function IT(e,n){const i=e.get(n)[1],a=e.get(n)[2];let s=n-1;const u=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],p={};let g,y,_=-1,b=i,S=0,T=0;const C=[T];for(;b;){for(;e.get(++s)[1]!==b;);u.push(s),b._tokenizer||(g=a.sliceStream(b),b.next||g.push(null),y&&c.defineSki
vendor: 22,967 bytes, line 55
55p(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=i;++_<f.length;)f[_][0]==="exit"&&f[_-1][0]==="enter"&&f[_][1].type===f[_-1][1].type&&f[_][1].start.line!==f[_][1].end.line&&(T=_+1,C.push(T),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),_=C.length;_--;){const A=f.slice(C[_],C[_+1]),N=u.pop();d.push([N,N+A.length-1]),e.splice(N,2,A)}for(d.reverse(),_=-1;++_<d.length;)p[S+d[_][0]]=S+d[_][1],S+=d[_][1]-d[_][0]-1;return p}const PT={resolve:qT,tokenize:$T},HT={partial:!0,tokenize:VT};function qT(e){return qb(e),e}function $T(e,n){let i;return a;function a(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):_e(f)?e.check(HT,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function VT(e,n,i){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),He(e,u,"linePrefix")}function u(c){if(c===null||_e(c))return i(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(a.parser.constructs.flow,i,n)(c)}}function $b(e,n,i,a,s,u,c,f,d){const p=d||Number.POSITIVE_INFINITY;let g=0;return y;function y(A){return A===60?(e.enter(a),e.enter(s),e.enter(u),e.consume(A),e.exit(u),_):A===null||A===32||A===41||Uo(A)?i(A):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(A))}function _(A){return A===62?(e.enter(u),e.consume(A),e.exit(u),e.exit(s),e.exit(a),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(f),_(A)):A===null||A===60||_e(A)?i(A):(e.consume(A),A===92?S:b)}function S(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function T(A){return!g&&(A===null||A===41||tt(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),n(A)):g<p&&A===40?(e.consume(A),g++,T):A===41?(e.consume(A),g--,T):A===null||A===32||A===40||Uo(A)?i(A):(e.consume(A),A===92?C:T)}function C(A){return A===40||A===41||A===92?(e.consume(A),T):T(A)}}function Vb(e,n,i,a,s,u){const c=this;let f=0,d;return p;function p(b){return e.enter(a),e.enter(s),e.consume(b),e.exit(s),e.enter(u),g}function g(b){return f>999||b===null||b===91||b===93&&!d||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(u),e.enter(s),e.consume(b),e.exit(s),e.exit(a),n):_e(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||_e(b)||f++>999?(e.exit("chunkString"),g(b)):(e.consume(b),d||(d=!Le(b)),b===92?_:y)}function _(b){return b===91||b===92||b===93?(e.consume(b),f++,y):y(b)}}function Gb(e,n,i,a,s,u){let c;return f;function f(_){return _===34||_===39||_===40?(e.enter(a),e.enter(s),e.consume(_),e.exit(s),c=_===40?41:_,d):i(_)}function d(_){return _===c?(e.enter(s),e.consume(_),e.exit(s),e.exit(a),n):(e.enter(u),p(_))}function p(_){return _===c?(e.exit(u),d(c)):_===null?i(_):_e(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),He(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===c||_===null||_e(_)?(e.exit("chunkString"),p(_)):(e.consume(_),_===92?y:g)}function y(_){return _===c||_===92?(e.consume(_),g):g(_)}}function Il(e,n){let i;return a;function a(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,a):Le(s)?He(e,a,i?"linePrefix":"lineSuffix")(s):n(s)}}const GT={name:"definition",tokenize:YT},FT={partial:!0,tokenize:KT};function YT(e,n,i){const a=this;let s;return u;function u(b){return e.enter("definition"),c(b)}function c(b){return Vb.call(a,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return s=Un(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):i(b)}function d(b){return tt(b)?Il(e,p)(b):p(b)}function p(b){return $b(e,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt(FT,y,y)(b)}function y(b){return Le(b)?He(e,_,"whitespace")(b):_(b)}function _(b){return b===null||_e(b)?(e.exit("definition"),a.parser.defined.push(s),n(b)):i(b)}}function KT(e,n,i){return a;function a(f){return tt(f)?Il(e,s)(f):i(f)}function s(f){return Gb(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Le(f)?He(e,c,"whitespace")(f):c(f)}function c(f){return f===null||_e(f)?n(f):i(f)}}const XT={name:"hardBreakEscape",tokenize:QT};function QT(e,n,i){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return _e(u)?(e.exit("hardBreakEscape"),n(u)):i(u)}}const JT={name:"headingAtx",resolve:ZT,tokenize:WT};function ZT(e,n){let i=e.length-2,a=3,s,u;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},u={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},dn(e,a,i-a+1,[["enter",s,n],["enter",u,n],["exit",u,n],["exit",s,n]])),e}function WT(e,n,i){let a=0;return s;function s(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&a++<6?(e.consume(g),c):g===null||tt(g)?(e.exit("atxHeadingSequence"),f(g)):i(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||_e(g)?(e.exit("atxHeading"),n(g)):Le(g)?He(e,f,"whitespace")(g):(e.enter("atxHeadingText"),p(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),f(g))}function p(g){return g===null||g===35||tt(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),p)}}const eA=["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"],ev=["pre","script","style","textarea"],tA={concrete:!0,name:"htmlFlow",resolveTo:iA,tokenize:aA},nA={partial:!0,tokenize:sA},rA={partial:!0,tokenize:lA};function iA(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function aA(e,n,i){const a=this;let s,u,c,f,d;return p;function p(E){return g(E)}function g(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),y}function y(E){return E===33?(e.consume(E),_):E===47?(e.consume(E),u=!0,T):E===63?(e.consume(E),s=3,a.interrupt?n:R):qt(E)?(e.consume(E),c=String.fromCharCode(E),C):i(E)}function _(E){return E===45?(e.consume(E),s=2,b):E===91?(e.consume(E),s=5,f=0,S):qt(E)?(e.consume(E),s=4,a.interrupt?n:R):i(E)}function b(E){return E===45?(e.consume(E),a.interrupt?n:R):i(E)}function S(E){const le="CDATA[";return E===le.charCodeAt(f++)?(e.consume(E),f===le.length?a.interrupt?n:ne:S):i(E)}function T(E){return qt(E)?(e.consume(E),c=String.fromCharCode(E),C):i(E)}function C(E){if(E===null||E===47||E===62||tt(E)){const le=E===47,ge=c.toLowerCase();return!le&&!u&&ev.includes(ge)?(s=1,a.interrupt?n(E):ne(E)):eA.includes(c.toLowerCase())?(s=6,le?(e.consume(E),A):a.interrupt?n(E):ne(E)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(E):u?N(E):j(E))}return E===45||It(E)?(e.consume(E),c+=String.fromCharCode(E),C):i(E)}function A(E){return E===62?(e.consume(E),a.interrupt?n:ne):i(E)}function N(E){return Le(E)?(e.consume(E),N):q(E)}function j(E){return E===47?(e.consume(E),q):E===58||E===95||qt(E)?(e.consume(E),X):Le(E)?(e.consume(E),j):q(E)}function X(E){return E===45||E===46||E===58||E===95||It(E)?(e.consume(E),X):re(E)}function re(E){return E===61?(e.consume(E),M):Le(E)?(e.consume(E),re):j(E)}function M(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(e.consume(E),d=E,Z):Le(E)?(e.consume(E),M):ue(E)}function Z(E){return E===d?(e.consume(E),d=null,fe):E===null||_e(E)?i(E):(e.consume(E),Z)}function ue(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||tt(E)?re(E):(e.consume(E),ue)}function fe(E){return E===47||E===62||Le(E)?j(E):i(E)}function q(E){return E===62?(e.consume(E),Q):i(E)}function Q(E){return E===null||_e(E)?ne(E):Le(E)?(e.consume(E),Q):i(E)}function ne(E){return E===45&&s===2?(e.consume(E),P):E===60&&s===1?(e.consume(E),ee):E===62&&s===4?(e.consume(E),D):E===63&&s===3?(e.consume(E),R):E===93&&s===5?(e.consume(E),Te):_e(E)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(nA,V,we)(E)):E===null||_e(E)?(e.exit("htmlFlowData"),we(E)):(e.consume(E),ne)}function we(E){return e.check(rA,oe,V)(E)}function oe(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),te}function te(E){return E===null||_e(E)?we(E):(e.enter("htmlFlowData"),ne(E))}function P(E){return E===45?(e.consume(E),R):ne(E)}function ee(E){return E===47?(e.consume(E),c="",ce):ne(E)}function ce(E){if(E===62){const le=c.toLowerCase();return ev.includes(le)?(e.consume(E),D):ne(E)}return qt(E)&&c.length<8?(e.consume(E),c+=String.fromCharCode(E),ce):ne(E)}function Te(E){return E===93?(e.consume(E),R):ne(E)}function R(E){return E===62?(e.consume(E),D):E===45&&s===2?(e.consume(E),R):ne(E)}function D(E){return E===null||_e(E)?(e.exit("htmlFlowData"),V(E)):(e.consume(E),D)}function V(E){return e.exit("htmlFlow"),n(E)}}function lA(e,n,i){const a=this;return s;function s(c){return _e(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return a.parser.lazy[a.now().line]?i(c):n(c)}}function sA(e,n,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(ts,n,i)}}const oA={name:"htmlText",tokenize:uA};function uA(e,n,i){const a=this;let s,u,c;return f;function f(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),re):R===63?(e.consume(R),j):qt(R)?(e.consume(R),ue):i(R)}function p(R){return R===45?(e.consume(R),g):R===91?(e.consume(R),u=0,S):qt(R)?(e.consume(R),N):i(R)}function g(R){return R===45?(e.consume(R),b):i(R)}function y(R){return R===null?i(R):R===45?(e.consume(R),_):_e(R)?(c=y,ee(R)):(e.consume(R),y)}function _(R){return R===45?(e.consume(R),b):y(R)}function b(R){return R===62?P(R):R===45?_(R):y(R)}function S(R){const D="CDATA[";return R===D.charCodeAt(u++)?(e.consume(R),u===D.length?T:S):i(R)}function T(R){return R===null?i(R):R===93?(e.consume(R),C):_e(R)?(c=T,ee(R)):(e.consume(R),T)}function C(R){return R===93?(e.consume(R),A):T(R)}function A(R){return R===62?P(R):R===93?(e.consume(R),A):T(R)}function N(R){return R===null||R===62?P(R):_e(R)?(c=N,ee(R)):(e.consume(R),N)}function j(R){return R===null?i(R):R===63?(e.consume(R),X):_e(R)?(c=j,ee(R)):(e.consume(R),j)}function X(R){return R===62?P(R):j(R)}function re(R){return qt(R)?(e.consume(R),M):i(R)}function M(R){return R===45||It(R)?(e.consume(R),M):Z(R)}function Z(R){return _e(R)?(c=Z,ee(R)):Le(R)?(e.consume(R),Z):P(R)}function ue(R){return R===45||It(R)?(e.consume(R),ue):R===47||R===62||tt(R)?fe(R):i(R)}function fe(R){return R===47?(e.consume(R),P):R===58||R===95||qt(R)?(e.consume(R),q):_e(R)?(c=fe,ee(R)):Le(R)?(e.consume(R),fe):P(R)}function q(R){return R===45||R===46||R===58||R===95||It(R)?(e.consume(R),q):Q(R)}function Q(R){return R===61?(e.consume(R),ne):_e(R)?(c=Q,ee(R)):Le(R)?(e.consume(R),Q):fe(R)}function ne(R){return R===null||R===60||R===61||R===62||R===96?i(R):R===34||R===39?(e.consume(R),s=R,we):_e(R)?(c=ne,ee(R)):Le(R)?(e.consume(R),ne):(e.consume(R),oe)}function we(R){return R===s?(e.consume(R),s=void 0,te):R===null?i(R):_e(R)?(c=we,ee(R)):(e.consume(R),we)}function oe(R){return R===null||R===34||R===39||R===60||R===61||R===96?i(R):R===47||R===62||tt(R)?fe(R):(e.consume(R),oe)}function te(R){return R===47||R===62||tt(R)?fe(R):i(R)}function P(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),n):i(R)}function ee(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),ce}function ce(R){return Le(R)?He(e,Te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):Te(R)}function Te(R){return e.enter("htmlTextData"),c(R)}}const qh={name:"labelEnd",resolveAll:dA,resolveTo:pA,tokenize:mA},cA={tokenize:gA},fA={tokenize:yA},hA={tokenize:vA};function dA(e){let n=-1;const i=[];for(;++n<e.length;){const a=e[n][1];if(i.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",n+=s}}return e.length!==i.length&&dn(e,0,e.length,i),e}function pA(e,n){let i=e.length,a=0,s,u,c,f;for(;i--;)if(s=e[i][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=i,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=i);const d={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",p,n]],f=kn(f,e.slice(u+1,u+a+3)),f=kn(f,[["enter",g,n]]),f=kn(f,Xo(n.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),n)),f=kn(f,[["exit",g,n],e[c-2],e[c-1],["exit",p,n]]),f=kn(f,e.slice(c+1)),f=kn(f,[["exit",d,n]]),dn(e,u,e.length,f),e}function mA(e,n,i){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return f;function f(_){return u?u._inactive?y(_):(c=a.parser.defined.includes(Un(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelEnd"),d):i(_)}function d(_){return _===40?e.attempt(cA,g,c?g:y)(_):_===91?e.attempt(fA,g,c?p:y)(_):c?g(_):y(_)}function p(_){return e.attempt(hA,g,y)(_)}function g(_){return n(_)}function y(_){return u._balanced=!0,i(_)}}function gA(e,n,i){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),s}function s(y){return tt(y)?Il(e,u)(y):u(y)}function u(y){return y===41?g(y):$b(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return tt(y)?Il(e,d)(y):g(y)}function f(y){return i(y)}function d(y){return y===34||y===39||y===40?Gb(e,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function p(y){return tt(y)?Il(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):i(y)}}function yA(e,n,i){const a=this;return s;function s(f){return Vb.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(Un(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function vA(e,n,i){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):i(u)}}const bA={name:"labelStartImage",resolveAll:qh.resolveAll,tokenize:_A};function _A(e,n,i){const a=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(f):n(f)}}const wA={name:"labelStartLink",resolveAll:qh.resolveAll,tokenize:xA};function xA(e,n,i){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):n(c)}}const Df={name:"lineEnding",tokenize:SA};function SA(e,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),He(e,n,"linePrefix")}}const Do={name:"thematicBreak",tokenize:EA};function EA(e,n,i){let a=0,s;return u;function u(p){return e.enter("thematicBreak"),c(p)}function c(p){return s=p,f(p)}function f(p){return p===s?(e.enter("thematicBreakSequence"),d(p)):a>=3&&(p===null||_e(p))?(e.exit("thematicBreak"),n(p)):i(p)}function d(p){return p===s?(e.consume(p),a++,d):(e.exit("thematicBreakSequence"),Le(p)?He(e,f,"whitespace")(p):f(p))}}const Zt={continuation:{tokenize:CA},exit:OA,name:"list",tokenize:AA},kA={partial:!0,tokenize:jA},TA={partial:!0,tokenize:RA};function AA(e,n,i){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(b){const S=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:fh(b)){if(a.containerState.type||(a.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Do,i,p)(b):p(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return i(b)}function d(b){return fh(b)&&++c<10?(e.consume(b),d):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),p(b)):i(b)}function p(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(ts,a.interrupt?i:g,e.attempt(kA,_,y))}function g(b){return a.containerState.initialBlankLine=!0,u++,_(b)}function y(b){return Le(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),_):i(b)}function _(b){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function CA(e,n,i){const a=this;return a.containerState._closeFlow=void 0,e.check(ts,s,u);function s(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,He(e,n,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Le(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(TA,n,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,He(e,e.attempt(Zt,n,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function RA(e,n,i){const a=this;return He(e,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?n(u):i(u)}}function OA(e){e.exit(this.containerState.type)}function jA(e,n,i){const a=this;return He(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Le(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):i(u)}}const tv={name:"setextUnderline",resolveTo:DA,tokenize:zA};function DA(e,n){let i=e.length,a,s,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,n]),e.splice(u+1,0,["exit",e[a][1],n]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,n]),e}function zA(e,n,i){const a=this;let s;return u;function u(p){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),s=p,c(p)):i(p)}function c(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===s?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),Le(p)?He(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||_e(p)?(e.exit("setextHeadingLine"),n(p)):i(p)}}const NA={tokenize:LA};function LA(e){const n=this,i=e.attempt(ts,a,e.attempt(this.parser.constructs.flowInitial,s,He(e,e.attempt(this.parser.constructs.flow,s,e.attempt(PT,s)),"linePrefix")));return i;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const MA={resolveAll:Yb()},UA=Fb("string"),BA=Fb("text");function Fb(e){return{resolveAll:Yb(e==="text"?IA:void 0),tokenize:n};function n(i){const a=this,s=this.parser.constructs[e],u=i.attempt(s,c,f);return c;function c(g){return p(g)?u(g):f(g)}function f(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),d}function d(g){return p(g)?(i.exit("data"),u(g)):(i.consume(g),d)}function p(g){if(g===null)return!0;const y=s[g];let _=-1;if(y)for(;++_<y.length;){const b=y[_];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function Yb(e){return n;function n(i,a){let s=-1,u;for(;++s<=i.length;)u===void 0?i[s]&&i[s][1].type==="data"&&(u=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==u+2&&(i[u][1].end=i[s-1][1].end,i.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(i,a):i}}function IA(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],s=n.sliceStream(a);let u=s.length,c=-1,f=0,d;for(;u--;){const p=s[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(p===-2)d=!0,f++;else if(p!==-1){u++;break}}
vendor: 1,104 bytes, line 55
55if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const p={type:i===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(i,0,["enter",p,n],["exit",p,n]),i+=2)}i++}return e}const PA={42:Zt,43:Zt,45:Zt,48:Zt,49:Zt,50:Zt,51:Zt,52:Zt,53:Zt,54:Zt,55:Zt,56:Zt,57:Zt,62:Ib},HA={91:GT},qA={[-2]:jf,[-1]:jf,32:jf},$A={35:JT,42:Do,45:[tv,Do],60:tA,61:tv,95:Do,96:Wy,126:Wy},VA={38:Hb,92:Pb},GA={[-5]:Df,[-4]:Df,[-3]:Df,33:bA,38:Hb,42:hh,60:[wT,oA],91:wA,92:[XT,Pb],93:qh,95:hh,96:NT},FA={null:[hh,MA]},YA={null:[42,95]},KA={null:[]},XA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:YA,contentInitial:HA,disable:KA,document:PA,flow:$A,flowInitial:qA,insideSpan:FA,string:VA,text:GA},Symbol.toStringTag,{value:"Module"}));function QA(e,n,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},u=[];let c=[],f=[];
vendor: 12,298 bytes, lines 55-57
55const d={attempt:Z(re),check:Z(M),consume:N,enter:j,exit:X,interrupt:Z(M,{interrupt:!0})},p={code:null,containerState:{},defineSkip:T,events:[],now:S,parser:e,previous:null,sliceSerialize:_,sliceStream:b,write:y};let g=n.tokenize.call(p,d);return n.resolveAll&&u.push(n),p;function y(Q){return c=kn(c,Q),C(),c[c.length-1]!==null?[]:(ue(n,0),p.events=Xo(u,p.events,p),p.events)}function _(Q,ne){return ZA(b(Q),ne)}function b(Q){return JA(c,Q)}function S(){const{_bufferIndex:Q,_index:ne,line:we,column:oe,offset:te}=a;return{_bufferIndex:Q,_index:ne,line:we,column:oe,offset:te}}function T(Q){s[Q.line]=Q.column,q()}function C(){let Q;for(;a._index<c.length;){const ne=c[a._index];if(typeof ne=="string")for(Q=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===Q&&a._bufferIndex<ne.length;)A(ne.charCodeAt(a._bufferIndex));else A(ne)}}function A(Q){g=g(Q)}function N(Q){_e(Q)?(a.line++,a.column=1,a.offset+=Q===-3?2:1,q()):Q!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=Q}function j(Q,ne){const we=ne||{};return we.type=Q,we.start=S(),p.events.push(["enter",we,p]),f.push(we),we}function X(Q){const ne=f.pop();return ne.end=S(),p.events.push(["exit",ne,p]),ne}function re(Q,ne){ue(Q,ne.from)}function M(Q,ne){ne.restore()}function Z(Q,ne){return we;function we(oe,te,P){let ee,ce,Te,R;return Array.isArray(oe)?V(oe):"tokenize"in oe?V([oe]):D(oe);function D(me){return Oe;function Oe(Fe){const Ye=Fe!==null&&me[Fe],$t=Fe!==null&&me.null,Rn=[...Array.isArray(Ye)?Ye:Ye?[Ye]:[],...Array.isArray($t)?$t:$t?[$t]:[]];return V(Rn)(Fe)}}function V(me){return ee=me,ce=0,me.length===0?P:E(me[ce])}function E(me){return Oe;function Oe(Fe){return R=fe(),Te=me,me.partial||(p.currentConstruct=me),me.name&&p.parser.constructs.disable.null.includes(me.name)?ge():me.tokenize.call(ne?Object.assign(Object.create(p),ne):p,d,le,ge)(Fe)}}function le(me){return Q(Te,R),te}function ge(me){return R.restore(),++ce<ee.length?E(ee[ce]):P}}}function ue(Q,ne){Q.resolveAll&&!u.includes(Q)&&u.push(Q),Q.resolve&&dn(p.events,ne,p.events.length-ne,Q.resolve(p.events.slice(ne),p)),Q.resolveTo&&(p.events=Q.resolveTo(p.events,p))}function fe(){const Q=S(),ne=p.previous,we=p.currentConstruct,oe=p.events.length,te=Array.from(f);return{from:oe,restore:P};function P(){a=Q,p.previous=ne,p.currentConstruct=we,p.events.length=oe,f=te,q()}}function q(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function JA(e,n){const i=n.start._index,a=n.start._bufferIndex,s=n.end._index,u=n.end._bufferIndex;let c;if(i===s)c=[e[i].slice(a,u)];else{if(c=e.slice(i,s),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function ZA(e,n){let i=-1;const a=[];let s;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
56`;break}case-3:{c=`\r
57`;break}case-2:{c=n?" ":"	";break}case-1:{if(!n&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function WA(e){const a={constructs:Ub([XA,...(e||{}).extensions||[]]),content:s(pT),defined:[],document:s(gT),flow:s(NA),lazy:{},string:s(UA),text:s(BA)};return a;function s(u){return c;function c(f){return QA(a,u,f)}}}function eC(e){for(;!qb(e););return e}const nv=/[\0\t\n\r]/g;function tC(){let e=1,n="",i=!0,a;return s;function s(u,c,f){const d=[];let p,g,y,_,b;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,n="",i&&(u.charCodeAt(0)===65279&&y++,i=void 0);y<u.length;){if(nv.lastIndex=y,p=nv.exec(u),_=p&&p.index!==void 0?p.index:u.length,b=u.charCodeAt(_),!p){n=u.slice(y);break}if(b===10&&y===_&&a)d.push(-3),a=void 0;else switch(a&&(d.push(-5),a=void 0),y<_&&(d.push(u.slice(y,_)),e+=_-y),b){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:a=!0,e=1}y=_+1}return f&&(a&&d.push(-5),n&&d.push(n),d.push(null)),d}}const nC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rC(e){return e.replace(nC,iC)}function iC(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),u=s===120||s===88;return Bb(i.slice(u?2:1),u?16:10)}return Hh(i)||e}const Kb={}.hasOwnProperty;function aC(e,n,i){return n&&typeof n=="object"&&(i=n,n=void 0),lC(i)(eC(WA(i).document().write(tC()(e,n,!0))))}function lC(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Bn),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:u(yr),blockQuote:u($t),characterEscape:fe,characterReference:fe,codeFenced:u(Rn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Rn,c),codeText:u(Jr,c),codeTextData:fe,data:fe,codeFlowValue:fe,definition:u(Ai),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(On),hardBreakEscape:u(vr),hardBreakTrailing:u(vr),htmlFlow:u(Zr,c),htmlFlowData:fe,htmlText:u(Zr,c),htmlTextData:fe,image:u(Ci),label:c,link:u(Bn),listItem:u(Wr),listItemValue:_,listOrdered:u(br,y),listUnordered:u(br),paragraph:u(Na),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(yr),strong:u(La),thematicBreak:u(je)},exit:{atxHeading:d(),atxHeadingSequence:re,autolink:d(),autolinkEmail:Ye,autolinkProtocol:Fe,blockQuote:d(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:me,characterReference:Oe,codeFenced:d(C),codeFencedFence:T,codeFencedFenceInfo:b,codeFencedFenceMeta:S,codeFlowValue:q,codeIndented:d(A),codeText:d(te),codeTextData:q,data:q,definition:d(),definitionDestinationString:X,definitionLabelString:N,definitionTitleString:j,emphasis:d(),hardBreakEscape:d(ne),hardBreakTrailing:d(ne),htmlFlow:d(we),htmlFlowData:q,htmlText:d(oe),htmlTextData:q,image:d(ee),label:Te,labelText:ce,lineEnding:Q,link:d(P),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:le,resourceDestinationString:R,resourceTitleString:D,resource:V,setextHeading:d(ue),setextHeadingLineSequence:Z,setextHeadingText:M,strong:d(),thematicBreak:d()}};Xb(n,(e||{}).mdastExtensions||[]);const i={};return a;function a(U){let Y={type:"root",children:[]};const se={stack:[Y],tokenStack:[],config:n,enter:f,exit:p,buffer:c,resume:g,data:i},ye=[];let Ee=-1;for(;++Ee<U.length;)if(U[Ee][1].type==="listOrdered"||U[Ee][1].type==="listUnordered")if(U[Ee][0]==="enter")ye.push(Ee);else{const qe=ye.pop();Ee=s(U,qe,Ee)}for(Ee=-1;++Ee<U.length;){const qe=n[U[Ee][0]];Kb.call(qe,U[Ee][1].type)&&qe[U[Ee][1].type].call(Object.assign({sliceSerialize:U[Ee][2].sliceSerialize},se),U[Ee][1])}if(se.tokenStack.length>0){const qe=se.tokenStack[se.tokenStack.length-1];(qe[1]||rv).call(se,void 0,qe[0])}for(Y.position={start:Fr(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:Fr(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<n.transforms.length;)Y=n.transforms[Ee](Y)||Y;return Y}function s(U,Y,se){let ye=Y-1,Ee=-1,qe=!1,Vt,dt,Me,pt;for(;++ye<=se;){const De=U[ye];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?Ee++:Ee--,pt=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Vt&&!pt&&!Ee&&!Me&&(Me=ye),pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:pt=void 0}if(!Ee&&De[0]==="enter"&&De[1].type==="listItemPrefix"||Ee===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Vt){let Ue=ye;for(dt=void 0;Ue--;){const Ke=U[Ue];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;dt&&(U[dt][1].type="lineEndingBlank",qe=!0),Ke[1].type="lineEnding",dt=Ue}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Me&&(!dt||Me<dt)&&(Vt._spread=!0),Vt.end=Object.assign({},dt?U[dt][1].start:De[1].end),U.splice(dt||ye,0,["exit",Vt,De[2]]),ye++,se++}if(De[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Vt=Ue,U.splice(ye,0,["enter",Ue,De[2]]),ye++,se++,Me=void 0,pt=!0}}}return U[Y][1]._spread=qe,se}function u(U,Y){return se;function se(ye){f.call(this,U(ye),ye),Y&&Y.call(this,ye)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(U,Y,se){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([Y,se||void 0]),U.position={start:Fr(Y.start),end:void 0}}function d(U){return Y;function Y(se){U&&U.call(this,se),p.call(this,se)}}function p(U,Y){const se=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==U.type&&(Y?Y.call(this,U,ye[0]):(ye[1]||rv).call(this,U,ye[0]));else throw new Error("Cannot close `"+U.type+"` ("+Bl({start:U.start,end:U.end})+"): it’s not open");se.position.end=Fr(U.end)}function g(){return Ph(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function _(U){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function b(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=U}function S(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=U}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U.replace(/(\r?\n|\r)$/g,"")}function N(U){const Y=this.resume(),se=this.stack[this.stack.length-1];se.label=Y,se.identifier=Un(this.sliceSerialize(U)).toLowerCase()}function j(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.title=U}function X(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.url=U}function re(U){const Y=this.stack[this.stack.length-1];if(!Y.depth){const se=this.sliceSerialize(U).length;Y.depth=se}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Z(U){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(U){const se=this.stack[this.stack.length-1].children;let ye=se[se.length-1];(!ye||ye.type!=="text")&&(ye=J(),ye.position={start:Fr(U.start),end:void 0},se.push(ye)),this.stack.push(ye)}function q(U){const Y=this.stack.pop();Y.value+=this.sliceSerialize(U),Y.position.end=Fr(U.end)}function Q(U){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=Y.children[Y.children.length-1];se.position.end=Fr(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(Y.type)&&(fe.call(this,U),q.call(this,U))}function ne(){this.data.atHardBreak=!0}function we(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function oe(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function te(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.value=U}function P(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=Y,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function ee(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=Y,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function ce(U){const Y=this.sliceSerialize(U),se=this.stack[this.stack.length-2];se.label=rC(Y),se.identifier=Un(Y).toLowerCase()}function Te(){const U=this.stack[this.stack.length-1],Y=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const ye=U.children;se.children=ye}else se.alt=Y}function R(){const U=this.resume(),Y=this.stack[this.stack.length-1];Y.url=U}function D(){const U=this.resume(),Y=this.stack[this.stack.length-1];
vendor: 8,133 bytes, lines 57-61
57Y.title=U}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function le(U){const Y=this.resume(),se=this.stack[this.stack.length-1];se.label=Y,se.identifier=Un(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function ge(U){this.data.characterReferenceType=U.type}function me(U){const Y=this.sliceSerialize(U),se=this.data.characterReferenceType;let ye;se?(ye=Bb(Y,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=Hh(Y);const Ee=this.stack[this.stack.length-1];Ee.value+=ye}function Oe(U){const Y=this.stack.pop();Y.position.end=Fr(U.end)}function Fe(U){q.call(this,U);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(U)}function Ye(U){q.call(this,U);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(U)}function $t(){return{type:"blockquote",children:[]}}function Rn(){return{type:"code",lang:null,meta:null,value:""}}function Jr(){return{type:"inlineCode",value:""}}function Ai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function On(){return{type:"emphasis",children:[]}}function yr(){return{type:"heading",depth:0,children:[]}}function vr(){return{type:"break"}}function Zr(){return{type:"html",value:""}}function Ci(){return{type:"image",title:null,url:"",alt:null}}function Bn(){return{type:"link",title:null,url:"",children:[]}}function br(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Wr(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function Na(){return{type:"paragraph",children:[]}}function La(){return{type:"strong",children:[]}}function J(){return{type:"text",value:""}}function je(){return{type:"thematicBreak"}}}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function Xb(e,n){let i=-1;for(;++i<n.length;){const a=n[i];Array.isArray(a)?Xb(e,a):sC(e,a)}}function sC(e,n){let i;for(i in n)if(Kb.call(n,i))switch(i){case"canContainEols":{const a=n[i];a&&e[i].push(...a);break}case"transforms":{const a=n[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=n[i];a&&Object.assign(e[i],a);break}}}function rv(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Bl({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Bl({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Bl({start:n.start,end:n.end})+") is still open")}function oC(e){const n=this;n.parser=i;function i(a){return aC(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function uC(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)}function cC(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
58`}]}function fC(e,n){const i=n.value?n.value+`
59`:"",a={},s=n.lang?n.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u=e.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(n,u),u}function hC(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function dC(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function pC(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),s=za(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const d={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,p),e.applyData(n,p)}function mC(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function gC(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function Qb(e,n){const i=n.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const s=e.all(n),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function yC(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Qb(e,n);const s={src:za(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,u),e.applyData(n,u)}function vC(e,n){const i={src:za(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function bC(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,a),e.applyData(n,a)}function _C(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Qb(e,n);const s={href:za(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function wC(e,n){const i={href:za(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function xC(e,n,i){const a=e.all(n),s=i?SC(i):Jb(n),u={},c=[];if(typeof n.checked=="boolean"){const g=a[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const g=a[f];(s||f!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
60`}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const d=a[a.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
61`});const p={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,p),e.applyData(n,p)}function SC(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let a=-1;for(;!n&&++a<i.length;)n=Jb(i[a])}return n}function Jb(e){const n=e.spread;return n??e.children.length>1}function EC(e,n){const i={},a=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(n,u),e.applyData(n,u)}function kC(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function TC(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function AC(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function CC(e,n){const i=e.all(n),a=i.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{}
vendor: 1,960 bytes, line 61
61,children:e.wrap(i,!0)},f=Mh(n.children[1]),d=Ob(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,u),e.applyData(n,u)}function RC(e,n,i){const a=i?i.children:void 0,u=(a?a.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let d=-1;const p=[];for(;++d<f;){const y=n.children[d],_={},b=c?c[d]:void 0;b&&(_.align=b);let S={type:"element",tagName:u,properties:_,children:[]};y&&(S.children=e.all(y),e.patch(y,S),S=e.applyData(y,S)),p.push(S)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(n,g),e.applyData(n,g)}function OC(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const iv=9,av=32;function jC(e){const n=String(e),i=/\r?\n|\r/g;let a=i.exec(n),s=0;const u=[];for(;a;)u.push(lv(n.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=i.exec(n);return u.push(lv(n.slice(s),s>0,!1)),u.join("")}function lv(e,n,i){let a=0,s=e.length;if(n){let u=e.codePointAt(a);for(;u===iv||u===av;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(s-1);for(;u===iv||u===av;)s--,u=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function DC(e,n){const i={type:"text",value:jC(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function zC(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const NC={blockquote:uC,break:cC,code:fC,delete:hC,emphasis:dC,footnoteReference:pC,heading:mC,html:gC,imageReference:yC,image:vC,inlineCode:bC,linkReference:_C,link:wC,listItem:xC,list:EC,paragraph:kC,root:TC,strong:AC,table:CC,tableCell:OC,tableRow:RC,text:DC,thematicBreak:zC,toml:Eo,yaml:Eo,definition:Eo,footnoteDefinition:Eo};function Eo(){}const Zb=-1,Qo=0,Pl=1,Bo=2,$h=3,Vh=4,Gh=5,Fh=6,Wb=7,e0=8,LC=typeof self=="object"?self:globalThis,sv=(e,n)=>
vendor: 2,230 bytes, line 61
61{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new LC[e](n)},MC=(e,n)=>{const i=(s,u)=>(e.set(u,s),s),a=s=>{if(e.has(s))return e.get(s);const[u,c]=n[s];switch(u){case Qo:case Zb:return i(c,s);case Pl:{const f=i([],s);for(const d of c)f.push(a(d));return f}case Bo:{const f=i({},s);for(const[d,p]of c)f[a(d)]=a(p);return f}case $h:return i(new Date(c),s);case Vh:{const{source:f,flags:d}=c;return i(new RegExp(f,d),s)}case Gh:{const f=i(new Map,s);for(const[d,p]of c)f.set(a(d),a(p));return f}case Fh:{const f=i(new Set,s);for(const d of c)f.add(a(d));return f}case Wb:{const{name:f,message:d}=c;return i(sv(f,d),s)}case e0:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(sv(u,c),s)};return a},ov=e=>MC(new Map,e)(0),ba="",{toString:UC}={},{keys:BC}=Object,zl=e=>{const n=typeof e;if(n!=="object"||!e)return[Qo,n];const i=UC.call(e).slice(8,-1);switch(i){case"Array":return[Pl,ba];case"Object":return[Bo,ba];case"Date":return[$h,ba];case"RegExp":return[Vh,ba];case"Map":return[Gh,ba];case"Set":return[Fh,ba];case"DataView":return[Pl,i]}return i.includes("Array")?[Pl,i]:i.includes("Error")?[Wb,i]:[Bo,i]},ko=([e,n])=>e===Qo&&(n==="function"||n==="symbol"),IC=(e,n,i,a)=>{const s=(c,f)=>{const d=a.push(c)-1;return i.set(f,d),d},u=c=>{if(i.has(c))return i.get(c);let[f,d]=zl(c);switch(f){case Qo:{let g=c;switch(d){case"bigint":f=e0,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return s([Zb],c)}return s([f,g],c)}case Pl:{if(d){let _=c;return d==="DataView"?_=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(_=new Uint8Array(c)),s([d,[..._]],c)}const g=[],y=s([f,g],c);for(const _ of c)g.push(u(_));return y}case Bo:{if(d)switch(d){case"BigInt":return s([d,c.toString()],c);case"Boolean":case"Number":case"String":return s([d,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const g=[],y=s([f,g],c);for(const _ of BC(c))(e||!ko(zl(c[_])))&&g.push([u(_),u(c[_])]);return y}
vendor: 5,436 bytes, lines 61-63
61case $h:return s([f,c.toISOString()],c);case Vh:{const{source:g,flags:y}=c;return s([f,{source:g,flags:y}],c)}case Gh:{const g=[],y=s([f,g],c);for(const[_,b]of c)(e||!(ko(zl(_))||ko(zl(b))))&&g.push([u(_),u(b)]);return y}case Fh:{const g=[],y=s([f,g],c);for(const _ of c)(e||!ko(zl(_)))&&g.push(u(_));return y}}const{message:p}=c;return s([f,{name:d,message:p}],c)};return u},uv=(e,{json:n,lossy:i}={})=>{const a=[];return IC(!(n||i),!!n,new Map,a)(e),a},Io=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?ov(uv(e,n)):structuredClone(e):(e,n)=>ov(uv(e,n));function PC(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function HC(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function qC(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||PC,a=e.options.footnoteBackLabel||HC,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const g=e.all(p),y=String(p.identifier).toUpperCase(),_=za(y.toLowerCase());let b=0;const S=[],T=e.footnoteCounts.get(y);for(;T!==void 0&&++b<=T;){S.length>0&&S.push({type:"text",value:" "});let N=typeof i=="string"?i:i(d,b);typeof N=="string"&&(N={type:"text",value:N}),S.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+_+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(d,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const C=g[g.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const N=C.children[C.children.length-1];N&&N.type==="text"?N.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...S)}else g.push(...S);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+_},children:e.wrap(g,!0)};e.patch(p,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Io(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
62`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
63`}]}}const Jo=(function(e){if(e==null)return FC;if(typeof e=="function")return Zo(e);if(typeof e=="object")return Array.isArray(e)?$C(e):VC(e);if(typeof e=="string")return GC(e);throw new Error("Expected function, string, or object as test")});function $C(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=Jo(e[i]);return Zo(a);function a(...s){let u=-1;for(;++u<n.length;)if(n[u].apply(this,s))return!0;return!1}}function VC(e){const n=e;return Zo(i);function i(a){const s=a;let u;for(u in e)if(s[u]!==n[u])return!1;return!0}}function GC(e){return Zo(n);function n(i){return i&&i.type===e}}function Zo(e){return n;function n(i,a,s){return!!(YC(i)&&e.call(this,i,typeof a=="number"?a:void 0,s||void 0))}}function FC(){return!0}function YC(e){return e!==null&&typeof e=="object"&&"type"in e}const t0=[],KC=!0,dh=!1,XC="skip";function n0(e,n,i,a){let s;typeof n=="function"&&typeof i!="function"?(a=i,i=n):s=n;const u=Jo(s),c=a?-1:1;f(e,void 0,[])();function f(d,p,g){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(_,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return _;function _(){let b=t0,S,T,C;if((!n||u(d,p,g[g.length-1]||void 0))&&(b=QC(i(d,g)),b[0]===dh))return b;if("children"in d&&d.children){const A=d;if(A.children&&b[0]!==XC)for(T=(a?A.children.length:-1)+c,C=g.concat(A);T>-1&&T<A.children.length;){const N=A.children[T];if(S=f(N,T,C)(),S[0]===dh)return S;T=typeof S[1]=="number"?S[1]:T+c}}return b}}}function QC(e){return Array.isArray(e)?e:typeof e=="number"?[KC,e]:e==null?t0:[e]}function Yh(e,n,i,a){let s,u,c;typeof n=="function"&&typeof i!="function"?(u=void 0,c=n,s=i):(u=n,c=i,s=a),n0(e,u,f,s);function f(d,p){const g=p[p.length-1],y=g?g.children.indexOf(d):void 0;return c(d,y,g)}}const ph={}.hasOwnProperty,JC={};function ZC(e,n){const i=n||JC,a=new Map,s=new Map,u=new Map,c={...NC,...i.handlers},f={all:p,applyData:eR,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:d,options:i,patch:WC,wrap:nR};return Yh(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?a:s,_=String(g.identifier).toUpperCase();y.has(_)||y.set(_,g)}}),f;function d(g,y){const _=g.type,b=f.handlers[_];if(ph.call(f.handlers,_)&&b)return b(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(_)){if("children"in g){const{children:T,...C}=g,A=Io(C);return A.children=f.all(g),A}return Io(g)}return(f.options.unknownHandler||tR)(f,g,y)}function p(g){const y=[];if("children"in g){const _=g.children;let b=-1;for(;++b<_.length;){const S=f.one(_[b],g);if(S){if(b&&_[b-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=cv(S.value)),!Array.isArray(S)&&S.type==="element")){const T=S.children[0];T&&T.type==="text"&&(T.value=cv(T.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function WC(e,n){e.position&&(n.position=Pk(e))}function eR(e,n){let i=n;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;
vendor: 9,525 bytes, lines 63-67
63if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const c="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,Io(u)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function tR(e,n){const i=n.data||{},a="value"in n&&!(ph.call(i,"hProperties")||ph.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function nR(e,n){const i=[];let a=-1;for(n&&i.push({type:"text",value:`
64`});++a<e.length;)a&&i.push({type:"text",value:`
65`}),i.push(e[a]);return n&&e.length>0&&i.push({type:"text",value:`
66`}),i}function cv(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function fv(e,n){const i=ZC(e,n),a=i.one(e,void 0),s=qC(i),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
67`},s),u}function rR(e,n){return e&&"run"in e?async function(i,a){const s=fv(i,{file:a,...n});await e.run(s,a)}:function(i,a){return fv(i,{file:a,...e||n})}}function hv(e){if(e)throw e}var zf,dv;function iR(){if(dv)return zf;dv=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):n.call(p)==="[object Array]"},u=function(p){if(!p||n.call(p)!=="[object Object]")return!1;var g=e.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!y)return!1;var _;for(_ in p);return typeof _>"u"||e.call(p,_)},c=function(p,g){i&&g.name==="__proto__"?i(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},f=function(p,g){if(g==="__proto__")if(e.call(p,g)){if(a)return a(p,g).value}else return;return p[g]};return zf=function d(){var p,g,y,_,b,S,T=arguments[0],C=1,A=arguments.length,N=!1;for(typeof T=="boolean"&&(N=T,T=arguments[1]||{},C=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});C<A;++C)if(p=arguments[C],p!=null)for(g in p)y=f(T,g),_=f(p,g),T!==_&&(N&&_&&(u(_)||(b=s(_)))?(b?(b=!1,S=y&&s(y)?y:[]):S=y&&u(y)?y:{},c(T,{name:g,newValue:d(N,S,_)})):typeof _<"u"&&c(T,{name:g,newValue:_}));return T},zf}var aR=iR();const Nf=vh(aR);function mh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function lR(){const e=[],n={run:i,use:a};return n;function i(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(d,...p){const g=e[++u];let y=-1;if(d){c(d);return}for(;++y<s.length;)(p[y]===null||p[y]===void 0)&&(p[y]=s[y]);s=p,g?sR(g,f)(...p):c(null,...p)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function sR(e,n){let i;return a;function a(...c){const f=e.length>c.length;let d;f&&c.push(s);try{d=e.apply(this,c)}catch(p){const g=p;if(f&&i)throw g;return s(g)}f||(d&&d.then&&typeof d.then=="function"?d.then(u,s):d instanceof Error?s(d):u(d))}function s(c,...f){i||(i=!0,n(c,...f))}function u(c){s(null,c)}}const $n={basename:oR,dirname:uR,extname:cR,join:fR,sep:"/"};function oR(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ns(e);let i=0,a=-1,s=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":e.slice(i,a)}if(n===e)return"";let c=-1,f=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){i=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===n.codePointAt(f--)?f<0&&(a=s):(f=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function uR(e){if(ns(e),e.length===0)return".";let n=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){n=i;break}}else a||(a=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function cR(e){ns(e);let n=e.length,i=-1,a=0,s=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){a=n+1;break}continue}i<0&&(c=!0,i=n+1),f===46?s<0?s=n:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||i<0||u===0||u===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function fR(...e){let n=-1,i;for(;++n<e.length;)ns(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":hR(i)}function hR(e){ns(e);const n=e.codePointAt(0)===47;let i=dR(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function dR(e,n){let i="",a=0,s=-1,u=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(d=i.lastIndexOf("/"),d!==i.length-1){d<0?(i="",a=0):(i=i.slice(0,d),a=i.length-1-i.lastIndexOf("/")),s=c,u=0;continue}}else if(i.length>0){i="",a=0,s=c,u=0;continue}}n&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),a=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return i}function ns(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pR={cwd:mR};function mR(){return"/"}function gh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gR(e){if(typeof e=="string")e=new URL(e);else if(!gh(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return yR(e)}function yR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const a=n.codePointAt(i+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const Lf=["history","path","basename","stem","extname","dirname"];class r0{constructor(n){let i;n?gh(n)?i={path:n}:typeof n=="string"||vR(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":pR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Lf.length;){const u=Lf[a];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let s;for(s in i)Lf.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?$n.basename(this.path):void 0}set basename(n){Uf(n,"basename"),Mf(n,"basename"),this.path=$n.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?$n.dirname(this.path):void 0}set dirname(n){pv(this.basename,"dirname"),this.path=$n.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?$n.extname(this.path):void 0}set extname(n){if(Mf(n,"extname"),pv(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$n.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){gh(n)&&(n=gR(n)),Uf(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?$n.basename(this.path,this.extname):void 0}set stem(n){Uf(n,"stem"),Mf(n,"stem"),this.path=$n.join(this.dirname||"",n+(this.extname||""))}fail(n,i,a){const s=this.message(n,i,a);throw s.fatal=!0,s}info(n,i,a){const s=this.message(n,i,a);return s.fatal=void 0,s}message(n,i,a){const s=new Pt(n,i,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Mf(e,n){if(e&&e.includes($n.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+$n.sep+"`")}function Uf(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pv(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function vR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bR=(function(e){const a=this.constructor.prototype,s=a[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),_R={}.hasOwnProperty;class Kh extends bR{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=lR()}copy(){const n=new Kh;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];n.use(...a)}return n.data(Nf(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(Pf("data",this.frozen),this.namespace[n]=i,this):_R.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Pf("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);
vendor: 4,900 bytes, line 67
67const s=i.call(n,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=To(n),a=this.parser||this.Parser;return Bf("parse",a),a(String(i),i)}process(n,i){const a=this;return this.freeze(),Bf("process",this.parser||this.Parser),If("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(u,c){const f=To(n),d=a.parse(f);a.run(d,f,function(g,y,_){if(g||!y||!_)return p(g);const b=y,S=a.stringify(b,_);SR(S)?_.value=S:_.result=S,p(g,_)});function p(g,y){g||!y?c(g):u?u(y):i(void 0,y)}}}processSync(n){let i=!1,a;return this.freeze(),Bf("processSync",this.parser||this.Parser),If("processSync",this.compiler||this.Compiler),this.process(n,s),gv("processSync","process",i),a;function s(u,c){i=!0,hv(u),a=c}}run(n,i,a){mv(n),this.freeze();const s=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(c,f){const d=To(i);s.run(n,d,p);function p(g,y,_){const b=y||n;g?f(g):c?c(b):a(void 0,b,_)}}}runSync(n,i){let a=!1,s;return this.run(n,i,u),gv("runSync","run",a),s;function u(c,f){hv(c),s=f,a=!0}}stringify(n,i){this.freeze();const a=To(i),s=this.compiler||this.Compiler;return If("stringify",s),mv(n),s(n,a)}use(n,...i){const a=this.attachers,s=this.namespace;if(Pf("use",this.frozen),n!=null)if(typeof n=="function")d(n,i);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...y]=p;d(g,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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");f(p.plugins),p.settings&&(s.settings=Nf(!0,s.settings,p.settings))}function f(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const y=p[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,g){let y=-1,_=-1;for(;++y<a.length;)if(a[y][0]===p){_=y;break}if(_===-1)a.push([p,...g]);else if(g.length>0){let[b,...S]=g;const T=a[_][1];mh(T)&&mh(b)&&(b=Nf(!0,T,b)),a[_]=[p,b,...S]}}}}const wR=new Kh().freeze();function Bf(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function If(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pf(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mv(e){if(!mh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gv(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function To(e){return xR(e)?e:new r0(e)}function xR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SR(e){return typeof e=="string"||ER(e)}function ER(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yv=[],vv={allowDangerousHtml:!0},TR=/^(https?|ircs?|mailto|xmpp)$/i,AR=[{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 CR(e){const n=RR(e),i=OR(e);return jR(n.runSync(n.parse(i),i),e)}function RR(e){const n=e.rehypePlugins||yv,i=e.remarkPlugins||yv,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vv}:vv;return wR().use(oC).use(i).use(rR,a).use(n)}function OR(e){const n=e.children||"",i=new r0;return typeof n=="string"&&(i.value=n),i}function jR(e,n){const i=n.allowedElements,a=n.allowElement,s=n.
vendor: 9,859 bytes, lines 67-71
67components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||DR;for(const g of AR)Object.hasOwn(n,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+kR+g.id,void 0);return Yh(e,p),Gk(e,{Fragment:w.Fragment,components:s,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function p(g,y,_){if(g.type==="raw"&&_&&typeof y=="number")return c?_.children.splice(y,1):_.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let b;for(b in Of)if(Object.hasOwn(Of,b)&&Object.hasOwn(g.properties,b)){const S=g.properties[b],T=Of[b];(T===null||T.includes(g.tagName))&&(g.properties[b]=d(String(S||""),b,g))}}if(g.type==="element"){let b=i?!i.includes(g.tagName):u?u.includes(g.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(g,y,_)),b&&_&&typeof y=="number")return f&&g.children?_.children.splice(y,1,...g.children):_.children.splice(y,1),y}}}function DR(e){const n=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||i!==-1&&n>i||a!==-1&&n>a||TR.test(e.slice(0,n))?e:""}function bv(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,s=i.indexOf(n);for(;s!==-1;)a++,s=i.indexOf(n,s+n.length);return a}function zR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function NR(e,n,i){const s=Jo((i||{}).ignore||[]),u=LR(n);let c=-1;for(;++c<u.length;)n0(e,"text",f);function f(p,g){let y=-1,_;for(;++y<g.length;){const b=g[y],S=_?_.children:void 0;if(s(b,S?S.indexOf(b):void 0,_))return;_=b}if(_)return d(p,g)}function d(p,g){const y=g[g.length-1],_=u[c][0],b=u[c][1];let S=0;const C=y.children.indexOf(p);let A=!1,N=[];_.lastIndex=0;let j=_.exec(p.value);for(;j;){const X=j.index,re={index:j.index,input:j.input,stack:[...g,p]};let M=b(...j,re);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?_.lastIndex=X+1:(S!==X&&N.push({type:"text",value:p.value.slice(S,X)}),Array.isArray(M)?N.push(...M):M&&N.push(M),S=X+j[0].length,A=!0),!_.global)break;j=_.exec(p.value)}return A?(S<p.value.length&&N.push({type:"text",value:p.value.slice(S)}),y.children.splice(C,1,...N)):N=[p],C+N.length}}function LR(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<i.length;){const s=i[a];n.push([MR(s[0]),UR(s[1])])}return n}function MR(e){return typeof e=="string"?new RegExp(zR(e),"g"):e}function UR(e){return typeof e=="function"?e:function(){return e}}const Hf="phrasing",qf=["autolink","link","image","label"];function BR(){return{transforms:[GR],enter:{literalAutolink:PR,literalAutolinkEmail:$f,literalAutolinkHttp:$f,literalAutolinkWww:$f},exit:{literalAutolink:VR,literalAutolinkEmail:$R,literalAutolinkHttp:HR,literalAutolinkWww:qR}}}function IR(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hf,notInConstruct:qf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hf,notInConstruct:qf},{character:":",before:"[ps]",after:"\\/",inConstruct:Hf,notInConstruct:qf}]}}function PR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $f(e){this.config.enter.autolinkProtocol.call(this,e)}function HR(e){this.config.exit.autolinkProtocol.call(this,e)}function qR(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function $R(e){this.config.exit.autolinkEmail.call(this,e)}function VR(e){this.exit(e)}function GR(e){NR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,FR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),YR]],{ignore:["link","linkReference"]})}function FR(e,n,i,a,s){let u="";if(!i0(s)||(/^w/i.test(n)&&(i=n+i,n="",u="http://"),!KR(i)))return!1;const c=XR(i+a);if(!c[0])return!1;const f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function YR(e,n,i,a){return!i0(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function KR(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function XR(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let i=n[0],a=i.indexOf(")");const s=bv(e,"(");let u=bv(e,")");for(;a!==-1&&s>u;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),u++;return[e,i]}function i0(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||ki(i)||Ko(i))&&(!n||i!==47)}a0.peek=iO;function QR(){this.buffer()}function JR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ZR(){this.buffer()}function WR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eO(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Un(this.sliceSerialize(e)).toLowerCase(),i.label=n}function tO(e){this.exit(e)}function nO(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Un(this.sliceSerialize(e)).toLowerCase(),i.label=n}function rO(e){this.exit(e)}function iO(){return"["}function a0(e,n,i,a){const s=i.createTracker(a);let u=s.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return u+=s.move(i.safe(i.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function aO(){return{enter:{gfmFootnoteCallString:QR,gfmFootnoteCall:JR,gfmFootnoteDefinitionLabelString:ZR,gfmFootnoteDefinition:WR},exit:{gfmFootnoteCallString:eO,gfmFootnoteCall:tO,gfmFootnoteDefinitionLabelString:nO,gfmFootnoteDefinition:rO}}}function lO(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:a0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,u,c){const f=u.createTracker(c);let d=f.move("[^");const p=u.enter("footnoteDefinition"),g=u.enter("label");return d+=f.move(u.safe(u.associationId(a),{before:d,after:"]"})),g(),d+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),d+=f.move((n?`
68`:" ")+u.indentLines(u.containerFlow(a,f.current()),n?l0:sO))),p(),d}}function sO(e,n,i){return n===0?e:l0(e,n,i)}function l0(e,n,i){return(i?"":"    ")+e}const oO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];s0.peek=dO;function uO(){return{canContainEols:["delete"],enter:{strikethrough:fO},exit:{strikethrough:hO}}}function cO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oO}],handlers:{delete:s0}}}function fO(e){this.enter({type:"delete",children:[]},e)}function hO(e){this.exit(e)}function s0(e,n,i,a){const s=i.createTracker(a),u=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function dO(){return"~"}function pO(e){return e.length}function mO(e,n){const i=n||{},a=(i.align||[]).concat(),s=i.stringLength||pO,u=[],c=[],f=[],d=[];let p=0,g=-1;for(;++g<e.length;){const T=[],C=[];let A=-1;for(e[g].length>p&&(p=e[g].length);++A<e[g].length;){const N=gO(e[g][A]);if(i.alignDelimiters!==!1){const j=s(N);C[A]=j,(d[A]===void 0||j>d[A])&&(d[A]=j)}T.push(N)}c[g]=T,f[g]=C}let y=-1;if(typeof a=="object"&&"length"in a)for(;++y<p;)u[y]=_v(a[y]);else{const T=_v(a);for(;++y<p;)u[y]=T}y=-1;const _=[],b=[];for(;++y<p;){const T=u[y];let C="",A="";T===99?(C=":",A=":"):T===108?C=":":T===114&&(A=":");let N=i.alignDelimiters===!1?1:Math.max(1,d[y]-C.length-A.length);const j=C+"-".repeat(N)+A;i.alignDelimiters!==!1&&(N=C.length+N+A.length,N>d[y]&&(d[y]=N),b[y]=N),_[y]=j}c.splice(1,0,_),f.splice(1,0,b),g=-1;const S=[];for(;++g<c.length;){const T=c[g],C=f[g];y=-1;const A=[];for(;++y<p;){const N=T[y]||"";let j="",X="";if(i.alignDelimiters!==!1){const re=d[y]-(C[y]||0),M=u[y];M===114?j=" ".repeat(re):M===99?re%2?(j=" ".repeat(re/2+.5),X=" ".repeat(re/2-.5)):(j=" ".repeat(re/2),X=j):X=" ".repeat(re)}i.delimiterStart!==!1&&!y&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||y)&&A.push(" "),i.alignDelimiters!==!1&&A.push(j),A.push(N),i.alignDelimiters!==!1&&A.push(X),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||y!==p-1)&&A.push("|")}S.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return S.join(`
69`)}function gO(e){return e==null?"":String(e)}function _v(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function yO(e,n,i,a){const s=i.enter("blockquote"),u=i.createTracker(a);u.move("> "),u.shift(2);const c=i.indentLines(i.containerFlow(e,u.current()),vO);return s(),c}function vO(e,n,i){return">"+(i?"":" ")+e}function bO(e,n){return wv(e,n.inConstruct,!0)&&!wv(e,n.notInConstruct,!1)}function wv(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let a=-1;for(;++a<n.length;)if(e.includes(n[a]))return!0;return!1}function xv(e,n,i,a){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
70`&&bO(i.stack,i.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
71`}function _O(e,n){const i=String(e);let a=i.indexOf(n),s=a,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+n.length,a=i.indexOf(n,s);return c}function wO(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function xO(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function SO(e,n,i,a){const s=xO(i),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";
vendor: 12,673 bytes, lines 71-82
71if(wO(e,i)){const y=i.enter("codeIndented"),_=i.indentLines(u,EO);return y(),_}const f=i.createTracker(a),d=s.repeat(Math.max(_O(u,s)+1,3)),p=i.enter("codeFenced");let g=f.move(d);if(e.lang){const y=i.enter(`codeFencedLang${c}`);g+=f.move(i.safe(e.lang,{before:g,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=i.enter(`codeFencedMeta${c}`);g+=f.move(" "),g+=f.move(i.safe(e.meta,{before:g,after:`
72`,encode:["`"],...f.current()})),y()}return g+=f.move(`
73`),u&&(g+=f.move(u+`
74`)),g+=f.move(d),p(),g}function EO(e,n,i){return(i?"":"    ")+e}function Xh(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function kO(e,n,i,a){const s=Xh(i),u=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const d=i.createTracker(a);let p=d.move("[");return p+=d.move(i.safe(i.associationId(e),{before:p,after:"]",...d.current()})),p+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(i.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=i.enter("destinationRaw"),p+=d.move(i.safe(e.url,{before:p,after:e.title?" ":`
75`,...d.current()}))),f(),e.title&&(f=i.enter(`title${u}`),p+=d.move(" "+s),p+=d.move(i.safe(e.title,{before:p,after:s,...d.current()})),p+=d.move(s),f()),c(),p}function TO(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Ql(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Po(e,n,i){const a=Aa(e),s=Aa(n);return a===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}o0.peek=AO;function o0(e,n,i,a){const s=TO(i),u=i.enter("emphasis"),c=i.createTracker(a),f=c.move(s);let d=c.move(i.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=d.charCodeAt(0),g=Po(a.before.charCodeAt(a.before.length-1),p,s);g.inside&&(d=Ql(p)+d.slice(1));const y=d.charCodeAt(d.length-1),_=Po(a.after.charCodeAt(0),y,s);_.inside&&(d=d.slice(0,-1)+Ql(y));const b=c.move(s);return u(),i.attentionEncodeSurroundingInfo={after:_.outside,before:g.outside},f+d+b}function AO(e,n,i){return i.options.emphasis||"*"}function CO(e,n){let i=!1;return Yh(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,dh}),!!((!e.depth||e.depth<3)&&Ph(e)&&(n.options.setext||i))}function RO(e,n,i,a){const s=Math.max(Math.min(6,e.depth||1),1),u=i.createTracker(a);if(CO(e,i)){const g=i.enter("headingSetext"),y=i.enter("phrasing"),_=i.containerPhrasing(e,{...u.current(),before:`
76`,after:`
77`});return y(),g(),_+`
78`+(s===1?"=":"-").repeat(_.length-(Math.max(_.lastIndexOf("\r"),_.lastIndexOf(`
79`))+1))}const c="#".repeat(s),f=i.enter("headingAtx"),d=i.enter("phrasing");u.move(c+" ");let p=i.containerPhrasing(e,{before:"# ",after:`
80`,...u.current()});return/^[\t ]/.test(p)&&(p=Ql(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,i.options.closeAtx&&(p+=" "+c),d(),f(),p}u0.peek=OO;function u0(e){return e.value||""}function OO(){return"<"}c0.peek=jO;function c0(e,n,i,a){const s=Xh(i),u=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const d=i.createTracker(a);let p=d.move("![");return p+=d.move(i.safe(e.alt,{before:p,after:"]",...d.current()})),p+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(i.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=i.enter("destinationRaw"),p+=d.move(i.safe(e.url,{before:p,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=i.enter(`title${u}`),p+=d.move(" "+s),p+=d.move(i.safe(e.title,{before:p,after:s,...d.current()})),p+=d.move(s),f()),p+=d.move(")"),c(),p}function jO(){return"!"}f0.peek=DO;function f0(e,n,i,a){const s=e.referenceType,u=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(a);let d=f.move("![");const p=i.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),c();const g=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=g,u(),s==="full"||!p||p!==y?d+=f.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function DO(){return"!"}h0.peek=zO;function h0(e,n,i){let a=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<i.unsafe.length;){const c=i.unsafe[u],f=i.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(a);){let p=d.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(d.index+1)}}return s+a+s}function zO(){return"`"}function d0(e,n){const i=Ph(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}p0.peek=NO;function p0(e,n,i,a){const s=Xh(i),u=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let f,d;if(d0(e,i)){const g=i.stack;i.stack=[],f=i.enter("autolink");let y=c.move("<");return y+=c.move(i.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),i.stack=g,y}f=i.enter("link"),d=i.enter("label");let p=c.move("[");return p+=c.move(i.containerPhrasing(e,{before:p,after:"](",...c.current()})),p+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(i.safe(e.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(d=i.enter("destinationRaw"),p+=c.move(i.safe(e.url,{before:p,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=i.enter(`title${u}`),p+=c.move(" "+s),p+=c.move(i.safe(e.title,{before:p,after:s,...c.current()})),p+=c.move(s),d()),p+=c.move(")"),f(),p}function NO(e,n,i){return d0(e,i)?"<":"["}m0.peek=LO;function m0(e,n,i,a){const s=e.referenceType,u=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(a);let d=f.move("[");const p=i.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),c();const g=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(e),{before:d,after:"]",...f.current()});return c(),i.stack=g,u(),s==="full"||!p||p!==y?d+=f.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function LO(){return"["}function Qh(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function MO(e){const n=Qh(e),i=e.options.bulletOther;if(!i)return n==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+i+"`) to be different");return i}function UO(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function g0(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function BO(e,n,i,a){const s=i.enter("list"),u=i.bulletCurrent;let c=e.ordered?UO(i):Qh(i);const f=e.ordered?c==="."?")":".":MO(i);let d=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(d=!0),g0(i)===c&&g){let y=-1;for(;++y<e.children.length;){const _=e.children[y];if(_&&_.type==="listItem"&&_.children&&_.children[0]&&_.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),i.bulletCurrent=c;const p=i.containerFlow(e,a);return i.bulletLastUsed=c,i.bulletCurrent=u,s(),p}function IO(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function PO(e,n,i,a){const s=IO(i);let u=i.bulletCurrent||Qh(i);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(a);f.move(u+" ".repeat(c-u.length)),f.shift(c);const d=i.enter("listItem"),p=i.indentLines(i.containerFlow(e,f.current()),g);return d(),p;function g(y,_,b){return _?(b?"":" ".repeat(c))+y:(b?u:u+" ".repeat(c-u.length))+y}}function HO(e,n,i,a){const s=i.enter("paragraph"),u=i.enter("phrasing"),c=i.containerPhrasing(e,a);return u(),s(),c}const qO=Jo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $O(e,n,i,a){return(e.children.some(function(c){return qO(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function VO(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}y0.peek=GO;function y0(e,n,i,a){const s=VO(i),u=i.enter("strong"),c=i.createTracker(a),f=c.move(s+s);let d=c.move(i.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=d.charCodeAt(0),g=Po(a.before.charCodeAt(a.before.length-1),p,s);g.inside&&(d=Ql(p)+d.slice(1));const y=d.charCodeAt(d.length-1),_=Po(a.after.charCodeAt(0),y,s);_.inside&&(d=d.slice(0,-1)+Ql(y));const b=c.move(s+s);return u(),i.attentionEncodeSurroundingInfo={after:_.outside,before:g.outside},f+d+b}function GO(e,n,i){return i.options.strong||"*"}function FO(e,n,i,a){return i.safe(e.value,a)}function YO(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function KO(e,n,i){const a=(g0(i)+(i.options.ruleSpaces?" ":"")).repeat(YO(i));return i.options.ruleSpaces?a.slice(0,-1):a}const v0={blockquote:yO,break:xv,code:SO,definition:kO,emphasis:o0,hardBreak:xv,heading:RO,html:u0,image:c0,imageReference:f0,inlineCode:h0,link:p0,linkReference:m0,list:BO,listItem:PO,paragraph:HO,root:$O,strong:y0,text:FO,thematicBreak:KO};function XO(){return{enter:{table:QO,tableData:Sv,tableHeader:Sv,tableRow:ZO},exit:{codeText:WO,table:JO,tableData:Vf,tableHeader:Vf,tableRow:Vf}}}function QO(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function JO(e){this.exit(e),this.data.inTable=void 0}function ZO(e){this.enter({type:"tableRow",children:[]},e)}function Vf(e){this.exit(e)}function Sv(e){this.enter({type:"tableCell",children:[]},e)}function WO(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,e2));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function e2(e,n){return n==="|"?n:e}function t2(e){const n=e||{},i=n.tableCellPadding,a=n.tablePipeAlign,s=n.stringLength,u=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
81`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:_,table:c,tableCell:d,tableRow:f}};function c(b,S,T,C){return p(g(b,T,C),b.align)}function f(b,S,T,C){const A=y(b,T,C),N=p([A]);return N.slice(0,N.indexOf(`
82`))}function d(b,S,T,C){const A=T.enter("tableCell"),N=T.enter("phrasing"),j=T.containerPhrasing(b,{...C,before:u,after:u});return N(),A(),j}function p(b,S){return mO(b,{align:S,alignDelimiters:a,padding:i,stringLength:s})}function g(b,S,T){const C=b.children;let A=-1;const N=[],j=S.enter("table");for(;++A<C.length;)N[A]=y(C[A],S,T);return j(),N}function y(b,S,T){const C=b.children;let A=-1;const N=[],j=S.enter("tableRow");for(;++A<C.length;)N[A]=d(C[A],b,S,T);return j(),N}function _(b,S,T){let C=v0.inlineCode(b,S,T);
vendor: 3,362 bytes, line 82
82return T.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function n2(){return{exit:{taskListCheckValueChecked:Ev,taskListCheckValueUnchecked:Ev,paragraph:i2}}}function r2(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:a2}}}function Ev(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function i2(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const s=n.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function a2(e,n,i,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=i.createTracker(a);u&&f.move(c);let d=v0.listItem(e,n,i,{...a,...f.current()});return u&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),d;function p(g){return g+c}}function l2(){return[BR(),aO(),uO(),XO(),n2()]}function s2(e){return{extensions:[IR(),lO(e),cO(),t2(e),r2()]}}const o2={tokenize:p2,partial:!0},b0={tokenize:m2,partial:!0},_0={tokenize:g2,partial:!0},w0={tokenize:y2,partial:!0},u2={tokenize:v2,partial:!0},x0={name:"wwwAutolink",tokenize:h2,previous:E0},S0={name:"protocolAutolink",tokenize:d2,previous:k0},gr={name:"emailAutolink",tokenize:f2,previous:T0},Fn={};function c2(){return{text:Fn}}let bi=48;for(;bi<123;)Fn[bi]=gr,bi++,bi===58?bi=65:bi===91&&(bi=97);Fn[43]=gr;Fn[45]=gr;Fn[46]=gr;Fn[95]=gr;Fn[72]=[gr,S0];Fn[104]=[gr,S0];Fn[87]=[gr,x0];Fn[119]=[gr,x0];function f2(e,n,i){const a=this;let s,u;return c;function c(y){return!yh(y)||!T0.call(a,a.previous)||Jh(a.events)?i(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return yh(y)?(e.consume(y),f):y===64?(e.consume(y),d):i(y)}function d(y){return y===46?e.check(u2,g,p)(y):y===45||y===95||It(y)?(u=!0,e.consume(y),d):g(y)}function p(y){return e.consume(y),s=!0,d}function g(y){return u&&s&&qt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):i(y)}}function h2(e,n,i){const a=this;return s;function s(c){return c!==87&&c!==119||!E0.call(a,a.previous)||Jh(a.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o2,e.attempt(b0,e.attempt(_0,u),i),i)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function d2(e,n,i){const a=this;let s="",u=!1;return c;function c(y){return(y===72||y===104)&&k0.call(a,a.previous)&&!Jh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),e.consume(y),f):i(y)}function f(y){if(qt(y)&&s.length<5)return s+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const _=s.toLowerCase();if(_==="http"||_==="https")return e.consume(y),d}return i(y)}function d(y){return y===47?(e.consume(y),u?p:(u=!0,d)):i(y)}function p(y){return y===null||Uo(y)||tt(y)||ki(y)||Ko(y)?i(y):e.attempt(b0,e.attempt(_0,g),i)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function p2(e,n,i){let a=0;return s;
vendor: 5,491 bytes, line 82
82function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):i(c)}function u(c){return c===null?i(c):n(c)}}function m2(e,n,i){let a,s,u;return c;function c(p){return p===46||p===95?e.check(w0,d,f)(p):p===null||tt(p)||ki(p)||p!==45&&Ko(p)?d(p):(u=!0,e.consume(p),c)}function f(p){return p===95?a=!0:(s=a,a=void 0),e.consume(p),c}function d(p){return s||a||!u?i(p):n(p)}}function g2(e,n){let i=0,a=0;return s;function s(c){return c===40?(i++,e.consume(c),s):c===41&&a<i?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(w0,n,u)(c):c===null||tt(c)||ki(c)?n(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function y2(e,n,i){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||tt(f)||ki(f)?n(f):i(f)}function s(f){return f===null||f===40||f===91||tt(f)||ki(f)?n(f):a(f)}function u(f){return qt(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),a):qt(f)?(e.consume(f),c):i(f)}}function v2(e,n,i){return a;function a(u){return e.consume(u),s}function s(u){return It(u)?i(u):n(u)}}function E0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function k0(e){return!qt(e)}function T0(e){return!(e===47||yh(e))}function yh(e){return e===43||e===45||e===46||e===95||It(e)}function Jh(e){let n=e.length,i=!1;for(;n--;){const a=e[n][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const b2={tokenize:A2,partial:!0};function _2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:E2,continuation:{tokenize:k2},exit:T2}},text:{91:{name:"gfmFootnoteCall",tokenize:S2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:w2,resolveTo:x2}}}}function w2(e,n,i){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const d=a.events[s][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return i(d);const p=Un(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?i(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function x2(e,n){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[i+1],e[i+2],["enter",a,n],e[i+3],e[i+4],["enter",s,n],["exit",s,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(i,e.length-i+1,...f),e}function S2(e,n,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?i(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(y){if(u>999||y===93&&!c||y===null||y===91||tt(y))return i(y);if(y===93){e.exit("chunkString");const _=e.exit("gfmFootnoteCallString");return s.includes(Un(a.sliceSerialize(_)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(y)}return tt(y)||(c=!0),u++,e.consume(y),y===92?g:p}function g(y){return y===91||y===92||y===93?(e.consume(y),u++,p):p(y)}}function E2(e,n,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):i(S)}function g(S){if(c>999||S===93&&!f||S===null||S===91||tt(S))return i(S);if(S===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return u=Un(a.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),_}return tt(S)||(f=!0),c++,e.consume(S),S===92?y:g}function y(S){return S===91||S===92||S===93?(e.consume(S),c++,g):g(S)}function _(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),s.includes(u)||s.push(u),He(e,b,"gfmFootnoteDefinitionWhitespace")):i(S)}function b(S){return n(S)}}
vendor: 5,827 bytes, line 82
82function k2(e,n,i){return e.check(ts,n,e.attempt(b2,n,i))}function T2(e){e.exit("gfmFootnoteDefinition")}function A2(e,n,i){const a=this;return He(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):i(u)}}function C2(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let p=d;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[d][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[d][1].end)},y={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[d][1].start)},_=[["enter",g,f],["enter",c[p][1],f],["exit",c[p][1],f],["enter",y,f]],b=f.parser.constructs.insideSpan.null;b&&dn(_,_.length,0,Xo(b,c.slice(p+1,d),f)),dn(_,_.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",g,f]]),dn(c,p-1,d-p+3,_),d=p+_.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function u(c,f,d){const p=this.previous,g=this.events;let y=0;return _;function _(S){return p===126&&g[g.length-1][1].type!=="characterEscape"?d(S):(c.enter("strikethroughSequenceTemporary"),b(S))}function b(S){const T=Aa(p);if(S===126)return y>1?d(S):(c.consume(S),y++,b);if(y<2&&!i)return d(S);const C=c.exit("strikethroughSequenceTemporary"),A=Aa(S);return C._open=!A||A===2&&!!T,C._close=!T||T===2&&!!A,f(S)}}}class R2{constructor(){this.map=[]}add(n,i,a){O2(this,n,i,a)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];a.push(n.slice()),n.length=0;let s=a.pop();for(;s;){for(const u of s)n.push(u);s=a.pop()}this.map.length=0}}function O2(e,n,i,a){let s=0;if(!(i===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===n){e.map[s][1]+=i,e.map[s][2].push(...a);return}s+=1}e.map.push([n,i,a])}}function j2(e,n){let i=!1;const a=[];for(;n<e.length;){const s=e[n];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return a}function D2(){return{flow:{null:{name:"table",tokenize:z2,resolveAll:N2}}}}function z2(e,n,i){const a=this;let s=0,u=0,c;return f;function f(q){let Q=a.events.length-1;for(;Q>-1;){const oe=a.events[Q][1].type;if(oe==="lineEnding"||oe==="linePrefix")Q--;else break}const ne=Q>-1?a.events[Q][1].type:null,we=ne==="tableHead"||ne==="tableRow"?M:d;return we===M&&a.parser.lazy[a.now().line]?i(q):we(q)}function d(q){return e.enter("tableHead"),e.enter("tableRow"),p(q)}function p(q){return q===124||(c=!0,u+=1),g(q)}function g(q){return q===null?i(q):_e(q)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),b):i(q):Le(q)?He(e,g,"whitespace")(q):(u+=1,c&&(c=!1,s+=1),q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),c=!0,g):(e.enter("data"),y(q)))}function y(q){return q===null||q===124||tt(q)?(e.exit("data"),g(q)):(e.consume(q),q===92?_:y)}function _(q){return q===92||q===124?(e.consume(q),y):y(q)}function b(q){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(q):(e.enter("tableDelimiterRow"),c=!1,Le(q)?He(e,S,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):S(q))}function S(q){return q===45||q===58?C(q):q===124?(c=!0,e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),T):re(q)}function T(q){return Le(q)?He(e,C,"whitespace")(q):C(q)}function C(q){return q===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),A):q===45?(u+=1,A(q)):q===null||_e(q)?X(q):re(q)}function A(q){return q===45?(e.enter("tableDelimiterFiller"),N(q)):re(q)}function N(q){return q===45?(e.consume(q),N):q===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(q))}function j(q){return Le(q)?He(e,X,"whitespace")(q):X(q)}function X(q){return q===124?S(q):q===null||_e(q)?!c||s!==u?re(q):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(q)):re(q)}function re(q){return i(q)}function M(q){return e.enter("tableRow"),Z(q)}function Z(q){return q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),Z):q===null||_e(q)?(e.exit("tableRow"),n(q)):Le(q)?He(e,Z,"whitespace")(q):(e.enter("data"),ue(q))}function ue(q){return q===null||q===124||tt(q)?(e.exit("data"),Z(q)):(e.consume(q),q===92?fe:ue)}function fe(q){return q===92||q===124?(e.consume(q),ue):ue(q)}}function N2(e,n){let i=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,p,g,y;const _=new R2;for(;++i<e.length;){const b=e[i],S=b[1];b[0]==="enter"?S.type==="tableHead"?(f=!1,d!==0&&(kv(_,n,d,p,g),g=void 0,d=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},_.add(i,0,[["enter",p,n]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(a=!0,y=void 0,u=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)}
82,_.add(i,0,[["enter",g,n]])),s=S.type==="tableDelimiterRow"?2:g?3:1):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],y=Ao(_,n,u,s,void 0,y),u=[0,0,0,0]),c[2]=i)):S.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],y=Ao(_,n,u,s,void 0,y)),u=c,c=[u[1],i,0,0])):S.type==="tableHead"?(f=!0,d=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(d=i,u[1]!==0?(c[0]=c[1],y=Ao(_,n,u,s,i,y)):c[1]!==0&&(y=Ao(_,n,c,s,i,y)),s=0):s&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=i)}for(d!==0&&kv(_,n,d,p,g),_.consume(n.events),i=-1;++i<n.events.length;){const b=n.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=j2(n.events,i))}return e}function Ao(e,n,i,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(u.end=Object.assign({},Sa(n.events,i[0])),e.add(i[0],0,[["exit",u,n]]));const d=Sa(n.events,i[1]);if(u={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(i[1],0,[["enter",u,n]]),i[2]!==0){const p=Sa(n.events,i[2]),g=Sa(n.events,i[3]),y={type:f,start:Object.assign({},p),end:Object.assign({},g)};if(e.add(i[2],0,[["enter",y,n]]),a!==2){const _=n.events[i[2]],b=n.events[i[3]];if(_[1].end=Object.assign({},b[1].end),_[1].type="chunkText",_[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,T=i[3]-i[2]-1;e.add(S,T,[])}}e.add(i[3]+1,0,[["exit",y,n]])}return s!==void 0&&(u.end=Object.assign({},Sa(n.events,s)),e.add(s,0,[["exit",u,n]]),u=void 0),u}function kv(e,n,i,a,s){const u=[],c=Sa(n.events,i);s&&(s.end=Object.assign({},c),u.push(["exit",s,n])),a.end=Object.assign({},c),u.push(["exit",a,n]),e.add(i+1,0,u)}function Sa(e,n){const i=e[n],a=i[0]==="enter"?"start":"end";return i[1][a]}const L2={name:"tasklistCheck",tokenize:U2};function M2(){return{text:{91:L2}}}function U2(e,n,i){const a=this;return s;function s(d){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),u)}function u(d){return tt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):i(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(d)}function f(d){return _e(d)?n(d):Le(d)?e.check({tokenize:B2},n,i)(d):i(d)}}function B2(e,n,i){return He(e,a,"whitespace");function a(s){return s===null?i(s):n(s)}}function I2(e){return Ub([c2(),_2(),C2(e),D2(),M2()])}const P2={};function H2(e){const n=this,i=e||P2,a=n.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(I2(i)),u.push(l2()),c.push(s2(i))}const _i=3,q2=4*1024*1024,$2=["image/jpeg","image/png","image/webp","image/gif"],V2="(sent a photo)",Tv="amicikart_chat_session_id",Zh="amicikart_chat_history_v2",Gf="amicikart_precart_v1",Av="amicikart_chat_open_v1",Cv="amicikart_chat_scroll_v1",Ff="amicikart_chat_handoff_v1",Yf="amicikart_chat_rated_v1",G2=3e4,F2=["Still there? No rush 😊 If you’d like a person to take over, just say so — our team will reply right here.","","_Support hours: Mon–Sat, 11 AM – 6 PM IST. Just reply here anytime to carry on._"].join(`
83`),Y2=["Still there? No rush 😊 If you’d like a person to take over, just say so — our team will reply right here.","","Sharing your mobile number or email here helps our team reach you if this chat closes.","","_Support hours: Mon–Sat, 11 AM – 6 PM IST. Just reply here anytime to carry on._"].join(`
84`),K2=/(?:\+?91[\s-]?)?[6-9]\d{9}\b/,X2=/[^\s@]+@[^\s@]+\.[a-z]{2,}/i,Q2=e=>e.some(n=>n.role==="user"&&(K2.test(n.content||"")||X2.test(n.content||""))),Rv=()=>{try{return!!window.parent&&window.parent!==window}catch{return!1}};function Co(e,n){try{const i=localStorage.getItem(e);return i?JSON.parse(i)??n:n}catch{return n}}function J2(){try{let e=localStorage.getItem(Tv);return e||(e=`web-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,localStorage.setItem(Tv,e)),e}catch{return`web-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}}function Z2(){try{const e=localStorage.getItem(Zh);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n:[]}catch{return[]}}function W2(e){try{localStorage.setItem(Zh,JSON.stringify(e.slice(-50)))}catch{}}const ej=e=>
84typeof e=="number"?"₹"+e.toLocaleString("en-IN",{maximumFractionDigits:0}):"";function tj({card:e,onAddToCart:n,onView:i,onAsk:a,onPrefetch:s}){const[u,c]=k.useState(!1);return w.jsxs("div",{className:"flex-shrink-0 w-[104px] bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-sm transition-shadow",title:e.title,onMouseEnter:()=>s(e),children:[w.jsx("a",{href:e.url||"#",target:"_blank",rel:"noopener noreferrer",onClick:f=>i(f,e),className:"block h-[88px] bg-gray-50 relative overflow-hidden",children:e.image_url&&!u?w.jsx("img",{src:e.image_url,alt:e.title,loading:"lazy",className:"w-full h-full object-contain",onError:()=>c(!0)}):w.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-300",children:w.jsx("svg",{className:"w-7 h-7",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),w.jsxs("div",{className:"px-1.5 py-1",children:[w.jsx("div",{className:"text-[11px] font-semibold text-gray-900 text-center",children:ej(e.price_inr)}),w.jsxs("div",{className:"mt-1 grid grid-cols-2 gap-1",children:[w.jsx("a",{href:e.url||"#",target:"_blank",rel:"noopener noreferrer",onClick:f=>i(f,e),className:"text-center text-[9px] font-medium text-blue-700 border border-blue-200 hover:bg-blue-50 py-1 rounded transition",children:"View"}),e.variant_id?w.jsx("button",{onClick:()=>n(e),className:"text-[9px] font-medium bg-green-600 hover:bg-green-700 text-white py-1 rounded transition",children:"Add"}):w.jsx("span",{})]}),w.jsx("button",{onClick:()=>a(e),className:"mt-1 w-full text-[9px] font-medium text-gray-600 border border-gray-200 hover:bg-gray-50 py-1 rounded transition",children:"Question?"})]})]})}function nj(){const[e,n]=k.useState(()=>Co(Av,!1)),[i,a]=k.useState(Z2),[s,u]=k.useState(!1),[c,f]=k.useState(()=>Co(Gf,[])),[d,p]=k.useState(""),[g,y]=k.useState(!1),[_,b]=k.useState(null),[S,T]=k.useState([]),[C,A]=k.useState(null),[N]=k.useState(J2),[j,X]=k.useState(()=>Co(Ff,!1)),[re,M]=k.useState(!1),[Z,ue]=k.useState(()=>Co(Yf,!1)),[fe,q]=k.useState(""),[Q,ne]=k.useState(!1),we=k.useRef(null),oe=k.useRef(null),te=k.useRef(null),P=k.useRef(null),ee=k.useRef(!1),ce=k.useRef(null),Te=k.useRef(j);k.useEffect(()=>{Te.current=j},[j]);const R=J=>{!J||!J.length||f(je=>{const U=new Set(je.map(se=>se.id)),Y=J.filter(se=>se&&se.id&&!U.has(se.id));return Y.length?[...je,...Y]:je})},D=()=>{f([]);try{localStorage.removeItem(Gf)}catch{}},V=()=>{ce.current&&(clearTimeout(ce.current),ce.current=null)},E=(J,je)=>{if(V(),Te.current||je)return;const U=(J||"").toLowerCase();U.trim()&&(U.includes("9809709898")||U.includes("[email protected]")||U.includes("wa.me")||U.includes("whatsapp")||(ce.current=setTimeout(()=>{if(ce.current=null,!Te.current){X(!0);try{localStorage.setItem(Ff,"true")}catch{}a(Y=>[...Y,{role:"assistant",content:Q2(Y)?F2:Y2,ts:Date.now()}])}},G2)))};k.useEffect(()=>{e||V()},[e]),k.useEffect(()=>V,[]),k.useEffect(()=>{W2(i)},[i]),k.useEffect(()=>{try{localStorage.setItem(Gf,JSON.stringify(c.slice(-40)))}catch{}},[c]),k.useEffect(()=>{try{localStorage.setItem(Av,JSON.stringify(e))}catch{}},[e]),k.useEffect(()=>{if(!(!e||!we.current)){if(!ee.current){ee.current=!0;const J=Number(localStorage.getItem(Cv)||0);if(J>0){we.current.scrollTop=J;return}}we.current.scrollTop=we.current.scrollHeight}},[i,e,g]),k.useEffect(()=>{oe.current&&(oe.current.scrollLeft=oe.current.scrollWidth)},[c.length]),k.useEffect(()=>{try{window.parent&&window.parent!==window&&window.parent.postMessage({type:e?"adpilot:open":"adpilot:close"},"*")}catch{}},[e]);const le=k.useRef(null);k.useEffect(()=>{const J=je=>{let U="";try{U=new URL(je.origin).hostname}catch{U=""}if(!(je.origin===window.location.origin||U==="amicikart.com"||U.endsWith(".amicikart.com")))return;const se=je.data;if(se&&typeof se=="object"&&se.type==="adpilot:context"){const ye=se;le.current={current:ye.current&&typeof ye.current=="object"?ye.current:{},recent:Array.isArray(ye.recent)?ye.recent.slice(0,8):[]}}se&&typeof se=="object"&&se.type==="adpilot:request-open"&&n(!0)};return window.addEventListener("message",J),()=>window.removeEventListener("message",J)},[]);const ge=i.length?i[i.length-1]:void 0,me=!g&&!!ge&&(ge.role==="user"||ge.role==="assistant"&&(!ge.content||!!ge.placeholder)),Oe=k.useRef("");k.useEffect(()=>{if(!(s||me)||!N)return;let J=!1;const je=async()=>{try{const Y=Oe.current,se=Y?`?limit=200&after_id=${encodeURIComponent(Y)}
84`:"?limit=1000",ye=await fetch(`${Xr}/v1/agent/sessions/${encodeURIComponent(N)}${se}`);if(!ye.ok)return;const Ee=await ye.json(),qe=Array.isArray(Ee?.messages)?Ee.messages:[];qe.length&&qe[qe.length-1].id&&(Oe.current=qe[qe.length-1].id);let Vt=-1;qe.forEach((Me,pt)=>{Me.role==="user"&&(Vt=pt)});const dt=qe.slice(Vt+1).filter(Me=>Me.role==="assistant"&&(Me.content||"").trim()).map(Me=>({id:Me.id,content:(Me.content||"").replace(/^\[Team\]\s*/,"")}));if(J||!dt.length)return;a(Me=>{const pt=new Set(Me.map(lt=>lt.content)),De=dt.filter(lt=>!pt.has(lt.content));if(!De.length)return Me;const Ue=[...Me],Ke=Ue[Ue.length-1];if(Ke&&Ke.role==="assistant"&&(!Ke.content||Ke.placeholder)){const lt=De.shift();Ue[Ue.length-1]={...Ke,content:lt.content,id:lt.id,placeholder:!1,ts:Date.now()}}return[...Ue,...De.map(lt=>({role:"assistant",content:lt.content,id:lt.id,ts:Date.now()}))]})}catch{}};je();const U=setInterval(je,7e3);return()=>{J=!0,clearInterval(U)}},[s,me,N]);const Fe=async(J,je,U)=>{const Y=U??[];if(!J.trim()&&Y.length===0||g)return;const se=J.trim()||V2,ye={role:"user",content:je??se,ts:Date.now(),imagePreviews:Y.length?Y.map(Ue=>Ue.preview):void 0};a(Ue=>[...Ue,ye]),p(""),T([]),A(null),y(!0),V();const Ee=await new Promise(Ue=>{a(Ke=>{const lt=[...Ke,{role:"assistant",content:"",ts:Date.now()}];return Ue(lt.length-1),lt})}),qe=Ue=>{a(Ke=>{const lt=[...Ke];return lt[Ee]&&(lt[Ee]=Ue(lt[Ee])),lt})},Vt=async(Ue,Ke)=>{try{const lt=await fetch(`${Xr}/v1/agent/sessions/${encodeURIComponent(Ue)}?limit=1000`);if(!lt.ok)return"";const en=await lt.json(),Rt=Array.isArray(en?.messages)?en.messages:[],_r=Ke.trim();let Ut=-1;for(let Et=Rt.length-1;Et>=0;Et--)if(Rt[Et].role==="user"){if((Rt[Et].content||"").trim()===_r){Ut=Et;break}Ut===-1&&(Ut=Et)}for(let Et=Ut+1;Et<Rt.length;Et++)if(Rt[Et].role==="assistant"&&(Rt[Et].content||"").trim())return Rt[Et].content;return""}catch{return""}};let dt=!1,Me="",pt=!1,De="";try{const Ue=await fetch(`${Xr}/v1/agent/chat-stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:N,message:se,channel:"web",page_context:le.current||void 0,images:Y.length?Y.map(Rt=>({data:Rt.data,media_type:Rt.media_type})):void 0})});if(!Ue.ok||!Ue.body)throw new Error(`HTTP ${Ue.status}`);const Ke=Ue.body.getReader(),lt=new TextDecoder;let en="";for(;;){const{done:Rt,value:_r}=await Ke.read();if(Rt)break;en+=lt.decode(_r,{stream:!0});let Ut;for(;(Ut=en.indexOf(`
85
86`))>=0;){const Et=en.slice(0,Ut);en=en.slice(Ut+2);const wr=Et.trim();if(!wr.startsWith("data:"))continue;const rs=wr.slice(5).trim();if(!rs)continue;let st;try{st=JSON.parse(rs)}catch{continue}if(st.type==="text_delta")De+=st.delta||"",qe(yt=>({...yt,content:De}));else if(st.type==="products")R(st.items||[]);else if(st.type==="checkout_url")qe(yt=>({...yt,checkoutUrl:st.url}));else if(st.type==="correction"){const yt=st.reply||"";yt&&(De=yt,Me=yt,qe(tn=>({...tn,content:yt})))}else st.type==="done"?(pt=!0,R(st.products||[]),qe(yt=>({...yt,content:st.reply||yt.content,checkoutUrl:st.checkout_url||yt.checkoutUrl,escalated:!!st.escalated})),Me=st.reply||De,dt=!!st.escalated,u(!!st.human_mode),st.human_mode&&!(st.reply||"").trim()&&a(yt=>{const tn=[...yt];return tn[Ee]&&tn[Ee].role==="assistant"&&!(tn[Ee].content||"").trim()&&tn.splice(Ee,1),tn})):st.type==="error"&&qe(yt=>({...yt,content:st.message||"Something went wrong.",placeholder:!0}))}}}catch(Ue){console.error("[chat] stream error",Ue)}finally{if(!pt){const Ue=await Vt(N,se);Ue?(De=Ue,Me=Ue,qe(Ke=>({...Ke,content:Ue,placeholder:!1}))):De.trim()||qe(Ke=>({...Ke,content:"Sorry — my reply didn’t come through. Please resend, or tap “Talk to a human”.",placeholder:!0}))}y(!1),E(Me,dt)}},Ye=J=>Fe(`Please add 1 × ${J.title} to my cart and share the checkout link.`),$t=(J,je)=>{if(je.url&&!(J.metaKey||J.ctrlKey||J.shiftKey||J.button===1)&&Rv()){J.preventDefault();try{window.parent.postMessage({type:"adpilot:navigate",url:je.url},"*")}catch{}}},Rn=J=>{if(!(!J.url||!Rv()))try{window.parent.postMessage({type:"adpilot:prefetch",url:J.url},"*")}catch{}},Jr=J=>{b(J),setTimeout(()=>te.current?.focus(),50)},Ai=J=>new Promise((je,U)=>{if(!$2.includes(J.type)){U(new Error(`"${J.name}" isn't a supported image (use JPG, PNG, WEBP or GIF).`));return}if(J.size>q2){U(new Error(`"${J.name}" is too large — please use an image under 4 MB.`));return}const Y=new FileReader;Y.onload=()=>
86{const se=typeof Y.result=="string"?Y.result:"",ye=se.indexOf(","),Ee=ye>=0?se.slice(ye+1):"";if(!Ee){U(new Error(`Couldn't read "${J.name}". Please try another image.`));return}je({data:Ee,media_type:J.type,preview:se,name:J.name})},Y.onerror=()=>U(new Error(`Couldn't read "${J.name}". Please try another image.`));try{Y.readAsDataURL(J)}catch{U(new Error(`Couldn't read "${J.name}". Please try another image.`))}}),On=async J=>{if(!J||J.length===0)return;A(null);const je=_i-S.length;if(je<=0){A(`You can attach up to ${_i} images.`);return}const U=Array.from(J).slice(0,je),Y=J.length-U.length,se=[];let ye=null;for(const Ee of U)try{se.push(await Ai(Ee))}catch(qe){ye||(ye=qe instanceof Error?qe.message:"Couldn’t add that image.")}se.length&&T(Ee=>[...Ee,...se].slice(0,_i)),ye?A(ye):Y>0&&A(`Only the first ${_i} images were added.`)},yr=()=>P.current?.click(),vr=J=>{A(null),T(je=>je.filter((U,Y)=>Y!==J))},Zr=()=>{const J=d.trim();if(!J&&S.length===0||g)return;const je=S;_&&J?(Fe(`Asking about "${_.title}" (product id: ${_.id}). ${J}`,`📌 ${_.title}: ${J}`,je),b(null)):Fe(J,void 0,je)},Ci=()=>{g||Fe("I'd like to talk to a human, please.","Talk to a human")},Bn=async J=>{ne(!0);try{await fetch(`${Xr}/v1/agent/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:N,rating:J,comment:fe.trim()||void 0})})}catch{}try{localStorage.setItem(Yf,"true")}catch{}ue(!0),ne(!1),M(!1),n(!1)},br=()=>{M(!1),n(!1)},Wr=()=>{i.some(je=>je.role==="assistant"&&(je.content||"").trim())&&!Z&&!re?M(!0):n(!1)},Na=()=>{if(confirm("Start a new chat? This also clears your Pre-Cart.")){V(),X(!1),a([]),D(),T([]),A(null),ue(!1),M(!1);try{localStorage.removeItem(Zh),localStorage.removeItem(Ff),localStorage.removeItem(Yf)}catch{}}},La=["Find me a voltmeter for solar setup","मेरे घर के लिए वोल्टेज प्रोटेक्टर चाहिए","Do you have COD across India?","80A WiFi MCB will work for solar batteries?"];return w.jsxs(w.Fragment,{children:[!e&&w.jsxs("button",{onClick:()=>n(!0),className:"fixed bottom-6 right-6 z-40 flex items-center gap-2 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white rounded-full shadow-xl px-5 py-3 transition-all duration-200 hover:scale-105","aria-label":"Open chat",children:[w.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),w.jsx("span",{className:"text-sm font-medium",children:"Ask amiciKart"})]}),e&&w.jsxs("div",{className:"fixed bottom-6 right-6 z-40 w-[420px] max-w-[calc(100vw-2rem)] h-[640px] max-h-[calc(100vh-3rem)] bg-white rounded-2xl shadow-2xl border border-gray-200 flex flex-col overflow-hidden",children:[re&&w.jsxs("div",{className:"absolute inset-0 z-50 bg-white/95 backdrop-blur-sm flex flex-col items-center justify-center px-6 text-center rounded-2xl",children:[w.jsx("div",{className:"text-base font-semibold text-gray-800 mb-1",children:"How was this chat?"}),w.jsx("div",{className:"text-xs text-gray-500 mb-5",children:"Your feedback helps amiciKart get better."}),w.jsxs("div",{className:"flex items-center gap-5 mb-5",children:[w.jsx("button",{onClick:()=>Bn("bad"),disabled:Q,title:"Bad",className:"text-4xl hover:scale-125 transition disabled:opacity-40",children:"☹️"}),w.jsx("button",{onClick:()=>Bn("neutral"),disabled:Q,title:"Okay",className:"text-4xl hover:scale-125 transition disabled:opacity-40",children:"😐"}),w.jsx("button",{onClick:()=>Bn("good"),disabled:Q,title:"Good",className:"text-4xl hover:scale-125 transition disabled:opacity-40",children:"😊"})]}),w.jsx("textarea",{value:fe,onChange:J=>q(J.target.value),rows:2,maxLength:500,placeholder:"Anything we could do better? (optional)",className:"w-full max-w-[300px] text-xs border border-gray-200 rounded-lg px-2.5 py-2 focus:outline-none focus:border-blue-400 resize-none mb-3"}),w.jsx("button",{onClick:br,disabled:Q,className:"text-[11px] text-gray-400 hover:text-gray-600",children:"Skip"})]}),w.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gradient-to-r from-blue-600 to-blue-700 text-white",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"w-8 h-8 rounded-full bg-white/20 flex items-center justify-center",children:w.jsx("svg",{className:"w-4 h-4",fill:"
86currentColor",viewBox:"0 0 20 20",children:w.jsx("path",{d:"M2 5a2 2 0 012-2h7a2 2 0 012 2v4a2 2 0 01-2 2H9l-3 3v-3H4a2 2 0 01-2-2V5z"})})}),w.jsxs("div",{children:[w.jsx("div",{className:"font-semibold text-sm",children:"amiciKart Assistant"}),w.jsx("div",{className:"text-[10px] opacity-90",children:"AI · हिंदी • English • भारत 🇮🇳"})]})]}),w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("button",{onClick:Na,className:"text-white/70 hover:text-white text-xs px-2 py-1 rounded hover:bg-white/10",title:"New chat",children:"New"}),w.jsx("button",{onClick:Wr,className:"text-white/70 hover:text-white text-xl px-2 leading-none","aria-label":"Close",children:"×"})]})]}),c.length>0&&w.jsxs("div",{className:"border-b border-gray-200 bg-white shrink-0",children:[w.jsxs("div",{className:"px-3 pt-2 pb-1 flex items-center justify-between",children:[w.jsxs("span",{className:"text-[10px] font-semibold text-gray-600 uppercase tracking-wide",children:["🛒 Pre-Cart (",c.length,")"]}),w.jsx("button",{onClick:D,className:"text-[10px] text-gray-400 hover:text-red-600",title:"Clear your Pre-Cart",children:"Reset"})]}),w.jsx("div",{ref:oe,className:"overflow-x-auto pb-2 px-3 scroll-smooth",children:w.jsx("div",{className:"flex gap-2 w-max",children:c.map(J=>w.jsx(tj,{card:J,onAddToCart:Ye,onView:$t,onAsk:Jr,onPrefetch:Rn},J.id))})})]}),w.jsxs("div",{ref:we,onScroll:J=>{try{localStorage.setItem(Cv,String(J.currentTarget.scrollTop))}catch{}},className:"flex-1 overflow-y-auto px-3 py-3 space-y-3 bg-gray-50",children:[i.length===0&&w.jsxs("div",{className:"text-center pt-6 px-3",children:[w.jsx("div",{className:"text-4xl mb-3",children:"👋"}),w.jsx("div",{className:"text-sm font-medium text-gray-700",children:"Hi! Ask me anything."}),w.jsx("div",{className:"text-xs text-gray-500 mt-1.5",children:"Products, shipping, returns, or to find what you need. Reply in हिंदी, English, தமிழ், বাংলা, etc."}),w.jsx("div",{className:"mt-4 space-y-1.5",children:La.map(J=>w.jsx("button",{onClick:()=>Fe(J),className:"block w-full text-left text-xs px-3 py-1.5 bg-white border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition",children:J},J))})]}),i.map((J,je)=>w.jsxs("div",{children:[w.jsx("div",{className:`flex ${J.role==="user"?"justify-end":"justify-start"}`,children:w.jsx("div",{className:`max-w-[88%] rounded-2xl px-4 py-2.5 text-sm ${J.role==="user"?"bg-blue-600 text-white rounded-br-sm":"bg-white text-gray-800 border border-gray-200 rounded-bl-sm shadow-sm prose prose-sm prose-p:my-1 prose-strong:text-gray-900 max-w-none"}`,children:J.role==="user"?w.jsxs("div",{children:[J.imagePreviews&&J.imagePreviews.length>0&&w.jsx("div",{className:"flex flex-wrap gap-1.5 mb-1.5",children:J.imagePreviews.map((U,Y)=>w.jsx("img",{src:U,alt:"attachment",loading:"lazy",className:"w-16 h-16 rounded-lg object-cover border border-white/30 bg-white/10"},Y))}),J.content&&w.jsx("span",{className:"whitespace-pre-wrap",children:J.content})]}):w.jsx(CR,{remarkPlugins:[H2],components:{p:({children:U})=>w.jsx("p",{className:"m-0 leading-snug",children:U}),blockquote:({children:U})=>w.jsx("blockquote",{className:"border-l-[3px] border-gray-300 bg-gray-50 text-gray-500 rounded-r-md px-2 py-1 my-1 text-[12px]",children:U}),ul:({children:U})=>w.jsx("ul",{className:"my-1 ml-4 list-disc",children:U}),ol:({children:U})=>w.jsx("ol",{className:"my-1 ml-4 list-decimal",children:U}),li:({children:U})=>w.jsx("li",{className:"my-0.5",children:U}),a:({href:U,children:Y})=>w.jsx("a",{href:U,target:"_blank",rel:"noopener noreferrer",className:"text-blue-700 underline",children:Y}),img:({src:U,alt:Y})=>w.jsxs("a",{href:typeof U=="string"?U:void 0,target:"_blank",rel:"noopener noreferrer",className:"block mt-1.5",children:[w.jsx("img",{src:typeof U=="string"?U:void 0,alt:Y||"product asset",loading:"lazy",className:"max-w-full max-h-52 rounded-lg border border-gray-200 object-contain bg-white"}),Y&&w.jsx("span",{className:"block text-[10px] text-gray-400 mt-0.5",children:Y})]}),h1:({children:U})=>w.jsx("div",{className:"font-semibold text-sm mt-1",children:U}),h2:({children:U})=>w.jsx("div",{className:"font-semibold text-sm mt-1",children:U}),h3:({children:U})=>w.jsx("div",{className:"font-semibold text-sm mt-1",children:U}),code:({children:U})=>w.jsx("code",{className:"text-[11px] bg-gray-100 px-1 rounded",children:U})},children:J.content})})}),J.role==="assistant"&&J.checkoutUrl&&w.jsx("div",{className:"mt-2 flex justify-start",children:w.jsx("a",{href:J.checkoutUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs font-medium bg-green-600 hover:bg-green-700 text-white px-3 py-2 rounded-lg shadow-sm transition",children:"🛒 Complete Checkout →"})}),J.escalated&&w.jsx("div",{className:"mt-1 flex justify-start",children:w.jsx("div",{className:"text-[10px] text-amber-700 bg-amber-50 border border-amber-200 rounded px-2 py-1",children:"Forwarded to support team"})})]},je)),g&&w.jsx("div",{className:"flex justify-start",children:w.jsx("div",{className:"bg-white border border-gray-200 rounded-2xl rounded-bl-sm px-4 py-2.5 shadow-sm",children:w.jsxs("div",{className:"flex gap-1",children:[w.jsx("span",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),w.jsx("span",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),w.jsx("span",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})})]}),w.jsxs("div",{className:"border-t border-gray-200 bg-white",children:[_&&w.jsxs("div",{className:"flex items-center gap-2 px-3 pt-2 -mb-1",children:[w.jsxs("span",{className:"text-[10px] text-indigo-700 bg-indigo-50 border border-indigo-200 rounded-full px-2 py-0.5 truncate max-w-[280px]",children:["📌 Asking about: ",_.title]}),w.jsx("button",{onClick:()=>b(null),className:"text-[11px] text-gray-400 hover:text-gray-700",children:"✕"})]}),S.length>0&&w.jsx("div",{className:"flex flex-wrap gap-2 px-3 pt-2",children:S.map((J,je)=>w.jsxs("div",{className:"relative",children:[w.jsx("img",{src:J.preview,alt:J.name,className:"w-14 h-14 roun
86ded-lg object-cover border border-gray-200"}),w.jsx("button",{onClick:()=>vr(je),className:"absolute -top-1.5 -right-1.5 w-4 h-4 flex items-center justify-center rounded-full bg-gray-700 text-white text-[10px] leading-none shadow hover:bg-gray-900","aria-label":"Remove image",title:"Remove",children:"×"})]},je))}),C&&w.jsx("div",{className:"px-3 pt-2 text-[11px] text-red-600",children:C}),w.jsx("input",{ref:P,type:"file",accept:"image/jpeg,image/png,image/webp,image/gif",multiple:!0,className:"hidden",onChange:J=>{On(J.target.files),J.target.value=""}}),w.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5",children:[w.jsx("button",{onClick:yr,disabled:g||S.length>=_i,className:"text-gray-500 hover:text-blue-600 disabled:opacity-40 p-2 rounded-lg hover:bg-gray-100 transition shrink-0","aria-label":"Attach a photo",title:S.length>=_i?`Up to ${_i} images`:"Attach a photo",children:w.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"})})}),w.jsx("input",{ref:te,type:"text",value:d,onChange:J=>p(J.target.value),onKeyDown:J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),Zr())},disabled:g,placeholder:_?`Ask about ${_.title.slice(0,30)}…`:"Type a message…",className:"flex-1 px-3 py-2 text-sm border border-gray-200 rounded-lg focus:outline-none focus:border-blue-400 disabled:opacity-50"}),w.jsx("button",{onClick:Zr,disabled:g||!d.trim()&&S.length===0,className:"bg-blue-600 hover:bg-blue-700 disabled:opacity-40 text-white p-2 rounded-lg transition","aria-label":"Send",children:w.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})})})]}),w.jsxs("div",{className:"px-3 pb-2 flex items-center justify-between gap-2",children:[w.jsxs("button",{onClick:Ci,disabled:g,className:"inline-flex items-center gap-1.5 text-[11px] font-semibold text-emerald-700 bg-emerald-50 border border-emerald-200 rounded-full px-2.5 py-1 hover:bg-emerald-100 disabled:opacity-50 transition",children:[w.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 10c0 3.866-3.582 7-8 7a8.84 8.84 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7z"})}),"Talk to a human"]}),w.jsx("span",{className:"text-[10px] text-gray-400",children:"Powered by Claude + Shopify MCP"})]})]})]})]})}function rj({open:e}){return w.jsx("svg",{className:`w-3.5 h-3.5 transition-transform ${e?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})}function ij(){return w.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:w.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}const Ov=[{label:"Overview",items:[{to:"/dashboard",label:"Trust Dashboard",icon:"🎯"},{to:"/warranty",label:"Warranty",icon:"📜"},{to:"/return-pickups",label:"Return Pickups",icon:"↩️"}]},{label:"Marketing",items:[{to:"/auto-ad",label:"Create Ad",icon:"🚀"},{to:"/campaigns",label:"Campaigns",icon:"📢"},{to:"/campaigns/pending",label:"Pending Approvals",icon:"⏳"},{to:"/creative",label:"Creative Studio",icon:"🎨"},{to:"/budget",label:"Budget",icon:"💰"},{to:"/audiences",label:"Audiences",icon:"📡"},{to:"/lifecycle",label:"Lifecycle",icon:"👥"},{to:"/review-tracker",label:"Review Tracker",icon:"⭐"},{to:"/customer-issues",label:"Customer Issues",icon:"💡"},{to:"/discovery",label:"Discovery",icon:"🔮"},{to:"/analytics",label:"Analytics",icon:"📊"}]},{label:"WhatsApp",items:[{to:"/whatsapp/dashboard",label:"Dashboard",icon:"💬"},{to:"/whatsapp/order-updates",label:"Order Updates",icon:"📦"},{to:"/whatsapp/marketing",label:"Marketing",icon:"📣"},{to:"/whatsapp/otp",label:"OTP",icon:"🔐"},{to:"/whatsapp/warranty",label:"Warranty",icon:"🛡️"},{to:"/whatsapp/templates",label:"Misc Templates",icon:"🧩"},{to:"/wa-journeys",label:"Journeys",icon:"🛒"}]},{label:"Intelligence",items:[{to:"/products",label:"Products",icon:"📦"},{to:"/product-hub",label:"Product Hub",icon:"📖"},{to:"/amazon-matching",label:"Amazon Matching",icon:"🔗"},{to:"/trends",label:"Trends",icon:"🔥"},{to:"/competitors",label:"Competitors",icon:"🔍"},{to:"/strategy",label:"Strategy",icon:"♟️"}]},{label:"AI Agent",items:[{to:"/agent",label:"Dashboard",icon:"💬"},{to:"/agent/conversations",label:"Conversations",icon:"🗣️"},{to:"/agent/knowledge",label:"Knowledge Base",icon:"📚"},{to:"/agent/product-guides",label:"Product Guides",icon:"📘"},{to:"/agent/auditor",label:"Auditor",icon:"🔍"},{to:"/agent/tools",label:"Tools & Actions",icon:"🛠️"},{to:"/agent/prompt",label:"Prompt & Voice",icon:"🎭"},{to:"/agent/performance",label:"Performance",icon:"⚡"},{to:"/agent/desk-agent",label:"Desk Agent",icon:"💬"},{to:"/agent/settings",label:"Settings",icon:"⚙️"}]},{label:"System",items:[{to:"/agents",label:"Agents",icon:"🤖"},{to:"/llm",label:"LLM Settings",icon:"⚙️"},{to:"/arena",label:"Model Arena",icon:"🏆"},{to:"/governance",label:"Governance",icon:"🛡️"},{to:"/conversations",label:"Conversations",icon:"💬"},{to:"/settings",label:"Settings",icon:"🔧"}]}],aj="flex items-center gap-2 px-4 py-2 text-sm rounded-md transition-colors",lj="bg-gray-700 text-white",sj="text-gray-300 hover:bg-gray-800 hover:text-white",jv={cloud_run_api:{label:"Cloud Run API",icon:"☁️"},supabase:{label:"Supabase Database",icon:"🗄️"},redis:{label:"Redis",icon:"⚡"},celery_worker:{label:"Celery Worker",icon:"⚙️"},celery_beat:{label:"Celery Beat",icon:"⏰"},llm_apis:{label:"LLM APIs",icon:"🧠"},claude_api:{label:"Claude (Anthropic)",icon:"🟣"},gemini_api:{label:"Gemini (Google)",icon:"🔵"},glm_api:{label:"GLM (Z.ai)",icon:"🟡"},google_ads_api:{label:"Google Ads",icon:"📊"},shopify_api:{label:"Shopify",icon:"🛒"},supabase_storage:{label:"Supabase Storage",icon:"📁"}},Ro={healthy:{dot:"bg-green-500",text:"text-green-700"},degraded:{dot:"bg-yellow-500",text:"text-yellow-700"},stale:{dot:"bg-yellow-500",text:"text-yellow-700"},unknown:{dot:"bg-gray-400",text:"text-gray-500"},critical:{dot:"bg-red-500",text:"text-red-700"},down:{dot:"bg-red-500",text:"text-red-700"},error:{dot:"bg-red-500",text:"text-red-700"},unreachable:{dot:"bg-red-500",text:"text-red-700"}};function oj(){const[e,n]=k.useState(!0),[i,a]=k.useState(()=>Object.fromEntries(Ov.map(Q=>[Q.label,!0]))),[s,u]=k.useState(null),[c,f]=k.useState(!1),[d,p]=k.useState(!1),{user:g,signOut:y,role:_,isSuperAdmin:b,allowedModules:S}=zh(),C=Cn().pathname.startsWith("/product-hub"),A={review_tracker:[{label:"Reviews",items:[{to:"/review-tracker",label:"Review Tracker",icon:"⭐"}]}],warranty:[{label:"Warranty",items:[{to:"/warranty",label:"Warranty",icon:"📜"}]}],returns:[{label:"Returns",items:[{to:"/return-pickups",label:"Return Pickups",icon:"↩️"}]}],manuals:[{label:"Manuals",items:[{to:"/products",label:"Products",icon:"📦"},{to:"/agent/product-guides",label:"Product Guides",icon:"📘"}]}]},N=(_||"").split(",").map(Q=>
86Q.trim()).filter(Boolean),X=N.length>0&&!N.includes("admin")&&N.every(Q=>A[Q])?N.flatMap(Q=>A[Q]):Ov,re=Q=>a(ne=>({...ne,[Q]:!ne[Q]})),M=k.useCallback(async()=>{try{const Q=await Dh.get("/v1/health/systems");u(Q)}catch{u({overall_status:"critical",last_checked:new Date().toISOString(),check_duration_ms:0,checks:{cloud_run_api:{status:"down",detail:"API unreachable"}},alerts:[{severity:"critical",component:"cloud_run_api",message:"API unreachable",recovery:"Check Cloud Run"}],components_healthy:0,components_warning:0,components_down:1})}},[]);k.useEffect(()=>{M();const Q=setInterval(M,6e4);return()=>clearInterval(Q)},[M]);const Z=s?.overall_status||"unknown",ue=Ro[Z]||Ro.unknown,fe={healthy:"bg-green-100 text-green-800 border-green-200",degraded:"bg-yellow-100 text-yellow-800 border-yellow-200",critical:"bg-red-100 text-red-800 border-red-200 animate-pulse",unknown:"bg-gray-100 text-gray-600 border-gray-200"},q={healthy:"All Systems Healthy",degraded:`${s?.components_warning||0} Warning${(s?.components_warning||0)>1?"s":""}`,critical:`${s?.components_down||0} System${(s?.components_down||0)>1?"s":""} Down`,unknown:"Checking..."};return w.jsxs("div",{className:"flex h-screen bg-gray-100",children:[w.jsxs("aside",{className:`${e?"w-64":"w-0 overflow-hidden"} bg-gray-900 text-white flex flex-col transition-all duration-200`,children:[w.jsx("div",{className:"p-4 border-b border-gray-700 flex items-center justify-between",children:w.jsxs("div",{children:[w.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"AdPilot"}),w.jsx("p",{className:"text-[11px] text-gray-400 mt-0.5",children:"Autonomous Marketing Engine"})]})}),w.jsx("nav",{className:"flex-1 overflow-y-auto py-3 space-y-1",children:X.map(Q=>w.jsxs("div",{children:[w.jsxs("button",{onClick:()=>re(Q.label),className:"w-full flex items-center justify-between px-4 py-1.5 text-[11px] font-semibold text-gray-400 uppercase tracking-wider hover:text-gray-200",children:[Q.label,w.jsx(rj,{open:i[Q.label]??!0})]}),(i[Q.label]??!0)&&w.jsx("div",{className:"mt-0.5 space-y-0.5 px-2",children:Q.items.map(ne=>w.jsxs(tb,{to:ne.to,className:({isActive:we})=>`${aj} ${we?lj:sj}`,children:[ne.icon&&w.jsx("span",{className:"text-sm w-5 text-center flex-shrink-0",children:ne.icon}),ne.label]},ne.to))})]},Q.label))}),w.jsx("div",{className:"p-4 border-t border-gray-700 text-[11px] text-gray-500",children:"Phase A — Cold Start Mode"})]}),w.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[w.jsxs("header",{className:"bg-white shadow-sm border-b border-gray-200 px-6 py-3 flex justify-between items-center",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("button",{onClick:()=>n(Q=>!Q),className:"text-gray-500 hover:text-gray-800 focus:outline-none","aria-label":"Toggle sidebar",children:w.jsx(ij,{})}),w.jsx("span",{className:"text-sm text-gray-500",children:"amicikart.com"}),w.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"Cold Start"})]}),w.jsxs("div",{className:"flex items-center gap-4 relative",children:[(b||(S?.length??0)>0)&&w.jsx(Ch,{to:"/console",className:"text-xs font-medium text-indigo-600 hover:text-indigo-800 border border-indigo-200 rounded-md px-2.5 py-1",children:"New Console ↗"}),g&&w.jsxs("div",{className:"flex items-center gap-3 pr-3 border-r border-gray-200",children:[w.jsx("span",{className:"text-xs text-gray-500 hidden sm:inline",children:g.email}),w.jsx("button",{type:"button",onClick:async()=>{await y(),window.location.assign("/login")},className:"text-xs text-gray-600 hover:text-gray-900 font-medium",children:"Sign out"})]}),w.jsxs("button",{onClick:()=>{f(Q=>!Q),c||(p(!0),M().finally(()=>p(!1)))},className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium border transition-colors cursor-pointer hover:shadow-sm ${fe[Z]||fe.unknown}`,children:[w.jsx("span",{className:`w-2 h-2 rounded-full ${ue.dot}`}),q[Z]||"Checking..."]}),c&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>f(!1)}),w.jsxs("div",{className:"absolute right-0 top-full mt-2 w-96 bg-white rounded-xl shadow-xl border border-gray-200 z-50 overflow-hidden",children:[w.jsxs("div",{className:"px-4 py-3 bg-gray-50 border-b border-gray-100 flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${ue.dot}`}),w.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"System Health"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[d&&w.jsx("span",{className:"inline-block w-3 h-3 border-2 border-gray-300 border-t-blue-500 rounded-full animate-spin"}),w.jsx("button",{onClick:Q=>{Q.stopPropagation(),p(!0),M().finally(()=>p(!1))},className:"text-[10px] text-blue-600 hover:text-blue-800 font-medium",children:"Refresh"})]})]}),w.jsx("div",{className:"max-h-80 overflow-y-auto divide-y divide-gray-50",children:s&&Object.entries(s.checks).map(([Q,ne])=>{const we=jv[Q]||{label:Q,icon:"?"}
86,oe=Ro[ne.status]||Ro.unknown;return w.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between hover:bg-gray-50",children:[w.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[w.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${oe.dot}`}),w.jsx("span",{className:"text-xs text-gray-400 w-5",children:we.icon}),w.jsx("span",{className:"text-xs font-medium text-gray-700",children:we.label})]}),w.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[ne.latency_ms!==void 0&&ne.latency_ms>0&&w.jsxs("span",{className:"text-[10px] text-gray-400",children:[ne.latency_ms,"ms"]}),w.jsx("span",{className:`text-[10px] font-medium ${oe.text} capitalize`,children:ne.status})]})]},Q)})}),s&&s.alerts.length>0&&w.jsxs("div",{className:"border-t border-gray-100 px-4 py-3 bg-red-50/50",children:[w.jsx("div",{className:"text-[10px] font-semibold text-red-700 uppercase mb-1.5",children:"Active Alerts"}),s.alerts.slice(0,3).map((Q,ne)=>w.jsxs("div",{className:"mb-2 last:mb-0",children:[w.jsxs("div",{className:"text-xs text-red-800",children:[w.jsxs("span",{className:"font-medium",children:[jv[Q.component]?.label||Q.component,":"]})," ",Q.message]}),w.jsxs("div",{className:"text-[10px] text-red-600 mt-0.5 flex items-center gap-1",children:[w.jsx("span",{className:"font-medium",children:"Recovery:"}),w.jsx("span",{className:"font-mono bg-red-100 px-1 rounded text-[9px] truncate max-w-[260px]",children:Q.recovery})]})]},ne))]}),w.jsxs("div",{className:"px-4 py-2 border-t border-gray-100 bg-gray-50 flex justify-between items-center",children:[w.jsxs("span",{className:"text-[10px] text-gray-400",children:["Checked ",s?.check_duration_ms?`in ${s.check_duration_ms}ms`:""]}),w.jsxs("span",{className:"text-[10px] text-gray-400",children:[s?.components_healthy||0," healthy / ",Object.keys(s?.checks||{}).length," total"]})]})]})]})]})]}),w.jsx("main",{className:"flex-1 overflow-y-auto",children:w.jsx(kh,{})})]}),!C&&w.jsx(nj,{})]})}const uj=k.lazy(()=>ae(()=>import("./index-oFD-YJJQ.js"),__vite__mapDeps([0,1]))),cj=k.lazy(()=>ae(()=>import("./index-DsGRhAoj.js"),__vite__mapDeps([2,1]))),fj=k.lazy(()=>ae(()=>import("./index-B-bfC41A.js"),__vite__mapDeps([3,4]))),hj=k.lazy(()=>ae(()=>import("./index-aBBiPGhR.js"),[])),dj=k.lazy(()=>ae(()=>import("./index-BK1HKSa-.js"),[])),pj=k.lazy(()=>ae(()=>import("./index-BdACUG5b.js"),[])),mj=k.lazy(()=>ae(()=>import("./ProductDetail-CPfMQRuU.js"),__vite__mapDeps([5,6]))),Dv=k.lazy(()=>ae(()=>import("./index-DEi9oOxO.js").then(e=>e.i),__vite__mapDeps([7,6]))),gj=k.lazy(()=>ae(()=>import("./index-DmyzqzPE.js"),[])),yj=k.lazy(()=>ae(()=>import("./index-BPC3Cl_m.js"),[])),vj=k.lazy(()=>ae(()=>import("./index-IUPCRQMV.js"),__vite__mapDeps([8,9]))),bj=k.lazy(()=>ae(()=>import("./index-D2MP03J3.js"),__vite__mapDeps([10,1,9]))),_j=k.lazy(()=>ae(()=>import("./index-dGpuaypQ.js"),[])),wj=k.lazy(()=>ae(()=>import("./index-C6zLsm-5.js"),[])),xj=k.lazy(()=>ae(()=>import("./index-CBGWXnl1.js"),__vite__mapDeps([11,1]))),Sj=k.lazy(()=>ae(()=>import("./index-XQDBHDCh.js"),[])),Ej=k.lazy(()=>ae(()=>import("./index-D4PTKzH5.js"),[])),kj=k.lazy(()=>ae(()=>import("./index-BrbAbSyt.js"),[])),Tj=k.lazy(()=>ae(()=>import("./index-br1W7bIy.js"),[])),Aj=k.lazy(()=>ae(()=>import("./index-5zcCSdh1.js"),[])),Cj=k.lazy(()=>ae(()=>import("./index-BgZv_4qe.js"),[])),Rj=k.lazy(()=>ae(()=>import("./index-HKFjROsJ.js"),[])),Oj=k.lazy(()=>ae(()=>import("./index-bdhVoAqf.js"),[])),jj=k.lazy(()=>ae(()=>import("./index-BHVo35p_.js"),[])),Dj=k.lazy(()=>ae(()=>import("./index-CYgjHihB.js"),[])),zj=k.lazy(()=>ae(()=>import("./Warranty-CxUobLMh.js"),[])),Nj=k.lazy(()=>ae(()=>import("./index-B55IYUTQ.js"),[])),Lj=k.lazy(()=>ae(()=>import("./index-oUjjfrh_.js"),__vite__mapDeps([12,9]))),Mj=k.lazy(()=>ae(()=>import("./index-6kiOBhmo.js"),[])),Uj=k.lazy(()=>ae(()=>import("./index-CX_rsLuS.js"),__vite__mapDeps([13,9]))),Bj=k.lazy(()=>ae(()=>import("./index-BMMq2fdN.js"),[])),Ij=k.lazy(()=>ae(()=>import("./index-WvJFDPh4.js"),[])),Pj=k.lazy(()=>ae(()=>import("./index-27ajqVw0.js"),__vite__mapDeps([14,4]))),Hj=k.lazy(()=>ae(()=>import("./Dashboard-KjZ4FGGf.js"),[])),zv=k.lazy(()=>ae(()=>import("./Conversations-bvyW--HY.js"),[])),qj=k.lazy(()=>ae(()=>import("./Knowledge-D0Ge-DeN.js"),[])),$j=k.lazy(()=>ae(()=>import("./ProductGuides-BW_3YEzR.js"),__vite__mapDeps([15,6]))),Vj=k.lazy(()=>ae(()=>import("./Auditor-Bi6mGwK4.js"),[])),Gj=k.lazy(()=>ae(()=>import("./Tools-C7NLX4G2.js"),[])),Fj=k.lazy(()=>ae(()=>import("./Prompt-BOXMKQfe.js"),[])),Yj=k.lazy(()=>ae(()=>import("./Performance-DRp8spVS.js"),[])),Kj=k.lazy(()=>ae(()=>import("./Settings-UONxh3ZO.js"),[])),Xj=k.lazy(()=>ae(()=>import("./DeskAgent-CtmIAgEM.js"),[])),Qj=k.lazy(()=>ae(()=>import("./EmbedAgent-Cz0-dMqL.js"),[])),Jj=k.lazy(()=>ae(()=>import("./ConsoleLayout-CN_2xnQk.js"),__vite__mapDeps([16,17,18,19]))),Zj=k.lazy(()=>ae(()=>import("./ConsoleHome-dwLd6oTH.js"),[])),Wj=k.lazy(()=>ae(()=>import("./AccessControl-DrlbDijH.js"),[])),eD=k.lazy(()=>ae(()=>import("./Warranty-BUBMzvSf.js"),__vite__mapDeps([20,21,17,22]))),tD=k.lazy(()=>ae(()=>import("./Reviews-Wd1zOAvA.js"),__vite__mapDeps([23,21,17]))),nD=k.lazy(()=>ae(()=>import("./Returns-DHE3Y-ML.js"),[])),rD=k.lazy(()=>ae(()=>import("./WaTemplates-Cqy3Vbzs.js"),__vite__mapDeps([24,25,26]))),iD=k.lazy(()=>ae(()=>import("./QuickActions-8RhiF8ek.js"),__vite__mapDeps([27,28]))),aD=k.lazy(()=>ae(()=>
86import("./AdminWarranty-Din_guXf.js"),__vite__mapDeps([29,30]))),lD=k.lazy(()=>ae(()=>import("./AdminReviews-B5X9Tqh9.js"),__vite__mapDeps([31,30]))),sD=k.lazy(()=>ae(()=>import("./AdminReturns-tgCU_pPj.js"),__vite__mapDeps([32,30]))),oD=k.lazy(()=>ae(()=>import("./AdminCsMis-DfEen_W9.js"),__vite__mapDeps([33,30]))),uD=k.lazy(()=>ae(()=>import("./Integrations-DYBaCpBT.js"),__vite__mapDeps([34,30]))),cD=k.lazy(()=>ae(()=>import("./SystemHealth-BF9cmXJD.js"),__vite__mapDeps([35,18]))),fD=k.lazy(()=>ae(()=>import("./Balances-C_OeQ6Ct.js"),__vite__mapDeps([36,18]))),hD=k.lazy(()=>ae(()=>import("./YouTubeReplies-KTryy7ob.js"),[])),dD=k.lazy(()=>ae(()=>import("./Sales-DVkTtKvt.js").then(e=>e.b),__vite__mapDeps([37,17,21]))),pD=k.lazy(()=>ae(()=>import("./SalesDashboard-DMS244rU.js"),__vite__mapDeps([38,30]))),mD=k.lazy(()=>ae(()=>import("./SalesOrders-dc3wUwyT.js"),__vite__mapDeps([39,30]))),gD=k.lazy(()=>ae(()=>import("./SalesCustomers-DFRupQFA.js"),__vite__mapDeps([40,37,17,21,30]))),yD=k.lazy(()=>ae(()=>import("./SalesProspects-CaipD5fE.js"),__vite__mapDeps([41,21,17,30]))),vD=k.lazy(()=>ae(()=>import("./SalesEmailTemplates-CJaQ37ao.js"),__vite__mapDeps([42,30]))),bD=k.lazy(()=>ae(()=>import("./SalesEstimates-BOeyO5zd.js"),__vite__mapDeps([43,30]))),Nv=k.lazy(()=>ae(()=>import("./Conversations-CRtxbCeg.js"),__vite__mapDeps([44,45,21,17,26]))),Lv=k.lazy(()=>ae(()=>import("./Tickets-DeL2-f5W.js"),__vite__mapDeps([46,47,45,48,21,17,22,26,49,50]))),_D=k.lazy(()=>ae(()=>import("./Email-oSSlTDcp.js"),__vite__mapDeps([51,48,45]))),wD=k.lazy(()=>ae(()=>import("./DeskHistory-BYAHfR1_.js"),[])),xD=k.lazy(()=>ae(()=>import("./ColdArchive-CjIlYB3N.js"),[])),SD=k.lazy(()=>ae(()=>import("./Mailboxes-DjsRxPRE.js"),[])),ED=k.lazy(()=>ae(()=>import("./Calls-Dt-W-5RS.js"),__vite__mapDeps([52,21,17,50]))),kD=k.lazy(()=>ae(()=>import("./Knowledge-B7YAzWTA.js"),__vite__mapDeps([53,54]))),TD=k.lazy(()=>ae(()=>import("./ProductGuides-BkJb1BNT.js"),__vite__mapDeps([55,6,54]))),AD=k.lazy(()=>ae(()=>import("./AutoQA-C7KSe6xi.js"),__vite__mapDeps([56,54]))),CD=k.lazy(()=>ae(()=>import("./LogBook-DaPwaLQS.js"),__vite__mapDeps([57,54]))),RD=k.lazy(()=>ae(()=>import("./ProductDetailKB-DxhLlxgV.js"),__vite__mapDeps([58,54]))),Mv=k.lazy(()=>ae(()=>import("./ProductsHub-DikMlgLG.js"),__vite__mapDeps([59,60,7,6,55,54]))),OD=k.lazy(()=>ae(()=>import("./FaqSuggestions-BT6EVGxk.js"),__vite__mapDeps([61,60]))),jD=k.lazy(()=>ae(()=>import("./FactsQueue-CeCchHnP.js"),__vite__mapDeps([62,60]))),DD=k.lazy(()=>ae(()=>import("./Listings-EKmLRB7d.js"),__vite__mapDeps([63,54,60]))),zD=k.lazy(()=>ae(()=>import("./ProductCatalogue-4NXS6-Ox.js"),__vite__mapDeps([64,60]))),Uv=k.lazy(()=>ae(()=>import("./Agent-Bg2Il8zk.js"),__vite__mapDeps([65,30]))),ND=k.lazy(()=>ae(()=>import("./MarketingOverview-DcdAXWIb.js"),__vite__mapDeps([66,30,67]))),Bv=k.lazy(()=>ae(()=>import("./MarketingPlatform-CWq_OOH4.js"),__vite__mapDeps([68,30,67]))),LD=k.lazy(()=>ae(()=>import("./MarketingWhatsApp-DyZu6BbL.js"),__vite__mapDeps([69,30,67]))),MD=k.lazy(()=>ae(()=>import("./MarketingCampaigns-BrcnA31G.js"),__vite__mapDeps([70,30,67,47,25])));function UD(){return w.jsx("div",{className:"flex items-center justify-center h-64 text-gray-400 text-sm",children:"Loading…"})}function BD(){return w.jsx(pk,{children:w.jsx(xS,{children:w.jsx(k.Suspense,{fallback:w.jsx(UD,{}),children:w.jsxs(Jx,{children:[w.jsx(W,{path:"/login",element:w.jsx(Oj,{})}),w.jsx(W,{path:"/auth/callback",element:w.jsx(jj,{})}),w.jsx(W,{path:"/embed/agent",element:w.jsx(Qj,{})}),w.jsxs(W,{element:w.jsx(mk,{}),children:[w.jsx(W,{path:"campaigns/iterate/:candidateId",element:w.jsx(Pj,{})}),w.jsxs(W,{element:w.jsx(oj,{}),children:[w.jsx(W,{index:!0,element:w.jsx(Vn,{to:"/dashboard",replace:!0})}),w.jsx(W,{path:"dashboard",element:w.jsx(uj,{})}),w.jsx(W,{path:"campaigns",element:w.jsx(cj,{})}),w.jsx(W,{path:"campaigns/pending",element:w.jsx(fj,{})}),w.jsx(W,{path:"campaigns/candidates/:productId",element:w.jsx(Ij,{})}),w.jsx(W,{path:"auto-ad",element:w.jsx(hj,{})}),w.jsx(W,{path:"creative",element:w.jsx(dj,{})}),w.jsx(W,{path:"products",element:w.jsx(pj,{})}),w.jsx(W,{path:"products/:productId",element:w.jsx(mj,{})}),w.jsx(W,{path:"product-hub",element:w.jsx(Dv,{})}),w.jsx(W,{path:"product-hub/:productId",element:w.jsx(Dv,{})}),w.jsx(W,{path:"trends",element:w.jsx(gj,{})}),w.jsx(W,{path:"competitors",element:w.jsx(yj,{})}),w.jsx(W,{path:"analytics",element:w.jsx(vj,{})}),w.jsx(W,{path:"budget",element:w.jsx(bj,{})}),w.jsx(W,{path:"audiences",element:w.jsx(_j,{})}),w.jsx(W,{path:"lifecycle",element:w.jsx(wj,{})}),w.jsx(W,{path:"discovery",element:w.jsx(xj,{})}),w.jsx(W,{path:"agents",element:w.jsx(Sj,{})}),w.jsx(W,{path:"llm",element:w.jsx(Ej,{})}),w.jsx(W,{path:"strategy",element:w.jsx(kj,{})}),w.jsx(W,{path:"governance",element:w.jsx(Tj,{})}),w.jsx(W,{path:"settings",element:w.jsx(Aj,{})}),w.jsx(W,{path:"arena",element:w.jsx(Cj,{})}),w.jsx(W,{path:"conversations",element:w.jsx(Rj,{})}),w.jsx(W,{path:"amazon-matching",element:w.jsx(Dj,{})}),w.jsx(W,{path:"warranty",element:w.jsx(zj,{})}),w.jsx(W,{path:"return-pickups",element:w.jsx(Nj,{})}),w.jsx(W,{path:"review-tracker",element:w.jsx(Lj,{})}),w.jsx(W,{path:"customer-issues",element:w.jsx(Mj,{})}),w.jsx(W,{path:"whatsapp-messages",element:w.jsx(Vn,{to:"/whatsapp/dashboard",replace:!0})}),w.jsx(W,{path:"whatsapp/:view",element:w.jsx(Uj,{})}),w.jsx(W,{path:"wa-journeys",element:w.jsx(Bj,{})}),w.jsx(W,{path:"agent",element:w.jsx(Hj,{})}),w.jsx(W,{path:"agent/conversations",element:w.jsx(zv,{})}),w.jsx(W,{path:"agent/conversations/:sessionId",element:w.jsx(zv,{})}),w.jsx(W,{path:"agent/knowledge",element:w.jsx(qj,{})}),w.jsx(W,{path:"agent/product-guides",element:w.jsx($j,{})}),w.jsx(W,{path:"agent/corrections",element:w.jsx(Vn,{to:"/agent/auditor",replace:!0})}),w.jsx(W,{path:"agent/auditor",element:w.jsx(Vj,{})}),w.jsx(W,{path:"agent/tools",element:w.jsx(Gj,{})}),w.jsx(W,{path:"agent/prompt",element:w.jsx(Fj,{})}),w.jsx(W,{path:"agent/performance",element:w.jsx(Yj,{})}),w.jsx(W,{path:"agent/desk-agent",element:w.jsx(Xj,{})}),w.jsx(W,{path:"agent/settings",element:w.jsx(Kj,{})})]})]}),w.jsx(W,{element:w.jsx(gk,{}),children:w.jsxs(W,{element:w.jsx(Jj,{}),children:[w.jsx(W,{path:"/console",element:w.jsx(Zj,{})}),w.jsx(W,{path:"/console/cs/conversations",element:w.jsx(Nv,{})}),w.jsx(W,{path:"/console/cs/conversations/:sessionId",element:w.jsx(Nv,{})}),w.jsx(W,{path:"/console/cs/tickets",element:w.jsx(Lv,{})}),w.jsx(W,{path:"/console/cs/email",element:w.jsx(_D,{})}),w.jsx(W,{path:"/console/cs/history",element:w.jsx(wD,{})}),w.jsx(W,{path:"/console/admin/archive",element:w.jsx(xD,{})}),w.jsx(W,{path:"/console/admin/mailboxes",element:w.jsx(SD,{})}),w.jsx(W,{path:"/console/cs/tickets/:ticketId",element:w.jsx(Lv,{})}),w.jsx(W,{path:"/console/cs/calls",element:w.jsx(ED,{})}),w.jsx(W,{path:"/console/cs/warranty",element:w.jsx(eD,{})}),w.jsx(W,{path:"/console/cs/reviews",element:w.jsx(tD,{})}),w.jsx(W,{path:"/console/cs/returns",element:w.jsx(nD,{})}),w.jsx(W,{path:"/console/sales/dashboard",element:w.jsx(pD,{})}),w.jsx(W,{path:"/console/sales/leads",element:w.jsx(dD,{})}),w.jsx(W,{path:"/console/sales/estimates",element:w.jsx(bD,{})}),w.jsx(W,{path:"/console/sales/orders",element:w.jsx(mD,{})}),w.jsx(W,{path:"/console/sales/customers",element:w.jsx(gD,{})}),w.jsx(W,{path:"/console/sales/prospects",element:w.jsx(yD,{})}),w.jsx(W,{path:"/console/sales/email-templates",element:w.jsx(vD,{})}),w.jsx(W,{path:"/console/marketing/overview",element:w.jsx(ND,{})}),w.jsx(W,{path:"/console/marketing/google",element:w.jsx(Bv,{platform:"google_ads"},"google_ads")}),w.jsx(W,{path:"/console/marketing/social",element:w.jsx(Bv,{platform:"meta"},"meta")}),w.jsx(W,{path:"/console/marketing/whatsapp",element:w.jsx(LD,{})}),w.jsx(W,{path:"/console/marketing/campaigns",element:w.jsx(MD,{})}),w.jsx(W,{path:"/console/knowledge/products",element:w.jsx(Mv,{})}),w.jsx(W,{path:"/console/knowledge/products/faqs",element:w.jsx(OD,{})}),w.jsx(W,{path:"/console/knowledge/products/facts",element:w.jsx(jD,{})}),w.jsx(W,{path:"/console/knowledge/products/listings",element:w.jsx(DD,{})}),w.jsx(W,{path:"/console/knowledge/products/catalogue",element:w.jsx(zD,{})}),w.jsx(W,{path:"/console/knowledge/products/sku/:ref",element:w.jsx(Mv,{})}),w.jsx(W,{path:"/console/knowledge/products/:productId",element:w.jsx(RD,{})}),w.jsx(W,{path:"/console/knowledge/auto-qa",element:w.jsx(AD,{})}),w.jsx(W,{path:"/console/knowledge/base",element:w.jsx(kD,{})}),w.jsx(W,{path:"/console/knowledge/guides",element:w.jsx(TD,{})}),w.jsx(W,{path:"/console/knowledge/log-book",element:w.jsx(CD,{})}),w.jsx(W,{path:"/console/admin/access",element:w.jsx(Wj,{})}),w.jsx(W,{path:"/console/admin/agent",element:w.jsx(Uv,{})}),w.jsx(W,{path:"/console/admin/agent/:tab",element:w.jsx(Uv,{})}),w.jsx(W,{path:"/console/admin/warranty",element:w.jsx(aD,{})}),w.jsx(W,{path:"/console/admin/reviews",element:w.jsx(lD,{})}),w.jsx(W,{path:"/console/admin/returns",element:w.jsx(sD,{})}),w.jsx(W,{path:"/console/admin/cs-mis",element:w.jsx(oD,{})}),w.jsx(W,{path:"/console/admin/templates",element:w.jsx(rD,{})}),w.jsx(W,{path:"/console/admin/quick-actions",element:w.jsx(iD,{})}),w.jsx(W,{path:"/console/admin/integrations",element:w.jsx(uD,{})}),w.jsx(W,{path:"/console/admin/health",element:w.jsx(cD,{})}),w.jsx(W,{path:"/console/admin/balances",element:w.jsx(fD,{})}),w.jsx(W,{path:"/console/admin/youtube",element:w.jsx(hD,{})})]})}),w.jsx(W,{path:"*",element:w.jsx(Vn,{to:"/dashboard",replace:!0})})]})})})})}Qw.createRoot(document.getElementById("root")).render(w.jsx(k.StrictMode,{children:w.jsx(BD,{})}));export{bb as A,Xr as B,fk as C,Ch as L,CR as M,tb as N,kh as O,ID as R,nj as S,ae as _,Dh as a,HD as b,PD as c,H2 as d,zh as e,GD as f,Yw as g,vh as h,xb as i,w as j,bh as k,Cn as l,VD as m,$D as 
86n,qD as o,k as r,dr as s,xh as u,dk as v};

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.