vendor: 6,224 bytes, lines 1-9
1var u0=e=>{throw TypeError(e)};var uf=(e,t,n)=>t.has(e)||u0("Cannot "+n);var I=(e,t,n)=>(uf(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?u0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),de=(e,t,n,r)=>(uf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(uf(e,t,"access private method"),n);var uu=(e,t,n,r)=>({set _(o){de(e,t,o,n)},get _(){return I(e,t,r)}});function MC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf={exports:{}},Yo={},df={exports:{}},De={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var c0;function FC(){if(c0)return De;c0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function v(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function k(L,q,R){this.props=L,this.context=q,this.refs=C,this.updater=R||w}k.prototype.isReactComponent={},k.prototype.setState=function(L,q){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,q,"setState")},k.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function b(){}b.prototype=k.prototype;function P(L,q,R){this.props=L,this.context=q,this.refs=C,this.updater=R||w}var T=P.prototype=new b;T.constructor=P,_(T,k.prototype),T.isPureReactComponent=!0;var N=Array.isArray,z=Object.prototype.hasOwnProperty,O={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function B(L,q,R){var xe,we={},ee=null,_e=null;if(q!=null)for(xe in q.ref!==void 0&&(_e=q.ref),q.key!==void 0&&(ee=""+q.key),q)z.call(q,xe)&&!Q.hasOwnProperty(xe)&&(we[xe]=q[xe]);var je=arguments.length-2;if(je===1)we.children=R;else if(1<je){for(var be=Array(je),Je=0;Je<je;Je++)be[Je]=arguments[Je+2];we.children=be}if(L&&L.defaultProps)for(xe in je=L.defaultProps,je)we[xe]===void 0&&(we[xe]=je[xe]);return{$$typeof:e,type:L,key:ee,ref:_e,props:we,_owner:O.current}}function J(L,q){return{$$typeof:e,type:L.type,key:q,ref:L.ref,props:L.props,_owner:L._owner}}function oe(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function W(L){var q={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(R){return q[R]})}var re=/\/+/g;function Ee(L,q){return typeof L=="object"&&L!==null&&L.key!=null?W(""+L.key):q.toString(36)}function ie(L,q,R,xe,we){var ee=typeof L;(ee==="undefined"||ee==="boolean")&&(L=null);var _e=!1;if(L===null)_e=!0;else switch(ee){case"string":case"number":_e=!0;break;case"object":switch(L.$$typeof){case e:case t:_e=!0}}if(_e)return _e=L,we=we(_e),L=xe===""?"."+Ee(_e,0):xe,N(we)?(R="",L!=null&&(R=L.replace(re,"$&/")+"/"),ie(we,q,R,"",function(Je){return Je})):we!=null&&(oe(we)&&(we=J(we,R+(!we.key||_e&&_e.key===we.key?"":(""+we.key).replace(re,"$&/")+"/")+L)),q.push(we)),1;if(_e=0,xe=xe===""?".":xe+":",N(L))for(var je=0;je<L.length;je++){ee=L[je];var be=xe+Ee(ee,je);_e+=ie(ee,q,R,be,we)}else if(be=v(L),typeof be=="function")for(L=be.call(L),je=0;!(ee=L.next()).done;)ee=ee.value,be=xe+Ee(ee,je++),_e+=ie(ee,q,R,be,we);else if(ee==="object")throw q=String(L),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return _e}function Y(L,q,R){if(L==null)return L;var xe=[],we=0;return ie(L,xe,"","",function(ee){return q.call(R,ee,we++)}),xe}function ge(L){if(L._status===-1){var q=L._result;q=q(),q.then(function(R){(L._status===0||L._status===-1)&&(L._status=1,L._result=R)},function(R){(L._status===0||L._status===-1)&&(L._status=2,L._result=R)}),L._status===-1&&(L._status=0,L._result=q)}if(L._status===1)return L._result.default;throw L._result}var le={current:null},X={transition:null},ue={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:X,ReactCurrentOwner:O};function E(){throw Error("act(...) is not supported in production builds of React.")}return De.Children={map:Y,forEach:function(L,q,R){Y(L,function(){q.apply(this,arguments)},R)},count:function(L){var q=0;return Y(L,function(){q++}),q},toArray:function(L){return Y(L,function(q){return q})||[]},only:function(L){if(!oe(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},De.Component=k,De.Fragment=n,De.Profiler=o,De.PureComponent=P,De.StrictMode=r,De.Suspense=f,De.__SECRET_INT
vendor: 4,249 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,De.act=E,De.cloneElement=function(L,q,R){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var xe=_({},L.props),we=L.key,ee=L.ref,_e=L._owner;if(q!=null){if(q.ref!==void 0&&(ee=q.ref,_e=O.current),q.key!==void 0&&(we=""+q.key),L.type&&L.type.defaultProps)var je=L.type.defaultProps;for(be in q)z.call(q,be)&&!Q.hasOwnProperty(be)&&(xe[be]=q[be]===void 0&&je!==void 0?je[be]:q[be])}var be=arguments.length-2;if(be===1)xe.children=R;else if(1<be){je=Array(be);for(var Je=0;Je<be;Je++)je[Je]=arguments[Je+2];xe.children=je}return{$$typeof:e,type:L.type,key:we,ref:ee,props:xe,_owner:_e}},De.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:a,_context:L},L.Consumer=L},De.createElement=B,De.createFactory=function(L){var q=B.bind(null,L);return q.type=L,q},De.createRef=function(){return{current:null}},De.forwardRef=function(L){return{$$typeof:c,render:L}},De.isValidElement=oe,De.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:ge}},De.memo=function(L,q){return{$$typeof:h,type:L,compare:q===void 0?null:q}},De.startTransition=function(L){var q=X.transition;X.transition={};try{L()}finally{X.transition=q}},De.unstable_act=E,De.useCallback=function(L,q){return le.current.useCallback(L,q)},De.useContext=function(L){return le.current.useContext(L)},De.useDebugValue=function(){},De.useDeferredValue=function(L){return le.current.useDeferredValue(L)},De.useEffect=function(L,q){return le.current.useEffect(L,q)},De.useId=function(){return le.current.useId()},De.useImperativeHandle=function(L,q,R){return le.current.useImperativeHandle(L,q,R)},De.useInsertionEffect=function(L,q){return le.current.useInsertionEffect(L,q)},De.useLayoutEffect=function(L,q){return le.current.useLayoutEffect(L,q)},De.useMemo=function(L,q){return le.current.useMemo(L,q)},De.useReducer=function(L,q,R){return le.current.useReducer(L,q,R)},De.useRef=function(L){return le.current.useRef(L)},De.useState=function(L){return le.current.useState(L)},De.useSyncExternalStore=function(L,q,R){return le.current.useSyncExternalStore(L,q,R)},De.useTransition=function(){return le.current.useTransition()},De.version="18.3.1",De}var d0;function rp(){return d0||(d0=1,df.exports=FC()),df.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var f0;function zC(){if(f0)return Yo;f0=1;var e=rp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,h){var p,g={},v=null,w=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(p in f)r.call(f,p)&&!a.hasOwnProperty(p)&&(g[p]=f[p]);if(c&&c.defaultProps)for(p in f=c.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:t,type:c,key:v,ref:w,props:g,_owner:o.current}}return Yo.Fragment=n,Yo.jsx=l,Yo.jsxs=l,Yo}var h0;function BC(){return h0||(h0=1,cf.exports=zC()),cf.exports}var x=BC(),F=rp();const UC=ic(F),VC=MC({__proto__:null,default:UC},[F]);var cu={},ff={exports:{}},nn={},hf={exports:{}},pf={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var p0;function $C(){return p0||(p0=1,(function(e){function t(X,ue){var E=X.length;X.push(ue);e:for(;0<E;){var L=E-1>>>1,q=X[L];if(0<o(q,ue))X[L]=ue,X[E]=q,E=L;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var ue=X[0],E=X.pop();if(E!==ue){X[0]=E;e:for(var L=0,q=X.length,R=q>>>1;L<R;){var xe=2*(L+1)-1,we=X[xe],ee=xe+1,_e=X[ee];if(0>o(we,E))ee<q&&0>o(_e,we)?(X[L]=_e,X[ee]=E,L=ee):(X[L]=we,X[xe]=E,L=xe);else if(ee<q&&0>o(_e,E))X[L]=_e,X[ee]=E,L=ee;else break e}}return ue}
vendor: 41,069 bytes, lines 25-37
25function o(X,ue){var E=X.sortIndex-ue.sortIndex;return E!==0?E:X.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],p=1,g=null,v=3,w=!1,_=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(X){for(var ue=n(h);ue!==null;){if(ue.callback===null)r(h);else if(ue.startTime<=X)r(h),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=n(h)}}function N(X){if(C=!1,T(X),!_)if(n(f)!==null)_=!0,ge(z);else{var ue=n(h);ue!==null&&le(N,ue.startTime-X)}}function z(X,ue){_=!1,C&&(C=!1,b(B),B=-1),w=!0;var E=v;try{for(T(ue),g=n(f);g!==null&&(!(g.expirationTime>ue)||X&&!W());){var L=g.callback;if(typeof L=="function"){g.callback=null,v=g.priorityLevel;var q=L(g.expirationTime<=ue);ue=e.unstable_now(),typeof q=="function"?g.callback=q:g===n(f)&&r(f),T(ue)}else r(f);g=n(f)}if(g!==null)var R=!0;else{var xe=n(h);xe!==null&&le(N,xe.startTime-ue),R=!1}return R}finally{g=null,v=E,w=!1}}var O=!1,Q=null,B=-1,J=5,oe=-1;function W(){return!(e.unstable_now()-oe<J)}function re(){if(Q!==null){var X=e.unstable_now();oe=X;var ue=!0;try{ue=Q(!0,X)}finally{ue?Ee():(O=!1,Q=null)}}else O=!1}var Ee;if(typeof P=="function")Ee=function(){P(re)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Y=ie.port2;ie.port1.onmessage=re,Ee=function(){Y.postMessage(null)}}else Ee=function(){k(re,0)};function ge(X){Q=X,O||(O=!0,Ee())}function le(X,ue){B=k(function(){X(e.unstable_now())},ue)}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(X){X.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,ge(z))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(X){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var E=v;v=ue;try{return X()}finally{v=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ue){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var E=v;v=X;try{return ue()}finally{v=E}},e.unstable_scheduleCallback=function(X,ue,E){var L=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?L+E:L):E=L,X){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=E+q,X={id:p++,callback:ue,priorityLevel:X,startTime:E,expirationTime:q,sortIndex:-1},E>L?(X.sortIndex=E,t(h,X),n(f)===null&&X===n(h)&&(C?(b(B),B=-1):C=!0,le(N,E-L))):(X.sortIndex=q,t(f,X),_||w||(_=!0,ge(z))),X},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(X){var ue=v;return function(){var E=v;v=ue;try{return X.apply(this,arguments)}finally{v=E}}}})(pf)),pf}var m0;function qC(){return m0||(m0=1,hf.exports=$C()),hf.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var g0;function HC(){if(g0)return nn;g0=1;var e=rp(),t=qC();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,u=1;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(i,s){l(i,s),l(i+"Capture",s)}function l(i,s){for(o[i]=s,i=0;i<s.length;i++)r.add(s[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,p={},g={};function v(i){return f.call(g,i)?!0:f.call(p,i)?!1:h.test(i)?g[i]=!0:(p[i]=!0,!1)}function w(i,s,u,d){if(u!==null&&u.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:u!==null?!u.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function _(i,s,u,d){if(s===null||typeof s>"u"||w(i,s,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function C(i,s,u,d,m,y,S){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=u,this.propertyName=i,this.type=s,this.sanitizeURL=y,this.removeEmptyString=S}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){k[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];k[s]=new C(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){k[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){k[i]=new C(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){k[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){k[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){k[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){k[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){k[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function P(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(b,P);k[s]=new C(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(b,P);k[s]=new C(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(b,P);k[s]=new C(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){k[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){k[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function T(i,s,u,d){var m=k.hasOwnProperty(s)?k[s]:null;(m!==null?m.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,u,m,d)&&(u=null),d||m===null?v(s)&&(u===null?i.removeAttribute(s):i.setAttribute(s,""+u)):m.mustUseProperty?i[m.propertyName]=u===null?m.type===3?!1:"":u:(s=m.attributeName,d=m.attributeNamespace,u===null?i.removeAttribute(s):(m=m.type,u=m===3||m===4&&u===!0?"":""+u,d?i.setAttributeNS(d,s,u):i.setAttribute(s,u))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),O=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),W=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),X=Symbol.iterator;function ue(i){return i===null||typeof i!="object"?null:(i=X&&i[X]||i["@@iterator"],typeof i=="function"?i:null)}var E=Object.assign,L;function q(i){if(L===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);L=s&&s[1]||""}return` 34`+L+i}var R=!1;function xe(i,s){if(!i||R)return"";R=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch($){var d=$}Reflect.construct(i,[],s)}else{try{s.call()}catch($){d=$}i.call(s.prototype)}else{try{throw Error()}catch($){d=$}i()}}catch($){if($&&d&&typeof $.stack=="string"){for(var m=$.stack.split(` 35`),y=d.stack.split(` 36`),S=m.length-1,A=y.length-1;1<=S&&0<=A&&m[S]!==y[A];)A--;for(;1<=S&&0<=A;S--,A--)if(m[S]!==y[A]){if(S!==1||A!==1)do if(S--,A--,0>A||m[S]!==y[A]){var j=` 37`+m[S].replace(" at new "," at ");return i.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",i.displayName)),j}while(1<=S&&0<=A);break}}}finally{R=!1,Error.prepareStackTrace=u}return(i=i?i.displayName||i.name:"")?q(i):""}function we(i){switch(i.tag){case 5:return q(i.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return i=xe(i.type,!1),i;case 11:return i=xe(i.type.render,!1),i;case 1:return i=xe(i.type,!0),i;default:return""}}function ee(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Q:return"Fragment";case O:return"Portal";case J:return"Profiler";case B:return"StrictMode";case Ee:return"Suspense";case ie:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case W:return(i.displayName||"Context")+".Consumer";case oe:return(i._context.displayName||"Context")+".Provider";case re:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Y:return s=i.displayName||null,s!==null?s:ee(i.type)||"Memo";case ge:s=i._payload,i=i._init;try{return ee(i(s))}catch{}}return null}function _e(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(s);case 8:return s===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function je(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function be(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Je(i){var s=be(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),d=""+i[s];if(!i.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,y=u.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return m.call(this)},set:function(S){d=""+S,y.call(this,S)}}),Object.defineProperty(i,s,{enumerable:u.enumerable}),{getValue:function(){return d},setValue:function(S){d=""+S},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function _t(i){i._valueTracker||(i._valueTracker=Je(i))}function vt(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),d="";return i&&(d=be(i)?i.checked?"true":"false":i.value),i=d,i!==u?(s.setValue(i),!0):!1}function cn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Gt(i,s){var u=s.checked;return E({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??i._wrapperState.initialChecked})}function Ht(i,s){var u=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;u=je(s.value!=null?s.value:u),i._wrapperState={initialChecked:d,initialValue:u,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Re(i,s){s=s.checked,s!=null&&T(i,"checked",s,!1)}function ht(i,s){Re(i,s);var u=je(s.value),d=s.type;if(u!=null)d==="number"?(u===0&&i.value===""||i.value!=u)&&(i.value=""+u):i.value!==""+u&&(i.value=""+u);else if(d==="submit"||d==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Xt(i,s.type,u):s.hasOwnProperty("defaultValue")&&Xt(i,s.type,je(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function dn(i,s,u){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,u||s===i.value||(i.value=s),i.defaultValue=s}u=i.name,u!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,u!==""&&(i.name=u)}function Xt(i,s,u){(s!=="number"||cn(i.ownerDocument)!==i)&&(u==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+u&&(i.defaultValue=""+u))}var In=Array.isArray;function Gn(i,s,u,d){if(i=i.options,s){s={};for(var m=0;m<u.length;m++)s["$"+u[m]]=!0;for(u=0;u<i.length;u++)m=s.hasOwnProperty("$"+i[u].value),i[u].selected!==m&&(i[u].selected=m),m&&d&&(i[u].defaultSelected=!0)}else{for(u=""+je(u),s=null,m=0;m<i.length;m++){if(i[m].value===u){i[m].selected=!0,d&&(i[m].defaultSelected=!0);return}s!==null||i[m].disabled||(s=i[m])}s!==null&&(s.selected=!0)}}function Dn(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return E({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Za(i,s){var u=s.value;if(u==null){if(u=s.children,s=s.defaultValue,u!=null){if(s!=null)throw Error(n(92));if(In(u)){if(1<u.length)throw Error(n(93));u=u[0]}s=u}s==null&&(s=""),u=s}i._wrapperState={initialValue:je(u)}}function el(i,s){var u=je(s.value),d=je(s.defaultValue);u!=null&&(u=""+u,u!==i.value&&(i.value=u),s.defaultValue==null&&i.defaultValue!==u&&(i.defaultValue=u)),d!=null&&(i.defaultValue=""+d)}function tl(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function H(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?H(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Pe,Ie=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,u,d,m){MSApp.execUnsafeLocalFunction(function(){return i(s,u,d,m)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Pe=Pe||document.createElement("div"),Pe.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Pe.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Ve(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var Tt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fr=["Webkit","ms","Moz","O"];Object.keys(Tt).forEach(function(i){fr.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Tt[s]=Tt[i]})});function bn(i,s,u){return s==null||typeof s=="boolean"||s===""?"":u||typeof s!="number"||s===0||Tt.hasOwnProperty(i)&&Tt[i]?(""+s).trim():s+"px"}function Rr(i,s){i=i.style;for(var u in s)if(s.hasOwnProperty(u)){var d=u.indexOf("--")===0,m=bn(u,s[u],d);u==="float"&&(u="cssFloat"),d?i.setProperty(u,m):i[u]=m}}var vi=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pt(i,s){if(s){if(vi[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Xn(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 fn=null;function kc(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ec=null,os=null,as=null;function _m(i){if(i=Do(i)){if(typeof Ec!="function")throw Error(n(280));var s=i.stateNode;s&&(s=El(s),Ec(i.stateNode,i.type,s))}}function Tm(i){os?as?as.push(i):as=[i]:os=i}function Pm(){if(os){var i=os,s=as;if(as=os=null,_m(i),s)for(i=0;i<s.length;i++)_m(s[i])}}function Rm(i,s){return i(s)}function Am(){}var Cc=!1;function Nm(i,s,u){if(Cc)return i(s,u);Cc=!0;try{return Rm(i,s,u)}finally{Cc=!1,(os!==null||as!==null)&&(Am(),Pm())}}function mo(i,s){var u=i.stateNode;if(u===null)return null;var d=El(u);if(d===null)return null;u=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(n(231,s,typeof u));return u}var _c=!1;if(c)try{var go={};Object.defineProperty(go,"passive",{get:function(){_c=!0}}),window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{_c=!1}function $k(i,s,u,d,m,y,S,A,j){var $=Array.prototype.slice.call(arguments,3);try{s.apply(u,$)}catch(G){this.onError(G)}}var yo=!1,nl=null,rl=!1,Tc=null,qk={onError:function(i){yo=!0,nl=i}};function Hk(i,s,u,d,m,y,S,A,j){yo=!1,nl=null,$k.apply(qk,arguments)}function Wk(i,s,u,d,m,y,S,A,j){if(Hk.apply(this,arguments),yo){if(yo){var $=nl;yo=!1,nl=null}else throw Error(n(198));rl||(rl=!0,Tc=$)}}function xi(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function jm(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function Om(i){if(xi(i)!==i)throw Error(n(188))}function Kk(i){var s=i.alternate;if(!s){if(s=xi(i),s===null)throw Error(n(188));return s!==i?null:i}for(var u=i,d=s;;){var m=u.return;if(m===null)break;var y=m.alternate;if(y===null){if(d=m.return,d!==null){u=d;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===u)return Om(m),i;if(y===d)return Om(m),s;y=y.sibling}throw Error(n(188))}if(u.return!==d.return)u=m,d=y;else{for(var S=!1,A=m.child;A;){if(A===u){S=!0,u=m,d=y;break}if(A===d){S=!0,d=m,u=y;break}A=A.sibling}if(!S){for(A=y.child;A;){if(A===u){S=!0,u=y,d=m;break}if(A===d){S=!0,d=y,u=m;break}A=A.sibling}if(!S)throw Error(n(189))}}if(u.alternate!==d)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?i:s}function Lm(i){return i=Kk(i),i!==null?Im(i):null}function Im(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=Im(i);if(s!==null)return s;i=i.sibling}return null}var Dm=t.unstable_scheduleCallback,Mm=t.unstable_cancelCallback,Qk=t.unstable_shouldYield,Gk=t.unstable_requestPaint,ut=t.unstable_now,Xk=t.unstable_getCurrentPriorityLevel,Pc=t.unstable_ImmediatePriority,Fm=t.unstable_UserBlockingPriority,il=t.unstable_NormalPriority,Yk=t.unstable_LowPriority,zm=t.unstable_IdlePriority,sl=null,Yn=null;function Jk(i){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(sl,i,void 0,(i.current.flags&128)===128)}catch{}}var Mn=Math.clz32?Math.clz32:tE,Zk=Math.log,eE=Math.LN2;function tE(i){return i>>>=0,i===0?32:31-(Zk(i)/eE|0)|0}var ol=64,al=4194304;function vo(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function ll(i,s){var u=i.pendingLanes;if(u===0)return 0;var d=0,m=i.suspendedLanes,y=i.pingedLanes,S=u&268435455;if(S!==0){var A=S&~m;A!==0?d=vo(A):(y&=S,y!==0&&(d=vo(y)))}else S=u&~m,S!==0?d=vo(S):y!==0&&(d=vo(y));if(d===0)return 0;if(s!==0&&s!==d&&(s&m)===0&&(m=d&-d,y=s&-s,m>=y||m===16&&(y&4194240)!==0))return s;if((d&4)!==0&&(d|=u&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=d;0<s;)u=31-Mn(s),m=1<<u,d|=i[u],s&=~m;return d}function nE(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rE(i,s){for(var u=i.suspendedLanes,d=i.pingedLanes,m=i.expirationTimes,y=i.pendingLanes;0<y;){var S=31-Mn(y),A=1<<S,j=m[S];j===-1?((A&u)===0||(A&d)!==0)&&(m[S]=nE(A,s)):j<=s&&(i.expiredLanes|=A),y&=~A}}function Rc(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Bm(){var i=ol;return ol<<=1,(ol&4194240)===0&&(ol=64),i}function Ac(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function xo(i,s,u){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Mn(s),i[s]=u}function iE(i,s){var u=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var d=i.eventTimes;for(i=i.expirationTimes;0<u;){var m=31-Mn(u),y=1<<m;s[m]=0,d[m]=-1,i[m]=-1,u&=~y}}function Nc(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var d=31-Mn(u),m=1<<d;m&s|i[d]&s&&(i[d]|=s),u&=~m}}var Ke=0;function Um(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Vm,jc,$m,qm,Hm,Oc=!1,ul=[],Ar=null,Nr=null,jr=null,wo=new Map,bo=new Map,Or=[],sE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Wm(i,s){switch(i){case"focusin":case"focusout":Ar=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":jr=null;break;case"pointerover":case"pointerout":wo.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.delete(s.pointerId)}}function So(i,s,u,d,m,y){return i===null||i.nativeEvent!==y?(i={blockedOn:s,domEventName:u,eventSystemFlags:d,nativeEvent:y,targetContainers:[m]},s!==null&&(s=Do(s),s!==null&&jc(s)),i):(i.eventSystemFlags|=d,s=i.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),i)}function oE(i,s,u,d,m){switch(s){case"focusin":return Ar=So(Ar,i,s,u,d,m),!0;case"dragenter":return Nr=So(Nr,i,s,u,d,m),!0;case"mouseover":return jr=So(jr,i,s,u,d,m),!0;case"pointerover":var y=m.pointerId;return wo.set(y,So(wo.get(y)||null,i,s,u,d,m)),!0;case"gotpointercapture":return y=m.pointerId,bo.set(y,So(bo.get(y)||null,i,s,u,d,m)),!0}return!1}function Km(i){var s=wi(i.target);if(s!==null){var u=xi(s);if(u!==null){if(s=u.tag,s===13){if(s=jm(u),s!==null){i.blockedOn=s,Hm(i.priority,function(){$m(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function cl(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=Ic(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(u===null){u=i.nativeEvent;var d=new u.constructor(u.type,u);fn=d,u.target.dispatchEvent(d),fn=null}else return s=Do(u),s!==null&&jc(s),i.blockedOn=u,!1;s.shift()}return!0}function Qm(i,s,u){cl(i)&&u.delete(s)}function aE(){Oc=!1,Ar!==null&&cl(Ar)&&(Ar=null),Nr!==null&&cl(Nr)&&(Nr=null),jr!==null&&cl(jr)&&(jr=null),wo.forEach(Qm),bo.forEach(Qm)}function ko(i,s){i.blockedOn===s&&(i.blockedOn=null,Oc||(Oc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,aE)))}function Eo(i){function s(m){return ko(m,i)}if(0<ul.length){ko(ul[0],i);for(var u=1;u<ul.length;u++){var d=ul[u];d.blockedOn===i&&(d.blockedOn=null)}}for(Ar!==null&&ko(Ar,i),Nr!==null&&ko(Nr,i),jr!==null&&ko(jr,i),wo.forEach(s),bo.forEach(s),u=0;u<Or.length;u++)d=Or[u],d.blockedOn===i&&(d.blockedOn=null);for(;0<Or.length&&(u=Or[0],u.blockedOn===null);)Km(u),u.blockedOn===null&&Or.shift()}var ls=N.ReactCurrentBatchConfig,dl=!0;function lE(i,s,u,d){var m=Ke,y=ls.transition;ls.transition=null;try{Ke=1,Lc(i,s,u,d)}finally{Ke=m,ls.transition=y}}function uE(i,s,u,d){var m=Ke,y=ls.transition;ls.transition=null;try{Ke=4,Lc(i,s,u,d)}finally{Ke=m,ls.transition=y}}function Lc(i,s,u,d){if(dl){var m=Ic(i,s,u,d);if(m===null)Jc(i,s,d,fl,u),Wm(i,d);else if(oE(m,i,s,u,d))d.stopPropagation();else if(Wm(i,d),s&4&&-1<sE.indexOf(i)){for(;m!==null;){var y=Do(m);if(y!==null&&Vm(y),y=Ic(i,s,u,d),y===null&&Jc(i,s,d,fl,u),y===m)break;m=y}m!==null&&d.stopPropagation()}else Jc(i,s,d,null,u)}}var fl=null;function Ic(i,s,u,d){if(fl=null,i=kc(d),i=wi(i),i!==null)if(s=xi(i),s===null)i=null;else if(u=s.tag,u===13){if(i=jm(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return fl=i,null}function Gm(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xk()){case Pc:return 1;case Fm:return 4;case il:case Yk:return 16;case zm:return 536870912;default:return 16}default:return 16}}var Lr=null,Dc=null,hl=null;function Xm(){if(hl)return hl;var i,s=Dc,u=s.length,d,m="value"in Lr?Lr.value:Lr.textContent,y=m.length;for(i=0;i<u&&s[i]===m[i];i++);var S=u-i;for(d=1;d<=S&&s[u-d]===m[y-d];d++);return hl=m.slice(i,1<d?1-d:void 0)}function pl(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function ml(){return!0}function Ym(){return!1}function hn(i){function s(u,d,m,y,S){this._reactName=u,this._targetInst=m,this.type=d,this.nativeEvent=y,this.target=S,this.currentTarget=null;for(var A in i)i.hasOwnProperty(A)&&(u=i[A],this[A]=u?u(y):y[A]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ml:Ym,this.isPropagationStopped=Ym,this}return E(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ml)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),s}var us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mc=hn(us),Co=E({},us,{view:0,detail:0}),cE=hn(Co),Fc,zc,_o,gl=E({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uc,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==_o&&(_o&&i.type==="mousemove"?(Fc=i.screenX-_o.screenX,zc=i.screenY-_o.screenY):zc=Fc=0,_o=i),Fc)},movementY:function(i){return"movementY"in i?i.movementY:zc}}),Jm=hn(gl),dE=E({},gl,{dataTransfer:0}),fE=hn(dE),hE=E({},Co,{relatedTarget:0}),Bc=hn(hE),pE=E({},us,{animationName:0,elapsedTime:0,pseudoElement:0}),mE=hn(pE),gE=E({},us,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),yE=hn(gE),vE=E({},us,{data:0}),Zm=hn(vE),xE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wE={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"},bE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SE(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=bE[i])?!!s[i]:!1}function Uc(){return SE}var kE=E({},Co,{key:function(i){if(i.key){var s=xE[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=pl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?wE[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uc,charCode:function(i){return i.type==="keypress"?pl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?pl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),EE=hn(kE),CE=E({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eg=hn(CE),_E=E({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uc}),TE=hn(_E),PE=E({},us,{propertyName:0,elapsedTime:0,pseudoElement:0}),RE=hn(PE),AE=E({},gl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),NE=hn(AE),jE=[9,13,27,32],Vc=c&&"CompositionEvent"in window,To=null;c&&"documentMode"in document&&(To=document.documentMode);var OE=c&&"TextEvent"in window&&!To,tg=c&&(!Vc||To&&8<To&&11>=To),ng=" ",rg=!1;function ig(i,s){switch(i){case"keyup":return jE.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var cs=!1;function LE(i,s){switch(i){case"compositionend":return sg(s);case"keypress":return s.which!==32?null:(rg=!0,ng);case"textInput":return i=s.data,i===ng&&rg?null:i;default:return null}}function IE(i,s){if(cs)return i==="compositionend"||!Vc&&ig(i,s)?(i=Xm(),hl=Dc=Lr=null,cs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return tg&&s.locale!=="ko"?null:s.data;default:return null}}var DE={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 og(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!DE[i.type]:s==="textarea"}function ag(i,s,u,d){Tm(d),s=bl(s,"onChange"),0<s.length&&(u=new Mc("onChange","change",null,u,d),i.push({event:u,listeners:s}))}var Po=null,Ro=null;function ME(i){Cg(i,0)}function yl(i){var s=ms(i);if(vt(s))return i}function FE(i,s){if(i==="change")return s}var lg=!1;if(c){var $c;if(c){var qc="oninput"in document;if(!qc){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),qc=typeof ug.oninput=="function"}$c=qc}else $c=!1;lg=$c&&(!document.documentMode||9<document.documentMode)}function cg(){Po&&(Po.detachEvent("onpropertychange",dg),Ro=Po=null)}function dg(i){if(i.propertyName==="value"&&yl(Ro)){var s=[];ag(s,Ro,i,kc(i)),Nm(ME,s)}}function zE(i,s,u){i==="focusin"?(cg(),Po=s,Ro=u,Po.attachEvent("onpropertychange",dg)):i==="focusout"&&cg()}function BE(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return yl(Ro)}function UE(i,s){if(i==="click")return yl(s)}function VE(i,s){if(i==="input"||i==="change")return yl(s)}function $E(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Fn=typeof Object.is=="function"?Object.is:$E;function Ao(i,s){if(Fn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),d=Object.keys(s);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var m=u[d];if(!f.call(s,m)||!Fn(i[m],s[m]))return!1}return!0}function fg(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function hg(i,s){var u=fg(i);i=0;for(var d;u;){if(u.nodeType===3){if(d=i+u.textContent.length,i<=s&&d>=s)return{node:u,offset:s-i};i=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=fg(u)}}function pg(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?pg(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function mg(){for(var i=window,s=cn();s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=cn(i.document)}return s}function Hc(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function qE(i){var s=mg(),u=i.focusedElem,d=i.selectionRange;if(s!==u&&u&&u.ownerDocument&&pg(u.ownerDocument.documentElement,u)){if(d!==null&&Hc(u)){if(s=d.start,i=d.end,i===void 0&&(i=s),"selectionStart"in u)u.selectionStart=s,u.selectionEnd=Math.min(i,u.value.length);else if(i=(s=u.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var m=u.textContent.length,y=Math.min(d.start,m);d=d.end===void 0?y:Math.min(d.end,m),!i.extend&&y>d&&(m=d,d=y,y=m),m=hg(u,y);var S=hg(u,d);m&&S&&(i.rangeCount!==1||i.anchorNode!==m.node||i.anchorOffset!==m.offset||i.focusNode!==S.node||i.focusOffset!==S.offset)&&(s=s.createRange(),s.setStart(m.node,m.offset),i.removeAllRanges(),y>d?(i.addRange(s),i.extend(S.node,S.offset)):(s.setEnd(S.node,S.offset),i.addRange(s)))}}for(s=[],i=u;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<s.length;u++)i=s[u],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var HE=c&&"documentMode"in document&&11>=document.documentMode,ds=null,Wc=null,No=null,Kc=!1;function gg(i,s,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Kc||ds==null||ds!==cn(d)||(d=ds,"selectionStart"in d&&Hc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),No&&Ao(No,d)||(No=d,d=bl(Wc,"onSelect"),0<d.length&&(s=new Mc("onSelect","select",null,s,u),i.push({event:s,listeners:d}),s.target=ds)))}function vl(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var fs={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionend:vl("Transition","TransitionEnd")},Qc={},yg={};c&&(yg=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);function xl(i){if(Qc[i])return Qc[i];if(!fs[i])return i;var s=fs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in yg)return Qc[i]=s[u];return i}var vg=xl("animationend"),xg=xl("animationiteration"),wg=xl("animationstart"),bg=xl("transitionend"),Sg=new Map,kg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(i,s){Sg.set(i,s),a(s,[i])}for(var Gc=0;Gc<kg.length;Gc++){var Xc=kg[Gc],WE=Xc.toLowerCase(),KE=Xc[0].toUpperCase()+Xc.slice(1);Ir(WE,"on"+KE)}Ir(vg,"onAnimationEnd"),Ir(xg,"onAnimationIteration"),Ir(wg,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(bg,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focu
37sin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QE=new Set("cancel close invalid load scroll toggle".split(" ").concat(jo));function Eg(i,s,u){var d=i.type||"unknown-event";i.currentTarget=u,Wk(d,s,void 0,i),i.currentTarget=null}function Cg(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var d=i[u],m=d.event;d=d.listeners;e:{var y=void 0;if(s)for(var S=d.length-1;0<=S;S--){var A=d[S],j=A.instance,$=A.currentTarget;if(A=A.listener,j!==y&&m.isPropagationStopped())break e;Eg(m,A,$),y=j}else for(S=0;S<d.length;S++){if(A=d[S],j=A.instance,$=A.currentTarget,A=A.listener,j!==y&&m.isPropagationStopped())break e;Eg(m,A,$),y=j}}}if(rl)throw i=Tc,rl=!1,Tc=null,i}function Ze(i,s){var u=s[id];u===void 0&&(u=s[id]=new Set);var d=i+"__bubble";u.has(d)||(_g(s,i,2,!1),u.add(d))}function Yc(i,s,u){var d=0;s&&(d|=4),_g(u,i,d,s)}var wl="_reactListening"+Math.random().toString(36).slice(2);function Oo(i){if(!i[wl]){i[wl]=!0,r.forEach(function(u){u!=="selectionchange"&&(QE.has(u)||Yc(u,!1,i),Yc(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[wl]||(s[wl]=!0,Yc("selectionchange",!1,s))}}function _g(i,s,u,d){switch(Gm(s)){case 1:var m=lE;break;case 4:m=uE;break;default:m=Lc}u=m.bind(null,s,u,i),m=void 0,!_c||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(m=!0),d?m!==void 0?i.addEventListener(s,u,{capture:!0,passive:m}):i.addEventListener(s,u,!0):m!==void 0?i.addEventListener(s,u,{passive:m}):i.addEventListener(s,u,!1)}function Jc(i,s,u,d,m){var y=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var S=d.tag;if(S===3||S===4){var A=d.stateNode.containerInfo;if(A===m||A.nodeType===8&&A.parentNode===m)break;if(S===4)for(S=d.return;S!==null;){var j=S.tag;if((j===3||j===4)&&(j=S.stateNode.containerInfo,j===m||j.nodeType===8&&j.parentNode===m))return;S=S.return}for(;A!==null;){if(S=wi(A),S===null)return;if(j=S.tag,j===5||j===6){d=y=S;continue e}A=A.parentNode}}d=d.return}Nm(function(){var $=y,G=kc(u),Z=[];e:{var K=Sg.get(i);if(K!==void 0){var ce=Mc,he=i;switch(i){case"keypress":if(pl(u)===0)break e;case"keydown":case"keyup":ce=EE;break;case"focusin":he="focus",ce=Bc;break;case"focusout":he="blur",ce=Bc;break;case"beforeblur":case"afterblur":ce=Bc;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=Jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=fE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=TE;break;case vg:case xg:case wg:ce=mE;break;case bg:ce=RE;break;case"scroll":ce=cE;break;case"wheel":ce=NE;break;case"copy":case"cut":case"paste":ce=yE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=eg}var ye=(s&4)!==0,ct=!ye&&i==="scroll",U=ye?K!==null?K+"Capture":null:K;ye=[];for(var D=$,V;D!==null;){V=D;var ne=V.stateNode;if(V.tag===5&&ne!==null&&(V=ne,U!==null&&(ne=mo(D,U),ne!=null&&ye.push(Lo(D,ne,V)))),ct)break;D=D.return}0<ye.length&&(K=new ce(K,he,null,u,G),Z.push({event:K,listeners:ye}))}}if((s&7)===0){e:{if(K=i==="mouseover"||i==="pointerover",ce=i==="mouseout"||i==="pointerout",K&&u!==fn&&(he=u.relatedTarget||u.fromElement)&&(wi(he)||he[hr]))break e;if((ce||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,ce?(he=u.relatedTarget||u.toElement,ce=$,he=he?wi(he):null,he!==null&&(ct=xi(he),he!==ct||he.tag!==5&&he.tag!==6)&&(he=null)):(ce=null,he=$),ce!==he)){if(ye=Jm,ne="onMouseLeave",U="onMouseEnter",D="mouse",(i==="pointerout"||i==="pointerover")&&(ye=eg,ne="onPointerLeave",U="onPointerEnter",D="pointer"),ct=ce==null?K:ms(ce),V=he==null?K:ms(he),K=new ye(ne,D+"leave",ce,u,G),K.target=ct,K.relatedTarget=V,ne=null,wi(G)===$&&(ye=new ye(U,D+"enter",he,u,G),ye.target=V,ye.relatedTarget=ct,ne=ye),ct=ne,ce&&he)t:{for(ye=ce,U=he,D=0,V=ye;V;V=hs(V))D++;for(V=0,ne=U;ne;ne=hs(ne))V++;for(;0<D-V;)ye=hs(ye),D--;for(;0<V-D;)U=hs(U),V--;for(;D--;){if(ye===U||U!==null&&ye===U.alternate)break t;ye=hs(ye),U=hs(U)}ye=null}else ye=null;ce!==null&&Tg(Z,K,ce,ye,!1),he!==null&&ct!==null&&Tg(Z,ct,he,ye,!0)}}
vendor: 4,366 bytes, lines 37-38
37e:{if(K=$?ms($):window,ce=K.nodeName&&K.nodeName.toLowerCase(),ce==="select"||ce==="input"&&K.type==="file")var ve=FE;else if(og(K))if(lg)ve=VE;else{ve=BE;var Se=zE}else(ce=K.nodeName)&&ce.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ve=UE);if(ve&&(ve=ve(i,$))){ag(Z,ve,u,G);break e}Se&&Se(i,K,$),i==="focusout"&&(Se=K._wrapperState)&&Se.controlled&&K.type==="number"&&Xt(K,"number",K.value)}switch(Se=$?ms($):window,i){case"focusin":(og(Se)||Se.contentEditable==="true")&&(ds=Se,Wc=$,No=null);break;case"focusout":No=Wc=ds=null;break;case"mousedown":Kc=!0;break;case"contextmenu":case"mouseup":case"dragend":Kc=!1,gg(Z,u,G);break;case"selectionchange":if(HE)break;case"keydown":case"keyup":gg(Z,u,G)}var ke;if(Vc)e:{switch(i){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else cs?ig(i,u)&&(Ae="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ae="onCompositionStart");Ae&&(tg&&u.locale!=="ko"&&(cs||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&cs&&(ke=Xm()):(Lr=G,Dc="value"in Lr?Lr.value:Lr.textContent,cs=!0)),Se=bl($,Ae),0<Se.length&&(Ae=new Zm(Ae,i,null,u,G),Z.push({event:Ae,listeners:Se}),ke?Ae.data=ke:(ke=sg(u),ke!==null&&(Ae.data=ke)))),(ke=OE?LE(i,u):IE(i,u))&&($=bl($,"onBeforeInput"),0<$.length&&(G=new Zm("onBeforeInput","beforeinput",null,u,G),Z.push({event:G,listeners:$}),G.data=ke))}Cg(Z,s)})}function Lo(i,s,u){return{instance:i,listener:s,currentTarget:u}}function bl(i,s){for(var u=s+"Capture",d=[];i!==null;){var m=i,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=mo(i,u),y!=null&&d.unshift(Lo(i,y,m)),y=mo(i,s),y!=null&&d.push(Lo(i,y,m))),i=i.return}return d}function hs(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Tg(i,s,u,d,m){for(var y=s._reactName,S=[];u!==null&&u!==d;){var A=u,j=A.alternate,$=A.stateNode;if(j!==null&&j===d)break;A.tag===5&&$!==null&&(A=$,m?(j=mo(u,y),j!=null&&S.unshift(Lo(u,j,A))):m||(j=mo(u,y),j!=null&&S.push(Lo(u,j,A)))),u=u.return}S.length!==0&&i.push({event:s,listeners:S})}var GE=/\r\n?/g,XE=/\u0000|\uFFFD/g;function Pg(i){return(typeof i=="string"?i:""+i).replace(GE,` 38`).replace(XE,"")}function Sl(i,s,u){if(s=Pg(s),Pg(i)!==s&&u)throw Error(n(425))}function kl(){}var Zc=null,ed=null;function td(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var nd=typeof setTimeout=="function"?setTimeout:void 0,YE=typeof clearTimeout=="function"?clearTimeout:void 0,Rg=typeof Promise=="function"?Promise:void 0,JE=typeof queueMicrotask=="function"?queueMicrotask:typeof Rg<"u"?function(i){return Rg.resolve(null).then(i).catch(ZE)}:nd;function ZE(i){setTimeout(function(){throw i})}function rd(i,s){var u=s,d=0;do{var m=u.nextSibling;if(i.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(d===0){i.removeChild(m),Eo(s);return}d--}else u!=="$"&&u!=="$?"&&u!=="$!"||d++;u=m}while(u);Eo(s)}function Dr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function Ag(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(s===0)return i;s--}else u==="/$"&&s++}i=i.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Jn="__reactFiber$"+ps,Io="__reactProps$"+ps,hr="__reactContainer$"+ps,id="__reactEvents$"+ps,eC="__reactListeners$"+ps,tC="__reactHandles$"+ps;function wi(i){var s=i[Jn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[hr]||u[Jn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=Ag(i);i!==null;){if(u=i[Jn])return u;i=Ag(i)}return s}i=u,u=i.parentNode}return null}function Do(i){return i=i[Jn]||i[hr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ms(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function El(i){return i[Io]||null}var sd=[],gs=-1;function Mr(i){return{current:i}}function et(i){0>gs||(i.current=sd[gs],sd[gs]=null,gs--)}function Ge(i,s){gs++,sd[gs]=i.current,i.current=s}var Fr={},It=Mr(Fr),Yt=Mr(!1),bi=Fr;function ys(i,s){var u=i.type.contextTypes;if(!u)return Fr;var d=i.stateNode;
vendor: 4,936 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in u)m[y]=s[y];return d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=m),m}function Jt(i){return i=i.childContextTypes,i!=null}function Cl(){et(Yt),et(It)}function Ng(i,s,u){if(It.current!==Fr)throw Error(n(168));Ge(It,s),Ge(Yt,u)}function jg(i,s,u){var d=i.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return u;d=d.getChildContext();for(var m in d)if(!(m in s))throw Error(n(108,_e(i)||"Unknown",m));return E({},u,d)}function _l(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Fr,bi=It.current,Ge(It,i),Ge(Yt,Yt.current),!0}function Og(i,s,u){var d=i.stateNode;if(!d)throw Error(n(169));u?(i=jg(i,s,bi),d.__reactInternalMemoizedMergedChildContext=i,et(Yt),et(It),Ge(It,i)):et(Yt),Ge(Yt,u)}var pr=null,Tl=!1,od=!1;function Lg(i){pr===null?pr=[i]:pr.push(i)}function nC(i){Tl=!0,Lg(i)}function zr(){if(!od&&pr!==null){od=!0;var i=0,s=Ke;try{var u=pr;for(Ke=1;i<u.length;i++){var d=u[i];do d=d(!0);while(d!==null)}pr=null,Tl=!1}catch(m){throw pr!==null&&(pr=pr.slice(i+1)),Dm(Pc,zr),m}finally{Ke=s,od=!1}}return null}var vs=[],xs=0,Pl=null,Rl=0,Sn=[],kn=0,Si=null,mr=1,gr="";function ki(i,s){vs[xs++]=Rl,vs[xs++]=Pl,Pl=i,Rl=s}function Ig(i,s,u){Sn[kn++]=mr,Sn[kn++]=gr,Sn[kn++]=Si,Si=i;var d=mr;i=gr;var m=32-Mn(d)-1;d&=~(1<<m),u+=1;var y=32-Mn(s)+m;if(30<y){var S=m-m%5;y=(d&(1<<S)-1).toString(32),d>>=S,m-=S,mr=1<<32-Mn(s)+m|u<<m|d,gr=y+i}else mr=1<<y|u<<m|d,gr=i}function ad(i){i.return!==null&&(ki(i,1),Ig(i,1,0))}function ld(i){for(;i===Pl;)Pl=vs[--xs],vs[xs]=null,Rl=vs[--xs],vs[xs]=null;for(;i===Si;)Si=Sn[--kn],Sn[kn]=null,gr=Sn[--kn],Sn[kn]=null,mr=Sn[--kn],Sn[kn]=null}var pn=null,mn=null,nt=!1,zn=null;function Dg(i,s){var u=Tn(5,null,null,0);u.elementType="DELETED",u.stateNode=s,u.return=i,s=i.deletions,s===null?(i.deletions=[u],i.flags|=16):s.push(u)}function Mg(i,s){switch(i.tag){case 5:var u=i.type;return s=s.nodeType!==1||u.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,pn=i,mn=Dr(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,pn=i,mn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(u=Si!==null?{id:mr,overflow:gr}:null,i.memoizedState={dehydrated:s,treeContext:u,retryLane:1073741824},u=Tn(18,null,null,0),u.stateNode=s,u.return=i,i.child=u,pn=i,mn=null,!0):!1;default:return!1}}function ud(i){return(i.mode&1)!==0&&(i.flags&128)===0}function cd(i){if(nt){var s=mn;if(s){var u=s;if(!Mg(i,s)){if(ud(i))throw Error(n(418));s=Dr(u.nextSibling);var d=pn;s&&Mg(i,s)?Dg(d,u):(i.flags=i.flags&-4097|2,nt=!1,pn=i)}}else{if(ud(i))throw Error(n(418));i.flags=i.flags&-4097|2,nt=!1,pn=i}}}function Fg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;pn=i}function Al(i){if(i!==pn)return!1;if(!nt)return Fg(i),nt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!td(i.type,i.memoizedProps)),s&&(s=mn)){if(ud(i))throw zg(),Error(n(418));for(;s;)Dg(i,s),s=Dr(s.nextSibling)}if(Fg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"){if(s===0){mn=Dr(i.nextSibling);break e}s--}else u!=="$"&&u!=="$!"&&u!=="$?"||s++}i=i.nextSibling}mn=null}}else mn=pn?Dr(i.stateNode.nextSibling):null;return!0}function zg(){for(var i=mn;i;)i=Dr(i.nextSibling)}function ws(){mn=pn=null,nt=!1}function dd(i){zn===null?zn=[i]:zn.push(i)}var rC=N.ReactCurrentBatchConfig;function Mo(i,s,u){if(i=u.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var d=u.stateNode}if(!d)throw Error(n(147,i));var m=d,y=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===y?s.ref:(s=function(S){var A=m.refs;S===null?delete A[y]:A[y]=S},s._stringRef=y,s)}if(typeof i!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,i))}return i}function Nl(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function Bg(i){var s=i._init;return s(i._payload)}function Ug(i){function s(U,D){if(i){var V=U.deletions;V===null?(U.deletions=[D],U.flags|=16):V.push(D)}}function u(U,D){if(!i)return null;for(;D!==null;)s(U,D),D=D.sibling;return null}function d(U,D){for(U=new Map;D!==null;)D.key!==null?U.set(D.key,D):U.set(D.index,D),D=D.sibling;return U}function m(U,D){return U=Kr(U,D),U.index=0,U.sibling=null,U}function y(U,D,V){return U.index=V,i?(V=U.alternate,V!==null?(V=V.index,V<D?(U.flags|=2,D):V):(U.flags|=2,D)):(U.flags|=1048576,D)}function S(U){return i&&U.alternate===null&&(U.flags|=2),U}function A(U,D,V,ne){return D===null||D.tag!==6?(D=nf(V,U.mode,ne),D.return=U,D):(D=m(D,V
vendor: 11,690 bytes, line 38
38),D.return=U,D)}function j(U,D,V,ne){var ve=V.type;return ve===Q?G(U,D,V.props.children,ne,V.key):D!==null&&(D.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ge&&Bg(ve)===D.type)?(ne=m(D,V.props),ne.ref=Mo(U,D,V),ne.return=U,ne):(ne=tu(V.type,V.key,V.props,null,U.mode,ne),ne.ref=Mo(U,D,V),ne.return=U,ne)}function $(U,D,V,ne){return D===null||D.tag!==4||D.stateNode.containerInfo!==V.containerInfo||D.stateNode.implementation!==V.implementation?(D=rf(V,U.mode,ne),D.return=U,D):(D=m(D,V.children||[]),D.return=U,D)}function G(U,D,V,ne,ve){return D===null||D.tag!==7?(D=Ni(V,U.mode,ne,ve),D.return=U,D):(D=m(D,V),D.return=U,D)}function Z(U,D,V){if(typeof D=="string"&&D!==""||typeof D=="number")return D=nf(""+D,U.mode,V),D.return=U,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case z:return V=tu(D.type,D.key,D.props,null,U.mode,V),V.ref=Mo(U,null,D),V.return=U,V;case O:return D=rf(D,U.mode,V),D.return=U,D;case ge:var ne=D._init;return Z(U,ne(D._payload),V)}if(In(D)||ue(D))return D=Ni(D,U.mode,V,null),D.return=U,D;Nl(U,D)}return null}function K(U,D,V,ne){var ve=D!==null?D.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return ve!==null?null:A(U,D,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case z:return V.key===ve?j(U,D,V,ne):null;case O:return V.key===ve?$(U,D,V,ne):null;case ge:return ve=V._init,K(U,D,ve(V._payload),ne)}if(In(V)||ue(V))return ve!==null?null:G(U,D,V,ne,null);Nl(U,V)}return null}function ce(U,D,V,ne,ve){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return U=U.get(V)||null,A(D,U,""+ne,ve);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case z:return U=U.get(ne.key===null?V:ne.key)||null,j(D,U,ne,ve);case O:return U=U.get(ne.key===null?V:ne.key)||null,$(D,U,ne,ve);case ge:var Se=ne._init;return ce(U,D,V,Se(ne._payload),ve)}if(In(ne)||ue(ne))return U=U.get(V)||null,G(D,U,ne,ve,null);Nl(D,ne)}return null}function he(U,D,V,ne){for(var ve=null,Se=null,ke=D,Ae=D=0,Et=null;ke!==null&&Ae<V.length;Ae++){ke.index>Ae?(Et=ke,ke=null):Et=ke.sibling;var qe=K(U,ke,V[Ae],ne);if(qe===null){ke===null&&(ke=Et);break}i&&ke&&qe.alternate===null&&s(U,ke),D=y(qe,D,Ae),Se===null?ve=qe:Se.sibling=qe,Se=qe,ke=Et}if(Ae===V.length)return u(U,ke),nt&&ki(U,Ae),ve;if(ke===null){for(;Ae<V.length;Ae++)ke=Z(U,V[Ae],ne),ke!==null&&(D=y(ke,D,Ae),Se===null?ve=ke:Se.sibling=ke,Se=ke);return nt&&ki(U,Ae),ve}for(ke=d(U,ke);Ae<V.length;Ae++)Et=ce(ke,U,Ae,V[Ae],ne),Et!==null&&(i&&Et.alternate!==null&&ke.delete(Et.key===null?Ae:Et.key),D=y(Et,D,Ae),Se===null?ve=Et:Se.sibling=Et,Se=Et);return i&&ke.forEach(function(Qr){return s(U,Qr)}),nt&&ki(U,Ae),ve}function ye(U,D,V,ne){var ve=ue(V);if(typeof ve!="function")throw Error(n(150));if(V=ve.call(V),V==null)throw Error(n(151));for(var Se=ve=null,ke=D,Ae=D=0,Et=null,qe=V.next();ke!==null&&!qe.done;Ae++,qe=V.next()){ke.index>Ae?(Et=ke,ke=null):Et=ke.sibling;var Qr=K(U,ke,qe.value,ne);if(Qr===null){ke===null&&(ke=Et);break}i&&ke&&Qr.alternate===null&&s(U,ke),D=y(Qr,D,Ae),Se===null?ve=Qr:Se.sibling=Qr,Se=Qr,ke=Et}if(qe.done)return u(U,ke),nt&&ki(U,Ae),ve;if(ke===null){for(;!qe.done;Ae++,qe=V.next())qe=Z(U,qe.value,ne),qe!==null&&(D=y(qe,D,Ae),Se===null?ve=qe:Se.sibling=qe,Se=qe);return nt&&ki(U,Ae),ve}for(ke=d(U,ke);!qe.done;Ae++,qe=V.next())qe=ce(ke,U,Ae,qe.value,ne),qe!==null&&(i&&qe.alternate!==null&&ke.delete(qe.key===null?Ae:qe.key),D=y(qe,D,Ae),Se===null?ve=qe:Se.sibling=qe,Se=qe);return i&&ke.forEach(function(DC){return s(U,DC)}),nt&&ki(U,Ae),ve}function ct(U,D,V,ne){if(typeof V=="object"&&V!==null&&V.type===Q&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case z:e:{for(var ve=V.key,Se=D;Se!==null;){if(Se.key===ve){if(ve=V.type,ve===Q){if(Se.tag===7){u(U,Se.sibling),D=m(Se,V.props.children),D.return=U,U=D;break e}}else if(Se.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ge&&Bg(ve)===Se.type){u(U,Se.sibling),D=m(Se,V.props),D.ref=Mo(U,Se,V),D.return=U,U=D;break e}u(U,Se);break}else s(U,Se);Se=Se.sibling}V.type===Q?(D=Ni(V.props.children,U.mode,ne,V.key),D.return=U,U=D):(ne=tu(V.type,V.key,V.props,null,U.mode,ne),ne.ref=Mo(U,D,V),ne.return=U,U=ne)}return S(U);case O:e:{for(Se=V.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){u(U,D.sibling),D=m(D,V.children||[]),D.return=U,U=D;break e}else{u(U,D);break}else s(U,D);D=D.sibling}D=rf(V,U.mode,ne),D.return=U,U=D}return S(U);case ge:return Se=V._init,ct(U,D,Se(V._payload),ne)}if(In(V))return he(U,D,V,ne);if(ue(V))return ye(U,D,V,ne);Nl(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,D!==null&&D.tag===6?(u(U,D.sibling),D=m(D,V),D.return=U,U=D):(u(U,D),D=nf(V,U.mode,ne),D.return=U,U=D),S(U)):u(U,D)}return ct}var bs=Ug(!0),Vg=Ug(!1),jl=Mr(null),Ol=null,Ss=null,fd=null;function hd(){fd=Ss=Ol=null}function pd(i){var s=jl.current;et(jl),i._currentValue=s}function md(i,s,u){for(;i!==null;){var d=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),i===u)break;i=i.return}}function ks(i,s){Ol=i,fd=Ss=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Zt=!0),i.firstContext=null)}function En(i){var s=i._currentValue;if(fd!==i)if(i={context:i,memoizedValue:s,next:null},Ss===null){if(Ol===null)throw Error(n(308));Ss=i,Ol.dependencies={lanes:0,firstContext:i}}else Ss=Ss.next=i;return s}var Ei=null;function gd(i){Ei===null?Ei=[i]:Ei.push(i)}function $g(i,s,u,d){var m=s.interleaved;return m===null?(u.next=u,gd(s)):(u.next=m.next,m.next=u),s.interleaved=u,yr(i,d)}function yr(i,s){i.lanes|=s;var u=i.alternate;for(u!==null&&(u.lanes|=s),u=i,i=i.return;i!==null;)i.childLanes|=s,u=i.alternate,u!==null&&(u.childLanes|=s),u=i,i=i.return;return u.tag===3?u.stateNode:null}var Br=!1;function yd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qg(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function vr(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Ur(i,s,u){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,($e&2)!==0){var m=d.pending;return m===null?s.next=s:(s.next=m.next,m.next=s),d.pending=s,yr(i,u)}return m=d.interleaved,m===null?(s.next=s,gd(d)):(s.next=m.next,m.next=s),d.interleaved=s,yr(i,u)}function Ll(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194240)!==0)){var d=s.lanes;d&=i.pendingLanes,u|=d,s.lanes=u,Nc(i,u)}}function Hg(i,s){var u=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var m=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var S={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};y===null?m=y=S:y=y.next=S,u=u.next}while(u!==null);y===null?m=y=s:y=y.next=s}else m=y=s;u={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:d.shared,effects:d.effects},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}function Il(i,s,u,d){var m=i.updateQueue;Br=!1;var y=m.firstBaseUpdate,S=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var j=A,$=j.next;j.next=null,S===null?y=$:S.next=$,S=j;var G=i.alternate;G!==null&&(G=G.updateQueue,A=G.lastBaseUpdate,A!==S&&(A===null?G.firstBaseUpdate=$:A.next=$,G.lastBaseUpdate=j))}if(y!==null){var Z=m.baseState;S=0,G=$=j=null,A=y;do{var K=A.lane,ce=A.eventTime;if((d&K)===K){G!==null&&(G=G.next={eventTime:ce,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var he=i,ye=A;switch(K=s,ce=u,ye.tag){case 1:if(he=ye.payload,typeof he=="function"){Z=he.call(ce,Z,K);break e}Z=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ye.payload,K=typeof he=="function"?he.call(ce,Z,K):he,K==null)break e;Z=E({},Z,K);break e;case 2:Br=!0}}A.callback!==null&&A.lane!==0&&(i.flags|=64,K=m.effects,K===null?m.effects=[A]:K.push(A))}else ce={eventTime:ce,lane:K,tag:A.tag,payload:A.payload,callback:A.callback,next:null},G===null?($=G=ce,j=Z):G=G.next=ce,S|=K;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;K=A,A=K.next,K.next=null,m.lastBaseUpdate=K,m.shared.pending=null}}while(!0);if(G===null&&(j=Z),m.baseState=j,m.firstBaseUpdate=$,m.lastBaseUpdate=G,s=m.shared.interleaved,s!==null){m=s;do S|=m.lane,m=m.next;while(m!==s)}else y===null&&(m.shared.lanes=0);Ti|=S,i.lanes=S,i.memoizedState=Z}}function Wg(i,s,u){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var d=i[s],m=d.callback;if(m!==null){if(d.callback=null,d=u,typeof m!="function")throw Error(n(191,m));m.call(d)}}}var Fo={},Zn=Mr(Fo),zo=Mr(Fo),Bo=Mr(Fo);function Ci(i){if(i===Fo)throw Error(n(174));return i}function vd(i,s){switch(Ge(Bo,s),Ge(zo,i),Ge(Zn,Fo),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:se(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=se(s,i)}et(Zn),Ge(Zn,s)}function Es(){et(Zn),et(zo),et(Bo)}function Kg(i){Ci(Bo.current);var s=Ci(Zn.current),u=se(s,i.type);s!==u&&(Ge(zo,i),Ge(Zn,u))}function xd(i){zo.current===i&&(et(Zn),et(zo))}var rt=Mr(0);function Dl(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wd=[];function bd(){for(var i=0;i<wd.length;i++)wd[i]._workInProgressVersionPrimary=null;wd.length=0}var Ml=N.ReactCurrentDispatcher,Sd=N.ReactCurrentBatchConfig,_i=0,it=null,xt=null,St=null,Fl=!1,Uo=!1,Vo=0,iC=0;function Dt(){throw Error(n(321))}function kd(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Fn(i[u],s[u]))return!1;return!0}function Ed(i,s,u,d,m,y){if(_i=y,it=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Ml.current=i===null||i.memoizedState===null?lC:uC,i=u(d,m),Uo){y=0;do{if(Uo=!1,Vo=0,25<=y)throw Error(n(301));y+=1,St=xt=null,s.updateQueue=null,Ml.current=cC,i=u(d,m)}while(Uo)}if(Ml.current=Ul,s=xt!==null&&xt.next!==null,_i=0,St=xt=it=null,Fl=!1,s)throw Error(n(300));return i}function Cd(){var i=Vo!==0;return Vo=0,i}function er(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?it.memoizedState=St=i:St=St.next=i,St}function Cn(){if(xt===null){var i=it.alternate;i=i!==null?i.memoizedState:null}else i=xt.next;var s=St===null?it.memoizedState:St.next;if(s!==null)St=s,xt=i;else{if(i===null)throw Error(n(310));xt=i,i={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},St===null?it.memoizedState=St=i:St=St.next=i}return St}function $o(i,s){return typeof s=="function"?s(i):s}function _d(i){var s=Cn(),u=s.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=i;var d=xt,m=d.baseQueue,y=u.pending;if(y!==null){if(m!==null){var S=m.next;m.next=y.next,y.next=S}d.baseQueue=m=y,u.pending=null}if(m!==null){y=m.next,d=d.baseState;var A=S=null,j=null,$=y;do{var G=$.lane;if((_i&G)===G)j!==null&&(j=j.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),d=$.hasEagerState?$.eagerState:i(d,$.action);else{var Z={lane:G,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};j===null?(A=j=Z,S=d):j=j.next=Z,it.lanes|=G,Ti|=G}
vendor: 5,182 bytes, line 38
38$=$.next}while($!==null&&$!==y);j===null?S=d:j.next=A,Fn(d,s.memoizedState)||(Zt=!0),s.memoizedState=d,s.baseState=S,s.baseQueue=j,u.lastRenderedState=d}if(i=u.interleaved,i!==null){m=i;do y=m.lane,it.lanes|=y,Ti|=y,m=m.next;while(m!==i)}else m===null&&(u.lanes=0);return[s.memoizedState,u.dispatch]}function Td(i){var s=Cn(),u=s.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=i;var d=u.dispatch,m=u.pending,y=s.memoizedState;if(m!==null){u.pending=null;var S=m=m.next;do y=i(y,S.action),S=S.next;while(S!==m);Fn(y,s.memoizedState)||(Zt=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),u.lastRenderedState=y}return[y,d]}function Qg(){}function Gg(i,s){var u=it,d=Cn(),m=s(),y=!Fn(d.memoizedState,m);if(y&&(d.memoizedState=m,Zt=!0),d=d.queue,Pd(Jg.bind(null,u,d,i),[i]),d.getSnapshot!==s||y||St!==null&&St.memoizedState.tag&1){if(u.flags|=2048,qo(9,Yg.bind(null,u,d,m,s),void 0,null),kt===null)throw Error(n(349));(_i&30)!==0||Xg(u,s,m)}return m}function Xg(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=it.updateQueue,s===null?(s={lastEffect:null,stores:null},it.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function Yg(i,s,u,d){s.value=u,s.getSnapshot=d,Zg(s)&&ey(i)}function Jg(i,s,u){return u(function(){Zg(s)&&ey(i)})}function Zg(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Fn(i,u)}catch{return!0}}function ey(i){var s=yr(i,1);s!==null&&$n(s,i,1,-1)}function ty(i){var s=er();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:i},s.queue=i,i=i.dispatch=aC.bind(null,it,i),[s.memoizedState,i]}function qo(i,s,u,d){return i={tag:i,create:s,destroy:u,deps:d,next:null},s=it.updateQueue,s===null?(s={lastEffect:null,stores:null},it.updateQueue=s,s.lastEffect=i.next=i):(u=s.lastEffect,u===null?s.lastEffect=i.next=i:(d=u.next,u.next=i,i.next=d,s.lastEffect=i)),i}function ny(){return Cn().memoizedState}function zl(i,s,u,d){var m=er();it.flags|=i,m.memoizedState=qo(1|s,u,void 0,d===void 0?null:d)}function Bl(i,s,u,d){var m=Cn();d=d===void 0?null:d;var y=void 0;if(xt!==null){var S=xt.memoizedState;if(y=S.destroy,d!==null&&kd(d,S.deps)){m.memoizedState=qo(s,u,y,d);return}}it.flags|=i,m.memoizedState=qo(1|s,u,y,d)}function ry(i,s){return zl(8390656,8,i,s)}function Pd(i,s){return Bl(2048,8,i,s)}function iy(i,s){return Bl(4,2,i,s)}function sy(i,s){return Bl(4,4,i,s)}function oy(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function ay(i,s,u){return u=u!=null?u.concat([i]):null,Bl(4,4,oy.bind(null,s,i),u)}function Rd(){}function ly(i,s){var u=Cn();s=s===void 0?null:s;var d=u.memoizedState;return d!==null&&s!==null&&kd(s,d[1])?d[0]:(u.memoizedState=[i,s],i)}function uy(i,s){var u=Cn();s=s===void 0?null:s;var d=u.memoizedState;return d!==null&&s!==null&&kd(s,d[1])?d[0]:(i=i(),u.memoizedState=[i,s],i)}function cy(i,s,u){return(_i&21)===0?(i.baseState&&(i.baseState=!1,Zt=!0),i.memoizedState=u):(Fn(u,s)||(u=Bm(),it.lanes|=u,Ti|=u,i.baseState=!0),s)}function sC(i,s){var u=Ke;Ke=u!==0&&4>u?u:4,i(!0);var d=Sd.transition;Sd.transition={};try{i(!1),s()}finally{Ke=u,Sd.transition=d}}function dy(){return Cn().memoizedState}function oC(i,s,u){var d=Hr(i);if(u={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null},fy(i))hy(s,u);else if(u=$g(i,s,u,d),u!==null){var m=Kt();$n(u,i,d,m),py(u,s,d)}}function aC(i,s,u){var d=Hr(i),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(fy(i))hy(s,m);else{var y=i.alternate;if(i.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var S=s.lastRenderedState,A=y(S,u);if(m.hasEagerState=!0,m.eagerState=A,Fn(A,S)){var j=s.interleaved;j===null?(m.next=m,gd(s)):(m.next=j.next,j.next=m),s.interleaved=m;return}}catch{}finally{}u=$g(i,s,m,d),u!==null&&(m=Kt(),$n(u,i,d,m),py(u,s,d))}}function fy(i){var s=i.alternate;return i===it||s!==null&&s===it}function hy(i,s){Uo=Fl=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function py(i,s,u){if((u&4194240)!==0){var d=s.lanes;d&=i.pendingLanes,u|=d,s.lanes=u,Nc(i,u)}}var Ul={readContext:En,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},lC={readContext:En,useCallback:function(i,s){return er().memoizedState=[i,s===void 0?null:s],i},useContext:En,useEffect:ry,useImperativeHandle:function(i,s,u){return u=u!=null?u.concat([i]):null,zl(4194308,4,oy.bind(null,s,i),u)},useLayoutEffect:function(i,s){return zl(4194308,4,i,s)},useInsertionEffect:function(i,s){return zl(4,2,i,s)},useMemo:function(i,s){var u=er();return s=s===void 0?null:s,i=i(),u.memoizedState=[i,s],i},useReducer:function(i,s,u){var d=er();return s=u!==void 0?u(s):s,d.memoizedState=d.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},d.queue=i,i=i.dispatch=oC.bind(null,it,i),[d.memoizedState,i]}
vendor: 11,975 bytes, lines 38-40
38,useRef:function(i){var s=er();return i={current:i},s.memoizedState=i},useState:ty,useDebugValue:Rd,useDeferredValue:function(i){return er().memoizedState=i},useTransition:function(){var i=ty(!1),s=i[0];return i=sC.bind(null,i[1]),er().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,u){var d=it,m=er();if(nt){if(u===void 0)throw Error(n(407));u=u()}else{if(u=s(),kt===null)throw Error(n(349));(_i&30)!==0||Xg(d,s,u)}m.memoizedState=u;var y={value:u,getSnapshot:s};return m.queue=y,ry(Jg.bind(null,d,y,i),[i]),d.flags|=2048,qo(9,Yg.bind(null,d,y,u,s),void 0,null),u},useId:function(){var i=er(),s=kt.identifierPrefix;if(nt){var u=gr,d=mr;u=(d&~(1<<32-Mn(d)-1)).toString(32)+u,s=":"+s+"R"+u,u=Vo++,0<u&&(s+="H"+u.toString(32)),s+=":"}else u=iC++,s=":"+s+"r"+u.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},uC={readContext:En,useCallback:ly,useContext:En,useEffect:Pd,useImperativeHandle:ay,useInsertionEffect:iy,useLayoutEffect:sy,useMemo:uy,useReducer:_d,useRef:ny,useState:function(){return _d($o)},useDebugValue:Rd,useDeferredValue:function(i){var s=Cn();return cy(s,xt.memoizedState,i)},useTransition:function(){var i=_d($o)[0],s=Cn().memoizedState;return[i,s]},useMutableSource:Qg,useSyncExternalStore:Gg,useId:dy,unstable_isNewReconciler:!1},cC={readContext:En,useCallback:ly,useContext:En,useEffect:Pd,useImperativeHandle:ay,useInsertionEffect:iy,useLayoutEffect:sy,useMemo:uy,useReducer:Td,useRef:ny,useState:function(){return Td($o)},useDebugValue:Rd,useDeferredValue:function(i){var s=Cn();return xt===null?s.memoizedState=i:cy(s,xt.memoizedState,i)},useTransition:function(){var i=Td($o)[0],s=Cn().memoizedState;return[i,s]},useMutableSource:Qg,useSyncExternalStore:Gg,useId:dy,unstable_isNewReconciler:!1};function Bn(i,s){if(i&&i.defaultProps){s=E({},s),i=i.defaultProps;for(var u in i)s[u]===void 0&&(s[u]=i[u]);return s}return s}function Ad(i,s,u,d){s=i.memoizedState,u=u(d,s),u=u==null?s:E({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Vl={isMounted:function(i){return(i=i._reactInternals)?xi(i)===i:!1},enqueueSetState:function(i,s,u){i=i._reactInternals;var d=Kt(),m=Hr(i),y=vr(d,m);y.payload=s,u!=null&&(y.callback=u),s=Ur(i,y,m),s!==null&&($n(s,i,m,d),Ll(s,i,m))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var d=Kt(),m=Hr(i),y=vr(d,m);y.tag=1,y.payload=s,u!=null&&(y.callback=u),s=Ur(i,y,m),s!==null&&($n(s,i,m,d),Ll(s,i,m))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=Kt(),d=Hr(i),m=vr(u,d);m.tag=2,s!=null&&(m.callback=s),s=Ur(i,m,d),s!==null&&($n(s,i,d,u),Ll(s,i,d))}};function my(i,s,u,d,m,y,S){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,y,S):s.prototype&&s.prototype.isPureReactComponent?!Ao(u,d)||!Ao(m,y):!0}function gy(i,s,u){var d=!1,m=Fr,y=s.contextType;return typeof y=="object"&&y!==null?y=En(y):(m=Jt(s)?bi:It.current,d=s.contextTypes,y=(d=d!=null)?ys(i,m):Fr),s=new s(u,y),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Vl,i.stateNode=s,s._reactInternals=i,d&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=m,i.__reactInternalMemoizedMaskedChildContext=y),s}function yy(i,s,u,d){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,d),s.state!==i&&Vl.enqueueReplaceState(s,s.state,null)}function Nd(i,s,u,d){var m=i.stateNode;m.props=u,m.state=i.memoizedState,m.refs={},yd(i);var y=s.contextType;typeof y=="object"&&y!==null?m.context=En(y):(y=Jt(s)?bi:It.current,m.context=ys(i,y)),m.state=i.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(Ad(i,s,y,u),m.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(s=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),s!==m.state&&Vl.enqueueReplaceState(m,m.state,null),Il(i,u,m,d),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308)}function Cs(i,s){try{var u="",d=s;do u+=we(d),d=d.return;while(d);var m=u}catch(y){m=` 39Error generating stack: `+y.message+` 40`+y.stack}return{value:i,source:s,stack:m,digest:null}}function jd(i,s,u){return{value:i,source:null,stack:u??null,digest:s??null}}function Od(i,s){try{console.error(s.value)}catch(u){setTimeout(function(){throw u})}}var dC=typeof WeakMap=="function"?WeakMap:Map;function vy(i,s,u){u=vr(-1,u),u.tag=3,u.payload={element:null};var d=s.value;return u.callback=function(){Gl||(Gl=!0,Qd=d),Od(i,s)},u}function xy(i,s,u){u=vr(-1,u),u.tag=3;var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=s.value;u.payload=function(){return d(m)},u.callback=function(){Od(i,s)}}var y=i.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){Od(i,s),typeof d!="function"&&($r===null?$r=new Set([this]):$r.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})}),u}function wy(i,s,u){var d=i.pingCache;if(d===null){d=i.pingCache=new dC;var m=new Set;d.set(s,m)}else m=d.get(s),m===void 0&&(m=new Set,d.set(s,m));m.has(u)||(m.add(u),i=CC.bind(null,i,s,u),s.then(i,i))}function by(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Sy(i,s,u,d,m){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(s=vr(-1,1),s.tag=2,Ur(u,s,1))),u.lanes|=1),i):(i.flags|=65536,i.lanes=m,i)}var fC=N.ReactCurrentOwner,Zt=!1;function Wt(i,s,u,d){s.child=i===null?Vg(s,null,u,d):bs(s,i.child,u,d)}function ky(i,s,u,d,m){u=u.render;var y=s.ref;return ks(s,m),d=Ed(i,s,u,d,y,m),u=Cd(),i!==null&&!Zt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,xr(i,s,m)):(nt&&u&&ad(s),s.flags|=1,Wt(i,s,d,m),s.child)}function Ey(i,s,u,d,m){if(i===null){var y=u.type;return typeof y=="function"&&!tf(y)&&y.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(s.tag=15,s.type=y,Cy(i,s,y,d,m)):(i=tu(u.type,null,d,s,s.mode,m),i.ref=s.ref,i.return=s,s.child=i)}if(y=i.child,(i.lanes&m)===0){var S=y.memoizedProps;if(u=u.compare,u=u!==null?u:Ao,u(S,d)&&i.ref===s.ref)return xr(i,s,m)}return s.flags|=1,i=Kr(y,d),i.ref=s.ref,i.return=s,s.child=i}function Cy(i,s,u,d,m){if(i!==null){var y=i.memoizedProps;if(Ao(y,d)&&i.ref===s.ref)if(Zt=!1,s.pendingProps=d=y,(i.lanes&m)!==0)(i.flags&131072)!==0&&(Zt=!0);else return s.lanes=i.lanes,xr(i,s,m)}return Ld(i,s,u,d,m)}function _y(i,s,u){var d=s.pendingProps,m=d.children,y=i!==null?i.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(Ts,gn),gn|=u;else{if((u&1073741824)===0)return i=y!==null?y.baseLanes|u:u,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Ge(Ts,gn),gn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:u,Ge(Ts,gn),gn|=d}else y!==null?(d=y.baseLanes|u,s.memoizedState=null):d=u,Ge(Ts,gn),gn|=d;return Wt(i,s,m,u),s.child}function Ty(i,s){var u=s.ref;(i===null&&u!==null||i!==null&&i.ref!==u)&&(s.flags|=512,s.flags|=2097152)}function Ld(i,s,u,d,m){var y=Jt(u)?bi:It.current;return y=ys(s,y),ks(s,m),u=Ed(i,s,u,d,y,m),d=Cd(),i!==null&&!Zt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~m,xr(i,s,m)):(nt&&d&&ad(s),s.flags|=1,Wt(i,s,u,m),s.child)}function Py(i,s,u,d,m){if(Jt(u)){var y=!0;_l(s)}else y=!1;if(ks(s,m),s.stateNode===null)ql(i,s),gy(s,u,d),Nd(s,u,d,m),d=!0;else if(i===null){var S=s.stateNode,A=s.memoizedProps;S.props=A;var j=S.context,$=u.contextType;typeof $=="object"&&$!==null?$=En($):($=Jt(u)?bi:It.current,$=ys(s,$));var G=u.getDerivedStateFromProps,Z=typeof G=="function"||typeof S.getSnapshotBeforeUpdate=="function";Z||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(A!==d||j!==$)&&yy(s,S,d,$),Br=!1;var K=s.memoizedState;S.state=K,Il(s,d,S,m),j=s.memoizedState,A!==d||K!==j||Yt.current||Br?(typeof G=="function"&&(Ad(s,u,G,d),j=s.memoizedState),(A=Br||my(s,u,A,d,K,j,$))?(Z||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=j),S.props=d,S.state=j,S.context=$,d=A):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{S=s.stateNode,qg(i,s),A=s.memoizedProps,$=s.type===s.elementType?A:Bn(s.type,A),S.props=$,Z=s.pendingProps,K=S.context,j=u.contextType,typeof j=="object"&&j!==null?j=En(j):(j=Jt(u)?bi:It.current,j=ys(s,j));var ce=u.getDerivedStateFromProps;(G=typeof ce=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(A!==Z||K!==j)&&yy(s,S,d,j),Br=!1,K=s.memoizedState,S.state=K,Il(s,d,S,m);var he=s.memoizedState;A!==Z||K!==he||Yt.current||Br?(typeof ce=="function"&&(Ad(s,u,ce,d),he=s.memoizedState),($=Br||my(s,u,$,d,K,he,j)||!1)?(G||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(d,he,j),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(d,he,j)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||A===i.memoizedProps&&K===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||A===i.memoizedProps&&K===i.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=he),S.props=d,S.state=he,S.context=j,d=$):(typeof S.componentDidUpdate!="function"||A===i.memoizedProps&&K===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||A===i.memoizedProps&&K===i.memoizedState||(s.flags|=1024),d=!1)}return Id(i,s,u,d,y,m)}function Id(i,s,u,d,m,y){Ty(i,s);var S=(s.flags&128)!==0;if(!d&&!S)return m&&Og(s,u,!1),xr(i,s,y);d=s.stateNode,fC.current=s;var A=S&&typeof u.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,i!==null&&S?(s.child=bs(s,i.child,null,y),s.child=bs(s,null,A,y)):Wt(i,s,A,y),s.memoizedState=d.state,m&&Og(s,u,!0),s.child}function Ry(i){var s=i.stateNode;s.pendingContext?Ng(i,s.pendingContext,s.pendingContext!==s.context):s.context&&Ng(i,s.context,!1),vd(i,s.containerInfo)}function Ay(i,s,u,d,m){return ws(),dd(m),s.flags|=256,Wt(i,s,u,d),s.child}var Dd={dehydrated:null,treeContext:null,retryLane:0};function Md(i){return{baseLanes:i,cachePool:null,transitions:null}}function Ny(i,s,u){var d=s.pendingProps,m=rt.current,y=!1,S=(s.flags&128)!==0,A;if((A=S)||(A=i!==null&&i.memoizedState===null?!1:(m&2)!==0),A?(y=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(m|=1),Ge(rt,m&1),i===null)return cd(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(S=d.children,i=d.fallback,y?(d=s.mode,y=s.child,S={mode:"hidden",children:S},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=S):y=nu(S,d,0,null),i=Ni(i,d,u,null),y.return=s,i.return=s,y.sibling=i,s.child=y,s.child.memoizedState=Md(u),s.memoizedState=Dd,i):Fd(s,S));if(m=i.memoizedState,m!==null&&(A=m.dehydrated,A!==null))return hC(i,s,S,d,A,m,u);if(y){y=d.fallback,S=s.mode,m=i.child,A=m.sibling;var j={mode:"hidden",children:d.children};return(S&1)===0&&s.child!==m?(d=s.child,d.childLanes=0,d.pendingProps=j,s.deleti
vendor: 32,756 bytes, line 40
40ons=null):(d=Kr(m,j),d.subtreeFlags=m.subtreeFlags&14680064),A!==null?y=Kr(A,y):(y=Ni(y,S,u,null),y.flags|=2),y.return=s,d.return=s,d.sibling=y,s.child=d,d=y,y=s.child,S=i.child.memoizedState,S=S===null?Md(u):{baseLanes:S.baseLanes|u,cachePool:null,transitions:S.transitions},y.memoizedState=S,y.childLanes=i.childLanes&~u,s.memoizedState=Dd,d}return y=i.child,i=y.sibling,d=Kr(y,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=u),d.return=s,d.sibling=null,i!==null&&(u=s.deletions,u===null?(s.deletions=[i],s.flags|=16):u.push(i)),s.child=d,s.memoizedState=null,d}function Fd(i,s){return s=nu({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function $l(i,s,u,d){return d!==null&&dd(d),bs(s,i.child,null,u),i=Fd(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function hC(i,s,u,d,m,y,S){if(u)return s.flags&256?(s.flags&=-257,d=jd(Error(n(422))),$l(i,s,S,d)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(y=d.fallback,m=s.mode,d=nu({mode:"visible",children:d.children},m,0,null),y=Ni(y,m,S,null),y.flags|=2,d.return=s,y.return=s,d.sibling=y,s.child=d,(s.mode&1)!==0&&bs(s,i.child,null,S),s.child.memoizedState=Md(S),s.memoizedState=Dd,y);if((s.mode&1)===0)return $l(i,s,S,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var A=d.dgst;return d=A,y=Error(n(419)),d=jd(y,d,void 0),$l(i,s,S,d)}if(A=(S&i.childLanes)!==0,Zt||A){if(d=kt,d!==null){switch(S&-S){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(d.suspendedLanes|S))!==0?0:m,m!==0&&m!==y.retryLane&&(y.retryLane=m,yr(i,m),$n(d,i,m,-1))}return ef(),d=jd(Error(n(421))),$l(i,s,S,d)}return m.data==="$?"?(s.flags|=128,s.child=i.child,s=_C.bind(null,i),m._reactRetry=s,null):(i=y.treeContext,mn=Dr(m.nextSibling),pn=s,nt=!0,zn=null,i!==null&&(Sn[kn++]=mr,Sn[kn++]=gr,Sn[kn++]=Si,mr=i.id,gr=i.overflow,Si=s),s=Fd(s,d.children),s.flags|=4096,s)}function jy(i,s,u){i.lanes|=s;var d=i.alternate;d!==null&&(d.lanes|=s),md(i.return,s,u)}function zd(i,s,u,d,m){var y=i.memoizedState;y===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:m}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=u,y.tailMode=m)}function Oy(i,s,u){var d=s.pendingProps,m=d.revealOrder,y=d.tail;if(Wt(i,s,d.children,u),d=rt.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&jy(i,u,s);else if(i.tag===19)jy(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}d&=1}if(Ge(rt,d),(s.mode&1)===0)s.memoizedState=null;else switch(m){case"forwards":for(u=s.child,m=null;u!==null;)i=u.alternate,i!==null&&Dl(i)===null&&(m=u),u=u.sibling;u=m,u===null?(m=s.child,s.child=null):(m=u.sibling,u.sibling=null),zd(s,!1,m,u,y);break;case"backwards":for(u=null,m=s.child,s.child=null;m!==null;){if(i=m.alternate,i!==null&&Dl(i)===null){s.child=m;break}i=m.sibling,m.sibling=u,u=m,m=i}zd(s,!0,u,null,y);break;case"together":zd(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ql(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function xr(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),Ti|=s.lanes,(u&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,u=Kr(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Kr(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function pC(i,s,u){switch(s.tag){case 3:Ry(s),ws();break;case 5:Kg(s);break;case 1:Jt(s.type)&&_l(s);break;case 4:vd(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,m=s.memoizedProps.value;Ge(jl,d._currentValue),d._currentValue=m;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(Ge(rt,rt.current&1),s.flags|=128,null):(u&s.child.childLanes)!==0?Ny(i,s,u):(Ge(rt,rt.current&1),i=xr(i,s,u),i!==null?i.sibling:null);Ge(rt,rt.current&1);break;case 19:if(d=(u&s.childLanes)!==0,(i.flags&128)!==0){if(d)return Oy(i,s,u);s.flags|=128}if(m=s.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Ge(rt,rt.current),d)break;return null;case 22:case 23:return s.lanes=0,_y(i,s,u)}return xr(i,s,u)}var Ly,Bd,Iy,Dy;Ly=function(i,s){for(var u=s.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Bd=function(){},Iy=function(i,s,u,d){var m=i.memoizedProps;if(m!==d){i=s.stateNode,Ci(Zn.current);var y=null;switch(u){case"input":m=Gt(i,m),d=Gt(i,d),y=[];break;case"select":m=E({},m,{value:void 0}),d=E({},d,{value:void 0}),y=[];break;case"textarea":m=Dn(i,m),d=Dn(i,d),y=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(i.onclick=kl)}Pt(u,d);var S;u=null;for($ in m)if(!d.hasOwnProperty($)&&m.hasOwnProperty($)&&m[$]!=null)if($==="style"){var A=m[$];for(S in A)A.hasOwnProperty(S)&&(u||(u={}),u[S]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?y||(y=[]):(y=y||[]).push($,null));for($ in d){var j=d[$];if(A=m!=null?m[$]:void 0,d.hasOwnProperty($)&&j!==A&&(j!=null||A!=null))if($==="style")if(A){for(S in A)!A.hasOwnProperty(S)||j&&j.hasOwnProperty(S)||(u||(u={}),u[S]="");for(S in j)j.hasOwnProperty(S)&&A[S]!==j[S]&&(u||(u={}),u[S]=j[S])}else u||(y||(y=[]),y.push($,u)),u=j;else $==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,A=A?A.__html:void 0,j!=null&&A!==j&&(y=y||[]).push($,j)):$==="children"?typeof j!="string"&&typeof j!="number"||(y=y||[]).push($,""+j):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(j!=null&&$==="onScroll"&&Ze("scroll",i),y||A===j||(y=[])):(y=y||[]).push($,j))}u&&(y=y||[]).push("style",u);var $=y;(s.updateQueue=$)&&(s.flags|=4)}},Dy=function(i,s,u,d){u!==d&&(s.flags|=4)};function Ho(i,s){if(!nt)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function Mt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,d=0;if(s)for(var m=i.child;m!==null;)u|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)u|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=d,i.childLanes=u,s}function mC(i,s,u){var d=s.pendingProps;switch(ld(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(s),null;case 1:return Jt(s.type)&&Cl(),Mt(s),null;case 3:return d=s.stateNode,Es(),et(Yt),et(It),bd(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(i===null||i.child===null)&&(Al(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,zn!==null&&(Yd(zn),zn=null))),Bd(i,s),Mt(s),null;case 5:xd(s);var m=Ci(Bo.current);if(u=s.type,i!==null&&s.stateNode!=null)Iy(i,s,u,d,m),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(n(166));return Mt(s),null}if(i=Ci(Zn.current),Al(s)){d=s.stateNode,u=s.type;var y=s.memoizedProps;switch(d[Jn]=s,d[Io]=y,i=(s.mode&1)!==0,u){case"dialog":Ze("cancel",d),Ze("close",d);break;case"iframe":case"object":case"embed":Ze("load",d);break;case"video":case"audio":for(m=0;m<jo.length;m++)Ze(jo[m],d);break;case"source":Ze("error",d);break;case"img":case"image":case"link":Ze("error",d),Ze("load",d);break;case"details":Ze("toggle",d);break;case"input":Ht(d,y),Ze("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},Ze("invalid",d);break;case"textarea":Za(d,y),Ze("invalid",d)}Pt(u,y),m=null;for(var S in y)if(y.hasOwnProperty(S)){var A=y[S];S==="children"?typeof A=="string"?d.textContent!==A&&(y.suppressHydrationWarning!==!0&&Sl(d.textContent,A,i),m=["children",A]):typeof A=="number"&&d.textContent!==""+A&&(y.suppressHydrationWarning!==!0&&Sl(d.textContent,A,i),m=["children",""+A]):o.hasOwnProperty(S)&&A!=null&&S==="onScroll"&&Ze("scroll",d)}switch(u){case"input":_t(d),dn(d,y,!0);break;case"textarea":_t(d),tl(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=kl)}d=m,s.updateQueue=d,d!==null&&(s.flags|=4)}else{S=m.nodeType===9?m:m.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=H(u)),i==="http://www.w3.org/1999/xhtml"?u==="script"?(i=S.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof d.is=="string"?i=S.createElement(u,{is:d.is}):(i=S.createElement(u),u==="select"&&(S=i,d.multiple?S.multiple=!0:d.size&&(S.size=d.size))):i=S.createElementNS(i,u),i[Jn]=s,i[Io]=d,Ly(i,s,!1,!1),s.stateNode=i;e:{switch(S=Xn(u,d),u){case"dialog":Ze("cancel",i),Ze("close",i),m=d;break;case"iframe":case"object":case"embed":Ze("load",i),m=d;break;case"video":case"audio":for(m=0;m<jo.length;m++)Ze(jo[m],i);m=d;break;case"source":Ze("error",i),m=d;break;case"img":case"image":case"link":Ze("error",i),Ze("load",i),m=d;break;case"details":Ze("toggle",i),m=d;break;case"input":Ht(i,d),m=Gt(i,d),Ze("invalid",i);break;case"option":m=d;break;case"select":i._wrapperState={wasMultiple:!!d.multiple},m=E({},d,{value:void 0}),Ze("invalid",i);break;case"textarea":Za(i,d),m=Dn(i,d),Ze("invalid",i);break;default:m=d}Pt(u,m),A=m;for(y in A)if(A.hasOwnProperty(y)){var j=A[y];y==="style"?Rr(i,j):y==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&Ie(i,j)):y==="children"?typeof j=="string"?(u!=="textarea"||j!=="")&&Ve(i,j):typeof j=="number"&&Ve(i,""+j):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(o.hasOwnProperty(y)?j!=null&&y==="onScroll"&&Ze("scroll",i):j!=null&&T(i,y,j,S))}switch(u){case"input":_t(i),dn(i,d,!1);break;case"textarea":_t(i),tl(i);break;case"option":d.value!=null&&i.setAttribute("value",""+je(d.value));break;case"select":i.multiple=!!d.multiple,y=d.value,y!=null?Gn(i,!!d.multiple,y,!1):d.defaultValue!=null&&Gn(i,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(i.onclick=kl)}switch(u){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Mt(s),null;case 6:if(i&&s.stateNode!=null)Dy(i,s,i.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(n(166));if(u=Ci(Bo.current),Ci(Zn.current),Al(s)){if(d=s.stateNode,u=s.memoizedProps,d[Jn]=s,(y=d.nodeValue!==u)&&(i=pn,i!==null))switch(i.tag){case 3:Sl(d.nodeValue,u,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Sl(d.nodeValue,u,(i.mode&1)!==0)}y&&(s.flags|=4)}else d=(u.nodeType===9?u:u.ownerDocument).createTextNode(d),d[Jn]=s,s.stateNode=d}return Mt(s),null;case 13:if(et(rt),d=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(nt&&mn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)zg(),ws(),s.flags|=98560,y=!1;else if(y=Al(s),d!==null&&d.dehydrated!==null){if(i===null){if(!y)throw Error(n(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Jn]=s}else ws(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Mt(s),y=!1}else zn!==null&&(Yd(zn),zn=null),y=!0;if(!y)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=u,s):(d=d!==null,d!==(i!==null&&i.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(rt.current&1)!==0?wt===0&&(wt=3):ef())),s.updateQueue!==null&&(s.flags|=4),Mt(s),null);case 4:return Es(),Bd(i,s),i===null&&Oo(s.stateNode.containerInfo),Mt(s),null;case 10:return pd(s.type._context),Mt(s),null;case 17:return Jt(s.type)&&Cl(),Mt(s),null;case 19:if(et(rt),y=s.memoizedState,y===null)return Mt(s),null;if(d=(s.flags&128)!==0,S=y.rendering,S===null)if(d)Ho(y,!1);else{if(wt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(S=Dl(i),S!==null){for(s.flags|=128,Ho(y,!1),d=S.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=u,u=s.child;u!==null;)y=u,i=d,y.flags&=14680066,S=y.alternate,S===null?(y.childLanes=0,y.lanes=i,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=S.childLanes,y.lanes=S.lanes,y.child=S.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=S.memoizedProps,y.memoizedState=S.memoizedState,y.updateQueue=S.updateQueue,y.type=S.type,i=S.dependencies,y.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),u=u.sibling;return Ge(rt,rt.current&1|2),s.child}i=i.sibling}y.tail!==null&&ut()>Ps&&(s.flags|=128,d=!0,Ho(y,!1),s.lanes=4194304)}else{if(!d)if(i=Dl(S),i!==null){if(s.flags|=128,d=!0,u=i.updateQueue,u!==null&&(s.updateQueue=u,s.flags|=4),Ho(y,!0),y.tail===null&&y.tailMode==="hidden"&&!S.alternate&&!nt)return Mt(s),null}else 2*ut()-y.renderingStartTime>Ps&&u!==1073741824&&(s.flags|=128,d=!0,Ho(y,!1),s.lanes=4194304);y.isBackwards?(S.sibling=s.child,s.child=S):(u=y.last,u!==null?u.sibling=S:s.child=S,y.last=S)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=ut(),s.sibling=null,u=rt.current,Ge(rt,d?u&1|2:u&1),s):(Mt(s),null);case 22:case 23:return Zd(),d=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(gn&1073741824)!==0&&(Mt(s),s.subtreeFlags&6&&(s.flags|=8192)):Mt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function gC(i,s){switch(ld(s),s.tag){case 1:return Jt(s.type)&&Cl(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Es(),et(Yt),et(It),bd(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return xd(s),null;case 13:if(et(rt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));ws()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return et(rt),null;case 4:return Es(),null;case 10:return pd(s.type._context),null;case 22:case 23:return Zd(),null;case 24:return null;default:return null}}var Hl=!1,Ft=!1,yC=typeof WeakSet=="function"?WeakSet:Set,fe=null;function _s(i,s){var u=i.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(d){ot(i,s,d)}else u.current=null}function Ud(i,s,u){try{u()}catch(d){ot(i,s,d)}}var My=!1;function vC(i,s){if(Zc=dl,i=mg(),Hc(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var m=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var S=0,A=-1,j=-1,$=0,G=0,Z=i,K=null;t:for(;;){for(var ce;Z!==u||m!==0&&Z.nodeType!==3||(A=S+m),Z!==y||d!==0&&Z.nodeType!==3||(j=S+d),Z.nodeType===3&&(S+=Z.nodeValue.length),(ce=Z.firstChild)!==null;)K=Z,Z=ce;for(;;){if(Z===i)break t;if(K===u&&++$===m&&(A=S),K===y&&++G===d&&(j=S),(ce=Z.nextSibling)!==null)break;Z=K,K=Z.parentNode}Z=ce}u=A===-1||j===-1?null:{start:A,end:j}}else u=null}u=u||{start:0,end:0}}else u=null;for(ed={focusedElem:i,selectionRange:u},dl=!1,fe=s;fe!==null;)if(s=fe,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,fe=i;else for(;fe!==null;){s=fe;try{var he=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var ye=he.memoizedProps,ct=he.memoizedState,U=s.stateNode,D=U.getSnapshotBeforeUpdate(s.elementType===s.type?ye:Bn(s.type,ye),ct);U.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var V=s.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ne){ot(s,s.return,ne)}if(i=s.sibling,i!==null){i.return=s.return,fe=i;break}fe=s.return}return he=My,My=!1,he}function Wo(i,s,u){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&i)===i){var y=m.destroy;m.destroy=void 0,y!==void 0&&Ud(s,u,y)}m=m.next}while(m!==d)}}function Wl(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&i)===i){var d=u.create;u.destroy=d()}u=u.next}while(u!==s)}}function Vd(i){var s=i.ref;if(s!==null){var u=i.stateNode;switch(i.tag){case 5:i=u;break;default:i=u}typeof s=="function"?s(i):s.current=i}}function Fy(i){var s=i.alternate;s!==null&&(i.alternate=null,Fy(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Jn],delete s[Io],delete s[id],delete s[eC],delete s[tC])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function zy(i){return i.tag===5||i.tag===3||i.tag===4}function By(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||zy(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function $d(i,s,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,s?u.nodeType===8?u.parentNode.insertBefore(i,s):u.insertBefore(i,s):(u.nodeType===8?(s=u.parentNode,s.insertBefore(i,u)):(s=u,s.appendChild(i)),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=kl));else if(d!==4&&(i=i.child,i!==null))for($d(i,s,u),i=i.sibling;i!==null;)$d(i,s,u),i=i.sibling}function qd(i,s,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(d!==4&&(i=i.child,i!==null))for(qd(i,s,u),i=i.sibling;i!==null;)qd(i,s,u),i=i.sibling}var Rt=null,Un=!1;function Vr(i,s,u){for(u=u.child;u!==null;)Uy(i,s,u),u=u.sibling}function Uy(i,s,u){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(sl,u)}catch{}switch(u.tag){case 5:Ft||_s(u,s);case 6:var d=Rt,m=Un;Rt=null,Vr(i,s,u),Rt=d,Un=m,Rt!==null&&(Un?(i=Rt,u=u.stateNode,i.nodeType===8?i.parentNode.removeChild(u):i.removeChild(u)):Rt.removeChild(u.stateNode));break;case 18:Rt!==null&&(Un?(i=Rt,u=u.stateNode,i.nodeType===8?rd(i.parentNode,u):i.nodeType===1&&rd(i,u),Eo(i)):rd(Rt,u.stateNode));break;case 4:d=Rt,m=Un,Rt=u.stateNode.containerInfo,Un=!0,Vr(i,s,u),Rt=d,Un=m;break;case 0:case 11:case 14:case 15:if(!Ft&&(d=u.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var y=m,S=y.destroy;y=y.tag,S!==void 0&&((y&2)!==0||(y&4)!==0)&&Ud(u,s,S),m=m.next}while(m!==d)}Vr(i,s,u);break;case 1:if(!Ft&&(_s(u,s),d=u.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=u.memoizedProps,d.state=u.memoizedState,d.componentWillUnmount()}catch(A){ot(u,s,A)}Vr(i,s,u);break;case 21:Vr(i,s,u);break;case 22:u.mode&1?(Ft=(d=Ft)||u.memoizedState!==null,Vr(i,s,u),Ft=d):Vr(i,s,u);break;default:Vr(i,s,u)}}function Vy(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var u=i.stateNode;u===null&&(u=i.stateNode=new yC),s.forEach(function(d){var m=TC.bind(null,i,d);u.has(d)||(u.add(d),d.then(m,m))})}}function Vn(i,s){var u=s.deletions;if(u!==null)for(var d=0;d<u.length;d++){var m=u[d];try{var y=i,S=s,A=S;e:for(;A!==null;){switch(A.tag){case 5:Rt=A.stateNode,Un=!1;break e;case 3:Rt=A.stateNode.containerInfo,Un=!0;break e;case 4:Rt=A.stateNode.containerInfo,Un=!0;break e}A=A.return}if(Rt===null)throw Error(n(160));Uy(y,S,m),Rt=null,Un=!1;var j=m.alternate;j!==null&&(j.return=null),m.return=null}catch($){ot(m,s,$)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)$y(s,i),s=s.sibling}function $y(i,s){var u=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Vn(s,i),tr(i),d&4){try{Wo(3,i,i.return),Wl(3,i)}catch(ye){ot(i,i.return,ye)}try{Wo(5,i,i.return)}catch(ye){ot(i,i.return,ye)}}break;case 1:Vn(s,i),tr(i),d&512&&u!==null&&_s(u,u.return);break;case 5:if(Vn(s,i),tr(i),d&512&&u!==null&&_s(u,u.return),i.flags&32){var m=i.stateNode;try{Ve(m,"")}catch(ye){ot(i,i.return,ye)}}if(d&4&&(m=i.stateNode,m!=null)){var y=i.memoizedProps,S=u!==null?u.memoizedProps:y,A=i.type,j=i.updateQueue;if(i.updateQueue=null,j!==null)try{A==="input"&&y.type==="radio"&&y.name!=null&&Re(m,y),Xn(A,S);var $=Xn(A,y);for(S=0;S<j.length;S+=2){var G=j[S],Z=j[S+1];G==="style"?Rr(m,Z):G==="dangerouslySetInnerHTML"?Ie(m,Z):G==="children"?Ve(m,Z):T(m,G,Z,$)}switch(A){case"input":ht(m,y);break;case"textarea":el(m,y);break;case"select":var K=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var ce=y.value;ce!=null?Gn(m,!!y.multiple,ce,!1):K!==!!y.multiple&&(y.defaultValue!=null?Gn(m,!!y.multiple,y.defaultValue,!0):Gn(m,!!y.multiple,y.multiple?[]:"",!1))}m[Io]=y}catch(ye){ot(i,i.return,ye)}}break;case 6:if(Vn(s,i),tr(i),d&4){if(i.stateNode===null)throw Error(n(162));m=i.stateNode,y=i.memoizedProps;try{m.nodeValue=y}catch(ye){ot(i,i.return,ye)}}break;case 3:if(Vn(s,i),tr(i),d&4&&u!==null&&u.memoizedState.isDehydrated)try{Eo(s.containerInfo)}catch(ye){ot(i,i.return,ye)}break;case 4:Vn(s,i),tr(i);break;case 13:Vn(s,i),tr(i),m=i.child,m.flags&8192&&(y=m.memoizedState!==null,m.stateNode.isHidden=y,!y||m.alternate!==null&&m.alternate.memoizedState!==null||(Kd=ut())),d&4&&Vy(i);break;case 22:if(G=u!==null&&u.memoizedState!==null,i.mode&1?(Ft=($=Ft)||G,Vn(s,i),Ft=$):Vn(s,i),tr(i),d&8192){if($=i.memoizedState!==null,(i.stateNode.isHidden=$)&&!G&&(i.mode&1)!==0)for(fe=i,G=i.child;G!==null;){for(Z=fe=G;fe!==null;){switch(K=fe,ce=K.child,K.tag){case 0:case 11:case 14:case 15:Wo(4,K,K.return);break;case 1:_s(K,K.return);var he=K.stateNode;if(typeof he.componentWillUnmount=="function"){d=K,u=K.return;try{s=d,he.props=s.memoizedProps,he.state=s.memoizedState,he.componentWillUnmount()}catch(ye){ot(d,u,ye)}}break;case 5:_s(K,K.return);break;case 22:if(K.memoizedState!==null){Wy(Z);continue}}ce!==null?(ce.return=K,fe=ce):Wy(Z)}G=G.sibling}e:for(G=null,Z=i;;){if(Z.tag===5){if(G===null){G=Z;try{m=Z.stateNode,$?(y=m.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(A=Z.stateNode,j=Z.memoizedProps.style,S=j!=null&&j.hasOwnProperty("display")?j.display:null,A.style.display=bn("display",S))}catch(ye){ot(i,i.return,ye)}}}else if(Z.tag===6){if(G===null)try{Z.stateNode.nodeValue=$?"":Z.memoizedProps}catch(ye){ot(i,i.return,ye)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===i)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===i)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===i)break e;G===Z&&(G=null),Z=Z.return}G===Z&&(G=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:Vn(s,i),tr(i),d&4&&Vy(i);break;case 21:break;default:Vn(s,i),tr(i)}}function tr(i){var s=i.flags;if(s&2){try{e:{for(var u=i.return;u!==null;){if(zy(u)){var d=u;break e}u=u.return}throw Error(n(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(Ve(m,""),d.flags&=-33);var y=By(i);qd(i,y,m);break;case 3:case 4:var S=d.stateNode.containerInfo,A=By(i);$d(i,A,S);break;default:throw Error(n(161))}}catch(j){ot(i,i.return,j)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function xC(i,s,u){fe=i,qy(i)}function qy(i,s,u){for(var d=(i.mode&1)!==0;fe!==null;){var m=fe,y=m.child;if(m.tag===22&&d){var S=m.memoizedState!==null||Hl;if(!S){var A=m.alternate,j=A!==null&&A.memoizedState!==null||Ft;A=Hl;var $=Ft;if(Hl=S,(Ft=j)&&!$)for(fe=m;fe!==null;)S=fe,j=S.child,S.tag===22&&S.memoizedState!==null?Ky(m):j!==null?(j.return=S,fe=j):Ky(m);for(;y!==null;)fe=y,qy(y),y=y.sibling;fe=m,Hl=A,Ft=$}Hy(i)}else(m.subtreeFlags&8772)!==0&&y!==null?(y.return=m,fe=y):Hy(i)}}function Hy(i){for(;fe!==null;){var s=fe;if((s.flags&8772)!==0){var u=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Ft||Wl(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!Ft)if(u===null)d.componentDidMount();else{var m=s.elementType===s.type?u.memoizedProps:Bn(s.type,u.memoizedProps);d.componentDidUpdate(m,u.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=s.updateQueue;y!==null&&Wg(s,y,d);break;case 3:var S=s.updateQueue;if(S!==null){if(u=null,s.child!==null)switch(s.child.tag){case 5:u=s.child.stateNode;break;case 1:u=s.child.stateNode}Wg(s,S,u)}break;case 5:var A=s.stateNode;if(u===null&&s.flags&4){u=A;var j=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&u.focus();break;case"img":j.src&&(u.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var $=s.alternate;if($!==null){var G=$.memoizedState;if(G!==null){var Z=G.dehydrated;Z!==null&&Eo(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ft||s.flags&512&&Vd(s)}catch(K){ot(s,s.return,K)}}if(s===i){fe=null;break}if(u=s.sibling,u!==null){u.return=s.return,fe=u;break}fe=s.return}}function Wy(i){for(;fe!==null;){var s=fe;if(s===i){fe=null;break}var u=s.sibling;if(u!==null){u.return=s.return,fe=u;break}fe=s.return}}function Ky(i){for(;fe!==null;){var s=fe;try{switch(s.tag){case 0:case 11:case 15:var u=s.return;try{Wl(4,s)}catch(j){ot(s,u,j)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var m=s.return;try{d.componentDidMount()}catch(j){ot(s,m,j)}}var y=s.return;try{Vd(s)}catch(j){ot(s,y,j)}break;case 5:var S=s.return;try{Vd(s)}catch(j){ot(s,S,j)}}}catch(j){ot(s,s.return,j)}if(s===i){fe=null;break}var A=s.sibling;if(A!==null){A.return=s.return,fe=A;break}fe=s.return}}var wC=Math.ceil,Kl=N.ReactCurrentDispatcher,Hd=N.ReactCurrentOwner,_n=N.ReactCurrentBatchConfig,$e=0,kt=null,pt=null,At=0,gn=0,Ts=Mr(0),wt=0,Ko=null,Ti=0,Ql=0,Wd=0,Qo=null,en=null,Kd=0,Ps=1/0,wr=null,Gl=!1,Qd=null,$r=null,Xl=!1,qr=null,Yl=0,Go=0,Gd=null,Jl=-1,Zl=0;function Kt(){return($e&6)!==0?ut():Jl!==-1?Jl:Jl=ut()}function Hr(i){return(i.mode&1)===0?1:($e&2)!==0&&At!==0?At&-At:rC.transition!==null?(Zl===0&&(Zl=Bm()),Zl):(i=Ke,i!==0||(i=window.event,i=i===void 0?16:Gm(i.type)),i)}function $n(i,s,u,d){if(50<Go)throw Go=0,Gd=null,Error(n(185));xo(i,u,d),(($e&2)===0||i!==kt)&&(i===kt&&(($e&2)===0&&(Ql|=u),wt===4&&Wr(i,At)),tn(i,d),u===1&&$e===0&&(s.mode&1)===0&&(Ps=ut()+500,Tl&&zr()))}function tn(i,s){var u=i.callbackNode;rE(i,s);var d=ll(i,i===kt?At:0);if(d===0)u!==null&&Mm(u),i.callbackNode=null,i.callbackPriority=0;else if(s=d&-d,i.callbackPriority!==s){if(u!=null&&Mm(u),s===1)i.tag===0?nC(Gy.bind(null,i)):Lg(Gy.bind(null,i)),JE(function(){($e&6)===0&&zr()}),u=null;else{switch(Um(d)){case 1:u=Pc;break;case 4:u=Fm;break;case 16:u=il;break;case 536870912:u=zm;break;default:u=il}u=r0(u,Qy.bind(null,i))}i.callbackPriority=s,i.callbackNode=u}}function Qy(i,s){if(Jl=-1,Zl=0,($e&6)!==0)throw Error(n(327));var u=i.callbackNode;if(Rs()&&i.callbackNode!==u)return null;var d=ll(i,i===kt?At:0);if(d===0)return null;if((d&30)!==0||(d&i.expiredLanes)!==0||s)s=eu(i,d);else{s=d;var m=$e;$e|=2;var y=Yy();(kt!==i||At!==s)&&(wr=null,Ps=ut()+500,Ri(i,s));do try{kC();break}catch(A){Xy(i,A)}while(!0);hd(),Kl.current=y,$e=m,pt!==null?s=0:(kt=null,At=0,s=wt)}if(s!==0){if(s===2&&(m=Rc(i),m!==0&&(d=m,s=Xd(i,m))),s===1)throw u=Ko,Ri(i,0),Wr(i,d),tn(i,ut()),u;if(s===6)Wr(i,d);else{if(m=i.current.alternate,(d&30)===0&&!bC(m)&&(s=eu(i,d),s===2&&(y=Rc(i),y!==0&&(d=y,s=Xd(i,y))),s===1))throw u=Ko,Ri(i,0),Wr(i,d),tn(i,ut()),u;switch(i.finishedWork=m,i.finishedLanes=d,s){case 0:case 1:throw Error(n(345));case 2:Ai(i,en,wr);break;case 3:if(Wr(i,d),(d&130023424)===d&&(s=Kd+500-ut(),10<s)){if(ll(i,0)!==0)break;if(m=i.suspendedLanes,(m&d)!==d){Kt(),i.pingedLanes|=i.suspendedLanes&m;break}i.timeoutHandle=nd(Ai.bind(null,i,en,wr),s);break}Ai(i,en,wr);break;case 4:if(Wr(i,d),(d&4194240)===d)break;for(s=i.eventTimes,m=-1;0<d;){var S=31-Mn(d);y=1<<S,S=s[S],S>m&&(m=S),d&=~y}if(d=m,d=ut()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*wC(d/1960))-d,10<d){i.timeoutHandle=nd(Ai.bind(null,i,en,wr),d);break}Ai(i,en,wr);break;case 5:Ai(i,en,wr);break;default:throw Error(n(329))}}}return tn(i,ut()),i.callbackNode===u?Qy.bind(null,i):null}function Xd(i,s){var u=Qo;return i.current.memoizedState.isDehydrated&&(Ri(i,s).flags|=256),i=eu(i,s),i!==2&&(s=en,en=u,s!==null&&Yd(s)),i}function Yd(i){en===null?en=i:en.push.apply(en,i)}function bC(i){for(var s=i;;){if(s.flags&16384){var u=s.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var d=0;d<u.length;d++){var m=u[d],y=m.getSnapshot;m=m.value;try{if(!Fn(y(),m))return!1}catch{return!1}}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Wr(i,s){for(s&=~Wd,s&=~Ql,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var u=31-Mn(s),d=1<<u;i[u]=-1,s&=~d}}function Gy(i){if(($e&6)!==0)throw Error(n(327));Rs();var s=ll(i,0);if((s&1)===0)return tn(i,ut()),null;var u=eu(i,s);if(i.tag!==0&&u===2){var d=Rc(i);d!==0&&(s=d,u=Xd(i,d))}if(u===1)throw u=Ko,Ri(i,0),Wr(i,s),tn(i,ut()),u;if(u===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Ai(i,en,wr),tn(i,ut()),null}function Jd(i,s){var u=$e;$e|=1;try{return i(s)}finally{$e=u,$e===0&&(Ps=ut()+500,Tl&&zr())}}function Pi(i){qr!==null&&qr.tag===0&&($e&6)===0&&Rs();var s=$e;$e|=1;var u=_n.transition,d=Ke;try{if(_n.transition=null,Ke=1,i)return i()}finally{Ke=d,_n.transition=u,$e=s,($e&6)===0&&zr()}}function Zd(){gn=Ts.current,et(Ts)}function Ri(i,s){i.finishedWork=null,i.finishedLanes=0;var u=i.timeoutHandle;if(u!==-1&&(i.timeoutHandle=-1,YE(u)),pt!==null)for(u=pt.return;u!==null;){var d=u;switch(ld(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Cl();break;case 3:Es(),et(Yt),et(It),bd();break;case 5:xd(d);break;case 4:Es();break;case 13:et(rt);break;case 19:et(rt);break;case 10:pd(d.type._context);break;case 22:case 23:Zd()}u=u.return}if(kt=i,pt=i=Kr(i.current,null),At=gn=s,wt=0,Ko=null,Wd=Ql=Ti=0,en=Qo=null,Ei!==null){for(s=0;s<Ei.length;s++)if(u=Ei[s],d=u.interleaved,d!==null){u.interleaved=null;var m=d.next,y=u.pending;if(y!==null){var S=y.next;y.next=m,d.next=S}u.pending=d}Ei=null}return i}function Xy(i,s){do{var u=pt;try{if(hd(),Ml.current=Ul,Fl){for(var d=it.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}Fl=!1}if(_i=0,St=xt=it=null,Uo=!1,Vo=0,Hd.current=null,u===null||u.return===null){wt=1,Ko=s,pt=null;break}e:{var y=i,S=u.return,A=u,j=s;if(s=At,A.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var $=j,G=A,Z=G.tag;if((G.mode&1)===0&&(Z===0||Z===11||Z===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var ce=by(S);if(ce!==null){ce.flags&=-257,Sy(ce,S,A,y,s),ce.mode&1&&wy(y,$,s),s=ce,j=$;var he=s.updateQueue;if(he===null){var ye=new Set;ye.add(j),s.updateQueue=ye}else he.add(j);break e}else{if((s&1)===0){wy(y,$,s),ef();break e}j=Error(n(426))}}else if(nt&&A.mode&1){var ct=by(S);if(ct!==null){(ct.flags&65536)===0&&(ct.flags|=256),Sy(ct,S,A,y,s),dd(Cs(j,A));break e}}y=j=Cs(j,A),wt!==4&&(wt=2),Qo===null?Qo=[y]:Qo.push(y),y=S;do{switch(y.tag){case 3:y.flags|=65536,s&=-s,y.lanes|=s;var U=vy(y,j,s);Hg(y,U);break e;case 1:A=j;var D=y.type,V=y.stateNode;if((y.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&($r===null||!$r.has(V)))){y.flags|=65536,s&=-s,y.lanes|=s;var ne=xy(y,A,s);Hg(y,ne);break e}}y=y.return}while(y!==null)}Zy(u)}catch(ve){s=ve,pt===u&&u!==null&&(pt=u=u.return);continue}break}while(!0)}function Yy(){var i=Kl.current;return Kl.current=Ul,i===null?Ul:i}function ef(){(wt===0||wt===3||wt===2)&&(wt=4),kt===null||(Ti&268435455)===0&&(Ql&268435455)===0||Wr(kt,At)}function eu(i,s){var u=$e;$e|=2;var d=Yy();(kt!==i||At!==s)&&(wr=null,Ri(i,s));do try{SC();break}catch(m){Xy(i,m)}while(!0);if(hd(),$e=u,Kl.current=d,pt!==null)throw Error(n(261));return kt=null,At=0,wt}function SC(){for(;pt!==null;)Jy(pt)}function kC(){for(;pt!==null&&!Qk();)Jy(pt)}function Jy(i){var s=n0(i.alternate,i,gn);i.memoizedProps=i.pendingProps,s===null?Zy(i):pt=s,Hd.current=null}function Zy(i){var s=i;do{var u=s.alternate;if(i=s.return,(s.flags&32768)===0){if(u=mC(u,s,gn),u!==null){pt=u;return}}else{if(u=gC(u,s),u!==null){u.flags&=32767,pt=u;return}
vendor: 6,702 bytes, line 40
40if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{wt=6,pt=null;return}}if(s=s.sibling,s!==null){pt=s;return}pt=s=i}while(s!==null);wt===0&&(wt=5)}function Ai(i,s,u){var d=Ke,m=_n.transition;try{_n.transition=null,Ke=1,EC(i,s,u,d)}finally{_n.transition=m,Ke=d}return null}function EC(i,s,u,d){do Rs();while(qr!==null);if(($e&6)!==0)throw Error(n(327));u=i.finishedWork;var m=i.finishedLanes;if(u===null)return null;if(i.finishedWork=null,i.finishedLanes=0,u===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var y=u.lanes|u.childLanes;if(iE(i,y),i===kt&&(pt=kt=null,At=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||Xl||(Xl=!0,r0(il,function(){return Rs(),null})),y=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||y){y=_n.transition,_n.transition=null;var S=Ke;Ke=1;var A=$e;$e|=4,Hd.current=null,vC(i,u),$y(u,i),qE(ed),dl=!!Zc,ed=Zc=null,i.current=u,xC(u),Gk(),$e=A,Ke=S,_n.transition=y}else i.current=u;if(Xl&&(Xl=!1,qr=i,Yl=m),y=i.pendingLanes,y===0&&($r=null),Jk(u.stateNode),tn(i,ut()),s!==null)for(d=i.onRecoverableError,u=0;u<s.length;u++)m=s[u],d(m.value,{componentStack:m.stack,digest:m.digest});if(Gl)throw Gl=!1,i=Qd,Qd=null,i;return(Yl&1)!==0&&i.tag!==0&&Rs(),y=i.pendingLanes,(y&1)!==0?i===Gd?Go++:(Go=0,Gd=i):Go=0,zr(),null}function Rs(){if(qr!==null){var i=Um(Yl),s=_n.transition,u=Ke;try{if(_n.transition=null,Ke=16>i?16:i,qr===null)var d=!1;else{if(i=qr,qr=null,Yl=0,($e&6)!==0)throw Error(n(331));var m=$e;for($e|=4,fe=i.current;fe!==null;){var y=fe,S=y.child;if((fe.flags&16)!==0){var A=y.deletions;if(A!==null){for(var j=0;j<A.length;j++){var $=A[j];for(fe=$;fe!==null;){var G=fe;switch(G.tag){case 0:case 11:case 15:Wo(8,G,y)}var Z=G.child;if(Z!==null)Z.return=G,fe=Z;else for(;fe!==null;){G=fe;var K=G.sibling,ce=G.return;if(Fy(G),G===$){fe=null;break}if(K!==null){K.return=ce,fe=K;break}fe=ce}}}var he=y.alternate;if(he!==null){var ye=he.child;if(ye!==null){he.child=null;do{var ct=ye.sibling;ye.sibling=null,ye=ct}while(ye!==null)}}fe=y}}if((y.subtreeFlags&2064)!==0&&S!==null)S.return=y,fe=S;else e:for(;fe!==null;){if(y=fe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Wo(9,y,y.return)}var U=y.sibling;if(U!==null){U.return=y.return,fe=U;break e}fe=y.return}}var D=i.current;for(fe=D;fe!==null;){S=fe;var V=S.child;if((S.subtreeFlags&2064)!==0&&V!==null)V.return=S,fe=V;else e:for(S=D;fe!==null;){if(A=fe,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:Wl(9,A)}}catch(ve){ot(A,A.return,ve)}if(A===S){fe=null;break e}var ne=A.sibling;if(ne!==null){ne.return=A.return,fe=ne;break e}fe=A.return}}if($e=m,zr(),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(sl,i)}catch{}d=!0}return d}finally{Ke=u,_n.transition=s}}return!1}function e0(i,s,u){s=Cs(u,s),s=vy(i,s,1),i=Ur(i,s,1),s=Kt(),i!==null&&(xo(i,1,s),tn(i,s))}function ot(i,s,u){if(i.tag===3)e0(i,i,u);else for(;s!==null;){if(s.tag===3){e0(s,i,u);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&($r===null||!$r.has(d))){i=Cs(u,i),i=xy(s,i,1),s=Ur(s,i,1),i=Kt(),s!==null&&(xo(s,1,i),tn(s,i));break}}s=s.return}}function CC(i,s,u){var d=i.pingCache;d!==null&&d.delete(s),s=Kt(),i.pingedLanes|=i.suspendedLanes&u,kt===i&&(At&u)===u&&(wt===4||wt===3&&(At&130023424)===At&&500>ut()-Kd?Ri(i,0):Wd|=u),tn(i,s)}function t0(i,s){s===0&&((i.mode&1)===0?s=1:(s=al,al<<=1,(al&130023424)===0&&(al=4194304)));var u=Kt();i=yr(i,s),i!==null&&(xo(i,s,u),tn(i,u))}function _C(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),t0(i,u)}function TC(i,s){var u=0;switch(i.tag){case 13:var d=i.stateNode,m=i.memoizedState;m!==null&&(u=m.retryLane);break;case 19:d=i.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(s),t0(i,u)}var n0;n0=function(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps||Yt.current)Zt=!0;else{if((i.lanes&u)===0&&(s.flags&128)===0)return Zt=!1,pC(i,s,u);Zt=(i.flags&131072)!==0}else Zt=!1,nt&&(s.flags&1048576)!==0&&Ig(s,Rl,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;ql(i,s),i=s.pendingProps;var m=ys(s,It.current);ks(s,u),m=Ed(null,s,d,i,m,u);var y=Cd();return s.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Jt(d)?(y=!0,_l(s)):y=!1,s.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,yd(s),m.updater=Vl,s.stateNode=m,m._reactInternals=s,Nd(s,d,i,u),s=Id(null,s,d,!0,y,u)):(s.tag=0,nt&&y&&ad(s),Wt(null,s,m,u),s=s.child),s;case 16:d=s.elementType;e:{switch(ql(i,s),i=s.pendingProps,m=d._init,d=m(d._payload),s.type=d,m=s.tag=RC(d),i=Bn(d,i),m){case 0:s=Ld(null,s,d,i,u);break e;case 1:s=Py(null,s,d,i,u);break e;case 11:s=ky(null,s,d,i,u);break e;case 14:s=Ey(null,s,d,Bn(d.type,i),u);break e}throw Error(n(306,d,""))}return s;case 0:return d=s.type,m=s.pendingProps,m=s.elementType===d?m:Bn(d,m),Ld(i,s,d,m,u);case 1:return d=s.type,m=s.pendingProps,m=s.elementType===d?m:Bn(d,m),Py(i,s,d,m,u);case 3:e:{if(Ry(s),i===null)throw Error(n(387));d=s.pendingProps,y=s.memoizedState,m=y.element,qg(i,s),Il(s,d,null,u);var S=s.memoizedState;if(d=S.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){m=Cs(Error(n(423)),s),s=Ay(i,s,d,u,m);break e}else if(d!==m){m=Cs(Error(n(424)),s),s=Ay(i,s,d,u,m);break e}else for(mn=Dr(s.stateNode.containerInfo.firstChild),pn=s,nt=!0,zn=null,u=Vg(s,null,d,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(ws(),d===m){s=xr(i,s,u);break e}Wt(i,s,d,u)}s=s.child}return s;case 5:return Kg(s),i===null&&cd(s),d=s.type,m=s.pendingProps,y=i!==null?i.memoizedProps:null,S=m.children,td(d,m)?S=null:y!==null&&td(d,y)&&(s.flags|=32),Ty(i,s),Wt(i,s,S,u),s.child;case 6:return i===null&&cd(s),null;case 13:return Ny(i,s,u);case 4:return vd(s,s.stateNode.containerInfo),d=s.pendingProps,i===null?s.child=bs(s,null,d,u):Wt(i,s,d,u),s.child;case 11:return d=s.type,m=s.pendingProps,m=s.elementType===d?m:Bn(d,m),ky(i,s,d,m,u);case 7:return Wt(i,s,s.pendingProps,u),s.child;case 8:return Wt(i,s,s.pendingProps.children,u),s.child;case 12:return Wt(i,s,s.pendingProps.children,u),s.child;case 10:e:{if(d=s.type._context,m=s.pendingProps,y=s.memoizedProps,S=m.value,Ge(jl,d._currentValue),d._currentValue=S,y!==null)if(Fn(y.value,S)){if(y.children===m.children&&!Yt.current){s=xr(i,s,u);break e}}else for(y=s.child,y!==null&&(y.return=s);y!==null;){var A=y.dependencies;if(A!==null){S=y.child;for(var j=A.firstContext;j!==null;){if(j.context===d){if(y.tag===1){j=vr(-1,u&-u),j.tag=2;var $=y.updateQueue;if($!==null){$=$.shared;
vendor: 9,886 bytes, line 40
40var G=$.pending;G===null?j.next=j:(j.next=G.next,G.next=j),$.pending=j}}y.lanes|=u,j=y.alternate,j!==null&&(j.lanes|=u),md(y.return,u,s),A.lanes|=u;break}j=j.next}}else if(y.tag===10)S=y.type===s.type?null:y.child;else if(y.tag===18){if(S=y.return,S===null)throw Error(n(341));S.lanes|=u,A=S.alternate,A!==null&&(A.lanes|=u),md(S,u,s),S=y.sibling}else S=y.child;if(S!==null)S.return=y;else for(S=y;S!==null;){if(S===s){S=null;break}if(y=S.sibling,y!==null){y.return=S.return,S=y;break}S=S.return}y=S}Wt(i,s,m.children,u),s=s.child}return s;case 9:return m=s.type,d=s.pendingProps.children,ks(s,u),m=En(m),d=d(m),s.flags|=1,Wt(i,s,d,u),s.child;case 14:return d=s.type,m=Bn(d,s.pendingProps),m=Bn(d.type,m),Ey(i,s,d,m,u);case 15:return Cy(i,s,s.type,s.pendingProps,u);case 17:return d=s.type,m=s.pendingProps,m=s.elementType===d?m:Bn(d,m),ql(i,s),s.tag=1,Jt(d)?(i=!0,_l(s)):i=!1,ks(s,u),gy(s,d,m),Nd(s,d,m,u),Id(null,s,d,!0,i,u);case 19:return Oy(i,s,u);case 22:return _y(i,s,u)}throw Error(n(156,s.tag))};function r0(i,s){return Dm(i,s)}function PC(i,s,u,d){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(i,s,u,d){return new PC(i,s,u,d)}function tf(i){return i=i.prototype,!(!i||!i.isReactComponent)}function RC(i){if(typeof i=="function")return tf(i)?1:0;if(i!=null){if(i=i.$$typeof,i===re)return 11;if(i===Y)return 14}return 2}function Kr(i,s){var u=i.alternate;return u===null?(u=Tn(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&14680064,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u}function tu(i,s,u,d,m,y){var S=2;if(d=i,typeof i=="function")tf(i)&&(S=1);else if(typeof i=="string")S=5;else e:switch(i){case Q:return Ni(u.children,m,y,s);case B:S=8,m|=8;break;case J:return i=Tn(12,u,s,m|2),i.elementType=J,i.lanes=y,i;case Ee:return i=Tn(13,u,s,m),i.elementType=Ee,i.lanes=y,i;case ie:return i=Tn(19,u,s,m),i.elementType=ie,i.lanes=y,i;case le:return nu(u,m,y,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case oe:S=10;break e;case W:S=9;break e;case re:S=11;break e;case Y:S=14;break e;case ge:S=16,d=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=Tn(S,u,s,m),s.elementType=i,s.type=d,s.lanes=y,s}function Ni(i,s,u,d){return i=Tn(7,i,d,s),i.lanes=u,i}function nu(i,s,u,d){return i=Tn(22,i,d,s),i.elementType=le,i.lanes=u,i.stateNode={isHidden:!1},i}function nf(i,s,u){return i=Tn(6,i,null,s),i.lanes=u,i}function rf(i,s,u){return s=Tn(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function AC(i,s,u,d,m){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ac(0),this.expirationTimes=Ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function sf(i,s,u,d,m,y,S,A,j){return i=new AC(i,s,u,A,j),s===1?(s=1,y===!0&&(s|=8)):s=0,y=Tn(3,null,null,s),i.current=y,y.stateNode=i,y.memoizedState={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},yd(y),i}function NC(i,s,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:d==null?null:""+d,children:i,containerInfo:s,implementation:u}}function i0(i){if(!i)return Fr;i=i._reactInternals;e:{if(xi(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Jt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var u=i.type;if(Jt(u))return jg(i,u,s)}return s}function s0(i,s,u,d,m,y,S,A,j){return i=sf(u,d,!0,i,m,y,S,A,j),i.context=i0(null),u=i.current,d=Kt(),m=Hr(u),y=vr(d,m),y.callback=s??null,Ur(u,y,m),i.current.lanes=m,xo(i,m,d),tn(i,d),i}function ru(i,s,u,d){var m=s.current,y=Kt(),S=Hr(m);return u=i0(u),s.context===null?s.context=u:s.pendingContext=u,s=vr(y,S),s.payload={element:i},d=d===void 0?null:d,d!==null&&(s.callback=d),i=Ur(m,s,S),i!==null&&($n(i,m,S,y),Ll(i,m,S)),S}function iu(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function o0(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function of(i,s){o0(i,s),(i=i.alternate)&&o0(i,s)}function jC(){return null}var a0=typeof reportError=="function"?reportError:function(i){console.error(i)};function af(i){this._internalRoot=i}su.prototype.render=af.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));ru(i,s,null,null)},su.prototype.unmount=af.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Pi(function(){ru(null,i,null,null)}),s[hr]=null}};function su(i){this._internalRoot=i}su.prototype.unstable_scheduleHydration=function(i){if(i){var s=qm();i={blockedOn:null,target:i,priority:s};for(var u=0;u<Or.length&&s!==0&&s<Or[u].priority;u++);Or.splice(u,0,i),u===0&&Km(i)}};function lf(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function ou(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function l0(){}function OC(i,s,u,d,m){if(m){if(typeof d=="function"){var y=d;d=function(){var $=iu(S);y.call($)}}var S=s0(s,d,i,0,null,!1,!1,"",l0);return i._reactRootContainer=S,i[hr]=S.current,Oo(i.nodeType===8?i.parentNode:i),Pi(),S}for(;m=i.lastChild;)i.removeChild(m);if(typeof d=="function"){var A=d;d=function(){var $=iu(j);A.call($)}}var j=sf(i,0,!1,null,null,!1,!1,"",l0);return i._reactRootContainer=j,i[hr]=j.current,Oo(i.nodeType===8?i.parentNode:i),Pi(function(){ru(s,j,u,d)}),j}function au(i,s,u,d,m){var y=u._reactRootContainer;if(y){var S=y;if(typeof m=="function"){var A=m;m=function(){var j=iu(S);A.call(j)}}ru(s,S,i,m)}else S=OC(u,s,i,m,d);return iu(S)}Vm=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var u=vo(s.pendingLanes);u!==0&&(Nc(s,u|1),tn(s,ut()),($e&6)===0&&(Ps=ut()+500,zr()))}break;case 13:Pi(function(){var d=yr(i,1);if(d!==null){var m=Kt();$n(d,i,1,m)}}),of(i,1)}},jc=function(i){if(i.tag===13){var s=yr(i,134217728);if(s!==null){var u=Kt();$n(s,i,134217728,u)}of(i,134217728)}},$m=function(i){if(i.tag===13){var s=Hr(i),u=yr(i,s);if(u!==null){var d=Kt();$n(u,i,s,d)}of(i,s)}},qm=function(){return Ke},Hm=function(i,s){var u=Ke;try{return Ke=i,s()}finally{Ke=u}},Ec=function(i,s,u){switch(s){case"input":if(ht(i,u),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<u.length;s++){var d=u[s];if(d!==i&&d.form===i.form){var m=El(d);if(!m)throw Error(n(90));vt(d),ht(d,m)}}}break;case"textarea":el(i,u);break;case"select":s=u.value,s!=null&&Gn(i,!!u.multiple,s,!1)}},Rm=Jd,Am=Pi;var LC={usingClientEntryPoint:!1,Events:[Do,ms,El,Tm,Pm,Jd]},Xo={findFiberByHostInstance:wi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IC={bundleType:Xo.bundleType,version:Xo.version,rendererPackageName:Xo.rendererPackageName,rendererConfig:Xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Lm(i),i===null?null:i.stateNode},findFiberByHostInstance:Xo.findFiberByHostInstance||jC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{sl=lu.inject(IC),Yn=lu}catch{}}return nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LC,nn.createPortal=function(i,s){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lf(s))throw Error(n(200));return NC(i,s,null,u)},nn.createRoot=function(i,s){if(!lf(i))throw Error(n(299));var u=!1,d="",m=a0;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(m=s.onRecoverableError)),s=sf(i,1,!1,null,null,u,!1,d,m),i[hr]=s.current,Oo(i.nodeType===8?i.parentNode:i),new af(s)},nn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Lm(s),i=i===null?null:i.stateNode,i},nn.flushSync=function(i){return Pi(i)},nn.hydrate=function(i,s,u){if(!ou(s))throw Error(n(200));return au(null,i,s,!0,u)},nn.hydrateRoot=function(i,s,u){if(!lf(i))throw Error(n(405));var d=u!=null&&u.hydratedSources||null,m=!1,y="",S=a0;
40if(u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onRecoverableError!==void 0&&(S=u.onRecoverableError)),s=s0(s,null,i,1,u??null,m,!1,y,S),i[hr]=s.current,Oo(i),d)for(i=0;i<d.length;i++)u=d[i],m=u._getVersion,m=m(u._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[u,m]:s.mutableSourceEagerHydrationData.push(u,m);return new su(s)},nn.render=function(i,s,u){if(!ou(s))throw Error(n(200));return au(null,i,s,!1,u)},nn.unmountComponentAtNode=function(i){if(!ou(i))throw Error(n(40));return i._reactRootContainer?(Pi(function(){au(null,null,i,!1,function(){i._reactRootContainer=null,i[hr]=null})}),!0):!1},nn.unstable_batchedUpdates=Jd,nn.unstable_renderSubtreeIntoContainer=function(i,s,u,d){if(!ou(u))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return au(i,s,u,!1,d)},nn.version="18.3.1-next-f1338f8080-20240426",nn}var y0;function Ww(){if(y0)return ff.exports;y0=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(t){console.error(t)}}return e(),ff.exports=HC(),ff.exports}var v0;function WC(){if(v0)return cu;v0=1;var e=Ww();return cu.createRoot=e.createRoot,cu.hydrateRoot=e.hydrateRoot,cu}var KC=WC();const QC=ic(KC),GC=20,XC=1e6,Cr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let mf=0;function YC(){return mf=(mf+1)%Number.MAX_VALUE,mf.toString()}const gf=new Map,x0=e=>{if(gf.has(e))return;const t=setTimeout(()=>{gf.delete(e),pa({type:Cr.REMOVE_TOAST,toastId:e})},XC);gf.set(e,t)},JC=(e,t)=>{switch(t.type){case Cr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,GC)};case Cr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Cr.DISMISS_TOAST:{const{toastId:n}=t;return n?x0(n):e.toasts.forEach(r=>{x0(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Cr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Cu=[];let _u={toasts:[]};function pa(e){_u=JC(_u,e),Cu.forEach(t=>{t(_u)})}function ZC({...e}){const t=YC(),n=o=>pa({type:Cr.UPDATE_TOAST,toast:{...o,id:t}}),r=()=>pa({type:Cr.DISMISS_TOAST,toastId:t});return pa({type:Cr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function e_(){const[e,t]=F.useState(_u);return F.useEffect(()=>(Cu.push(t),()=>{const n=Cu.indexOf(t);n>-1&&Cu.splice(n,1)}),[e]),{...e,toast:ZC,dismiss:n=>pa({type:Cr.DISMISS_TOAST,toastId:n})}}function Kw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Kw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qw(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kw(e))&&(r&&(r+=" "),r+=t);return r}const w0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,b0=Qw,t_=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return b0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,l=Object.keys(o).map(h=>{const p=n==null?void 0:n[h],g=a==null?void 0:a[h];if(p===null)return null;const v=w0(p)||w0(g);return o[h][v]}),c=n&&Object.entries(n).reduce((h,p)=>{let[g,v]=p;return v===void 0||(h[g]=v),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,p)=>{let{class:g,className:v,...w}=p;return Object.entries(w).every(_=>{let[C,k]=_;return Array.isArray(k)?k.includes({...a,...c}[C]):{...a,...c}[C]===k})?[...h,g,v]:h},[]);return b0(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const n_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var r_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const i_=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:l,...c},f)=>F.createElement("svg",{ref:f,...r_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gw("lucide",o),...c},[...l.map(([h,p])=>F.createElement(h,p)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Ue=(e,t)=>{const n=F.forwardRef(({className:r,...o},a)=>F.createElement(i_,{ref:a,iconNode:t,className:Gw(`lucide-${n_(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const s_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],th=Ue("ArrowRight",s_);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const o_=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],a_=Ue("Award",o_);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree.
75 */const l_=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],u_=Ue("BookMarked",l_);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const c_=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Xi=Ue("BookOpen",c_);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const d_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ip=Ue("ChevronDown",d_);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const f_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sp=Ue("ChevronRight",f_);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const h_=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xw=Ue("ChevronUp",h_);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const p_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],sc=Ue("CircleHelp",p_);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const m_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],g_=Ue("Clock",m_);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const y_=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],op=Ue("CloudRain",y_);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const v_=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],x_=Ue("ExternalLink",v_);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const w_=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ap=Ue("Eye",w_);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const b_=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],S_=Ue("Feather",b_);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const k_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],E_=Ue("Film",k_);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const C_=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],__=Ue("GitBranch",C_);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const T_=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],Zs=Ue("GitFork",T_);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const P_=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Yw=Ue("House",P_);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const R_=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],zu=Ue("Lightbulb",R_);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const A_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bu=Ue("LoaderCircle",A_);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const N_=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],j_=Ue("Map",N_);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const O_=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],L_=Ue("PenLine",O_);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const I_=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],lp=Ue("Play",I_);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const D_=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],M_=Ue("RefreshCw",D_);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const F_=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z_=Ue("RotateCcw",F_);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const B_=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],U_=Ue("Send",B_);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const V_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
190y:"oel41y"}]],Jw=Ue("Shield",V_);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const $_=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],q_=Ue("ShoppingCart",$_);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const H_=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],oc=Ue("Skull",H_);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const W_=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],fi=Ue("Sparkles",W_);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const K_=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Q_=Ue("Star",K_);/** 211 * @license lucide-react v0.475.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const G_=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}]],X_=Ue("Sword",G_);/** 216 * @license lucide-react v0.475.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const Y_=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],up=Ue("Trophy",Y_);/** 221 * @license lucide-react v0.475.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const J_=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Z_=Ue("User",J_);/** 226 * @license lucide-react v0.475.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const eT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],S0=Ue("Users",eT);/** 231 * @license lucide-react v0.475.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const tT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,347 bytes, line 235
235],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ac=Ue("X",tT),nT=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},rT=(e,t)=>({classGroupId:e,validator:t}),Zw=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Uu="-",k0=[],iT="arbitrary..",sT=e=>{const t=aT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return oT(l);const c=l.split(Uu),f=c[0]===""&&c.length>1?1:0;return e1(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],h=n[l];return f?h?nT(h,f):f:h||k0}return n[l]||k0}}},e1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const h=e1(e,t+1,a);if(h)return h}const l=n.validators;if(l===null)return;const c=t===0?e.join(Uu):e.slice(t).join(Uu),f=l.length;for(let h=0;h<f;h++){const p=l[h];if(p.validator(c))return p.classGroupId}},oT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?iT+r:void 0})(),aT=e=>{const{theme:t,classGroups:n}=e;return lT(n,t)},lT=(e,t)=>{const n=Zw();for(const r in e){const o=e[r];cp(o,n,r,t)}return n},cp=(e,t,n,r)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];uT(l,t,n,r)}},uT=(e,t,n,r)=>{if(typeof e=="string"){cT(e,t,n);return}if(typeof e=="function"){dT(e,t,n,r);return}fT(e,t,n,r)},cT=(e,t,n)=>{const r=e===""?t:t1(t,e);r.classGroupId=n},dT=(e,t,n,r)=>{if(hT(e)){cp(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(rT(n,e))},fT=(e,t,n,r)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[c,f]=o[l];cp(f,t1(t,c),n,r)}},t1=(e,t)=>{let n=e;const r=t.split(Uu),o=r.length;for(let a=0;a<o;a++){const l=r[a];let c=n.nextPart.get(l);c||(c=Zw(),n.nextPart.set(l,c)),n=c}return n},hT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return o(a,l),l},set(a,l){a in n?n[a]=l:o(a,l)}}},nh="!",E0=":",mT=[],C0=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),gT=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let l=0,c=0,f=0,h;const p=o.length;for(let C=0;C<p;C++){const k=o[C];if(l===0&&c===0){if(k===E0){a.push(o.slice(f,C)),f=C+1;continue}if(k==="/"){h=C;continue}}k==="["?l++:k==="]"?l--:k==="("?c++:k===")"&&c--}const g=a.length===0?o:o.slice(f);let v=g,w=!1;g.endsWith(nh)?(v=g.slice(0,-1),w=!0):g.startsWith(nh)&&(v=g.slice(1),w=!0);const _=h&&h>f?h-f:void 0;return C0(a,w,v,_)};if(t){const o=t+E0,a=r;r=l=>l.startsWith(o)?a(l.slice(o.length)):C0(mT,!1,l,void 0,!0)}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},yT=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let a=0;a<n.length;a++){const l=n[a],c=l[0]==="[",f=t.has(l);c||f?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},vT=e=>({cache:pT(e.cacheSize),parseClassName:gT(e),sortModifiers:yT(e),...sT(e)}),xT=/\s+/,wT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(xT);let f="";for(let h=c.length-1;h>=0;h-=1){const p=c[h],{isExternal:g,modifiers:v,hasImportantModifier:w,baseClassName:_,maybePostfixModifierPosition:C}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let k=!!C,b=r(k?_.substring(0,C):_);if(!b){if(!k){f=p+(f.length>0?" "+f:f);continue}if(b=r(_),!b){f=p+(f.length>0?" "+f:f);continue}k=!1}const P=v.length===0?"":v.length===1?v[0]:a(v).join(":"),T=w?P+nh:P,N=T+b;if(l.indexOf(N)>-1)continue;l.push(N);const z=o(b,k);for(let O=0;O<z.length;++O){const Q=z[O];l.push(T+Q)}f=p+(f.length>0?" "+f:f)}return f},bT=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=n1(n))&&(o&&(o+=" "),o+=r);return o},n1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=n1(e[r]))&&(n&&(n+=" "),n+=t);return n},ST=(e,...t)=>{let n,r,o,a;const l=f=>{const h=t.reduce((p,g)=>g(p),e());return n=vT(h),r=n.cache.get,o=n.cache.set,a=c,c(f)},c=f=>{const h=r(f);if(h)return h;const p=wT(f,n);return o(f,p),p};return a=l,(...f)=>a(bT(...f))},kT=[],bt=e=>{const t=n=>n[e]||kT;return t.isThemeGetter=!0,t},r1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,i1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ET=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,CT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=e=>ET.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Xr=e=>!!e&&Number.isInteger(Number(e)),yf=e=>e.endsWith("%")&&Le(e.slice(0,-1)),br=e=>CT.test(e),s1=()=>!0,AT=e=>_T.test(e)&&!TT.test(e),dp=()=>!1,NT=e=>PT.test(e),jT=e=>RT.test(e),OT=e=>!pe(e)&&!me(e),LT=e=>mi(e,l1,dp),pe=e=>r1.test(e),ji=e=>mi(e,u1,AT),_0=e=>mi(e,VT,Le),IT=e=>mi(e,d1,s1),DT=e=>mi(e,c1,dp),T0=e=>
vendor: 4,407 bytes, line 235
235mi(e,o1,dp),MT=e=>mi(e,a1,jT),du=e=>mi(e,f1,NT),me=e=>i1.test(e),Jo=e=>es(e,u1),FT=e=>es(e,c1),P0=e=>es(e,o1),zT=e=>es(e,l1),BT=e=>es(e,a1),fu=e=>es(e,f1,!0),UT=e=>es(e,d1,!0),mi=(e,t,n)=>{const r=r1.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},es=(e,t,n=!1)=>{const r=i1.exec(e);return r?r[1]?t(r[1]):n:!1},o1=e=>e==="position"||e==="percentage",a1=e=>e==="image"||e==="url",l1=e=>e==="length"||e==="size"||e==="bg-size",u1=e=>e==="length",VT=e=>e==="number",c1=e=>e==="family-name",d1=e=>e==="number"||e==="weight",f1=e=>e==="shadow",$T=()=>{const e=bt("color"),t=bt("font"),n=bt("text"),r=bt("font-weight"),o=bt("tracking"),a=bt("leading"),l=bt("breakpoint"),c=bt("container"),f=bt("spacing"),h=bt("radius"),p=bt("shadow"),g=bt("inset-shadow"),v=bt("text-shadow"),w=bt("drop-shadow"),_=bt("blur"),C=bt("perspective"),k=bt("aspect"),b=bt("ease"),P=bt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...N(),me,pe],O=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],B=()=>[me,pe,f],J=()=>[Gr,"full","auto",...B()],oe=()=>[Xr,"none","subgrid",me,pe],W=()=>["auto",{span:["full",Xr,me,pe]},Xr,me,pe],re=()=>[Xr,"auto",me,pe],Ee=()=>["auto","min","max","fr",me,pe],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],ge=()=>["auto",...B()],le=()=>[Gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],X=()=>[Gr,"screen","full","dvw","lvw","svw","min","max","fit",...B()],ue=()=>[Gr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],E=()=>[e,me,pe],L=()=>[...N(),P0,T0,{position:[me,pe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",zT,LT,{size:[me,pe]}],xe=()=>[yf,Jo,ji],we=()=>["","none","full",h,me,pe],ee=()=>["",Le,Jo,ji],_e=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[Le,yf,P0,T0],Je=()=>["","none",_,me,pe],_t=()=>["none",Le,me,pe],vt=()=>["none",Le,me,pe],cn=()=>[Le,me,pe],Gt=()=>[Gr,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[br],breakpoint:[br],color:[s1],container:[br],"drop-shadow":[br],ease:["in","out","in-out"],font:[OT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[br],shadow:[br],spacing:["px",Le],text:[br],"text-shadow":[br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gr,pe,me,k]}],container:["container"],columns:[{columns:[Le,pe,me,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{"inset-s":J(),start:J()}],end:[{"inset-e":J(),end:J()}],"inset-bs":[{"inset-bs":J()}],"inset-be":[{"inset-be":J()}],top:[{top:J()}
vendor: 4,348 bytes, line 235
235],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Xr,"auto",me,pe]}],basis:[{basis:[Gr,"full","auto",c,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Gr,"auto","initial","none",pe]}],grow:[{grow:["",Le,me,pe]}],shrink:[{shrink:["",Le,me,pe]}],order:[{order:[Xr,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ee()}],"auto-rows":[{"auto-rows":Ee()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:ge()}],mx:[{mx:ge()}],my:[{my:ge()}],ms:[{ms:ge()}],me:[{me:ge()}],mbs:[{mbs:ge()}],mbe:[{mbe:ge()}],mt:[{mt:ge()}],mr:[{mr:ge()}],mb:[{mb:ge()}],ml:[{ml:ge()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[c,"screen",...le()]}],"min-w":[{"min-w":[c,"screen","none",...le()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",n,Jo,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,UT,IT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yf,pe]}],"font-family":[{font:[FT,DT,t]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,pe]}],"line-clamp":[{"line-clamp":[Le,"none",me,_0]}],leading:[{leading:[a,...B()]}],"list-image":[{"list-image":["none",me,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",me,ji]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Le,"auto",me,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,pe]}
vendor: 8,329 bytes, line 235
235],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xr,me,pe],radial:["",me,pe],conic:[Xr,me,pe]},BT,MT]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:we()}],"rounded-s":[{"rounded-s":we()}],"rounded-e":[{"rounded-e":we()}],"rounded-t":[{"rounded-t":we()}],"rounded-r":[{"rounded-r":we()}],"rounded-b":[{"rounded-b":we()}],"rounded-l":[{"rounded-l":we()}],"rounded-ss":[{"rounded-ss":we()}],"rounded-se":[{"rounded-se":we()}],"rounded-ee":[{"rounded-ee":we()}],"rounded-es":[{"rounded-es":we()}],"rounded-tl":[{"rounded-tl":we()}],"rounded-tr":[{"rounded-tr":we()}],"rounded-br":[{"rounded-br":we()}],"rounded-bl":[{"rounded-bl":we()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,me,pe]}],"outline-w":[{outline:["",Le,Jo,ji]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",p,fu,du]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",g,fu,du]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Le,ji]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",v,fu,du]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Le,me,pe]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:Je()}],brightness:[{brightness:[Le,me,pe]}],contrast:[{contrast:[Le,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",w,fu,du]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Le,me,pe]}],"hue-rotate":[{"hue-rotate":[Le,me,pe]}],invert:[{invert:["",Le,me,pe]}],saturate:[{saturate:[Le,me,pe]}],sepia:[{sepia:["",Le,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[Le,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",Le,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",me,pe]}],ease:[{ease:["linear","initial",b,me,pe]}],delay:[{delay:[Le,me,pe]}],animate:[{animate:["none",P,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,me,pe]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:_t()}],"rotate-x":[{"rotate-x":_t()}],"rotate-y":[{"rotate-y":_t()}],"rotate-z":[{"rotate-z":_t()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:cn()}],"skew-x":[{"skew-x":cn()}],"skew-y":[{"skew-y":cn()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Gt()}],"translate-x":[{"translate-x":Gt()}],"translate-y":[{"translate-y":Gt()}],"translate-z":[{"translate-z":Gt()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,pe]}
vendor: 6,455 bytes, line 235
235],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,pe]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Le,Jo,ji,_0]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qT=ST($T);function za(...e){return qT(Qw(e))}const h1=F.forwardRef(({...e},t)=>x.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));h1.displayName="ToastProvider";const p1=F.forwardRef(({...e},t)=>x.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));p1.displayName="ToastViewport";const HT=t_("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),m1=F.forwardRef(({className:e,variant:t,...n},r)=>x.jsx("div",{ref:r,className:za(HT({variant:t}),e),...n}));m1.displayName="Toast";const WT=F.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:za("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));WT.displayName="ToastAction";const g1=F.forwardRef(({className:e,...t},n)=>x.jsx("button",{ref:n,className:za("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 5,195 bytes, line 235
235/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(ac,{className:"h-4 w-4"})}));g1.displayName="ToastClose";const y1=F.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:za("text-sm font-semibold",e),...t}));y1.displayName="ToastTitle";const v1=F.forwardRef(({className:e,...t},n)=>x.jsx("div",{ref:n,className:za("text-sm opacity-90",e),...t}));v1.displayName="ToastDescription";function KT(){const{toasts:e}=e_();return x.jsxs(h1,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return x.jsxs(m1,{...a,children:[x.jsxs("div",{className:"grid gap-1",children:[n&&x.jsx(y1,{children:n}),r&&x.jsx(v1,{children:r})]}),o,x.jsx(g1,{})]},t)}),x.jsx(p1,{})]})}var Ba=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},QT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ei,np,Dw,GT=(Dw=class{constructor(){Ce(this,ei,QT);Ce(this,np,!1)}setTimeoutProvider(e){de(this,ei,e)}setTimeout(e,t){return I(this,ei).setTimeout(e,t)}clearTimeout(e){I(this,ei).clearTimeout(e)}setInterval(e,t){return I(this,ei).setInterval(e,t)}clearInterval(e){I(this,ei).clearInterval(e)}},ei=new WeakMap,np=new WeakMap,Dw),Di=new GT;function XT(e){setTimeout(e,0)}var Yi=typeof window>"u"||"Deno"in globalThis;function on(){}function YT(e,t){return typeof e=="function"?e(t):e}function rh(e){return typeof e=="number"&&e>=0&&e!==1/0}function x1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ui(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function R0(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==fp(l,t.options))return!1}else if(!Ea(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function A0(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ka(t.options.mutationKey)!==ka(a))return!1}else if(!Ea(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fp(e,t){return((t==null?void 0:t.queryKeyHashFn)||ka)(e)}function ka(e){return JSON.stringify(e,(t,n)=>sh(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ea(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ea(e[n],t[n])):!1}var JT=Object.prototype.hasOwnProperty;function w1(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=N0(e)&&N0(t);if(!r&&!(sh(e)&&sh(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,f=r?new Array(c):{};let h=0;for(let p=0;p<c;p++){const g=r?p:l[p],v=e[g],w=t[g];if(v===w){f[g]=v,(r?p<a:JT.call(e,g))&&h++;continue}if(v===null||w===null||typeof v!="object"||typeof w!="object"){f[g]=w;continue}const _=w1(v,w,n+1);f[g]=_,_===v&&h++}return a===c&&h===a?e:f}function ih(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function N0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sh(e){if(!j0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!j0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function j0(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZT(e){return new Promise(t=>{Di.setTimeout(t,e)})}function oh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?w1(e,t):t}function eP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hp=Symbol();function b1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function S1(e,t){return typeof e=="function"?e(...t):!!e}function nP(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var zi,ti,Us,Mw,rP=(Mw=class extends Ba{constructor(){super();Ce(this,zi);Ce(this,ti);Ce(this,Us);de(this,Us,t=>{if(!Yi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){I(this,ti)||this.setEventListener(I(this,Us))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,ti))==null||t.call(this),de(this,ti,void 0))}setEventListener(t){var n;
vendor: 5,224 bytes, line 235
235de(this,Us,t),(n=I(this,ti))==null||n.call(this),de(this,ti,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){I(this,zi)!==t&&(de(this,zi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof I(this,zi)=="boolean"?I(this,zi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zi=new WeakMap,ti=new WeakMap,Us=new WeakMap,Mw),pp=new rP;function ah(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var iP=XT;function sP(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=iP;const a=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{a(()=>{c(...f)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Ot=sP(),Vs,ni,$s,Fw,oP=(Fw=class extends Ba{constructor(){super();Ce(this,Vs,!0);Ce(this,ni);Ce(this,$s);de(this,$s,t=>{if(!Yi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){I(this,ni)||this.setEventListener(I(this,$s))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,ni))==null||t.call(this),de(this,ni,void 0))}setEventListener(t){var n;de(this,$s,t),(n=I(this,ni))==null||n.call(this),de(this,ni,t(this.setOnline.bind(this)))}setOnline(t){I(this,Vs)!==t&&(de(this,Vs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return I(this,Vs)}},Vs=new WeakMap,ni=new WeakMap,$s=new WeakMap,Fw),Vu=new oP;function aP(e){return Math.min(1e3*2**e,3e4)}function k1(e){return(e??"online")==="online"?Vu.isOnline():!0}var lh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function E1(e){let t=!1,n=0,r;const o=ah(),a=()=>o.status!=="pending",l=C=>{var k;if(!a()){const b=new lh(C);v(b),(k=e.onCancel)==null||k.call(e,b)}},c=()=>{t=!0},f=()=>{t=!1},h=()=>pp.isFocused()&&(e.networkMode==="always"||Vu.isOnline())&&e.canRun(),p=()=>k1(e.networkMode)&&e.canRun(),g=C=>{a()||(r==null||r(),o.resolve(C))},v=C=>{a()||(r==null||r(),o.reject(C))},w=()=>new Promise(C=>{var k;r=b=>{(a()||h())&&C(b)},(k=e.onPause)==null||k.call(e)}).then(()=>{var C;r=void 0,a()||(C=e.onContinue)==null||C.call(e)}),_=()=>{if(a())return;let C;const k=n===0?e.initialPromise:void 0;try{C=k??e.fn()}catch(b){C=Promise.reject(b)}Promise.resolve(C).then(g).catch(b=>{var O;if(a())return;const P=e.retry??(Yi?0:3),T=e.retryDelay??aP,N=typeof T=="function"?T(n,b):T,z=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,b);if(t||!z){v(b);return}n++,(O=e.onFail)==null||O.call(e,n,b),ZT(N).then(()=>h()?void 0:w()).then(()=>{t?v(b):_()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r==null||r(),o),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?_():w().then(_),o)}}var Bi,zw,C1=(zw=class{constructor(){Ce(this,Bi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rh(this.gcTime)&&de(this,Bi,Di.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Yi?1/0:300*1e3))}clearGcTimeout(){I(this,Bi)&&(Di.clearTimeout(I(this,Bi)),de(this,Bi,void 0))}},Bi=new WeakMap,zw),Ui,qs,An,Vi,Ct,La,$i,Hn,Sr,Bw,lP=(Bw=class extends C1{constructor(t){super();Ce(this,Hn);Ce(this,Ui);Ce(this,qs);Ce(this,An);Ce(this,Vi);Ce(this,Ct);Ce(this,La);Ce(this,$i);de(this,$i,!1),de(this,La,t.defaultOptions),this.setOptions(t.options),this.observers=[],de(this,Vi,t.client),de(this,An,I(this,Vi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,de(this,Ui,L0(this.options)),this.state=t.state??I(this,Ui),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Ct))==null?void 0:t.promise}setOptions(t){if(this.options={...I(this,La),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=L0(this.options);n.data!==void 0&&(this.setState(O0(n.data,n.dataUpdatedAt)),de(this,Ui,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,An).remove(this)}setData(t,n){const r=oh(this.state.data,t,this.options);return Fe(this,Hn,Sr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Fe(this,Hn,Sr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=I(this,Ct))==null?void 0:r.promise;return(o=I(this,Ct))==null||o.cancel(t),n?n.then(on).catch(on):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,Ui))}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hp||this.state.dataUpdateCount+this.state.errorUpdate
235Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ui(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!x1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,An).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(I(this,Ct)&&(I(this,$i)?I(this,Ct).cancel({revert:!0}):I(this,Ct).cancelRetry()),this.scheduleGc()),I(this,An).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Hn,Sr).call(this,{type:"invalidate"})}async fetch(t,n){var f,h,p,g,v,w,_,C,k,b,P,T;if(this.state.fetchStatus!=="idle"&&((f=I(this,Ct))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(I(this,Ct))return I(this,Ct).continueRetry(),I(this,Ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const N=this.observers.find(z=>z.options.queryFn);N&&this.setOptions(N.options)}const r=new AbortController,o=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(de(this,$i,!0),r.signal)})},a=()=>{const N=b1(this.options,n),O=(()=>{const Q={client:I(this,Vi),queryKey:this.queryKey,meta:this.meta};return o(Q),Q})();return de(this,$i,!1),this.options.persister?this.options.persister(N,O,this):N(O)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:I(this,Vi),state:this.state,fetchFn:a};return o(N),N})();(h=this.options.behavior)==null||h.onFetch(c,this),de(this,qs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&Fe(this,Hn,Sr).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),de(this,Ct,E1({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof lh&&N.revert&&this.setState({...I(this,qs),fetchStatus:"idle"}),r.abort()},onFail:(N,z)=>{Fe(this,Hn,Sr).call(this,{type:"failed",failureCount:N,error:z})},onPause:()=>{Fe(this,Hn,Sr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Hn,Sr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await I(this,Ct).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(w=(v=I(this,An).config).onSuccess)==null||w.call(v,N,this),(C=(_=I(this,An).config).onSettled)==null||C.call(_,N,this.state.error,this),N}catch(N){if(N instanceof lh){if(N.silent)return I(this,Ct).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw Fe(this,Hn,Sr).call(this,{type:"error",error:N}),(b=(k=I(this,An).config).onError)==null||b.call(k,N,this),(T=(P=I(this,An).config).onSettled)==null||T.call(P,this.state.data,N,this),N}finally{this.scheduleGc()}}},Ui=new WeakMap,qs=new WeakMap,An=new WeakMap,Vi=new WeakMap,Ct=new WeakMap,La=new WeakMap,$i=new WeakMap,Hn=new WeakSet,Sr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._1(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...O0(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return de(this,qs,t.manual?o:void 0),o;case"error":const a=t.error;
vendor: 4,324 bytes, line 235
235return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ot.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),I(this,An).notify({query:this,type:"updated",action:t})})},Bw);function _1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:k1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function O0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function L0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var sn,ze,Ia,Qt,qi,Hs,kr,ri,Da,Ws,Ks,Hi,Wi,ii,Qs,We,aa,uh,ch,dh,fh,hh,ph,mh,T1,Uw,uP=(Uw=class extends Ba{constructor(t,n){super();Ce(this,We);Ce(this,sn);Ce(this,ze);Ce(this,Ia);Ce(this,Qt);Ce(this,qi);Ce(this,Hs);Ce(this,kr);Ce(this,ri);Ce(this,Da);Ce(this,Ws);Ce(this,Ks);Ce(this,Hi);Ce(this,Wi);Ce(this,ii);Ce(this,Qs,new Set);this.options=n,de(this,sn,t),de(this,ri,null),de(this,kr,ah()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(I(this,ze).addObserver(this),I0(I(this,ze),this.options)?Fe(this,We,aa).call(this):this.updateResult(),Fe(this,We,fh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gh(I(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gh(I(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,We,hh).call(this),Fe(this,We,ph).call(this),I(this,ze).removeObserver(this)}setOptions(t){const n=this.options,r=I(this,ze);if(this.options=I(this,sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,I(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,We,mh).call(this),I(this,ze).setOptions(this.options),n._defaulted&&!ih(this.options,n)&&I(this,sn).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,ze),observer:this});const o=this.hasListeners();o&&D0(I(this,ze),r,this.options,n)&&Fe(this,We,aa).call(this),this.updateResult(),o&&(I(this,ze)!==r||Nn(this.options.enabled,I(this,ze))!==Nn(n.enabled,I(this,ze))||ui(this.options.staleTime,I(this,ze))!==ui(n.staleTime,I(this,ze)))&&Fe(this,We,uh).call(this);const a=Fe(this,We,ch).call(this);o&&(I(this,ze)!==r||Nn(this.options.enabled,I(this,ze))!==Nn(n.enabled,I(this,ze))||a!==I(this,ii))&&Fe(this,We,dh).call(this,a)}getOptimisticResult(t){const n=I(this,sn).getQueryCache().build(I(this,sn),t),r=this.createResult(n,t);return dP(this,r)&&(de(this,Qt,r),de(this,Hs,this.options),de(this,qi,I(this,ze).state)),r}getCurrentResult(){return I(this,Qt)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&I(this,kr).status==="pending"&&I(this,kr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){I(this,Qs).add(t)}getCurrentQuery(){return I(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=I(this,sn).defaultQueryOptions(t),r=I(this,sn).getQueryCache().build(I(this,sn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Fe(this,We,aa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,Qt)))}createResult(t,n){var J;const r=I(this,ze),o=this.options,a=I(this,Qt),l=I(this,qi),c=I(this,Hs),h=t!==r?t.state:I(this,Ia),{state:p}=t;let g={...p},v=!1,w;if(n._optimisticResults){const oe=this.hasListeners(),W=!oe&&I0(t,n),re=oe&&D0(t,r,n,o);
vendor: 9,579 bytes, line 235
235(W||re)&&(g={...g,..._1(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:_,errorUpdatedAt:C,status:k}=g;w=g.data;let b=!1;if(n.placeholderData!==void 0&&w===void 0&&k==="pending"){let oe;a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(oe=a.data,b=!0):oe=typeof n.placeholderData=="function"?n.placeholderData((J=I(this,Ks))==null?void 0:J.state.data,I(this,Ks)):n.placeholderData,oe!==void 0&&(k="success",w=oh(a==null?void 0:a.data,oe,n),v=!0)}if(n.select&&w!==void 0&&!b)if(a&&w===(l==null?void 0:l.data)&&n.select===I(this,Da))w=I(this,Ws);else try{de(this,Da,n.select),w=n.select(w),w=oh(a==null?void 0:a.data,w,n),de(this,Ws,w),de(this,ri,null)}catch(oe){de(this,ri,oe)}I(this,ri)&&(_=I(this,ri),w=I(this,Ws),C=Date.now(),k="error");const P=g.fetchStatus==="fetching",T=k==="pending",N=k==="error",z=T&&P,O=w!==void 0,B={status:k,fetchStatus:g.fetchStatus,isPending:T,isSuccess:k==="success",isError:N,isInitialLoading:z,isLoading:z,data:w,dataUpdatedAt:g.dataUpdatedAt,error:_,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!T,isLoadingError:N&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:N&&O,isStale:mp(t,n),refetch:this.refetch,promise:I(this,kr),isEnabled:Nn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const oe=B.data!==void 0,W=B.status==="error"&&!oe,re=Y=>{W?Y.reject(B.error):oe&&Y.resolve(B.data)},Ee=()=>{const Y=de(this,kr,B.promise=ah());re(Y)},ie=I(this,kr);switch(ie.status){case"pending":t.queryHash===r.queryHash&&re(ie);break;case"fulfilled":(W||B.data!==ie.value)&&Ee();break;case"rejected":(!W||B.error!==ie.reason)&&Ee();break}}return B}updateResult(){const t=I(this,Qt),n=this.createResult(I(this,ze),this.options);if(de(this,qi,I(this,ze).state),de(this,Hs,this.options),I(this,qi).data!==void 0&&de(this,Ks,I(this,ze)),ih(n,t))return;de(this,Qt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!I(this,Qs).size)return!0;const l=new Set(a??I(this,Qs));return this.options.throwOnError&&l.add("error"),Object.keys(I(this,Qt)).some(c=>{const f=c;return I(this,Qt)[f]!==t[f]&&l.has(f)})};Fe(this,We,T1).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,We,fh).call(this)}},sn=new WeakMap,ze=new WeakMap,Ia=new WeakMap,Qt=new WeakMap,qi=new WeakMap,Hs=new WeakMap,kr=new WeakMap,ri=new WeakMap,Da=new WeakMap,Ws=new WeakMap,Ks=new WeakMap,Hi=new WeakMap,Wi=new WeakMap,ii=new WeakMap,Qs=new WeakMap,We=new WeakSet,aa=function(t){Fe(this,We,mh).call(this);let n=I(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(on)),n},uh=function(){Fe(this,We,hh).call(this);const t=ui(this.options.staleTime,I(this,ze));if(Yi||I(this,Qt).isStale||!rh(t))return;const r=x1(I(this,Qt).dataUpdatedAt,t)+1;de(this,Hi,Di.setTimeout(()=>{I(this,Qt).isStale||this.updateResult()},r))},ch=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,ze)):this.options.refetchInterval)??!1},dh=function(t){Fe(this,We,ph).call(this),de(this,ii,t),!(Yi||Nn(this.options.enabled,I(this,ze))===!1||!rh(I(this,ii))||I(this,ii)===0)&&de(this,Wi,Di.setInterval(()=>{(this.options.refetchIntervalInBackground||pp.isFocused())&&Fe(this,We,aa).call(this)},I(this,ii)))},fh=function(){Fe(this,We,uh).call(this),Fe(this,We,dh).call(this,Fe(this,We,ch).call(this))},hh=function(){I(this,Hi)&&(Di.clearTimeout(I(this,Hi)),de(this,Hi,void 0))},ph=function(){I(this,Wi)&&(Di.clearInterval(I(this,Wi)),de(this,Wi,void 0))},mh=function(){const t=I(this,sn).getQueryCache().build(I(this,sn),this.options);if(t===I(this,ze))return;const n=I(this,ze);de(this,ze,t),de(this,Ia,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},T1=function(t){Ot.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(I(this,Qt))}),I(this,sn).getQueryCache().notify({query:I(this,ze),type:"observerResultsUpdated"})})},Uw);function cP(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function I0(e,t){return cP(e,t)||e.state.data!==void 0&&gh(e,t,t.refetchOnMount)}function gh(e,t,n){if(Nn(t.enabled,e)!==!1&&ui(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&mp(e,t)}return!1}function D0(e,t,n,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&mp(e,n)}function mp(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(ui(t.staleTime,e))}function dP(e,t){return!ih(e.getCurrentResult(),t)}function M0(e){return{onFetch:(t,n)=>{var p,g,v,w,_;const r=t.options,o=(v=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,a=((w=t.state.data)==null?void 0:w.pages)||[],l=((_=t.state.data)==null?void 0:_.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let C=!1;const k=T=>{nP(T,()=>t.signal,()=>C=!0)},b=b1(t.options,t.fetchOptions),P=async(T,N,z)=>{if(C)return Promise.reject();if(N==null&&T.pages.length)return Promise.resolve(T);const Q=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:N,direction:z?"backward":"forward",meta:t.options.meta};return k(W),W})(),B=await b(Q),{maxPages:J}=t.options,oe=z?tP:eP;return{pages:oe(T.pages,B,J),pageParams:oe(T.pageParams,N,J)}};if(o&&a.length){const T=o==="backward",N=T?fP:F0,z={pages:a,pageParams:l},O=N(r,z);c=await P(z,O,T)}else{const T=e??a.length;do{const N=f===0?l[0]??r.initialPageParam:F0(r,c);if(f>0&&N==null)break;c=await P(c,N),f++}while(f<T)}return c};t.options.persister?t.fetchFn=()=>{var C,k;return(k=(C=t.options).persister)==null?void 0:k.call(C,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function F0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ma,rr,Bt,Ki,ir,Jr,Vw,hP=(Vw=class extends C1{constructor(t){super();Ce(this,ir);Ce(this,Ma);Ce(this,rr);Ce(this,Bt);Ce(this,Ki);de(this,Ma,t.client),this.mutationId=t.mutationId,de(this,Bt,t.mutationCache),de(this,rr,[]),this.state=t.state||pP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,rr).includes(t)||(I(this,rr).push(t),this.clearGcTimeout(),I(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){de(this,rr,I(this,rr).filter(n=>n!==t)),this.scheduleGc(),I(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,rr).length||(this.state.status==="pending"?this.scheduleGc():I(this,Bt).remove(this))}continue(){var t;return((t=I(this,Ki))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,f,h,p,g,v,w,_,C,k,b,P,T,N,z,O,Q;const n=()=>{Fe(this,ir,Jr).call(this,{type:"continue"})},r={client:I(this,Ma),meta:this.options.meta,mutationKey:this.options.mutationKey};de(this,Ki,E1({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(B,J)=>{Fe(this,ir,Jr).call(this,{type:"failed",failureCount:B,error:J})},onPause:()=>{Fe(this,ir,Jr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,Bt).canRun(this)}));const o=this.state.status==="pending",a=!I(this,Ki).canStart();try{if(o)n();else{Fe(this,ir,Jr).call(this,{type:"pending",variables:t,isPaused:a}),I(this,Bt).config.onMutate&&await I(this,Bt).config.onMutate(t,this,r);const J=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));J!==this.state.context&&Fe(this,ir,Jr).call(this,{type:"pending",context:J,variables:t,isPaused:a})}const B=await I(this,Ki).start();return await((h=(f=I(this,Bt).config).onSuccess)==null?void 0:h.call(f,B,t,this.state.context,this,r)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,B,t,this.state.context,r)),await((w=(v=I(this,Bt).config).onSettled)==null?void 0:w.call(v,B,null,this.state.variables,this.state.context,this,r)),await((C=(_=this.options).onSettled)==null?void 0:C.call(_,B,null,t,this.state.context,r)),Fe(this,ir,Jr).call(this,{type:"success",data:B}),B}catch(B){try{await((b=(k=I(this,Bt).config).onError)==null?void 0:b.call(k,B,t,this.state.context,this,r))}catch(J){Promise.reject(J)}try{await((T=(P=this.options).onError)==null?void 0:T.call(P,B,t,this.state.context,r))}catch(J){Promise.reject(J)}try{await((z=(N=I(this,Bt).config).onSettled)==null?void 0:z.call(N,void 0,B,this.state.variables,this.state.context,this,r))}catch(J){Promise.reject(J)}try{await((Q=(O=this.options).onSettled)==null?void 0:Q.call(O,void 0,B,t,this.state.context,r))}catch(J){Promise.reject(J)}throw Fe(this,ir,Jr).call(this,{type:"error",error:B}),B}finally{I(this,Bt).runNext(this)}}},Ma=new WeakMap,rr=new WeakMap,Bt=new WeakMap,Ki=new WeakMap,ir=new WeakSet,Jr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
235case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ot.batch(()=>{I(this,rr).forEach(r=>{r.onMutationUpdate(t)}),I(this,Bt).notify({mutation:this,type:"updated",action:t})})},Vw);function pP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Er,Wn,Fa,$w,mP=($w=class extends Ba{constructor(t={}){super();Ce(this,Er);Ce(this,Wn);Ce(this,Fa);this.config=t,de(this,Er,new Set),de(this,Wn,new Map),de(this,Fa,0)}build(t,n,r){const o=new hP({client:t,mutationCache:this,mutationId:++uu(this,Fa)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){I(this,Er).add(t);const n=hu(t);if(typeof n=="string"){const r=I(this,Wn).get(n);r?r.push(t):I(this,Wn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,Er).delete(t)){const n=hu(t);if(typeof n=="string"){const r=I(this,Wn).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&I(this,Wn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=hu(t);if(typeof n=="string"){const r=I(this,Wn).get(n),o=r==null?void 0:r.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=hu(t);if(typeof n=="string"){const o=(r=I(this,Wn).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{I(this,Er).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,Er).clear(),I(this,Wn).clear()})}getAll(){return Array.from(I(this,Er))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>A0(n,r))}findAll(t={}){return this.getAll().filter(n=>A0(t,n))}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ot.batch(()=>Promise.all(t.map(n=>n.continue().catch(on))))}},Er=new WeakMap,Wn=new WeakMap,Fa=new WeakMap,$w);function hu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var sr,qw,gP=(qw=class extends Ba{constructor(t={}){super();Ce(this,sr);this.config=t,de(this,sr,new Map)}build(t,n,r){const o=n.queryKey,a=n.queryHash??fp(o,n);let l=this.get(a);return l||(l=new lP({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){I(this,sr).has(t.queryHash)||(I(this,sr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=I(this,sr).get(t.queryHash);n&&(t.destroy(),n===t&&I(this,sr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,sr).get(t)}getAll(){return[...I(this,sr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>R0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>R0(t,r)):n}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sr=new WeakMap,qw),at,si,oi,Gs,Xs,ai,Ys,Js,Hw,yP=(Hw=class{constructor(e={}){Ce(this,at);Ce(this,si);Ce(this,oi);Ce(this,Gs);Ce(this,Xs);Ce(this,ai);Ce(this,Ys);Ce(this,Js);de(this,at,e.queryCache||new gP),de(this,si,e.mutationCache||new mP),de(this,oi,e.defaultOptions||{}),de(this,Gs,new Map),de(this,Xs,new Map),de(this,ai,0)}mount(){uu(this,ai)._++,I(this,ai)===1&&(de(this,Ys,pp.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,at).onFocus())})),de(this,Js,Vu.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,at).onOnline())})))}unmount(){var e,t;uu(this,ai)._--,I(this,ai)===0&&((e=I(this,Ys))==null||e.call(this),de(this,Ys,void 0),(t=I(this,Js))==null||t.call(this),de(this,Js,void 0))}isFetching(e){return I(this,at).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,si).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,at).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=I(this,at).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ui(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return I(this,at).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=I(this,at).get(r.queryHash),a=o==null?void 0:o.state.data,l=YT(t,a);if(l!==void 0)return I(this,at).build(this,r).setData(l,{...n,manual:!0})}
235setQueriesData(e,t,n){return Ot.batch(()=>I(this,at).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,at).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=I(this,at);Ot.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=I(this,at);return Ot.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ot.batch(()=>I(this,at).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(on).catch(on)}invalidateQueries(e,t={}){return Ot.batch(()=>(I(this,at).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ot.batch(()=>I(this,at).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(on)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(on)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=I(this,at).build(this,t);return n.isStaleByTime(ui(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(on).catch(on)}fetchInfiniteQuery(e){return e.behavior=M0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(on).catch(on)}ensureInfiniteQueryData(e){return e.behavior=M0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vu.isOnline()?I(this,si).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,at)}getMutationCache(){return I(this,si)}getDefaultOptions(){return I(this,oi)}setDefaultOptions(e){de(this,oi,e)}setQueryDefaults(e,t){I(this,Gs).set(ka(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,Gs).values()],n={};return t.forEach(r=>{Ea(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){I(this,Xs).set(ka(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Xs).values()],n={};return t.forEach(r=>{Ea(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,oi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===hp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,oi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,at).clear(),I(this,si).clear()}},at=new WeakMap,si=new WeakMap,oi=new WeakMap,Gs=new WeakMap,Xs=new WeakMap,ai=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Hw),P1=F.createContext(void 0),vP=e=>{const t=F.useContext(P1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xP=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(P1.Provider,{value:e,children:t})),R1=F.createContext(!1),wP=()=>F.useContext(R1);R1.Provider;function bP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var SP=F.createContext(bP()),kP=()=>F.useContext(SP),EP=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?S1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},CP=e=>{F.useEffect(()=>{e.clearReset()},[e])},_P=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||S1(n,[e.error,r])),TP=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},PP=(e,t)=>e.isLoading&&e.isFetching&&!t,RP=(e,t)=>
235(e==null?void 0:e.suspense)&&t.isPending,z0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function AP(e,t,n){var v,w,_,C;const r=wP(),o=kP(),a=vP(),l=a.defaultQueryOptions(e);(w=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||w.call(v,l);const c=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",TP(l),EP(l,o,c),CP(o);const f=!a.getQueryCache().get(l.queryHash),[h]=F.useState(()=>new t(a,l)),p=h.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(k=>{const b=g?h.subscribe(Ot.batchCalls(k)):on;return h.updateResult(),b},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),F.useEffect(()=>{h.setOptions(l)},[l,h]),RP(l,p))throw z0(l,h,o);if(_P({result:p,errorResetBoundary:o,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;if((C=(_=a.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||C.call(_,l,p),l.experimental_prefetchInRender&&!Yi&&PP(p,r)){const k=f?z0(l,h,o):c==null?void 0:c.promise;k==null||k.catch(on).finally(()=>{h.updateResult()})}return l.notifyOnChangeProps?p:h.trackResult(p)}function $u(e,t){return AP(e,uP)}const NP=new yP({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});function A1(e,t){return function(){return e.apply(t,arguments)}}const{toString:jP}=Object.prototype,{getPrototypeOf:eo}=Object,{iterator:Ua,toStringTag:N1}=Symbol,qu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ca=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),qu(n,t))return!0;n=eo(n)}return!1},OP=(e,t)=>e!=null&&Ca(e,t)?e[t]:void 0,gp=(e=>t=>{const n=jP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qn=e=>(e=e.toLowerCase(),t=>gp(t)===e),lc=e=>t=>typeof t===e,{isArray:Ji}=Array,to=lc("undefined");function oo(e){return e!==null&&!to(e)&&e.constructor!==null&&!to(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const j1=Qn("ArrayBuffer");function LP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&j1(e.buffer),t}const IP=lc("string"),an=lc("function"),O1=lc("number"),ao=e=>e!==null&&typeof e=="object",DP=e=>e===!0||e===!1,Tu=e=>{if(!ao(e))return!1;const t=eo(e);return(t===null||t===Object.prototype||eo(t)===null)&&!Ca(e,N1)&&!Ca(e,Ua)},MP=e=>{if(!ao(e)||oo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},FP=Qn("Date"),zP=Qn("File"),BP=e=>!!(e&&typeof e.uri<"u"),UP=e=>e&&typeof e.getParts<"u",VP=Qn("Blob"),$P=Qn("FileList"),qP=e=>ao(e)&&an(e.pipe);function HP(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const B0=HP(),U0=typeof B0.FormData<"u"?B0.FormData:void 0,WP=e=>{if(!e)return!1;if(U0&&e instanceof U0)return!0;const t=eo(e);if(!t||t===Object.prototype||!an(e.append))return!1;const n=gp(e);return n==="formdata"||n==="object"&&an(e.toString)&&e.toString()==="[object FormData]"},KP=Qn("URLSearchParams"),[QP,GP,XP,YP]=["ReadableStream","Request","Response","Headers"].map(Qn),JP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Va(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ji(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(oo(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let c;for(r=0;r<l;r++)c=a[r],t.call(null,e[c],c,e)}}function L1(e,t){if(oo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,I1=e=>!to(e)&&e!==Mi;function yh(...e){const{caseless:t,skipUndefined:n}=I1(this)&&this||{},r={},o=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const c=t&&typeof l=="string"&&L1(r,l)||l,f=qu(r,c)?r[c]:void 0;Tu(f)&&Tu(a)?r[c]=yh(f,a):Tu(a)?r[c]=yh({},a):Ji(a)?r[c]=a.slice():(!n||!to(a))&&(r[c]=a)};for(let a=0,l=e.length;a<l;a++){const c=e[a];if(!c||oo(c)||(Va(c,o),typeof c!="object"||Ji(c)))continue;const f=Object.getOwnPropertySymbols(c);for(let h=0;h<f.length;h++){const p=f[h];c2.call(c,p)&&o(c[p],p)}}return r}const ZP=(e,t,n,{allOwnKeys:r}={})=>(Va(t,(o,a)=>{n&&an(o)?Object.defineProperty(e,a,{__proto__:null,value:A1(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),e2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),t2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 7,196 bytes, lines 235-237
235configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},n2=(e,t,n,r)=>{let o,a,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&eo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},r2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},i2=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!O1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},s2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&eo(Uint8Array)),o2=(e,t)=>{const r=(e&&e[Ua]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},a2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},l2=Qn("HTMLFormElement"),u2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:c2}=Object.prototype,d2=Qn("RegExp"),D1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Va(n,(o,a)=>{let l;(l=t(o,a,e))!==!1&&(r[a]=l||o)}),Object.defineProperties(e,r)},f2=e=>{D1(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},h2=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Ji(e)?r(e):r(String(e).split(t)),n},p2=()=>{},m2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function g2(e){return!!(e&&an(e.append)&&e[N1]==="FormData"&&e[Ua])}const y2=e=>{const t=new WeakSet,n=r=>{if(ao(r)){if(t.has(r))return;if(oo(r))return r;if(!("toJSON"in r)){t.add(r);const o=Ji(r)?[]:{};return Va(r,(a,l)=>{const c=n(a);!to(c)&&(o[l]=c)}),t.delete(r),o}}return r};return n(e)},v2=Qn("AsyncFunction"),x2=e=>e&&(ao(e)||an(e))&&an(e.then)&&an(e.catch),M1=((e,t)=>e?setImmediate:t?((n,r)=>(Mi.addEventListener("message",({source:o,data:a})=>{o===Mi&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",an(Mi.postMessage)),w2=typeof queueMicrotask<"u"?queueMicrotask.bind(Mi):typeof process<"u"&&process.nextTick||M1,F1=e=>e!=null&&an(e[Ua]),b2=e=>e!=null&&Ca(e,Ua)&&F1(e),M={isArray:Ji,isArrayBuffer:j1,isBuffer:oo,isFormData:WP,isArrayBufferView:LP,isString:IP,isNumber:O1,isBoolean:DP,isObject:ao,isPlainObject:Tu,isEmptyObject:MP,isReadableStream:QP,isRequest:GP,isResponse:XP,isHeaders:YP,isUndefined:to,isDate:FP,isFile:zP,isReactNativeBlob:BP,isReactNative:UP,isBlob:VP,isRegExp:d2,isFunction:an,isStream:qP,isURLSearchParams:KP,isTypedArray:s2,isFileList:$P,forEach:Va,merge:yh,extend:ZP,trim:JP,stripBOM:e2,inherits:t2,toFlatObject:n2,kindOf:gp,kindOfTest:Qn,endsWith:r2,toArray:i2,forEachEntry:o2,matchAll:a2,isHTMLForm:l2,hasOwnProperty:qu,hasOwnProp:qu,hasOwnInPrototypeChain:Ca,getSafeProp:OP,reduceDescriptors:D1,freezeMethods:f2,toObjectSet:h2,toCamelCase:u2,noop:p2,toFiniteNumber:m2,findKey:L1,global:Mi,isContextDefined:I1,isSpecCompliantForm:g2,toJSONObject:y2,isAsyncFn:v2,isThenable:x2,setImmediate:M1,asap:w2,isIterable:F1,isSafeIterable:b2},S2=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k2=e=>{const t={};let n,r,o;return e&&e.split(` 236`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&S2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function E2(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const C2=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),_2=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yp(e,t){return M.isArray(e)?e.map(n=>yp(n,t)):E2(String(e).replace(t,""))}const T2=e=>yp(e,C2),P2=e=>yp(e,_2);function z1(e){const t=Object.create(null);return M.forEach(e.toJSON(),(n,r)=>{t[r]=P2(n)}),t}const V0=Symbol("internals");function Zo(e){return e&&String(e).trim().toLowerCase()}function Pu(e){return e===!1||e==null?e:M.isArray(e)?e.map(Pu):T2(String(e))}function R2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const A2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vf(e,t,n,r,o){if(M.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function N2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function j2(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,l){return this[r].call(this,t,o,a,l)},configurable:!0})})}let $t=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(c,f,h){const p=Zo(f);if(!p)return;const g=M.findKey(o,p);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=Pu(c))}const l=(c,f)=>M.forEach(c,(h,p)=>a(h,p,f));if(M.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(M.isString(t)&&(t=t.trim())&&!A2(t))l(k2(t),n);else if(M.isObject(t)&&M.isSafeIterable(t)){let c=Object.create(null),f,h;for(const p of t){if(!M.isArray(p))throw new TypeError("Object iterator must return a key-value pair");h=p[0],M.hasOwnProp(c,h)?(f=c[h],c[h]=M.isArray(f)?[...f,p[1]]:[f,p[1]]):c[h]=p[1]}l(c,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Zo(t),t){const r=M.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return R2(o);if(M.isFunction(n))return n.call(this,o,r);if(M.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zo(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(l){if(l=Zo(l),l){const c=M.findKey(r,l);c&&(!n||vf(r,r[c],c,n))&&(delete r[c],o=!0)}}return M.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||vf(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return M.forEach(this,(o,a)=>{const l=M.findKey(r,a);if(l){n[l]=Pu(o),delete n[a];return}const c=t?N2(a):String(a).trim();c!==a&&delete n[a],n[c]=Pu(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 237`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
vendor: 4,487 bytes, line 237
237return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[V0]=this[V0]={accessors:{}}).accessors,o=this.prototype;function a(l){const c=Zo(l);r[c]||(j2(o,l),r[c]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};$t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors($t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods($t);const O2="[REDACTED ****]";function L2(e){if(M.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(M.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function I2(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||M.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof $t&&(a=a.toJSON()),r.push(a);let l;if(M.isArray(a))l=[],a.forEach((c,f)=>{const h=o(c);M.isUndefined(h)||(l[f]=h)});else{if(!M.isPlainObject(a)&&L2(a))return r.pop(),a;l=Object.create(null);for(const[c,f]of Object.entries(a)){const h=n.has(c.toLowerCase())?O2:o(f);M.isUndefined(h)||(l[c]=h)}}return r.pop(),l};return o(e)}let ae=class B1 extends Error{static from(t,n,r,o,a,l){const c=new B1(t.message,n||t.code,r,o,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),l&&Object.assign(c,l),c}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&M.hasOwnProp(t,"redact")?t.redact:void 0,r=M.isArray(n)&&n.length>0?I2(t,n):M.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const D2=null,U1=100;function vh(e){return M.isPlainObject(e)||M.isArray(e)}function V1(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function xf(e,t,n){return e?e.concat(t).map(function(o,a){return o=V1(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function M2(e){return M.isArray(e)&&!e.some(vh)}const F2=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function uc(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,T){return!M.isUndefined(T[P])});const r=n.metaTokens,o=n.visitor||_,a=n.dots,l=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?U1:n.maxDepth,h=c&&M.isSpecCompliantForm(t),p=[];if(!M.isFunction(o))throw new TypeError("visitor must be a function");function g(b){if(b===null)return"";if(M.isDate(b))return b.toISOString();if(M.isBoolean(b))return b.toString();if(!h&&M.isBlob(b))throw new ae("Blob is not supported. Use a Buffer instead.");if(M.isArrayBuffer(b)||M.isTypedArray(b)){if(h&&typeof c=="function")return new c([b]);if(typeof Buffer<"u")return Buffer.from(b);throw new ae("Blob is not supported. Use a Buffer instead.",ae.ERR_NOT_SUPPORT)}return b}function v(b){if(b>f)throw new ae("Object is too deeply nested ("+b+" levels). Max depth: "+f,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(b,P){if(f===1/0)return JSON.stringify(b);const T=[];return JSON.stringify(b,function(z,O){if(!M.isObject(O))return O;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(O),v(P+T.length-1),O})}function _(b,P,T){let N=b;if(M.isReactNative(t)&&M.isReactNativeBlob(b))return t.append(xf(T,P,a),g(b)),!1;if(b&&!T&&typeof b=="object"){if(M.endsWith(P,"{}"))P=r?P:P.slice(0,-2),b=w(b,1);else if(M.isArray(b)&&M2(b)||(M.isFileList(b)||M.endsWith(P,"[]"))&&(N=M.toArray(b)))return P=V1(P),N.forEac
vendor: 4,539 bytes, line 237
237h(function(O,Q){!(M.isUndefined(O)||O===null)&&t.append(l===!0?xf([P],Q,a):l===null?P:P+"[]",g(O))}),!1}return vh(b)?!0:(t.append(xf(T,P,a),g(b)),!1)}const C=Object.assign(F2,{defaultVisitor:_,convertValue:g,isVisitable:vh});function k(b,P,T=0){if(!M.isUndefined(b)){if(v(T),p.indexOf(b)!==-1)throw new Error("Circular reference detected in "+P.join("."));p.push(b),M.forEach(b,function(z,O){(!(M.isUndefined(z)||z===null)&&o.call(t,z,M.isString(O)?O.trim():O,P,C))===!0&&k(z,P?P.concat(O):[O],T+1)}),p.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return k(e),t}function $0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function vp(e,t){this._pairs=[],e&&uc(e,this,t)}const $1=vp.prototype;$1.append=function(t,n){this._pairs.push([t,n])};$1.toString=function(t){const n=t?r=>t.call(this,r,$0):$0;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function z2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function q1(e,t,n){if(!t)return e;e=e||"";const r=M.isFunction(n)?{serialize:n}:n,o=M.getSafeProp(r,"encode")||z2,a=M.getSafeProp(r,"serialize");let l;if(a?l=a(t,r):l=M.isURLSearchParams(t)?t.toString():new vp(t,r).toString(o),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class q0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const xp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},B2=typeof URLSearchParams<"u"?URLSearchParams:vp,U2=typeof FormData<"u"?FormData:null,V2=typeof Blob<"u"?Blob:null,$2={isBrowser:!0,classes:{URLSearchParams:B2,FormData:U2,Blob:V2},protocols:["http","https","file","blob","url","data"]},wp=typeof window<"u"&&typeof document<"u",xh=typeof navigator=="object"&&navigator||void 0,q2=wp&&(!xh||["ReactNative","NativeScript","NS"].indexOf(xh.product)<0),H2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W2=wp&&window.location.href||"http://localhost",K2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wp,hasStandardBrowserEnv:q2,hasStandardBrowserWebWorkerEnv:H2,navigator:xh,origin:W2},Symbol.toStringTag,{value:"Module"})),Lt={...K2,...$2};function Q2(e,t){return uc(e,new Lt.classes.URLSearchParams,{visitor:function(n,r,o,a){return Lt.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const H0=U1;function H1(e){if(e>H0)throw new ae("FormData field is too deeply nested ("+e+" levels). Max depth: "+H0,ae.ERR_FORM_DATA_DEPTH_EXCEEDED)}function G2(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)H1(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function X2(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function W1(e){function t(n,r,o,a){H1(a);let l=n[a++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),f=a>=n.length;return l=!l&&M.isArray(o)?o.length:l,f?(M.hasOwnProp(o,l)?o[l]=M.isArray(o[l])?o[l].concat(r):[o[l],r]:o[l]=r,!c):((!M.hasOwnProp(o,l)||!M.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],a)&&M.isArray(o[l])&&(o[l]=X2(o[l])),!c)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,o)=>{t(G2(r),o,n,0)}),n}return null}const As=(e,t)=>e!=null&&M.hasOwnProp(e,t)?e[t]:void 0;function Y2(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $a={transitional:xp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o?JSON.stringify(W1(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;
vendor: 4,623 bytes, line 237
237if(a){const f=As(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Q2(t,f).toString();if((c=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=As(this,"env"),p=h&&h.FormData;return uc(c?{"files[]":t}:t,p&&new p,f)}}return a||o?(n.setContentType("application/json",!1),Y2(t)):t}],transformResponse:[function(t){const n=As(this,"transitional")||$a.transitional,r=n&&n.forcedJSONParsing,o=As(this,"responseType"),a=o==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!o||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,As(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?ae.from(f,ae.ERR_BAD_RESPONSE,this,null,As(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch","query"],e=>{$a.headers[e]={}});function wf(e,t){const n=this||$a,r=t||n,o=$t.from(r.headers);let a=r.data;return M.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function K1(e){return!!(e&&e.__CANCEL__)}let qa=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Q1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function J2(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Z2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),p=r[a];l||(l=h),n[o]=f,r[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-l<t)return;const w=p&&h-p;return w?Math.round(v*1e3/w):void 0}}function eR(e,t){let n=0,r=1e3/t,o,a;const l=(h,p=Date.now())=>{n=p,o=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const p=Date.now(),g=p-n;g>=r?l(h,p):(o=h,a||(a=setTimeout(()=>{a=null,l(o)},r-g)))},()=>o&&l(o)]}const Hu=(e,t,n=3)=>{let r=0;const o=Z2(50,250);return eR(a=>{if(!a||typeof a.loaded!="number")return;const l=a.loaded,c=a.lengthComputable?a.total:void 0,f=c!=null?Math.min(l,c):l,h=Math.max(0,f-r),p=o(h);r=Math.max(r,f);const g={loaded:f,total:c,progress:c?f/c:void 0,bytes:h,rate:p||void 0,estimated:p&&c?(c-f)/p:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},W0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},K0=e=>(...t)=>M.asap(()=>e(...t)),tR=Lt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lt.origin),Lt.navigator&&/(msie|trident)/i.test(Lt.navigator.userAgent)):()=>!0,nR=Lt.hasStandardBrowserEnv?{write(e,t,n,r,o,a,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&c.push(`path=${r}`),M.isString(o)&&c.push(`domain=${o}`),a===!0&&c.push("secure"),M.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function rR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const sR=/^https?:(?!\/\/)/i,oR=/[\t\n\r]/g;function aR(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function lR(e){return aR(e).replace(oR,"")}function Q0(e,t){if(typeof e=="string"&&sR.test(lR(e)))throw new ae('Invalid URL: missing "//" after protocol',ae.ERR_INVALID_URL,t)}function G1(e,t,n,r){Q0(t,r);let o=!rR(t);return e&&(o||n===!1)?(Q0(e,r),iR(e,t)):t}const G0=e=>e instanceof $t?{...e}:e;function Zi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,g,v,w){return M.isPlainObject(p)&&M.isPlainObject(g)?M.merge.call({caseless:w}
vendor: 1,643 bytes, line 237
237,p,g):M.isPlainObject(g)?M.merge({},g):M.isArray(g)?g.slice():g}function o(p,g,v,w){if(M.isUndefined(g)){if(!M.isUndefined(p))return r(void 0,p,v,w)}else return r(p,g,v,w)}function a(p,g){if(!M.isUndefined(g))return r(void 0,g)}function l(p,g){if(M.isUndefined(g)){if(!M.isUndefined(p))return r(void 0,p)}else return r(void 0,g)}function c(p){const g=M.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!M.isUndefined(g))if(M.isPlainObject(g)){if(M.hasOwnProp(g,p))return g[p]}else return;const v=M.hasOwnProp(e,"transitional")?e.transitional:void 0;if(M.isPlainObject(v)&&M.hasOwnProp(v,p))return v[p]}function f(p,g,v){if(M.hasOwnProp(t,v))return r(p,g);if(M.hasOwnProp(e,v))return r(void 0,p)}const h={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:f,headers:(p,g,v)=>o(G0(p),G0(g),v,!0)};return M.forEach(Object.keys({...e,...t}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const v=M.hasOwnProp(h,g)?h[g]:o,w=M.hasOwnProp(e,g)?e[g]:void 0,_=M.hasOwnProp(t,g)?t[g]:void 0,C=v(w,_,g);M.isUndefined(C)&&v!==f||(n[g]=C)}),M.hasOwnProp(t,"validateStatus")&&M.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(M.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 5,420 bytes, line 237
237idateStatus),n}const uR=["content-type","content-length"];function cR(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{uR.includes(r.toLowerCase())&&e.set(r,o)})}const dR=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function X1(e){const t=Zi({},e),n=v=>M.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),l=n("xsrfCookieName");let c=n("headers");const f=n("auth"),h=n("baseURL"),p=n("allowAbsoluteUrls"),g=n("url");if(t.headers=c=$t.from(c),t.url=q1(G1(h,g,p,t),n("params"),n("paramsSerializer")),f){const v=M.getSafeProp(f,"username")||"",w=M.getSafeProp(f,"password")||"";try{c.set("Authorization","Basic "+btoa(v+":"+(w?dR(w):"")))}catch(_){throw ae.from(_,ae.ERR_BAD_OPTION_VALUE,e)}}if(M.isFormData(r)&&(Lt.hasStandardBrowserEnv||Lt.hasStandardBrowserWebWorkerEnv||M.isReactNative(r)?c.setContentType(void 0):M.isFunction(r.getHeaders)&&cR(c,r.getHeaders(),n("formDataHeaderPolicy"))),Lt.hasStandardBrowserEnv&&(M.isFunction(o)&&(o=o(t)),o===!0||o==null&&tR(t.url))){const w=a&&l&&nR.read(l);w&&c.set(a,w)}return t}const fR=typeof XMLHttpRequest<"u",hR=fR&&function(e){return new Promise(function(n,r){const o=X1(e);let a=o.data;const l=$t.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=o,p,g,v,w,_;function C(){w&&w(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function b(){if(!k)return;const T=$t.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),z={data:!c||c==="text"||c==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:T,config:e,request:k};Q1(function(Q){n(Q),C()},function(Q){r(Q),C()},z),k=null}"onloadend"in k?k.onloadend=b:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.startsWith("file:"))||setTimeout(b)},k.onabort=function(){k&&(r(new ae("Request aborted",ae.ECONNABORTED,e,k)),C(),k=null)},k.onerror=function(N){const z=N&&N.message?N.message:"Network Error",O=new ae(z,ae.ERR_NETWORK,e,k);O.event=N||null,r(O),C(),k=null},k.ontimeout=function(){let N=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const z=o.transitional||xp;o.timeoutErrorMessage&&(N=o.timeoutErrorMessage),r(new ae(N,z.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,k)),C(),k=null},a===void 0&&l.setContentType(null),"setRequestHeader"in k&&M.forEach(z1(l),function(N,z){k.setRequestHeader(z,N)}),M.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),c&&c!=="json"&&(k.responseType=o.responseType),h&&([v,_]=Hu(h,!0),k.addEventListener("progress",v)),f&&k.upload&&([g,w]=Hu(f),k.upload.addEventListener("progress",g),k.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=T=>{k&&(r(!T||T.type?new qa(null,e,k):T),k.abort(),C(),k=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const P=J2(o.url);if(P&&!Lt.protocols.includes(P)){r(new ae("Unsupported protocol "+P+":",ae.ERR_BAD_REQUEST,e)),C();return}k.send(a||null)})},pR=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(f){if(!r){r=!0,l();const h=f instanceof Error?f:this.reason;n.abort(h instanceof ae?h:new qa(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,o(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>M.asap(l),c},mR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gR=async function*(e,t){for await(const n of yR(e))yield*mR(n,t)},yR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},X0=(e,t,n,r)=>{const o=gR(e,t);let a=0,l,c=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:h,value:p}=await o.next();if(h){c(),f.close();return}let g=p.byteLength;if(n){let v=a+=g;n(v)}f.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},Wu=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,vR=(e,t,n)=>t+2<n&&Wu(e.charCodeAt(t+1))&&Wu(e.charCodeAt(t+2));function xR(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let l=r.length;const c=r.length;for(let w=0;w<c;w++)if(r.charCodeAt(w)===37&&w+2<c){const _=r.charCodeAt(w+1),C=r.charCodeAt(w+2);Wu(_)&&Wu(C)&&(l-=2,w+=2)}let f=0,h=c-1;const p=w=>w>=2&&r.charCodeAt(w-2)===37&&r.charCodeAt(w-1)===51&&(r.charCodeAt(w)===68||r.charCodeAt(w)===100);h>=0&&(r.charCodeAt(h)===61?(f++,h--):p(h)&&(f++,h-=3)),f===1&&h>=0&&(r.charCodeAt(h)===61||p(h))&&f++;const v=Math.floor(l/4)*3-(f||0);return v>0?v:0}let a=0;for(let l=0,c=r.length;l<c;l++){const f=r.charCodeAt(l);if(f===37&&vR(r,l,c))a+=1,l+=2;else if(f<128)a+=1;else if(f<2048)a+=2;else if(f>=55296&&f<=56319&&l+1<c){const h=r.charCodeAt(l+1);h>
vendor: 4,828 bytes, line 237
237=56320&&h<=57343?(a+=4,l++):a+=3}else a+=3}return a}const bp="1.18.1",Y0=64*1024,{isFunction:pu}=M,wR=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),J0=e=>{if(!M.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Z0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bR=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},SR=e=>{const t=M.global!==void 0&&M.global!==null?M.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=M.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:l}=e,c=o?pu(o):typeof fetch=="function",f=pu(a),h=pu(l);if(!c)return!1;const p=c&&pu(n),g=c&&(typeof r=="function"?(b=>P=>b.encode(P))(new r):async b=>new Uint8Array(await new a(b).arrayBuffer())),v=f&&p&&Z0(()=>{let b=!1;const P=new a(Lt.origin,{body:new n,method:"POST",get duplex(){return b=!0,"half"}}),T=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),b&&!T}),w=h&&p&&Z0(()=>M.isReadableStream(new l("").body)),_={stream:w&&(b=>b.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!_[b]&&(_[b]=(P,T)=>{let N=P&&P[b];if(N)return N.call(P);throw new ae(`Response type '${b}' is not supported`,ae.ERR_NOT_SUPPORT,T)})});const C=async b=>{if(b==null)return 0;if(M.isBlob(b))return b.size;if(M.isSpecCompliantForm(b))return(await new a(Lt.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(M.isArrayBufferView(b)||M.isArrayBuffer(b))return b.byteLength;if(M.isURLSearchParams(b)&&(b=b+""),M.isString(b))return(await g(b)).byteLength},k=async(b,P)=>{const T=M.toFiniteNumber(b.getContentLength());return T??C(P)};return async b=>{let{url:P,method:T,data:N,signal:z,cancelToken:O,timeout:Q,onDownloadProgress:B,onUploadProgress:J,responseType:oe,headers:W,withCredentials:re="same-origin",fetchOptions:Ee,maxContentLength:ie,maxBodyLength:Y}=X1(b);const ge=M.isNumber(ie)&&ie>-1,le=M.isNumber(Y)&&Y>-1,X=ee=>M.hasOwnProp(b,ee)?b[ee]:void 0;let ue=o||fetch;oe=oe?(oe+"").toLowerCase():"text";let E=pR([z,O&&O.toAbortSignal()],Q),L=null;const q=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let R,xe=null;const we=()=>new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,b,L);try{let ee;const _e=X("auth");if(_e){const Re=M.getSafeProp(_e,"username")||"",ht=M.getSafeProp(_e,"password")||"";ee={username:Re,password:ht}}if(bR(P)){const Re=new URL(P,Lt.origin);if(!ee&&(Re.username||Re.password)){const ht=J0(Re.username),dn=J0(Re.password);ee={username:ht,password:dn}}(Re.username||Re.password)&&(Re.username="",Re.password="",P=Re.href)}if(ee&&(W.delete("authorization"),W.set("Authorization","Basic "+btoa(wR((ee.username||"")+":"+(ee.password||""))))),ge&&typeof P=="string"&&P.startsWith("data:")&&xR(P)>ie)throw new ae("maxContentLength size of "+ie+" exceeded",ae.ERR_BAD_RESPONSE,b,L);if(le&&T!=="get"&&T!=="head"){const Re=await C(N);if(typeof Re=="number"&&isFinite(Re)&&(R=Re,Re>Y))throw we()}const je=le&&(M.isReadableStream(N)||M.isStream(N)),be=(Re,ht,dn)=>X0(Re,Y0,Xt=>{if(le&&Xt>Y)throw xe=we();ht&&ht(Xt)},dn);if(v&&T!=="get"&&T!=="head"&&(J||je)){if(R=R??await k(W,N),R!==0||je){let Re=new a(P,{method:"POST",body:N,duplex:"half"}),ht;if(M.isFormData(N)&&(ht=Re.headers.get("content-type"))&&W.setContentType(ht),Re.body){const[dn,Xt]=J&&W0(R,Hu(K0(J)))||[];N=be(Re.body,dn,Xt)}}}else if(je&&!f&&p&&T!=="get"&&T!=="head")N=be(N);else if(je&&f&&!v&&T!=="get"&&T!=="head")throw new ae("Stream request bodies are not supported by the current fetch implementation",ae.ERR_NOT_SUPPORT,b,L);M.isString(re)||(re=re?"include":"omit");const Je=f&&"credentials"in a.prototype;if(M.isFormData(N)){const Re=W.getContentType();Re&&/^multipart\/form-data/i.test(Re)&&!/boundary=/i.test(Re)&&W.delete("content-type")}W.set("User-Agent","axios/"+bp,!1);const _t={...Ee,signal:E,method:T.toUpperCase(),headers:z1(W.normalize()),body:N,duplex:"half",credentials:Je?re:void 0};L=f&&new a(P,_t);let vt=await(f?ue(L,Ee):ue(P,_t));const cn=$t.from(vt.headers);if(ge){const Re=M.toFiniteNumber(cn.getContentLength());if(Re!=null&&Re>ie)throw new ae("maxContentLength size of "+ie+" exceeded",ae.ERR_BAD_RESPONSE,b,L)}const Gt=w&&(oe==="stream"||oe==="response");if(w&&vt.body&&(B||ge||Gt&&q)){const Re={};["status","statusText","headers"].forEach(Dn=>{Re[Dn]=vt[Dn]});const ht=M.toFiniteNumber(cn.getContentLength()),[dn,Xt]=B&&W0(ht,Hu(K0(B),!0))||[];let In=0;const Gn=Dn=>{if(ge&&(In=Dn,In>ie))throw new ae("maxContentLength size of "+ie+" exceeded",ae.ERR_BAD_RESPONSE,b,L);dn&&dn(Dn)};vt=new l(X0(vt.body,Y0,Gn,()=>{Xt&&Xt(),q&&q()}),Re)}oe=oe||"text";let Ht=await _[M.findKey(_,oe)||"text"](vt,b);if(ge&&!w&&!Gt){let Re;if(Ht!=null&&(typeof Ht.byteLength=="number"?Re=Ht.byteLength:typeof Ht.size=="number"?Re=Ht.
vendor: 4,205 bytes, lines 237-239
237size:typeof Ht=="string"&&(Re=typeof r=="function"?new r().encode(Ht).byteLength:Ht.length)),typeof Re=="number"&&Re>ie)throw new ae("maxContentLength size of "+ie+" exceeded",ae.ERR_BAD_RESPONSE,b,L)}return!Gt&&q&&q(),await new Promise((Re,ht)=>{Q1(Re,ht,{data:Ht,headers:$t.from(vt.headers),status:vt.status,statusText:vt.statusText,config:b,request:L})})}catch(ee){if(q&&q(),E&&E.aborted&&E.reason instanceof ae){const _e=E.reason;throw _e.config=b,L&&(_e.request=L),ee!==_e&&Object.defineProperty(_e,"cause",{__proto__:null,value:ee,writable:!0,enumerable:!1,configurable:!0}),_e}if(xe)throw L&&!xe.request&&(xe.request=L),xe;if(ee instanceof ae)throw L&&!ee.request&&(ee.request=L),ee;if(ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)){const _e=new ae("Network Error",ae.ERR_NETWORK,b,L,ee&&ee.response);throw Object.defineProperty(_e,"cause",{__proto__:null,value:ee.cause||ee,writable:!0,enumerable:!1,configurable:!0}),_e}throw ae.from(ee,ee&&ee.code,b,L,ee&&ee.response)}}},kR=new Map,Y1=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let l=a.length,c=l,f,h,p=kR;for(;c--;)f=a[c],h=p.get(f),h===void 0&&p.set(f,h=c?new Map:SR(t)),p=h;return h};Y1();const Sp={http:D2,xhr:hR,fetch:{get:Y1}};M.forEach(Sp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ev=e=>`- ${e}`,ER=e=>M.isFunction(e)||e===null||e===!1;function CR(e,t){e=M.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let l=0;l<n;l++){r=e[l];let c;if(o=r,!ER(r)&&(o=Sp[(c=String(r)).toLowerCase()],o===void 0))throw new ae(`Unknown adapter '${c}'`);if(o&&(M.isFunction(o)||(o=o.get(t))))break;a[c||"#"+l]=o}if(!o){const l=Object.entries(a).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since : 238`+l.map(ev).join(` 239`):" "+ev(l[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+c,ae.ERR_NOT_SUPPORT)}return o}const J1={getAdapter:CR,adapters:Sp};function bf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qa(null,e)}function tv(e){return bf(e),e.headers=$t.from(e.headers),e.data=wf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),J1.getAdapter(e.adapter||$a.adapter,e)(e).then(function(r){bf(e),e.response=r;try{r.data=wf.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=$t.from(r.headers),r},function(r){if(!K1(r)&&(bf(e),r&&r.response)){e.response=r.response;try{r.response.data=wf.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=$t.from(r.response.headers)}return Promise.reject(r)})}const cc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nv={};cc.transitional=function(t,n,r){function o(a,l){return"[Axios v"+bp+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,c)=>{if(t===!1)throw new ae(o(l," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!nv[l]&&(nv[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,c):!0}};cc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _R(e,t,n){if(typeof e!="object"||e===null)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],l=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(l){const c=e[a],f=c===void 0||l(c,a,e);if(f!==!0)throw new ae("option "+a+" must be "+f,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+a,ae.ERR_BAD_OPTION)}}const Ru={assertOptions:_R,validators:cc},zt=Ru.validators;let Qi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new q0,response:new q0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=(()=>
vendor: 3,918 bytes, lines 239-243
239{if(!o.stack)return"";const l=o.stack.indexOf(` 240`);return l===-1?"":o.stack.slice(l+1)})();try{if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(` 241`),c=l===-1?-1:a.indexOf(` 242`,l+1),f=c===-1?"":a.slice(c+1);String(r.stack).endsWith(f)||(r.stack+=` 243`+a)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Ru.assertOptions(r,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean),legacyInterceptorReqResOrdering:zt.transitional(zt.boolean),advertiseZstdAcceptEncoding:zt.transitional(zt.boolean),validateStatusUndefinedResolves:zt.transitional(zt.boolean)},!1),o!=null&&(M.isFunction(o)?n.paramsSerializer={serialize:o}:Ru.assertOptions(o,{encode:zt.function,serialize:zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ru.assertOptions(n,{baseUrl:zt.spelling("baseURL"),withXsrfToken:zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&M.merge(a.common,a[n.method]);a&&M.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete a[_]}),n.headers=$t.concat(l,a);const c=[];let f=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(n)===!1)return;f=f&&C.synchronous;const k=n.transitional||xp;k&&k.legacyInterceptorReqResOrdering?c.unshift(C.fulfilled,C.rejected):c.push(C.fulfilled,C.rejected)});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let p,g=0,v;if(!f){const _=[tv.bind(this),void 0];for(_.unshift(...c),_.push(...h),v=_.length,p=Promise.resolve(n);g<v;)p=p.then(_[g++],_[g++]);return p}v=c.length;let w=n;for(;g<v;){const _=c[g++],C=c[g++];try{w=_(w)}catch(k){C.call(this,k);break}}try{p=tv.call(this,w)}catch(_){return Promise.reject(_)}for(g=0,v=h.length;g<v;)p=p.then(h[g++],h[g++]);return p}getUri(t){t=Zi(this.defaults,t);const n=G1(t.baseURL,t.url,t.allowAbsoluteUrls,t);return q1(n,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Qi.prototype[t]=function(n,r){return this.request(Zi(r||{},{method:t,url:n,data:r&&M.hasOwnProp(r,"data")?r.data:void 0}))}});M.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,l,c){return this.request(Zi(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}Qi.prototype[t]=n(),t!=="query"&&(Qi.prototype[t+"Form"]=n(!0))});let TR=class Z1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(c=>{r.subscribe(c),a=c}).then(o);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,c){r.reason||(r.reason=new qa(a,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Z1(function(o){t=o}),cancel:t}}};function PR(e){return function(n){return e.apply(null,n)}}function RR(e){return M.isObject(e)&&e.isAxiosError===!0}const wh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
243alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wh).forEach(([e,t])=>{wh[t]=e});function eb(e){const t=new Qi(e),n=A1(Qi.prototype.request,t);return M.extend(n,Qi.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return eb(Zi(e,o))},n}const ft=eb($a);ft.Axios=Qi;ft.CanceledError=qa;ft.CancelToken=TR;ft.isCancel=K1;ft.VERSION=bp;ft.toFormData=uc;ft.AxiosError=ae;ft.Cancel=ft.CanceledError;ft.all=function(t){return Promise.all(t)};ft.spread=PR;ft.isAxiosError=RR;ft.mergeConfig=Zi;ft.AxiosHeaders=$t;ft.formToJSON=e=>W1(M.isHTMLForm(e)?new FormData(e):e);ft.getAdapter=J1.getAdapter;ft.HttpStatusCode=wh;ft.default=ft;const{Axios:qF,AxiosError:HF,CanceledError:WF,isCancel:KF,CancelToken:QF,VERSION:GF,all:XF,Cancel:YF,isAxiosError:JF,spread:ZF,toFormData:e6,AxiosHeaders:t6,HttpStatusCode:n6,formToJSON:r6,getAdapter:i6,mergeConfig:s6,create:o6}=ft,tb=typeof window>"u",rv=!tb&&window.self!==window.top,AR=!tb&&typeof document>"u",Sf=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Nt=[];for(let e=0;e<256;++e)Nt.push((e+256).toString(16).slice(1));function NR(e,t=0){return(Nt[e[t+0]]+Nt[e[t+1]]+Nt[e[t+2]]+Nt[e[t+3]]+"-"+Nt[e[t+4]]+Nt[e[t+5]]+"-"+Nt[e[t+6]]+Nt[e[t+7]]+"-"+Nt[e[t+8]]+Nt[e[t+9]]+"-"+Nt[e[t+10]]+Nt[e[t+11]]+Nt[e[t+12]]+Nt[e[t+13]]+Nt[e[t+14]]+Nt[e[t+15]]).toLowerCase()}let kf;const jR=new Uint8Array(16);function OR(){if(!kf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");kf=crypto.getRandomValues.bind(crypto)}return kf(jR)}const LR=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iv={randomUUID:LR};function IR(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??OR();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,NR(r)}function DR(e,t,n){return iv.randomUUID&&!e?iv.randomUUID():IR(e)}const ea=typeof window<"u"?window:{base44SharedInstances:{}};function MR(e,t){return ea.base44SharedInstances||(ea.base44SharedInstances={}),ea.base44SharedInstances[e]||(ea.base44SharedInstances[e]={instance:t()}),ea.base44SharedInstances[e].instance}const FR="__user_heartbeat_event__",zR="__initialization_event__",BR="__session_duration_event__",sv="analytics-enable",ov="base44_analytics_session_id",UR={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},VR="analytics",Qe=MR(VR,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...UR,...XR()}})),$R=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var o;const{maxQueueSize:a,throttleTime:l,batchSize:c}=Qe.config;if(!(!((o=Qe.config)===null||o===void 0)&&o.enabled)||AR)return{track:()=>{},cleanup:()=>{}};let f;const h=`${t}/api/apps/${n}/analytics/track/batch`,p=async T=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:T}})},g=T=>{try{const N=JSON.stringify({events:T}),z=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(h,z)}catch{return!1}}
243,v=async(T,N={})=>{if(T.length===0)return;const z=await GR(r),O=T.map(QR(z));try{(!N.isBeacon||!g(O))&&await p(O)}catch{}},w=()=>{lv(v,{throttleTime:l,batchSize:c})},_=T=>{if(Qe.requestsQueue.length>=a)return;const N=KR();Qe.requestsQueue.push({...T,...N}),w()},C=()=>{lv(v,{throttleTime:l,batchSize:c}),f=uv(_),HR()},k=()=>{av(),f==null||f(),WR(_);const T=Qe.requestsQueue.splice(0);v(T,{isBeacon:!0})},b=()=>{typeof window>"u"||(document.visibilityState==="hidden"?k():document.visibilityState==="visible"&&C())},P=()=>{av(),f==null||f(),typeof window<"u"&&window.removeEventListener("visibilitychange",b)};return w(),f=uv(_),qR(_),typeof window<"u"&&window.addEventListener("visibilitychange",b),{track:_,cleanup:P}};function av(){Qe.isProcessing=!1}async function lv(e,t){if(Qe.isProcessing)return;Qe.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Qe.isProcessing&&Qe.requestsQueue.length>0;){const o=Qe.requestsQueue.splice(0,r);o.length&&await e(o),await new Promise(a=>setTimeout(a,n))}Qe.isProcessing=!1}function uv(e){var t;if(Qe.isHeartBeatProcessing||((t=Qe.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Qe.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:FR})},Qe.config.heartBeatInterval);return()=>{clearInterval(n),Qe.isHeartBeatProcessing=!1}}function qR(e){typeof window>"u"||Qe.wasInitializationTracked||(Qe.wasInitializationTracked=!0,e({eventName:zR,properties:{referrer:document==null?void 0:document.referrer}}))}function HR(){typeof window>"u"||Qe.sessionStartTime!==null||(Qe.sessionStartTime=new Date().toISOString())}function WR(e){if(typeof window>"u"||Qe.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Qe.sessionStartTime).getTime();Qe.sessionStartTime=null,e({eventName:BR,properties:{sessionDuration:t}})}function KR(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function QR(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Ef=null;async function GR(e){if(!Qe.sessionContext){if(!Ef){const t=kp();Ef=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}Qe.sessionContext=await Ef}return Qe.sessionContext}function XR(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(sv);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(sv);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function kp(){if(typeof window>"u")return Sf();try{const e=localStorage.getItem(ov);if(!e){const t=Sf();return localStorage.setItem(ov,t),t}return e}catch{return Sf()}}class YR extends Error{constructor(t,n,r,o,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=o,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function la({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:o}){const a=ft.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(l=>{typeof window<"u"&&window.location&&(l.headers.set("X-Origin-URL",window.location.href),l.headers.get("Authorization")||l.headers.set("X-Base44-Anonymous-Id",kp()));const c=DR();if(l.requestId=c,rv)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:e+l.url,method:l.method,body:l.data instanceof FormData?"[FormData object]":l.data}},"*")}catch{}return l}),r&&a.interceptors.response.use(l=>{var c;const f=(c=l.config)===null||c===void 0?void 0:c.requestId;try{rv&&f&&window.parent.postMessage({type:"api-request-end",requestId:f,data:{statusCode:l.status,response:l.data}},"*")}catch{}return l.data},l=>{var c,f,h,p,g,v,w,_;const C=((f=(c=l.response)===null||c===void 0?void 0:c.data)===null||f===void 0?void 0:f.message)||((p=(h=l.response)===null||h===void 0?void 0:h.data)===null||p===void 0?void 0:p.detail)||l.message,k=new YR(C,(g=l.response)===null||g===void 0?void 0:g.status,(w=(v=l.response)===null||v===void 0?void 0:v.data)===null||w===void 0?void 0:w.code,(_=l.response)===null||_===void 0?void 0:_.data,l);return o==null||o(k),Promise.reject(k)}),a}function cv(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return ZR(t,n,a,r)}})}function JR(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}function ZR(e,t,n,r){const o=`/apps/${t}/entities/${n}`;return{async list(a,l,c,f){const h={};
243return a&&(h.sort=a),l&&(h.limit=l),c&&(h.skip=c),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(o,{params:h})},async filter(a,l,c,f,h){const p={q:JSON.stringify(a)};return l&&(p.sort=l),c&&(p.limit=c),f&&(p.skip=f),h&&(p.fields=Array.isArray(h)?h.join(","):h),e.get(o,{params:p})},async get(a){return e.get(`${o}/${a}`)},async create(a){return e.post(o,a)},async update(a,l){return e.put(`${o}/${a}`,l)},async delete(a){return e.delete(`${o}/${a}`)},async deleteMany(a){return e.delete(o,{data:a})},async bulkCreate(a){return e.post(`${o}/bulk`,a)},async updateMany(a,l){return e.patch(`${o}/update-many`,{query:a,data:l})},async bulkUpdate(a){return e.put(`${o}/bulk`,a)},async importEntities(a){const l=new FormData;return l.append("file",a,a.name),e.post(`${o}/import`,l,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const l=`entities:${t}:${n}`;return r().subscribeToRoom(l,{update_model:h=>{var p;const g=JR(h.data);if(g){g.type!=="delete"&&(!((p=g.data)===null||p===void 0)&&p._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${g.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${g.id}")\` to fetch the full record.`);try{a(g)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}}})}}}function eA(e,t){return{async call(n,r,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:l,...c}=o??{},f={...c,...a&&{path_params:a},...l&&{query_params:l}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,f)}}}function dv(e,t){const n=eA(e,t);return new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${l} must receive an object with named parameters, received: ${c}`);let f,h;return c instanceof FormData||c&&Object.values(c).some(p=>p instanceof File)?(f=new FormData,Object.keys(c).forEach(p=>{c[p]instanceof File?f.append(p,c[p],c[p].name):typeof c[p]=="object"&&c[p]!==null?f.append(p,JSON.stringify(c[p])):f.append(p,c[p])}),h="multipart/form-data"):(f=c,h="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${l}`,f||c,{headers:{"Content-Type":h}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${l}`,f||c,{headers:{"Content-Type":h}})}}})}})}function tA(){return typeof window>"u"?!1:window!==window.parent}function nA(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),l=Math.round(window.screenY+(window.outerHeight-600)/2),c=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${l},resizable=yes,scrollbars=yes`);if(!c)return;const f=()=>{window.removeEventListener("message",h),clearInterval(p),c.closed||c.close()},h=g=>{var v;if(g.origin!==n||g.source!==c||!(!((v=g.data)===null||v===void 0)&&v.access_token))return;f();const w=new URL(t),{access_token:_,is_new_user:C}=g.data;w.searchParams.set("access_token",_),C!=null&&w.searchParams.set("is_new_user",String(C)),window.location.href=w.toString()},p=setInterval(()=>{c.closed&&f()},500);window.addEventListener("message",h)}function rA(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(o){return e.put(`/apps/${n}/entities/User/me`,o)},redirectToLogin(o){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=o?new URL(o,window.location.origin).toString():window.location.href,l=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=l},loginWithProvider(o,a="/"){const l=new URL(a,window.location.origin).toString(),c=`app_id=${n}&from_url=${encodeURIComponent(l)}`;let f;o==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${o==="google"?"":`/${o}`}/login`;const h=`${r.appBaseUrl}/api${f}?${c}`;if(tA()){const p=`${h}&popup_origin=${encodeURIComponent(window.location.origin)}`;return nA(p,l,window.location.origin)}window.location.href=h}
243,logout(o){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(c){console.error("Failed to remove token from localStorage:",c)}const a=o||window.location.href,l=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=l}},setToken(o,a=!0){if(o&&(e.defaults.headers.common.Authorization=`Bearer ${o}`,t.defaults.headers.common.Authorization=`Bearer ${o}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",o),window.localStorage.setItem("token",o)}catch(l){console.error("Failed to save token to localStorage:",l)}},async loginViaEmailPassword(o,a,l){var c;try{const f=await e.post(`/apps/${n}/auth/login`,{email:o,password:a,...l&&{turnstile_token:l}}),{access_token:h,user:p}=f;return h&&this.setToken(h),{access_token:h,user:p}}catch(f){throw((c=f.response)===null||c===void 0?void 0:c.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(o,a){return e.post(`/apps/${n}/users/invite-user`,{user_email:o,role:a})},register(o){return e.post(`/apps/${n}/auth/register`,o)},verifyOtp({email:o,otpCode:a}){return e.post(`/apps/${n}/auth/verify-otp`,{email:o,otp_code:a})},resendOtp(o){return e.post(`/apps/${n}/auth/resend-otp`,{email:o})},resetPasswordRequest(o){return e.post(`/apps/${n}/auth/reset-password-request`,{email:o})},resetPassword({resetToken:o,newPassword:a}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:o,new_password:a})},changePassword({userId:o,currentPassword:a,newPassword:l}){return e.post(`/apps/${n}/auth/change-password`,{user_id:o,current_password:a,new_password:l})}}}function iA(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}function sA(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${n}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${n}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${n}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}}}}function oA(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${n}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${n}`)}}}function no(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:o=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const l=new URLSearchParams(window.location.search);if(a=l.get(n),a){if(r&&aA(a,{storageKey:t}),o){l.delete(n);const c=`${window.location.pathname}${l.toString()?`?${l.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return a}}catch(l){console.error("Error retrieving token from URL:",l)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(l){console.error("Error retrieving token from local storage:",l)}return null}function aA(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function fv(e,t,n){const r=(a,l)=>a?`${String(a).replace(/\/$/,"")}${l}`:l,o=a=>{const l=new Headers;if(n!=null&&n.getAuthHeaders){const c=n.getAuthHeaders();
243Object.entries(c).forEach(([f,h])=>{h!=null&&l.set(f,String(h))})}return a&&new Headers(a).forEach((c,f)=>{l.set(f,c)}),l};return{async invoke(a,l){if(typeof l=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${l}`);let c,f;return l instanceof FormData||l&&Object.values(l).some(h=>h instanceof File)?(c=new FormData,Object.keys(l).forEach(h=>{l[h]instanceof File?c.append(h,l[h],l[h].name):typeof l[h]=="object"&&l[h]!==null?c.append(h,JSON.stringify(l[h])):c.append(h,l[h])}),f="multipart/form-data"):(c=l,f="application/json"),e.post(`/apps/${t}/functions/${a}`,c||l,{headers:{"Content-Type":f}})},async fetch(a,l={}){const f=`/functions${a.startsWith("/")?a:`/${a}`}`,h=o(l.headers),p={...l,headers:h};return await fetch(r(n==null?void 0:n.baseURL,f),p)}}}function hv({axios:e,getSocket:t,appId:n,serverUrl:r,token:o}){const a=`/apps/${n}/agents`,l={},c=()=>e.get(`${a}/conversations`),f=C=>e.get(`${a}/conversations/${C}`);return{getConversations:c,getConversation:f,listConversations:C=>e.get(`${a}/conversations`,{params:C}),createConversation:C=>e.post(`${a}/conversations`,C),addMessage:async(C,k)=>e.post(`${a}/conversations/v2/${C.id}/messages`,k),subscribeToConversation:(C,k)=>{const b=`/agent-conversations/${C}`,P=t(),T=f(C).then(N=>(l[C]=N,N));return P.subscribeToRoom(b,{connect:()=>{},update_model:async({data:N})=>{const z=JSON.parse(N);if(z._message){await T;const O=z._message,Q=l[C];if(Q){const B=Q.messages||[],J=B.findIndex(W=>W.id===O.id),oe=J!==-1?B.map((W,re)=>re===J?O:W):[...B,O];l[C]={...Q,messages:oe},k==null||k(l[C])}}}})},getWhatsAppConnectURL:C=>{const k=`${r}/api/apps/${n}/agents/${encodeURIComponent(C)}/whatsapp`,b=o??no();return b?`${k}?token=${b}`:k},getTelegramConnectURL:C=>{const k=`${r}/api/apps/${n}/agents/${encodeURIComponent(C)}/telegram`,b=o??no();return b?`${k}?token=${b}`:k}}}function pv({serverUrl:e,token:t,appId:n}){return{connection:()=>{var o;return{baseURL:`${e}/api/apps/${n}/ai/openai/v1`,token:(o=t??no())!==null&&o!==void 0?o:""}}}}function mv(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function lA(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const cr=Object.create(null);cr.open="0";cr.close="1";cr.ping="2";cr.pong="3";cr.message="4";cr.upgrade="5";cr.noop="6";const Au=Object.create(null);Object.keys(cr).forEach(e=>{Au[cr[e]]=e});const bh={type:"error",data:"parser error"},nb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",rb=typeof ArrayBuffer=="function",ib=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ep=({type:e,data:t},n,r)=>nb&&t instanceof Blob?n?r(t):gv(t,r):rb&&(t instanceof ArrayBuffer||ib(t))?n?r(t):gv(new Blob([t]),r):r(cr[e]+(t||"")),gv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function yv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Cf;function uA(e,t){if(nb&&e.data instanceof Blob)return e.data.arrayBuffer().then(yv).then(t);if(rb&&(e.data instanceof ArrayBuffer||ib(e.data)))return t(yv(e.data));Ep(e,!1,n=>{Cf||(Cf=new TextEncoder),t(Cf.encode(n))})}const vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ua=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<vv.length;e++)ua[vv.charCodeAt(e)]=e;const cA=e=>{let t=e.length*.75,n=e.length,r,o=0,a,l,c,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),p=new Uint8Array(h);for(r=0;r<n;r+=4)a=ua[e.charCodeAt(r)],l=ua[e.charCodeAt(r+1)],c=ua[e.charCodeAt(r+2)],f=ua[e.charCodeAt(r+3)],p[o++]=a<<2|l>>4,p[o++]=(l&15)<<4|c>>2,p[o++]=(c&3)<<6|f&63;return h},dA=typeof ArrayBuffer=="function",Cp=(e,t)=>{if(typeof e!="string")return{type:"message",data:sb(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:fA(e.substring(1),t)}:Au[n]?e.length>1?{type:Au[n],data:e.substring(1)}:{type:Au[n]}:bh},fA=(e,t)=>
vendor: 26,496 bytes, line 243
243{if(dA){const n=cA(e);return sb(n,t)}else return{base64:!0,data:e}},sb=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},ob="�",hA=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,l)=>{Ep(a,!1,c=>{r[l]=c,++o===n&&t(r.join(ob))})})},pA=(e,t)=>{const n=e.split(ob),r=[];for(let o=0;o<n.length;o++){const a=Cp(n[o],t);if(r.push(a),a.type==="error")break}return r};function mA(){return new TransformStream({transform(e,t){uA(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let _f;function mu(e){return e.reduce((t,n)=>t+n.length,0)}function gu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function gA(e,t){_f||(_f=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(l,c){for(n.push(l);;){if(r===0){if(mu(n)<1)break;const f=gu(n,1);a=(f[0]&128)===128,o=f[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(mu(n)<2)break;const f=gu(n,2);o=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(r===2){if(mu(n)<8)break;const f=gu(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),p=h.getUint32(0);if(p>Math.pow(2,21)-1){c.enqueue(bh);break}o=p*Math.pow(2,32)+h.getUint32(4),r=3}else{if(mu(n)<o)break;const f=gu(n,o);c.enqueue(Cp(a?f:_f.decode(f),t)),r=0}if(o===0||o>e){c.enqueue(bh);break}}}})}const ab=4;function gt(e){if(e)return yA(e)}function yA(e){for(var t in gt.prototype)e[t]=gt.prototype[t];return e}gt.prototype.on=gt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};gt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};gt.prototype.off=gt.prototype.removeListener=gt.prototype.removeAllListeners=gt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};gt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};gt.prototype.emitReserved=gt.prototype.emit;gt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};gt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const dc=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),jn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),vA="arraybuffer";function lb(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const xA=jn.setTimeout,wA=jn.clearTimeout;function fc(e,t){t.useNativeTimers?(e.setTimeoutFn=xA.bind(jn),e.clearTimeoutFn=wA.bind(jn)):(e.setTimeoutFn=jn.setTimeout.bind(jn),e.clearTimeoutFn=jn.clearTimeout.bind(jn))}const bA=1.33;function SA(e){return typeof e=="string"?kA(e):Math.ceil((e.byteLength||e.size)*bA)}function kA(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function ub(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function EA(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function CA(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class _A extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class _p extends gt{constructor(t){super(),this.writable=!1,fc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new _A(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Cp(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=EA(t);return n.length?"?"+n:""}}class TA extends _p{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};pA(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,hA(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ub()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let cb=!1;try{cb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PA=cb;function RA(){}class AA extends TA{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ar extends gt{constructor(t,n,r){super(),this.createRequest=t,fc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=lb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=ar.requestsCount++,ar.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=RA,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ar.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ar.requestsCount=0;ar.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xv);else if(typeof addEventListener=="function"){const e="onpagehide"in jn?"pagehide":"unload";addEventListener(e,xv,!1)}}function xv(){for(let e in ar.requests)ar.requests.hasOwnProperty(e)&&ar.requests[e].abort()}const NA=(function(){const e=db({xdomain:!1});return e&&e.responseType!==null})();class jA extends AA{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=NA&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ar(db,this.uri(),t)}}function db(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||PA))return new XMLHttpRequest}catch{}if(!t)try{return new jn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const fb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class OA extends _p{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=fb?{}:lb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Ep(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}o&&dc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ub()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Tf=jn.WebSocket||jn.MozWebSocket;class LA extends OA{createSocket(t,n,r){return fb?new Tf(t,n,r):n?new Tf(t,n):new Tf(t)}doWrite(t,n){this.ws.send(n)}}class IA extends _p{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=gA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=mA();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:c,value:f})=>{c||(this.onPacket(f),a())}).catch(c=>{})};a();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&dc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const DA={websocket:LA,webtransport:IA,polling:jA},MA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,FA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sh(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=MA.exec(e||""),a={},l=14;for(;l--;)a[FA[l]]=o[l]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=zA(a,a.path),a.queryKey=BA(a,a.query),a}function zA(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function BA(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const kh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Nu=[];kh&&addEventListener("offline",()=>{Nu.forEach(e=>e())},!1);class ci extends gt{constructor(t,n){if(super(),this.binaryType=vA,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Sh(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Sh(n.host).host);fc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=CA(this.opts.query)),kh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Nu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=ab,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&ci.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",ci.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=SA(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,dc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(ci.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),kh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Nu.indexOf(this._offlineEventListener);r!==-1&&Nu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}ci.protocol=ab;class UA extends ci{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;ci.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ci.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const l=g=>{const v=new Error("probe error: "+g);v.transport=n.name,a(),this.emitReserved("upgradeError",v)};function c(){l("transport closed")}function f(){l("socket closed")}function h(g){n&&g.name!==n.name&&a()}const p=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",c),this.off("close",f),this.off("upgrading",h)};n.once("open",o),n.once("error",l),n.once("close",c),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let VA=class extends UA{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>DA[o]).filter(o=>!!o)),super(t,r)}};function $A(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Sh(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const qA=typeof ArrayBuffer=="function",HA=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,hb=Object.prototype.toString,WA=typeof Blob=="function"||typeof Blob<"u"&&hb.call(Blob)==="[object BlobConstructor]",KA=typeof File=="function"||typeof File<"u"&&hb.call(File)==="[object FileConstructor]";function Tp(e){return qA&&(e instanceof ArrayBuffer||HA(e))||WA&&e instanceof Blob||KA&&e instanceof File}function ju(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(ju(e[n]))return!0;return!1}if(Tp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ju(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ju(e[n]))return!0;return!1}function QA(e){const t=[],n=e.data,r=e;return r.data=Eh(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Eh(e,t){if(!e)return e;if(Tp(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Eh(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Eh(e[r],t));return n}return e}function GA(e,t){return e.data=Ch(e.data,t),delete e.attachments,e}function Ch(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ch(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ch(e[n],t));return e}const XA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Be;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Be||(Be={}));class YA{constructor(t){this.replacer=t}encode(t){return(t.type===Be.EVENT||t.type===Be.ACK)&&ju(t)?this.encodeAsBinary({type:t.type===Be.EVENT?Be.BINARY_EVENT:Be.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Be.BINARY_EVENT||t.type===Be.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=QA(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Pp extends gt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Be.BINARY_EVENT;r||n.type===Be.BINARY_ACK?(n.type=r?Be.EVENT:Be.ACK,this.reconstructor=new JA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Tp(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Be[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Be.BINARY_EVENT||r.type===Be.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(a,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(l)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}
vendor: 4,501 bytes, line 243
243if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Pp.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Be.CONNECT:return wv(n);case Be.DISCONNECT:return n===void 0;case Be.CONNECT_ERROR:return typeof n=="string"||wv(n);case Be.EVENT:case Be.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&XA.indexOf(n[0])===-1);case Be.ACK:case Be.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class JA{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=GA(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function wv(e){return Object.prototype.toString.call(e)==="[object Object]"}const ZA=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Pp,Encoder:YA,get PacketType(){return Be}},Symbol.toStringTag,{value:"Module"}));function Kn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const eN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class pb extends gt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Kn(t,"open",this.onopen.bind(this)),Kn(t,"packet",this.onpacket.bind(this)),Kn(t,"error",this.onerror.bind(this)),Kn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(eN.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:Be.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,g=n.pop();this._registerAckCallback(p,g),l.id=p}const c=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,f=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(f?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},o),l=(...c)=>{this.io.clearTimeoutFn(a),n.apply(this,c)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(l,c)=>l?o(l):r(c);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Be.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 243
243_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Be.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Be.EVENT:case Be.BINARY_EVENT:this.onevent(t);break;case Be.ACK:case Be.BINARY_ACK:this.onack(t);break;case Be.DISCONNECT:this.ondisconnect();break;case Be.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Be.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Be.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function lo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}lo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};lo.prototype.reset=function(){this.attempts=0};lo.prototype.setMin=function(e){this.ms=e};lo.prototype.setMax=function(e){this.max=e};lo.prototype.setJitter=function(e){this.jitter=e};class _h extends gt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,fc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new lo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||ZA;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new VA(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Kn(n,"open",function(){r.onopen(),t&&t()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},l=Kn(n,"error",a);if(this._timeout!==!1){const c=this._timeout,f=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},c);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Kn(t,"ping",this.onping.bind(this)),Kn(t,"data",this.ondata.bind(this)),Kn(t,"error",this.onerror.bind(this)),Kn(t,"close",this.onclose.bind(this)),Kn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){dc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new pb(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
243cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ta={};function Ou(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$A(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,l=ta[o]&&a in ta[o].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let f;return c?f=new _h(r,t):(ta[o]||(ta[o]=new _h(r,t)),f=ta[o]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(Ou,{Manager:_h,Socket:pb,io:Ou,connect:Ou});const tN=250;function bv(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:no(),o={app_id:e.appId,token:r};r||(o.anonymous_id=kp());const a=Ou(e.serverUrl,{path:e.mountPath,transports:e.transports,query:o});return a.on("connect",async()=>{var l;return console.log("connect",a.id),(l=t.connect)===null||l===void 0?void 0:l.call(t)}),a.on("update_model",async l=>{var c;return(c=t.update_model)===null||c===void 0?void 0:c.call(t,l)}),a.on("error",async l=>{var c;return(c=t.error)===null||c===void 0?void 0:c.call(t,l)}),a.on("connect_error",async l=>{var c;return console.error("connect_error",l),(c=t.error)===null||c===void 0?void 0:c.call(t,l)}),a}function nN({config:e}){let t={...e};const n={},r={},o={connect:async()=>{const b=[];Object.keys(n).forEach(P=>{const T=v(P);T.length!==0&&(h(P),T.forEach(({connect:N})=>{const z=async()=>N==null?void 0:N();b.push(z())}))}),await Promise.all(b)},update_model:async b=>{const T=v(b.room).map(N=>{var z;return(z=N.update_model)===null||z===void 0?void 0:z.call(N,b)});await Promise.all(T)},error:async b=>{console.error("error",b);const P=Object.values(n).flat().map(T=>{var N;return(N=T.error)===null||N===void 0?void 0:N.call(T,b)});await Promise.all(P)}};let a=bv(e,o);function l(){c()}function c(){_(),a&&a.disconnect()}function f(b){l(),t={...t,...b},a=bv(t,o)}function h(b){a.emit("join",b)}function p(b){a.emit("leave",b)}async function g(b,P){var T;const N=JSON.stringify(P);return(T=o.update_model)===null||T===void 0?void 0:T.call(o,{room:b,data:N})}function v(b){var P;return(P=n[b])!==null&&P!==void 0?P:[]}function w(b){const P=r[b];P&&(clearTimeout(P),delete r[b])}function _(){Object.keys(r).forEach(b=>{var P,T;clearTimeout(r[b]),delete r[b],((T=(P=n[b])===null||P===void 0?void 0:P.length)!==null&&T!==void 0?T:0)===0&&delete n[b]})}function C(b){w(b),r[b]=setTimeout(()=>{var P,T;delete r[b],!(((T=(P=n[b])===null||P===void 0?void 0:P.length)!==null&&T!==void 0?T:0)>0)&&(p(b),delete n[b])},tN)}return{socket:a,subscribeToRoom:(b,P)=>{n[b]?w(b):(h(b),n[b]=[]),n[b].push(P);let T=!1;return()=>{var N,z;T||(T=!0,n[b]=(z=(N=n[b])===null||N===void 0?void 0:N.filter(O=>O!==P))!==null&&z!==void 0?z:[],n[b].length===0&&C(b))}},updateConfig:f,updateModel:g,disconnect:c}}function rN(e){var t,n;const{serverUrl:r="https://base44.app",appId:o,token:a,serviceToken:l,requiresAuth:c=!1,appBaseUrl:f,options:h,functionsVersion:p,headers:g}=e,v=typeof f=="string"?f:"",w={serverUrl:r,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:o,token:a};let _=null;const C=()=>(_||(_=nN({config:w})),_),k={...g,"X-App-Id":String(o)},b=p?{...k,"Base44-Functions-Version":p}:k,P=la({baseURL:`${r}/api`,headers:k,token:a,onError:h==null?void 0:h.onError}),T=la({baseURL:`${r}/api`,headers:b,token:a,interceptResponses:!1,onError:h==null?void 0:h.onError}),N={...k,...a?{"on-behalf-of":`Bearer ${a}`}:{}},z=la({baseURL:`${r}/api`,headers:N,token:l,onError:h==null?void 0:h.onError}),O=la({baseURL:`${r}/api`,headers:b,token:l,interceptResponses:!1}),Q=rA(P,T,o,{appBaseUrl:v});if(typeof window<"u"){const W=a||no();W&&Q.setToken(W)}const B={entities:cv({axios:P,appId:o,getSocket:C}),integrations:dv(P,o),connectors:oA(P,o),auth:Q,functions:fv(T,o,{getAuthHeaders:()=>{const W={},re=a||no();return re&&(W.Authorization=`Bearer ${re}`),W},baseURL:(t=T.defaults)===null||t===void 0?void 0:t.baseURL}
243),agents:hv({axios:P,getSocket:C,appId:o,serverUrl:r,token:a}),aiGateway:pv({serverUrl:r,token:a,appId:o}),appLogs:mv(P,o),users:lA(P,o),analytics:$R({axiosClient:P,serverUrl:r,appId:o,userAuthModule:Q}),cleanup:()=>{B.analytics.cleanup(),_&&_.disconnect()}},J={entities:cv({axios:z,appId:o,getSocket:C}),integrations:dv(z,o),sso:iA(z,o),connectors:sA(z,o),functions:fv(O,o,{getAuthHeaders:()=>{const W={};return l&&(W.Authorization=`Bearer ${l}`),W},baseURL:(n=O.defaults)===null||n===void 0?void 0:n.baseURL}),agents:hv({axios:z,getSocket:C,appId:o,serverUrl:r,token:a}),aiGateway:pv({serverUrl:r,token:l,appId:o}),appLogs:mv(z,o),cleanup:()=>{_&&_.disconnect()}};return c&&typeof window<"u"&&setTimeout(async()=>{try{await B.auth.isAuthenticated()||B.auth.redirectToLogin(window.location.href)}catch(W){console.error("Authentication check failed:",W),B.auth.redirectToLogin(window.location.href)}},0),{...B,setToken(W){B.auth.setToken(W),_&&_.updateConfig({token:W}),w.token=W},getConfig(){return{serverUrl:r,appId:o,requiresAuth:c}},get asServiceRole(){if(!l)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return J}}}const mb=typeof window>"u",iN=mb?{localStorage:new Map}:window,ma=iN.localStorage,sN=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Ns=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(mb)return t;const r=`base44_${sN(e)}`,o=new URLSearchParams(window.location.search),a=o.get(e);if(n){o.delete(e);const c=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return ma.setItem(r,a),a;if(t)return ma.setItem(r,t),t;const l=ma.getItem(r);return l||null},oN=()=>(Ns("clear_access_token")==="true"&&(ma.removeItem("base44_access_token"),ma.removeItem("token")),{appId:Ns("app_id",{defaultValue:"69a1d490980332f8e53a49e0"}),token:Ns("access_token",{removeFromUrl:!0}),fromUrl:Ns("from_url",{defaultValue:window.location.href}),functionsVersion:Ns("functions_version",{defaultValue:"prod"}),appBaseUrl:Ns("app_base_url",{defaultValue:void 0})}),ca={...oN()},{appId:aN,token:lN,functionsVersion:uN,appBaseUrl:cN}=ca,Ln=rN({appId:aN,token:lN,functionsVersion:uN,serverUrl:"",requiresAuth:!1,appBaseUrl:cN}),Rp=F.createContext({});function Ap(e){const t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}const hc=F.createContext(null),Np=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class dN extends F.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function fN({children:e,isPresent:t}){const n=F.useId(),r=F.useRef(null),o=F.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=F.useContext(Np);return F.useInsertionEffect(()=>{const{width:l,height:c,top:f,left:h}=o.current;if(t||!r.current||!l||!c)return;r.current.dataset.motionPopId=n;const p=document.createElement("style");return a&&(p.nonce=a),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 244 [data-motion-pop-id="${n}"] { 245 position: absolute !important; 246 width: ${l}px !important; 247 height: ${c}px !important; 248 top: ${f}px !important; 249 left: ${h}px !important; 250 } 251 `),()=>{document.head.removeChild(p)}},[t]),x.jsx(dN,{isPresent:t,childRef:r,sizeRef:o,children:F.cloneElement(e,{ref:r})})}const hN=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:l})=>{const c=Ap(pN),f=F.useId(),h=F.useCallback(g=>{c.set(g,!0);for(const v of c.values())if(!v)return;r&&r()},[c,r]),p=F.useMemo(()=>({id:f,initial:t,isPresent:n,custom:o,onExitComplete:h,register:g=>(c.set(g,!1),()=>c.delete(g))}),a?[Math.random(),h]:[n,h]);return F.useMemo(()=>{c.forEach((g,v)=>c.set(v,!1))},[n]),F.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(fN,{isPresent:n,children:e})),x.jsx(hc.Provider,{value:p,children:e})};function pN(){return new Map}function gb(e=!0){const t=F.useContext(hc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=F.useId();F.useEffect(()=>{e&&o(a)},[e]);const l=F.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,l]:[!0]}const yu=e=>e.key||"";function Sv(e){const t=[];
vendor: 33,522 bytes, line 251
251return F.Children.forEach(e,n=>{F.isValidElement(n)&&t.push(n)}),t}const jp=typeof window<"u",yb=jp?F.useLayoutEffect:F.useEffect,ts=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1})=>{const[c,f]=gb(l),h=F.useMemo(()=>Sv(e),[e]),p=l&&!c?[]:h.map(yu),g=F.useRef(!0),v=F.useRef(h),w=Ap(()=>new Map),[_,C]=F.useState(h),[k,b]=F.useState(h);yb(()=>{g.current=!1,v.current=h;for(let N=0;N<k.length;N++){const z=yu(k[N]);p.includes(z)?w.delete(z):w.get(z)!==!0&&w.set(z,!1)}},[k,p.length,p.join("-")]);const P=[];if(h!==_){let N=[...h];for(let z=0;z<k.length;z++){const O=k[z],Q=yu(O);p.includes(Q)||(N.splice(z,0,O),P.push(O))}a==="wait"&&P.length&&(N=P),b(Sv(N)),C(h);return}const{forceRender:T}=F.useContext(Rp);return x.jsx(x.Fragment,{children:k.map(N=>{const z=yu(N),O=l&&!c?!1:h===k||p.includes(z),Q=()=>{if(w.has(z))w.set(z,!0);else return;let B=!0;w.forEach(J=>{J||(B=!1)}),B&&(T==null||T(),b(v.current),l&&(f==null||f()),r&&r())};return x.jsx(hN,{isPresent:O,initial:!g.current||n?void 0:!1,custom:O?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:O?void 0:Q,children:N},z)})})},xn=e=>e;let vb=xn;function Op(e){let t;return()=>(t===void 0&&(t=e()),t)}const ro=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},_r=e=>e*1e3,Tr=e=>e/1e3,mN={useManualTiming:!1};function gN(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,p=!1,g=!1)=>{const w=g&&r?t:n;return p&&a.add(h),w.has(h)||w.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(l=h,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(c),t.clear(),r=!1,o&&(o=!1,f.process(h))}};return f}const vu=["read","resolveKeyframes","update","preRender","render","postRender"],yN=40;function xb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=vu.reduce((b,P)=>(b[P]=gN(a),b),{}),{read:c,resolveKeyframes:f,update:h,preRender:p,render:g,postRender:v}=l,w=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,yN),1),o.timestamp=b,o.isProcessing=!0,c.process(o),f.process(o),h.process(o),p.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(w))},_=()=>{n=!0,r=!0,o.isProcessing||e(w)};return{schedule:vu.reduce((b,P)=>{const T=l[P];return b[P]=(N,z=!1,O=!1)=>(n||_(),T.schedule(N,z,O)),b},{}),cancel:b=>{for(let P=0;P<vu.length;P++)l[vu[P]].cancel(b)},state:o,steps:l}}const{schedule:tt,cancel:hi,state:jt,steps:Pf}=xb(typeof requestAnimationFrame<"u"?requestAnimationFrame:xn,!0),wb=F.createContext({strict:!1}),kv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},io={};for(const e in kv)io[e]={isEnabled:t=>kv[e].some(n=>!!t[n])};function vN(e){for(const t in e)io[t]={...io[t],...e[t]}}const xN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ku(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xN.has(e)}let bb=e=>!Ku(e);function wN(e){e&&(bb=t=>t.startsWith("on")?!Ku(t):e(t))}try{wN(require("@emotion/is-prop-valid").default)}catch{}function bN(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(bb(o)||n===!0&&Ku(o)||!t&&!Ku(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function SN(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const pc=F.createContext({});function _a(e){return typeof e=="string"||Array.isArray(e)}function mc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ip=["initial",...Lp];function gc(e){return mc(e.animate)||Ip.some(t=>_a(e[t]))}function Sb(e){return!!(gc(e)||e.variants)}function kN(e,t){if(gc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_a(n)?n:void 0,animate:_a(r)?r:void 0}}return e.inherit!==!1?t:{}}function EN(e){const{initial:t,animate:n}=kN(e,F.useContext(pc));return F.useMemo(()=>({initial:t,animate:n}),[Ev(t),Ev(n)])}function Ev(e){return Array.isArray(e)?e.join(" "):e}const CN=Symbol.for("motionComponentSymbol");function Ls(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _N(e,t,n){return F.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ls(n)&&(n.current=r))},[t])}const Dp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),TN="framerAppearId",kb="data-"+Dp(TN),{schedule:Mp}=xb(queueMicrotask,!1),Eb=F.createContext({});function PN(e,t,n,r,o){var a,l;const{visualElement:c}=F.useContext(pc),f=F.useContext(wb),h=F.useContext(hc),p=F.useContext(Np).reducedMotion,g=F.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const v=g.current,w=F.useContext(Eb);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&RN(g.current,n,o,w);const _=F.useRef(!1);F.useInsertionEffect(()=>{v&&_.current&&v.update(n,h)});const C=n[kb],k=F.useRef(!!C&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,C))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,C)));return yb(()=>{v&&(_.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Mp.render(v.render),k.current&&v.animationState&&v.animationState.animateChanges())}),F.useEffect(()=>{v&&(!k.current&&v.animationState&&v.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,C)}),k.current=!1))}),v}function RN(e,t,n,r){const{layoutId:o,layout:a,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Cb(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!l||c&&Ls(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function Cb(e){if(e)return e.options.allowProjection!==!1?e.projection:Cb(e.parent)}function AN({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var a,l;e&&vN(e);function c(h,p){let g;const v={...F.useContext(Np),...h,layoutId:NN(h)},{isStatic:w}=v,_=EN(h),C=r(h,w);if(!w&&jp){jN();const k=ON(v);g=k.MeasureLayout,_.visualElement=PN(o,C,v,t,k.ProjectionNode)}return x.jsxs(pc.Provider,{value:_,children:[g&&_.visualElement?x.jsx(g,{visualElement:_.visualElement,...v}):null,n(o,h,_N(C,_.visualElement,p),C,w,_.visualElement)]})}c.displayName=`motion.${typeof o=="string"?o:`create(${(l=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&l!==void 0?l:""})`}`;const f=F.forwardRef(c);return f[CN]=o,f}function NN({layoutId:e}){const t=F.useContext(Rp).id;return t&&e!==void 0?t+"-"+e:e}function jN(e,t){F.useContext(wb).strict}function ON(e){const{drag:t,layout:n}=io;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const LN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(LN.indexOf(e)>-1||/[A-Z]/u.test(e))}function Cv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zp(e,t,n,r){if(typeof t=="function"){const[o,a]=Cv(r);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=Cv(r);t=t(n!==void 0?n:e.custom,o,a)}return t}const Th=e=>Array.isArray(e),IN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),DN=e=>Th(e)?e[e.length-1]||0:e,Vt=e=>!!(e&&e.getVelocity);function Lu(e){const t=Vt(e)?e.get():e;return IN(t)?t.toValue():t}function MN({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,a){const l={latestValues:FN(r,o,a,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const _b=e=>(t,n)=>{const r=F.useContext(pc),o=F.useContext(hc),a=()=>MN(e,t,r,o);return n?a():Ap(a)};function FN(e,t,n,r){const o={},a=r(e,{});for(const v in a)o[v]=Lu(a[v]);let{initial:l,animate:c}=e;const f=gc(e),h=Sb(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const g=p?c:l;if(g&&typeof g!="boolean"&&!mc(g)){const v=Array.isArray(g)?g:[g];for(let w=0;w<v.length;w++){const _=zp(e,v[w]);if(_){const{transitionEnd:C,transition:k,...b}=_;for(const P in b){let T=b[P];if(Array.isArray(T)){const N=p?T.length-1:0;T=T[N]}T!==null&&(o[P]=T)}for(const P in C)o[P]=C[P]}}}return o}const uo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ns=new Set(uo),Tb=e=>t=>typeof t=="string"&&t.startsWith(e),Pb=Tb("--"),zN=Tb("var(--"),Bp=e=>zN(e)?BN.test(e.split("/*")[0].trim()):!1,BN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Rb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pr=(e,t,n)=>n>t?t:n<e?e:n,co={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ta={...co,transform:e=>Pr(0,1,e)},xu={...co,default:1},Ha=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zr=Ha("deg"),lr=Ha("%"),Te=Ha("px"),UN=Ha("vh"),VN=Ha("vw"),_v={...lr,parse:e=>lr.parse(e)/100,transform:e=>lr.transform(e*100)},$N={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te},qN={rotate:Zr,rotateX:Zr,rotateY:Zr,rotateZ:Zr,scale:xu,scaleX:xu,scaleY:xu,scaleZ:xu,skew:Zr,skewX:Zr,skewY:Zr,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:Ta,originX:_v,originY:_v,originZ:Te},Tv={...co,transform:Math.round},Up={...$N,...qN,zIndex:Tv,size:Te,fillOpacity:Ta,strokeOpacity:Ta,numOctaves:Tv},HN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WN=uo.length;function KN(e,t,n){let r="",o=!0;for(let a=0;a<WN;a++){const l=uo[a],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=Rb(c,Up[l]);if(!f){o=!1;const p=HN[l]||l;r+=`${p}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Vp(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(ns.has(f)){l=!0;continue}else if(Pb(f)){o[f]=h;continue}else{const p=Rb(h,Up[f]);f.startsWith("origin")?(c=!0,a[f]=p):r[f]=p}}if(t.transform||(l||n?r.transform=KN(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:p=0}=a;r.transformOrigin=`${f} ${h} ${p}`}}const QN={offset:"stroke-dashoffset",array:"stroke-dasharray"},GN={offset:"strokeDashoffset",array:"strokeDasharray"};function XN(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?QN:GN;e[a.offset]=Te.transform(-r);const l=Te.transform(t),c=Te.transform(n);e[a.array]=`${l} ${c}`}function Pv(e,t,n){return typeof e=="string"?e:Te.transform(t+n*e)}function YN(e,t,n){const r=Pv(t,e.x,e.width),o=Pv(n,e.y,e.height);return`${r} ${o}`}function $p(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},p,g){if(Vp(e,h,g),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:w,dimensions:_}=e;v.transform&&(_&&(w.transform=v.transform),delete v.transform),_&&(o!==void 0||a!==void 0||w.transform)&&(w.transformOrigin=YN(_,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),l!==void 0&&XN(v,l,c,f,!1)}const qp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ab=()=>({...qp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const jb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ob(e,t,n,r){Nb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(jb.has(o)?o:Dp(o),t.attrs[o])}const Qu={};function JN(e){Object.assign(Qu,e)}function Lb(e,{layout:t,layoutId:n}){return ns.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qu[e]||e==="opacity")}function Wp(e,t,n){var r;const{style:o}=e,a={};for(const l in o)(Vt(o[l])||t.style&&Vt(t.style[l])||Lb(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[l]=o[l]);return a}function Ib(e,t,n){const r=Wp(e,t,n);for(const o in e)if(Vt(e[o])||Vt(t[o])){const a=uo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[a]=e[o]}return r}function ZN(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Rv=["x","y","width","height","cx","cy","r"],ej={useVisualState:_b({scrapeMotionValuesFromProps:Ib,createRenderState:Ab,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in o)if(ns.has(c)){a=!0;break}}if(!a)return;let l=!t;if(t)for(let c=0;c<Rv.length;c++){const f=Rv[c];e[f]!==t[f]&&(l=!0)}l&&tt.read(()=>{ZN(n,r),tt.render(()=>{$p(r,o,Hp(n.tagName),e.transformTemplate),Ob(n,r)})})}})},tj={useVisualState:_b({scrapeMotionValuesFromProps:Wp,createRenderState:qp})};function Db(e,t,n){for(const r in t)!Vt(t[r])&&!Lb(r,n)&&(e[r]=t[r])}function nj({transformTemplate:e},t){return F.useMemo(()=>{const n=qp();return Vp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function rj(e,t){const n=e.style||{},r={};return Db(r,n,e),Object.assign(r,nj(e,t)),r}function ij(e,t){const n={},r=rj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function sj(e,t,n,r){const o=F.useMemo(()=>{const a=Ab();return $p(a,t,Hp(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Db(a,e.style,e),o.style={...a,...o.style}}return o}function oj(e=!1){return(n,r,o,{latestValues:a},l)=>{const f=(Fp(n)?sj:ij)(r,a,l,n),h=bN(r,typeof n=="string",e),p=n!==F.Fragment?{...h,...f,ref:o}:{},{children:g}=r,v=F.useMemo(()=>Vt(g)?g.get():g,[g]);return F.createElement(n,{...p,children:v})}}function aj(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const l={...Fp(r)?ej:tj,preloadedFeatures:e,useRender:oj(o),createVisualElement:t,Component:r};return AN(l)}}function Mb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function yc(e,t,n){const r=e.getProps();return zp(r,t,n!==void 0?n:r.custom,e)}const lj=Op(()=>window.ScrollTimeline!==void 0);class uj{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(lj()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class cj extends uj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Kp(e,t){return e?e[t]||e.default||e:void 0}const Ph=2e4;function Fb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ph;)t+=n,r=e.next(t);return t>=Ph?1/0:t}function Qp(e){return typeof e=="function"}function Av(e,t){e.timeline=t,e.onfinish=null}const Gp=e=>Array.isArray(e)&&typeof e[0]=="number",dj={linearEasing:void 0};function fj(e,t){const n=Op(e);return()=>{var r;return(r=dj[t])!==null&&r!==void 0?r:n()}}const Gu=fj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zb=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let a=0;a<o;a++)r+=e(ro(0,o-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function Bb(e){return!!(typeof e=="function"&&Gu()||!e||typeof e=="string"&&(e in Rh||Gu())||Gp(e)||Array.isArray(e)&&e.every(Bb))}const da=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:da([0,.65,.55,1]),circOut:da([.55,0,1,.45]),backIn:da([.31,.01,.66,-.59]),backOut:da([.33,1.53,.69,.99])};function Ub(e,t){if(e)return typeof e=="function"&&Gu()?zb(e,t):Gp(e)?da(e):Array.isArray(e)?e.map(n=>Ub(n,t)||Rh.easeOut):Rh[e]}const qn={x:!1,y:!1};function Vb(){return qn.x||qn.y}function hj(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function $b(e,t){const n=hj(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Nv(e){return t=>{t.pointerType==="touch"||Vb()||e(t)}}function pj(e,t,n={}){const[r,o,a]=$b(e,n),l=Nv(c=>{const{target:f}=c,h=t(c);if(typeof h!="function"||!f)return;const p=Nv(g=>{h(g),f.removeEventListener("pointerleave",p)});f.addEventListener("pointerleave",p,o)});return r.forEach(c=>{c.addEventListener("pointerenter",l,o)}),a}const qb=(e,t)=>t?e===t?!0:qb(e,t.parentElement):!1,Xp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gj(e){return mj.has(e.tagName)||e.tabIndex!==-1}const fa=new WeakSet;function jv(e){return t=>{t.key==="Enter"&&e(t)}}function Rf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const yj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=jv(()=>{if(fa.has(n))return;Rf(n,"down");const o=jv(()=>{Rf(n,"up")}),a=()=>Rf(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ov(e){return Xp(e)&&!Vb()}function vj(e,t,n={}){const[r,o,a]=$b(e,n),l=c=>{const f=c.currentTarget;if(!Ov(c)||fa.has(f))return;fa.add(f);const h=t(c),p=(w,_)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!Ov(w)||!fa.has(f))&&(fa.delete(f),typeof h=="function"&&h(w,{success:_}))},g=w=>{p(w,n.useGlobalTarget||qb(f,w.target))},v=w=>{p(w,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return r.forEach(c=>{!gj(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,o),c.addEventListener("focus",h=>yj(h,o),o)}),a}function xj(e){return e==="x"||e==="y"?qn[e]?null:(qn[e]=!0,()=>{qn[e]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}const Hb=new Set(["width","height","top","left","right","bottom",...uo]);let Iu;function wj(){Iu=void 0}const ur={now:()=>(Iu===void 0&&ur.set(jt.isProcessing||mN.useManualTiming?jt.timestamp:performance.now()),Iu),set:e=>{Iu=e,queueMicrotask(wj)}};function Yp(e,t){e.indexOf(t)===-1&&e.push(t)}function Jp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zp{constructor(){this.subscriptions=[]}add(t){return Yp(this.subscriptions,t),()=>Jp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const l=this.subscriptions[a];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Wb(e,t){return t?e*(1e3/t):0}const Lv=30,bj=e=>!isNaN(parseFloat(e));class Sj{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const a=ur.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ur.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zp);const r=this.events[t].add(n);return t==="change"?()=>{r(),tt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ur.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Lv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Lv);return Wb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pa(e,t){return new Sj(e,t)}function kj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pa(n))}function Ej(e,t){const n=yc(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const l in a){const c=DN(a[l]);kj(e,l,c)}}function Cj(e){return!!(Vt(e)&&e.add)}function Ah(e,t){const n=e.getValue("willChange");if(Cj(n))return n.add(t)}function Kb(e){return e.props[kb]}const Qb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_j=1e-7,Tj=12;function Pj(e,t,n,r,o){let a,l,c=0;do l=t+(n-t)/2,a=Qb(l,r,o)-e,a>0?n=l:t=l;while(Math.abs(a)>_j&&++c<Tj);return l}function Wa(e,t,n,r){if(e===t&&n===r)return xn;const o=a=>Pj(a,0,1,e,n);return a=>a===0||a===1?a:Qb(o(a),t,r)}const Gb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xb=e=>t=>1-e(1-t),Yb=Wa(.33,1.53,.69,.99),em=Xb(Yb),Jb=Gb(em),Zb=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),tm=e=>1-Math.sin(Math.acos(e)),eS=Xb(tm),tS=Gb(tm),nS=e=>/^0[^.\s]+$/u.test(e);function Rj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nS(e):!0}const ga=e=>Math.round(e*1e5)/1e5,nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Aj(e){return e==null}const Nj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rm=(e,t)=>n=>!!(typeof n=="string"&&Nj.test(n)&&n.startsWith(e)||t&&!Aj(n)&&Object.prototype.hasOwnProperty.call(n,t)),rS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,a,l,c]=r.match(nm);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},jj=e=>Pr(0,255,e),Af={...co,transform:e=>Math.round(jj(e))},Fi={test:rm("rgb","red"),parse:rS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Af.transform(e)+", "+Af.transform(t)+", "+Af.transform(n)+", "+ga(Ta.transform(r))+")"};function Oj(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Nh={test:rm("#"),parse:Oj,transform:Fi.transform},Is={test:rm("hsl","hue"),parse:rS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lr.transform(ga(t))+", "+lr.transform(ga(n))+", "+ga(Ta.transform(r))+")"},Ut={test:e=>Fi.test(e)||Nh.test(e)||Is.test(e),parse:e=>Fi.test(e)?Fi.parse(e):Is.test(e)?Is.parse(e):Nh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Fi.transform(e):Is.transform(e)},Lj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ij(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Lj))===null||n===void 0?void 0:n.length)||0)>0}const iS="number",sS="color",Dj="var",Mj="var(",Iv="${}",Fj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ra(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const c=t.replace(Fj,f=>(Ut.test(f)?(r.color.push(a),o.push(sS),n.push(Ut.parse(f))):f.startsWith(Mj)?(r.var.push(a),o.push(Dj),n.push(f)):(r.number.push(a),o.push(iS),n.push(parseFloat(f))),++a,Iv)).split(Iv);return{values:n,split:c,indexes:r,types:o}}function oS(e){return Ra(e).values}function aS(e){const{split:t,types:n}=Ra(e),r=t.length;return o=>{let a="";for(let l=0;l<r;l++)if(a+=t[l],o[l]!==void 0){const c=n[l];c===iS?a+=ga(o[l]):c===sS?a+=Ut.transform(o[l]):a+=o[l]}return a}}const zj=e=>typeof e=="number"?0:e;function Bj(e){const t=oS(e);return aS(e)(t.map(zj))}const pi={test:Ij,parse:oS,createTransformer:aS,getAnimatableNone:Bj},Uj=new Set(["brightness","contrast","saturate","opacity"]);function Vj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(nm)||[];if(!r)return e;const o=n.replace(r,"");let a=Uj.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const $j=/\b([a-z-]*)\(.*?\)/gu,jh={...pi,getAnimatableNone:e=>{const t=e.match($j);return t?t.map(Vj).join(" "):e}},qj={...Up,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:jh,WebkitFilter:jh},im=e=>qj[e];function lS(e,t){let n=im(e);return n!==jh&&(n=pi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hj=new Set(["auto","none","0"]);function Wj(e,t,n){let r=0,o;for(;r<e.length&&!o;){const a=e[r];typeof a=="string"&&!Hj.has(a)&&Ra(a).values.length&&(o=e[r]),r++}if(o&&n)for(const a of t)e[a]=lS(n,o)}const Dv=e=>e===co||e===Te,Mv=(e,t)=>parseFloat(e.split(", ")[t]),Fv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Mv(o[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?Mv(a[1],e):0}},Kj=new Set(["x","y","z"]),Qj=uo.filter(e=>!Kj.has(e));function Gj(e){const t=[];return Qj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const so={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Fv(4,13),y:Fv(5,14)};so.translateX=so.x;so.translateY=so.y;const Gi=new Set;let Oh=!1,Lh=!1;function uS(){if(Lh){const e=Array.from(Gi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Gj(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([a,l])=>{var c;(c=r.getValue(a))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Lh=!1,Oh=!1,Gi.forEach(e=>e.complete()),Gi.clear()}function cS(){Gi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lh=!0)})}function Xj(){cS(),uS()}class sm{constructor(t,n,r,o,a,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=a,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gi.add(this),Oh||(Oh=!0,tt.read(cS),tt.resolveKeyframes(uS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const l=o==null?void 0:o.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),o&&l===void 0&&o.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const dS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Yj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jj(e){const t=Yj.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function fS(e,t,n=1){const[r,o]=Jj(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const l=a.trim();return dS(l)?parseFloat(l):l}return Bp(o)?fS(o,t,n+1):o}const hS=e=>t=>t.test(e),Zj={test:e=>e==="auto",parse:e=>e},pS=[co,Te,lr,Zr,VN,UN,Zj],zv=e=>pS.find(hS(e));class mS extends sm{constructor(t,n,r,o,a){super(t,n,r,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Bp(h))){const p=fS(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Hb.has(r)||t.length!==2)return;const[o,a]=t,l=zv(o),c=zv(a);if(l!==c)if(Dv(l)&&Dv(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)Rj(t[o])&&r.push(o);r.length&&Wj(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=so[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=o.length-1,c=o[l];o[l]=so[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 4,597 bytes, line 251
251h(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const Bv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pi.test(e)||e==="0")&&!e.startsWith("url("));function eO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function tO(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],l=Bv(o,t),c=Bv(a,t);return!l||!c?!1:eO(e)||(n==="spring"||Qp(n))&&r}const nO=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(nO),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const rO=40;class gS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ur.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>rO?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Xj(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ur.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:a,delay:l,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!tO(t,r,o,a))if(l)this.options.duration=0;else{f&&f(vc(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const st=(e,t,n)=>e+(t-e)*n;function Nf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,l=0;if(!t)o=a=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;o=Nf(f,c,e+1/3),a=Nf(f,c,e),l=Nf(f,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:r}}function Xu(e,t){return n=>n>0?t:e}const jf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},sO=[Nh,Fi,Is],oO=e=>sO.find(t=>t.test(e));function Uv(e){const t=oO(e);if(!t)return!1;let n=t.parse(e);return t===Is&&(n=iO(n)),n}const Vv=(e,t)=>{const n=Uv(e),r=Uv(t);if(!n||!r)return Xu(e,t);const o={...n};return a=>(o.red=jf(n.red,r.red,a),o.green=jf(n.green,r.green,a),o.blue=jf(n.blue,r.blue,a),o.alpha=st(n.alpha,r.alpha,a),Fi.transform(o))},aO=(e,t)=>n=>t(e(n)),Ka=(...e)=>e.reduce(aO),Ih=new Set(["none","hidden"]);function lO(e,t){return Ih.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function uO(e,t){return n=>st(e,t,n)}function om(e){return typeof e=="number"?uO:typeof e=="string"?Bp(e)?Xu:Ut.test(e)?Vv:fO:Array.isArray(e)?yS:typeof e=="object"?Ut.test(e)?Vv:cO:Xu}function yS(e,t){const n=[...e],r=n.length,o=e.map((a,l)=>om(a)(a,t[l]));return a=>{for(let l=0;l<r;l++)n[l]=o[l](a);return n}}function cO(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=om(e[o])(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}}function dO(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][o[l]],f=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=f,o[l]++}return r}const fO=(e,t)=>{const n=pi.createTransformer(t),r=Ra(e),o=Ra(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ih.has(e)&&!o.values.length||Ih.has(t)&&!r.values.length?lO(e,t):Ka(yS(dO(r,o),o.values),n):Xu(e,t)};function vS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):om(e)(e,t)}const hO=5;function xS(e,t,n){const r=Math.max(t-hO,0);return Wb(n-e(r),t-r)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Of=.001;function pO({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,a,l=1-t;l=Pr(lt.minDamping,lt.maxDamping,l),e=Pr(lt.minDuration,lt.maxDuration,Tr(e)),l<1?(o=h=>{const p=h*l,g=p*e,v=p-n,w=Dh(h,l),_=Math.exp(-g);return Of-v/w*_},a=h=>{const g=h*l*e,v=g*n+n,w=Math.pow(l,2)*Math.pow(h,2)*e,_=Math.exp(-g),C=Dh(Math.pow(h,2),l);return(-o(h)+Of>
vendor: 8,622 bytes, line 251
2510?-1:1)*((v-w)*_)/C}):(o=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-Of+p*g},a=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const c=5/e,f=gO(o,a,c);if(e=_r(e),isNaN(f))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const mO=12;function gO(e,t,n){let r=n;for(let o=1;o<mO;o++)r=r-e(r)/t(r);return r}function Dh(e,t){return e*Math.sqrt(1-t*t)}const yO=["duration","bounce"],vO=["stiffness","damping","mass"];function $v(e,t){return t.some(n=>e[n]!==void 0)}function xO(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!$v(e,vO)&&$v(e,yO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,a=2*Pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:a}}else{const n=pO(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function wS(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:h,mass:p,duration:g,velocity:v,isResolvedFromDuration:w}=xO({...n,velocity:-Tr(n.velocity||0)}),_=v||0,C=h/(2*Math.sqrt(f*p)),k=l-a,b=Tr(Math.sqrt(f/p)),P=Math.abs(k)<5;r||(r=P?lt.restSpeed.granular:lt.restSpeed.default),o||(o=P?lt.restDelta.granular:lt.restDelta.default);let T;if(C<1){const z=Dh(b,C);T=O=>{const Q=Math.exp(-C*b*O);return l-Q*((_+C*b*k)/z*Math.sin(z*O)+k*Math.cos(z*O))}}else if(C===1)T=z=>l-Math.exp(-b*z)*(k+(_+b*k)*z);else{const z=b*Math.sqrt(C*C-1);T=O=>{const Q=Math.exp(-C*b*O),B=Math.min(z*O,300);return l-Q*((_+C*b*k)*Math.sinh(B)+z*k*Math.cosh(B))/z}}const N={calculatedDuration:w&&g||null,next:z=>{const O=T(z);if(w)c.done=z>=g;else{let Q=0;C<1&&(Q=z===0?_r(_):xS(T,z,O));const B=Math.abs(Q)<=r,J=Math.abs(l-O)<=o;c.done=B&&J}return c.value=c.done?l:O,c},toString:()=>{const z=Math.min(Fb(N),Ph),O=zb(Q=>N.next(z*Q).value,z,30);return z+"ms "+O}};return N}function qv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},w=B=>c!==void 0&&B<c||f!==void 0&&B>f,_=B=>c===void 0?f:f===void 0||Math.abs(c-B)<Math.abs(f-B)?c:f;let C=n*t;const k=g+C,b=l===void 0?k:l(k);b!==k&&(C=b-g);const P=B=>-C*Math.exp(-B/r),T=B=>b+P(B),N=B=>{const J=P(B),oe=T(B);v.done=Math.abs(J)<=h,v.value=v.done?b:oe};let z,O;const Q=B=>{w(v.value)&&(z=B,O=wS({keyframes:[v.value,_(v.value)],velocity:xS(T,B,v.value),damping:o,stiffness:a,restDelta:h,restSpeed:p}))};return Q(0),{calculatedDuration:null,next:B=>{let J=!1;return!O&&z===void 0&&(J=!0,N(B),Q(B)),z!==void 0&&B>=z?O.next(B-z):(!J&&N(B),v)}}}const wO=Wa(.42,0,1,1),bO=Wa(0,0,.58,1),bS=Wa(.42,0,.58,1),SO=e=>Array.isArray(e)&&typeof e[0]!="number",kO={linear:xn,easeIn:wO,easeInOut:bS,easeOut:bO,circIn:tm,circInOut:tS,circOut:eS,backIn:em,backInOut:Jb,backOut:Yb,anticipate:Zb},Hv=e=>{if(Gp(e)){vb(e.length===4);const[t,n,r,o]=e;return Wa(t,n,r,o)}else if(typeof e=="string")return kO[e];return e};function EO(e,t,n){const r=[],o=n||vS,a=e.length-1;for(let l=0;l<a;l++){let c=o(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||xn:t;c=Ka(f,c)}r.push(c)}return r}function CO(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(vb(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=EO(t,r,o),f=c.length,h=p=>{if(l&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const v=ro(e[g],e[g+1],p);return c[g](v)};return n?p=>h(Pr(e[0],e[a-1],p)):h}function _O(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ro(0,t,r);e.push(st(n,1,o))}}function TO(e){const t=[0];return _O(t,e.length-1),t}function PO(e,t){return e.map(n=>n*t)}function RO(e,t){return e.map(()=>t||bS).splice(0,e.length-1)}function Yu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=SO(r)?r.map(Hv):Hv(r),a={done:!1,value:t[0]},l=PO(n&&n.length===t.length?n:TO(t),e),c=CO(l,t,{ease:Array.isArray(o)?o:RO(t,o)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const AO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>tt.update(t,!0),stop:()=>hi(t),now:()=>jt.isProcessing?jt.timestamp:ur.now()}},NO={decay:qv,inertia:qv,tween:Yu,keyframes:Yu,spring:wS},jO=e=>e/100;class am extends gS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:o,keyframes:a}=this.options,l=(o==null?void 0:o.KeyframeResolver)||sm,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(a,c,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,c=Qp(n)?n:NO[n]||Yu;let f,h;c!==Yu&&typeof t[0]!="number"&&(f=Ka(jO,vS(t[0],t[1])),t=[0,100]);const p=c({...this.options,keyframes:t});a==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),p.calculatedDuration===null&&(p.calculatedDuration=Fb(p));const{calculatedDuration:g}=p,v=g+o,w=v*(r+1)-o;return{generator:p,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,totalDuration:w}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:B}=this.options;return{done:!0,value:B[B.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:p,resolvedDuration:g}=r;if(this.startTime===null)return a.next(0);const{delay:v,repeat:w,repeatType:_,repeatDelay:C,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-v*(this.speed>=0?1:-1),P=this.speed>=0?b<0:b>p;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let T=this.currentTime,N=a;if(w){const B=Math.min(this.currentTime,p)/g;let J=Math.floor(B),oe=B%1;!oe&&B>=1&&(oe=1),oe===1&&J--,J=Math.min(J,w+1),!!(J%2)&&(_==="reverse"?(oe=1-oe,C&&(oe-=C/g)):_==="mirror"&&(N=l)),T=Pr(0,1,oe)*g}const z=P?{done:!1,value:f[0]}:N.next(T);c&&(z.value=c(z.value));let{done:O}=z;!P&&h!==null&&(O=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return Q&&o!==void 0&&(z.value=vc(f,this.options,o)),k&&k(z.value),Q&&this.finish(),z}get duration(){const{resolved:t}=this;return t?Tr(t.calculatedDuration):0}get time(){return Tr(this.currentTime)}set time(t){t=_r(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Tr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=AO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
vendor: 4,592 bytes, line 251
251ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OO=new Set(["opacity","clipPath","filter","transform"]);function LO(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:l="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const p=Ub(c,o);return Array.isArray(p)&&(h.easing=p),e.animate(h,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}const IO=Op(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ju=10,DO=2e4;function MO(e){return Qp(e.type)||e.type==="spring"||!Bb(e.ease)}function FO(e,t){const n=new am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<DO;)r=n.sample(a),o.push(r.value),a+=Ju;return{times:void 0,keyframes:o,duration:a-Ju,ease:"linear"}}const SS={anticipate:Zb,backInOut:Jb,circInOut:tS};function zO(e){return e in SS}class Wv extends gS{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:a}=this.options;this.resolver=new mS(a,(l,c)=>this.onKeyframesResolved(l,c),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:a,type:l,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&Gu()&&zO(a)&&(a=SS[a]),MO(this.options)){const{onComplete:g,onUpdate:v,motionValue:w,element:_,...C}=this.options,k=FO(t,C);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,o=k.times,a=k.ease,l="keyframes"}const p=LO(c.owner.current,f,t,{...this.options,duration:r,times:o,ease:a});return p.startTime=h??this.calcStartTime(),this.pendingTimeline?(Av(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:g}=this.options;c.set(vc(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:r,times:o,type:l,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_r(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return xn;const{animation:r}=n;Av(r,t)}return xn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:a,ease:l,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:p,onComplete:g,element:v,...w}=this.options,_=new am({...w,keyframes:r,duration:o,type:a,ease:l,times:c,isGenerator:!0}),C=_r(this.time);h.setWithVelocity(_.sample(C-Ju).value,_.sample(C).value,Ju)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:a,damping:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return IO()&&r&&OO.has(r)&&!f&&!h&&!o&&a!=="mirror"&&l!==0&&c!=="inertia"}}const BO={type:"spring",stiffness:500,damping:25,restSpeed:10},UO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),VO={type:"keyframes",duration:.8},$O={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qO=(e,{keyframes:t})=>t.length>2?VO:ns.has(e)?e.startsWith("scale")?UO(t[1]):BO:$O;function HO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:c,from:f,elapsed:
vendor: 52,603 bytes, line 251
251h,...p}){return!!Object.keys(p).length}const lm=(e,t,n,r={},o,a)=>l=>{const c=Kp(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-_r(f);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};HO(c)||(p={...p,...qO(e,p)}),p.duration&&(p.duration=_r(p.duration)),p.repeatDelay&&(p.repeatDelay=_r(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=vc(p.keyframes,c);if(v!==void 0)return tt.update(()=>{p.onUpdate(v),p.onComplete()}),new cj([])}return!a&&Wv.supports(p)?new Wv(p):new am(p)};function WO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...f}=t;r&&(l=r);const h=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),w=f[g];if(w===void 0||p&&WO(p,g))continue;const _={delay:n,...Kp(l||{},g)};let C=!1;if(window.MotionHandoffAnimation){const b=Kb(e);if(b){const P=window.MotionHandoffAnimation(b,g,tt);P!==null&&(_.startTime=P,C=!0)}}Ah(e,g),v.start(lm(g,v,w,e.shouldReduceMotion&&Hb.has(g)?{type:!1}:_,e,C));const k=v.animation;k&&h.push(k)}return c&&Promise.all(h).then(()=>{tt.update(()=>{c&&Ej(e,c)})}),h}function Mh(e,t,n={}){var r;const o=yc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const l=o?()=>Promise.all(kS(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=a;return KO(e,t,p+h,g,v,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,p]=f==="beforeChildren"?[l,c]:[c,l];return h().then(()=>p())}else return Promise.all([l(),c(n.delay)])}function KO(e,t,n=0,r=0,o=1,a){const l=[],c=(e.variantChildren.size-1)*r,f=o===1?(h=0)=>h*r:(h=0)=>c-h*r;return Array.from(e.variantChildren).sort(QO).forEach((h,p)=>{h.notify("AnimationStart",t),l.push(Mh(h,t,{...a,delay:n+f(p)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function QO(e,t){return e.sortNodePosition(t)}function GO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>Mh(e,a,n));r=Promise.all(o)}else if(typeof t=="string")r=Mh(e,t,n);else{const o=typeof t=="function"?yc(e,t,n.custom):t;r=Promise.all(kS(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const XO=Ip.length;function ES(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ES(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<XO;n++){const r=Ip[n],o=e.props[r];(_a(o)||o===!1)&&(t[r]=o)}return t}const YO=[...Lp].reverse(),JO=Lp.length;function ZO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GO(e,n,r)))}function eL(e){let t=ZO(e),n=Kv(),r=!0;const o=f=>(h,p)=>{var g;const v=yc(e,p,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:w,transitionEnd:_,...C}=v;h={...h,...C,..._}}return h};function a(f){t=f(e)}function l(f){const{props:h}=e,p=ES(e.parent)||{},g=[],v=new Set;let w={},_=1/0;for(let k=0;k<JO;k++){const b=YO[k],P=n[b],T=h[b]!==void 0?h[b]:p[b],N=_a(T),z=b===f?P.isActive:null;z===!1&&(_=k);let O=T===p[b]&&T!==h[b]&&N;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),P.protectedKeys={...w},!P.isActive&&z===null||!T&&!P.prevProp||mc(T)||typeof T=="boolean")continue;const Q=tL(P.prevProp,T);let B=Q||b===f&&P.isActive&&!O&&N||k>_&&N,J=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(o(b),{});z===!1&&(W={});const{prevResolvedValues:re={}}=P,Ee={...re,...W},ie=le=>{B=!0,v.has(le)&&(J=!0,v.delete(le)),P.needsAnimating[le]=!0;const X=e.getValue(le);X&&(X.liveStyle=!1)};for(const le in Ee){const X=W[le],ue=re[le];if(w.hasOwnProperty(le))continue;let E=!1;Th(X)&&Th(ue)?E=!Mb(X,ue):E=X!==ue,E?X!=null?ie(le):v.add(le):X!==void 0&&v.has(le)?ie(le):P.protectedKeys[le]=!0}P.prevProp=T,P.prevResolvedValues=W,P.isActive&&(w={...w,...W}),r&&e.blockInitialAnimation&&(B=!1),B&&(!(O&&Q)||J)&&g.push(...oe.map(le=>({animation:le,options:{type:b}})))}if(v.size){const k={};v.forEach(b=>{const P=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),k[b]=P??null}),g.push({animation:k})}let C=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(g):Promise.resolve()}function c(f,h){var p;if(n[f].isActive===h)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(f,h)}),n[f].isActive=h;const g=l(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Kv(),r=!0}}}function tL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mb(t,e):!1}function Oi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kv(){return{animate:Oi(!0),whileInView:Oi(),whileHover:Oi(),whileTap:Oi(),whileDrag:Oi(),whileFocus:Oi(),exit:Oi()}}class gi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nL extends gi{constructor(t){super(t),t.animationState||(t.animationState=eL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let rL=0;class iL extends gi{constructor(){super(...arguments),this.id=rL++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sL={animation:{Feature:nL},exit:{Feature:iL}};function Aa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qa(e){return{point:{x:e.pageX,y:e.pageY}}}const oL=e=>t=>Xp(t)&&e(t,Qa(t));function ya(e,t,n,r){return Aa(e,t,oL(n),r)}const Qv=(e,t)=>Math.abs(e-t);function aL(e,t){const n=Qv(e.x,t.x),r=Qv(e.y,t.y);return Math.sqrt(n**2+r**2)}class CS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=If(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,w=aL(g.offset,{x:0,y:0})>=3;if(!v&&!w)return;const{point:_}=g,{timestamp:C}=jt;this.history.push({..._,timestamp:C});const{onStart:k,onMove:b}=this.handlers;v||(k&&k(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Lf(v,this.transformPagePoint),tt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:w,onSessionEnd:_,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=If(g.type==="pointercancel"?this.lastMoveEventInfo:Lf(v,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,k),_&&_(g,k)},!Xp(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const l=Qa(t),c=Lf(l,this.transformPagePoint),{point:f}=c,{timestamp:h}=jt;this.history=[{...f,timestamp:h}];const{onSessionStart:p}=n;p&&p(t,If(c,this.history)),this.removeListeners=Ka(ya(this.contextWindow,"pointermove",this.handlePointerMove),ya(this.contextWindow,"pointerup",this.handlePointerUp),ya(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hi(this.updatePoint)}}function Lf(e,t){return t?{point:t(e.point)}:e}function Gv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function If({point:e},t){return{point:e,delta:Gv(e,_S(t)),offset:Gv(e,lL(t)),velocity:uL(t,.1)}}function lL(e){return e[0]}function _S(e){return e[e.length-1]}function uL(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=_S(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_r(t)));)n--;if(!r)return{x:0,y:0};const a=Tr(o.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const TS=1e-4,cL=1-TS,dL=1+TS,PS=.01,fL=0-PS,hL=0+PS;function wn(e){return e.max-e.min}function pL(e,t,n){return Math.abs(e-t)<=n}function Xv(e,t,n,r=.5){e.origin=r,e.originPoint=st(t.min,t.max,e.origin),e.scale=wn(n)/wn(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cL&&e.scale<=dL||isNaN(e.scale))&&(e.scale=1),(e.translate>=fL&&e.translate<=hL||isNaN(e.translate))&&(e.translate=0)}function va(e,t,n,r){Xv(e.x,t.x,n.x,r?r.originX:void 0),Xv(e.y,t.y,n.y,r?r.originY:void 0)}function Yv(e,t,n){e.min=n.min+t.min,e.max=e.min+wn(t)}function mL(e,t,n){Yv(e.x,t.x,n.x),Yv(e.y,t.y,n.y)}function Jv(e,t,n){e.min=t.min-n.min,e.max=e.min+wn(t)}function xa(e,t,n){Jv(e.x,t.x,n.x),Jv(e.y,t.y,n.y)}function gL(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?st(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?st(n,e,r.max):Math.min(e,n)),e}function Zv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yL(e,{top:t,left:n,bottom:r,right:o}){return{x:Zv(e.x,n,o),y:Zv(e.y,t,r)}}function ex(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function vL(e,t){return{x:ex(e.x,t.x),y:ex(e.y,t.y)}}function xL(e,t){let n=.5;const r=wn(e),o=wn(t);return o>r?n=ro(t.min,t.max-r,e.min):r>o&&(n=ro(e.min,e.max-o,t.min)),Pr(0,1,n)}function wL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Fh=.35;function bL(e=Fh){return e===!1?e=0:e===!0&&(e=Fh),{x:tx(e,"left","right"),y:tx(e,"top","bottom")}}function tx(e,t,n){return{min:nx(e,t),max:nx(e,n)}}function nx(e,t){return typeof e=="number"?e:e[t]||0}const rx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ds=()=>({x:rx(),y:rx()}),ix=()=>({min:0,max:0}),dt=()=>({x:ix(),y:ix()});function Rn(e){return[e("x"),e("y")]}function RS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function SL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Df(e){return e===void 0||e===1}function zh({scale:e,scaleX:t,scaleY:n}){return!Df(e)||!Df(t)||!Df(n)}function Li(e){return zh(e)||AS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function AS(e){return sx(e.x)||sx(e.y)}function sx(e){return e&&e!=="0%"}function Zu(e,t,n){const r=e-n,o=t*r;return n+o}function ox(e,t,n,r,o){return o!==void 0&&(e=Zu(e,o,r)),Zu(e,n,r)+t}function Bh(e,t=0,n=1,r,o){e.min=ox(e.min,t,n,r,o),e.max=ox(e.max,t,n,r,o)}function NS(e,{x:t,y:n}){Bh(e.x,t.translate,t.scale,t.originPoint),Bh(e.y,n.translate,n.scale,n.originPoint)}const ax=.999999999999,lx=1.0000000000001;function EL(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,l;for(let c=0;c<o;c++){a=n[c],l=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,NS(e,l)),r&&Li(a.latestValues)&&Fs(e,a.latestValues))}t.x<lx&&t.x>ax&&(t.x=1),t.y<lx&&t.y>ax&&(t.y=1)}function Ms(e,t){e.min=e.min+t,e.max=e.max+t}function ux(e,t,n,r,o=.5){const a=st(e.min,e.max,o);Bh(e,t,n,a,r)}function Fs(e,t){ux(e.x,t.x,t.scaleX,t.scale,t.originX),ux(e.y,t.y,t.scaleY,t.scale,t.originY)}function jS(e,t){return RS(kL(e.getBoundingClientRect(),t))}function CL(e,t,n){const r=jS(e,n),{scroll:o}=t;return o&&(Ms(r.x,o.offset.x),Ms(r.y,o.offset.y)),r}const OS=({current:e})=>e?e.ownerDocument.defaultView:null,_L=new WeakMap;class TL{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qa(p).point)},a=(p,g)=>{const{drag:v,dragPropagation:w,onDragStart:_}=this.getProps();if(v&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xj(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rn(k=>{let b=this.getAxisMotionValue(k).get()||0;if(lr.test(b)){const{projection:P}=this.visualElement;if(P&&P.layout){const T=P.layout.layoutBox[k];T&&(b=wn(T)*(parseFloat(b)/100))}}this.originPoint[k]=b}),_&&tt.postRender(()=>_(p,g)),Ah(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},l=(p,g)=>{const{dragPropagation:v,dragDirectionLock:w,onDirectionLock:_,onDrag:C}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=g;if(w&&this.currentDirection===null){this.currentDirection=PL(k),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",g.point,k),this.updateAxis("y",g.point,k),this.visualElement.render(),C&&C(p,g)},c=(p,g)=>this.stop(p,g),f=()=>Rn(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new CS(t,{onSessionStart:o,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:OS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&tt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!wu(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=gL(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Ls(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=yL(o.layoutBox,n):this.constraints=!1,this.elastic=bL(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Rn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=wL(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ls(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=CL(r,o.root,this.visualElement.getTransformPagePoint());let l=vL(o.layout.layoutBox,a);if(n){const c=n(SL(l));this.hasMutatedConstraints=!!c,c&&(l=RS(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Rn(p=>{if(!wu(p,n,this.currentDirection))return;let g=f&&f[p]||{};l&&(g={min:0,max:0});const v=o?200:1e6,w=o?40:1e7,_={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(p,_)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ah(this.visualElement,t),r.start(lm(t,r,0,n,this.visualElement,!1))}stopAnimation(){Rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Rn(n=>{const{drag:r}=this.getProps();if(!wu(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[n];a.set(t[n]-st(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ls(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Rn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();o[l]=xL({min:f,max:f},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Rn(l=>{if(!wu(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(st(f,h,o[l]))})}addListeners(){if(!this.visualElement.current)return;_L.set(this.visualElement,this);const t=this.visualElement.current,n=ya(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Ls(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),tt.read(r);const l=Aa(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Rn(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=Fh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:c}}}function wu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RL extends gi{constructor(t){super(t),this.removeGroupControls=xn,this.removeListeners=xn,this.controls=new TL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xn}unmount(){this.removeGroupControls(),this.removeListeners()}}const cx=e=>(t,n)=>{e&&tt.postRender(()=>e(t,n))};class AL extends gi{constructor(){super(...arguments),this.removePointerDownListener=xn}onPointerDown(t){this.session=new CS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:cx(t),onStart:cx(n),onMove:r,onEnd:(a,l)=>{delete this.session,o&&tt.postRender(()=>o(a,l))}}}mount(){this.removePointerDownListener=ya(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Du={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const na={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=dx(e,t.target.x),r=dx(e,t.target.y);return`${n}% ${r}%`}},NL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=pi.parse(e);if(o.length>5)return r;const a=pi.createTransformer(e),l=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;o[0+l]/=c,o[1+l]/=f;const h=st(c,f,.5);return typeof o[2+l]=="number"&&(o[2+l]/=h),typeof o[3+l]=="number"&&(o[3+l]/=h),a(o)}};class jL extends F.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:a}=t;JN(OL),a&&(n.group&&n.group.add(a),r&&r.register&&o&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Du.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:a}=this.props,l=r.projection;return l&&(l.isPresent=a,o||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||tt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Mp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function LS(e){const[t,n]=gb(),r=F.useContext(Rp);return x.jsx(jL,{...e,layoutGroup:r,switchLayoutGroup:F.useContext(Eb),isPresent:t,safeToRemove:n})}const OL={borderRadius:{...na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:na,borderTopRightRadius:na,borderBottomLeftRadius:na,borderBottomRightRadius:na,boxShadow:NL};function LL(e,t,n){const r=Vt(e)?e:Pa(e);return r.start(lm("",r,t,n)),r.animation}function IL(e){return e instanceof SVGElement&&e.tagName!=="svg"}const DL=(e,t)=>e.depth-t.depth;class ML{constructor(){this.children=[],this.isDirty=!1}add(t){Yp(this.children,t),this.isDirty=!0}remove(t){Jp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(DL),this.isDirty=!1,this.children.forEach(t)}}function FL(e,t){const n=ur.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(hi(r),e(a-t))};return tt.read(r,!0),()=>hi(r)}const IS=["TopLeft","TopRight","BottomLeft","BottomRight"],zL=IS.length,fx=e=>typeof e=="string"?parseFloat(e):e,hx=e=>typeof e=="number"||Te.test(e);function BL(e,t,n,r,o,a){o?(e.opacity=st(0,n.opacity!==void 0?n.opacity:1,UL(r)),e.opacityExit=st(t.opacity!==void 0?t.opacity:1,0,VL(r))):a&&(e.opacity=st(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<zL;l++){const c=`border${IS[l]}Radius`;let f=px(t,c),h=px(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||hx(f)===hx(h)?(e[c]=Math.max(st(fx(f),fx(h),r),0),(lr.test(h)||lr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,r))}function px(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const UL=DS(0,.5,eS),VL=DS(.5,.95,xn);function DS(e,t,n){return r=>r<e?0:r>t?1:n(ro(e,t,r))}function mx(e,t){e.min=t.min,e.max=t.max}function Pn(e,t){mx(e.x,t.x),mx(e.y,t.y)}function gx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function yx(e,t,n,r,o){return e-=t,e=Zu(e,1/n,r),o!==void 0&&(e=Zu(e,1/o,r)),e}function $L(e,t=0,n=1,r=.5,o,a=e,l=e){if(lr.test(t)&&(t=parseFloat(t),t=st(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=st(a.min,a.max,r);e===a&&(c-=t),e.min=yx(e.min,t,n,c,o),e.max=yx(e.max,t,n,c,o)}function vx(e,t,[n,r,o],a,l){$L(e,t[n],t[r],t[o],t.scale,a,l)}const qL=["x","scaleX","originX"],HL=["y","scaleY","originY"];function xx(e,t,n,r){vx(e.x,t,qL,n?n.x:void 0,r?r.x:void 0),vx(e.y,t,HL,n?n.y:void 0,r?r.y:void 0)}function wx(e){return e.translate===0&&e.scale===1}function MS(e){return wx(e.x)&&wx(e.y)}function bx(e,t){return e.min===t.min&&e.max===t.max}function WL(e,t){return bx(e.x,t.x)&&bx(e.y,t.y)}function Sx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function FS(e,t){return Sx(e.x,t.x)&&Sx(e.y,t.y)}function kx(e){return wn(e.x)/wn(e.y)}function Ex(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class KL{constructor(){this.members=[]}add(t){Yp(this.members,t),t.scheduleRender()}remove(t){if(Jp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function QL(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||a||l)&&(r=`translate3d(${o}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:v,skewX:w,skewY:_}=n;h&&(r=`perspective(${h}px) ${r}`),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),w&&(r+=`skewX(${w}deg) `),_&&(r+=`skewY(${_}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const Ii={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ha=typeof window<"u"&&window.MotionDebug!==void 0,Mf=["","X","Y","Z"],GL={visibility:"hidden"},Cx=1e3;let XL=0;function Ff(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tt,!(o||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zS(r)}function BS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(l={},c=t==null?void 0:t()){this.id=XL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ha&&(Ii.totalNodes=Ii.resolvedTargetDeltas=Ii.recalculatedProjection=0),this.nodes.forEach(ZL),this.nodes.forEach(i4),this.nodes.forEach(s4),this.nodes.forEach(e4),ha&&window.MotionDebug.record(Ii)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new ML)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Zp),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=IL(l),this.instance=l;const{layoutId:f,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||f)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=FL(v,250),Du.hasAnimatedSinceResize&&(Du.hasAnimatedSinceResize=!1,this.nodes.forEach(Tx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||p.getDefaultTransition()||c4,{onLayoutAnimationStart:k,onLayoutAnimationComplete:b}=p.getProps(),P=!this.targetLayout||!FS(this.targetLayout,_)||w,T=!v&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||v&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,T);const N={...Kp(C,"layout"),onPlay:k,onComplete:b};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N)}else v||Tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,hi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o4),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_x);return}this.isUpdating||this.nodes.forEach(n4),this.isUpdating=!1,this.nodes.forEach(r4),this.nodes.forEach(YL),this.nodes.forEach(JL),this.clearAllSnapshots();const c=ur.now();jt.delta=Pr(0,1e3/60,c-jt.timestamp),jt.timestamp=c,jt.isProcessing=!0,Pf.update.process(jt),Pf.preRender.process(jt),Pf.render.process(jt),jt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t4),this.sharedNodes.forEach(a4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=dt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!MS(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;l&&(c||Li(this.latestValues)||p)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),d4(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return dt();const f=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(f4))){const{scroll:p}=this.root;p&&(Ms(f.x,p.offset.x),Ms(f.y,p.offset.y))}return f}removeElementScroll(l){var c;const f=dt();if(Pn(f,l),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&Pn(f,l),Ms(f.x,g.offset.x),Ms(f.y,g.offset.y))}return f}applyTransform(l,c=!1){const f=dt();Pn(f,l);for(let h=0;h<this.path.length;h++){const p=this.path[h];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Fs(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Li(p.latestValues)&&Fs(f,p.latestValues)}return Li(this.latestValues)&&Fs(f,this.latestValues),f}removeTransform(l){const c=dt();Pn(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Li(h.latestValues))continue;zh(h.latestValues)&&h.updateSnapshot();const p=dt(),g=h.measurePageBox();Pn(p,g),xx(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Li(this.latestValues)&&xx(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=jt.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=dt(),this.relativeTargetOrigin=dt(),xa(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=dt(),this.targetWithTransforms=dt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Pn(this.target,this.layout.layoutBox),NS(this.target,this.targetDelta)):Pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=dt(),this.relativeTargetOrigin=dt(),xa(this.relativeTargetOrigin,this.target,w.target),Pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ha&&Ii.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||zh(this.parent.latestValues)||AS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===jt.timestamp&&(h=!1),h)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Pn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;EL(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=dt());const{target:_}=c;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gx(this.prevProjectionDelta.x,this.projectionDelta.x),gx(this.prevProjectionDelta.y,this.projectionDelta.y)),va(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!Ex(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ex(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),ha&&Ii.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ds(),this.projectionDelta=Ds(),this.projectionDeltaWithTransform=Ds()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=Ds();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=dt(),w=f?f.source:void 0,_=this.layout?this.layout.source:void 0,C=w!==_,k=this.getStack(),b=!k||k.members.length<=1,P=!!(C&&!b&&this.options.crossfade===!0&&!this.path.some(u4));this.animationProgress=0;let T;this.mixTargetDelta=N=>{const z=N/1e3;Px(g.x,l.x,z),Px(g.y,l.y,z),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xa(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l4(this.relativeTarget,this.relativeTargetOrigin,v,z),T&&WL(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=dt()),Pn(T,this.relativeTarget)),C&&(this.animationValues=p,BL(p,h,this.latestValues,z,P,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(hi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tt.update(()=>{Du.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,Cx,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:p}=l;if(!(!c||!f||!h)){if(this!==l&&this.layout&&h&&US(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||dt();const g=wn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+g;const v=wn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+v}Pn(c,f),Fs(c,p),va(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new KL),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&Ff("z",l,h,this.animationValues);for(let p=0;p<Mf.length;p++)Ff(`rotate${Mf[p]}`,l,h,this.animationValues),Ff(`skew${Mf[p]}`,l,h,this.animationValues);l.render();for(const p in h)l.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);l.scheduleRender()}getProjectionStyles(l){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return GL;const h={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Lu(l==null?void 0:l.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=Lu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Li(this.latestValues)&&(C.transform=p?p({},""):"none",this.hasProjected=!1),C}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=QL(this.projectionDeltaWithTransform,this.treeScale,v),p&&(h.transform=p(v,h.transform));const{x:w,y:_}=this.projectionDelta;h.transformOrigin=`${w.origin*100}% ${_.origin*100}% 0`,g.animationValues?h.opacity=g===this?(f=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const C in Qu){if(v[C]===void 0)continue;const{correct:k,applyTo:b}=Qu[C],P=h.transform==="none"?v[C]:k(v[C],g);if(b){const T=b.length;for(let N=0;N<T;N++)h[b[N]]=P}else h[C]=P}return this.options.layoutId&&(h.pointerEvents=g===this?Lu(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(_x),this.root.sharedNodes.clear()}}}function YL(e){e.updateLayout()}function JL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:a}=e.options,l=n.source!==e.layout.source;a==="size"?Rn(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],w=wn(v);v.min=r[g].min,v.max=v.min+w}):US(a,n.layoutBox,r)&&Rn(g=>{const v=l?n.measuredBox[g]:n.layoutBox[g],w=wn(r[g]);v.max=v.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const c=Ds();va(c,r,n.layoutBox);const f=Ds();l?va(f,e.applyTransform(o,!0),n.measuredBox):va(f,r,n.layoutBox);const h=!MS(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:w}=g;if(v&&w){const _=dt();xa(_,n.layoutBox,v.layoutBox);const C=dt();xa(C,r,w.layoutBox),FS(_,C)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=_,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ZL(e){ha&&Ii.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t4(e){e.clearSnapshot()}function _x(e){e.clearMeasurements()}function n4(e){e.isLayoutDirty=!1}function r4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i4(e){e.resolveTargetDelta()}function s4(e){e.calcProjection()}function o4(e){e.resetSkewAndRotation()}function a4(e){e.removeLeadSnapshot()}function Px(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rx(e,t,n,r){e.min=st(t.min,n.min,r),e.max=st(t.max,n.max,r)}function l4(e,t,n,r){Rx(e.x,t.x,n.x,r),Rx(e.y,t.y,n.y,r)}function u4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c4={duration:.45,ease:[.4,0,.1,1]},Ax=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nx=Ax("applewebkit/")&&!Ax("chrome/")?Math.round:xn;function jx(e){e.min=Nx(e.min),e.max=Nx(e.max)}function d4(e){jx(e.x),jx(e.y)}function US(e,t,n){return e==="position"||e==="preserve-aspect"&&!pL(kx(t),kx(n),.2)}function f4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const h4=BS({attachResizeListener:(e,t)=>Aa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zf={current:void 0},VS=BS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zf.current){const e=new h4({});e.mount(window),e.setOptions({layoutScroll:!0}),zf.current=e}return zf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),p4={pan:{Feature:AL},drag:{Feature:RL,ProjectionNode:VS,MeasureLayout:LS}};function Ox(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=r[o];a&&tt.postRender(()=>a(t,Qa(t)))}class m4 extends gi{mount(){const{current:t}=this.node;t&&(this.unmount=pj(t,n=>(Ox(this.node,n,"Start"),r=>Ox(this.node,r,"End"))))}unmount(){}}class g4 extends gi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ka(Aa(this.node.current,"focus",()=>this.onFocus()),Aa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Lx(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=r[o];a&&tt.postRender(()=>a(t,Qa(t)))}class y4 extends gi{mount(){const{current:t}=this.node;t&&(this.unmount=vj(t,n=>(Lx(this.node,n,"Start"),(r,{success:o})=>Lx(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Uh=new WeakMap,Bf=new WeakMap,v4=e=>{const t=Uh.get(e.target);t&&t(e)},x4=e=>{e.forEach(v4)};function w4({root:e,...t}){const n=e||document;Bf.has(n)||Bf.set(n,{});const r=Bf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(x4,{root:e,...t})),r[o]}function b4(e,t,n){const r=w4(t);return Uh.set(e,n),r.observe(e),()=>{Uh.delete(e),r.unobserve(e)}}const S4={some:0,all:1};class k4 extends gi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:S4[o]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=h?p:g;v&&v(f)};return b4(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(E4(t,n))&&this.startObserver()}unmount(){}}function E4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const C4={inView:{Feature:k4},tap:{Feature:y4},focus:{Feature:g4},hover:{Feature:m4}}
vendor: 5,277 bytes, line 251
251,_4={layout:{ProjectionNode:VS,MeasureLayout:LS}},Vh={current:null},$S={current:!1};function T4(){if($S.current=!0,!!jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vh.current=e.matches;e.addListener(t),t()}else Vh.current=!1}const P4=[...pS,Ut,pi],R4=e=>P4.find(hS(e)),Ix=new WeakMap;function A4(e,t,n){for(const r in t){const o=t[r],a=n[r];if(Vt(o))e.addValue(r,o);else if(Vt(a))e.addValue(r,Pa(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,Pa(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=ur.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,tt.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:p}=l;this.onUpdate=p,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=gc(n),this.isVariantNode=Sb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in v){const _=v[w];f[w]!==void 0&&Vt(_)&&_.set(f[w],!1)}}mount(t){this.current=t,Ix.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),$S.current||T4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ix.delete(this.current),this.projection&&this.projection.unmount(),hi(this.notifyUpdate),hi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ns.has(t),o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&tt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in io){const n=io[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Dx.length;r++){const o=Dx[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,l=t[a];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=A4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 4,246 bytes, lines 251-260
251addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Pa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(dS(o)||nS(o))?o=parseFloat(o):!R4(o)&&pi.test(n)&&(o=lS(t,n)),this.setBaseTarget(t,Vt(o)?o.get():o)),Vt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=zp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Vt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class qS extends N4{constructor(){super(...arguments),this.KeyframeResolver=mS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function j4(e){return window.getComputedStyle(e)}class O4 extends qS{constructor(){super(...arguments),this.type="html",this.renderInstance=Nb}readValueFromInstance(t,n){if(ns.has(n)){const r=im(n);return r&&r.default||0}else{const r=j4(t),o=(Pb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jS(t,n)}build(t,n,r){Vp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Wp(t,n,r)}}class L4 extends qS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ns.has(n)){const r=im(n);return r&&r.default||0}return n=jb.has(n)?n:Dp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ib(t,n,r)}build(t,n,r){$p(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Ob(t,n,r,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const I4=(e,t)=>Fp(e)?new L4(t):new O4(t,{allowProjection:e!==F.Fragment}),D4=aj({...sL,...C4,...p4,..._4},I4),Me=SN(D4);Ww();/** 252 * @remix-run/router v1.23.2 253 * 254 * Copyright (c) Remix Software Inc. 255 * 256 * This source code is licensed under the MIT license found in the 257 * LICENSE.md file in the root directory of this source tree. 258 * 259 * @license MIT 260 */function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}var li;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(li||(li={}));const Mx="popstate";function M4(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:l,hash:c}=r.location;return $h("",{pathname:a,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:ec(o)}return z4(t,n,null,e)}function yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function um(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}
vendor: 11,368 bytes, lines 260-269
260function F4(){return Math.random().toString(36).substr(2,8)}function Fx(e,t){return{usr:e.state,key:e.key,idx:t}}function $h(e,t,n,r){return n===void 0&&(n=null),Na({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fo(t):t,{state:n,key:t&&t.key||r||F4()})}function ec(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function z4(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,l=o.history,c=li.Pop,f=null,h=p();h==null&&(h=0,l.replaceState(Na({},l.state,{idx:h}),""));function p(){return(l.state||{idx:null}).idx}function g(){c=li.Pop;let k=p(),b=k==null?null:k-h;h=k,f&&f({action:c,location:C.location,delta:b})}function v(k,b){c=li.Push;let P=$h(C.location,k,b);h=p()+1;let T=Fx(P,h),N=C.createHref(P);try{l.pushState(T,"",N)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;o.location.assign(N)}a&&f&&f({action:c,location:C.location,delta:1})}function w(k,b){c=li.Replace;let P=$h(C.location,k,b);h=p();let T=Fx(P,h),N=C.createHref(P);l.replaceState(T,"",N),a&&f&&f({action:c,location:C.location,delta:0})}function _(k){let b=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof k=="string"?k:ec(k);return P=P.replace(/ $/,"%20"),yt(b,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,b)}let C={get action(){return c},get location(){return e(o,l)},listen(k){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(Mx,g),f=k,()=>{o.removeEventListener(Mx,g),f=null}},createHref(k){return t(o,k)},createURL:_,encodeLocation(k){let b=_(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:v,replace:w,go(k){return l.go(k)}};return C}var zx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zx||(zx={}));function B4(e,t,n){return n===void 0&&(n="/"),U4(e,t,n)}function U4(e,t,n,r){let o=typeof t=="string"?fo(t):t,a=cm(o.pathname||"/",n);if(a==null)return null;let l=HS(e);V4(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let h=eI(a);c=Y4(l[f],h)}return c}function HS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,l,c)=>{let f={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};f.relativePath.startsWith("/")&&(yt(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let h=di([r,f.relativePath]),p=n.concat(f);a.children&&a.children.length>0&&(yt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),HS(a.children,t,p,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:G4(h,a.index),routesMeta:p})};return e.forEach((a,l)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,l);else for(let f of WS(a.path))o(a,l,f)}),t}function WS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let l=WS(r.join("/")),c=[];return c.push(...l.map(f=>f===""?a:[a,f].join("/"))),o&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function V4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:X4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $4=/^:[\w-]+$/,q4=3,H4=2,W4=1,K4=10,Q4=-2,Bx=e=>e==="*";function G4(e,t){let n=e.split("/"),r=n.length;return n.some(Bx)&&(r+=Q4),t&&(r+=H4),n.filter(o=>!Bx(o)).reduce((o,a)=>o+($4.test(a)?q4:a===""?W4:K4),r)}function X4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Y4(e,t,n){let{routesMeta:r}=e,o={},a="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],h=c===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",g=J4({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),v=f.route;if(!g)return null;Object.assign(o,g.params),l.push({params:o,pathname:di([a,g.pathname]),pathnameBase:sI(di([a,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(a=di([a,g.pathnameBase]))}return l}function J4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Z4(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((h,p,g)=>{let{paramName:v,isOptional:w}=p;if(v==="*"){let C=c[g]||"";l=a.slice(0,a.length-C.length).replace(/(.)\/+$/,"$1")}const _=c[g];return w&&!_?h[v]=void 0:h[v]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:e}}function Z4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),um(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function eI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return um(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const tI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nI=e=>tI.test(e);function rI(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?fo(e):e,a;if(n)if(nI(n))a=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),um(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?a=Ux(n.substring(1),"/"):a=Ux(n,t)}else a=t;return{pathname:a,search:oI(r),hash:aI(o)}}function Ux(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Uf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function iI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function KS(e,t){let n=iI(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function QS(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=fo(e):(o=Na({},e),yt(!o.pathname||!o.pathname.includes("?"),Uf("?","pathname","search",o)),yt(!o.pathname||!o.pathname.includes("#"),Uf("#","pathname","hash",o)),yt(!o.search||!o.search.includes("#"),Uf("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}c=g>=0?t[g]:"/"}let f=rI(o,c),h=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}const di=e=>e.join("/").replace(/\/\/+/g,"/"),sI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const GS=["post","put","patch","delete"];new Set(GS);const uI=["get",...GS];new Set(uI);/** 261 * React Router v6.30.3 262 * 263 * Copyright (c) Remix Software Inc. 264 * 265 * This source code is licensed under the MIT license found in the 266 * LICENSE.md file in the root directory of this source tree. 267 * 268 * @license MIT 269 */function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(this,arguments)}const dm=F.createContext(null),cI=F.createContext(null),rs=F.createContext(null),xc=F.createContext(null),is=F.createContext({outlet:null,matches:[],isDataRoute:!1}),XS=F.createContext(null);function dI(e,t){let{relative:n}=t===void 0?{}:t;Ga()||yt(!1);let{basename:r,navigator:o}=F.useContext(rs),{hash:a,pathname:l,search:c}=JS(e,{relative:n}),f=l;return r!=="/"&&(f=l==="/"?r:di([r,l])),o.createHref({pathname:f,search:c,hash:a})}function Ga(){return F.useContext(xc)!=null}function Xa(){return Ga()||yt(!1),F.useContext(xc).location}function YS(e){F.useContext(rs).static||F.useLayoutEffect(e)}function fI(){let{isDataRoute:e}=F.useContext(is);return e?CI():hI()}function hI(){Ga()||yt(!1);let e=F.useContext(dm),{basename:t,future:n,navigator:r}=F.useContext(rs),{matches:o}=F.useContext(is),{pathname:a}=Xa(),l=JSON.stringify(KS(o,n.v7_relativeSplatPath)),c=F.useRef(!1);return YS(()=>{c.current=!0}),F.useCallback(function(h,p){if(p===void 0&&(p={}),!c.current)return;if(typeof h=="number"){r.go(h);return}let g=QS(h,JSON.parse(l),a,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:di([t,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[t,r,l,a,e])}function JS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=F.useContext(rs),{matches:o}=F.useContext(is),{pathname:a}=Xa(),l=JSON.stringify(KS(o,r.v7_relativeSplatPath));return F.useMemo(()=>QS(e,JSON.parse(l),a,n==="path"),[e,l,a,n])}function pI(e,t){return mI(e,t)}function mI(e,t,n,r){Ga()||yt(!1);let{navigator:o}=F.useContext(rs),{matches:a}=F.useContext(is),l=a[a.length-1],c=l?l.params:{};l&&l.pathname;let f=l?l.pathnameBase:"/";l&&l.route;let h=Xa(),p;if(t){var g;let k=typeof t=="string"?fo(t):t;f==="/"||(g=k.pathname)!=null&&g.startsWith(f)||yt(!1),p=k}else p=h;let v=p.pathname||"/",w=v;if(f!=="/"){let k=f.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(k.length).join("/")}let _=B4(e,{pathname:w}),C=wI(_&&_.map(k=>Object.assign({},k,{params:Object.assign({},c,k.params),pathname:di([f,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?f:di([f,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),a,n,r);return t&&C?F.createElement(xc.Provider,{value:{location:ja({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:li.Pop}},C):C}function gI(){let e=EI(),t=lI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application
269Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),n?F.createElement("pre",{style:o},n):null,null)}const yI=F.createElement(gI,null);class vI extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?F.createElement(is.Provider,{value:this.props.routeContext},F.createElement(XS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xI(e){let{routeContext:t,match:n,children:r}=e,o=F.useContext(dm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(is.Provider,{value:t},r)}function wI(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let p=l.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);p>=0||yt(!1),l=l.slice(0,Math.min(l.length,p+1))}let f=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let g=l[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=p),g.route.id){let{loaderData:v,errors:w}=n,_=g.route.loader&&v[g.route.id]===void 0&&(!w||w[g.route.id]===void 0);if(g.route.lazy||_){f=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((p,g,v)=>{let w,_=!1,C=null,k=null;n&&(w=c&&g.route.id?c[g.route.id]:void 0,C=g.route.errorElement||yI,f&&(h<0&&v===0?(_I("route-fallback"),_=!0,k=null):h===v&&(_=!0,k=g.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,v+1)),P=()=>{let T;return w?T=C:_?T=k:g.route.Component?T=F.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=p,F.createElement(xI,{match:g,routeContext:{outlet:p,matches:b,isDataRoute:n!=null},children:T})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?F.createElement(vI,{location:n.location,revalidation:n.revalidation,component:C,error:w,children:P(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):P()},null)}var ZS=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(ZS||{}),ek=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(ek||{});function bI(e){let t=F.useContext(dm);return t||yt(!1),t}function SI(e){let t=F.useContext(cI);return t||yt(!1),t}function kI(e){let t=F.useContext(is);return t||yt(!1),t}function tk(e){let t=kI(),n=t.matches[t.matches.length-1];return n.route.id||yt(!1),n.route.id}function EI(){var e;let t=F.useContext(XS),n=SI(),r=tk();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CI(){let{router:e}=bI(ZS.UseNavigateStable),t=tk(ek.UseNavigateStable),n=F.useRef(!1);return YS(()=>{n.current=!0}),F.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ja({fromRouteId:t},a)))},[e,t])}const Vx={};function _I(e,t,n){Vx[e]||(Vx[e]=!0)}function TI(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Mu(e){yt(!1)}function PI(e){let{basename:t="/",children:n=null,location:r,navigationType:o=li.Pop,navigator:a,static:l=!1,future:c}=e;Ga()&&yt(!1);let f=t.replace(/^\/*/,"/"),h=F.useMemo(()=>({basename:f,navigator:a,static:l,future:ja({v7_relativeSplatPath:!1},c)}),[f,c,a,l]);typeof r=="string"&&(r=fo(r));let{pathname:p="/",search:g="",hash:v="",state:w=null,key:_="default"}=r,C=F.useMemo(()=>{let k=cm(p,f);return k==null?null:{location:{pathname:k,search:g,hash:v,state:w,key:_},navigationType:o}},[f,p,g,v,w,_,o]);return C==null?null:F.createElement(rs.Provider,{value:h},F.createElement(xc.Provider,{children:n,value:C}))}function RI(e){let{children:t,location:n}=e;return pI(qh(t),n)}new Promise(()=>{});function qh(e,t){t===void 0&&(t=[]);let n=[];
269return F.Children.forEach(e,(r,o)=>{if(!F.isValidElement(r))return;let a=[...t,o];if(r.type===F.Fragment){n.push.apply(n,qh(r.props.children,a));return}r.type!==Mu&&yt(!1),!r.props.index||!r.props.children||yt(!1);let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=qh(r.props.children,a)),n.push(l)}),n}/** 270 * React Router DOM v6.30.3 271 * 272 * Copyright (c) Remix Software Inc. 273 * 274 * This source code is licensed under the MIT license found in the 275 * LICENSE.md file in the root directory of this source tree. 276 * 277 * @license MIT 278 */function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}function AI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function NI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jI(e,t){return e.button===0&&(!t||t==="_self")&&!NI(e)}const OI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LI="6";try{window.__reactRouterVersion=LI}catch{}const II="startTransition",$x=VC[II];function DI(e){let{basename:t,children:n,future:r,window:o}=e,a=F.useRef();a.current==null&&(a.current=M4({window:o,v5Compat:!0}));let l=a.current,[c,f]=F.useState({action:l.action,location:l.location}),{v7_startTransition:h}=r||{},p=F.useCallback(g=>{h&&$x?$x(()=>f(g)):f(g)},[f,h]);return F.useLayoutEffect(()=>l.listen(p),[l,p]),F.useEffect(()=>TI(r),[r]),F.createElement(PI,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}const MI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nk=F.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:l,state:c,target:f,to:h,preventScrollReset:p,viewTransition:g}=t,v=AI(t,OI),{basename:w}=F.useContext(rs),_,C=!1;if(typeof h=="string"&&FI.test(h)&&(_=h,MI))try{let T=new URL(window.location.href),N=h.startsWith("//")?new URL(T.protocol+h):new URL(h),z=cm(N.pathname,w);N.origin===T.origin&&z!=null?h=z+N.search+N.hash:C=!0}catch{}let k=dI(h,{relative:o}),b=zI(h,{replace:l,state:c,target:f,preventScrollReset:p,relative:o,viewTransition:g});function P(T){r&&r(T),T.defaultPrevented||b(T)}return F.createElement("a",Hh({},v,{href:_||k,onClick:C||a?r:P,ref:n,target:f}))});var qx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qx||(qx={}));var Hx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hx||(Hx={}));function zI(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:l,viewTransition:c}=t===void 0?{}:t,f=fI(),h=Xa(),p=JS(e,{relative:l});return F.useCallback(g=>{if(jI(g,n)){g.preventDefault();let v=r!==void 0?r:ec(h)===ec(p);f(e,{replace:v,state:o,preventScrollReset:a,relative:l,viewTransition:c})}},[h,f,p,r,o,n,e,a,l,c])}function rk(e){return"/"+e.replace(/ /g,"-")}const BI="https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=1920&q=80&auto=format&fit=crop";function UI({onScrollDown:e}){return x.jsxs("div",{className:"relative min-h-[100svh] flex items-center justify-center overflow-hidden bg-slate-900",children:[x.jsx(Me.div,{initial:{scale:1.1,opacity:0},animate:{scale:1,opacity:1},transition:{duration:2,ease:"easeOut"},className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${BI})`}}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-slate-900/80 via-slate-900/60 to-slate-900/95"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/60 via-trans
278parent to-slate-900/60"}),x.jsx("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none mix-blend-overlay",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E")`}}),x.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(15)].map((t,n)=>x.jsx(Me.div,{className:"absolute w-1 h-1 bg-amber-400/30 rounded-full",initial:{x:Math.random()*(typeof window<"u"?window.innerWidth:1200),y:Math.random()*(typeof window<"u"?window.innerHeight:800),opacity:0},animate:{y:[null,Math.random()*-500],opacity:[0,1,0]},transition:{duration:Math.random()*10+10,repeat:1/0,delay:Math.random()*5}},n))}),x.jsxs("div",{className:"relative z-10 text-center px-4 sm:px-6 max-w-4xl",children:[x.jsx(Me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1},children:x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-amber-500/10 border border-amber-500/30 rounded-full mb-6 sm:mb-8",children:[x.jsx(Xi,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-[10px] sm:text-sm tracking-widest uppercase",children:"Un Thriller Politico Interattivo"})]})}),x.jsxs(Me.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,delay:.2},className:"text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-serif text-white mb-4 sm:mb-6 leading-tight drop-shadow-2xl",style:{fontFamily:"'Playfair Display', serif"},children:[x.jsx("span",{className:"text-amber-400",children:"Il Colore"}),x.jsx("br",{}),"della Verità "]}),x.jsxs(Me.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,delay:.4},className:"text-base sm:text-xl md:text-2xl text-blue-200/80 font-light mb-8 sm:mb-12 leading-relaxed drop-shadow-lg",children:["Quando una semplice email diventa l'arma per far cadere un Presidente,",x.jsx("br",{className:"hidden md:block"}),"e un libro diventa lo scudo per sopravvivere."]}),x.jsxs(Me.div,{initial:{opacity:0}
278,animate:{opacity:1},transition:{duration:1,delay:.6},className:"flex flex-col sm:flex-row gap-3 sm:gap-4 justify-center px-4 sm:px-0",children:[x.jsxs("button",{onClick:e,className:"flex items-center justify-center gap-2 px-6 sm:px-8 py-3 sm:py-4 bg-amber-500 hover:bg-amber-400 text-slate-900 font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 hover:shadow-lg hover:shadow-amber-500/25 text-sm sm:text-base",children:[x.jsx(lp,{className:"w-4 h-4 sm:w-5 sm:h-5 fill-slate-900"}),"Inizia a Leggere"]}),x.jsx("button",{onClick:e,className:"px-6 sm:px-8 py-3 sm:py-4 border border-white/20 hover:border-white/40 text-white rounded-lg transition-all duration-300 hover:bg-white/5 text-sm sm:text-base",children:"Scopri i Personaggi"})]})]}),x.jsx(Me.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.5},className:"absolute bottom-6 sm:bottom-8 left-1/2 -translate-x-1/2",children:x.jsx(Me.div,{animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},className:"cursor-pointer",onClick:e,children:x.jsx(ip,{className:"w-7 h-7 sm:w-8 sm:h-8 text-white/50"})})})]})}const bu={protagonist:"https://images.unsplash.com/photo-1455390582262-044cdead277a?w=400&q=80&auto=format&fit=crop",antagonist:"https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=400&q=80&auto=format&fit=crop",neutral:"https://images.unsplash.com/photo-1457369804613-52c61a468e7d?w=400&q=80&auto=format&fit=crop",mysterious:"https://images.unsplash.com/photo-1465101046530-73398c7f28ca?w=400&q=80&auto=format&fit=crop"};function VI({character:e,index:t}){var a;const n={protagonist:{icon:Jw,label:"Protagonista",gradient:"from-blue-500 to-blue-700",border:"border-blue-300",bg:"bg-blue-50",img:bu.protagonist},antagonist:{icon:oc,label:"Antagonista",gradient:"from-red-500 to-red-700",border:"border-red-300",bg:"bg-red-50",img:bu.antagonist},neutral:{icon:Z_,label:"Neutrale",gradient:"from-slate-500 to-slate-700",border:"border-slate-300",bg:"bg-slate-50",img:bu.neutral},mysterious:{icon:sc,label:"Misterioso",gradient:"from-purple-500 to-purple-700",border:"border-purple-300",bg:"bg-purple-50",img:bu.mysterious}},r=n[e.allegiance]||n.neutral,o=r.icon;return x.jsx(Me.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"group",children:x.jsxs("div",{className:`relative overflow-hidden rounded-2xl ${r.bg} border-2 ${r.border} hover:shadow-2xl transition-all duration-500`,children:[x.jsxs("div",{className:"relative h-40 overflow-hidden",children:[x.jsx("img",{src:r.img,alt:e.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/80 via-slate-900/20 to-transparent"}),x.jsx("div",{className:"absolute bottom-3 left-4 right-4",children:x.jsx("h3",{className:"text-xl font-serif font-bold text-white drop-shadow-lg",style:{fontFamily:"'Playfair Display', serif"},children:e.name})}),x.jsx("div",{className:`absolute top-3 right-3 w-10 h-10 rounded-xl bg-gradient-to-br ${r.gradient} flex items-center justify-center shadow-lg backdrop-blur-sm`,children:x.jsx("span",{className:"text-lg font-serif font-bold text-white",children:(a=e.name)==null?void 0:a.charAt(0).toUpperCase()})})]}),x.jsxs("div",{className:"p-5 sm:p-6",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[x.jsx(o,{className:"w-4 h-4 text-slate-500"}),x.jsx("span",{className:"text-sm text-slate-500 font-medium",children:e.role})]}),x.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-4",children:e.description}),x.jsxs("div",{className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-gradient-to-r ${r.gradient} text-white text-xs font-medium`,children:[x.jsx(fi,{className:"w-3 h-3"}),r.label]})]})]})})}function $I({event:e,index:t,isLast:n}){return x.jsxs("div",{className:"relative",children:[!n&&x.jsx("div",{className:"absolute left-6 md:left-1/2 top-16 bottom-0 w-0.5 bg-gradient-to-b from-amber-400 to-amber-400/20 md:-translate-x-1/2"}),x.jsxs(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.1},className:"flex items-center gap-4 md:gap-6",children:[x.jsx("div",{className:"relative z-10 w-12 h-12 rounded-full bg-gradient-to-br from-amber-400 to-amber-600 flex items-center justify-center shadow-lg shadow-amber-500/30 flex-shrink-0",children:x.jsx("span",{className:"text-white font-bold",children:t+1})}),x.jsx("div",{className:"flex-1 md:flex-none md:w-5/12",children:x.jsxs("div",{className:"bg-white rounded-2xl shadow-lg hover:shadow-xl transition-shadow border border-slate-100 overflow-hidden",children:[e.image&&x.jsxs("div",{className:"relative h-32 sm:h-36 overflow-hidden",children:[x.jsx("img",{src:e.image,alt:e.title,loading:"lazy",className:"w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/60 to-transparent"}),x.jsx("div",{className:"absolute bottom-2 left-3",children:x.jsx("div",{className:"inline-block px-2.5 py-1 bg-amber-500/90 backdrop-blur-sm text-amber-50 rounded-full text-[10px] sm:text-xs font-semibold",children:e.period})})]}),x.jsxs("div",{className:"p-5 sm:p-6",children:[x.jsx("h3",{className:"text-base sm:text-lg font-serif font-bold text-slate-800 mb-2",style:{fontFamily:"'Playfair Display', serif"},children:e.title}),x.jsx("p",{className:"text-slate-600 text-sm leading-relaxed",children:e.description})]})]})})]})]})}function qI(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const HI=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WI=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KI={};function Wx(e,t){return(KI.jsx?WI:HI).test(e)}const QI=/[ \t\n\f\r]/g;function GI(e){return typeof e=="object"?e.type==="text"?Kx(e.value):!1:Kx(e)}function Kx(e){return e.replace(QI,"")===""}class Ya{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ya.prototype.normal={};Ya.prototype.property={};Ya.prototype.space=void 0;function ik(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ya(n,r,t)}function Wh(e){return e.toLowerCase()}class un{constructor(t,n){this.attribute=n,this.property=t}}un.prototype.attribute="";un.prototype.booleanish=!1;un.prototype.boolean=!1;un.prototype.commaOrSpaceSeparated=!1;un.prototype.commaSeparated=!1;un.prototype.defined=!1;un.prototype.mustUseProperty=!1;un.prototype.number=!1;un.prototype.overloadedBoolean=!1;un.prototype.property="";un.prototype.spaceSeparated=!1;un.prototype.space=void 0;let XI=0;const Oe=ss(),mt=ss(),Kh=ss(),te=ss(),Xe=ss(),zs=ss(),yn=ss();function ss(){return 2**++XI}const Qh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:mt,commaOrSpaceSeparated:yn,commaSeparated:zs,number:te,overloadedBoolean:Kh,spaceSeparated:Xe},Symbol.toStringTag,{value:"Module"})),Vf=Object.keys(Qh);class fm extends un{constructor(t,n,r,o){let a=-1;if(super(t,n),Qx(this,"space",o),typeof r=="number")for(;++a<Vf.length;){const l=Vf[a];Qx(this,Vf[a],(r&Qh[l])===Qh[l])}}}fm.prototype.defined=!0;
vendor: 4,117 bytes, line 278
278function Qx(e,t,n){n&&(e[t]=n)}function ho(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new fm(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Wh(r)]=r,n[Wh(a.attribute)]=r}return new Ya(t,n,e.space)}const sk=ho({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Xe,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:te,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Xe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:mt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ok(e,t){return t in e?e[t]:t}function ak(e,t){return ok(e,t.toLowerCase())}const YI=ho({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zs,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:Xe,autoFocus:Oe,autoPlay:Oe,blocking:Xe,capture:null,charSet:null,checked:Oe,cite:null,className:Xe,cols:te,colSpan:null,content:null,contentEditable:mt,controls:Oe,controlsList:Xe,coords:te|zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Kh,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:Xe,height:te,hidden:Kh,high:te,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:Oe,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:te,pattern:null,ping:Xe,placeholder:null,playsInl
278ine:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:Xe,required:Oe,reversed:Oe,rows:te,rowSpan:te,sandbox:Xe,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:mt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:ak}),JI=ho({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
278-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:yn,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Xe,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:zs,g2:zs,glyphName:zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,650 bytes, lines 278-279
278Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ok}),lk=ho({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),uk=ho({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ak}),ck=ho({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ZI={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"},e3=/[A-Z]/g,Gx=/-[a-z]/g,t3=/^data[-\w.:]+$/i;function n3(e,t){const n=Wh(t);let r=t,o=un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&t3.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Gx,i3);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Gx.test(a)){let l=a.replace(e3,r3);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=fm}return new o(r,t)}function r3(e){return"-"+e.toLowerCase()}function i3(e){return e.charAt(1).toUpperCase()}const s3=ik([sk,YI,lk,uk,ck],"html"),hm=ik([sk,JI,lk,uk,ck],"svg");function o3(e){return e.join(" ").trim()}var js={},$f,Xx;function a3(){if(Xx)return $f;Xx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,f=` 279`,h="/",p="*",g="",v="comment",w="declaration";function _(k,b){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];b=b||{};var P=1,T=1;function N(ie){var Y=ie.match(t);Y&&(P+=Y.length);var ge=ie.lastIndexOf(f);T=~ge?ie.length-ge:T+ie.length}function z(){var ie={line:P,column:T};return function(Y){return Y.position=new O(ie),J(),Y}}function O(ie){this.start=ie,this.end={line:P,column:T},this.source=b.source}O.prototype.content=k;function Q(ie){var Y=new Error(b.source+":"+P+":"+T+": "+ie);if(Y.reason=ie,Y.filename=b.source,Y.line=P,Y.column=T,Y.source=k,!b.silent)throw Y}function B(ie){var Y=ie.exec(k);if(Y){var ge=Y[0];return N(ge),k=k.slice(ge.length),Y}}function J(){B(n)}function oe(ie){var Y;for(ie=ie||[];Y=W();
vendor: 4,489 bytes, line 279
279)Y!==!1&&ie.push(Y);return ie}function W(){var ie=z();if(!(h!=k.charAt(0)||p!=k.charAt(1))){for(var Y=2;g!=k.charAt(Y)&&(p!=k.charAt(Y)||h!=k.charAt(Y+1));)++Y;if(Y+=2,g===k.charAt(Y-1))return Q("End of comment missing");var ge=k.slice(2,Y-2);return T+=2,N(ge),k=k.slice(Y),T+=2,ie({type:v,comment:ge})}}function re(){var ie=z(),Y=B(r);if(Y){if(W(),!B(o))return Q("property missing ':'");var ge=B(a),le=ie({type:w,property:C(Y[0].replace(e,g)),value:ge?C(ge[0].replace(e,g)):g});return B(l),le}}function Ee(){var ie=[];oe(ie);for(var Y;Y=re();)Y!==!1&&(ie.push(Y),oe(ie));return ie}return J(),Ee()}function C(k){return k?k.replace(c,g):g}return $f=_,$f}var Yx;function l3(){if(Yx)return js;Yx=1;var e=js&&js.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(js,"__esModule",{value:!0}),js.default=n;const t=e(a3());function n(r,o){let a=null;if(!r||typeof r!="string")return a;const l=(0,t.default)(r),c=typeof o=="function";return l.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:p}=f;c?o(h,p,f):p&&(a=a||{},a[h]=p)}),a}return js}var ra={},Jx;function u3(){if(Jx)return ra;Jx=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(h){return!h||n.test(h)||e.test(h)},l=function(h,p){return p.toUpperCase()},c=function(h,p){return"".concat(p,"-")},f=function(h,p){return p===void 0&&(p={}),a(h)?h:(h=h.toLowerCase(),p.reactCompat?h=h.replace(o,c):h=h.replace(r,c),h.replace(t,l))};return ra.camelCase=f,ra}var ia,Zx;function c3(){if(Zx)return ia;Zx=1;var e=ia&&ia.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(l3()),n=u3();function r(o,a){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(c,f){c&&f&&(l[(0,n.camelCase)(c,a)]=f)}),l}return r.default=r,ia=r,ia}var d3=c3();const f3=ic(d3),dk=fk("end"),pm=fk("start");function fk(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function h3(e){const t=pm(e),n=dk(e);if(t&&n)return{start:t,end:n}}function wa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ew(e.position):"start"in e||"end"in e?ew(e):"line"in e||"column"in e?Gh(e):""}function Gh(e){return tw(e&&e.line)+":"+tw(e&&e.column)}function ew(e){return Gh(e&&e.start)+"-"+Gh(e&&e.end)}function tw(e){return e&&typeof e=="number"?e:1}class qt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},l=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(l=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const f=r.indexOf(":");f===-1?a.ruleId=r:(a.source=r.slice(0,f),a.ruleId=r.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=wa(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const mm={}.hasOwnProperty,p3=new Map,m3=/[A-Z]/g,g3=new Set(["table","tbody","thead","tfoot","tr"]),y3=new Set(["td","th"]),hk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function v3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 9,519 bytes, line 279
279if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=C3(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hm:s3,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=pk(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function pk(e,t,n){if(t.type==="element")return x3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return S3(e,t,n);if(t.type==="mdxjsEsm")return b3(e,t);if(t.type==="root")return k3(e,t,n);if(t.type==="text")return E3(e,t)}function x3(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=hm,e.schema=o),e.ancestors.push(t);const a=gk(e,t.tagName,!1),l=T3(e,t);let c=ym(e,t);return g3.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!GI(f):!0})),mk(e,l,a,t),gm(l,c),e.ancestors.pop(),e.schema=r,e.create(t,a,l,n)}function w3(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Oa(e,t.position)}function b3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Oa(e,t.position)}function S3(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=hm,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:gk(e,t.name,!0),l=P3(e,t),c=ym(e,t);return mk(e,l,a,t),gm(l,c),e.ancestors.pop(),e.schema=r,e.create(t,a,l,n)}function k3(e,t,n){const r={};return gm(r,ym(e,t)),e.create(t,e.Fragment,r,n)}function E3(e,t){return t.value}function mk(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function C3(e,t,n){return r;function r(o,a,l,c){const h=Array.isArray(l.children)?n:t;return c?h(a,l,c):h(a,l)}}function _3(e,t){return n;function n(r,o,a,l){const c=Array.isArray(a.children),f=pm(r);return t(o,a,l,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function T3(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&mm.call(t.properties,o)){const a=R3(e,o,t.properties[o]);if(a){const[l,c]=a;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&y3.has(t.tagName)?r=c:n[l]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function P3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const l=a.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Oa(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else Oa(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function ym(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:p3;for(;++r<t.children.length;){const a=t.children[r];let l;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const h=o.get(f)||0;l=f+"-"+h,o.set(f,h+1)}}const c=pk(e,a,l);c!==void 0&&n.push(c)}return n}function R3(e,t,n){const r=n3(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qI(n):o3(n)),r.property==="style"){let o=typeof n=="object"?n:A3(e,String(n));return e.stylePropertyNameCase==="css"&&(o=N3(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?ZI[r.property]||r.property:r.attribute,n]}}function A3(e,t){try{return f3(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new qt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=hk+"#cannot-parse-style-attribute",o}}function gk(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,l;for(;++a<o.length;){const c=Wx(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=l}else r=Wx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return mm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Oa(e)}function Oa(e,t){const n=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function N3(e){const t={};let n;for(n in e)mm.call(e,n)&&(t[j3(n)]=e[n]);return t}function j3(e){let t=e.replace(m3,O3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function O3(e){return"-"+e.toLowerCase()}const qf={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"]},L3={};function I3(e,t){const n=L3,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yk(e,r,o)}function yk(e,t,n){if(D3(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nw(e.children,t,n)}return Array.isArray(e)?nw(e,t,n):""}function nw(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=yk(e[o],t,n);return r.join("")}function D3(e){return!!(e&&typeof e=="object")}const rw=document.createElement("i");function vm(e){const t="&"+e+";";rw.innerHTML=t;const n=rw.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function dr(e,t,n,r){const o=e.length;let a=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);a<r.length;)l=r.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function On(e,t){return e.length>0?(dr(e,e.length,0,t),e):t}const iw={}.hasOwnProperty;function M3(e){const t={};let n=-1;for(;++n<e.length;)F3(t,e[n]);return t}function F3(e,t){let n;for(n in t){const o=(iw.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let l;if(a)for(l in a){iw.call(o,l)||(o[l]=[]);const c=a[l];z3(o[l],Array.isArray(c)?c:c?[c]:[])}}}function z3(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);dr(e,0,0,r)}function vk(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Bs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const or=yi(/[A-Za-z]/),vn=yi(/[\dA-Za-z]/),B3=yi(/[#-'*+\--9=?A-Z^-~]/);function Xh(e){return e!==null&&(e<32||e===127)}const Yh=yi(/\d/),U3=yi(/[\dA-Fa-f]/),V3=yi(/[!-/:-@[-`{-~]/);function Ne(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const $3=yi(new RegExp("\\p{P}|\\p{S}","u")),q3=yi(/\s/);function yi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function po(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let l="";if(a===37&&vn(e.charCodeAt(n+1))&&vn(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(l=String.fromCharCode(a,c),o=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ye(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(f){return He(f)?(e.enter(n),c(f)):t(f)}function c(f){return He(f)&&a++<o?(e.consume(f),c):(e.exit(n),t(f))}}const H3={tokenize:W3};function W3(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ye(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),a(c)}function a(c){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ne(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),l)}}const K3={tokenize:Q3},sw={tokenize:G3};function Q3(e){const t=this,n=[];let r=0,o,a,l;return c;function c(T){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,f,h)(T)}return h(T)}function f(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&P();const N=t.events.length;let z=N,O;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){O=t.events[z][1].end;break}
vendor: 11,546 bytes, line 279
279b(r);let Q=N;for(;Q<t.events.length;)t.events[Q][1].end={...O},Q++;return dr(t.events,z+1,0,t.events.slice(N)),t.events.length=Q,h(T)}return c(T)}function h(T){if(r===n.length){if(!o)return v(T);if(o.currentConstruct&&o.currentConstruct.concrete)return _(T);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sw,p,g)(T)}function p(T){return o&&P(),b(r),v(T)}function g(T){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,_(T)}function v(T){return t.containerState={},e.attempt(sw,w,_)(T)}function w(T){return r++,n.push([t.currentConstruct,t.containerState]),v(T)}function _(T){if(T===null){o&&P(),b(0),e.consume(T);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),C(T)}function C(T){if(T===null){k(e.exit("chunkFlow"),!0),b(0),e.consume(T);return}return Ne(T)?(e.consume(T),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(T),C)}function k(T,N){const z=t.sliceStream(T);if(N&&z.push(null),T.previous=a,a&&(a.next=T),a=T,o.defineSkip(T.start),o.write(z),t.parser.lazy[T.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<l&&(!o.events[O][1].end||o.events[O][1].end.offset>l))return;const Q=t.events.length;let B=Q,J,oe;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(J){oe=t.events[B][1].end;break}J=!0}for(b(r),O=Q;O<t.events.length;)t.events[O][1].end={...oe},O++;dr(t.events,B+1,0,t.events.slice(Q)),t.events.length=O}}function b(T){let N=n.length;for(;N-- >T;){const z=n[N];t.containerState=z[1],z[0].exit.call(t,e)}n.length=T}function P(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function G3(e,t,n){return Ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ow(e){if(e===null||ln(e)||q3(e))return 1;if($3(e))return 2}function xm(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Jh={name:"attention",resolveAll:X3,tokenize:Y3};function X3(e,t){let n=-1,r,o,a,l,c,f,h,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[r][1].end},v={...e[n][1].start};aw(g,-f),aw(v,f),l={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:f>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=On(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=On(h,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",a,t]]),h=On(h,xm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=On(h,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,h=On(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,dr(e,r-1,n-r+3,h),n=r+h.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Y3(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ow(r);let a;return l;function l(f){return a=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===a)return e.consume(f),c;const h=e.exit("attentionSequence"),p=ow(f),g=!p||p===2&&o||n.includes(f),v=!o||o===2&&p||n.includes(r);return h._open=!!(a===42?g:g&&(o||!v)),h._close=!!(a===42?v:v&&(p||!g)),t(f)}}function aw(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const J3={name:"autolink",tokenize:Z3};function Z3(e,t,n){let r=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return or(w)?(e.consume(w),l):w===64?n(w):h(w)}function l(w){return w===43||w===45||w===46||vn(w)?(r=1,c(w)):h(w)}function c(w){return w===58?(e.consume(w),r=0,f):(w===43||w===45||w===46||vn(w))&&r++<32?(e.consume(w),c):(r=0,h(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Xh(w)?n(w):(e.consume(w),f)}function h(w){return w===64?(e.consume(w),p):B3(w)?(e.consume(w),h):n(w)}function p(w){return vn(w)?g(w):n(w)}function g(w){return w===46?(e.consume(w),r=0,p):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||vn(w))&&r++<63){const _=w===45?v:g;return e.consume(w),_}return n(w)}}const wc={partial:!0,tokenize:eD};function eD(e,t,n){return r;function r(a){return He(a)?Ye(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||Ne(a)?t(a):n(a)}}const xk={continuation:{tokenize:nD},exit:rD,name:"blockQuote",tokenize:tD};function tD(e,t,n){const r=this;return o;function o(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return n(l)}function a(l){return He(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function nD(e,t,n){const r=this;return o;function o(l){return He(l)?Ye(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(xk,t,n)(l)}}function rD(e){e.exit("blockQuote")}const wk={name:"characterEscape",tokenize:iD};function iD(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return V3(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const bk={name:"characterReference",tokenize:sD};function sD(e,t,n){const r=this;let o=0,a,l;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),a=31,l=vn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=U3,p):(e.enter("characterReferenceValue"),a=7,l=Yh,p(g))}function p(g){if(g===59&&o){const v=e.exit("characterReferenceValue");return l===vn&&!vm(r.sliceSerialize(v))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(g)&&o++<a?(e.consume(g),p):n(g)}}const lw={partial:!0,tokenize:aD},uw={concrete:!0,name:"codeFenced",tokenize:oD};function oD(e,t,n){const r=this,o={partial:!0,tokenize:z};let a=0,l=0,c;return f;function f(O){return h(O)}function h(O){const Q=r.events[r.events.length-1];return a=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,c=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===c?(l++,e.consume(O),p):l<3?n(O):(e.exit("codeFencedFenceSequence"),He(O)?Ye(e,g,"whitespace")(O):g(O))}function g(O){return O===null||Ne(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(lw,C,N)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||Ne(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(O)):He(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ye(e,w,"whitespace")(O)):O===96&&O===c?n(O):(e.consume(O),v)}function w(O){return O===null||Ne(O)?g(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(O))}function _(O){return O===null||Ne(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(O)):O===96&&O===c?n(O):(e.consume(O),_)}function C(O){return e.attempt(o,N,k)(O)}function k(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),b}function b(O){return a>0&&He(O)?Ye(e,P,"linePrefix",a+1)(O):P(O)}function P(O){return O===null||Ne(O)?e.check(lw,C,N)(O):(e.enter("codeFlowValue"),T(O))}function T(O){return O===null||Ne(O)?(e.exit("codeFlowValue"),P(O)):(e.consume(O),T)}function N(O){return e.exit("codeFenced"),t(O)}function z(O,Q,B){let J=0;return oe;function oe(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),W}function W(Y){return O.enter("codeFencedFence"),He(Y)?Ye(O,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):re(Y)}function re(Y){return Y===c?(O.enter("codeFencedFenceSequence"),Ee(Y)):B(Y)}function Ee(Y){return Y===c?(J++,O.consume(Y),Ee):J>=l?(O.exit("codeFencedFenceSequence"),He(Y)?Ye(O,ie,"whitespace")(Y):ie(Y)):B(Y)}function ie(Y){return Y===null||Ne(Y)?(O.exit("codeFencedFence"),Q(Y)):B(Y)}}}function aD(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Hf={name:"codeIndented",tokenize:uD},lD={partial:!0,tokenize:cD};function uD(e,t,n){const r=this;return o;function o(h){return e.enter("codeIndented"),Ye(e,a,"linePrefix",5)(h)}function a(h){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?f(h):Ne(h)?e.attempt(lD,l,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ne(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function cD(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):Ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):Ye(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Ne(l)?o(l):n(l)}}const dD={name:"codeText",previous:hD,resolve:fD,tokenize:pD};function fD(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function hD(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pD(e,t,n){let r=0,o,a;return l;function l(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),r++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("co
279deTextSequence"),o=0,p(g)):Ne(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ne(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),o++,p):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",h(g))}}class mD{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&sa(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sa(this.left,n.reverse())}}}function sa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sk(e){const t={};let n=-1,r,o,a,l,c,f,h;const p=new mD(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(f=r[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gD(p,n)),n=t[n],h=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(l=p.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end={...p.get(o)[1].start},c=p.slice(o,n),c.unshift(r),p.splice(o,n-o+1,c))}}return dr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function gD(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,f=[],h={};let p,g,v=-1,w=n,_=0,C=0;const k=[C];for(;w;){for(;e.get(++o)[1]!==w;);a.push(o),w._tokenizer||(p=r.sliceStream(w),w.next||p.push(null),g&&l.defineSkip(w.start),w._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),w._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=n;++v<c.length;)c[v][0]==="exit"&&c[v-1][0]==="enter"&&c[v][1].type===c[v-1][1].type&&c[v][1].start.line!==c[v][1].end.line&&(C=v+1,k.push(C),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(l.events=[],w?(w._tokenizer=void 0,w.previous=void 0):k.pop(),v=k.length;v--;){const b=c.slice(k[v],k[v+1]),P=a.pop();f.push([P,P+b.length-1]),e.splice(P,2,b)}for(f.reverse(),v=-1;++v<f.length;)h[_+f[v][0]]=_+f[v][1],_+=f[v][1]-f[v][0]-1;return h}const yD={resolve:xD,tokenize:wD},vD={partial:!0,tokenize:bD};function xD(e){return Sk(e),e}function wD(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?a(c):Ne(c)?e.check(vD,l,a)(c):(e.consume(c),o)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function bD(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ye(e,a,"linePrefix")}function a(l){if(l===null||Ne(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function kk(e,t,n,r,o,a,l,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(b){return b===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(b),e.exit(a),v):b===null||b===32||b===41||Xh(b)?n(b):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),C(b))}function v(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),w(b))}function w(b){return b===62?(e.exit("chunkString"),e.exit(c),v(b)):b===null||b===60||Ne(b)?n(b):(e.consume(b),b===92?_:w)}function _(b){return b===60||b===62||b===92?(e.consume(b),w):w(b)}function C(b){return!p&&(b===null||b===41||ln(b))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(b)):p<
vendor: 16,322 bytes, line 279
279h&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Xh(b)?n(b):(e.consume(b),b===92?k:C)}function k(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}function Ek(e,t,n,r,o,a){const l=this;let c=0,f;return h;function h(w){return e.enter(r),e.enter(o),e.consume(w),e.exit(o),e.enter(a),p}function p(w){return c>999||w===null||w===91||w===93&&!f||w===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(w):w===93?(e.exit(a),e.enter(o),e.consume(w),e.exit(o),e.exit(r),t):Ne(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||Ne(w)||c++>999?(e.exit("chunkString"),p(w)):(e.consume(w),f||(f=!He(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),c++,g):g(w)}}function Ck(e,t,n,r,o,a){let l;return c;function c(v){return v===34||v===39||v===40?(e.enter(r),e.enter(o),e.consume(v),e.exit(o),l=v===40?41:v,f):n(v)}function f(v){return v===l?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),t):(e.enter(a),h(v))}function h(v){return v===l?(e.exit(a),f(l)):v===null?n(v):Ne(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Ye(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===l||v===null||Ne(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?g:p)}function g(v){return v===l||v===92?(e.consume(v),p):p(v)}}function ba(e,t){let n;return r;function r(o){return Ne(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):He(o)?Ye(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const SD={name:"definition",tokenize:ED},kD={partial:!0,tokenize:CD};function ED(e,t,n){const r=this;let o;return a;function a(w){return e.enter("definition"),l(w)}function l(w){return Ek.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function c(w){return o=Bs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):n(w)}function f(w){return ln(w)?ba(e,h)(w):h(w)}function h(w){return kk(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function p(w){return e.attempt(kD,g,g)(w)}function g(w){return He(w)?Ye(e,v,"whitespace")(w):v(w)}function v(w){return w===null||Ne(w)?(e.exit("definition"),r.parser.defined.push(o),t(w)):n(w)}}function CD(e,t,n){return r;function r(c){return ln(c)?ba(e,o)(c):n(c)}function o(c){return Ck(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return He(c)?Ye(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Ne(c)?t(c):n(c)}}const _D={name:"hardBreakEscape",tokenize:TD};function TD(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return Ne(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const PD={name:"headingAtx",resolve:RD,tokenize:AD};function RD(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},dr(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function AD(e,t,n){let r=0;return o;function o(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||ln(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Ne(p)?(e.exit("atxHeading"),t(p)):He(p)?Ye(e,c,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||ln(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),h)}}const ND=["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"],cw=["pre","script","style","textarea"],jD={concrete:!0,name:"htmlFlow",resolveTo:ID,tokenize:DD},OD={partial:!0,tokenize:FD},LD={partial:!0,tokenize:MD};function ID(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DD(e,t,n){const r=this;let o,a,l,c,f;return h;function h(R){return p(R)}function p(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),g}function g(R){return R===33?(e.consume(R),v):R===47?(e.consume(R),a=!0,C):R===63?(e.consume(R),o=3,r.interrupt?t:E):or(R)?(e.consume(R),l=String.fromCharCode(R),k):n(R)}function v(R){return R===45?(e.consume(R),o=2,w):R===91?(e.consume(R),o=5,c=0,_):or(R)?(e.consume(R),o=4,r.interrupt?t:E):n(R)}function w(R){return R===45?(e.consume(R),r.interrupt?t:E):n(R)}function _(R){const xe="CDATA[";return R===xe.charCodeAt(c++)?(e.consume(R),c===xe.length?r.interrupt?t:re:_):n(R)}function C(R){return or(R)?(e.consume(R),l=String.fromCharCode(R),k):n(R)}function k(R){if(R===null||R===47||R===62||ln(R)){const xe=R===47,we=l.toLowerCase();return!xe&&!a&&cw.includes(we)?(o=1,r.interrupt?t(R):re(R)):ND.includes(l.toLowerCase())?(o=6,xe?(e.consume(R),b):r.interrupt?t(R):re(R)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):a?P(R):T(R))}return R===45||vn(R)?(e.consume(R),l+=String.fromCharCode(R),k):n(R)}function b(R){return R===62?(e.consume(R),r.interrupt?t:re):n(R)}function P(R){return He(R)?(e.consume(R),P):oe(R)}function T(R){return R===47?(e.consume(R),oe):R===58||R===95||or(R)?(e.consume(R),N):He(R)?(e.consume(R),T):oe(R)}function N(R){return R===45||R===46||R===58||R===95||vn(R)?(e.consume(R),N):z(R)}function z(R){return R===61?(e.consume(R),O):He(R)?(e.consume(R),z):T(R)}function O(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),f=R,Q):He(R)?(e.consume(R),O):B(R)}function Q(R){return R===f?(e.consume(R),f=null,J):R===null||Ne(R)?n(R):(e.consume(R),Q)}function B(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||ln(R)?z(R):(e.consume(R),B)}function J(R){return R===47||R===62||He(R)?T(R):n(R)}function oe(R){return R===62?(e.consume(R),W):n(R)}function W(R){return R===null||Ne(R)?re(R):He(R)?(e.consume(R),W):n(R)}function re(R){return R===45&&o===2?(e.consume(R),ge):R===60&&o===1?(e.consume(R),le):R===62&&o===4?(e.consume(R),L):R===63&&o===3?(e.consume(R),E):R===93&&o===5?(e.consume(R),ue):Ne(R)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(OD,q,Ee)(R)):R===null||Ne(R)?(e.exit("htmlFlowData"),Ee(R)):(e.consume(R),re)}function Ee(R){return e.check(LD,ie,q)(R)}function ie(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Y}function Y(R){return R===null||Ne(R)?Ee(R):(e.enter("htmlFlowData"),re(R))}function ge(R){return R===45?(e.consume(R),E):re(R)}function le(R){return R===47?(e.consume(R),l="",X):re(R)}function X(R){if(R===62){const xe=l.toLowerCase();return cw.includes(xe)?(e.consume(R),L):re(R)}return or(R)&&l.length<8?(e.consume(R),l+=String.fromCharCode(R),X):re(R)}function ue(R){return R===93?(e.consume(R),E):re(R)}function E(R){return R===62?(e.consume(R),L):R===45&&o===2?(e.consume(R),E):re(R)}function L(R){return R===null||Ne(R)?(e.exit("htmlFlowData"),q(R)):(e.consume(R),L)}function q(R){return e.exit("htmlFlow"),t(R)}}function MD(e,t,n){const r=this;return o;function o(l){return Ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):n(l)}function a(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function FD(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(wc,t,n)}}const zD={name:"htmlText",tokenize:BD};function BD(e,t,n){const r=this;let o,a,l;return c;function c(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),z):E===63?(e.consume(E),T):or(E)?(e.consume(E),B):n(E)}function h(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),a=0,_):or(E)?(e.consume(E),P):n(E)}function p(E){return E===45?(e.consume(E),w):n(E)}function g(E){return E===null?n(E):E===45?(e.consume(E),v):Ne(E)?(l=g,le(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?ge(E):E===45?v(E):g(E)}function _(E){const L="CDATA[";return E===L.charCodeAt(a++)?(e.consume(E),a===L.length?C:_):n(E)}function C(E){return E===null?n(E):E===93?(e.consume(E),k):Ne(E)?(l=C,le(E)):(e.consume(E),C)}function k(E){return E===93?(e.consume(E),b):C(E)}function b(E){return E===62?ge(E):E===93?(e.consume(E),b):C(E)}function P(E){return E===null||E===62?ge(E):Ne(E)?(l=P,le(E)):(e.consume(E),P)}function T(E){return E===null?n(E):E===63?(e.consume(E),N):Ne(E)?(l=T,le(E)):(e.consume(E),T)}function N(E){return E===62?ge(E):T(E)}function z(E){return or(E)?(e.consume(E),O):n(E)}function O(E){return E===45||vn(E)?(e.consume(E),O):Q(E)}function Q(E){return Ne(E)?(l=Q,le(E)):He(E)?(e.consume(E),Q):ge(E)}function B(E){return E===45||vn(E)?(e.consume(E),B):E===47||E===62||ln(E)?J(E):n(E)}function J(E){return E===47?(e.consume(E),ge):E===58||E===95||or(E)?(e.consume(E),oe):Ne(E)?(l=J,le(E)):He(E)?(e.consume(E),J):ge(E)}function oe(E){return E===45||E===46||E===58||E===95||vn(E)?(e.consume(E),oe):W(E)}function W(E){return E===61?(e.consume(E),re):Ne(E)?(l=W,le(E)):He(E)?(e.consume(E),W):J(E)}function re(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),o=E,Ee):Ne(E)?(l=re,le(E)):He(E)?(e.consume(E),re):(e.consume(E),ie)}function Ee(E){return E===o?(e.consume(E),o=void 0,Y):E===null?n(E):Ne(E)?(l=Ee,le(E)):(e.consume(E),Ee)}function ie(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||ln(E)?J(E):(e.consume(E),ie)}function Y(E){return E===47||E===62||ln(E)?J(E):n(E)}function ge(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function le(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X}function X(E){return He(E)?Ye(e,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ue(E)}function ue(E){return e.enter("htmlTextData"),l(E)}}const wm={name:"labelEnd",resolveAll:qD,resolveTo:HD,tokenize:WD},UD={tokenize:KD},VD={tokenize:QD},$D={tokenize:GD};function qD(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&dr(e,0,e.length,n),e}function HD(e,t){let n=e.length,r=0,o,a,l,c;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(l=n);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=On(c,e.slice(a+1,a+r+3)),c=On(c,[["enter",p,t]]),c=On(c,xm(t.parser.constructs.insideSpan.null,e.slice(a+r+4,l-3),t)),c=On(c,[["exit",p,t],e[l-2],e[l-1],["exit",h,t]]),c=On(c,e.slice(l+1)),c=On(c,[["exit",f,t]]),dr(e,a,e.length,c),e}function WD(e,t,n){const r=this;let o=r.events.length,a,l;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return c;function c(v){return a?a._inactive?g(v):(l=r.parser.defined.includes(Bs(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):n(v)}function f(v){return v===40?e.attempt(UD,p,l?p:g)(v):v===91?e.attempt(VD,p,l?h:g)(v):l?p(v):g(v)}function h(v){return e.attempt($D,p,g)(v)}function p(v){return t(v)}function g(v){return a._balanced=!0,n(v)}}function KD(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return ln(g)?ba(e,a)(g):a(g)}function a(g){return g===41?p(g):kk(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function l(g){return ln(g)?ba(e,f)(g):p(g)}function c(g){return n(g)}function f(g){return g===34||g===39||g===40?Ck(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return ln(g)?ba(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function QD(e,t,n){const r=this;return o;function o(c){return Ek.call(r,e,a,l,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(Bs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function GD(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const XD={name:"labelStartImage",resolveAll:wm.resolveAll,tokenize:YD};function YD(e,t,n){const r=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const JD={name:"labelStartLink",resolveAll:wm.resolveAll,tokenize:ZD};function ZD(e,t,n){const r=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Wf={name:"lineEnding",tokenize:eM};function eM(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ye(e,t,"linePrefix")}}const Fu={name:"thematicBreak",tokenize:tM};function tM(e,t,n){let r=0,o;return a;function a(h){return e.enter("thematicBreak"),l(h)}function l(h){return o=h,c(h)}function c(h){return h===o?(e.enter("thematicBreakSequence"),f(h)):r>=3&&(h===null||Ne(h))?(e.exit("thematicBreak"),t(h)):n(h)}function f(h){return h===o?(e.consume(h),r++,f):(e.exit("thematicBreakSequence"),He(h)?Ye(e,c,"whitespace")(h):c(h))}}const rn={continuation:{tokenize:sM},exit:aM,name:"list",tokenize:iM},nM={partial:!0,tokenize:lM},rM={partial:!0,tokenize:oM};function iM(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return c;function c(w){const _=r.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||w===r.containerState.marker:Yh(w)){if(r.containerState.type||(r.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Fu,n,h)(w):h(w);if(!r.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return n(w)}function f(w){return Yh(w)&&++l<10?(e.consume(w),f):(!r.interrupt||l<2)&&(r.containerState.marker?w===r.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):n(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||w,e.check(wc,r.interrupt?n:p,e.attempt(nM,v,g))}
vendor: 5,359 bytes, line 279
279function p(w){return r.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return He(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):n(w)}function v(w){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function sM(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(wc,o,a);function o(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ye(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!He(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rM,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ye(e,e.attempt(rn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function oM(e,t,n){const r=this;return Ye(e,o,"listItemIndent",r.containerState.size+1);function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(a):n(a)}}function aM(e){e.exit(this.containerState.type)}function lM(e,t,n){const r=this;return Ye(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const l=r.events[r.events.length-1];return!He(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const dw={name:"setextUnderline",resolveTo:uM,tokenize:cM};function uM(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",l,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function cM(e,t,n){const r=this;let o;return a;function a(h){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),o=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===o?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),He(h)?Ye(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ne(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const dM={tokenize:fM};function fM(e){const t=this,n=e.attempt(wc,r,e.attempt(this.parser.constructs.flowInitial,o,Ye(e,e.attempt(this.parser.constructs.flow,o,e.attempt(yD,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const hM={resolveAll:Tk()},pM=_k("string"),mM=_k("text");function _k(e){return{resolveAll:Tk(e==="text"?gM:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,l,c);return l;function l(p){return h(p)?a(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),f}function f(p){return h(p)?(n.exit("data"),a(p)):(n.consume(p),f)}function h(p){if(p===null)return!0;const g=o[p];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(r,r.previous))return!0}return!1}}}function Tk(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function gM(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,l=-1,c=0,f;for(;a--;){const h=o[a];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(h===-2)f=!0,c++;else if(h!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const yM={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:xk},vM={91:SD},xM={[-2]:Hf,[-1]:Hf,32:Hf},wM={35:PD,42:Fu,45:[dw,Fu],60:jD,61:dw,95:Fu,96:uw,126:uw},bM={38:bk,92:wk},SM={[-5]:Wf,[-4]:Wf,[-3]:Wf,33:XD,38:bk,42:Jh,60:[J3,zD],91:JD,92:[_D,wk],93:wm,95:Jh,96:dD},kM={null:[Jh,hM]},EM={null:[42,95]},CM={null:[]},_M=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:EM,contentInitial:vM,disable:CM,document:yM,flow:wM,flowInitial:xM,insideSpan:kM,string:bM,text:SM},Symbol.toStringTag,{value:"Module"}));function TM(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,781 bytes, lines 279-281
279olumn:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let l=[],c=[];const f={attempt:Q(z),check:Q(O),consume:P,enter:T,exit:N,interrupt:Q(O,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:_,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&a.push(t),h;function g(W){return l=On(l,W),k(),l[l.length-1]!==null?[]:(B(t,0),h.events=xm(a,h.events,h),h.events)}function v(W,re){return RM(w(W),re)}function w(W){return PM(l,W)}function _(){const{_bufferIndex:W,_index:re,line:Ee,column:ie,offset:Y}=r;return{_bufferIndex:W,_index:re,line:Ee,column:ie,offset:Y}}function C(W){o[W.line]=W.column,oe()}function k(){let W;for(;r._index<l.length;){const re=l[r._index];if(typeof re=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<re.length;)b(re.charCodeAt(r._bufferIndex));else b(re)}}function b(W){p=p(W)}function P(W){Ne(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,oe()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=W}function T(W,re){const Ee=re||{};return Ee.type=W,Ee.start=_(),h.events.push(["enter",Ee,h]),c.push(Ee),Ee}function N(W){const re=c.pop();return re.end=_(),h.events.push(["exit",re,h]),re}function z(W,re){B(W,re.from)}function O(W,re){re.restore()}function Q(W,re){return Ee;function Ee(ie,Y,ge){let le,X,ue,E;return Array.isArray(ie)?q(ie):"tokenize"in ie?q([ie]):L(ie);function L(ee){return _e;function _e(je){const be=je!==null&&ee[je],Je=je!==null&&ee.null,_t=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(Je)?Je:Je?[Je]:[]];return q(_t)(je)}}function q(ee){return le=ee,X=0,ee.length===0?ge:R(ee[X])}function R(ee){return _e;function _e(je){return E=J(),ue=ee,ee.partial||(h.currentConstruct=ee),ee.name&&h.parser.constructs.disable.null.includes(ee.name)?we():ee.tokenize.call(re?Object.assign(Object.create(h),re):h,f,xe,we)(je)}}function xe(ee){return W(ue,E),Y}function we(ee){return E.restore(),++X<le.length?R(le[X]):ge}}}function B(W,re){W.resolveAll&&!a.includes(W)&&a.push(W),W.resolve&&dr(h.events,re,h.events.length-re,W.resolve(h.events.slice(re),h)),W.resolveTo&&(h.events=W.resolveTo(h.events,h))}function J(){const W=_(),re=h.previous,Ee=h.currentConstruct,ie=h.events.length,Y=Array.from(c);return{from:ie,restore:ge};function ge(){r=W,h.previous=re,h.currentConstruct=Ee,h.events.length=ie,c=Y,oe()}}function oe(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function PM(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,a)];else{if(l=e.slice(n,o),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}a>0&&l.push(e[o].slice(0,a))}return l}function RM(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=` 280`;break}case-3:{l=`\r 281`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(a)}o=a===-2,r.push(l)}return r.join("")}function AM(e){const r={constructs:M3([_M,...(e||{}).extensions||[]]),content:o(H3),defined:[],document:o(K3),flow:o(dM),lazy:{},string:o(pM),text:o(mM)};return r;function o(a){return l;function l(c){return TM(r,a,c)}}}function NM(e){for(;!Sk(e););return e}const fw=/[\0\t\n\r]/g;function jM(){let e=1,t="",n=!0,r;return o;function o(a,l,c){const f=[];let h,p,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),g=0,t="",n&&(a.charCodeAt(0)===65279&&g++,n=void 0);g<a.length;){if(fw.lastIndex=g,h=fw.exec(a),v=h&&h.index!==void 0?h.index:a.length,w=a.charCodeAt(v),!h){t=a.slice(g);break}if(w===10&&g===v&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:r=!0,e=1}g=v+1}return c&&(r&&f.push(-5),t&&f.push(t),f.push(null)),f}}const OM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function LM(e){return e.replace(OM,IM)}function IM(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return vk(n.slice(a?2:1),a?16:10)}return vm(n)||e}const Pk={}.hasOwnProperty;function DM(e,t,n){return typeof t!="string"&&(n=t,t=void 0),MM(n)(NM(AM(n).document().write(jM()(e,t,!0))))}function MM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Xt),autolinkProtocol:J,autolinkEmail:J,atxHeading:a(Ht),blockQuote:a(Je),characterEscape:J,characterReference:J,codeFenced:a(_t),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(_t,l),codeText:a(vt,l),codeTextData:J,data:J,codeFlowValue:J,definition:a(cn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(Gt),hardBreakEscape:a(Re),hardBreakTrailing:a(Re),htmlFlow:a(ht,l),htmlFlowData:J,htmlText:a(ht,l),htmlTextData:J,image:a(dn),label:l,link:a(Xt),listItem:a(Gn),listItemValue:v,listOrdered:a(In,g),listUnordered:a(In),paragraph:a(Dn),reference:R,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Ht),strong:a(Za),thematicBreak:a(tl)},exit:{atxHeading:f(),atxHeadingSequence:z,autolink:f(),autolinkEmail:be,autolinkProtocol:je,blockQuote:f(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:ee,characterReference:_e,codeFenced:f(k),codeFencedFence:C,codeFencedFenceInfo:w,codeFencedFenceMeta:_,codeFlowValue:oe,codeIndented:f(b),codeText:f(Y),codeTextData:oe,data:oe,definition:f(),definitionDestinationString:N,definitionLabelString:P,definitionTitleString:T,emphasis:f(),hardBreakEscape:f(re),hardBreakTrailing:f(re),htmlFlow:f(Ee),htmlFlowData:oe,htmlText:f(ie),htmlTextData:oe,image:f(le),label:ue,labelText:X,lineEnding:W,link:f(ge),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:xe,resourceDestinationString:E,resourceTitleString:L,resource:q,setextHeading:f(B),setextHeadingLineSequence:Q,setextHeadingText:O,strong:f(),thematicBreak:f()}};Rk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(H){let se={type:"root",children:[]};const Pe={stack:[se],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:p,data:n},Ie=[];let Ve=-1;for(;++Ve<H.length;)if(H[Ve][1].type==="listOrdered"||H[Ve][1].type==="listUnordered")if(H[Ve][0]==="enter")Ie.push(Ve);else{const Tt=Ie.pop();Ve=o(H,Tt,Ve)}for(Ve=-1;++Ve<H.length;){const Tt=t[H[Ve][0]];Pk.call(Tt,H[Ve][1].type)&&Tt[H[Ve][1].type].call(Object.assign({sliceSerialize:H[Ve][2].sliceSerialize},Pe),H[Ve][1])}if(Pe.tokenStack.length>0){const Tt=Pe.tokenStack[Pe.tokenStack.length-1];(Tt[1]||hw).call(Pe,void 0,Tt[0])}for(se.position={start:Yr(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:Yr(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<t.transforms.length;)se=t.transforms[Ve](se)||se;return se}function o(H,se,Pe){let Ie=se-1,Ve=-1,Tt=!1,fr,bn,Rr,vi;for(;++Ie<=Pe;){const Pt=H[Ie];switch(Pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pt[0]==="enter"?Ve++:Ve--,vi=void 0;break}case"lineEndingBlank":{Pt[0]==="enter"&&(fr&&!vi&&!Ve&&!Rr&&(Rr=Ie),vi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vi=void 0}if(!Ve&&Pt[0]==="enter"&&Pt[1].type==="listItemPrefix"||Ve===-1&&Pt[0]==="exit"&&(Pt[1].type==="listUnordered"||Pt[1].type==="listOrdered")){if(fr){let Xn=Ie;for(bn=void 0;Xn--;){const fn=H[Xn];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;bn&&(H[bn][1].type="lineEndingBlank",Tt=!0),fn[1].type="lineEnding",bn=Xn}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}Rr&&(!bn||Rr<bn)&&(fr._spread=!0),fr.end=Object.assign({},bn?H[bn][1].start:Pt[1].end),H.splice(bn||Ie,0,["exit",fr,Pt[2]]),Ie++,Pe++}if(Pt[1].type==="listItemPrefix"){const Xn={type:"listItem",_spread:!1,start:Object.assign({},Pt[1].start),end:void 0};fr=Xn,H.splice(Ie,0,["enter",Xn,Pt[2]]),Ie++,Pe++,Rr=void 0,vi=!0}}}return H[se][1]._spread=Tt,Pe}function a(H,se){return Pe;function Pe(Ie){c.call(this,H(Ie),Ie),se&&se.call(this,Ie)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(H,se,Pe){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([se,Pe||void 0]),H.position={start:Yr(se.start),end:void 0}}function f(H){return se;function se(Pe){H&&H.call(this,Pe),h.call(this,Pe)}}function h(H,se){const Pe=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==H.type&&(se?se.call(this,H,Ie[0]):(Ie[1]||hw).call(this,H,Ie[0]));else throw new Error("Cannot close `"+H.type+"` ("+wa({start:H.start,end:H.end})+"): itâs not open");Pe.position.end=Yr(H.end)}function p(){return I3(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(H){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function w(){const H=this.resume(),se=this.stack[this.stack.length-1];se.lang=H}function _(){const H=this.resume(),se=this.stack[this.stack.length-1];se.meta=H}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const H=this.resume(),se=this.stack[this.stack.length-1];se.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const H=this.resume(),se=this.stack[this.stack.length-1];se.value=H.replace(/(\r?\n|\r)$/g,"")}function P(H){const se=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=se,Pe.identifier=Bs(this.sliceSerialize(H)).toLowerCase()}function T(){const H=this.resume(),se=this.stack[this.stack.length-1];se.title=H}function N(){const H=this.resume(),se=this.stack[this.stack.length-1];se.url=H}function z(H){const se=this.stack[this.stack.length-1];if(!se.depth){const Pe=this.sliceSerialize(H).length;se.depth=Pe}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function Q(H){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function J(H){const Pe=this.stack[this.stack.length-1].children;let Ie=Pe[Pe.length-1];(!Ie||Ie.type!=="text")&&(Ie=el(),Ie.position={start:Yr(H.start),end:void 0},Pe.push(Ie)),this.stack.push(Ie)}function oe(H){const se=this.stack.pop();se.value+=this.sliceSerialize(H),se.position.end=Yr(H.end)}function W(H){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Pe=se.children[se.children.length-1];Pe.position.end=Yr(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(J.call(this,H),oe.call(this,H))}function re(){this.data.atHardBreak=!0}function Ee(){const H=this.resume(),se=this.stack[this.stack.length-1];se.value=H}function ie(){const H=this.resume(),se=this.stack[this.stack.length-1];se.value=H}function Y(){const H=this.resume(),se=this.stack[this.stack.length-1];se.value=H}function ge(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=se,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function le(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=se,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function X(H){const se=this.sliceSerialize(H),Pe=this.stack[this.stack.length-2];Pe.label=LM(se),Pe.identifier=Bs(se).toLowerCase()}function ue(){const H=this.stack[this.stack.length-1],se=this.resume(),Pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Pe.type==="link"){const Ie=H.children;Pe.children=Ie}else Pe.alt=se}function E(){const H=this.resume(),se=this.stack[this.stack.length-1];se.url=H}function L(){const H=this.resume(),se=this.stack[this.stack.length-1];se.title=H}function q(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function xe(H){const se=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=se,Pe.identifier=Bs(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function we(H){this.data.characterReferenceType=H.type}function ee(H){const se=this.sliceSerialize(H),Pe=this.data.characterReferenceType;let Ie;Pe?(Ie=vk(se,Pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=vm(se);const Ve=this.stack[this.stack.length-1];Ve.value+=Ie}function _e(H){const se=this.stack.pop();se.position.end=Yr(H.end)}function je(H){oe.call(this,H);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(H)}function be(H){oe.call(this,H);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(H)}function Je(){return{type:"blockquote",children:[]}}function _t(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function cn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Gt(){return{type:"emphasis",children:[]}}function Ht(){return{type:"heading",depth:0,children:[]}}function Re(){return{type:"break"}}function ht(){return{type:"html",value:""}}function dn(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function In(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function Gn(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function Dn(){return{type:"paragraph",children:[]}}function Za(){return{type:"strong",children:[]}}function el(){return{type:"text",value:""}}function tl(){return{type:"thematicBreak"}}}function Yr(e){return{line:e.line,column:e.column,offset:e.offset}}function Rk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Rk(e,r):FM(e,r)}}function FM(e,t){let n;for(n in t)if(Pk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function hw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wa({start:t.start,end:t.end}
vendor: 4,867 bytes, lines 281-285
281)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wa({start:t.start,end:t.end})+") is still open")}function zM(e){const t=this;t.parser=n;function n(r){return DM(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function BM(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function UM(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 282`}]}function VM(e,t){const n=t.value?t.value+` 283`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function $M(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qM(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HM(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=po(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=a+1,c+=1,e.footnoteCounts.set(r,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function WM(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KM(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ak(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function QM(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ak(e,t);const o={src:po(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function GM(e,t){const n={src:po(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function XM(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function YM(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ak(e,t);const o={href:po(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function JM(e,t){const n={href:po(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZM(e,t,n){const r=e.all(t),o=n?e5(n):Nk(t),a={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(o||c!==0||p.type!=="element"||p.tagName!=="p")&&l.push({type:"text",value:` 284`}),p.type==="element"&&p.tagName==="p"&&!o?l.push(...p.children):l.push(p)}const f=r[r.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:` 285`});const h={type:"element",tagName:"li",properties:a,children:l};return e.patch(t,h),e.applyData(t,h)}function e5(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Nk(n[r])}return t}function Nk(e){const t=e.spread;return t??e.children.length>1}function t5(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;
vendor: 3,255 bytes, line 285
285){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function n5(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function r5(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function i5(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s5(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),o.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=pm(t.children[1]),f=dk(t.children[t.children.length-1]);c&&f&&(l.position={start:c,end:f}),o.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function o5(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let f=-1;const h=[];for(;++f<c;){const g=t.children[f],v={},w=l?l[f]:void 0;w&&(v.align=w);let _={type:"element",tagName:a,properties:v,children:[]};g&&(_.children=e.all(g),e.patch(g,_),_=e.applyData(g,_)),h.push(_)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function a5(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const pw=9,mw=32;function l5(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(gw(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(gw(t.slice(o),o>0,!1)),a.join("")}function gw(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===pw||a===mw;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===pw||a===mw;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function u5(e,t){const n={type:"text",value:l5(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function c5(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const d5={blockquote:BM,break:UM,code:VM,delete:$M,emphasis:qM,footnoteReference:HM,heading:WM,html:KM,imageReference:QM,image:GM,inlineCode:XM,linkReference:YM,link:JM,listItem:ZM,list:t5,paragraph:n5,root:r5,strong:i5,table:s5,tableCell:a5,tableRow:o5,text:u5,thematicBreak:c5,toml:Su,yaml:Su,definition:Su,footnoteDefinition:Su};function Su(){}const jk=-1,bc=0,Sa=1,tc=2,bm=3,Sm=4,km=5,Em=6,Ok=7,Lk=8,yw=typeof self=="object"?self:globalThis,f5=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,l]=t[o];switch(a){case bc:case jk:return n(l,o);case Sa:{const c=n([],o);for(const f of l)c.push(r(f));return c}case tc:{const c=n({},o);for(const[f,h]of l)c[r(f)]=r(h);return c}case bm:return n(new Date(l),o);case Sm:{const{source:c,flags:f}=l;return n(new RegExp(c,f),o)}case km:{const c=n(new Map,o);
vendor: 6,406 bytes, lines 285-287
285for(const[f,h]of l)c.set(r(f),r(h));return c}case Em:{const c=n(new Set,o);for(const f of l)c.add(r(f));return c}case Ok:{const{name:c,message:f}=l;return n(new yw[c](f),o)}case Lk:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new yw[a](l),o)};return r},vw=e=>f5(new Map,e)(0),Os="",{toString:h5}={},{keys:p5}=Object,oa=e=>{const t=typeof e;if(t!=="object"||!e)return[bc,t];const n=h5.call(e).slice(8,-1);switch(n){case"Array":return[Sa,Os];case"Object":return[tc,Os];case"Date":return[bm,Os];case"RegExp":return[Sm,Os];case"Map":return[km,Os];case"Set":return[Em,Os];case"DataView":return[Sa,n]}return n.includes("Array")?[Sa,n]:n.includes("Error")?[Ok,n]:[tc,n]},ku=([e,t])=>e===bc&&(t==="function"||t==="symbol"),m5=(e,t,n,r)=>{const o=(l,c)=>{const f=r.push(l)-1;return n.set(c,f),f},a=l=>{if(n.has(l))return n.get(l);let[c,f]=oa(l);switch(c){case bc:{let p=l;switch(f){case"bigint":c=Lk,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return o([jk],l)}return o([c,p],l)}case Sa:{if(f){let v=l;return f==="DataView"?v=new Uint8Array(l.buffer):f==="ArrayBuffer"&&(v=new Uint8Array(l)),o([f,[...v]],l)}const p=[],g=o([c,p],l);for(const v of l)p.push(a(v));return g}case tc:{if(f)switch(f){case"BigInt":return o([f,l.toString()],l);case"Boolean":case"Number":case"String":return o([f,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const p=[],g=o([c,p],l);for(const v of p5(l))(e||!ku(oa(l[v])))&&p.push([a(v),a(l[v])]);return g}case bm:return o([c,l.toISOString()],l);case Sm:{const{source:p,flags:g}=l;return o([c,{source:p,flags:g}],l)}case km:{const p=[],g=o([c,p],l);for(const[v,w]of l)(e||!(ku(oa(v))||ku(oa(w))))&&p.push([a(v),a(w)]);return g}case Em:{const p=[],g=o([c,p],l);for(const v of l)(e||!ku(oa(v)))&&p.push(a(v));return g}}const{message:h}=l;return o([c,{name:f,message:h}],l)};return a},xw=(e,{json:t,lossy:n}={})=>{const r=[];return m5(!(t||n),!!t,new Map,r)(e),r},nc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vw(xw(e,t)):structuredClone(e):(e,t)=>vw(xw(e,t));function g5(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function y5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function v5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||g5,r=e.options.footnoteBackLabel||y5,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),v=po(g.toLowerCase());let w=0;const _=[],C=e.footnoteCounts.get(g);for(;C!==void 0&&++w<=C;){_.length>0&&_.push({type:"text",value:" "});let P=typeof n=="string"?n:n(f,w);typeof P=="string"&&(P={type:"text",value:P}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(f,w),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const k=p[p.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const P=k.children[k.children.length-1];P&&P.type==="text"?P.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(..._)}else p.push(..._);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(p,!0)};e.patch(h,b),c.push(b)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...nc(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:` 286`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:` 287`}]}}const Ik=(function(e){if(e==null)return S5;if(typeof e=="function")return Sc(e);if(typeof e=="object")return Array.isArray(e)?x5(e):w5(e);if(typeof e=="string")return b5(e);throw new Error("Expected function, string, or object as test")});function x5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ik(e[n]);return Sc(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function w5(e){const t=e;return Sc(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function b5(e){return Sc(t);function t(n){return n&&n.type===e}}function Sc(e){return t;function t(n,r,o){return!!(k5(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function S5(){return!0}function k5(e){return e!==null&&typeof e=="object"&&"type"in e}const Dk=[],E5=!0,ww=!1,C5="skip";function _5(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Ik(o),l=r?-1:1;c(e,void 0,[])();function c(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return v;function v(){let w=Dk,_,C,k;if((!t||a(f,h,p[p.length-1]||void 0))&&(w=T5(n(f,p)),w[0]===ww))return w;if("children"in f&&f.children){const b=f;if(b.children&&w[0]!==C5)for(C=(r?b.children.length:-1)+l,k=p.concat(b);C>-1&&C<b.children.length;){const P=b.children[C];if(_=c(P,C,k)(),_[0]===ww)return _;C=typeof _[1]=="number"?_[1]:C+l}}return w}}}function T5(e){return Array.isArray(e)?e:typeof e=="number"?[E5,e]:e==null?Dk:[e]}function Mk(e,t,n,r){let o,a,l;typeof t=="function"&&typeof n!="function"?(a=void 0,l=t,o=n):(a=t,l=n,o=r),_5(e,a,c,o);function c(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return l(f,g,p)}}const Zh={}.hasOwnProperty,P5={};function R5(e,t){const n=t||P5,r=new Map,o=new Map,a=new Map,l={...d5,...n.handlers},c={all:h,applyData:N5,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:l,one:f,options:n,patch:A5,wrap:O5};return Mk(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?r:o,v=String(p.identifier).toUpperCase();g.has(v)||g.set(v,p)}}),c;function f(p,g){const v=p.type,w=c.handlers[v];if(Zh.call(c.handlers,v)&&w)return w(c,p,g);
vendor: 11,059 bytes, lines 287-291
287if(c.options.passThrough&&c.options.passThrough.includes(v)){if("children"in p){const{children:C,...k}=p,b=nc(k);return b.children=c.all(p),b}return nc(p)}return(c.options.unknownHandler||j5)(c,p,g)}function h(p){const g=[];if("children"in p){const v=p.children;let w=-1;for(;++w<v.length;){const _=c.one(v[w],p);if(_){if(w&&v[w-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=bw(_.value)),!Array.isArray(_)&&_.type==="element")){const C=_.children[0];C&&C.type==="text"&&(C.value=bw(C.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function A5(e,t){e.position&&(t.position=h3(e))}function N5(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&a&&Object.assign(n.properties,nc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function j5(e,t){const n=t.data||{},r="value"in t&&!(Zh.call(n,"hProperties")||Zh.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function O5(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 288`});++r<e.length;)r&&n.push({type:"text",value:` 289`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 290`}),n}function bw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Sw(e,t){const n=R5(e,t),r=n.one(e,void 0),o=v5(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:` 291`},o),a}function L5(e,t){return e&&"run"in e?async function(n,r){const o=Sw(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Sw(n,{file:r,...e||t})}}function kw(e){if(e)throw e}var Kf,Ew;function I5(){if(Ew)return Kf;Ew=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},a=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var p=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!g)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},l=function(h,p){n&&p.name==="__proto__"?n(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},c=function(h,p){if(p==="__proto__")if(e.call(h,p)){if(r)return r(h,p).value}else return;return h[p]};return Kf=function f(){var h,p,g,v,w,_,C=arguments[0],k=1,b=arguments.length,P=!1;for(typeof C=="boolean"&&(P=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<b;++k)if(h=arguments[k],h!=null)for(p in h)g=c(C,p),v=c(h,p),C!==v&&(P&&v&&(a(v)||(w=o(v)))?(w?(w=!1,_=g&&o(g)?g:[]):_=g&&a(g)?g:{},l(C,{name:p,newValue:f(P,_,v)})):typeof v<"u"&&l(C,{name:p,newValue:v}));return C},Kf}var D5=I5();const Qf=ic(D5);function ep(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function M5(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...o);function c(f,...h){const p=e[++a];let g=-1;if(f){l(f);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,p?F5(p,c)(...h):l(null,...h)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function F5(e,t){let n;return r;function r(...l){const c=e.length>l.length;let f;c&&l.push(o);try{f=e.apply(this,l)}catch(h){const p=h;if(c&&n)throw p;return o(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(a,o):f instanceof Error?o(f):a(f))}function o(l,...c){n||(n=!0,t(l,...c))}function a(l){o(null,l)}}const nr={basename:z5,dirname:B5,extname:U5,join:V5,sep:"/"};function z5(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ja(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else l<0&&(a=!0,l=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(r=o):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function B5(e){if(Ja(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function U5(e){Ja(e);let t=e.length,n=-1,r=0,o=-1,a=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function V5(...e){let t=-1,n;for(;++t<e.length;)Ja(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$5(n)}function $5(e){Ja(e);const t=e.codePointAt(0)===47;let n=q5(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function q5(e,t){let n="",r=0,o=-1,a=0,l=-1,c,f;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(o===l-1||a===1))if(o!==l-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",r=0):(n=n.slice(0,f),r=n.length-1-n.lastIndexOf("/")),o=l,a=0;continue}}else if(n.length>0){n="",r=0,o=l,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,a=0}else c===46&&a>-1?a++:a=-1}return n}function Ja(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const H5={cwd:W5};function W5(){return"/"}function tp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function K5(e){if(typeof e=="string")e=new URL(e);else if(!tp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q5(e)}function Q5(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Gf=["history","path","basename","stem","extname","dirname"];class Fk{constructor(t){let n;t?tp(t)?n={path:t}:typeof t=="string"||G5(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":H5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Gf.length;){const a=Gf[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)Gf.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?nr.basename(this.path):void 0}set basename(t){Yf(t,"basename"),Xf(t,"basename"),this.path=nr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?nr.dirname(this.path):void 0}set dirname(t){Cw(this.basename,"dirname"),this.path=nr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?nr.extname(this.path):void 0}set extname(t){if(Xf(t,"extname"),Cw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=nr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){tp(t)&&(t=K5(t)),Yf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?nr.basename(this.path,this.extname):void 0}set stem(t){Yf(t,"stem"),Xf(t,"stem"),this.path=nr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new qt(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Xf(e,t){if(e&&e.includes(nr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+nr.sep+"`")}function Yf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Cw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function G5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X5=(function(e){const r=this.constructor.prototype,o=r[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Y5={}.hasOwnProperty;class Cm extends X5{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=M5()}copy(){const t=new Cm;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Qf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(eh("data",this.frozen),this.namespace[t]=n,this):Y5.call(this.namespace,t)&&this.namespace[t]||void 0:t?(eh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Eu(t),r=this.parser||this.Parser;return Jf("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Jf("process",this.parser||this.Parser),Zf("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,l){const c=Eu(t),f=r.parse(c);r.run(f,c,function(p,g,v){if(p||!g||!v)return h(p);const w=g,_=r.stringify(w,v);eF(_)?v.value=_:v.result=_,h(p,v)});function h(p,g){p||!g?l(p):a?a(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),Jf("processSync",this.parser||this.Parser),Zf("processSync",this.compiler||this.Compiler),this.process(t,o),Tw("processSync","process",n),r;function o(a,l){n=!0,kw(a),r=l}}
vendor: 4,715 bytes, line 291
291run(t,n,r){_w(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(l,c){const f=Eu(n);o.run(t,f,h);function h(p,g,v){const w=g||t;p?c(p):l?l(w):r(void 0,w,v)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),Tw("runSync","run",r),o;function a(l,c){kw(l),o=c,r=!0}}stringify(t,n){this.freeze();const r=Eu(n),o=this.compiler||this.Compiler;return Zf("stringify",o),_w(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(eh("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(o.settings=Qf(!0,o.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];a(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,v=-1;for(;++g<r.length;)if(r[g][0]===h){v=g;break}if(v===-1)r.push([h,...p]);else if(p.length>0){let[w,..._]=p;const C=r[v][1];ep(C)&&ep(w)&&(w=Qf(!0,C,w)),r[v]=[h,w,..._]}}}}const J5=new Cm().freeze();function Jf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Zf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _w(e){if(!ep(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Tw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Eu(e){return Z5(e)?e:new Fk(e)}function Z5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eF(e){return typeof e=="string"||tF(e)}function tF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pw=[],Rw={allowDangerousHtml:!0},rF=/^(https?|ircs?|mailto|xmpp)$/i,iF=[{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:"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 sF(e){const t=oF(e),n=aF(e);return lF(t.runSync(t.parse(n),n),e)}function oF(e){const t=e.rehypePlugins||Pw,n=e.remarkPlugins||Pw,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rw}:Rw;return J5().use(zM).use(n).use(L5,r).use(t)}function aF(e){const t=e.children||"",n=new Fk;return typeof t=="string"&&(n.value=t),n}function lF(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||uF;for(const p of iF)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+nF+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Mk(e,h),v3(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function h(p,g,v){if(p.type==="raw"&&v&&typeof g=="number")return l?v.children.splice(g,1):v.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let w;for(w in qf)if(Object.hasOwn(qf,w)&&Object.hasOwn(p.properties,w)
291){const _=p.properties[w],C=qf[w];(C===null||C.includes(p.tagName))&&(p.properties[w]=f(String(_||""),w,p))}}if(p.type==="element"){let w=n?!n.includes(p.tagName):a?a.includes(p.tagName):!1;if(!w&&r&&typeof g=="number"&&(w=!r(p,g,v)),w&&v&&typeof g=="number")return c&&p.children?v.children.splice(g,1,...p.children):v.children.splice(g,1),g}}}function uF(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||rF.test(e.slice(0,t))?e:""}const cF={shield:Jw,sword:X_,eye:ap,arrow:th},Aw={blue:{bg:"bg-blue-50 hover:bg-blue-100",border:"border-blue-300 hover:border-blue-500",badge:"bg-blue-600",text:"text-blue-800",glow:"hover:shadow-blue-200"},red:{bg:"bg-red-50 hover:bg-red-100",border:"border-red-300 hover:border-red-500",badge:"bg-red-600",text:"text-red-800",glow:"hover:shadow-red-200"},amber:{bg:"bg-amber-50 hover:bg-amber-100",border:"border-amber-300 hover:border-amber-500",badge:"bg-amber-600",text:"text-amber-800",glow:"hover:shadow-amber-200"},purple:{bg:"bg-purple-50 hover:bg-purple-100",border:"border-purple-300 hover:border-purple-500",badge:"bg-purple-600",text:"text-purple-800",glow:"hover:shadow-purple-200"},slate:{bg:"bg-slate-50 hover:bg-slate-100",border:"border-slate-300 hover:border-slate-500",badge:"bg-slate-600",text:"text-slate-800",glow:"hover:shadow-slate-200"}};function dF({choices:e,onChoice:t}){const[n,r]=F.useState(null),[o,a]=F.useState(null),l=(c,f)=>{a(f),setTimeout(()=>t(c),600)};return x.jsxs(Me.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mt-8 pt-8 border-t-2 border-dashed border-amber-300",children:[x.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[x.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-100 flex items-center justify-center",children:x.jsx(Zs,{className:"w-5 h-5 text-amber-600"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-amber-600 font-semibold uppercase tracking-widest",children:"Bivio narrativo"}),x.jsx("p",{className:"text-slate-700 font-medium",children:"Cosa farà Frank?"})]})]}),x.jsx("div",{className:"space-y-3",children:x.jsx(ts,{children:e.map((c,f)=>{const h=Aw[c.color]||Aw.slate,p=cF[c.icon]||th,g=o===f,v=o!==null&&o!==f;return x.jsxs(Me.button,{initial:{opacity:0,x:-20},animate:{opacity:v?.3:1,x:0,scale:g?1.02:1},transition:{duration:.3,delay:f*.1},onClick:()=>l(c,f),disabled:o!==null,onMouseEnter:()=>r(f),onMouseLeave:()=>r(null),className:`w-full text-left p-4 rounded-xl border-2 transition-all duration-300 shadow-sm hover:shadow-lg ${h.bg} ${h.border} ${h.glow} ${g?"ring-2 ring-offset-2 ring-amber-400":""}`,children:[x.jsxs("div",{className:"flex items-start gap-4",children:[x.jsx("div",{className:`w-10 h-10 rounded-lg ${h.badge} flex items-center justify-center flex-shrink-0 mt-0.5 shadow`,children:x.jsx(p,{className:"w-5 h-5 text-white"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:`font-semibold ${h.text} text-sm md:text-base`,children:c.label}),c.description&&x.jsx("p",{className:"text-slate-500 text-sm mt-1 leading-relaxed",children:c.description})]}),x.jsx(Me.div,{animate:{x:n===f?4:0},className:"flex-shrink-0 mt-1",children:x.jsx(th,{className:`w-5 h-5 ${h.text} opacity-50`})})]}),g&&x.jsx(Me.div,{initial:{scaleX:0},animate:{scaleX:1},className:`mt-3 h-1 rounded-full ${h.badge} origin-left`})]},f)})})})]})}function fF({history:e,endingNode:t}){const[n,r]=F.useState(null),[o,a]=F.useState(!1),[l,c]=F.useState(!1),f=async()=>{if(n){c(g=>!g);return}a(!0),c(!0);const h=e.map((g,v)=>`${v+1}. ${g.title}${g.is_choice_node?" (hai fatto una scelta)":""}`).join(` 292`),p=await Ln.integrations.Core.InvokeLLM({prompt:`Sei un narratore letterario. L'utente ha appena completato la storia interattiva "Il Colore della Verità " raggiungendo il finale "${t==null?void 0:t.title}" (tipo: ${t==null?void 0:t.ending_type}). 293 294Il percorso del lettore: 295${h} 296 297Scrivi un riassunto poetico e coinvolgente del viaggio del protagonista Frank, in 3-4 frasi. Menziona le scelte chiave fatte, rifletti sul significato del finale raggiunto, e lascia il lettore con una riflessione sul tema del potere e delle scelte. Usa un tono letterario e intenso.`});r(p),a(!1)};return x.jsxs("div",{className:"mt-6 border-t border-slate-200 pt-6",children:[x.jsx("button",{onClick:f,disabled:o,className:"flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-purple-700 to-indigo-700 hover:from-purple-600 hover:to-indigo-600 text-white text-sm font-semibold rounded-xl transition-all duration-300 transform hover:scale-105 shadow-lg disabled:opacity-60 w-full justify-center",children:o?x.jsxs(x.Fragment,{children:[x.jsx(Bu,{className:"w-4 h-4 animate-spin"})," Generazione riassunto AI..."]}):n?x.jsxs(x.Fragment,{children:[x.jsx(Xi,{className:"w-4 h-4"})," ",l?"Nascondi riassunto":"Mostra riassunto del percorso"," ",l?x.jsx(Xw,{className:"w-3 h-3"}):x.jsx(ip,{className:"w-3 h-3"})]}):x.jsxs(x.Fragment,{children:[x.jsx(fi,{className:"w-4 h-4"})," Genera riassunto AI del tuo percorso"]})}),x.jsx(ts,{children:l&&x.jsx(Me.div,{initial:{opacity:0,height:0}
297,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:x.jsxs("div",{className:"mt-4 p-5 bg-gradient-to-br from-purple-50 to-indigo-50 border border-purple-200 rounded-2xl",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[x.jsx(fi,{className:"w-4 h-4 text-purple-500"}),x.jsx("span",{className:"text-xs font-semibold text-purple-600 uppercase tracking-wide",children:"Riassunto AI del tuo percorso"})]}),o?x.jsx("p",{className:"text-slate-400 text-sm italic animate-pulse",children:"L'AI sta riflettendo sul tuo viaggio..."}):x.jsxs("p",{className:"text-slate-700 leading-relaxed italic font-serif text-base",children:['"',n,'"']})]})})})]})}const Nw={victory:{icon:up,gradient:"from-amber-600 via-yellow-500 to-amber-600",bg:"bg-amber-50",border:"border-amber-300",label:"Finale: Vittoria",labelColor:"text-amber-700",particle:"â¨"},defeat:{icon:oc,gradient:"from-red-800 via-red-600 to-red-800",bg:"bg-red-50",border:"border-red-300",label:"Finale: Sconfitta",labelColor:"text-red-700",particle:"ð"},bittersweet:{icon:op,gradient:"from-slate-600 via-blue-600 to-slate-700",bg:"bg-blue-50",border:"border-blue-300",label:"Finale: Agrodolce",labelColor:"text-blue-700",particle:"ð§ï¸"},mysterious:{icon:sc,gradient:"from-purple-800 via-purple-600 to-indigo-800",bg:"bg-purple-50",border:"border-purple-300",label:"Finale: Misterioso",labelColor:"text-purple-700",particle:"ð"}};function hF({node:e,onRestart:t,onClose:n,history:r=[]}){var l;const o=Nw[e.ending_type]||Nw.mysterious,a=o.icon;return x.jsxs(Me.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},className:"text-center py-8",children:[x.jsxs("div",{className:"relative mb-8",children:[[...Array(6)].map((c,f)=>x.jsx(Me.span,{className:"absolute text-2xl",initial:{opacity:0,y:0},animate:{opacity:[0,1,0],y:-80+Math.random()*40},transition:{duration:2,delay:f*.3,repeat:1/0,repeatDelay:1},style:{left:`${10+f*15}%`},children:o.particle},f)),x.jsx("div",{className:`w-24 h-24 rounded-full bg-gradient-to-br ${o.gradient} flex items-center justify-center mx-auto shadow-2xl`,children:x.jsx(a,{className:"w-12 h-12 text-white"})})]}),x.jsx("div",{className:`inline-block px-4 py-1.5 rounded-full ${o.bg} border ${o.border} mb-4`,children:x.jsx("span",{className:`text-sm font-semibold ${o.labelColor}`,children:o.label})}),x.jsx("h2",{className:"text-3xl md:text-4xl font-serif font-bold text-slate-800 mb-4",children:e.title}),e.subtitle&&x.jsx("p",{className:"text-slate-500 italic mb-6",children:e.subt
297itle}),x.jsx("div",{className:"text-left max-w-2xl mx-auto mb-10",children:(l=e.content)==null?void 0:l.split(` 298 299`).map((c,f)=>x.jsx("p",{className:"text-slate-700 leading-relaxed mb-4",children:c.replace(/\*\*/g,"")},f))}),x.jsx(fF,{history:r,endingNode:e}),x.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mt-6",children:[x.jsxs("button",{onClick:t,className:"flex items-center justify-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-white font-semibold rounded-xl transition-all duration-300 transform hover:scale-105 shadow-lg",children:[x.jsx(z_,{className:"w-5 h-5"}),"Ricomincia la storia"]}),x.jsxs("button",{onClick:n,className:"flex items-center justify-center gap-2 px-6 py-3 border-2 border-slate-300 hover:border-slate-400 text-slate-700 font-semibold rounded-xl transition-all duration-300",children:[x.jsx(Yw,{className:"w-5 h-5"}),"Torna alla home"]})]})]})}function zk({node:e,onClose:t,onChoice:n,onRestart:r,history:o=[]}){var l;if(!e)return null;const a=e.is_ending;return x.jsx(ts,{children:x.jsxs(Me.div,{initial:{opacity:0}
299,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-slate-900/95 backdrop-blur-sm overflow-y-auto",children:[x.jsx("button",{onClick:t,className:"fixed top-6 right-6 z-50 w-12 h-12 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:x.jsx(ac,{className:"w-6 h-6 text-white"})}),x.jsx(Me.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},className:"min-h-screen flex items-center justify-center p-6 md:p-12 pt-20",children:x.jsxs("div",{className:"max-w-3xl w-full bg-[#faf8f5] rounded-3xl shadow-2xl overflow-hidden",children:[x.jsxs("div",{className:`p-8 text-center ${a?"bg-gradient-to-br from-slate-900 via-purple-950 to-slate-900":"bg-gradient-to-br from-slate-800 to-slate-900"}`,children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-amber-500/20 rounded-full mb-4",children:[x.jsx(Xi,{className:"w-4 h-4 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-sm",children:a?"Finale":`Capitolo ${e.chapter_number}`}),e.path_tag&&e.path_tag!=="main"&&x.jsxs("span",{className:"ml-1 text-amber-400/60 text-xs",children:["⢠",e.path_tag.replace("_"," ").toUpperCase()]})]}),x.jsx("h1",{className:"text-3xl md:text-4xl font-serif font-bold text-white mb-2",children:e.title}),e.subtitle&&x.jsx("p",{className:"text-blue-200/80 italic",children:e.subt
299itle})]}),x.jsx("div",{className:"p-8 md:p-12",children:a?x.jsx(hF,{node:e,onRestart:r,onClose:t,history:o}):x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"prose prose-lg prose-slate max-w-none",children:x.jsx(sF,{components:{p:({children:c})=>x.jsx("p",{className:"text-slate-700 leading-relaxed mb-6 first-letter:text-5xl first-letter:font-serif first-letter:font-bold first-letter:text-amber-600 first-letter:float-left first-letter:mr-3 first-letter:mt-1",children:c}),strong:({children:c})=>x.jsx("strong",{className:"text-slate-900 font-semibold",children:c}),em:({children:c})=>x.jsx("em",{className:"text-slate-600 italic",children:c})},children:e.content})}),e.is_choice_node&&((l=e.choices)==null?void 0:l.length)>0?x.jsx(dF,{choices:e.choices,onChoice:n}):e.next_node_id?x.jsx("div",{className:"mt-8 pt-6 border-t border-slate-200 flex justify-end",children:x.jsxs("button",{onClick:()=>n({next_node_id:e.next_node_id}),className:"flex items-center gap-2 px-6 py-3 bg-slate-800 hover:bg-slate-700 text-white font-medium rounded-xl transition-all duration-300 transform hover:translate-x-1",children:["Continua",x.jsx(__,{className:"w-4 h-4"})]})}):null]})})]})},e.node_id)]})})}function pF(){const[e,t]=F.useState(!1),[n,r]=F.useState({name:"",suggestion:""}),[o,a]=F.useState(!1),[l,c]=F.useState(!1),f=async h=>{if(h.preventDefault(),!!n.suggestion.trim()){a(!0);try{await Ln.integrations.Core.SendEmail({to:"autore@ilcoloredellaverità .it",subject:`ð¡ Contributo narrativo da ${n.name||"Anonimo"}`,body:`**Contributo narrativo** 300 301Da: ${n.name||"Anonimo"} 302 303${n.suggestion}`})}catch{}a(!1),c(!0),setTimeout(()=>{c(!1),t(!1),r({name:"",suggestion:""})},2500)}};return x.jsxs(x.Fragment,{children:[x.jsxs(Me.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative overflow-hidden rounded-3xl bg-gradient-to-br from-slate-800 via-blue-900 to-slate-900 p-8 md:p-10 text-white shadow-2xl",children:[x.jsx("div",{className:"absolute -top-16 -right-16 w-64 h-64 bg-amber-400/10 rounded-full blur-3xl pointer-events-none"}),x.jsx("div",{className:"absolute -bottom-10 -left-10 w-48 h-48 bg-blue-400/10 rounded-full blur-3xl pointer-events-none"}),x.jsxs("div",{className:"relative z-10 flex flex-col md:flex-row items-start md:items-center gap-6",children:[x.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-400/20 border border-amber-400/30 flex items-center justify-center flex-shrink-0",children:x.jsx(L_,{className:"w-8 h-8 text-amber-400"})}),x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[x.jsx(fi,{className:"w-4 h-4 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-xs font-semibold uppercase tracking-widest",children:"Hai nuove informazioni?"})]}),x.jsx("h3",{className:"text-2xl md:text-3xl font-serif font-bold mb-2",children:"Aiuta a correggere e sviluppare la storia"}),x.jsx("p",{className:"text-blue-200/80 leading-relaxed max-w-xl",children:"Se conosci dettagli inediti, hai informazioni narrative aggiuntive o vuoi suggerire nuovi sviluppi della trama â personaggi, eventi, bivi â il tuo contributo può arricchire questa storia."}),x.jsx("ul",{className:"mt-3 flex flex-wrap gap-x-5 gap-y-1 text-sm text-blue-300/80",children:["Correggere fatti","Aggiungere personaggi","Suggerire nuovi percorsi","Proporre finali alternativi"].map(h=>x.jsxs("li",{className:"flex items-center gap-1",children:[x.jsx(sp,{className:"w-3 h-3 text-amber-400"})," ",h]},h))})]}),x.jsxs("button",{onClick:()=>t(!0),className:"flex-shrink-0 flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-semibold rounded-xl transition-all duration-300 transform hover:scale-105 shadow-lg",children:[x.jsx(zu,{className:"w-5 h-5"}),"Contribuisci"]})]})]}),x.jsx(ts,{children:e&&x.jsx(Me.div,{initial:{opacity:0}
303,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-slate-900/70 backdrop-blur-sm flex items-center justify-center p-4",onClick:h=>h.target===h.currentTarget&&t(!1),children:x.jsxs(Me.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},className:"bg-white rounded-3xl shadow-2xl w-full max-w-lg overflow-hidden",children:[x.jsxs("div",{className:"bg-gradient-to-br from-slate-800 to-slate-900 p-6 flex items-start justify-between",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx(zu,{className:"w-4 h-4 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-xs font-semibold uppercase tracking-widest",children:"Contributo narrativo"})]}),x.jsx("h3",{className:"text-xl font-serif font-bold text-white",children:"Condividi le tue informazioni"})]}),x.jsx("button",{onClick:()=>t(!1),className:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:x.jsx(ac,{className:"w-4 h-4 text-white"})})]}),x.jsx("div",{className:"p-6",children:l?x.jsxs(Me.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center py-8",children:[x.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-4",children:x.jsx(fi,{className:"w-8 h-8 text-green-500"})}),x.jsx("p",{className:"text-lg font-serif font-bold text-slate-800",children:"Grazie per il tuo contributo!"}),x.jsx("p",{className:"text-slate-500 text-sm mt-2",children:"Le tue informazioni sono state ricevute e verranno considerate per arricchire la storia."})]}):x.jsxs("form",{onSubmit:f,className:"space-y-4",children:[x.jsxs("div",{children:[x.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-1",children:["Il tuo nome ",x.jsx("span",{className:"text-slate-400 font-normal",children:"(opzionale)"})]}),x.jsx("input",{type:"text",value:n.name,onChange:h=>r(p=>({...p,name:h.target.value})),placeholder:"Es. Mario Rossi o Anonimo",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-100 outline-none text-sm transition-all"})]}),x.jsxs("div",{children:[x.jsxs("label",{className:"block text-sm font-medium text-slate-700 mb-1",children:["Il tuo suggerimento o informazione ",x.jsx("span",{className:"text-red-400",children:"*"})]}),x.jsx("textarea",{required:!0,rows:5,value:n.suggestion,onChange:h=>r(p=>({...p,suggestion:h.target.value})),placeholder:"Descrivi un fatto da correggere, un personaggio da aggiungere, un nuovo percorso narrativo, un finale alternativo...",className:"w-full px-4 py-2.5 rounded-xl border border-slate-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-100 outline-none text-sm transition-all resize-none"})]}),x.jsx("button",{type:"submit",disabled:o||!n.suggestion.trim(),className:"w-full flex items-center justify-center gap-2 px-6 py-3 bg-slate-800 hover:bg-slate-700 disabled:opacity-50 text-white font-semibold rounded-xl transition-all duration-300",children:o?x.jsx("span",{className:"animate-pulse",children:"Invio in corso..."}):x.jsxs(x.Fragment,{children:[x.jsx(U_,{className:"w-4 h-4"})," Invia il contributo"]})}),x.jsx("p",{className:"text-xs text-slate-400 text-center",children:"I contributi vengono revisionati dall'autore prima di essere integrati nella storia."})]})})]})})})]})}const jw="https://www.amazon.it/stores/FABIO-CONTE/author/B0FDL4XKCV?ref=ap_rdr&shoppingPortalEnabled=true";function mF(){return x.jsxs(Me.section,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative overflow-hidden rounded-3xl bg-gradient-to-br from-amber-950 via-amber-900 to-slate-900 text-white shadow-2xl",children:[x.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[x.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-amber-400/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),x.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-orange-500/10 rounded-full blur-3xl translate-y-1/2 -translate-x-1/2"}),x.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:"repeating-linear-gradient(45deg, #f59e0b 0, #f59e0b 1px, transparent 0, transparent 50%)",backgroundSize:"20px 20px"}})]}),x.jsxs("div",{className:"relative z-10 p-8 md:p-12",children:[x.jsx("div",{className:"flex items-center gap-2 mb-6",children:x.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-amber-500/20 border border-amber-500/30 rounded-full",children:[x.jsx(a_,{className:"w-3.5 h-3.5 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-xs font-bold uppercase tracking-widest",children:"Autore della storia"})]})}),x.jsxs("div",{className:"flex flex-col lg:flex-row items-start lg:items-center gap-8",children:[x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[x.jsx("div",{className:"w-14 h-14 roun
303ded-2xl bg-amber-500/20 border border-amber-400/30 flex items-center justify-center flex-shrink-0",children:x.jsx(S_,{className:"w-7 h-7 text-amber-400"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-amber-300/70 text-xs font-semibold uppercase tracking-widest",children:"Scritto da"}),x.jsx("h3",{className:"text-2xl md:text-3xl font-serif font-bold text-white",children:"Fabio Conte"})]})]}),x.jsxs("p",{className:"text-amber-100/80 leading-relaxed mb-4 max-w-xl",children:["Dietro a questa storia c'è un autore. ",x.jsx("strong",{className:"text-white",children:"Fabio Conte"})," ha trasformato una vicenda reale e intricata in una narrativa interattiva che mescola politica, identità e potere. Scopri tutti i suoi libri su Amazon e supporta il progetto acquistando la versione cartacea o digitale."]}),x.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[x.jsx("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(e=>x.jsx(Q_,{className:"w-4 h-4 text-amber-400 fill-amber-400"},e))}),x.jsx("span",{className:"text-amber-300/70 text-sm",children:"Autore su Amazon.it"})]}),x.jsx("div",{className:"flex flex-wrap gap-2",children:["Narrativa interattiva","Politica e satira","Storia vera rielaborata","Edizione digitale"].map(e=>x.jsx("span",{className:"px-3 py-1 bg-white/5 border border-white/10 rounded-full text-xs text-amber-200/70",children:e},e))})]}),x.jsx("div",{className:"flex-shrink-0 w-full lg:w-72",children:x.jsxs("div",{className:"bg-white/5 backdrop-blur border border-white/10 rounded-2xl p-6 space-y-4",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500 flex items-center justify-center flex-shrink-0",children:x.jsx(u_,{className:"w-5 h-5 text-white"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-amber-300/60 uppercase tracking-wide font-semibold",children:"Disponibile su"}),x.jsx("p",{className:"font-bold text-white",children:"Amazon.it"})]})]}),x.jsx("p",{className:"text-xs text-amber-200/60 border-t border-white/10 pt-4",children:"Acquista il libro, lascia una recensione e aiuta la storia a raggiungere più lettori."}),x.jsxs("a",{href:jw,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-5 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-bold rounded-xl transition-all duration-300 transform hover:scale-105 shadow-lg text-sm",children:[x.jsx(q_,{className:"w-4 h-4"}),"Acquista su Amazon"]}),x.jsxs("a",{href:jw,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-5 py-2.5 bg-white/5 hover:bg-white/10 border border-white/20 text-white/80 hover:text-white font-medium rounded-xl transition-all duration-300 text-sm",children:[x.jsx(x_,{className:"w-3.5 h-3.5"}),"Profilo autore Amazon"]})]})})]})]})]})}const gF={cap1:"https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?w=800&q=80&auto=format&fit=crop",cap2:"https://images.unsplash.com/photo-1589994965851-a8f47905b262?w=800&q=80&auto=format&fit=crop",cap3:"https://images.unsplash.com/photo-1529107386315-e1a2ed48a620?w=800&q=80&auto=format&fit=crop",cap4_bivio:"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=800&q=80&auto=format&fit=crop",cap4_5:"https://images.unsplash.com/photo-1564507592333-c60657eea523?w=800&q=80&auto=format&fit=crop",cap5_social:"https://images.unsplash.com/photo-1495020689067-167842755f52?w=800&q=80&auto=format&fit=crop",cap5_verifica:"https://images.unsplash.com/photo-1589994965851-a8f47905b262?w=800&q=80&auto=format&fit=crop",cap5_silenzio:"https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=800&q=80&auto=format&fit=crop",cap6:"https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800&q=80&auto=format&fit=crop",cap7_libro:"https://images.unsplash.com/photo-1449157291145-7efd050a4d0e?w=800&q=80&auto=format&fit=crop",finale_stallo:"https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=800&q=80&auto=format&fit=crop"},yF="https://images.unsplash.com/photo-1561553873-e8491a564a0e?w=800&q=80&auto=format&fit=crop";function vF({node:e,index:t,onClick:n}){var o;const r=gF[e.node_id]||yF;return x.jsxs(Me.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.05},className:"bg-white rounded-2xl shadow hover:shadow-2xl transition-all duration-500 border border-slate-100 cursor-pointer group overflow-hidden",onClick:n,children:[x.jsxs("div",{className:"relative h-44 sm:h-48 bg-slate-800 overflow-hidden",children:[x.jsx(Me.img,{src:r,alt:`Capitolo ${e.chapter_number}: ${e.title}`,loading:"lazy",initial:{opacity:0}
303,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/70 via-slate-900/10 to-transparent"}),x.jsx("div",{className:"absolute top-3 left-3",children:x.jsx("div",{className:"w-9 h-9 rounded-xl bg-slate-900/80 backdrop-blur-sm border border-white/10 flex items-center justify-center shadow",children:x.jsx("span",{className:"text-white font-bold text-sm",children:e.chapter_number})})}),e.is_choice_node&&x.jsx("div",{className:"absolute top-3 right-3",children:x.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-amber-500/90 backdrop-blur-sm rounded-full shadow",children:[x.jsx(Zs,{className:"w-3 h-3 text-white"}),x.jsx("span",{className:"text-white text-[10px] font-bold",children:"BIVIO"})]})}),x.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-3",children:x.jsx("h3",{className:"text-white font-serif font-bold text-sm sm:text-base leading-snug drop-shadow-lg",style:{fontFamily:"'Playfair Display', serif"},children:e.title})})]}),x.jsxs("div",{className:"p-4 sm:p-5",children:[e.subtitle&&x.jsx("p",{className:"text-amber-600 text-xs italic mb-2 font-medium",children:e.subt
303itle}),x.jsxs("p",{className:"text-slate-600 text-sm line-clamp-2 leading-relaxed",children:[(o=e.content)==null?void 0:o.substring(0,110),"â¦"]})]})]})}const xF=[{id:"act1",act:"Atto I",title:"La Nascita del Complotto",subtitle:"Dalla frustrazione all'inganno",image:"https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?w=1200&q=80&auto=format&fit=crop",description:"Un impiegato frustrato. Un nuovo Premier con un cognome curioso. Due leader che si stringono la mano dall'altra parte dell'oceano. E una mail che cambierà tutto. Quando Frank decide di documentare i suoi guai in un libro, non sa ancora di stare costruendo l'arma che distruggerà un Presidente.",tags:["Frank","Il Premier","Presidente Roland"]},{id:"act2",act:"Atto II",title:"Il Colore Come Arma",subtitle:"Dalla rivoluzione all'impeachment",image:"https://images.unsplash.com/photo-1564507592333-c60657eea523?w=1200&q=80&auto=format&fit=crop",description:"Per la prima volta in 150 anni, il Congresso destituisce il proprio Speaker. Nel caos, Jorel dei DEM coglie l'occasione perfetta: il blu dei marchi di Frank diventa la prova decisiva. L'impeachment del Presidente Roland ha inizio, e Frank si ritrova invischiato in un gioco più grande di lui.",tags:["Jorel","Il Blu","Impeachment"]},{id:"act3",act:"Atto III",title:"Lo Scudo di Mosca",subtitle:"La vendetta e lo stallo perfetto",image:"https://images.unsplash.com/photo-1513326738677-b964603b136d?w=1200&q=80&auto=format&fit=crop",description:"Anticipando la vendetta di Roland, Frank pubblica un libro ambientato a Mosca dove il Presidente è ritratto come originario di quella città . Una mossa geniale: Roland non può accusare Frank senza accusare indirettamente Mosca. Da quel momento, tutto diventa ultracomplesso. Le tue scelte determineranno il finale.",tags:["Il Libro","Mosca","Lo Stallo"]}];function wF(){const[e,t]=F.useState(null);return x.jsxs("section",{className:"mb-24",children:[x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-slate-900 rounded-full mb-4",children:[x.jsx(E_,{className:"w-4 h-4 text-amber-400"}),x.jsx("span",{className:"text-amber-400 text-sm font-medium",children:"Trailer"})]}),x.jsx("h2",{className:"text-3xl sm:text-4xl font-serif font-bold text-slate-800",style:{fontFamily:"'Playfair Display', serif"},children:"I Tre Atti della Storia"}),x.jsx("p",{className:"text-slate-500 mt-2 text-sm sm:text-base px-4",children:"Un'anteprima cinematografica del viaggio che ti aspetta."})]}),x.jsx("div",{className:"space-y-4 sm:space-y-6",children:xF.map((n,r)=>x.jsx(Me.div,{initial:{opacity:0,x:r%2===0?-50:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:r*.15},className:`relative overflow-hidden rounded-2xl sm:rounded-3xl shadow-xl cursor-pointer group ${r%2===0?"md:ml-0":"md:mr-0"}`,onClick:()=>t(n),children:x.jsxs("div",{className:"relative h-56 sm:h-72 md:h-80 overflow-hidden",children:[x.jsx("img",{src:n.image,alt:n.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-900/90 via-slate-900/60 to-transparent"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/80 to-transparent"}),x.jsx("div",{className:"absolute inset-0 flex flex-col justify-center p-6 sm:p-10 md:p-12",children:x.jsxs("div",{className:"max-w-lg",children:[x.jsx("span",{className:"inline-block px-3 py-1 bg-amber-500/20 border border-amber-500/40 rounded-full text-amber-400 text-xs font-bold uppercase tracking-widest mb-3",children:n.act}),x.jsx("h3",{className:"text-2xl sm:text-3xl md:text-4xl font-serif font-bold text-white mb-2",style:{fontFamily:"'Playfair Display', serif"},children:n.title}),x.jsx("p",{className:"text-blue-200/70 italic text-sm sm:text-base mb-4",children:n.subtitle}),x.jsxs("div",{className:"flex items-center gap-2 text-amber-400 group-hover:text-amber-300 transition-colors",children:[x.jsx(lp,{className:"w-4 h-4 sm:w-5 sm:h-5 fill-amber-400 group-hover:fill-amber-300"}),x.jsx("span",{className:"text-sm font-semibold",children:"Scopri di più"})]})]})})]})},n.id))}),x.jsx(ts,{children:e&&x.jsx(Me.div,{initial:{opacity:0}
303,animate:{opacity:1},exit:{opacity:0},onClick:()=>t(null),className:"fixed inset-0 z-50 bg-slate-900/95 backdrop-blur-sm flex items-center justify-center p-4 sm:p-6 overflow-y-auto",children:x.jsxs(Me.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{duration:.3},onClick:n=>n.stopPropagation(),className:"bg-[#faf8f5] rounded-2xl sm:rounded-3xl shadow-2xl overflow-hidden max-w-2xl w-full my-8",children:[x.jsxs("div",{className:"relative h-48 sm:h-64 overflow-hidden",children:[x.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900 to-transparent"}),x.jsx("button",{onClick:()=>t(null),className:"absolute top-4 right-4 w-10 h-10 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors",children:x.jsx(ac,{className:"w-5 h-5 text-white"})}),x.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[x.jsx("span",{className:"inline-block px-3 py-1 bg-amber-500/20 border border-amber-500/40 rounded-full text-amber-300 text-xs font-bold uppercase tracking-widest mb-2",children:e.act}),x.jsx("h3",{className:"text-2xl sm:text-3xl font-serif font-bold text-white",style:{fontFamily:"'Playfair Display', serif"},children:e.title})]})]}),x.jsxs("div",{className:"p-6 sm:p-8",children:[x.jsx("p",{className:"text-slate-700 leading-relaxed text-sm sm:text-base mb-4",children:e.description}),x.jsx("div",{className:"flex flex-wrap gap-2",children:e.tags.map(n=>x.jsx("span",{className:"px-3 py-1 bg-slate-100 text-slate-600 rounded-full text-xs font-medium",children:n},n))})]})]})})})]})}const Ow=[{period:"L'Inizio",title:"Le difficoltà in azienda",description:"Frank affronta crescenti difficoltà lavorative nella sua azienda. La frustrazione lo spinge a documentare tutto in un libro, creando svariati marchi per proteggersi.",image:"https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?w=600&q=80&auto=format&fit=crop"},{period:"La Coincidenza",title:"L'elezione del Premier",description:"Viene eletto un nuovo Premier che condivide una curiosa affinità di cognome con Frank. Una coincidenza che cambierà tutto.",image:"https://images.unsplash.com/photo-1589994965851-a8f47905b262?w=600&q=80&auto=format&fit=crop"},{period:"L'Alleanza",title:"Il Premier e il Presidente Roland",description:"Il Premier e il Presidente americano Roland diventano confidenti. I marchi di Frank iniziano a prendere vita, almeno a livello di marketing.",image:"https://images.unsplash.com/photo-1529107386315-e1a2ed48a620?w=600&q=80&auto=format&fit=crop"},{period:"L'Inganno",title:"La mail di Jorel",description:"Jorel dei DEM invia una mail a Frank fingendosi il Presidente Roland. Frank ci casca in pieno, ignaro delle conseguenze.",image:"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=600&q=80&auto=format&fit=crop"},{period:"Il Caos",title:"La Rivoluzione al Congresso",description:"Per la prima volta in 150 anni, la Camera dei Rappresentanti destituisce il proprio Speaker. Un Congresso in fiamme indebolisce Roland, e Jorel coglie l'occasione: usa il blu del marchio di Frank come arma politica.",image:"https://images.unsplash.com/photo-1564507592333-c60657eea523?w=600&q=80&auto=format&fit=crop"},{period:"Lo Scandalo",title:"L'Impeachment",description:"Il colore blu del marchio di Frank viene usato come 'prova'. L'impeachment del Presidente Roland ha inizio.",image:"https://images.unsplash.com/photo-1531492746076-161ca9bcad58?w=600&q=80&auto=format&fit=crop"},{period:"La Difesa",title:"Il libro di Mosca",description:"Anticipando la vendetta di Roland, Frank pubblica un libro ambientato a Mosca dove Roland è ritratto come originario di quella città .",image:"https://images.unsplash.com/photo-1449157291145-7efd050a4d0e?w=600&q=80&auto=format&fit=crop"},{period:"Lo Stallo",title:"Lo scudo perfetto",description:"Roland non può accusare Frank senza accusare indirettamente Mosca. Da quel momento, tutto diventa ultracomplesso...",image:"https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=600&q=80&auto=format&fit=crop"}],bF="https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1200&q=80&auto=format&fit=crop";function SF(){const[e,t]=F.useState(null),[n,r]=F.useState([]),o=F.useRef(null),{data:a=[]}=$u({queryKey:["story_nodes"],queryFn:()=>Ln.entities.StoryNode.list("chapter_number")}),{data:l=[]}=$u({queryKey:["characters"],queryFn:()=>Ln.entities.Character.list()}),c=()=>{var P;(P=o.current)==null||P.scrollIntoView({behavior:"smooth"})},f=P=>a.find(T=>T.node_id===P),h=()=>{const P=a.find(T=>T.chapter_number===1&&(T.path_tag==="main"||!T.path_tag));P&&(r([P]),t(P))},p=P=>{const T=f(P.next_node_id);T&&(r(N=>[...N,T]),t(T))},g=()=>{r([]),t(null),h()},v=()=>{t(null),r([])},[w,_]=F.useState(6),C=F.useRef(null),k=a.filter(P=>P.path_tag==="main"||!P.path_tag),b=k.slice(0,w);return F.useEffect(()=>{if(!C.current)return;const P=new IntersectionObserver(T=>{T[0].isIntersecting&&w<k.length&&_(N=>Math.min(N+6,k.length))},{threshold:.1});return P.observe(C.current),()=>P.disconnect()},[w,k.length]),x.jsxs("div",{className:"min-h-screen bg-[#faf8f5]",children:[x.jsx(UI,{onScrollDown:c}),x.jsxs("div",{ref:o,className:"max-w-7xl mx-auto px-4 sm:px-6 py-16 sm:py-20",children:[x.jsxs(Me.section,{initial:{opacity:0}
303,whileInView:{opacity:1},viewport:{once:!0},className:"mb-24",children:[x.jsxs("div",{className:"relative h-48 sm:h-64 rounded-2xl sm:rounded-3xl overflow-hidden mb-10 shadow-xl",children:[x.jsx("img",{src:bF,alt:"Il Colore della Verità ",className:"w-full h-full object-cover",loading:"lazy"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/80 via-slate-900/30 to-transparent"}),x.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 sm:p-8",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 bg-amber-500/20 border border-amber-500/40 rounded-full mb-3",children:[x.jsx(fi,{className:"w-3.5 h-3.5 text-amber-400"}),x.jsx("span",{className:"text-amber-300 text-xs font-medium",children:"Il Colore della Verità "})]}),x.jsx("p",{className:"text-white/90 text-sm sm:text-lg max-w-2xl font-light italic",children:'"Ogni storia ha un inizio. Ogni inizio nasconde una verità ."'})]})]}),x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-amber-100 rounded-full mb-4",children:[x.jsx(fi,{className:"w-4 h-4 text-amber-600"}),x.jsx("span",{className:"text-amber-700 text-sm font-medium",children:"Prologo"})]}),x.jsxs("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-serif font-bold text-slate-800 mb-6",style:{fontFamily:"'Playfair Display', serif"},children:["Una storia di ",x.jsx("span",{className:"text-amber-600",children:"potere"})," e ",x.jsx("span",{className:"text-blue-600",children:"colori"})]}),x.jsxs("p",{className:"text-lg sm:text-xl text-slate-600 max-w-3xl mx-auto leading-relaxed mb-8 sm:mb-10 px-2",children:["Tutto iniziò con una semplice frustrazione lavorativa. Ma quando i destini di un impiegato, un Premier e un Presidente americano si intrecciano, nulla rimane semplice. Questa è la storia di come il ",x.jsx("span",{className:"text-blue-600 font-semibold",children:"blu"})," divenne un'arma, e un libro divenne uno scudo."]}),x.jsx("p",{className:"text-slate-500 mb-6 italic",children:"Le tue scelte determinano il finale."}),a.length>0&&x.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[x.jsxs("button",{onClick:h,className:"inline-flex items-center gap-3 px-10 py-4 bg-gradient-to-r from-slate-800 to-slate-900 hover:from-slate-700 hover:to-slate-800 text-white font-semibold rounded-2xl transition-all duration-300 transform hover:scale-105 shadow-xl",children:[x.jsx(lp,{className:"w-5 h-5 fill-white"}),"Inizia l'Avventura"]}),x.jsxs(nk,{to:rk("StoryMap"),className:"inline-flex items-center gap-3 px-8 py-4 border-2 border-slate-300 hover:border-amber-400 text-slate-700 hover:text-amber-600 font-semibold rounded-2xl transition-all duration-300",children:[x.jsx(j_,{className:"w-5 h-5"}),"Mappa Narrativa"]})]})]})]}),x.jsx(wF,{}),x.jsxs("section",{className:"mb-24",children:[x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-slate-100 rounded-full mb-4",children:[x.jsx(g_,{className:"w-4 h-4 text-slate-600"}),x.jsx("span",{className:"text-slate-700 text-sm font-medium",children:"Cronologia"})]}),x.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-serif font-bold text-slate-800",style:{fontFamily:"'Playfair Display', serif"},children:"Gli Eventi Chiave"})]}),x.jsx("div",{className:"space-y-8",children:Ow.map((P,T)=>x.jsx($I,{event:P,index:T,isLast:T===Ow.length-1},T))})]}),x.jsxs("section",{className:"mb-24",children:[x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full mb-4",children:[x.jsx(Xi,{className:"w-4 h-4 text-blue-600"}),x.jsx("span",{className:"text-blue-700 text-sm font-medium",children:"La Trama Principale"})]}),x.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-serif font-bold text-slate-800",style:{fontFamily:"'Playfair Display', serif"},children:"I Capitoli"}),x.jsx("p",{className:"text-slate-500 mt-2",children:"Ogni capitolo nasconde un bivio. Le tue scelte apriranno percorsi diversi."})]}),k.length>0?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.map((P,T)=>x.jsx(vF,{node:P,index:T,onClick:()=>{t(P),r([P])}},P.id))}),w<k.length&&x.jsx("div",{ref:C,className:"flex justify-center mt-8",children:x.jsx("div",{className:"w-6 h-6 rounded-full border-2 border-amber-400 border-t-transparent animate-spin"})})]}):x.jsxs("div",{className:"text-center py-16 bg-white rounded-2xl border border-slate-200",children:[x.jsx(Xi,{className:"w-16 h-16 text-slate-300 mx-auto mb-4"}),x.jsx("p",{className:"text-slate-500",children:"Caricamento capitoli..."})]})]}),x.jsxs("section",{className:"mb-24",children:[x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full mb-4",children:[x.jsx(S0,{className:"w-4 h-4 text-purple-600"}),x.jsx("span",{className:"text-purple-700 text-sm font-medium",children:"Cast"})]}),x.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-serif font-bold text-slate-800",style:{fontFamily:"'Playfair Display', serif"},children:"I Personaggi"})]}),l.length>0?x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map((P,T)=>x.jsx(VI,{character:P,index:T},P.id))}):x.jsxs("div",{className:"text-center py-16 bg-white rounded-2xl border border-slate-200",children:[x.jsx(S0,{className:"w-16 h-16 text-slate-300 mx-auto mb-4"}),x.jsx("p",{className:"text-slate-500",children:"Personaggi in caricamento..."})]})]}),x.jsx("section",{className:"mb-10",children:x.jsx(mF,{})}),x.jsx("section",{className:"mb-24",children:x.jsx(pF,{})}),x.jsxs(Me.section,{initial:{opacity:0}
303,whileInView:{opacity:1},viewport:{once:!0},className:"text-center py-12 sm:py-16 border-t border-slate-200",children:[x.jsx("blockquote",{className:"text-xl sm:text-2xl md:text-3xl font-serif text-slate-700 italic max-w-3xl mx-auto px-4",style:{fontFamily:"'Playfair Display', serif"},children:'"In politica, il colore che scegli può diventare la tua salvezza o la tua condanna."'}),x.jsx("p",{className:"text-slate-500 mt-4",children:"â Dal libro di Frank"})]})]}),e&&x.jsx(zk,{node:e,onClose:v,onChoice:p,onRestart:g,history:n})]})}function kF({node:e}){const[t,n]=F.useState(null),[r,o]=F.useState(!1),[a,l]=F.useState(!1),c=async()=>{var h;if(t){l(p=>!p);return}o(!0),l(!0);const f=await Ln.integrations.Core.InvokeLLM({prompt:`Sei un assistente narrativo. Scrivi una meta-descrizione breve e coinvolgente (max 2 frasi, tono letterario) per questo ${e.is_ending?"finale":"capitolo"} di una storia interattiva intitolata "Il Colore della Verità ": 304 305Titolo: ${e.title} 306${e.subtitle?`Sottotitolo: ${e.subtitle}`:""} 307Contenuto: ${(h=e.content)==null?void 0:h.substring(0,500)} 308 309Scrivi solo la meta-descrizione, senza prefissi o spiegazioni.`});n(f),o(!1)};return x.jsxs("div",{className:"mt-2",children:[x.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 text-xs text-purple-600 hover:text-purple-800 font-medium transition-colors",children:[x.jsx(fi,{className:"w-3 h-3"}),r?"Generando...":t?a?"Nascondi sintesi AI":"Mostra sintesi AI":"Genera sintesi AI",!r&&(a?x.jsx(Xw,{className:"w-3 h-3"}):x.jsx(ip,{className:"w-3 h-3"})),r&&x.jsx(Bu,{className:"w-3 h-3 animate-spin"})]}),x.jsx(ts,{children:a&&x.jsx(Me.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:r?x.jsx("div",{className:"mt-1.5 text-xs text-slate-400 italic animate-pulse",children:"Generazione in corso..."}):x.jsx("div",{className:"mt-1.5 px-3 py-2 bg-purple-50 border border-purple-200 rounded-lg",children:x.jsx("p",{className:"text-xs text-purple-800 italic leading-relaxed",children:t})})})})]})}function EF({nodes:e}){const[t,n]=F.useState(!1),[r,o]=F.useState(!1),[a,l]=F.useState(null),c=async()=>{o(!0),n(!0);const f=e.filter(p=>!p.is_ending).map(p=>`- [${p.node_id}] ${p.title}${p.is_choice_node?" (BIVIO)":""}`).join(` 310`),h=await Ln.integrations.Core.InvokeLLM({prompt:`Sei un consulente narrativo per storie interattive. Analizza questa struttura narrativa di "Il Colore della Verità " (storia di intrighi politici con Frank, un impiegato coinvolto in uno scandalo politico internazionale): 311 312Nodi esistenti: 313${f} 314 315Suggerisci 3 nuovi possibili bivi narrativi o sviluppi di trama che potrebbero arricchire la storia, indicando: 316- Dove si inserirebbe (dopo quale nodo esistente) 317- Il titolo del nuovo bivio/capitolo 318- Le due scelte che l'utente potrebbe fare 319- Una breve descrizione dell'effetto narrativo 320 321Sii creativo, coerente con il tono politico-thriller della storia e suggerisci sviluppi interessanti e originali.`,response_json_schema:{type:"object",properties:{suggestions:{type:"array",items:{type:"object",properties:{insert_after:{type:"string"},title:{type:"string"},description:{type:"string"},choice_a:{type:"string"},choice_b:{type:"string"}}}}}}});l((h==null?void 0:h.suggestions)||[]),o(!1)};return x.jsxs("div",{className:"mt-10",children:[x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[x.jsxs("h2",{className:"text-xl font-serif font-bold text-slate-800 flex items-center gap-2",children:[x.jsx(zu,{className:"w-5 h-5 text-amber-500"}),"Suggerimenti AI per nuovi bivi"]}),x.jsxs("div",{className:"flex gap-2",children:[a&&x.jsxs("button",{onClick:c,disabled:r,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-slate-600 hover:text-slate-800 border border-slate-200 rounded-lg hover:bg-slate-50 transition-all",children:[x.jsx(M_,{className:`w-3 h-3 ${r?"animate-spin":""}`})," Rigenera"]}),!a&&x.jsxs("button",{onClick:c,disabled:r,className:"flex items-center gap-2 px-4 py-2 bg-amber-500 hover:bg-amber-400 text-white text-sm font-semibold rounded-xl transition-all duration-300 transform hover:scale-105 shadow-md disabled:opacity-60",children:[r?x.jsx(Bu,{className:"w-4 h-4 animate-spin"}):x.jsx(zu,{className:"w-4 h-4"}),r?"Analisi in corso...":"Genera suggerimenti AI"]})]})]}),x.jsx(ts,{children:t&&x.jsx(Me.div,{initial:{opacity:0,y:10}
321,animate:{opacity:1,y:0},exit:{opacity:0,y:10},children:r?x.jsxs("div",{className:"flex flex-col items-center py-12 gap-3 bg-white rounded-2xl border border-slate-100",children:[x.jsx(Bu,{className:"w-8 h-8 text-amber-400 animate-spin"}),x.jsx("p",{className:"text-slate-400 text-sm animate-pulse",children:"L'AI sta analizzando la struttura narrativa..."})]}):x.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:a==null?void 0:a.map((f,h)=>x.jsxs(Me.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:h*.1},className:"bg-white rounded-2xl border border-amber-200 p-5 shadow-sm hover:shadow-md transition-all",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[x.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-100 flex items-center justify-center",children:x.jsx(Zs,{className:"w-4 h-4 text-amber-600"})}),x.jsx("span",{className:"text-xs text-amber-600 font-semibold uppercase tracking-wide",children:"Bivio proposto"})]}),x.jsx("h4",{className:"font-serif font-bold text-slate-800 mb-1",children:f.title}),x.jsxs("p",{className:"text-xs text-slate-500 italic mb-3 leading-relaxed",children:["Dopo: ",x.jsx("span",{className:"font-medium text-slate-700",children:f.insert_after})]}),x.jsx("p",{className:"text-sm text-slate-600 leading-relaxed mb-4",children:f.description}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"px-3 py-2 bg-blue-50 border border-blue-200 rounded-lg text-xs text-blue-800",children:[x.jsx("span",{className:"font-semibold",children:"Scelta A:"})," ",f.choice_a]}),x.jsxs("div",{className:"px-3 py-2 bg-purple-50 border border-purple-200 rounded-lg text-xs text-purple-800",children:[x.jsx("span",{className:"font-semibold",children:"Scelta B:"})," ",f.choice_b]})]})]},h))})})})]})}const rc={victory:{icon:up,color:"text-amber-500",bg:"bg-amber-50",border:"border-amber-300",label:"Vittoria"},defeat:{icon:oc,color:"text-red-500",bg:"bg-red-50",border:"border-red-300",label:"Sconfitta"},bittersweet:{icon:op,color:"text-blue-500",bg:"bg-blue-50",border:"border-blue-300",label:"Agrodolce"},mysterious:{icon:sc,color:"text-purple-500",bg:"bg-purple-50",border:"border-purple-300",label:"Misterioso"}},CF={main:{label:"Trama principale",color:"bg-slate-700",text:"text-slate-700",line:"#475569"},path_a:{label:"Percorso A â Imprudenza",color:"bg-blue-600",text:"text-blue-600",line:"#2563eb"},path_b:{label:"Percorso B â Prudenza",color:"bg-amber-500",text:"text-amber-600",line:"#d97706"},path_c:{label:"Percorso C â Silenzio",color:"bg-purple-600",text:"text-purple-600",line:"#9333ea"},ending_a:{label:"Finale A",color:"bg-amber-500",text:"text-amber-600",line:"#d97706"},ending_b:{label:"Finale B",color:"bg-blue-600",text:"text-blue-600",line:"#2563eb"},ending_c:{label:"Finale C",color:"bg-purple-600",text:"text-purple-600",line:"#9333ea"}};function _F(e){const t={};e.forEach(a=>{t[a.node_id]=a}),e.filter(a=>a.is_ending);const n=e.find(a=>a.chapter_number===1&&(a.path_tag==="main"||!a.path_tag));if(!n)return[];const r=[];function o(a,l){var p;const c=t[a];if(!c)return;const f=[...l,c];if(c.is_ending){r.push(f);return}const h=[];c.is_choice_node&&((p=c.choices)!=null&&p.length)?c.choices.forEach(g=>{g.next_node_id&&h.push(g.next_node_id)}):c.next_node_id&&h.push(c.next_node_id),h.length===0?r.push(f):h.forEach(g=>o(g,f))}return o(n.node_id,[]),r}function TF({node:e,isChoice:t,discovered:n,onRead:r,highlight:o}){const a=e.is_ending,l=a?rc[e.ending_type]:null,c=l==null?void 0:l.icon;return x.jsxs(Me.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},className:`relative rounded-xl border-2 p-3 cursor-pointer transition-all duration-200 hover:shadow-md select-none w-52 flex-shrink-0 322 ${o?"ring-2 ring-amber-400 ring-offset-1":""} 323 ${a?`${l==null?void 0:l.bg} ${l==null?void 0:l.border}`:t?"bg-amber-50 border-amber-300":"bg-white border-slate-200"} 324 `,onClick:()=>r(e),title:"Clicca per leggere",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[a?x.jsx(c,{className:`w-4 h-4 ${l.color} flex-shrink-0`}):t?x.jsx(Zs,{className:"w-4 h-4 text-amber-500 flex-shrink-0"}):x.jsx(Xi,{className:"w-4 h-4 text-slate-400 flex-shrink-0"}),x.jsx("span",{className:"text-xs font-semibold text-slate-400",children:a?l==null?void 0:l.label:`Cap. ${e.chapter_number}`}),t&&!a&&x.jsx("span",{className:"ml-auto text-[10px] px-1.5 py-0.5 bg-amber-200 text-amber-700 rounded-full font-bold",children:"BIVIO"})]}),x.jsx("p",{className:`text-sm font-serif font-semibold leading-tight line-clamp-2 ${a?l==null?void 0:l.color.replace("text-","text-"):"text-slate-800"}`,children:e.title}),e.subtitle&&x.jsx("p",{className:"text-xs text-slate-400 italic mt-0.5 line-clamp-1",children:e.subt
324itle}),x.jsxs("div",{className:"mt-2 flex items-center gap-1",children:[x.jsx(ap,{className:"w-3 h-3 text-slate-300"}),x.jsx("span",{className:"text-[10px] text-slate-300",children:"Leggi"})]}),x.jsx("div",{onClick:f=>f.stopPropagation(),children:x.jsx(kF,{node:e})})]})}function PF({path:e,pathIndex:t,onRead:n}){var a,l;const r=e[e.length-1],o=rc[r==null?void 0:r.ending_type];return x.jsxs("div",{className:"mb-8",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[x.jsx("div",{className:`w-3 h-3 rounded-full ${((l=CF[(a=e[0])==null?void 0:a.path_tag])==null?void 0:l.color)||"bg-slate-400"}`}),x.jsxs("span",{className:"text-sm font-semibold text-slate-500",children:["Percorso ",t+1,o&&x.jsxs("span",{className:`ml-2 ${o.color}`,children:["â ",o.label]})]})]}),x.jsx("div",{className:"flex items-start gap-0 overflow-x-auto pb-2",children:e.map((c,f)=>{var w;const h=f===e.length-1,p=e[f+1],g=c.is_choice_node,v=g&&p?(w=c.choices)==null?void 0:w.find(_=>_.next_node_id===p.node_id):null;return x.jsxs("div",{className:"flex items-center flex-shrink-0",children:[x.jsx(TF,{node:c,isChoice:g,onRead:n}),!h&&x.jsx("div",{className:"flex flex-col items-center mx-1 flex-shrink-0",children:v?x.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[x.jsx("div",{className:"w-8 h-px bg-amber-400"}),x.jsx("span",{className:"text-[9px] text-amber-600 font-medium max-w-[80px] text-center leading-tight line-clamp-2",children:v.label}),x.jsx("div",{className:"w-8 h-px bg-amber-400"})]}):x.jsxs("div",{className:"flex items-center gap-0.5",children:[x.jsx("div",{className:"w-6 h-px bg-slate-300"}),x.jsx(sp,{className:"w-3 h-3 text-slate-300"})]})})]},c.node_id+"_"+f)})})]})}function RF(){const[e,t]=F.useState(null),[n,r]=F.useState([]),{data:o=[],isLoading:a}=$u({queryKey:["story_nodes"],queryFn:()=>Ln.entities.StoryNode.list("chapter_number")}),l=F.useMemo(()=>_F(o),[o]),c=F.useMemo(()=>{const v={};return o.forEach(w=>{v[w.node_id]=w}),v},[o]),f=o.filter(v=>v.is_ending),h=v=>{r([v]),t(v)},p=v=>{const w=c[v.next_node_id];w&&(r(_=>[..._,w]),t(w))},g=()=>{const v=o.find(w=>w.chapter_number===1);v&&(r([v]),t(v))};return x.jsxs("div",{className:"min-h-screen bg-[#faf8f5]",children:[x.jsx("div",{className:"bg-gradient-to-br from-slate-900 via-blue-950 to-slate-900 text-white px-6 py-12",children:x.jsxs("div",{className:"max-w-7xl mx-auto",children:[x.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[x.jsxs(nk,{to:rk("Home"),className:"flex items-center gap-1 text-white/50 hover:text-white/80 text-sm transition-colors",children:[x.jsx(Yw,{className:"w-4 h-4"})," Home"]}),x.jsx(sp,{className:"w-3 h-3 text-white/30"}),x.jsx("span",{className:"text-white/80 text-sm",children:"Mappa Narrativa"})]}),x.jsxs("div",{className:"flex items-start gap-4 mt-6",children:[x.jsx("div",{className:"w-14 h-14 rounded-2xl bg-amber-500/20 border border-amber-500/30 flex items-center justify-center",children:x.jsx(Zs,{className:"w-7 h-7 text-amber-400"})}),x.jsxs("div",{children:[x.jsx("h1",{className:"text-3xl md:text-4xl font-serif font-bold",children:"Mappa Narrativa"}),x.jsx("p",{className:"text-blue-200/70 mt-1",children:"Esplora tutti i percorsi, i bivi e i finali della storia."})]})]}),!a&&x.jsx("div",{className:"flex flex-wrap gap-6 mt-8",children:[{label:"Capitoli totali",value:o.filter(v=>!v.is_ending).length},{label:"Bivi narrativi",value:o.filter(v=>v.is_choice_node).length},{label:"Percorsi distinti",value:l.length},{label:"Finali alternativi",value:f.length}].map(v=>x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-2xl font-bold text-amber-400",children:v.value}),x.jsx("div",{className:"text-xs text-white/50",children:v.label})]},v.label))})]})}),x.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-10",children:[x.jsxs("div",{className:"flex flex-wrap gap-4 mb-8 p-4 bg-white rounded-2xl border border-slate-100 shadow-sm",children:[x.jsx("span",{className:"text-xs text-slate-500 font-semibold uppercase tracking-wider self-center mr-2",children:"Legenda"}),[{icon:Xi,color:"text-slate-400",label:"Capitolo"},{icon:Zs,color:"text-amber-500",label:"Bivio"},{icon:up,color:"text-amber-500",label:"Vittoria"},{icon:oc,color:"text-red-500",label:"Sconfitta"},{icon:op,color:"text-blue-500",label:"Agrodolce"},{icon:sc,color:"text-purple-500",label:"Misterioso"}].map(({icon:v,color:w,label:_})=>x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx(v,{className:`w-4 h-4 ${w}`}),x.jsx("span",{className:"text-xs text-slate-600",children:_})]},_))]}),a?x.jsx("div",{className:"flex items-center justify-center py-24",children:x.jsx("div",{className:"text-slate-400 text-lg animate-pulse",children:"Caricamento mappa..."})}):l.length===0?x.jsx("div",{className:"text-center py-24 text-slate-400",children:"Nessun nodo narrativo trovato."}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"mb-12",children:[x.jsx("h2",{className:"text-xl font-serif font-bold text-slate-800 mb-6",children:"Tutti i percorsi"}),l.map((v,w)=>x.jsx(PF,{path:v,pathIndex:w,onRead:h},w))]}),x.jsx(EF,{nodes:o}),x.jsxs("div",{className:"mt-10",children:[x.jsx("h2",{className:"text-xl font-serif font-bold text-slate-800 mb-6",children:"I Finali"}),x.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:f.map(v=>{var C;const w=rc[v.ending_type]||rc.mysterious,_=w.icon;return x.jsxs(Me.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},onClick:()=>
324h(v),className:`cursor-pointer rounded-2xl border-2 p-5 hover:shadow-lg transition-all duration-200 ${w.bg} ${w.border}`,children:[x.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[x.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center bg-white/70 shadow",children:x.jsx(_,{className:`w-5 h-5 ${w.color}`})}),x.jsxs("div",{children:[x.jsx("span",{className:`text-xs font-bold uppercase tracking-wide ${w.color}`,children:w.label}),x.jsx("p",{className:"text-sm font-serif font-bold text-slate-800 leading-tight",children:v.title})]})]}),x.jsx("p",{className:"text-xs text-slate-500 italic line-clamp-2",children:v.subtitle}),x.jsx("p",{className:"text-xs text-slate-600 mt-2 line-clamp-3",children:(C=v.content)==null?void 0:C.split(` 325`)[0]}),x.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs text-slate-400",children:[x.jsx(ap,{className:"w-3 h-3"})," Leggi questo finale"]})]},v.node_id)})})]})]})]}),e&&x.jsx(zk,{node:e,onClose:()=>t(null),onChoice:p,onRestart:g,history:n})]})}const AF={Home:SF,StoryMap:RF},NF={mainPage:"Home",Pages:AF};function jF({}){var o;const t=Xa().pathname.substring(1),{data:n,isFetched:r}=$u({queryKey:["user"],queryFn:async()=>{try{return{user:await Ln.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return x.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:x.jsx("div",{className:"max-w-md w-full",children:x.jsxs("div",{className:"text-center space-y-6",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),x.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),x.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",x.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&x.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:x.jsxs("div",{className:"flex items-start space-x-3",children:[x.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:x.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),x.jsxs("div",{className:"text-left space-y-1",children:[x.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),x.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),x.jsx("div",{className:"pt-6",children:x.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[x.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Bk=F.createContext(),OF=({children:e})=>{const[t,n]=F.useState(null),[r,o]=F.useState(!1),[a,l]=F.useState(!0),[c,f]=F.useState(!0),[h,p]=F.useState(null),[g,v]=F.useState(null);F.useEffect(()=>{w()},[]);const w=async()=>{var b,P;try{f(!0),p(null);const T=la({baseURL:"/api/apps/public",headers:{"X-App-Id":ca.appId},token:ca.token,interceptResponses:!0});try{const N=await T.get(`/prod/public-settings/by-id/${ca.appId}`);v(N),ca.token?await _():(l(!1),o(!1)),f(!1)}catch(N){if(console.error("App state check failed:",N),N.status===403&&((P=(b=N.data)==null?void 0:b.extra_data)!=null&&P.reason)){const z=N.data.extra_data.reason;p(z==="auth_required"?{type:"auth_required",message:"Authentication required"}:z==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:z,message:N.message})}else p({type:"unknown",message:N.message||"Failed to load app"});f(!1),l(!1)}}catch(T){console.error("Unexpected error:",T),p({type:"unknown",message:T.message||"An unexpected error occurred"}),f(!1),l(!1)}},_=async()=>{try{l(!0);const b=await Ln.auth.me();n(b),o(!0),l(!1)}catch(b){console.error("User auth check failed:",b),l(!1),o(!1),(b.status===401||b.status===403)&&p({type:"auth_required",message:"Authentication required"})}},C=(b=!0)=>{n(null),o(!1),b?Ln.auth.logout(window.location.href):Ln.auth.logout()},k=()=>{Ln.auth.redirectToLogin(window.location.href)};return x.jsx(Bk.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:c,authError:h,appPublicSettings:g,logout:C,navigateToLogin:k,checkAppState:w},children:e})},LF=()=>{const e=F.useContext(Bk);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},IF=()=>x.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:x.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:x.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),x.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),x.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),x.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[x.jsx("p",{children:"If you believe this is an error, you can:"}),x.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[x.jsx("li",{children:"Verify you are logged in with the correct account"}),x.jsx("li",{children:"Contact the app administrator for access"}),x.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:Uk,Layout:Lw,mainPage:DF}=NF,Vk=DF,MF=Uk[Vk],Iw=({children:e,currentPageName:t})=>Lw?x.jsx(Lw,{currentPageName:t,children:e}):x.jsx(x.Fragment,{children:e}),FF=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=LF();if(t||e)return x.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:x.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return x.jsx(IF,{});if(n.type==="auth_required")return r(),null}return x.jsxs(RI,{children:[x.jsx(Mu,{path:"/",element:x.jsx(Iw,{currentPageName:Vk,children:x.jsx(MF,{})})}),Object.entries(Uk).map(([o,a])=>x.jsx(Mu,{path:`/${o}`,element:x.jsx(Iw,{currentPageName:o,children:x.jsx(a,{})})},o)),x.jsx(Mu,{path:"*",element:x.jsx(jF,{})})]})};function zF(){return x.jsx(OF,{children:x.jsxs(xP,{client:NP,children:[x.jsx(DI,{children:x.jsx(FF,{})}),x.jsx(KT,{})]})})}QC.createRoot(document.getElementById("root")).render(x.jsx(zF,{}));
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.