@townco/gui-template 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{acp-sdk-CrAUv_2m.js → acp-sdk-BiGbXeF1.js} +1 -1
- package/dist/assets/{icons-Dn0pjvgj.js → icons-BtPq83UA.js} +1 -1
- package/dist/assets/{index-9OV0HYRI.js → index-BQ9Vy_PH.js} +2 -2
- package/dist/assets/{markdown-CwEbCfit.js → markdown-DP5OEpQP.js} +1 -1
- package/dist/assets/{radix-BPjk4-Jl.js → radix-C1pEulHa.js} +1 -1
- package/dist/assets/react-DWDN8s0r.js +49 -0
- package/dist/assets/vendor-BxtqxsLB.js +48 -0
- package/dist/index.html +7 -7
- package/package.json +3 -3
- package/dist/assets/react-CIcriR6k.js +0 -61
- package/dist/assets/vendor--IKG6KWl.js +0 -48
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{a as F,c as wd,r as V,b as _d,g as Ys,j as I}from"./react-DWDN8s0r.js";var ci={exports:{}},di={};var ro;function Cd(){return ro||(ro=1,(function(e){function t(C,j){var S=C.length;C.push(j);e:for(;0<S;){var X=S-1>>>1,g=C[X];if(0<i(g,j))C[X]=j,C[S]=g,S=X;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var j=C[0],S=C.pop();if(S!==j){C[0]=S;e:for(var X=0,g=C.length,xe=g>>>1;X<xe;){var Te=2*(X+1)-1,m=C[Te],Q=Te+1,oe=C[Q];if(0>i(m,S))Q<g&&0>i(oe,m)?(C[X]=oe,C[Q]=S,X=Q):(C[X]=m,C[Te]=S,X=Te);else if(Q<g&&0>i(oe,S))C[X]=oe,C[Q]=S,X=Q;else break e}}return j}function i(C,j){var S=C.sortIndex-j.sortIndex;return S!==0?S:C.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],d=1,c=null,f=3,p=!1,h=!1,v=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function z(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function N(C){if(v=!1,z(C),!h)if(n(l)!==null)h=!0,k||(k=!0,P());else{var j=n(u);j!==null&&O(N,j.startTime-C)}}var k=!1,$=-1,R=5,U=-1;function w(){return b?!0:!(e.unstable_now()-U<R)}function M(){if(b=!1,k){var C=e.unstable_now();U=C;var j=!0;try{e:{h=!1,v&&(v=!1,_($),$=-1),p=!0;var S=f;try{t:{for(z(C),c=n(l);c!==null&&!(c.expirationTime>C&&w());){var X=c.callback;if(typeof X=="function"){c.callback=null,f=c.priorityLevel;var g=X(c.expirationTime<=C);if(C=e.unstable_now(),typeof g=="function"){c.callback=g,z(C),j=!0;break t}c===n(l)&&r(l),z(C)}else r(l);c=n(l)}if(c!==null)j=!0;else{var xe=n(u);xe!==null&&O(N,xe.startTime-C),j=!1}}break e}finally{c=null,f=S,p=!1}j=void 0}}finally{j?P():k=!1}}}var P;if(typeof x=="function")P=function(){x(M)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Z=W.port2;W.port1.onmessage=M,P=function(){Z.postMessage(null)}}else P=function(){y(M,0)};function O(C,j){$=y(function(){C(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var S=f;f=j;try{return C()}finally{f=S}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(C,j){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var S=f;f=C;try{return j()}finally{f=S}},e.unstable_scheduleCallback=function(C,j,S){var X=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?X+S:X):S=X,C){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=S+g,C={id:d++,callback:j,priorityLevel:C,startTime:S,expirationTime:g,sortIndex:-1},S>X?(C.sortIndex=S,t(u,C),n(l)===null&&C===n(u)&&(v?(_($),$=-1):v=!0,O(N,S-X))):(C.sortIndex=g,t(l,C),h||p||(h=!0,k||(k=!0,P()))),C},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(C){var j=f;return function(){var S=f;f=j;try{return C.apply(this,arguments)}finally{f=S}}}})(di)),di}var io;function X_(){return io||(io=1,ci.exports=Cd()),ci.exports}const ao=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const f=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,i,s);return s},Sd=(e=>e?ao(e):ao),Ed=e=>e;function Td(e,t=Ed){const n=F.useSyncExternalStore(e.subscribe,F.useCallback(()=>t(e.getState()),[e,t]),F.useCallback(()=>t(e.getInitialState()),[e,t]));return F.useDebugValue(n),n}const oo=e=>{const t=Sd(e),n=r=>Td(t,r);return Object.assign(n,t),n},Q_=(e=>e?oo(e):oo);function A(e,t,n){function r(s,l){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const d in o.prototype)d in s||Object.defineProperty(s,d,{value:o.prototype[d].bind(s)});s._zod.constr=o,s._zod.def=l}const i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(s){var l;const u=n?.Parent?new a:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}class yn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ks extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Gs={};function Vt(e){return Gs}function Ad(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Li(e,t){return typeof t=="bigint"?t.toString():t}function Wr(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function pa(e){return e==null}function ha(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function zd(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const a=n>i?n:i,o=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return o%s/10**a}const so=Symbol("evaluating");function ke(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==so)return r===void 0&&(r=so,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function an(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function on(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function lo(e){return JSON.stringify(e)}const Xs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function qn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Id=Wr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xn(e){if(qn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(qn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Qs(e){return xn(e)?{...e}:Array.isArray(e)?[...e]:e}const Nd=new Set(["string","number","symbol"]);function kn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Jt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Rd(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Od={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function jd(e,t){const n=e._zod.def,r=on(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return an(this,"shape",i),i},checks:[]});return Jt(e,r)}function Pd(e,t){const n=e._zod.def,r=on(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return an(this,"shape",i),i},checks:[]});return Jt(e,r)}function Dd(e,t){if(!xn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=on(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a},checks:[]});return Jt(e,i)}function Ld(e,t){if(!xn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r},checks:e._zod.def.checks};return Jt(e,n)}function $d(e,t){const n=on(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Jt(e,n)}function Md(e,t,n){const r=on(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return an(this,"shape",a),a},checks:[]});return Jt(t,r)}function Fd(e,t,n){const r=on(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return an(this,"shape",a),a},checks:[]});return Jt(t,r)}function mn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function gn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function fr(e){return typeof e=="string"?e:e?.message}function Ut(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=fr(e.inst?._zod.def?.error?.(e))??fr(t?.error?.(e))??fr(n.customError?.(e))??fr(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ma(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const el=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Li,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tl=A("$ZodError",el),nl=A("$ZodError",el,{Parent:Error});function Zd(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Bd(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>r({issues:o}));else if(a.code==="invalid_key")r({issues:a.issues});else if(a.code==="invalid_element")r({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let o=n,s=0;for(;s<a.path.length;){const l=a.path[s];s===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(t(a))):o[l]=o[l]||{_errors:[]},o=o[l],s++}}};return r(e),n}const ga=e=>(t,n,r,i)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new yn;if(o.issues.length){const s=new(i?.Err??e)(o.issues.map(l=>Ut(l,a,Vt())));throw Xs(s,i?.callee),s}return o.value},ya=e=>async(t,n,r,i)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new(i?.Err??e)(o.issues.map(l=>Ut(l,a,Vt())));throw Xs(s,i?.callee),s}return o.value},qr=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new yn;return a.issues.length?{success:!1,error:new(e??tl)(a.issues.map(o=>Ut(o,i,Vt())))}:{success:!0,data:a.value}},Vd=qr(nl),Jr=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>Ut(o,i,Vt())))}:{success:!0,data:a.value}},Ud=Jr(nl),Hd=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ga(e)(t,n,i)},Wd=e=>(t,n,r)=>ga(e)(t,n,r),qd=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ya(e)(t,n,i)},Jd=e=>async(t,n,r)=>ya(e)(t,n,r),Yd=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return qr(e)(t,n,i)},Kd=e=>(t,n,r)=>qr(e)(t,n,r),Gd=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Jr(e)(t,n,i)},Xd=e=>async(t,n,r)=>Jr(e)(t,n,r),Qd=/^[cC][^\s-]{8,}$/,ef=/^[0-9a-z]+$/,tf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nf=/^[0-9a-vA-V]{20}$/,rf=/^[A-Za-z0-9]{27}$/,af=/^[a-zA-Z0-9_-]{21}$/,of=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sf=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,uo=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cf(){return new RegExp(uf,"u")}const df=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ff=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pf=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rl=/^[A-Za-z0-9_-]*$/,gf=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,yf=/^\+(?:[0-9]){6,14}[0-9]$/,il="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vf=new RegExp(`^${il}$`);function al(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bf(e){return new RegExp(`^${al(e)}$`)}function xf(e){const t=al({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${il}T(?:${r})$`)}const kf=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wf=/^-?\d+$/,_f=/^-?\d+(?:\.\d+)?/,Cf=/^(?:true|false)$/i,Sf=/^[^A-Z]*$/,Ef=/^[^a-z]*$/,Je=A("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ol={number:"number",bigint:"bigint",object:"date"},sl=A("$ZodCheckLessThan",(e,t)=>{Je.init(e,t);const n=ol[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ll=A("$ZodCheckGreaterThan",(e,t)=>{Je.init(e,t);const n=ol[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tf=A("$ZodCheckMultipleOf",(e,t)=>{Je.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):zd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Af=A("$ZodCheckNumberFormat",(e,t)=>{Je.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,a]=Od[t.format];e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,s.minimum=i,s.maximum=a,n&&(s.pattern=wf)}),e._zod.check=o=>{const s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),zf=A("$ZodCheckMaxLength",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pa(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const o=ma(i);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),If=A("$ZodCheckMinLength",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pa(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const o=ma(i);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Nf=A("$ZodCheckLengthEquals",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pa(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,a=i.length;if(a===t.length)return;const o=ma(i),s=a>t.length;r.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Yr=A("$ZodCheckStringFormat",(e,t)=>{var n,r;Je.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Rf=A("$ZodCheckRegex",(e,t)=>{Yr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Of=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Sf),Yr.init(e,t)}),jf=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ef),Yr.init(e,t)}),Pf=A("$ZodCheckIncludes",(e,t)=>{Je.init(e,t);const n=kn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Df=A("$ZodCheckStartsWith",(e,t)=>{Je.init(e,t);const n=new RegExp(`^${kn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Lf=A("$ZodCheckEndsWith",(e,t)=>{Je.init(e,t);const n=new RegExp(`.*${kn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),$f=A("$ZodCheckOverwrite",(e,t)=>{Je.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Mf{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
|
+
`).filter(o=>o),i=Math.min(...r.map(o=>o.length-o.trimStart().length)),a=r.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...n,i.join(`
|
|
3
|
+
`))}}const Ff={major:4,minor:1,patch:12},Se=A("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ff;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(o,s,l)=>{let u=mn(o),d;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(o))continue}else if(u)continue;const f=o.issues.length,p=c._zod.check(o);if(p instanceof Promise&&l?.async===!1)throw new yn;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,o.issues.length!==f&&(u||(u=mn(o,f)))});else{if(o.issues.length===f)continue;u||(u=mn(o,f))}}return d?d.then(()=>o):o},a=(o,s,l)=>{if(mn(o))return o.aborted=!0,o;const u=i(s,r,l);if(u instanceof Promise){if(l.async===!1)throw new yn;return u.then(d=>e._zod.parse(d,l))}return e._zod.parse(u,l)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){const u=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(d=>a(d,o,s)):a(u,o,s)}const l=e._zod.parse(o,s);if(l instanceof Promise){if(s.async===!1)throw new yn;return l.then(u=>i(u,r,s))}return i(l,r,s)}}e["~standard"]={validate:i=>{try{const a=Vd(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Ud(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}}),va=A("$ZodString",(e,t)=>{Se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??kf(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ee=A("$ZodStringFormat",(e,t)=>{Yr.init(e,t),va.init(e,t)}),Zf=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=sf),Ee.init(e,t)}),Bf=A("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=uo(r))}else t.pattern??(t.pattern=uo());Ee.init(e,t)}),Vf=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=lf),Ee.init(e,t)}),Uf=A("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:gf.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Hf=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=cf()),Ee.init(e,t)}),Wf=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=af),Ee.init(e,t)}),qf=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Qd),Ee.init(e,t)}),Jf=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ef),Ee.init(e,t)}),Yf=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tf),Ee.init(e,t)}),Kf=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nf),Ee.init(e,t)}),Gf=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rf),Ee.init(e,t)}),Xf=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xf(t)),Ee.init(e,t)}),Qf=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vf),Ee.init(e,t)}),ep=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=bf(t)),Ee.init(e,t)}),tp=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=of),Ee.init(e,t)}),np=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=df),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),rp=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ff),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ip=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pf),Ee.init(e,t)}),ap=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=hf),Ee.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ul(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const op=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=mf),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ul(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function sp(e){if(!rl.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ul(n)}const lp=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=rl),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{sp(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),up=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=yf),Ee.init(e,t)});function cp(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const dp=A("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{cp(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),cl=A("$ZodNumber",(e,t)=>{Se.init(e,t),e._zod.pattern=e._zod.bag.pattern??_f,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),fp=A("$ZodNumber",(e,t)=>{Af.init(e,t),cl.init(e,t)}),pp=A("$ZodBoolean",(e,t)=>{Se.init(e,t),e._zod.pattern=Cf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),hp=A("$ZodAny",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),mp=A("$ZodUnknown",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),gp=A("$ZodNever",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function co(e,t,n){e.issues.length&&t.issues.push(...gn(n,e.issues)),t.value[n]=e.value}const yp=A("$ZodArray",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let o=0;o<i.length;o++){const s=i[o],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?a.push(l.then(u=>co(u,n,o))):co(l,n,o)}return a.length?Promise.all(a).then(()=>n):n}});function Ar(e,t,n,r){e.issues.length&&t.issues.push(...gn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function dl(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=Rd(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fl(e,t,n,r,i,a){const o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(const d of Object.keys(t)){if(s.has(d))continue;if(u==="never"){o.push(d);continue}const c=l.run({value:t[d],issues:[]},r);c instanceof Promise?e.push(c.then(f=>Ar(f,n,d,t))):Ar(c,n,d,t)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const vp=A("$ZodObject",(e,t)=>{if(Se.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=Wr(()=>dl(t));ke(e._zod,"propValues",()=>{const s=t.shape,l={};for(const u in s){const d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const c of d.values)l[u].add(c)}}return l});const i=qn,a=t.catchall;let o;e._zod.parse=(s,l)=>{o??(o=r.value);const u=s.value;if(!i(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const d=[],c=o.shape;for(const f of o.keys){const h=c[f]._zod.run({value:u[f],issues:[]},l);h instanceof Promise?d.push(h.then(v=>Ar(v,s,f,u))):Ar(h,s,f,u)}return a?fl(d,u,s,l,r.value,e):d.length?Promise.all(d).then(()=>s):s}}),bp=A("$ZodObjectJIT",(e,t)=>{vp.init(e,t);const n=e._zod.parse,r=Wr(()=>dl(t)),i=f=>{const p=new Mf(["shape","payload","ctx"]),h=r.value,v=x=>{const z=lo(x);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};p.write("const input = payload.value;");const b=Object.create(null);let y=0;for(const x of h.keys)b[x]=`key_${y++}`;p.write("const newResult = {};");for(const x of h.keys){const z=b[x],N=lo(x);p.write(`const ${z} = ${v(x)};`),p.write(`
|
|
4
|
+
if (${z}.issues.length) {
|
|
5
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
6
|
+
...iss,
|
|
7
|
+
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
8
|
+
})));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if (${z}.value === undefined) {
|
|
13
|
+
if (${N} in input) {
|
|
14
|
+
newResult[${N}] = undefined;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
newResult[${N}] = ${z}.value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");const _=p.compile();return(x,z)=>_(f,x,z)};let a;const o=qn,s=!Gs.jitless,u=s&&Id.value,d=t.catchall;let c;e._zod.parse=(f,p)=>{c??(c=r.value);const h=f.value;return o(h)?s&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=i(t.shape)),f=a(f,p),d?fl([],h,f,p,c,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function fo(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!mn(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(o=>Ut(o,r,Vt())))}),t)}const pl=A("$ZodUnion",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ke(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ke(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ke(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>ha(a.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)s.push(u),o=!0;else{if(u.issues.length===0)return u;s.push(u)}}return o?Promise.all(s).then(l=>fo(l,i,e,a)):fo(s,i,e,a)}}),xp=A("$ZodDiscriminatedUnion",(e,t)=>{pl.init(e,t);const n=e._zod.parse;ke(e._zod,"propValues",()=>{const i={};for(const a of t.options){const o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[s,l]of Object.entries(o)){i[s]||(i[s]=new Set);for(const u of l)i[s].add(u)}}return i});const r=Wr(()=>{const i=t.options,a=new Map;for(const o of i){const s=o._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,o)}}return a});e._zod.parse=(i,a)=>{const o=i.value;if(!qn(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;const s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),kp=A("$ZodIntersection",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),o=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([l,u])=>po(n,l,u)):po(n,a,o)}});function $i(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xn(e)&&xn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const o=$i(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],o=$i(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function po(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),mn(e))return e;const r=$i(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const wp=A("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!xn(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const a=[];if(t.keyType._zod.values){const o=t.keyType._zod.values;n.value={};for(const l of o)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?a.push(u.then(d=>{d.issues.length&&n.issues.push(...gn(l,d.issues)),n.value[l]=d.value})):(u.issues.length&&n.issues.push(...gn(l,u.issues)),n.value[l]=u.value)}let s;for(const l in i)o.has(l)||(s=s??[],s.push(l));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(const o of Reflect.ownKeys(i)){if(o==="__proto__")continue;const s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(u=>Ut(u,r,Vt())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:i[o],issues:[]},r);l instanceof Promise?a.push(l.then(u=>{u.issues.length&&n.issues.push(...gn(o,u.issues)),n.value[s.value]=u.value})):(l.issues.length&&n.issues.push(...gn(o,l.issues)),n.value[s.value]=l.value)}}return a.length?Promise.all(a).then(()=>n):n}}),_p=A("$ZodEnum",(e,t)=>{Se.init(e,t);const n=Ad(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Nd.has(typeof i)).map(i=>typeof i=="string"?kn(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:e}),i}}),Cp=A("$ZodLiteral",(e,t)=>{if(Se.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?kn(n):n?kn(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),Sp=A("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ks(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new yn;return n.value=i,n}});function ho(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ep=A("$ZodOptional",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ha(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>ho(a,n.value)):ho(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Tp=A("$ZodNullable",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ha(n.source)}|null)$`):void 0}),ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ap=A("$ZodDefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>mo(a,t)):mo(i,t)}});function mo(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const zp=A("$ZodPrefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ip=A("$ZodNonOptional",(e,t)=>{Se.init(e,t),ke(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>go(a,e)):go(i,e)}});function go(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Np=A("$ZodCatch",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>Ut(o,r,Vt()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>Ut(a,r,Vt()))},input:n.value}),n.issues=[]),n)}}),Rp=A("$ZodPipe",(e,t)=>{Se.init(e,t),ke(e._zod,"values",()=>t.in._zod.values),ke(e._zod,"optin",()=>t.in._zod.optin),ke(e._zod,"optout",()=>t.out._zod.optout),ke(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(o=>pr(o,t.in,r)):pr(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>pr(a,t.out,r)):pr(i,t.out,r)}});function pr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Op=A("$ZodReadonly",(e,t)=>{Se.init(e,t),ke(e._zod,"propValues",()=>t.innerType._zod.propValues),ke(e._zod,"values",()=>t.innerType._zod.values),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(yo):yo(i)}});function yo(e){return e.value=Object.freeze(e.value),e}const jp=A("$ZodCustom",(e,t)=>{Je.init(e,t),Se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>vo(a,n,r,e));vo(i,n,r,e)}});function vo(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Jn(i))}}class Pp{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Dp(){return new Pp}const hr=Dp();function Lp(e,t){return new e({type:"string",...G(t)})}function $p(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function bo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function Mp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function Fp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function Zp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function Bp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function Vp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function Up(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function Hp(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function Wp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function qp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function Jp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function Yp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function Kp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function Gp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function Xp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function Qp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function eh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function th(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function nh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function rh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function ih(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function ah(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function oh(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function sh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function lh(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function uh(e,t){return new e({type:"number",checks:[],...G(t)})}function ch(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function dh(e,t){return new e({type:"boolean",...G(t)})}function fh(e){return new e({type:"any"})}function ph(e){return new e({type:"unknown"})}function hh(e,t){return new e({type:"never",...G(t)})}function xo(e,t){return new sl({check:"less_than",...G(t),value:e,inclusive:!1})}function fi(e,t){return new sl({check:"less_than",...G(t),value:e,inclusive:!0})}function ko(e,t){return new ll({check:"greater_than",...G(t),value:e,inclusive:!1})}function pi(e,t){return new ll({check:"greater_than",...G(t),value:e,inclusive:!0})}function wo(e,t){return new Tf({check:"multiple_of",...G(t),value:e})}function hl(e,t){return new zf({check:"max_length",...G(t),maximum:e})}function zr(e,t){return new If({check:"min_length",...G(t),minimum:e})}function ml(e,t){return new Nf({check:"length_equals",...G(t),length:e})}function mh(e,t){return new Rf({check:"string_format",format:"regex",...G(t),pattern:e})}function gh(e){return new Of({check:"string_format",format:"lowercase",...G(e)})}function yh(e){return new jf({check:"string_format",format:"uppercase",...G(e)})}function vh(e,t){return new Pf({check:"string_format",format:"includes",...G(t),includes:e})}function bh(e,t){return new Df({check:"string_format",format:"starts_with",...G(t),prefix:e})}function xh(e,t){return new Lf({check:"string_format",format:"ends_with",...G(t),suffix:e})}function nr(e){return new $f({check:"overwrite",tx:e})}function kh(e){return nr(t=>t.normalize(e))}function wh(){return nr(e=>e.trim())}function _h(){return nr(e=>e.toLowerCase())}function Ch(){return nr(e=>e.toUpperCase())}function Sh(e,t,n){return new e({type:"array",element:t,...G(n)})}function Eh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function Th(e){const t=Ah(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Jn(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Jn(i))}},e(n.value,n)));return t}function Ah(e,t){const n=new Je({check:"custom",...G(t)});return n._zod.check=e,n}const zh=A("ZodISODateTime",(e,t)=>{Xf.init(e,t),ze.init(e,t)});function Ih(e){return ah(zh,e)}const Nh=A("ZodISODate",(e,t)=>{Qf.init(e,t),ze.init(e,t)});function Rh(e){return oh(Nh,e)}const Oh=A("ZodISOTime",(e,t)=>{ep.init(e,t),ze.init(e,t)});function jh(e){return sh(Oh,e)}const Ph=A("ZodISODuration",(e,t)=>{tp.init(e,t),ze.init(e,t)});function Dh(e){return lh(Ph,e)}const Lh=(e,t)=>{tl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Bd(e,n)},flatten:{value:n=>Zd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Li,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Li,2)}},isEmpty:{get(){return e.issues.length===0}}})},ut=A("ZodError",Lh,{Parent:Error}),$h=ga(ut),Mh=ya(ut),Fh=qr(ut),Zh=Jr(ut),Bh=Hd(ut),Vh=Wd(ut),Uh=qd(ut),Hh=Jd(ut),Wh=Yd(ut),qh=Kd(ut),Jh=Gd(ut),Yh=Xd(ut),Ae=A("ZodType",(e,t)=>(Se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(on(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>Jt(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>$h(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Fh(e,n,r),e.parseAsync=async(n,r)=>Mh(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Zh(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Bh(e,n,r),e.decode=(n,r)=>Vh(e,n,r),e.encodeAsync=async(n,r)=>Uh(e,n,r),e.decodeAsync=async(n,r)=>Hh(e,n,r),e.safeEncode=(n,r)=>Wh(e,n,r),e.safeDecode=(n,r)=>qh(e,n,r),e.safeEncodeAsync=async(n,r)=>Jh(e,n,r),e.safeDecodeAsync=async(n,r)=>Yh(e,n,r),e.refine=(n,r)=>e.check(Um(n,r)),e.superRefine=n=>e.check(Hm(n)),e.overwrite=n=>e.check(nr(n)),e.optional=()=>Eo(e),e.nullable=()=>To(e),e.nullish=()=>Eo(To(e)),e.nonoptional=n=>Lm(e,n),e.array=()=>km(e),e.or=n=>_m([e,n]),e.and=n=>Em(e,n),e.transform=n=>Ao(e,Nm(n)),e.default=n=>jm(e,n),e.prefault=n=>Dm(e,n),e.catch=n=>Mm(e,n),e.pipe=n=>Ao(e,n),e.readonly=()=>Bm(e),e.describe=n=>{const r=e.clone();return hr.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return hr.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return hr.get(e);const r=e.clone();return hr.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),gl=A("_ZodString",(e,t)=>{va.init(e,t),Ae.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(mh(...r)),e.includes=(...r)=>e.check(vh(...r)),e.startsWith=(...r)=>e.check(bh(...r)),e.endsWith=(...r)=>e.check(xh(...r)),e.min=(...r)=>e.check(zr(...r)),e.max=(...r)=>e.check(hl(...r)),e.length=(...r)=>e.check(ml(...r)),e.nonempty=(...r)=>e.check(zr(1,...r)),e.lowercase=r=>e.check(gh(r)),e.uppercase=r=>e.check(yh(r)),e.trim=()=>e.check(wh()),e.normalize=(...r)=>e.check(kh(...r)),e.toLowerCase=()=>e.check(_h()),e.toUpperCase=()=>e.check(Ch())}),Kh=A("ZodString",(e,t)=>{va.init(e,t),gl.init(e,t),e.email=n=>e.check($p(Gh,n)),e.url=n=>e.check(Vp(Xh,n)),e.jwt=n=>e.check(ih(pm,n)),e.emoji=n=>e.check(Up(Qh,n)),e.guid=n=>e.check(bo(_o,n)),e.uuid=n=>e.check(Mp(mr,n)),e.uuidv4=n=>e.check(Fp(mr,n)),e.uuidv6=n=>e.check(Zp(mr,n)),e.uuidv7=n=>e.check(Bp(mr,n)),e.nanoid=n=>e.check(Hp(em,n)),e.guid=n=>e.check(bo(_o,n)),e.cuid=n=>e.check(Wp(tm,n)),e.cuid2=n=>e.check(qp(nm,n)),e.ulid=n=>e.check(Jp(rm,n)),e.base64=n=>e.check(th(cm,n)),e.base64url=n=>e.check(nh(dm,n)),e.xid=n=>e.check(Yp(im,n)),e.ksuid=n=>e.check(Kp(am,n)),e.ipv4=n=>e.check(Gp(om,n)),e.ipv6=n=>e.check(Xp(sm,n)),e.cidrv4=n=>e.check(Qp(lm,n)),e.cidrv6=n=>e.check(eh(um,n)),e.e164=n=>e.check(rh(fm,n)),e.datetime=n=>e.check(Ih(n)),e.date=n=>e.check(Rh(n)),e.time=n=>e.check(jh(n)),e.duration=n=>e.check(Dh(n))});function eC(e){return Lp(Kh,e)}const ze=A("ZodStringFormat",(e,t)=>{Ee.init(e,t),gl.init(e,t)}),Gh=A("ZodEmail",(e,t)=>{Vf.init(e,t),ze.init(e,t)}),_o=A("ZodGUID",(e,t)=>{Zf.init(e,t),ze.init(e,t)}),mr=A("ZodUUID",(e,t)=>{Bf.init(e,t),ze.init(e,t)}),Xh=A("ZodURL",(e,t)=>{Uf.init(e,t),ze.init(e,t)}),Qh=A("ZodEmoji",(e,t)=>{Hf.init(e,t),ze.init(e,t)}),em=A("ZodNanoID",(e,t)=>{Wf.init(e,t),ze.init(e,t)}),tm=A("ZodCUID",(e,t)=>{qf.init(e,t),ze.init(e,t)}),nm=A("ZodCUID2",(e,t)=>{Jf.init(e,t),ze.init(e,t)}),rm=A("ZodULID",(e,t)=>{Yf.init(e,t),ze.init(e,t)}),im=A("ZodXID",(e,t)=>{Kf.init(e,t),ze.init(e,t)}),am=A("ZodKSUID",(e,t)=>{Gf.init(e,t),ze.init(e,t)}),om=A("ZodIPv4",(e,t)=>{np.init(e,t),ze.init(e,t)}),sm=A("ZodIPv6",(e,t)=>{rp.init(e,t),ze.init(e,t)}),lm=A("ZodCIDRv4",(e,t)=>{ip.init(e,t),ze.init(e,t)}),um=A("ZodCIDRv6",(e,t)=>{ap.init(e,t),ze.init(e,t)}),cm=A("ZodBase64",(e,t)=>{op.init(e,t),ze.init(e,t)}),dm=A("ZodBase64URL",(e,t)=>{lp.init(e,t),ze.init(e,t)}),fm=A("ZodE164",(e,t)=>{up.init(e,t),ze.init(e,t)}),pm=A("ZodJWT",(e,t)=>{dp.init(e,t),ze.init(e,t)}),yl=A("ZodNumber",(e,t)=>{cl.init(e,t),Ae.init(e,t),e.gt=(r,i)=>e.check(ko(r,i)),e.gte=(r,i)=>e.check(pi(r,i)),e.min=(r,i)=>e.check(pi(r,i)),e.lt=(r,i)=>e.check(xo(r,i)),e.lte=(r,i)=>e.check(fi(r,i)),e.max=(r,i)=>e.check(fi(r,i)),e.int=r=>e.check(Co(r)),e.safe=r=>e.check(Co(r)),e.positive=r=>e.check(ko(0,r)),e.nonnegative=r=>e.check(pi(0,r)),e.negative=r=>e.check(xo(0,r)),e.nonpositive=r=>e.check(fi(0,r)),e.multipleOf=(r,i)=>e.check(wo(r,i)),e.step=(r,i)=>e.check(wo(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function tC(e){return uh(yl,e)}const hm=A("ZodNumberFormat",(e,t)=>{fp.init(e,t),yl.init(e,t)});function Co(e){return ch(hm,e)}const mm=A("ZodBoolean",(e,t)=>{pp.init(e,t),Ae.init(e,t)});function nC(e){return dh(mm,e)}const gm=A("ZodAny",(e,t)=>{hp.init(e,t),Ae.init(e,t)});function rC(){return fh(gm)}const ym=A("ZodUnknown",(e,t)=>{mp.init(e,t),Ae.init(e,t)});function So(){return ph(ym)}const vm=A("ZodNever",(e,t)=>{gp.init(e,t),Ae.init(e,t)});function bm(e){return hh(vm,e)}const xm=A("ZodArray",(e,t)=>{yp.init(e,t),Ae.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(zr(n,r)),e.nonempty=n=>e.check(zr(1,n)),e.max=(n,r)=>e.check(hl(n,r)),e.length=(n,r)=>e.check(ml(n,r)),e.unwrap=()=>e.element});function km(e,t){return Sh(xm,e,t)}const wm=A("ZodObject",(e,t)=>{bp.init(e,t),Ae.init(e,t),ke(e,"shape",()=>t.shape),e.keyof=()=>Am(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:So()}),e.loose=()=>e.clone({...e._zod.def,catchall:So()}),e.strict=()=>e.clone({...e._zod.def,catchall:bm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Dd(e,n),e.safeExtend=n=>Ld(e,n),e.merge=n=>$d(e,n),e.pick=n=>jd(e,n),e.omit=n=>Pd(e,n),e.partial=(...n)=>Md(bl,e,n[0]),e.required=(...n)=>Fd(xl,e,n[0])});function iC(e,t){const n={type:"object",shape:e??{},...G(t)};return new wm(n)}const vl=A("ZodUnion",(e,t)=>{pl.init(e,t),Ae.init(e,t),e.options=t.options});function _m(e,t){return new vl({type:"union",options:e,...G(t)})}const Cm=A("ZodDiscriminatedUnion",(e,t)=>{vl.init(e,t),xp.init(e,t)});function aC(e,t,n){return new Cm({type:"union",options:t,discriminator:e,...G(n)})}const Sm=A("ZodIntersection",(e,t)=>{kp.init(e,t),Ae.init(e,t)});function Em(e,t){return new Sm({type:"intersection",left:e,right:t})}const Tm=A("ZodRecord",(e,t)=>{wp.init(e,t),Ae.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function oC(e,t,n){return new Tm({type:"record",keyType:e,valueType:t,...G(n)})}const Mi=A("ZodEnum",(e,t)=>{_p.init(e,t),Ae.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const o of r)if(n.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Mi({...t,checks:[],...G(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const o of r)if(n.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new Mi({...t,checks:[],...G(i),entries:a})}});function Am(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Mi({type:"enum",entries:n,...G(t)})}const zm=A("ZodLiteral",(e,t)=>{Cp.init(e,t),Ae.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function sC(e,t){return new zm({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const Im=A("ZodTransform",(e,t)=>{Sp.init(e,t),Ae.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ks(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Jn(a,n.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(Jn(o))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n)):(n.value=i,n)}});function Nm(e){return new Im({type:"transform",transform:e})}const bl=A("ZodOptional",(e,t)=>{Ep.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Eo(e){return new bl({type:"optional",innerType:e})}const Rm=A("ZodNullable",(e,t)=>{Tp.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function To(e){return new Rm({type:"nullable",innerType:e})}const Om=A("ZodDefault",(e,t)=>{Ap.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jm(e,t){return new Om({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Qs(t)}})}const Pm=A("ZodPrefault",(e,t)=>{zp.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dm(e,t){return new Pm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Qs(t)}})}const xl=A("ZodNonOptional",(e,t)=>{Ip.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Lm(e,t){return new xl({type:"nonoptional",innerType:e,...G(t)})}const $m=A("ZodCatch",(e,t)=>{Np.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Mm(e,t){return new $m({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Fm=A("ZodPipe",(e,t)=>{Rp.init(e,t),Ae.init(e,t),e.in=t.in,e.out=t.out});function Ao(e,t){return new Fm({type:"pipe",in:e,out:t})}const Zm=A("ZodReadonly",(e,t)=>{Op.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bm(e){return new Zm({type:"readonly",innerType:e})}const Vm=A("ZodCustom",(e,t)=>{jp.init(e,t),Ae.init(e,t)});function Um(e,t={}){return Eh(Vm,e,t)}function Hm(e){return Th(e)}var ye;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(ye||(ye={}));var zo;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zo||(zo={}));const Y=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zt=e=>{switch(typeof e){case"undefined":return Y.undefined;case"string":return Y.string;case"number":return Number.isNaN(e)?Y.nan:Y.number;case"boolean":return Y.boolean;case"function":return Y.function;case"bigint":return Y.bigint;case"symbol":return Y.symbol;case"object":return Array.isArray(e)?Y.array:e===null?Y.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Y.promise:typeof Map<"u"&&e instanceof Map?Y.map:typeof Set<"u"&&e instanceof Set?Y.set:typeof Date<"u"&&e instanceof Date?Y.date:Y.object;default:return Y.unknown}},L=ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class It extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof It))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}It.create=e=>new It(e);const Fi=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===Y.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let Wm=Fi;function qm(){return Wm}const Jm=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function H(e,t){const n=qm(),r=Jm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fi?void 0:Fi].filter(i=>!!i)});e.common.issues.push(r)}class Ve{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return re;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,o=await i.value;r.push({key:a,value:o})}return Ve.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return re;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),Vn=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),Io=e=>e.status==="aborted",No=e=>e.status==="dirty",wn=e=>e.status==="valid",Ir=e=>typeof Promise<"u"&&e instanceof Promise;var K;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(K||(K={}));class Ct{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ro=(e,t)=>{if(wn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new It(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}class fe{get description(){return this._def.description}_getType(t){return Zt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Zt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ve,ctx:{common:t.parent.common,data:t.data,parsedType:Zt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ir(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zt(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ro(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zt(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return wn(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>wn(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Zt(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(Ir(i)?i:Promise.resolve(i));return Ro(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:L.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Sn({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Bt.create(this,this._def)}nullable(){return En.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wt.create(this)}promise(){return Pr.create(this,this._def)}or(t){return Rr.create([this,t],this._def)}and(t){return Or.create(this,t,this._def)}transform(t){return new Sn({...se(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Wi({...se(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new yg({typeName:ne.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new qi({...se(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ba.create(this,t)}readonly(){return Ji.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ym=/^c[^\s-]{8,}$/i,Km=/^[0-9a-z]+$/,Gm=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Xm=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Qm=/^[a-z0-9_-]{21}$/i,eg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,tg=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ng=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let hi;const ig=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ag=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,og=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ug=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kl="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",cg=new RegExp(`^${kl}$`);function wl(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function dg(e){return new RegExp(`^${wl(e)}$`)}function fg(e){let t=`${kl}T${wl(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function pg(e,t){return!!((t==="v4"||!t)&&ig.test(e)||(t==="v6"||!t)&&og.test(e))}function hg(e,t){if(!eg.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function mg(e,t){return!!((t==="v4"||!t)&&ag.test(e)||(t==="v6"||!t)&&sg.test(e))}class zt extends fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Y.string){const a=this._getOrReturnCtx(t);return H(a,{code:L.invalid_type,expected:Y.string,received:a.parsedType}),re}const r=new Ve;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?H(i,{code:L.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&H(i,{code:L.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")ng.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"email",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")hi||(hi=new RegExp(rg,"u")),hi.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"emoji",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")Xm.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"uuid",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")Qm.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"nanoid",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")Ym.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")Km.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid2",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")Gm.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ulid",code:L.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),H(i,{validation:"url",code:L.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"regex",code:L.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?fg(a).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?cg.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?dg(a).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?tg.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"duration",code:L.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?pg(t.data,a.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ip",code:L.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?hg(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"jwt",code:L.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?mg(t.data,a.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cidr",code:L.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?lg.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64",code:L.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?ug.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64url",code:L.invalid_string,message:a.message}),r.dirty()):ye.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:L.invalid_string,...K.errToObj(r)})}_addCheck(t){return new zt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...K.errToObj(t)})}url(t){return this._addCheck({kind:"url",...K.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...K.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...K.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...K.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...K.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...K.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...K.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...K.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...K.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...K.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...K.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...K.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...K.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...K.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...K.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...K.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...K.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...K.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...K.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...K.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...K.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...K.errToObj(n)})}nonempty(t){return this.min(1,K.errToObj(t))}trim(){return new zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}zt.create=e=>new zt({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...se(e)});function gg(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}class _n extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Y.number){const a=this._getOrReturnCtx(t);return H(a,{code:L.invalid_type,expected:Y.number,received:a.parsedType}),re}let r;const i=new Ve;for(const a of this._def.checks)a.kind==="int"?ye.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?gg(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_finite,message:a.message}),i.dirty()):ye.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,i){return new _n({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(i)}]})}_addCheck(t){return new _n({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:K.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:K.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}_n.create=e=>new _n({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...se(e)});class Yn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Y.bigint)return this._getInvalidInput(t);let r;const i=new Ve;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):ye.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Y.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,i){return new Yn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(i)}]})}_addCheck(t){return new Yn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Yn.create=e=>new Yn({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...se(e)});class Zi extends fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Y.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.boolean,received:r.parsedType}),re}return ct(t.data)}}Zi.create=e=>new Zi({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...se(e)});class Nr extends fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Y.date){const a=this._getOrReturnCtx(t);return H(a,{code:L.invalid_type,expected:Y.date,received:a.parsedType}),re}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return H(a,{code:L.invalid_date}),re}const r=new Ve;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):ye.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Nr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:K.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:K.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Nr.create=e=>new Nr({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...se(e)});class Oo extends fe{_parse(t){if(this._getType(t)!==Y.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.symbol,received:r.parsedType}),re}return ct(t.data)}}Oo.create=e=>new Oo({typeName:ne.ZodSymbol,...se(e)});class jo extends fe{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.undefined,received:r.parsedType}),re}return ct(t.data)}}jo.create=e=>new jo({typeName:ne.ZodUndefined,...se(e)});class Bi extends fe{_parse(t){if(this._getType(t)!==Y.null){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.null,received:r.parsedType}),re}return ct(t.data)}}Bi.create=e=>new Bi({typeName:ne.ZodNull,...se(e)});class Po extends fe{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}}Po.create=e=>new Po({typeName:ne.ZodAny,...se(e)});class Vi extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}}Vi.create=e=>new Vi({typeName:ne.ZodUnknown,...se(e)});class Ht extends fe{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Y.never,received:n.parsedType}),re}}Ht.create=e=>new Ht({typeName:ne.ZodNever,...se(e)});class Do extends fe{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.void,received:r.parsedType}),re}return ct(t.data)}}Do.create=e=>new Do({typeName:ne.ZodVoid,...se(e)});class wt extends fe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Y.array)return H(n,{code:L.invalid_type,expected:Y.array,received:n.parsedType}),re;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(H(n,{code:o?L.too_big:L.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(H(n,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(H(n,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new Ct(n,o,n.path,s)))).then(o=>Ve.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new Ct(n,o,n.path,s)));return Ve.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new wt({...this._def,minLength:{value:t,message:K.toString(n)}})}max(t,n){return new wt({...this._def,maxLength:{value:t,message:K.toString(n)}})}length(t,n){return new wt({...this._def,exactLength:{value:t,message:K.toString(n)}})}nonempty(t){return this.min(1,t)}}wt.create=(e,t)=>new wt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...se(t)});function pn(e){if(e instanceof Ne){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Bt.create(pn(r))}return new Ne({...e._def,shape:()=>t})}else return e instanceof wt?new wt({...e._def,type:pn(e.element)}):e instanceof Bt?Bt.create(pn(e.unwrap())):e instanceof En?En.create(pn(e.unwrap())):e instanceof tn?tn.create(e.items.map(t=>pn(t))):e}class Ne extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Y.object){const u=this._getOrReturnCtx(t);return H(u,{code:L.invalid_type,expected:Y.object,received:u.parsedType}),re}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ht&&this._def.unknownKeys==="strip"))for(const u in i.data)o.includes(u)||s.push(u);const l=[];for(const u of o){const d=a[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new Ct(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ht){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(u==="strict")s.length>0&&(H(i,{code:L.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of s){const c=i.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new Ct(i,c,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const c=await d.key,f=await d.value;u.push({key:c,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Ve.mergeObjectSync(r,u)):Ve.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return K.errToObj,new Ne({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:K.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Ne({...this._def,unknownKeys:"strip"})}passthrough(){return new Ne({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ne({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ne({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ne({...this._def,catchall:t})}pick(t){const n={};for(const r of ye.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Ne({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ye.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Ne({...this._def,shape:()=>n})}deepPartial(){return pn(this)}partial(t){const n={};for(const r of ye.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Ne({...this._def,shape:()=>n})}required(t){const n={};for(const r of ye.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Bt;)a=a._def.innerType;n[r]=a}return new Ne({...this._def,shape:()=>n})}keyof(){return _l(ye.objectKeys(this.shape))}}Ne.create=(e,t)=>new Ne({shape:()=>e,unknownKeys:"strip",catchall:Ht.create(),typeName:ne.ZodObject,...se(t)});Ne.strictCreate=(e,t)=>new Ne({shape:()=>e,unknownKeys:"strict",catchall:Ht.create(),typeName:ne.ZodObject,...se(t)});Ne.lazycreate=(e,t)=>new Ne({shape:e,unknownKeys:"strip",catchall:Ht.create(),typeName:ne.ZodObject,...se(t)});class Rr extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new It(s.ctx.common.issues));return H(n,{code:L.invalid_union,unionErrors:o}),re}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new It(l));return H(n,{code:L.invalid_union,unionErrors:s}),re}}get options(){return this._def.options}}Rr.create=(e,t)=>new Rr({options:e,typeName:ne.ZodUnion,...se(t)});function Ui(e,t){const n=Zt(e),r=Zt(t);if(e===t)return{valid:!0,data:e};if(n===Y.object&&r===Y.object){const i=ye.objectKeys(t),a=ye.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=Ui(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Y.array&&r===Y.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=Ui(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Y.date&&r===Y.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Or extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Io(a)||Io(o))return re;const s=Ui(a.value,o.value);return s.valid?((No(a)||No(o))&&n.dirty(),{status:n.value,value:s.data}):(H(r,{code:L.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Or.create=(e,t,n)=>new Or({left:e,right:t,typeName:ne.ZodIntersection,...se(n)});class tn extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.array)return H(r,{code:L.invalid_type,expected:Y.array,received:r.parsedType}),re;if(r.data.length<this._def.items.length)return H(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Ct(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>Ve.mergeArray(n,o)):Ve.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new tn({...this._def,rest:t})}}tn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tn({items:e,typeName:ne.ZodTuple,rest:null,...se(t)})};class jr extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.object)return H(r,{code:L.invalid_type,expected:Y.object,received:r.parsedType}),re;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new Ct(r,s,r.path,s)),value:o._parse(new Ct(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ve.mergeObjectAsync(n,i):Ve.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof fe?new jr({keyType:t,valueType:n,typeName:ne.ZodRecord,...se(r)}):new jr({keyType:zt.create(),valueType:t,typeName:ne.ZodRecord,...se(n)})}}class Lo extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.map)return H(r,{code:L.invalid_type,expected:Y.map,received:r.parsedType}),re;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],u)=>({key:i._parse(new Ct(r,s,r.path,[u,"key"])),value:a._parse(new Ct(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}}}}Lo.create=(e,t,n)=>new Lo({valueType:t,keyType:e,typeName:ne.ZodMap,...se(n)});class Kn extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.set)return H(r,{code:L.invalid_type,expected:Y.set,received:r.parsedType}),re;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(H(r,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(H(r,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const u=new Set;for(const d of l){if(d.status==="aborted")return re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>a._parse(new Ct(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Kn({...this._def,minSize:{value:t,message:K.toString(n)}})}max(t,n){return new Kn({...this._def,maxSize:{value:t,message:K.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Kn.create=(e,t)=>new Kn({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...se(t)});class $o extends fe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}$o.create=(e,t)=>new $o({getter:e,typeName:ne.ZodLazy,...se(t)});class Hi extends fe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}}Hi.create=(e,t)=>new Hi({value:e,typeName:ne.ZodLiteral,...se(t)});function _l(e,t){return new Cn({values:e,typeName:ne.ZodEnum,...se(t)})}class Cn extends fe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:ye.joinValues(r),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:L.invalid_enum_value,options:r}),re}return ct(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Cn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Cn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Cn.create=_l;class Mo extends fe{_parse(t){const n=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Y.string&&r.parsedType!==Y.number){const i=ye.objectValues(n);return H(r,{expected:ye.joinValues(i),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(ye.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ye.objectValues(n);return H(r,{received:r.data,code:L.invalid_enum_value,options:i}),re}return ct(t.data)}get enum(){return this._def.values}}Mo.create=(e,t)=>new Mo({values:e,typeName:ne.ZodNativeEnum,...se(t)});class Pr extends fe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Y.promise&&n.common.async===!1)return H(n,{code:L.invalid_type,expected:Y.promise,received:n.parsedType}),re;const r=n.parsedType===Y.promise?n.data:Promise.resolve(n.data);return ct(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Pr.create=(e,t)=>new Pr({type:e,typeName:ne.ZodPromise,...se(t)});class Sn extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{H(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return re;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Vn(l.value):l});{if(n.value==="aborted")return re;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?re:s.status==="dirty"||n.value==="dirty"?Vn(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!wn(o))return re;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>wn(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):re);ye.assertNever(i)}}Sn.create=(e,t,n)=>new Sn({schema:e,typeName:ne.ZodEffects,effect:t,...se(n)});Sn.createWithPreprocess=(e,t,n)=>new Sn({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...se(n)});class Bt extends fe{_parse(t){return this._getType(t)===Y.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bt.create=(e,t)=>new Bt({innerType:e,typeName:ne.ZodOptional,...se(t)});class En extends fe{_parse(t){return this._getType(t)===Y.null?ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}En.create=(e,t)=>new En({innerType:e,typeName:ne.ZodNullable,...se(t)});class Wi extends fe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Y.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Wi.create=(e,t)=>new Wi({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});class qi extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ir(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new It(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}qi.create=(e,t)=>new qi({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class Fo extends fe{_parse(t){if(this._getType(t)!==Y.nan){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}Fo.create=e=>new Fo({typeName:ne.ZodNaN,...se(e)});class yg extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ba extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?re:a.status==="dirty"?(n.dirty(),Vn(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new ba({in:t,out:n,typeName:ne.ZodPipeline})}}class Ji extends fe{_parse(t){const n=this._def.innerType._parse(t),r=i=>(wn(i)&&(i.value=Object.freeze(i.value)),i);return Ir(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Ji.create=(e,t)=>new Ji({innerType:e,typeName:ne.ZodReadonly,...se(t)});var ne;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ne||(ne={}));const lC=zt.create,uC=_n.create,cC=Zi.create,dC=Bi.create,fC=Vi.create;Ht.create;const pC=wt.create,hC=Ne.create,mC=Rr.create;Or.create;tn.create;const gC=jr.create,yC=Hi.create;Cn.create;Pr.create;Bt.create;En.create;function vg(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const bg=e=>{switch(e){case"success":return wg;case"info":return Cg;case"warning":return _g;case"error":return Sg;default:return null}},xg=Array(12).fill(0),kg=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},xg.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),wg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_g=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Cg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Sg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Eg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Tg=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Yi=1;class Ag{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,a=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Yi++,o=this.toasts.find(l=>l.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,o;const s=i.then(async u=>{if(o=["resolve",u],F.isValidElement(u))a=!1,this.create({id:r,type:"default",message:u});else if(Ig(u)&&!u.ok){a=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(u instanceof Error){a=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){a=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...h})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){a=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!F.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Yi++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new Ag,zg=(e,t)=>{const n=t?.id||Yi++;return qe.addToast({title:e,...t,id:n}),n},Ig=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ng=zg,Rg=()=>qe.toasts,Og=()=>qe.getActiveToasts();Object.assign(Ng,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:Rg,getToasts:Og});vg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function gr(e){return e.label!==void 0}const jg=3,Pg="24px",Dg="16px",Zo=4e3,Lg=356,$g=14,Mg=45,Fg=200;function bt(...e){return e.filter(Boolean).join(" ")}function Zg(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Bg=e=>{var t,n,r,i,a,o,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:h,visibleToasts:v,heights:b,index:y,toasts:_,expanded:x,removeToast:z,defaultRichColors:N,closeButton:k,style:$,cancelButtonStyle:R,actionButtonStyle:U,className:w="",descriptionClassName:M="",duration:P,position:W,gap:Z,expandByDefault:O,classNames:C,icons:j,closeButtonAriaLabel:S="Close toast"}=e,[X,g]=F.useState(null),[xe,Te]=F.useState(null),[m,Q]=F.useState(!1),[oe,ge]=F.useState(!1),[ve,de]=F.useState(!1),[Oe,De]=F.useState(!1),[Ge,Xe]=F.useState(!1),[oi,Dn]=F.useState(0),[sr,Ln]=F.useState(0),jt=F.useRef(c.duration||P||Zo),lr=F.useRef(null),ot=F.useRef(null),ur=y===0,si=y+1<=v,Ze=c.type,Pt=c.dismissible!==!1,li=c.className||"",ui=c.descriptionClassName||"",T=F.useMemo(()=>b.findIndex(ie=>ie.toastId===c.id)||0,[b,c.id]),B=F.useMemo(()=>{var ie;return(ie=c.closeButton)!=null?ie:k},[c.closeButton,k]),te=F.useMemo(()=>c.duration||P||Zo,[c.duration,P]),le=F.useRef(0),he=F.useRef(0),Ue=F.useRef(0),He=F.useRef(null),[ft,Gt]=W.split("-"),Dt=F.useMemo(()=>b.reduce((ie,je,$e)=>$e>=T?ie:ie+je.height,0),[b,T]),Le=Tg(),Lt=c.invert||d,Qe=Ze==="loading";he.current=F.useMemo(()=>T*Z+Dt,[T,Dt]),F.useEffect(()=>{jt.current=te},[te]),F.useEffect(()=>{Q(!0)},[]),F.useEffect(()=>{const ie=ot.current;if(ie){const je=ie.getBoundingClientRect().height;return Ln(je),h($e=>[{toastId:c.id,height:je,position:c.position},...$e]),()=>h($e=>$e.filter(et=>et.toastId!==c.id))}},[h,c.id]),F.useLayoutEffect(()=>{if(!m)return;const ie=ot.current,je=ie.style.height;ie.style.height="auto";const $e=ie.getBoundingClientRect().height;ie.style.height=je,Ln($e),h(et=>et.find(Pe=>Pe.toastId===c.id)?et.map(Pe=>Pe.toastId===c.id?{...Pe,height:$e}:Pe):[{toastId:c.id,height:$e,position:c.position},...et])},[m,c.title,c.description,h,c.id,c.jsx,c.action,c.cancel]);const $t=F.useCallback(()=>{ge(!0),Dn(he.current),h(ie=>ie.filter(je=>je.toastId!==c.id)),setTimeout(()=>{z(c)},Fg)},[c,z,h,he]);F.useEffect(()=>{if(c.promise&&Ze==="loading"||c.duration===1/0||c.type==="loading")return;let ie;return x||p||Le?(()=>{if(Ue.current<le.current){const et=new Date().getTime()-le.current;jt.current=jt.current-et}Ue.current=new Date().getTime()})():(()=>{jt.current!==1/0&&(le.current=new Date().getTime(),ie=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),$t()},jt.current))})(),()=>clearTimeout(ie)},[x,p,c,Ze,Le,$t]),F.useEffect(()=>{c.delete&&($t(),c.onDismiss==null||c.onDismiss.call(c,c))},[$t,c.delete]);function xd(){var ie;if(j?.loading){var je;return F.createElement("div",{className:bt(C?.loader,c==null||(je=c.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Ze==="loading"},j.loading)}return F.createElement(kg,{className:bt(C?.loader,c==null||(ie=c.classNames)==null?void 0:ie.loader),visible:Ze==="loading"})}const kd=c.icon||j?.[Ze]||bg(Ze);var eo,to;return F.createElement("li",{tabIndex:0,ref:ot,className:bt(w,li,C?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,C?.default,C?.[Ze],c==null||(n=c.classNames)==null?void 0:n[Ze]),"data-sonner-toast":"","data-rich-colors":(eo=c.richColors)!=null?eo:N,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":m,"data-promise":!!c.promise,"data-swiped":Ge,"data-removed":oe,"data-visible":si,"data-y-position":ft,"data-x-position":Gt,"data-index":y,"data-front":ur,"data-swiping":ve,"data-dismissible":Pt,"data-type":Ze,"data-invert":Lt,"data-swipe-out":Oe,"data-swipe-direction":xe,"data-expanded":!!(x||O&&m),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${oe?oi:he.current}px`,"--initial-height":O?"auto":`${sr}px`,...$,...c.style},onDragEnd:()=>{de(!1),g(null),He.current=null},onPointerDown:ie=>{ie.button!==2&&(Qe||!Pt||(lr.current=new Date,Dn(he.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(de(!0),He.current={x:ie.clientX,y:ie.clientY})))},onPointerUp:()=>{var ie,je,$e;if(Oe||!Pt)return;He.current=null;const et=Number(((ie=ot.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),cr=Number(((je=ot.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Pe=new Date().getTime()-(($e=lr.current)==null?void 0:$e.getTime()),st=X==="x"?et:cr,dr=Math.abs(st)/Pe;if(Math.abs(st)>=Mg||dr>.11){Dn(he.current),c.onDismiss==null||c.onDismiss.call(c,c),Te(X==="x"?et>0?"right":"left":cr>0?"down":"up"),$t(),De(!0);return}else{var pt,ht;(pt=ot.current)==null||pt.style.setProperty("--swipe-amount-x","0px"),(ht=ot.current)==null||ht.style.setProperty("--swipe-amount-y","0px")}Xe(!1),de(!1),g(null)},onPointerMove:ie=>{var je,$e,et;if(!He.current||!Pt||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;const Pe=ie.clientY-He.current.y,st=ie.clientX-He.current.x;var dr;const pt=(dr=e.swipeDirections)!=null?dr:Zg(W);!X&&(Math.abs(st)>1||Math.abs(Pe)>1)&&g(Math.abs(st)>Math.abs(Pe)?"x":"y");let ht={x:0,y:0};const no=Xt=>1/(1.5+Math.abs(Xt)/20);if(X==="y"){if(pt.includes("top")||pt.includes("bottom"))if(pt.includes("top")&&Pe<0||pt.includes("bottom")&&Pe>0)ht.y=Pe;else{const Xt=Pe*no(Pe);ht.y=Math.abs(Xt)<Math.abs(Pe)?Xt:Pe}}else if(X==="x"&&(pt.includes("left")||pt.includes("right")))if(pt.includes("left")&&st<0||pt.includes("right")&&st>0)ht.x=st;else{const Xt=st*no(st);ht.x=Math.abs(Xt)<Math.abs(st)?Xt:st}(Math.abs(ht.x)>0||Math.abs(ht.y)>0)&&Xe(!0),($e=ot.current)==null||$e.style.setProperty("--swipe-amount-x",`${ht.x}px`),(et=ot.current)==null||et.style.setProperty("--swipe-amount-y",`${ht.y}px`)}},B&&!c.jsx&&Ze!=="loading"?F.createElement("button",{"aria-label":S,"data-disabled":Qe,"data-close-button":!0,onClick:Qe||!Pt?()=>{}:()=>{$t(),c.onDismiss==null||c.onDismiss.call(c,c)},className:bt(C?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(to=j?.close)!=null?to:Eg):null,(Ze||c.icon||c.promise)&&c.icon!==null&&(j?.[Ze]!==null||c.icon)?F.createElement("div",{"data-icon":"",className:bt(C?.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||xd():null,c.type!=="loading"?kd:null):null,F.createElement("div",{"data-content":"",className:bt(C?.content,c==null||(a=c.classNames)==null?void 0:a.content)},F.createElement("div",{"data-title":"",className:bt(C?.title,c==null||(o=c.classNames)==null?void 0:o.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?F.createElement("div",{"data-description":"",className:bt(M,ui,C?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),F.isValidElement(c.cancel)?c.cancel:c.cancel&&gr(c.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||R,onClick:ie=>{gr(c.cancel)&&Pt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ie),$t())},className:bt(C?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,F.isValidElement(c.action)?c.action:c.action&&gr(c.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||U,onClick:ie=>{gr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ie),!ie.defaultPrevented&&$t())},className:bt(C?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Bo(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Vg(e,t){const n={};return[e,t].forEach((r,i)=>{const a=i===1,o=a?"--mobile-offset":"--offset",s=a?Dg:Pg;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=s:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const vC=F.forwardRef(function(t,n){const{id:r,invert:i,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:h,style:v,visibleToasts:b=jg,toastOptions:y,dir:_=Bo(),gap:x=$g,icons:z,containerAriaLabel:N="Notifications"}=t,[k,$]=F.useState([]),R=F.useMemo(()=>r?k.filter(m=>m.toasterId===r):k.filter(m=>!m.toasterId),[k,r]),U=F.useMemo(()=>Array.from(new Set([a].concat(R.filter(m=>m.position).map(m=>m.position)))),[R,a]),[w,M]=F.useState([]),[P,W]=F.useState(!1),[Z,O]=F.useState(!1),[C,j]=F.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=F.useRef(null),X=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=F.useRef(null),xe=F.useRef(!1),Te=F.useCallback(m=>{$(Q=>{var oe;return(oe=Q.find(ge=>ge.id===m.id))!=null&&oe.delete||qe.dismiss(m.id),Q.filter(({id:ge})=>ge!==m.id)})},[]);return F.useEffect(()=>qe.subscribe(m=>{if(m.dismiss){requestAnimationFrame(()=>{$(Q=>Q.map(oe=>oe.id===m.id?{...oe,delete:!0}:oe))});return}setTimeout(()=>{wd.flushSync(()=>{$(Q=>{const oe=Q.findIndex(ge=>ge.id===m.id);return oe!==-1?[...Q.slice(0,oe),{...Q[oe],...m},...Q.slice(oe+1)]:[m,...Q]})})})}),[k]),F.useEffect(()=>{if(f!=="system"){j(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;const m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:Q})=>{j(Q?"dark":"light")})}catch{m.addListener(({matches:oe})=>{try{j(oe?"dark":"light")}catch(ge){console.error(ge)}})}},[f]),F.useEffect(()=>{k.length<=1&&W(!1)},[k]),F.useEffect(()=>{const m=Q=>{var oe;if(o.every(de=>Q[de]||Q.code===de)){var ve;W(!0),(ve=S.current)==null||ve.focus()}Q.code==="Escape"&&(document.activeElement===S.current||(oe=S.current)!=null&&oe.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[o]),F.useEffect(()=>{if(S.current)return()=>{g.current&&(g.current.focus({preventScroll:!0}),g.current=null,xe.current=!1)}},[S.current]),F.createElement("section",{ref:n,"aria-label":`${N} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},U.map((m,Q)=>{var oe;const[ge,ve]=m.split("-");return R.length?F.createElement("ol",{key:m,dir:_==="auto"?Bo():_,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":ge,"data-x-position":ve,style:{"--front-toast-height":`${((oe=w[0])==null?void 0:oe.height)||0}px`,"--width":`${Lg}px`,"--gap":`${x}px`,...v,...Vg(d,c)},onBlur:de=>{xe.current&&!de.currentTarget.contains(de.relatedTarget)&&(xe.current=!1,g.current&&(g.current.focus({preventScroll:!0}),g.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||xe.current||(xe.current=!0,g.current=de.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{Z||W(!1)},onDragEnd:()=>W(!1),onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},R.filter(de=>!de.position&&Q===0||de.position===m).map((de,Oe)=>{var De,Ge;return F.createElement(Bg,{key:de.id,icons:z,index:Oe,toast:de,defaultRichColors:p,duration:(De=y?.duration)!=null?De:h,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:i,visibleToasts:b,closeButton:(Ge=y?.closeButton)!=null?Ge:l,interacting:Z,position:m,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:Te,toasts:R.filter(Xe=>Xe.position==de.position),heights:w.filter(Xe=>Xe.position==de.position),setHeights:M,expandByDefault:s,gap:x,expanded:P,swipeDirections:t.swipeDirections})})):null}))});function Cl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Cl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ug(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Cl(e))&&(r&&(r+=" "),r+=t);return r}const Vo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Uo=Ug,bC=(e,t)=>n=>{var r;if(t?.variants==null)return Uo(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const d=n?.[u],c=a?.[u];if(d===null)return null;const f=Vo(d)||Vo(c);return i[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...p}=d;return Object.entries(p).every(h=>{let[v,b]=h;return Array.isArray(b)?b.includes({...a,...s}[v]):{...a,...s}[v]===b})?[...u,c,f]:u},[]);return Uo(e,o,l,n?.class,n?.className)},Hg=(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},Wg=(e,t)=>({classGroupId:e,validator:t}),Sl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",Ho=[],qg="arbitrary..",Jg=e=>{const t=Kg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Yg(o);const s=o.split(Dr),l=s[0]===""&&s.length>1?1:0;return El(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],u=n[o];return l?u?Hg(u,l):l:u||Ho}return n[o]||Ho}}},El=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const u=El(e,t+1,a);if(u)return u}const o=n.validators;if(o===null)return;const s=t===0?e.join(Dr):e.slice(t).join(Dr),l=o.length;for(let u=0;u<l;u++){const d=o[u];if(d.validator(s))return d.classGroupId}},Yg=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?qg+r:void 0})(),Kg=e=>{const{theme:t,classGroups:n}=e;return Gg(n,t)},Gg=(e,t)=>{const n=Sl();for(const r in e){const i=e[r];xa(i,n,r,t)}return n},xa=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];Xg(o,t,n,r)}},Xg=(e,t,n,r)=>{if(typeof e=="string"){Qg(e,t,n);return}if(typeof e=="function"){ey(e,t,n,r);return}ty(e,t,n,r)},Qg=(e,t,n)=>{const r=e===""?t:Tl(t,e);r.classGroupId=n},ey=(e,t,n,r)=>{if(ny(e)){xa(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Wg(n,e))},ty=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];xa(l,Tl(t,s),n,r)}},Tl=(e,t)=>{let n=e;const r=t.split(Dr),i=r.length;for(let a=0;a<i;a++){const o=r[a];let s=n.nextPart.get(o);s||(s=Sl(),n.nextPart.set(o,s)),n=s}return n},ny=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ry=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=r[a])!==void 0)return i(a,o),o},set(a,o){a in n?n[a]=o:i(a,o)}}},Ki="!",Wo=":",iy=[],qo=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ay=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let o=0,s=0,l=0,u;const d=i.length;for(let v=0;v<d;v++){const b=i[v];if(o===0&&s===0){if(b===Wo){a.push(i.slice(l,v)),l=v+1;continue}if(b==="/"){u=v;continue}}b==="["?o++:b==="]"?o--:b==="("?s++:b===")"&&s--}const c=a.length===0?i:i.slice(l);let f=c,p=!1;c.endsWith(Ki)?(f=c.slice(0,-1),p=!0):c.startsWith(Ki)&&(f=c.slice(1),p=!0);const h=u&&u>l?u-l:void 0;return qo(a,p,f,h)};if(t){const i=t+Wo,a=r;r=o=>o.startsWith(i)?a(o.slice(i.length)):qo(iy,!1,o,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},oy=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const o=n[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},sy=e=>({cache:ry(e.cacheSize),parseClassName:ay(e),sortModifiers:oy(e),...Jg(e)}),ly=/\s+/,uy=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(ly);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let b=!!v,y=r(b?h.substring(0,v):h);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const _=f.length===0?"":f.length===1?f[0]:a(f).join(":"),x=p?_+Ki:_,z=x+y;if(o.indexOf(z)>-1)continue;o.push(z);const N=i(y,b);for(let k=0;k<N.length;++k){const $=N[k];o.push(x+$)}l=d+(l.length>0?" "+l:l)}return l},cy=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Al(n))&&(i&&(i+=" "),i+=r);return i},Al=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Al(e[r]))&&(n&&(n+=" "),n+=t);return n},dy=(e,...t)=>{let n,r,i,a;const o=l=>{const u=t.reduce((d,c)=>c(d),e());return n=sy(u),r=n.cache.get,i=n.cache.set,a=s,s(l)},s=l=>{const u=r(l);if(u)return u;const d=uy(l,n);return i(l,d),d};return a=o,(...l)=>a(cy(...l))},fy=[],Re=e=>{const t=n=>n[e]||fy;return t.isThemeGetter=!0,t},zl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Il=/^\((?:(\w[\w-]*):)?(.+)\)$/i,py=/^\d+\/\d+$/,hy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,my=/\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$/,gy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,un=e=>py.test(e),ue=e=>!!e&&!Number.isNaN(Number(e)),Mt=e=>!!e&&Number.isInteger(Number(e)),mi=e=>e.endsWith("%")&&ue(e.slice(0,-1)),At=e=>hy.test(e),by=()=>!0,xy=e=>my.test(e)&&!gy.test(e),Nl=()=>!1,ky=e=>yy.test(e),wy=e=>vy.test(e),_y=e=>!q(e)&&!J(e),Cy=e=>zn(e,jl,Nl),q=e=>zl.test(e),Qt=e=>zn(e,Pl,xy),gi=e=>zn(e,zy,ue),Jo=e=>zn(e,Rl,Nl),Sy=e=>zn(e,Ol,wy),yr=e=>zn(e,Dl,ky),J=e=>Il.test(e),$n=e=>In(e,Pl),Ey=e=>In(e,Iy),Yo=e=>In(e,Rl),Ty=e=>In(e,jl),Ay=e=>In(e,Ol),vr=e=>In(e,Dl,!0),zn=(e,t,n)=>{const r=zl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},In=(e,t,n=!1)=>{const r=Il.exec(e);return r?r[1]?t(r[1]):n:!1},Rl=e=>e==="position"||e==="percentage",Ol=e=>e==="image"||e==="url",jl=e=>e==="length"||e==="size"||e==="bg-size",Pl=e=>e==="length",zy=e=>e==="number",Iy=e=>e==="family-name",Dl=e=>e==="shadow",Ny=()=>{const e=Re("color"),t=Re("font"),n=Re("text"),r=Re("font-weight"),i=Re("tracking"),a=Re("leading"),o=Re("breakpoint"),s=Re("container"),l=Re("spacing"),u=Re("radius"),d=Re("shadow"),c=Re("inset-shadow"),f=Re("text-shadow"),p=Re("drop-shadow"),h=Re("blur"),v=Re("perspective"),b=Re("aspect"),y=Re("ease"),_=Re("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...z(),J,q],k=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],R=()=>[J,q,l],U=()=>[un,"full","auto",...R()],w=()=>[Mt,"none","subgrid",J,q],M=()=>["auto",{span:["full",Mt,J,q]},Mt,J,q],P=()=>[Mt,"auto",J,q],W=()=>["auto","min","max","fr",J,q],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...R()],j=()=>[un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],S=()=>[e,J,q],X=()=>[...z(),Yo,Jo,{position:[J,q]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Ty,Cy,{size:[J,q]}],Te=()=>[mi,$n,Qt],m=()=>["","none","full",u,J,q],Q=()=>["",ue,$n,Qt],oe=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[ue,mi,Yo,Jo],de=()=>["","none",h,J,q],Oe=()=>["none",ue,J,q],De=()=>["none",ue,J,q],Ge=()=>[ue,J,q],Xe=()=>[un,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[At],breakpoint:[At],color:[by],container:[At],"drop-shadow":[At],ease:["in","out","in-out"],font:[_y],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[At],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[At],shadow:[At],spacing:["px",ue],text:[At],"text-shadow":[At],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",un,q,J,b]}],container:["container"],columns:[{columns:[ue,q,J,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:N()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Mt,"auto",J,q]}],basis:[{basis:[un,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,un,"auto","initial","none",q]}],grow:[{grow:["",ue,J,q]}],shrink:[{shrink:["",ue,J,q]}],order:[{order:[Mt,"first","last","none",J,q]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,$n,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,J,gi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mi,q]}],"font-family":[{font:[Ey,q,t]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[ue,"none",J,gi]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",J,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",J,Qt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[ue,"auto",J,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,q]}],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",J,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mt,J,q],radial:["",J,q],conic:[Mt,J,q]},Ay,Sy]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:m()}],"rounded-s":[{"rounded-s":m()}],"rounded-e":[{"rounded-e":m()}],"rounded-t":[{"rounded-t":m()}],"rounded-r":[{"rounded-r":m()}],"rounded-b":[{"rounded-b":m()}],"rounded-l":[{"rounded-l":m()}],"rounded-ss":[{"rounded-ss":m()}],"rounded-se":[{"rounded-se":m()}],"rounded-ee":[{"rounded-ee":m()}],"rounded-es":[{"rounded-es":m()}],"rounded-tl":[{"rounded-tl":m()}],"rounded-tr":[{"rounded-tr":m()}],"rounded-br":[{"rounded-br":m()}],"rounded-bl":[{"rounded-bl":m()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,J,q]}],"outline-w":[{outline:["",ue,$n,Qt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,vr,yr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",c,vr,yr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[ue,Qt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,vr,yr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[ue,J,q]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,q]}],filter:[{filter:["","none",J,q]}],blur:[{blur:de()}],brightness:[{brightness:[ue,J,q]}],contrast:[{contrast:[ue,J,q]}],"drop-shadow":[{"drop-shadow":["","none",p,vr,yr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",ue,J,q]}],"hue-rotate":[{"hue-rotate":[ue,J,q]}],invert:[{invert:["",ue,J,q]}],saturate:[{saturate:[ue,J,q]}],sepia:[{sepia:["",ue,J,q]}],"backdrop-filter":[{"backdrop-filter":["","none",J,q]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[ue,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[ue,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,J,q]}],"backdrop-invert":[{"backdrop-invert":["",ue,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[ue,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[ue,J,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,J,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",J,q]}],ease:[{ease:["linear","initial",y,J,q]}],delay:[{delay:[ue,J,q]}],animate:[{animate:["none",_,J,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,J,q]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[J,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",J,q]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",J,q]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[ue,$n,Qt,gi]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xC=dy(Ny);var Lr=function(){return Lr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Lr.apply(this,arguments)};function Ry(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function kC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Oy(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var jy=typeof window<"u"?V.useLayoutEffect:V.useEffect,Ko=new WeakMap;function wC(e,t){var n=Oy(null,function(r){return e.forEach(function(i){return yi(i,r)})});return jy(function(){var r=Ko.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||yi(s,null)}),a.forEach(function(s){i.has(s)||yi(s,o)})}Ko.set(n,e)},[e]),n}function Py(e){return e}function Dy(e,t){t===void 0&&(t=Py);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var d=o;o=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function _C(e){e===void 0&&(e={});var t=Dy(null);return t.options=Lr({async:!0,ssr:!1},e),t}var Ll=function(e){var t=e.sideCar,n=Ry(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return V.createElement(r,Lr({},n))};Ll.isSideCarExport=!0;function CC(e,t){return e.useMedium(t),Ll}var SC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},Ly=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,br=new WeakMap,xr={},vi=0,$l=function(e){return e&&(e.host||$l(e.parentNode))},$y=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$l(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},My=function(e,t,n,r){var i=$y(t,Array.isArray(e)?e:[e]);xr[n]||(xr[n]=new WeakMap);var a=xr[n],o=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(r),h=p!==null&&p!=="false",v=(cn.get(f)||0)+1,b=(a.get(f)||0)+1;cn.set(f,v),a.set(f,b),o.push(f),v===1&&h&&br.set(f,!0),b===1&&f.setAttribute(n,"true"),h||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(t),s.clear(),vi++,function(){o.forEach(function(c){var f=cn.get(c)-1,p=a.get(c)-1;cn.set(c,f),a.set(c,p),f||(br.has(c)||c.removeAttribute(r),br.delete(c)),p||c.removeAttribute(n)}),vi--,vi||(cn=new WeakMap,cn=new WeakMap,br=new WeakMap,xr={})}},EC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Ly(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),My(r,i,n,"aria-hidden")):function(){return null}};const Fy=["top","right","bottom","left"],Wt=Math.min,nt=Math.max,$r=Math.round,kr=Math.floor,_t=e=>({x:e,y:e}),Zy={left:"right",right:"left",bottom:"top",top:"bottom"},By={start:"end",end:"start"};function Gi(e,t,n){return nt(e,Wt(t,n))}function Nt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function Nn(e){return e.split("-")[1]}function ka(e){return e==="x"?"y":"x"}function wa(e){return e==="y"?"height":"width"}const Vy=new Set(["top","bottom"]);function kt(e){return Vy.has(Rt(e))?"y":"x"}function _a(e){return ka(kt(e))}function Uy(e,t,n){n===void 0&&(n=!1);const r=Nn(e),i=_a(e),a=wa(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Mr(o)),[o,Mr(o)]}function Hy(e){const t=Mr(e);return[Xi(e),t,Xi(t)]}function Xi(e){return e.replace(/start|end/g,t=>By[t])}const Go=["left","right"],Xo=["right","left"],Wy=["top","bottom"],qy=["bottom","top"];function Jy(e,t,n){switch(e){case"top":case"bottom":return n?t?Xo:Go:t?Go:Xo;case"left":case"right":return t?Wy:qy;default:return[]}}function Yy(e,t,n,r){const i=Nn(e);let a=Jy(Rt(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Xi)))),a}function Mr(e){return e.replace(/left|right|bottom|top/g,t=>Zy[t])}function Ky(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ml(e){return typeof e!="number"?Ky(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qo(e,t,n){let{reference:r,floating:i}=e;const a=kt(t),o=_a(t),s=wa(o),l=Rt(t),u=a==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Nn(t)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const Gy=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=Qo(u,r,l),f=r,p={},h=0;for(let v=0;v<s.length;v++){const{name:b,fn:y}=s[v],{x:_,y:x,data:z,reset:N}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=_??d,c=x??c,p={...p,[b]:{...p[b],...z}},N&&h<=50&&(h++,typeof N=="object"&&(N.placement&&(f=N.placement),N.rects&&(u=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):N.rects),{x:d,y:c}=Qo(u,f,l)),v=-1)}return{x:d,y:c,placement:f,strategy:i,middlewareData:p}};async function Gn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=Nt(t,e),h=Ml(p),b=s[f?c==="floating"?"reference":"floating":c],y=Fr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),_=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),z=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},N=Fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:x,strategy:l}):_);return{top:(y.top-N.top+h.top)/z.y,bottom:(N.bottom-y.bottom+h.bottom)/z.y,left:(y.left-N.left+h.left)/z.x,right:(N.right-y.right+h.right)/z.x}}const Xy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Nt(e,t)||{};if(u==null)return{};const c=Ml(d),f={x:n,y:r},p=_a(i),h=wa(p),v=await o.getDimensions(u),b=p==="y",y=b?"top":"left",_=b?"bottom":"right",x=b?"clientHeight":"clientWidth",z=a.reference[h]+a.reference[p]-f[p]-a.floating[h],N=f[p]-a.reference[p],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let $=k?k[x]:0;(!$||!await(o.isElement==null?void 0:o.isElement(k)))&&($=s.floating[x]||a.floating[h]);const R=z/2-N/2,U=$/2-v[h]/2-1,w=Wt(c[y],U),M=Wt(c[_],U),P=w,W=$-v[h]-M,Z=$/2-v[h]/2+R,O=Gi(P,Z,W),C=!l.arrow&&Nn(i)!=null&&Z!==O&&a.reference[h]/2-(Z<P?w:M)-v[h]/2<0,j=C?Z<P?Z-P:Z-W:0;return{[p]:f[p]+j,data:{[p]:O,centerOffset:Z-O-j,...C&&{alignmentOffset:j}},reset:C}}}),Qy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...b}=Nt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Rt(i),_=kt(s),x=Rt(s)===s,z=await(l.isRTL==null?void 0:l.isRTL(u.floating)),N=f||(x||!v?[Mr(s)]:Hy(s)),k=h!=="none";!f&&k&&N.push(...Yy(s,v,h,z));const $=[s,...N],R=await Gn(t,b),U=[];let w=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&U.push(R[y]),c){const Z=Uy(i,o,z);U.push(R[Z[0]],R[Z[1]])}if(w=[...w,{placement:i,overflows:U}],!U.every(Z=>Z<=0)){var M,P;const Z=(((M=a.flip)==null?void 0:M.index)||0)+1,O=$[Z];if(O&&(!(c==="alignment"?_!==kt(O):!1)||w.every(S=>kt(S.placement)===_?S.overflows[0]>0:!0)))return{data:{index:Z,overflows:w},reset:{placement:O}};let C=(P=w.filter(j=>j.overflows[0]<=0).sort((j,S)=>j.overflows[1]-S.overflows[1])[0])==null?void 0:P.placement;if(!C)switch(p){case"bestFit":{var W;const j=(W=w.filter(S=>{if(k){const X=kt(S.placement);return X===_||X==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(X=>X>0).reduce((X,g)=>X+g,0)]).sort((S,X)=>S[1]-X[1])[0])==null?void 0:W[0];j&&(C=j);break}case"initialPlacement":C=s;break}if(i!==C)return{reset:{placement:C}}}return{}}}};function es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ts(e){return Fy.some(t=>e[t]>=0)}const ev=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Nt(e,t);switch(r){case"referenceHidden":{const a=await Gn(t,{...i,elementContext:"reference"}),o=es(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ts(o)}}}case"escaped":{const a=await Gn(t,{...i,altBoundary:!0}),o=es(a,n.floating);return{data:{escapedOffsets:o,escaped:ts(o)}}}default:return{}}}}},Fl=new Set(["left","top"]);async function tv(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Rt(n),s=Nn(n),l=kt(n)==="y",u=Fl.has(o)?-1:1,d=a&&l?-1:1,c=Nt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const nv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await tv(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},rv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:y,y:_}=b;return{x:y,y:_}}},...l}=Nt(e,t),u={x:n,y:r},d=await Gn(t,l),c=kt(Rt(i)),f=ka(c);let p=u[f],h=u[c];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",_=p+d[b],x=p-d[y];p=Gi(_,p,x)}if(o){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",_=h+d[b],x=h-d[y];h=Gi(_,h,x)}const v=s.fn({...t,[f]:p,[c]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:a,[c]:o}}}}}},iv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Nt(e,t),d={x:n,y:r},c=kt(i),f=ka(c);let p=d[f],h=d[c];const v=Nt(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=f==="y"?"height":"width",z=a.reference[f]-a.floating[x]+b.mainAxis,N=a.reference[f]+a.reference[x]-b.mainAxis;p<z?p=z:p>N&&(p=N)}if(u){var y,_;const x=f==="y"?"width":"height",z=Fl.has(Rt(i)),N=a.reference[c]-a.floating[x]+(z&&((y=o.offset)==null?void 0:y[c])||0)+(z?0:b.crossAxis),k=a.reference[c]+a.reference[x]+(z?0:((_=o.offset)==null?void 0:_[c])||0)-(z?b.crossAxis:0);h<N?h=N:h>k&&(h=k)}return{[f]:p,[c]:h}}}},av=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...u}=Nt(e,t),d=await Gn(t,u),c=Rt(i),f=Nn(i),p=kt(i)==="y",{width:h,height:v}=a.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=f==="end"?"top":"bottom");const _=v-d.top-d.bottom,x=h-d.left-d.right,z=Wt(v-d[b],_),N=Wt(h-d[y],x),k=!t.middlewareData.shift;let $=z,R=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&($=_),k&&!f){const w=nt(d.left,0),M=nt(d.right,0),P=nt(d.top,0),W=nt(d.bottom,0);p?R=h-2*(w!==0||M!==0?w+M:nt(d.left,d.right)):$=v-2*(P!==0||W!==0?P+W:nt(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:$});const U=await o.getDimensions(s.floating);return h!==U.width||v!==U.height?{reset:{rects:!0}}:{}}}};function Kr(){return typeof window<"u"}function Rn(e){return Zl(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(Zl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zl(e){return Kr()?e instanceof Node||e instanceof rt(e).Node:!1}function gt(e){return Kr()?e instanceof Element||e instanceof rt(e).Element:!1}function St(e){return Kr()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function ns(e){return!Kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const ov=new Set(["inline","contents"]);function rr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ov.has(i)}const sv=new Set(["table","td","th"]);function lv(e){return sv.has(Rn(e))}const uv=[":popover-open",":modal"];function Gr(e){return uv.some(t=>{try{return e.matches(t)}catch{return!1}})}const cv=["transform","translate","scale","rotate","perspective"],dv=["transform","translate","scale","rotate","perspective","filter"],fv=["paint","layout","strict","content"];function Ca(e){const t=Sa(),n=gt(e)?yt(e):e;return cv.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||dv.some(r=>(n.willChange||"").includes(r))||fv.some(r=>(n.contain||"").includes(r))}function pv(e){let t=qt(e);for(;St(t)&&!Tn(t);){if(Ca(t))return t;if(Gr(t))return null;t=qt(t)}return null}function Sa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hv=new Set(["html","body","#document"]);function Tn(e){return hv.has(Rn(e))}function yt(e){return rt(e).getComputedStyle(e)}function Xr(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qt(e){if(Rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ns(e)&&e.host||Et(e);return ns(t)?t.host:t}function Bl(e){const t=qt(e);return Tn(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&rr(t)?t:Bl(t)}function Xn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Bl(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=rt(i);if(a){const s=Qi(o);return t.concat(o,o.visualViewport||[],rr(i)?i:[],s&&n?Xn(s):[])}return t.concat(i,Xn(i,[],n))}function Qi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vl(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=St(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=$r(n)!==a||$r(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ea(e){return gt(e)?e:e.contextElement}function vn(e){const t=Ea(e);if(!St(t))return _t(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Vl(t);let o=(a?$r(n.width):n.width)/r,s=(a?$r(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const mv=_t(0);function Ul(e){const t=rt(e);return!Sa()||!t.visualViewport?mv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ea(e);let o=_t(1);t&&(r?gt(r)&&(o=vn(r)):o=vn(e));const s=gv(a,n,r)?Ul(a):_t(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,d=i.width/o.x,c=i.height/o.y;if(a){const f=rt(a),p=r&>(r)?rt(r):r;let h=f,v=Qi(h);for(;v&&r&&p!==h;){const b=vn(v),y=v.getBoundingClientRect(),_=yt(v),x=y.left+(v.clientLeft+parseFloat(_.paddingLeft))*b.x,z=y.top+(v.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=x,u+=z,h=rt(v),v=Qi(h)}}return Fr({width:d,height:c,x:l,y:u})}function Qr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:nn(Et(e)).left+n}function Hl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Qr(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function yv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Et(r),s=t?Gr(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=_t(1);const d=_t(0),c=St(r);if((c||!c&&!a)&&((Rn(r)!=="body"||rr(o))&&(l=Xr(r)),St(r))){const p=nn(r);u=vn(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=o&&!c&&!a?Hl(o,l):_t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function vv(e){return Array.from(e.getClientRects())}function bv(e){const t=Et(e),n=Xr(e),r=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Qr(e);const s=-n.scrollTop;return yt(r).direction==="rtl"&&(o+=nt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const rs=25;function xv(e,t){const n=rt(e),r=Et(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const d=Sa();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const u=Qr(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(r.clientWidth-c.clientWidth-p);h<=rs&&(a-=h)}else u<=rs&&(a+=u);return{width:a,height:o,x:s,y:l}}const kv=new Set(["absolute","fixed"]);function wv(e,t){const n=nn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=St(e)?vn(e):_t(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function is(e,t,n){let r;if(t==="viewport")r=xv(e,n);else if(t==="document")r=bv(Et(e));else if(gt(t))r=wv(t,n);else{const i=Ul(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Fr(r)}function Wl(e,t){const n=qt(e);return n===t||!gt(n)||Tn(n)?!1:yt(n).position==="fixed"||Wl(n,t)}function _v(e,t){const n=t.get(e);if(n)return n;let r=Xn(e,[],!1).filter(s=>gt(s)&&Rn(s)!=="body"),i=null;const a=yt(e).position==="fixed";let o=a?qt(e):e;for(;gt(o)&&!Tn(o);){const s=yt(o),l=Ca(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&kv.has(i.position)||rr(o)&&!l&&Wl(e,o))?r=r.filter(d=>d!==o):i=s,o=qt(o)}return t.set(e,r),r}function Cv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Gr(t)?[]:_v(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,d)=>{const c=is(t,d,i);return u.top=nt(c.top,u.top),u.right=Wt(c.right,u.right),u.bottom=Wt(c.bottom,u.bottom),u.left=nt(c.left,u.left),u},is(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sv(e){const{width:t,height:n}=Vl(e);return{width:t,height:n}}function Ev(e,t,n){const r=St(t),i=Et(t),a=n==="fixed",o=nn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=_t(0);function u(){l.x=Qr(i)}if(r||!r&&!a)if((Rn(t)!=="body"||rr(i))&&(s=Xr(t)),r){const p=nn(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();a&&!r&&i&&u();const d=i&&!r&&!a?Hl(i,s):_t(0),c=o.left+s.scrollLeft-l.x-d.x,f=o.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:o.width,height:o.height}}function bi(e){return yt(e).position==="static"}function as(e,t){if(!St(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Et(e)===n&&(n=n.ownerDocument.body),n}function ql(e,t){const n=rt(e);if(Gr(e))return n;if(!St(e)){let i=qt(e);for(;i&&!Tn(i);){if(gt(i)&&!bi(i))return i;i=qt(i)}return n}let r=as(e,t);for(;r&&lv(r)&&bi(r);)r=as(r,t);return r&&Tn(r)&&bi(r)&&!Ca(r)?n:r||pv(e)||n}const Tv=async function(e){const t=this.getOffsetParent||ql,n=this.getDimensions,r=await n(e.floating);return{reference:Ev(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Av(e){return yt(e).direction==="rtl"}const zv={convertOffsetParentRelativeRectToViewportRelativeRect:yv,getDocumentElement:Et,getClippingRect:Cv,getOffsetParent:ql,getElementRects:Tv,getClientRects:vv,getDimensions:Sv,getScale:vn,isElement:gt,isRTL:Av};function Jl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Iv(e,t){let n=null,r;const i=Et(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||t(),!f||!p)return;const h=kr(c),v=kr(i.clientWidth-(d+f)),b=kr(i.clientHeight-(c+p)),y=kr(d),x={rootMargin:-h+"px "+-v+"px "+-b+"px "+-y+"px",threshold:nt(0,Wt(1,l))||1};let z=!0;function N(k){const $=k[0].intersectionRatio;if($!==l){if(!z)return o();$?o(!1,$):r=setTimeout(()=>{o(!1,1e-7)},1e3)}$===1&&!Jl(u,e.getBoundingClientRect())&&o(),z=!1}try{n=new IntersectionObserver(N,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,x)}n.observe(e)}return o(!0),a}function TC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ea(e),d=i||a?[...u?Xn(u):[],...Xn(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const c=u&&s?Iv(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let h,v=l?nn(e):null;l&&b();function b(){const y=nn(e);v&&!Jl(v,y)&&n(),v=y,h=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(_=>{i&&_.removeEventListener("scroll",n),a&&_.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Nv=nv,Rv=rv,Ov=Qy,jv=av,Pv=ev,os=Xy,Dv=iv,Lv=(e,t,n)=>{const r=new Map,i={platform:zv,...n},a={...i.platform,_c:r};return Gy(e,t,{...i,platform:a})};var $v=typeof document<"u",Mv=function(){},Er=$v?V.useLayoutEffect:Mv;function Zr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Zr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Zr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ss(e,t){const n=Yl(e);return Math.round(t*n)/n}function xi(e){const t=V.useRef(e);return Er(()=>{t.current=e}),t}function AC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=V.useState(r);Zr(f,r)||p(r);const[h,v]=V.useState(null),[b,y]=V.useState(null),_=V.useCallback(S=>{S!==k.current&&(k.current=S,v(S))},[]),x=V.useCallback(S=>{S!==$.current&&($.current=S,y(S))},[]),z=a||h,N=o||b,k=V.useRef(null),$=V.useRef(null),R=V.useRef(d),U=l!=null,w=xi(l),M=xi(i),P=xi(u),W=V.useCallback(()=>{if(!k.current||!$.current)return;const S={placement:t,strategy:n,middleware:f};M.current&&(S.platform=M.current),Lv(k.current,$.current,S).then(X=>{const g={...X,isPositioned:P.current!==!1};Z.current&&!Zr(R.current,g)&&(R.current=g,_d.flushSync(()=>{c(g)}))})},[f,t,n,M,P]);Er(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,c(S=>({...S,isPositioned:!1})))},[u]);const Z=V.useRef(!1);Er(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Er(()=>{if(z&&(k.current=z),N&&($.current=N),z&&N){if(w.current)return w.current(z,N,W);W()}},[z,N,W,w,U]);const O=V.useMemo(()=>({reference:k,floating:$,setReference:_,setFloating:x}),[_,x]),C=V.useMemo(()=>({reference:z,floating:N}),[z,N]),j=V.useMemo(()=>{const S={position:n,left:0,top:0};if(!C.floating)return S;const X=ss(C.floating,d.x),g=ss(C.floating,d.y);return s?{...S,transform:"translate("+X+"px, "+g+"px)",...Yl(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:g}},[n,s,C.floating,d.x,d.y]);return V.useMemo(()=>({...d,update:W,refs:O,elements:C,floatingStyles:j}),[d,W,O,C,j])}const Fv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?os({element:r.current,padding:i}).fn(n):{}:r?os({element:r,padding:i}).fn(n):{}}}},zC=(e,t)=>({...Nv(e),options:[e,t]}),IC=(e,t)=>({...Rv(e),options:[e,t]}),NC=(e,t)=>({...Dv(e),options:[e,t]}),RC=(e,t)=>({...Ov(e),options:[e,t]}),OC=(e,t)=>({...jv(e),options:[e,t]}),jC=(e,t)=>({...Pv(e),options:[e,t]}),PC=(e,t)=>({...Fv(e),options:[e,t]});function DC(){}function Zv(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Bv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uv={};function ls(e,t){return(Uv.jsx?Vv:Bv).test(e)}const Hv=/[ \t\n\f\r]/g;function Wv(e){return typeof e=="object"?e.type==="text"?us(e.value):!1:us(e)}function us(e){return e.replace(Hv,"")===""}class ir{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ir.prototype.normal={};ir.prototype.property={};ir.prototype.space=void 0;function Kl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ir(n,r,t)}function ea(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let qv=0;const ae=sn(),Ie=sn(),ta=sn(),D=sn(),_e=sn(),bn=sn(),tt=sn();function sn(){return 2**++qv}const na=Object.freeze(Object.defineProperty({__proto__:null,boolean:ae,booleanish:Ie,commaOrSpaceSeparated:tt,commaSeparated:bn,number:D,overloadedBoolean:ta,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),ki=Object.keys(na);class Ta extends Ye{constructor(t,n,r,i){let a=-1;if(super(t,n),cs(this,"space",i),typeof r=="number")for(;++a<ki.length;){const o=ki[a];cs(this,ki[a],(r&na[o])===na[o])}}}Ta.prototype.defined=!0;function cs(e,t,n){n&&(e[t]=n)}function On(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ta(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ea(r)]=r,n[ea(a.attribute)]=r}return new ir(t,n,e.space)}const Gl=On({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:_e,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:D,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:_e,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Ie,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xl(e,t){return t in e?e[t]:t}function Ql(e,t){return Xl(e,t.toLowerCase())}const Jv=On({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bn,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:ae,allowPaymentRequest:ae,allowUserMedia:ae,alt:null,as:null,async:ae,autoCapitalize:null,autoComplete:_e,autoFocus:ae,autoPlay:ae,blocking:_e,capture:null,charSet:null,checked:ae,cite:null,className:_e,cols:D,colSpan:null,content:null,contentEditable:Ie,controls:ae,controlsList:_e,coords:D|bn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ae,defer:ae,dir:null,dirName:null,disabled:ae,download:ta,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ae,formTarget:null,headers:_e,height:D,hidden:ta,high:D,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:ae,inputMode:null,integrity:null,is:null,isMap:ae,itemId:null,itemProp:_e,itemRef:_e,itemScope:ae,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ae,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:ae,muted:ae,name:null,nonce:null,noModule:ae,noValidate:ae,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:ae,optimum:D,pattern:null,ping:_e,placeholder:null,playsInline:ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ae,referrerPolicy:null,rel:_e,required:ae,reversed:ae,rows:D,rowSpan:D,sandbox:_e,scope:null,scoped:ae,seamless:ae,selected:ae,shadowRootClonable:ae,shadowRootDelegatesFocus:ae,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:ae,useMap:null,value:Ie,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ae,declare:ae,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:ae,noHref:ae,noShade:ae,noWrap:ae,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ae,disableRemotePlayback:ae,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:Ql}),Yv=On({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-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:tt,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:_e,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:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,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:bn,g2:bn,glyphName:bn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,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:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tt,rev:tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tt,requiredFeatures:tt,requiredFonts:tt,requiredFormats:tt,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:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tt,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xl}),eu=On({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()}}),tu=On({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ql}),nu=On({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Kv={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"},Gv=/[A-Z]/g,ds=/-[a-z]/g,Xv=/^data[-\w.:]+$/i;function Qv(e,t){const n=ea(t);let r=t,i=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xv.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ds,tb);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ds.test(a)){let o=a.replace(Gv,eb);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ta}return new i(r,t)}function eb(e){return"-"+e.toLowerCase()}function tb(e){return e.charAt(1).toUpperCase()}const nb=Kl([Gl,Jv,eu,tu,nu],"html"),Aa=Kl([Gl,Yv,eu,tu,nu],"svg");function rb(e){return e.join(" ").trim()}var dn={},wi,fs;function ib(){if(fs)return wi;fs=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
21
|
+
`,u="/",d="*",c="",f="comment",p="declaration";function h(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var _=1,x=1;function z(Z){var O=Z.match(t);O&&(_+=O.length);var C=Z.lastIndexOf(l);x=~C?Z.length-C:x+Z.length}function N(){var Z={line:_,column:x};return function(O){return O.position=new k(Z),U(),O}}function k(Z){this.start=Z,this.end={line:_,column:x},this.source=y.source}k.prototype.content=b;function $(Z){var O=new Error(y.source+":"+_+":"+x+": "+Z);if(O.reason=Z,O.filename=y.source,O.line=_,O.column=x,O.source=b,!y.silent)throw O}function R(Z){var O=Z.exec(b);if(O){var C=O[0];return z(C),b=b.slice(C.length),O}}function U(){R(n)}function w(Z){var O;for(Z=Z||[];O=M();)O!==!1&&Z.push(O);return Z}function M(){var Z=N();if(!(u!=b.charAt(0)||d!=b.charAt(1))){for(var O=2;c!=b.charAt(O)&&(d!=b.charAt(O)||u!=b.charAt(O+1));)++O;if(O+=2,c===b.charAt(O-1))return $("End of comment missing");var C=b.slice(2,O-2);return x+=2,z(C),b=b.slice(O),x+=2,Z({type:f,comment:C})}}function P(){var Z=N(),O=R(r);if(O){if(M(),!R(i))return $("property missing ':'");var C=R(a),j=Z({type:p,property:v(O[0].replace(e,c)),value:C?v(C[0].replace(e,c)):c});return R(o),j}}function W(){var Z=[];w(Z);for(var O;O=P();)O!==!1&&(Z.push(O),w(Z));return Z}return U(),W()}function v(b){return b?b.replace(s,c):c}return wi=h,wi}var ps;function ab(){if(ps)return dn;ps=1;var e=dn&&dn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=n;const t=e(ib());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),s=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:d}=l;s?i(u,d,l):d&&(a=a||{},a[u]=d)}),a}return dn}var Mn={},hs;function ob(){if(hs)return Mn;hs=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},o=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),a(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,o))};return Mn.camelCase=l,Mn}var Fn,ms;function sb(){if(ms)return Fn;ms=1;var e=Fn&&Fn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ab()),n=ob();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,Fn=r,Fn}var lb=sb();const ub=Ys(lb),ru=iu("end"),za=iu("start");function iu(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 cb(e){const t=za(e),n=ru(e);if(t&&n)return{start:t,end:n}}function Un(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gs(e.position):"start"in e||"end"in e?gs(e):"line"in e||"column"in e?ra(e):""}function ra(e){return ys(e&&e.line)+":"+ys(e&&e.column)}function gs(e){return ra(e&&e.start)+"-"+ra(e&&e.end)}function ys(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!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"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Un(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=o&&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}}Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;const Ia={}.hasOwnProperty,db=new Map,fb=/[A-Z]/g,pb=new Set(["table","tbody","thead","tfoot","tr"]),hb=new Set(["td","th"]),au="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function LC(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=wb(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=kb(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Aa:nb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ou(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ou(e,t,n){if(t.type==="element")return mb(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return vb(e,t,n);if(t.type==="mdxjsEsm")return yb(e,t);if(t.type==="root")return bb(e,t,n);if(t.type==="text")return xb(e,t)}function mb(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Aa,e.schema=i),e.ancestors.push(t);const a=lu(e,t.tagName,!1),o=_b(e,t);let s=Ra(e,t);return pb.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Wv(l):!0})),su(e,o,a,t),Na(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function gb(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)}Qn(e,t.position)}function yb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qn(e,t.position)}function vb(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Aa,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:lu(e,t.name,!0),o=Cb(e,t),s=Ra(e,t);return su(e,o,a,t),Na(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function bb(e,t,n){const r={};return Na(r,Ra(e,t)),e.create(t,e.Fragment,r,n)}function xb(e,t){return t.value}function su(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Na(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kb(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function wb(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=za(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function _b(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ia.call(t.properties,i)){const a=Sb(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&hb.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Cb(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 o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Qn(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else Qn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ra(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:db;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const s=ou(e,a,o);s!==void 0&&n.push(s)}return n}function Sb(e,t,n){const r=Qv(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Zv(n):rb(n)),r.property==="style"){let i=typeof n=="object"?n:Eb(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Tb(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Kv[r.property]||r.property:r.attribute,n]}}function Eb(e,t){try{return ub(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=au+"#cannot-parse-style-attribute",i}}function lu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=ls(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=ls(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ia.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qn(e)}function Qn(e,t){const n=new Fe("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=au+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tb(e){const t={};let n;for(n in e)Ia.call(e,n)&&(t[Ab(n)]=e[n]);return t}function Ab(e){let t=e.replace(fb,zb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zb(e){return"-"+e.toLowerCase()}const $C={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"]},Ib={};function Oa(e,t){const n=Ib,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return uu(e,r,i)}function uu(e,t,n){if(Nb(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 vs(e.children,t,n)}return Array.isArray(e)?vs(e,t,n):""}function vs(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=uu(e[i],t,n);return r.join("")}function Nb(e){return!!(e&&typeof e=="object")}const bs=document.createElement("i");function ja(e){const t="&"+e+";";bs.innerHTML=t;const n=bs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function it(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function lt(e,t){return e.length>0?(it(e,e.length,0,t),e):t}const xs={}.hasOwnProperty;function cu(e){const t={};let n=-1;for(;++n<e.length;)Rb(t,e[n]);return t}function Rb(e,t){let n;for(n in t){const i=(xs.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){xs.call(i,o)||(i[o]=[]);const s=a[o];Ob(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Ob(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);it(e,0,0,r)}function du(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 mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Be=Yt(/[A-Za-z]/),Me=Yt(/[\dA-Za-z]/),jb=Yt(/[#-'*+\--9=?A-Z^-~]/);function Br(e){return e!==null&&(e<32||e===127)}const ia=Yt(/\d/),Pb=Yt(/[\dA-Fa-f]/),Db=Yt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const ei=Yt(new RegExp("\\p{P}|\\p{S}","u")),rn=Yt(/\s/);function Yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Me(e.charCodeAt(n+1))&&Me(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return ce(l)?(e.enter(n),s(l)):t(l)}function s(l){return ce(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Lb={tokenize:$b};function $b(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ee(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Mb={tokenize:Fb},ks={tokenize:Zb};function Fb(e){const t=this,n=[];let r=0,i,a,o;return s;function s(x){if(r<n.length){const z=n[r];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const z=t.events.length;let N=z,k;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){k=t.events[N][1].end;break}y(r);let $=z;for(;$<t.events.length;)t.events[$][1].end={...k},$++;return it(t.events,N+1,0,t.events.slice(z)),t.events.length=$,u(x)}return s(x)}function u(x){if(r===n.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return h(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ks,d,c)(x)}function d(x){return i&&_(),y(r),f(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(x)}function f(x){return t.containerState={},e.attempt(ks,p,h)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function h(x){if(x===null){i&&_(),y(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),v(x)}function v(x){if(x===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(x);return}return ee(x)?(e.consume(x),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),v)}function b(x,z){const N=t.sliceStream(x);if(z&&N.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(N),t.parser.lazy[x.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const $=t.events.length;let R=$,U,w;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(U){w=t.events[R][1].end;break}U=!0}for(y(r),k=$;k<t.events.length;)t.events[k][1].end={...w},k++;it(t.events,R+1,0,t.events.slice($)),t.events.length=k}}function y(x){let z=n.length;for(;z-- >x;){const N=n[z];t.containerState=N[1],N[0].exit.call(t,e)}n.length=x}function _(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Zb(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function An(e){if(e===null||we(e)||rn(e))return 1;if(ei(e))return 2}function ti(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const aa={name:"attention",resolveAll:Bb,tokenize:Vb};function Bb(e,t){let n=-1,r,i,a,o,s,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},f={...e[n][1].start};ws(c,-l),ws(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=lt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=lt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=lt(u,ti(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=lt(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=lt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,it(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Vb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=An(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),d=An(l),c=!d||d===2&&i||n.includes(l),f=!i||i===2&&d||n.includes(r);return u._open=!!(a===42?c:c&&(i||!f)),u._close=!!(a===42?f:f&&(d||!c)),t(l)}}function ws(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ub={name:"autolink",tokenize:Hb};function Hb(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return Be(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||Me(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Me(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Br(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),d):jb(p)?(e.consume(p),u):n(p)}function d(p){return Me(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Me(p))&&r++<63){const h=p===45?f:c;return e.consume(p),h}return n(p)}}const ar={partial:!0,tokenize:Wb};function Wb(e,t,n){return r;function r(a){return ce(a)?me(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ee(a)?t(a):n(a)}}const fu={continuation:{tokenize:Jb},exit:Yb,name:"blockQuote",tokenize:qb};function qb(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Jb(e,t,n){const r=this;return i;function i(o){return ce(o)?me(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(fu,t,n)(o)}}function Yb(e){e.exit("blockQuote")}const pu={name:"characterEscape",tokenize:Kb};function Kb(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Db(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const hu={name:"characterReference",tokenize:Gb};function Gb(e,t,n){const r=this;let i=0,a,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Me,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Pb,d):(e.enter("characterReferenceValue"),a=7,o=ia,d(c))}function d(c){if(c===59&&i){const f=e.exit("characterReferenceValue");return o===Me&&!ja(r.sliceSerialize(f))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<a?(e.consume(c),d):n(c)}}const _s={partial:!0,tokenize:Qb},Cs={concrete:!0,name:"codeFenced",tokenize:Xb};function Xb(e,t,n){const r=this,i={partial:!0,tokenize:N};let a=0,o=0,s;return l;function l(k){return u(k)}function u(k){const $=r.events[r.events.length-1];return a=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===s?(o++,e.consume(k),d):o<3?n(k):(e.exit("codeFencedFenceSequence"),ce(k)?me(e,c,"whitespace")(k):c(k))}function c(k){return k===null||ee(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(_s,v,z)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):ce(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,p,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),f)}function p(k){return k===null||ee(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===s?n(k):(e.consume(k),h)}function v(k){return e.attempt(i,z,b)(k)}function b(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y}function y(k){return a>0&&ce(k)?me(e,_,"linePrefix",a+1)(k):_(k)}function _(k){return k===null||ee(k)?e.check(_s,v,z)(k):(e.enter("codeFlowValue"),x(k))}function x(k){return k===null||ee(k)?(e.exit("codeFlowValue"),_(k)):(e.consume(k),x)}function z(k){return e.exit("codeFenced"),t(k)}function N(k,$,R){let U=0;return w;function w(O){return k.enter("lineEnding"),k.consume(O),k.exit("lineEnding"),M}function M(O){return k.enter("codeFencedFence"),ce(O)?me(k,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):P(O)}function P(O){return O===s?(k.enter("codeFencedFenceSequence"),W(O)):R(O)}function W(O){return O===s?(U++,k.consume(O),W):U>=o?(k.exit("codeFencedFenceSequence"),ce(O)?me(k,Z,"whitespace")(O):Z(O)):R(O)}function Z(O){return O===null||ee(O)?(k.exit("codeFencedFence"),$(O)):R(O)}}}function Qb(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const _i={name:"codeIndented",tokenize:tx},ex={partial:!0,tokenize:nx};function tx(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),me(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):ee(u)?e.attempt(ex,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ee(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function nx(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):me(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):ee(o)?i(o):n(o)}}const rx={name:"codeText",previous:ax,resolve:ix,tokenize:ox};function ix(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ax(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ox(e,t,n){let r=0,i,a;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(a=e.enter("codeTextSequence"),i=0,d(c)):ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ee(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(a.type="codeTextData",u(c))}}class sx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Zn(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),Zn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zn(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);Zn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zn(this.left,n.reverse())}}}function Zn(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 mu(e){const t={};let n=-1,r,i,a,o,s,l,u;const d=new sx(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,lx(d,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return it(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function lx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let d,c,f=-1,p=n,h=0,v=0;const b=[v];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,b.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),f=b.length;f--;){const y=s.slice(b[f],b[f+1]),_=a.pop();l.push([_,_+y.length-1]),e.splice(_,2,y)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const ux={resolve:dx,tokenize:fx},cx={partial:!0,tokenize:px};function dx(e){return mu(e),e}function fx(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):ee(s)?e.check(cx,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function px(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),me(e,a,"linePrefix")}function a(o){if(o===null||ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function gu(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||Br(y)?n(y):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||ee(y)?n(y):(e.consume(y),y===92?h:p)}function h(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function v(y){return!d&&(y===null||y===41||we(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(y)):d<u&&y===40?(e.consume(y),d++,v):y===41?(e.consume(y),d--,v):y===null||y===32||y===40||Br(y)?n(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function yu(e,t,n,r,i,a){const o=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||ee(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!ce(p)),p===92?f:c)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function vu(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),l(o)):f===null?n(f):ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||ee(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:d)}function c(f){return f===o||f===92?(e.consume(f),d):d(f)}}function Hn(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const hx={name:"definition",tokenize:gx},mx={partial:!0,tokenize:yx};function gx(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return yu.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return we(p)?Hn(e,u)(p):u(p)}function u(p){return gu(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(mx,c,c)(p)}function c(p){return ce(p)?me(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ee(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function yx(e,t,n){return r;function r(s){return we(s)?Hn(e,i)(s):n(s)}function i(s){return vu(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ce(s)?me(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ee(s)?t(s):n(s)}}const vx={name:"hardBreakEscape",tokenize:bx};function bx(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const xx={name:"headingAtx",resolve:kx,tokenize:wx};function kx(e,t){let n=e.length-2,r=3,i,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&&(i={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"},it(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function wx(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||we(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ee(d)?(e.exit("atxHeading"),t(d)):ce(d)?me(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||we(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const _x=["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"],Ss=["pre","script","style","textarea"],Cx={concrete:!0,name:"htmlFlow",resolveTo:Tx,tokenize:Ax},Sx={partial:!0,tokenize:Ix},Ex={partial:!0,tokenize:zx};function Tx(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 Ax(e,t,n){const r=this;let i,a,o,s,l;return u;function u(m){return d(m)}function d(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),a=!0,v):m===63?(e.consume(m),i=3,r.interrupt?t:g):Be(m)?(e.consume(m),o=String.fromCharCode(m),b):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,s=0,h):Be(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function h(m){const Q="CDATA[";return m===Q.charCodeAt(s++)?(e.consume(m),s===Q.length?r.interrupt?t:P:h):n(m)}function v(m){return Be(m)?(e.consume(m),o=String.fromCharCode(m),b):n(m)}function b(m){if(m===null||m===47||m===62||we(m)){const Q=m===47,oe=o.toLowerCase();return!Q&&!a&&Ss.includes(oe)?(i=1,r.interrupt?t(m):P(m)):_x.includes(o.toLowerCase())?(i=6,Q?(e.consume(m),y):r.interrupt?t(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):a?_(m):x(m))}return m===45||Me(m)?(e.consume(m),o+=String.fromCharCode(m),b):n(m)}function y(m){return m===62?(e.consume(m),r.interrupt?t:P):n(m)}function _(m){return ce(m)?(e.consume(m),_):w(m)}function x(m){return m===47?(e.consume(m),w):m===58||m===95||Be(m)?(e.consume(m),z):ce(m)?(e.consume(m),x):w(m)}function z(m){return m===45||m===46||m===58||m===95||Me(m)?(e.consume(m),z):N(m)}function N(m){return m===61?(e.consume(m),k):ce(m)?(e.consume(m),N):x(m)}function k(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),l=m,$):ce(m)?(e.consume(m),k):R(m)}function $(m){return m===l?(e.consume(m),l=null,U):m===null||ee(m)?n(m):(e.consume(m),$)}function R(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||we(m)?N(m):(e.consume(m),R)}function U(m){return m===47||m===62||ce(m)?x(m):n(m)}function w(m){return m===62?(e.consume(m),M):n(m)}function M(m){return m===null||ee(m)?P(m):ce(m)?(e.consume(m),M):n(m)}function P(m){return m===45&&i===2?(e.consume(m),C):m===60&&i===1?(e.consume(m),j):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),X):ee(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Sx,Te,W)(m)):m===null||ee(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),P)}function W(m){return e.check(Ex,Z,Te)(m)}function Z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),O}function O(m){return m===null||ee(m)?W(m):(e.enter("htmlFlowData"),P(m))}function C(m){return m===45?(e.consume(m),g):P(m)}function j(m){return m===47?(e.consume(m),o="",S):P(m)}function S(m){if(m===62){const Q=o.toLowerCase();return Ss.includes(Q)?(e.consume(m),xe):P(m)}return Be(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),S):P(m)}function X(m){return m===93?(e.consume(m),g):P(m)}function g(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),g):P(m)}function xe(m){return m===null||ee(m)?(e.exit("htmlFlowData"),Te(m)):(e.consume(m),xe)}function Te(m){return e.exit("htmlFlow"),t(m)}}function zx(e,t,n){const r=this;return i;function i(o){return ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Ix(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ar,t,n)}}const Nx={name:"htmlText",tokenize:Rx};function Rx(e,t,n){const r=this;let i,a,o;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),N):g===63?(e.consume(g),x):Be(g)?(e.consume(g),R):n(g)}function u(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),a=0,h):Be(g)?(e.consume(g),_):n(g)}function d(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),f):ee(g)?(o=c,j(g)):(e.consume(g),c)}function f(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?C(g):g===45?f(g):c(g)}function h(g){const xe="CDATA[";return g===xe.charCodeAt(a++)?(e.consume(g),a===xe.length?v:h):n(g)}function v(g){return g===null?n(g):g===93?(e.consume(g),b):ee(g)?(o=v,j(g)):(e.consume(g),v)}function b(g){return g===93?(e.consume(g),y):v(g)}function y(g){return g===62?C(g):g===93?(e.consume(g),y):v(g)}function _(g){return g===null||g===62?C(g):ee(g)?(o=_,j(g)):(e.consume(g),_)}function x(g){return g===null?n(g):g===63?(e.consume(g),z):ee(g)?(o=x,j(g)):(e.consume(g),x)}function z(g){return g===62?C(g):x(g)}function N(g){return Be(g)?(e.consume(g),k):n(g)}function k(g){return g===45||Me(g)?(e.consume(g),k):$(g)}function $(g){return ee(g)?(o=$,j(g)):ce(g)?(e.consume(g),$):C(g)}function R(g){return g===45||Me(g)?(e.consume(g),R):g===47||g===62||we(g)?U(g):n(g)}function U(g){return g===47?(e.consume(g),C):g===58||g===95||Be(g)?(e.consume(g),w):ee(g)?(o=U,j(g)):ce(g)?(e.consume(g),U):C(g)}function w(g){return g===45||g===46||g===58||g===95||Me(g)?(e.consume(g),w):M(g)}function M(g){return g===61?(e.consume(g),P):ee(g)?(o=M,j(g)):ce(g)?(e.consume(g),M):U(g)}function P(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,W):ee(g)?(o=P,j(g)):ce(g)?(e.consume(g),P):(e.consume(g),Z)}function W(g){return g===i?(e.consume(g),i=void 0,O):g===null?n(g):ee(g)?(o=W,j(g)):(e.consume(g),W)}function Z(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||we(g)?U(g):(e.consume(g),Z)}function O(g){return g===47||g===62||we(g)?U(g):n(g)}function C(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function j(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),S}function S(g){return ce(g)?me(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):X(g)}function X(g){return e.enter("htmlTextData"),o(g)}}const Pa={name:"labelEnd",resolveAll:Dx,resolveTo:Lx,tokenize:$x},Ox={tokenize:Mx},jx={tokenize:Fx},Px={tokenize:Zx};function Dx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&it(e,0,e.length,n),e}function Lx(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=lt(s,e.slice(a+1,a+r+3)),s=lt(s,[["enter",d,t]]),s=lt(s,ti(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=lt(s,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),s=lt(s,e.slice(o+1)),s=lt(s,[["exit",l,t]]),it(e,a,e.length,s),e}function $x(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?c(f):(o=r.parser.defined.includes(mt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Ox,d,o?d:c)(f):f===91?e.attempt(jx,d,o?u:c)(f):o?d(f):c(f)}function u(f){return e.attempt(Px,d,c)(f)}function d(f){return t(f)}function c(f){return a._balanced=!0,n(f)}}function Mx(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return we(c)?Hn(e,a)(c):a(c)}function a(c){return c===41?d(c):gu(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return we(c)?Hn(e,l)(c):d(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?vu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return we(c)?Hn(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Fx(e,t,n){const r=this;return i;function i(s){return yu.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Zx(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Bx={name:"labelStartImage",resolveAll:Pa.resolveAll,tokenize:Vx};function Vx(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ux={name:"labelStartLink",resolveAll:Pa.resolveAll,tokenize:Hx};function Hx(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Ci={name:"lineEnding",tokenize:Wx};function Wx(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Tr={name:"thematicBreak",tokenize:qx};function qx(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ce(u)?me(e,s,"whitespace")(u):s(u))}}const We={continuation:{tokenize:Gx},exit:Qx,name:"list",tokenize:Kx},Jx={partial:!0,tokenize:ek},Yx={partial:!0,tokenize:Xx};function Kx(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ia(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Tr,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return ia(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ar,r.interrupt?n:d,e.attempt(Jx,f,c))}function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function c(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Gx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ar,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ce(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yx,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(We,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Xx(e,t,n){const r=this;return me(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Qx(e){e.exit(this.containerState.type)}function ek(e,t,n){const r=this;return me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ce(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Es={name:"setextUnderline",resolveTo:tk,tokenize:nk};function tk(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function nk(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ce(u)?me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const rk={tokenize:ik};function ik(e){const t=this,n=e.attempt(ar,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ux,i)),"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 i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ak={resolveAll:xu()},ok=bu("string"),sk=bu("text");function bu(e){return{resolveAll:xu(e==="text"?lk:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return u(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const c=i[d];let f=-1;if(c)for(;++f<c.length;){const p=c[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function xu(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function lk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const uk={42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:fu},ck={91:hx},dk={[-2]:_i,[-1]:_i,32:_i},fk={35:xx,42:Tr,45:[Es,Tr],60:Cx,61:Es,95:Tr,96:Cs,126:Cs},pk={38:hu,92:pu},hk={[-5]:Ci,[-4]:Ci,[-3]:Ci,33:Bx,38:hu,42:aa,60:[Ub,Nx],91:Ux,92:[vx,pu],93:Pa,95:aa,96:rx},mk={null:[aa,ak]},gk={null:[42,95]},yk={null:[]},vk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:gk,contentInitial:ck,disable:yk,document:uk,flow:fk,flowInitial:dk,insideSpan:mk,string:pk,text:hk},Symbol.toStringTag,{value:"Module"}));function bk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:$(N),check:$(k),consume:_,enter:x,exit:z,interrupt:$(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:h,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function c(M){return o=lt(o,M),b(),o[o.length-1]!==null?[]:(R(t,0),u.events=ti(a,u.events,u),u.events)}function f(M,P){return kk(p(M),P)}function p(M){return xk(o,M)}function h(){const{_bufferIndex:M,_index:P,line:W,column:Z,offset:O}=r;return{_bufferIndex:M,_index:P,line:W,column:Z,offset:O}}function v(M){i[M.line]=M.column,w()}function b(){let M;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(M){d=d(M)}function _(M){ee(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,w()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function x(M,P){const W=P||{};return W.type=M,W.start=h(),u.events.push(["enter",W,u]),s.push(W),W}function z(M){const P=s.pop();return P.end=h(),u.events.push(["exit",P,u]),P}function N(M,P){R(M,P.from)}function k(M,P){P.restore()}function $(M,P){return W;function W(Z,O,C){let j,S,X,g;return Array.isArray(Z)?Te(Z):"tokenize"in Z?Te([Z]):xe(Z);function xe(ge){return ve;function ve(de){const Oe=de!==null&&ge[de],De=de!==null&&ge.null,Ge=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(De)?De:De?[De]:[]];return Te(Ge)(de)}}function Te(ge){return j=ge,S=0,ge.length===0?C:m(ge[S])}function m(ge){return ve;function ve(de){return g=U(),X=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?oe():ge.tokenize.call(P?Object.assign(Object.create(u),P):u,l,Q,oe)(de)}}function Q(ge){return M(X,g),O}function oe(ge){return g.restore(),++S<j.length?m(j[S]):C}}}function R(M,P){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&it(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function U(){const M=h(),P=u.previous,W=u.currentConstruct,Z=u.events.length,O=Array.from(s);return{from:Z,restore:C};function C(){r=M,u.previous=P,u.currentConstruct=W,u.events.length=Z,s=O,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function xk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function kk(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
|
22
|
+
`;break}case-3:{o=`\r
|
|
23
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function wk(e){const r={constructs:cu([vk,...(e||{}).extensions||[]]),content:i(Lb),defined:[],document:i(Mb),flow:i(rk),lazy:{},string:i(ok),text:i(sk)};return r;function i(a){return o;function o(s){return bk(r,a,s)}}}function _k(e){for(;!mu(e););return e}const Ts=/[\0\t\n\r]/g;function Ck(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let u,d,c,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),c=0,t="",n&&(a.charCodeAt(0)===65279&&c++,n=void 0);c<a.length;){if(Ts.lastIndex=c,u=Ts.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){t=a.slice(c);break}if(p===10&&c===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<f&&(l.push(a.slice(c,f)),e+=f-c),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Sk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ek(e){return e.replace(Sk,Tk)}function Tk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return du(n.slice(a?2:1),a?16:10)}return ja(n)||e}const ku={}.hasOwnProperty;function Ak(e,t,n){return typeof t!="string"&&(n=t,t=void 0),zk(n)(_k(wk(n).document().write(Ck()(e,t,!0))))}function zk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ot),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(sr),blockQuote:a(De),characterEscape:U,characterReference:U,codeFenced:a(Ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ge,o),codeText:a(Xe,o),codeTextData:U,data:U,codeFlowValue:U,definition:a(oi),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Dn),hardBreakEscape:a(Ln),hardBreakTrailing:a(Ln),htmlFlow:a(jt,o),htmlFlowData:U,htmlText:a(jt,o),htmlTextData:U,image:a(lr),label:o,link:a(ot),listItem:a(si),listItemValue:f,listOrdered:a(ur,c),listUnordered:a(ur),paragraph:a(Ze),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(sr),strong:a(Pt),thematicBreak:a(ui)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:Oe,autolinkProtocol:de,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:ge,characterReference:ve,codeFenced:l(b),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:w,codeIndented:l(y),codeText:l(O),codeTextData:w,data:w,definition:l(),definitionDestinationString:z,definitionLabelString:_,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(W),htmlFlowData:w,htmlText:l(Z),htmlTextData:w,image:l(j),label:X,labelText:S,lineEnding:M,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:g,resourceTitleString:xe,resource:Te,setextHeading:l(R),setextHeadingLineSequence:$,setextHeadingText:k,strong:l(),thematicBreak:l()}};wu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let B={type:"root",children:[]};const te={stack:[B],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:d,data:n},le=[];let he=-1;for(;++he<T.length;)if(T[he][1].type==="listOrdered"||T[he][1].type==="listUnordered")if(T[he][0]==="enter")le.push(he);else{const Ue=le.pop();he=i(T,Ue,he)}for(he=-1;++he<T.length;){const Ue=t[T[he][0]];ku.call(Ue,T[he][1].type)&&Ue[T[he][1].type].call(Object.assign({sliceSerialize:T[he][2].sliceSerialize},te),T[he][1])}if(te.tokenStack.length>0){const Ue=te.tokenStack[te.tokenStack.length-1];(Ue[1]||As).call(te,void 0,Ue[0])}for(B.position={start:Ft(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ft(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)B=t.transforms[he](B)||B;return B}function i(T,B,te){let le=B-1,he=-1,Ue=!1,He,ft,Gt,Dt;for(;++le<=te;){const Le=T[le];switch(Le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Le[0]==="enter"?he++:he--,Dt=void 0;break}case"lineEndingBlank":{Le[0]==="enter"&&(He&&!Dt&&!he&&!Gt&&(Gt=le),Dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dt=void 0}if(!he&&Le[0]==="enter"&&Le[1].type==="listItemPrefix"||he===-1&&Le[0]==="exit"&&(Le[1].type==="listUnordered"||Le[1].type==="listOrdered")){if(He){let Lt=le;for(ft=void 0;Lt--;){const Qe=T[Lt];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;ft&&(T[ft][1].type="lineEndingBlank",Ue=!0),Qe[1].type="lineEnding",ft=Lt}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}Gt&&(!ft||Gt<ft)&&(He._spread=!0),He.end=Object.assign({},ft?T[ft][1].start:Le[1].end),T.splice(ft||le,0,["exit",He,Le[2]]),le++,te++}if(Le[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},Le[1].start),end:void 0};He=Lt,T.splice(le,0,["enter",Lt,Le[2]]),le++,te++,Gt=void 0,Dt=!0}}}return T[B][1]._spread=Ue,te}function a(T,B){return te;function te(le){s.call(this,T(le),le),B&&B.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,B,te){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([B,te||void 0]),T.position={start:Ft(B.start),end:void 0}}function l(T){return B;function B(te){T&&T.call(this,te),u.call(this,te)}}function u(T,B){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==T.type&&(B?B.call(this,T,le[0]):(le[1]||As).call(this,T,le[0]));else throw new Error("Cannot close `"+T.type+"` ("+Un({start:T.start,end:T.end})+"): it’s not open");te.position.end=Ft(T.end)}function d(){return Oa(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(T){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function p(){const T=this.resume(),B=this.stack[this.stack.length-1];B.lang=T}function h(){const T=this.resume(),B=this.stack[this.stack.length-1];B.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/(\r?\n|\r)$/g,"")}function _(T){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=mt(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function z(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function N(T){const B=this.stack[this.stack.length-1];if(!B.depth){const te=this.sliceSerialize(T).length;B.depth=te}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function $(T){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function U(T){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=li(),le.position={start:Ft(T.start),end:void 0},te.push(le)),this.stack.push(le)}function w(T){const B=this.stack.pop();B.value+=this.sliceSerialize(T),B.position.end=Ft(T.end)}function M(T){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=B.children[B.children.length-1];te.position.end=Ft(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(U.call(this,T),w.call(this,T))}function P(){this.data.atHardBreak=!0}function W(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function Z(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function O(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function C(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function j(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function S(T){const B=this.sliceSerialize(T),te=this.stack[this.stack.length-2];te.label=Ek(B),te.identifier=mt(B).toLowerCase()}function X(){const T=this.stack[this.stack.length-1],B=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=T.children;te.children=le}else te.alt=B}function g(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function xe(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function Te(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function Q(T){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=mt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function oe(T){this.data.characterReferenceType=T.type}function ge(T){const B=this.sliceSerialize(T),te=this.data.characterReferenceType;let le;te?(le=du(B,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=ja(B);const he=this.stack[this.stack.length-1];he.value+=le}function ve(T){const B=this.stack.pop();B.position.end=Ft(T.end)}function de(T){w.call(this,T);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(T)}function Oe(T){w.call(this,T);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(T)}function De(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function Xe(){return{type:"inlineCode",value:""}}function oi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Dn(){return{type:"emphasis",children:[]}}function sr(){return{type:"heading",depth:0,children:[]}}function Ln(){return{type:"break"}}function jt(){return{type:"html",value:""}}function lr(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function ur(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function si(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ze(){return{type:"paragraph",children:[]}}function Pt(){return{type:"strong",children:[]}}function li(){return{type:"text",value:""}}function ui(){return{type:"thematicBreak"}}}function Ft(e){return{line:e.line,column:e.column,offset:e.offset}}function wu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wu(e,r):Ik(e,r)}}function Ik(e,t){let n;for(n in t)if(ku.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 As(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Un({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Un({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Un({start:t.start,end:t.end})+") is still open")}function MC(e){const t=this;t.parser=n;function n(r){return Ak(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Nk(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 Rk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
24
|
+
`}]}function Ok(e,t){const n=t.value?t.value+`
|
|
25
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function jk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=jn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Lk(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 $k(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _u(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Mk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _u(e,t);const i={src:jn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Fk(e,t){const n={src:jn(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 Zk(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 Bk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _u(e,t);const i={href:jn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Vk(e,t){const n={href:jn(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 Uk(e,t,n){const r=e.all(t),i=n?Hk(n):Cu(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
26
|
+
`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
27
|
+
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Hk(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=Cu(n[r])}return t}function Cu(e){const t=e.spread;return t??e.children.length>1}function Wk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.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 qk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Yk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=za(t.children[1]),l=ru(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Gk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],f={},p=o?o[l]:void 0;p&&(f.align=p);let h={type:"element",tagName:a,properties:f,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function Xk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const zs=9,Is=32;function Qk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Ns(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ns(t.slice(i),i>0,!1)),a.join("")}function Ns(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===zs||a===Is;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===zs||a===Is;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ew(e,t){const n={type:"text",value:Qk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const nw={blockquote:Nk,break:Rk,code:Ok,delete:jk,emphasis:Pk,footnoteReference:Dk,heading:Lk,html:$k,imageReference:Mk,image:Fk,inlineCode:Zk,linkReference:Bk,link:Vk,listItem:Uk,list:Wk,paragraph:qk,root:Jk,strong:Yk,table:Kk,tableCell:Xk,tableRow:Gk,text:ew,thematicBreak:tw,toml:wr,yaml:wr,definition:wr,footnoteDefinition:wr};function wr(){}const Su=-1,ni=0,Wn=1,Vr=2,Da=3,La=4,$a=5,Ma=6,Eu=7,Tu=8,Rs=typeof self=="object"?self:globalThis,rw=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case ni:case Su:return n(o,i);case Wn:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Vr:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case Da:return n(new Date(o),i);case La:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case $a:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case Ma:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Eu:{const{name:s,message:l}=o;return n(new Rs[s](l),i)}case Tu:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Rs[a](o),i)};return r},Os=e=>rw(new Map,e)(0),fn="",{toString:iw}={},{keys:aw}=Object,Bn=e=>{const t=typeof e;if(t!=="object"||!e)return[ni,t];const n=iw.call(e).slice(8,-1);switch(n){case"Array":return[Wn,fn];case"Object":return[Vr,fn];case"Date":return[Da,fn];case"RegExp":return[La,fn];case"Map":return[$a,fn];case"Set":return[Ma,fn];case"DataView":return[Wn,n]}return n.includes("Array")?[Wn,n]:n.includes("Error")?[Eu,n]:[Vr,n]},_r=([e,t])=>e===ni&&(t==="function"||t==="symbol"),ow=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=Bn(o);switch(s){case ni:{let d=o;switch(l){case"bigint":s=Tu,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([Su],o)}return i([s,d],o)}case Wn:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),i([l,[...f]],o)}const d=[],c=i([s,d],o);for(const f of o)d.push(a(f));return c}case Vr:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],c=i([s,d],o);for(const f of aw(o))(e||!_r(Bn(o[f])))&&d.push([a(f),a(o[f])]);return c}case Da:return i([s,o.toISOString()],o);case La:{const{source:d,flags:c}=o;return i([s,{source:d,flags:c}],o)}case $a:{const d=[],c=i([s,d],o);for(const[f,p]of o)(e||!(_r(Bn(f))||_r(Bn(p))))&&d.push([a(f),a(p)]);return c}case Ma:{const d=[],c=i([s,d],o);for(const f of o)(e||!_r(Bn(f)))&&d.push(a(f));return c}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},js=(e,{json:t,lossy:n}={})=>{const r=[];return ow(!(t||n),!!t,new Map,r)(e),r},Ur=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Os(js(e,t)):structuredClone(e):(e,t)=>Os(js(e,t));function sw(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 lw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||sw,r=e.options.footnoteBackLabel||lw,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),f=jn(c.toLowerCase());let p=0;const h=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++p<=v;){h.length>0&&h.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,p);typeof _=="string"&&(_={type:"text",value:_}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const _=b.children[b.children.length-1];_&&_.type==="text"?_.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else d.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ur(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
28
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
29
|
+
`}]}}const ri=(function(e){if(e==null)return pw;if(typeof e=="function")return ii(e);if(typeof e=="object")return Array.isArray(e)?cw(e):dw(e);if(typeof e=="string")return fw(e);throw new Error("Expected function, string, or object as test")});function cw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ri(e[n]);return ii(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function dw(e){const t=e;return ii(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function fw(e){return ii(t);function t(n){return n&&n.type===e}}function ii(e){return t;function t(n,r,i){return!!(hw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function pw(){return!0}function hw(e){return e!==null&&typeof e=="object"&&"type"in e}const Au=[],mw=!0,oa=!1,gw="skip";function zu(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=ri(i),o=r?-1:1;s(e,void 0,[])();function s(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Au,h,v,b;if((!t||a(l,u,d[d.length-1]||void 0))&&(p=yw(n(l,d)),p[0]===oa))return p;if("children"in l&&l.children){const y=l;if(y.children&&p[0]!==gw)for(v=(r?y.children.length:-1)+o,b=d.concat(y);v>-1&&v<y.children.length;){const _=y.children[v];if(h=s(_,v,b)(),h[0]===oa)return h;v=typeof h[1]=="number"?h[1]:v+o}}return p}}}function yw(e){return Array.isArray(e)?e:typeof e=="number"?[mw,e]:e==null?Au:[e]}function Iu(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),zu(e,a,s,i);function s(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return o(l,c,d)}}const sa={}.hasOwnProperty,vw={};function bw(e,t){const n=t||vw,r=new Map,i=new Map,a=new Map,o={...nw,...n.handlers},s={all:u,applyData:kw,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:xw,wrap:_w};return Iu(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();c.has(f)||c.set(f,d)}}),s;function l(d,c){const f=d.type,p=s.handlers[f];if(sa.call(s.handlers,f)&&p)return p(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:v,...b}=d,y=Ur(b);return y.children=s.all(d),y}return Ur(d)}return(s.options.unknownHandler||ww)(s,d,c)}function u(d){const c=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const h=s.one(f[p],d);if(h){if(p&&f[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Ps(h.value)),!Array.isArray(h)&&h.type==="element")){const v=h.children[0];v&&v.type==="text"&&(v.value=Ps(v.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function xw(e,t){e.position&&(t.position=cb(e))}function kw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Ur(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ww(e,t){const n=t.data||{},r="value"in t&&!(sa.call(n,"hProperties")||sa.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 _w(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
30
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
31
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
32
|
+
`}),n}function Ps(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ds(e,t){const n=bw(e,t),r=n.one(e,void 0),i=uw(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
33
|
+
`},i),a}function FC(e,t){return e&&"run"in e?async function(n,r){const i=Ds(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ds(n,{file:r,...e||t})}}function Ls(e){if(e)throw e}var Si,$s;function Cw(){if($s)return Si;$s=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!c)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},o=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return Si=function l(){var u,d,c,f,p,h,v=arguments[0],b=1,y=arguments.length,_=!1;for(typeof v=="boolean"&&(_=v,v=arguments[1]||{},b=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});b<y;++b)if(u=arguments[b],u!=null)for(d in u)c=s(v,d),f=s(u,d),v!==f&&(_&&f&&(a(f)||(p=i(f)))?(p?(p=!1,h=c&&i(c)?c:[]):h=c&&a(c)?c:{},o(v,{name:d,newValue:l(_,h,f)})):typeof f<"u"&&o(v,{name:d,newValue:f}));return v},Si}var Sw=Cw();const Ei=Ys(Sw);function la(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 Ew(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const d=e[++a];let c=-1;if(l){o(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,d?Tw(d,s)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Tw(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const d=u;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const xt={basename:Aw,dirname:zw,extname:Iw,join:Nw,sep:"/"};function Aw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');or(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function zw(e){if(or(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 Iw(e){or(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Nw(...e){let t=-1,n;for(;++t<e.length;)or(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Rw(n)}function Rw(e){or(e);const t=e.codePointAt(0)===47;let n=Ow(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ow(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function or(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jw={cwd:Pw};function Pw(){return"/"}function ua(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dw(e){if(typeof e=="string")e=new URL(e);else if(!ua(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 Lw(e)}function Lw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ti=["history","path","basename","stem","extname","dirname"];class $w{constructor(t){let n;t?ua(t)?n={path:t}:typeof t=="string"||Mw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ti.length;){const a=Ti[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Ti.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?xt.basename(this.path):void 0}set basename(t){zi(t,"basename"),Ai(t,"basename"),this.path=xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xt.dirname(this.path):void 0}set dirname(t){Ms(this.basename,"dirname"),this.path=xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xt.extname(this.path):void 0}set extname(t){if(Ai(t,"extname"),Ms(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=xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ua(t)&&(t=Dw(t)),zi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xt.basename(this.path,this.extname):void 0}set stem(t){zi(t,"stem"),Ai(t,"stem"),this.path=xt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Fe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ai(e,t){if(e&&e.includes(xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xt.sep+"`")}function zi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ms(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Mw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fw=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Zw={}.hasOwnProperty;class Fa extends Fw{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=Ew()}copy(){const t=new Fa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ei(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ri("data",this.frozen),this.namespace[t]=n,this):Zw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ri("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Cr(t),r=this.parser||this.Parser;return Ii("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ii("process",this.parser||this.Parser),Ni("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Cr(t),l=r.parse(s);r.run(l,s,function(d,c,f){if(d||!c||!f)return u(d);const p=c,h=r.stringify(p,f);Vw(h)?f.value=h:f.result=h,u(d,f)});function u(d,c){d||!c?o(d):a?a(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ii("processSync",this.parser||this.Parser),Ni("processSync",this.compiler||this.Compiler),this.process(t,i),Zs("processSync","process",n),r;function i(a,o){n=!0,Ls(a),r=o}}run(t,n,r){Fs(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const l=Cr(n);i.run(t,l,u);function u(d,c,f){const p=c||t;d?s(d):o?o(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Zs("runSync","run",r),i;function a(o,s){Ls(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Cr(n),i=this.compiler||this.Compiler;return Ni("stringify",i),Fs(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ri("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Ei(!0,i.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];a(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,f=-1;for(;++c<r.length;)if(r[c][0]===u){f=c;break}if(f===-1)r.push([u,...d]);else if(d.length>0){let[p,...h]=d;const v=r[f][1];la(v)&&la(p)&&(p=Ei(!0,v,p)),r[f]=[u,p,...h]}}}}const ZC=new Fa().freeze();function Ii(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ni(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ri(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 Fs(e){if(!la(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Cr(e){return Bw(e)?e:new $w(e)}function Bw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Vw(e){return typeof e=="string"||Uw(e)}function Uw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Bs(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Hw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ww(e,t,n){const i=ri((n||{}).ignore||[]),a=qw(t);let o=-1;for(;++o<a.length;)zu(e,"text",s);function s(u,d){let c=-1,f;for(;++c<d.length;){const p=d[c],h=f?f.children:void 0;if(i(p,h?h.indexOf(p):void 0,f))return;f=p}if(f)return l(u,d)}function l(u,d){const c=d[d.length-1],f=a[o][0],p=a[o][1];let h=0;const b=c.children.indexOf(u);let y=!1,_=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const z=x.index,N={index:x.index,input:x.input,stack:[...d,u]};let k=p(...x,N);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=z+1:(h!==z&&_.push({type:"text",value:u.value.slice(h,z)}),Array.isArray(k)?_.push(...k):k&&_.push(k),h=z+x[0].length,y=!0),!f.global)break;x=f.exec(u.value)}return y?(h<u.value.length&&_.push({type:"text",value:u.value.slice(h)}),c.children.splice(b,1,..._)):_=[u],b+_.length}}function qw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Jw(i[0]),Yw(i[1])])}return t}function Jw(e){return typeof e=="string"?new RegExp(Hw(e),"g"):e}function Yw(e){return typeof e=="function"?e:function(){return e}}const Oi="phrasing",ji=["autolink","link","image","label"];function Kw(){return{transforms:[r0],enter:{literalAutolink:Xw,literalAutolinkEmail:Pi,literalAutolinkHttp:Pi,literalAutolinkWww:Pi},exit:{literalAutolink:n0,literalAutolinkEmail:t0,literalAutolinkHttp:Qw,literalAutolinkWww:e0}}}function Gw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Oi,notInConstruct:ji},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Oi,notInConstruct:ji},{character:":",before:"[ps]",after:"\\/",inConstruct:Oi,notInConstruct:ji}]}}function Xw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Pi(e){this.config.enter.autolinkProtocol.call(this,e)}function Qw(e){this.config.exit.autolinkProtocol.call(this,e)}function e0(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function t0(e){this.config.exit.autolinkEmail.call(this,e)}function n0(e){this.exit(e)}function r0(e){Ww(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i0],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),a0]],{ignore:["link","linkReference"]})}function i0(e,t,n,r,i){let a="";if(!Nu(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!o0(n)))return!1;const o=s0(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function a0(e,t,n,r){return!Nu(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function o0(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function s0(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Bs(e,"(");let a=Bs(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Nu(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||rn(n)||ei(n))&&(!t||n!==47)}Ru.peek=g0;function l0(){this.buffer()}function u0(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function c0(){this.buffer()}function d0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function f0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function p0(e){this.exit(e)}function h0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function m0(e){this.exit(e)}function g0(){return"["}function Ru(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function y0(){return{enter:{gfmFootnoteCallString:l0,gfmFootnoteCall:u0,gfmFootnoteDefinitionLabelString:c0,gfmFootnoteDefinition:d0},exit:{gfmFootnoteCallString:f0,gfmFootnoteCall:p0,gfmFootnoteDefinitionLabelString:h0,gfmFootnoteDefinition:m0}}}function v0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ru},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let l=s.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
|
|
34
|
+
`:" ")+a.indentLines(a.containerFlow(r,s.current()),t?Ou:b0))),u(),l}}function b0(e,t,n){return t===0?e:Ou(e,t,n)}function Ou(e,t,n){return(n?"":" ")+e}const x0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ju.peek=S0;function k0(){return{canContainEols:["delete"],enter:{strikethrough:_0},exit:{strikethrough:C0}}}function w0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:x0}],handlers:{delete:ju}}}function _0(e){this.enter({type:"delete",children:[]},e)}function C0(e){this.exit(e)}function ju(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function S0(){return"~"}function E0(e){return e.length}function T0(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||E0,a=[],o=[],s=[],l=[];let u=0,d=-1;for(;++d<e.length;){const v=[],b=[];let y=-1;for(e[d].length>u&&(u=e[d].length);++y<e[d].length;){const _=A0(e[d][y]);if(n.alignDelimiters!==!1){const x=i(_);b[y]=x,(l[y]===void 0||x>l[y])&&(l[y]=x)}v.push(_)}o[d]=v,s[d]=b}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)a[c]=Vs(r[c]);else{const v=Vs(r);for(;++c<u;)a[c]=v}c=-1;const f=[],p=[];for(;++c<u;){const v=a[c];let b="",y="";v===99?(b=":",y=":"):v===108?b=":":v===114&&(y=":");let _=n.alignDelimiters===!1?1:Math.max(1,l[c]-b.length-y.length);const x=b+"-".repeat(_)+y;n.alignDelimiters!==!1&&(_=b.length+_+y.length,_>l[c]&&(l[c]=_),p[c]=_),f[c]=x}o.splice(1,0,f),s.splice(1,0,p),d=-1;const h=[];for(;++d<o.length;){const v=o[d],b=s[d];c=-1;const y=[];for(;++c<u;){const _=v[c]||"";let x="",z="";if(n.alignDelimiters!==!1){const N=l[c]-(b[c]||0),k=a[c];k===114?x=" ".repeat(N):k===99?N%2?(x=" ".repeat(N/2+.5),z=" ".repeat(N/2-.5)):(x=" ".repeat(N/2),z=x):z=" ".repeat(N)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(x),y.push(_),n.alignDelimiters!==!1&&y.push(z),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}h.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return h.join(`
|
|
35
|
+
`)}function A0(e){return e==null?"":String(e)}function Vs(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function z0(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),I0);return i(),o}function I0(e,t,n){return">"+(n?"":" ")+e}function N0(e,t){return Us(e,t.inConstruct,!0)&&!Us(e,t.notInConstruct,!1)}function Us(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Hs(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
36
|
+
`&&N0(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
37
|
+
`}function R0(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function O0(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function j0(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function P0(e,t,n,r){const i=j0(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(O0(e,n)){const c=n.enter("codeIndented"),f=n.indentLines(a,D0);return c(),f}const s=n.createTracker(r),l=i.repeat(Math.max(R0(a,i)+1,3)),u=n.enter("codeFenced");let d=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
|
|
38
|
+
`,encode:["`"],...s.current()})),c()}return d+=s.move(`
|
|
39
|
+
`),a&&(d+=s.move(a+`
|
|
40
|
+
`)),d+=s.move(l),u(),d}function D0(e,t,n){return(n?"":" ")+e}function Za(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function L0(e,t,n,r){const i=Za(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
41
|
+
`,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),o(),u}function $0(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function er(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Hr(e,t,n){const r=An(e),i=An(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Pu.peek=M0;function Pu(e,t,n,r){const i=$0(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=l.charCodeAt(0),d=Hr(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=er(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Hr(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+er(c));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function M0(e,t,n){return n.options.emphasis||"*"}function F0(e,t){let n=!1;return Iu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,oa}),!!((!e.depth||e.depth<3)&&Oa(e)&&(t.options.setext||n))}function Z0(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(F0(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
|
|
42
|
+
`,after:`
|
|
43
|
+
`});return c(),d(),f+`
|
|
44
|
+
`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
45
|
+
`))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
+
`,...a.current()});return/^[\t ]/.test(u)&&(u=er(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),s(),u}Du.peek=B0;function Du(e){return e.value||""}function B0(){return"<"}Lu.peek=V0;function Lu(e,t,n,r){const i=Za(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),o(),u}function V0(){return"!"}$u.peek=U0;function $u(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function U0(){return"!"}Mu.peek=H0;function Mu(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function H0(){return"`"}function Fu(e,t){const n=Oa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Zu.peek=W0;function Zu(e,t,n,r){const i=Za(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Fu(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=d,c}s=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),s(),u}function W0(e,t,n){return Fu(e,n)?"<":"["}Bu.peek=q0;function Bu(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function q0(){return"["}function Ba(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function J0(e){const t=Ba(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Y0(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Vu(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function K0(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Y0(n):Ba(n);const s=e.ordered?o==="."?")":".":J0(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Vu(n)===o&&d){let c=-1;for(;++c<e.children.length;){const f=e.children[c];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),u}function G0(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function X0(e,t,n,r){const i=G0(n);let a=n.bulletCurrent||Ba(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return l(),u;function d(c,f,p){return f?(p?"":" ".repeat(o))+c:(p?a:a+" ".repeat(o-a.length))+c}}function Q0(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const e1=ri(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function t1(e,t,n,r){return(e.children.some(function(o){return e1(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function n1(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Uu.peek=r1;function Uu(e,t,n,r){const i=n1(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=l.charCodeAt(0),d=Hr(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=er(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Hr(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+er(c));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function r1(e,t,n){return n.options.strong||"*"}function i1(e,t,n,r){return n.safe(e.value,r)}function a1(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function o1(e,t,n){const r=(Vu(n)+(n.options.ruleSpaces?" ":"")).repeat(a1(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Hu={blockquote:z0,break:Hs,code:P0,definition:L0,emphasis:Pu,hardBreak:Hs,heading:Z0,html:Du,image:Lu,imageReference:$u,inlineCode:Mu,link:Zu,linkReference:Bu,list:K0,listItem:X0,paragraph:Q0,root:t1,strong:Uu,text:i1,thematicBreak:o1};function s1(){return{enter:{table:l1,tableData:Ws,tableHeader:Ws,tableRow:c1},exit:{codeText:d1,table:u1,tableData:Di,tableHeader:Di,tableRow:Di}}}function l1(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function u1(e){this.exit(e),this.data.inTable=void 0}function c1(e){this.enter({type:"tableRow",children:[]},e)}function Di(e){this.exit(e)}function Ws(e){this.enter({type:"tableCell",children:[]},e)}function d1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,f1));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function f1(e,t){return t==="|"?t:e}function p1(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
47
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:l,tableRow:s}};function o(p,h,v,b){return u(d(p,v,b),p.align)}function s(p,h,v,b){const y=c(p,v,b),_=u([y]);return _.slice(0,_.indexOf(`
|
|
48
|
+
`))}function l(p,h,v,b){const y=v.enter("tableCell"),_=v.enter("phrasing"),x=v.containerPhrasing(p,{...b,before:a,after:a});return _(),y(),x}function u(p,h){return T0(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function d(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("table");for(;++y<b.length;)_[y]=c(b[y],h,v);return x(),_}function c(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("tableRow");for(;++y<b.length;)_[y]=l(b[y],p,h,v);return x(),_}function f(p,h,v){let b=Hu.inlineCode(p,h,v);return v.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function h1(){return{exit:{taskListCheckValueChecked:qs,taskListCheckValueUnchecked:qs,paragraph:g1}}}function m1(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:y1}}}function qs(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function g1(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function y1(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=Hu.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+o}}function BC(){return[Kw(),y0(),k0(),s1(),h1()]}function VC(e){return{extensions:[Gw(),v0(e),w0(),p1(e),m1()]}}const v1={tokenize:C1,partial:!0},Wu={tokenize:S1,partial:!0},qu={tokenize:E1,partial:!0},Ju={tokenize:T1,partial:!0},b1={tokenize:A1,partial:!0},Yu={name:"wwwAutolink",tokenize:w1,previous:Gu},Ku={name:"protocolAutolink",tokenize:_1,previous:Xu},Ot={name:"emailAutolink",tokenize:k1,previous:Qu},Tt={};function x1(){return{text:Tt}}let en=48;for(;en<123;)Tt[en]=Ot,en++,en===58?en=65:en===91&&(en=97);Tt[43]=Ot;Tt[45]=Ot;Tt[46]=Ot;Tt[95]=Ot;Tt[72]=[Ot,Ku];Tt[104]=[Ot,Ku];Tt[87]=[Ot,Yu];Tt[119]=[Ot,Yu];function k1(e,t,n){const r=this;let i,a;return o;function o(c){return!ca(c)||!Qu.call(r,r.previous)||Va(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return ca(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(b1,d,u)(c):c===45||c===95||Me(c)?(a=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),i=!0,l}function d(c){return a&&i&&Be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function w1(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Gu.call(r,r.previous)||Va(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(v1,e.attempt(Wu,e.attempt(qu,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function _1(e,t,n){const r=this;let i="",a=!1;return o;function o(c){return(c===72||c===104)&&Xu.call(r,r.previous)&&!Va(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Be(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),a?u:(a=!0,l)):n(c)}function u(c){return c===null||Br(c)||we(c)||rn(c)||ei(c)?n(c):e.attempt(Wu,e.attempt(qu,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function C1(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function S1(e,t,n){let r,i,a;return o;function o(u){return u===46||u===95?e.check(Ju,l,s)(u):u===null||we(u)||rn(u)||u!==45&&ei(u)?l(u):(a=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!a?n(u):t(u)}}function E1(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Ju,t,a)(o):o===null||we(o)||rn(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function T1(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||we(s)||rn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||we(s)||rn(s)?t(s):r(s)}function a(s){return Be(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Be(s)?(e.consume(s),o):n(s)}}function A1(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Me(a)?n(a):t(a)}}function Gu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function Xu(e){return!Be(e)}function Qu(e){return!(e===47||ca(e))}function ca(e){return e===43||e===45||e===46||e===95||Me(e)}function Va(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const z1={tokenize:L1,partial:!0};function I1(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:j1,continuation:{tokenize:P1},exit:D1}},text:{91:{name:"gfmFootnoteCall",tokenize:O1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:N1,resolveTo:R1}}}}function N1(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const u=mt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function R1(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function O1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||c===93&&!o||c===null||c===91||we(c))return n(c);if(c===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return we(c)||(o=!0),a++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),a++,u):u(c)}}function j1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(o>999||h===93&&!s||h===null||h===91||we(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=mt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return we(h)||(s=!0),o++,e.consume(h),h===92?c:d}function c(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(a)||i.push(a),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function P1(e,t,n){return e.check(ar,t,e.attempt(z1,t,n))}function D1(e){e.exit("gfmFootnoteDefinition")}function L1(e,t,n){const r=this;return me(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function $1(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",d,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&it(f,f.length,0,ti(p,o.slice(u+1,l),s)),it(f,f.length,0,[["exit",c,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),it(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const u=this.previous,d=this.events;let c=0;return f;function f(h){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const v=An(u);if(h===126)return c>1?l(h):(o.consume(h),c++,p);if(c<2&&!n)return l(h);const b=o.exit("strikethroughSequenceTemporary"),y=An(h);return b._open=!y||y===2&&!!v,b._close=!v||v===2&&!!y,s(h)}}}class M1{constructor(){this.map=[]}add(t,n,r){F1(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function F1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Z1(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function B1(){return{flow:{null:{name:"table",tokenize:V1,resolveAll:U1}}}}function V1(e,t,n){const r=this;let i=0,a=0,o;return s;function s(w){let M=r.events.length-1;for(;M>-1;){const Z=r.events[M][1].type;if(Z==="lineEnding"||Z==="linePrefix")M--;else break}const P=M>-1?r.events[M][1].type:null,W=P==="tableHead"||P==="tableRow"?k:l;return W===k&&r.parser.lazy[r.now().line]?n(w):W(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(o=!0,a+=1),d(w)}function d(w){return w===null?n(w):ee(w)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):ce(w)?me(e,d,"whitespace")(w):(a+=1,o&&(o=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),c(w)))}function c(w){return w===null||w===124||we(w)?(e.exit("data"),d(w)):(e.consume(w),w===92?f:c)}function f(w){return w===92||w===124?(e.consume(w),c):c(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),o=!1,ce(w)?me(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):h(w))}function h(w){return w===45||w===58?b(w):w===124?(o=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),v):N(w)}function v(w){return ce(w)?me(e,b,"whitespace")(w):b(w)}function b(w){return w===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(a+=1,y(w)):w===null||ee(w)?z(w):N(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),_(w)):N(w)}function _(w){return w===45?(e.consume(w),_):w===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(w))}function x(w){return ce(w)?me(e,z,"whitespace")(w):z(w)}function z(w){return w===124?h(w):w===null||ee(w)?!o||i!==a?N(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):N(w)}function N(w){return n(w)}function k(w){return e.enter("tableRow"),$(w)}function $(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),$):w===null||ee(w)?(e.exit("tableRow"),t(w)):ce(w)?me(e,$,"whitespace")(w):(e.enter("data"),R(w))}function R(w){return w===null||w===124||we(w)?(e.exit("data"),$(w)):(e.consume(w),w===92?U:R)}function U(w){return w===92||w===124?(e.consume(w),R):R(w)}}function U1(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,d,c;const f=new M1;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(Js(f,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",d,t]])),i=h.type==="tableDelimiterRow"?2:d?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],c=Sr(f,t,a,i,void 0,c),a=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],c=Sr(f,t,a,i,void 0,c)),a=o,o=[a[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],c=Sr(f,t,a,i,n,c)):o[1]!==0&&(c=Sr(f,t,o,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Js(f,t,l,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Z1(t.events,n))}return e}function Sr(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},hn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=hn(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=hn(t.events,n[2]),d=hn(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,v=n[3]-n[2]-1;e.add(h,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},hn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Js(e,t,n,r,i){const a=[],o=hn(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function hn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const H1={name:"tasklistCheck",tokenize:q1};function W1(){return{text:{91:H1}}}function q1(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ee(l)?t(l):ce(l)?e.check({tokenize:J1},t,n)(l):n(l)}}function J1(e,t,n){return me(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function UC(e){return cu([x1(),I1(),$1(e),B1(),W1()])}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(null,arguments)}function pe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ec={},tc=V.createContext(ec),Y1=(e,t)=>E({},e,t),K1=()=>V.useContext(tc),Ua=V.createContext(()=>{});Ua.displayName="JVR.DispatchShowTools";function G1(){return V.useReducer(Y1,ec)}function nc(){return V.useContext(Ua)}var rc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(tc.Provider,{value:t,children:I.jsx(Ua.Provider,{value:n,children:r})})};rc.displayName="JVR.ShowTools";var ic={},ac=V.createContext(ic),X1=(e,t)=>E({},e,t),ai=()=>V.useContext(ac),Ha=V.createContext(()=>{});Ha.displayName="JVR.DispatchExpands";function Q1(){return V.useReducer(X1,ic)}function e_(){return V.useContext(Ha)}var oc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(ac.Provider,{value:t,children:I.jsx(Ha.Provider,{value:n,children:r})})};oc.displayName="JVR.Expands";var sc={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},lc=V.createContext(sc),t_=(e,t)=>E({},e,t),Ce=()=>V.useContext(lc),Wa=V.createContext(()=>{});Wa.displayName="JVR.DispatchTypes";function n_(){return V.useReducer(t_,sc)}function r_(){return V.useContext(Wa)}function uc(e){var{initial:t,dispatch:n,children:r}=e;return I.jsx(lc.Provider,{value:t,children:I.jsx(Wa.Provider,{value:n,children:r})})}uc.displayName="JVR.Types";var i_=["style"];function cc(e){var{style:t}=e,n=pe(e,i_),r=E({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return I.jsx("svg",E({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}cc.displayName="JVR.TriangleArrow";var dc={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:I.jsx(cc,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},fc=V.createContext(dc),a_=(e,t)=>E({},e,t),Ke=()=>V.useContext(fc),qa=V.createContext(()=>{});qa.displayName="JVR.DispatchSymbols";function o_(){return V.useReducer(a_,dc)}function s_(){return V.useContext(qa)}var pc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(fc.Provider,{value:t,children:I.jsx(qa.Provider,{value:n,children:r})})};pc.displayName="JVR.Symbols";var hc={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},mc=V.createContext(hc),l_=(e,t)=>E({},e,t),dt=()=>V.useContext(mc),Ja=V.createContext(()=>{});Ja.displayName="JVR.DispatchSection";function u_(){return V.useReducer(l_,hc)}function c_(){return V.useContext(Ja)}var gc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(mc.Provider,{value:t,children:I.jsx(Ja.Provider,{value:n,children:r})})};gc.displayName="JVR.Section";var yc={objectSortKeys:!1,indentWidth:15},Ya=V.createContext(yc);Ya.displayName="JVR.Context";var vc=V.createContext(()=>{});vc.displayName="JVR.DispatchContext";function d_(e,t){return E({},e,t)}var ln=()=>V.useContext(Ya),bc=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,a]=V.useReducer(d_,Object.assign({},yc,n)),[o,s]=G1(),[l,u]=Q1(),[d,c]=n_(),[f,p]=o_(),[h,v]=u_();return V.useEffect(()=>a(E({},n)),[n]),I.jsx(Ya.Provider,{value:i,children:I.jsx(vc.Provider,{value:a,children:I.jsx(rc,{initial:o,dispatch:s,children:I.jsx(oc,{initial:l,dispatch:u,children:I.jsx(uc,{initial:E({},d,r),dispatch:c,children:I.jsx(pc,{initial:f,dispatch:p,children:I.jsx(gc,{initial:h,dispatch:v,children:t})})})})})})})};bc.displayName="JVR.Provider";function f_(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var p_=["isNumber","value","parentValue","keyName","keys"],h_=["as","render"],m_=["as","render"],g_=["as","render"],y_=["as","style","render"],v_=["as","render"],b_=["as","render"],x_=["as","render"],k_=["as","render"],da=e=>{var{Quote:t={}}=Ke(),{isNumber:n,value:r,parentValue:i,keyName:a,keys:o}=e,s=pe(e,p_);if(n)return null;var{as:l,render:u}=t,d=pe(t,h_),c=l||"span",f=E({},s,d),p={value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])},h=u&&typeof u=="function"&&u(f,p);return h||I.jsx(c,E({},f))};da.displayName="JVR.Quote";var tr=e=>{var{ValueQuote:t={}}=Ke(),n=E({},(f_(e),e)),{as:r,render:i}=t,a=pe(t,m_),o=r||"span",s=E({},n,a),l=i&&typeof i=="function"&&i(s,{});return l||I.jsx(o,E({},s))};tr.displayName="JVR.ValueQuote";var xc=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:a={}}=Ke(),{as:o,render:s}=a,l=pe(a,g_),u=o||"span",d=s&&typeof s=="function"&&s(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return d||I.jsx(u,E({},l))};xc.displayName="JVR.Colon";var kc=e=>{var{Arrow:t={}}=Ke(),n=ai(),{expandKey:r,style:i,value:a,parentValue:o,keyName:s,keys:l}=e,u=!!n[r],{as:d,style:c,render:f}=t,p=pe(t,y_),h=d||"span",v=f&&typeof f=="function",b=E({},p,{"data-expanded":u,style:E({},c,i)}),y={value:a,parentValue:o,keyName:s,keys:l||(s?[s]:[])},_=v&&f(b,y);return _||I.jsx(h,E({},p,{style:E({},c,i)}))};kc.displayName="JVR.Arrow";var wc=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:a}=e,{BracketsLeft:o={},BraceLeft:s={}}=Ke(),l={value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])};if(t){var{as:u,render:d}=o,c=pe(o,v_),f=u||"span",p=d&&typeof d=="function"&&d(c,l);return p||I.jsx(f,E({},c))}var{as:h,render:v}=s,b=pe(s,b_),y=h||"span",_=v&&typeof v=="function"&&v(b,l);return _||I.jsx(y,E({},b))};wc.displayName="JVR.BracketsOpen";var Ka=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:a,keys:o}=e,s={value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:u={}}=Ke();if(t){var{as:d,render:c}=l,f=pe(l,x_),p=d||"span",h=c&&typeof c=="function"&&c(f,s);return h||I.jsx(p,E({},f))}var{as:v,render:b}=u,y=pe(u,k_),_=v||"span",x=b&&typeof b=="function"&&b(y,s);return x||I.jsx(_,E({},y))};Ka.displayName="JVR.BracketsClose";var _c=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:a,level:o,keys:s=[]}=e,l=ai(),{collapsed:u,shouldExpandNodeInitially:d}=ln(),c=typeof u=="boolean"?u:typeof u=="number"?o>u:!1,f=(t=l[i])!=null?t:d?!1:c,p=d&&d(!f,{value:r,keys:s,level:o,keyName:n,parentValue:a});if(l[i]===void 0&&!p)return null;var h=Object.keys(r).length;if(f||h===0)return null;var v={paddingLeft:4},b={keyName:n,value:r,keys:s,parentValue:a},y=Array.isArray(r),_=r instanceof Set;return I.jsx("div",{style:v,children:I.jsx(Ka,E({isBrackets:y||_},b,{isVisiable:!0}))})};_c.displayName="JVR.NestedClose";var w_=["as","render"],__=["as","render"],C_=["as","render"],S_=["as","render"],E_=["as","render"],T_=["as","render"],A_=["as","render"],z_=["as","render"],I_=["as","render"],N_=["as","render"],R_=["as","render"],O_=["as","render"],j_=["as","render"],fa=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Cc=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=Ce(),a=t instanceof Set;if(!a||!i)return null;var{as:o,render:s}=r,l=pe(r,w_),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=o||"span";return I.jsx(c,E({},l))};Cc.displayName="JVR.SetComp";var Sc=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=Ce(),a=t instanceof Map;if(!a||!i)return null;var{as:o,render:s}=r,l=pe(r,__),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=o||"span";return I.jsx(c,E({},l))};Sc.displayName="JVR.MapComp";var vt={opacity:.75,paddingRight:4},Ec=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:a}=Ce(),{shortenTextAfterLength:o=30,stringEllipsis:s="..."}=ln(),{as:l,render:u}=i,d=pe(i,C_),c=t,[f,p]=V.useState(o&&c.length>o);V.useEffect(()=>p(o&&c.length>o),[o]);var h=l||"span",v=E({},vt,i.style||{});o>0&&(d.style=E({},d.style,{cursor:c.length<=o?"initial":"pointer"}),c.length>o&&(d.onClick=()=>{p(!f)}));var b=f?""+c.slice(0,o)+s:c,y=u&&typeof u=="function",_=y&&u(E({},d,{style:v}),{type:"type",value:t,keyName:n,keys:r}),x=f?"w-rjv-value w-rjv-value-short":"w-rjv-value",z=y&&u(E({},d,{children:b,className:x}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(_||I.jsx(h,E({},d,{style:v}))),z||I.jsxs(V.Fragment,{children:[I.jsx(tr,{}),I.jsx(h,E({},d,{className:x,children:b})),I.jsx(tr,{})]})]})};Ec.displayName="JVR.TypeString";var Tc=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,S_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Tc.displayName="JVR.TypeTrue";var Ac=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,E_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Ac.displayName="JVR.TypeFalse";var zc=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,T_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};zc.displayName="JVR.TypeFloat";var Ic=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,A_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Ic.displayName="JVR.TypeInt";var Nc=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,z_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:fa(t?.toString())}))]})};Nc.displayName="JVR.TypeFloat";var Rc=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,I_),u=o||"span",d=E({},vt,i.style),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsxs("a",E({href:t?.href,target:"_blank"},l,{className:"w-rjv-value",children:[I.jsx(tr,{}),t?.href,I.jsx(tr,{})]}))]})};Rc.displayName="JVR.TypeUrl";var Oc=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,N_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,h=c&&s(E({},l,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),h||I.jsx(u,E({},l,{className:"w-rjv-value",children:p}))]})};Oc.displayName="JVR.TypeDate";var jc=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,R_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p]})};jc.displayName="JVR.TypeUndefined";var Pc=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,O_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p]})};Pc.displayName="JVR.TypeNull";var Dc=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:a}=Ce(),{as:o,render:s}=i,l=pe(i,j_),u=o||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[a&&(f||I.jsx(u,E({},l,{style:d}))),p]})};Dc.displayName="JVR.TypeNan";var P_=e=>Number(e)===e&&e%1!==0||isNaN(e),Lc=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?I.jsx(Rc,E({},i,{children:t})):typeof t=="string"?I.jsx(Ec,E({},i,{children:t})):t===!0?I.jsx(Tc,E({},i,{children:t})):t===!1?I.jsx(Ac,E({},i,{children:t})):t===null?I.jsx(Pc,E({},i,{children:t})):t===void 0?I.jsx(jc,E({},i,{children:t})):t instanceof Date?I.jsx(Oc,E({},i,{children:t})):typeof t=="number"&&isNaN(t)?I.jsx(Dc,E({},i,{children:t})):typeof t=="number"&&P_(t)?I.jsx(zc,E({},i,{children:t})):typeof t=="bigint"?I.jsx(Nc,E({},i,{children:t})):typeof t=="number"?I.jsx(Ic,E({},i,{children:t})):null};Lc.displayName="JVR.Value";function Kt(e,t,n){var r=s_(),i=[e.className,t.className].filter(Boolean).join(" "),a=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:a}),[t])}function at(e,t,n){var r=r_(),i=[e.className,t.className].filter(Boolean).join(" "),a=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:a}),[t])}function Pn(e,t,n){var r=c_(),i=[e.className,t.className].filter(Boolean).join(" "),a=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:a}),[t])}var D_=["as","render"],$c=e=>{var{KeyName:t={}}=dt();return Pn(t,e,"KeyName"),null};$c.displayName="JVR.KeyName";var Mc=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o=typeof t=="number",s={color:o?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=dt(),{as:u,render:d}=l,c=pe(l,D_);c.style=E({},c.style,s);var f=u||"span",p=d&&typeof d=="function"&&d(E({},c,{children:t}),{value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])});return p||I.jsx(f,E({},c,{children:t}))};Mc.displayName="JVR.KeyNameComp";var L_=["children","value","parentValue","keyName","keys"],$_=["as","render","children"],Fc=e=>{var{Row:t={}}=dt();return Pn(t,e,"Row"),null};Fc.displayName="JVR.Row";var Zc=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o=pe(e,L_),{Row:s={}}=dt(),{as:l,render:u}=s,d=pe(s,$_),c=l||"div",f=u&&typeof u=="function"&&u(E({},o,d,{children:t}),{value:n,keyName:i,parentValue:r,keys:a});return f||I.jsx(c,E({},o,d,{children:t}))};Zc.displayName="JVR.RowComp";function M_(e){var t=V.useRef();return V.useEffect(()=>{t.current=e}),t.current}function F_(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=M_(t),a=V.useMemo(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==i)return!0},[n,t]);V.useEffect(()=>{r&&r.current&&a&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,r])}var Z_=["keyName","value","parentValue","expandKey","keys","beforeCopy"],B_=["as","render"],Ga=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:a,beforeCopy:o}=e,s=pe(e,Z_),{onCopied:l,enableClipboard:u,beforeCopy:d}=ln(),c=K1(),f=c[i],[p,h]=V.useState(!1),{Copied:v={}}=dt(),b=v?.beforeCopy;if(u===!1||!f)return null;var y=R=>{R.stopPropagation();var U="";typeof n=="number"&&n===1/0?U="Infinity":typeof n=="number"&&isNaN(n)?U="NaN":typeof n=="bigint"?U=fa(n):n instanceof Date?U=n.toLocaleString():U=JSON.stringify(n,(P,W)=>typeof W=="bigint"?fa(W):W,2);var w=o||b||d;w&&typeof w=="function"&&(U=w(U,t,n,r,i,a)),l&&l(U,n),h(!0);var M=navigator.clipboard||{writeText(P){return new Promise((W,Z)=>{var O=document.createElement("textarea");O.style.position="absolute",O.style.opacity="0",O.style.left="-99999999px",O.value=P,document.body.appendChild(O),O.select(),document.execCommand("copy")?W():Z(),O.remove()})}};M.writeText(U).then(()=>{var P=setTimeout(()=>{h(!1),clearTimeout(P)},3e3)}).catch(P=>{})},_={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:y},{render:x}=v,z=pe(v,B_),N=E({},z,s,_,{style:E({},z.style,s.style,_.style)}),k=x&&typeof x=="function",$=k&&x(E({},N,{"data-copied":p}),{value:n,keyName:t,keys:a,parentValue:r});return $||(p?I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Ga.displayName="JVR.Copied";function Bc(){var e=V.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Vc=e=>{var t,{keyName:n,value:r,expandKey:i="",level:a,keys:o=[],parentValue:s}=e,l=ai(),{objectSortKeys:u,indentWidth:d,collapsed:c,shouldExpandNodeInitially:f}=ln(),p=typeof c=="boolean"?c:typeof c=="number"?a>c:!1,h=(t=l[i])!=null?t:f?!1:p,v=f&&f(!h,{value:r,keys:o,level:a,keyName:n,parentValue:s});if(l[i]===void 0&&!v||h)return null;var b=Array.isArray(r),y=b?Object.entries(r).map(x=>[Number(x[0]),x[1]]):Object.entries(r);u&&(y=u===!0?y.sort((x,z)=>{var[N]=x,[k]=z;return typeof N=="string"&&typeof k=="string"?N.localeCompare(k):0}):y.sort((x,z)=>{var[N,k]=x,[$,R]=z;return typeof N=="string"&&typeof $=="string"?u(N,$,k,R):0}));var _={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return I.jsx("div",{className:"w-rjv-wrap",style:_,children:y.map((x,z)=>{var[N,k]=x;return I.jsx(Uc,{parentValue:r,keyName:N,keys:[...o,N],value:k,level:a},z)})})};Vc.displayName="JVR.KeyValues";var Xa=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:a}=ln(),o=typeof t=="number",s=V.useRef(null);F_({value:i,highlightUpdates:a,highlightContainer:s});var l={keyName:t,value:i,keys:r,parentValue:n};return I.jsxs(V.Fragment,{children:[I.jsxs("span",{ref:s,children:[I.jsx(da,E({isNumber:o,"data-placement":"left"},l)),I.jsx(Mc,E({},l,{children:t})),I.jsx(da,E({isNumber:o,"data-placement":"right"},l))]}),I.jsx(xc,E({},l))]})};Xa.displayName="JVR.KayName";var Uc=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:a=[]}=e,o=nc(),s=Bc(),l=Array.isArray(n),u=n instanceof Set,d=n instanceof Map,c=n instanceof Date,f=n instanceof URL,p=n&&typeof n=="object"&&!l&&!u&&!d&&!c&&!f,h=p||l||u||d;if(h){var v=u?Array.from(n):d?Object.fromEntries(n):n;return I.jsx(Qa,{keyName:t,value:v,parentValue:r,initialValue:n,keys:a,level:i+1})}var b={onMouseEnter:()=>o({[s]:!0}),onMouseLeave:()=>o({[s]:!1})};return I.jsxs(Zc,E({className:"w-rjv-line",value:n,keyName:t,keys:a,parentValue:r},b,{children:[I.jsx(Xa,{keyName:t,value:n,keys:a,parentValue:r}),I.jsx(Lc,{keyName:t,value:n,keys:a}),I.jsx(Ga,{keyName:t,value:n,keys:a,parentValue:r,expandKey:s})]}))};Uc.displayName="JVR.KeyValuesItem";var V_=["value","keyName"],U_=["as","render"],Hc=e=>{var{CountInfoExtra:t={}}=dt();return Pn(t,e,"CountInfoExtra"),null};Hc.displayName="JVR.CountInfoExtra";var Wc=e=>{var{value:t={},keyName:n}=e,r=pe(e,V_),{CountInfoExtra:i={}}=dt(),{as:a,render:o}=i,s=pe(i,U_);if(!o&&!s.children)return null;var l=a||"span",u=o&&typeof o=="function",d=E({},s,r),c=u&&o(d,{value:t,keyName:n});return c||I.jsx(l,E({},d))};Wc.displayName="JVR.CountInfoExtraComps";var H_=["value","keyName"],W_=["as","render"],qc=e=>{var{CountInfo:t={}}=dt();return Pn(t,e,"CountInfo"),null};qc.displayName="JVR.CountInfo";var Jc=e=>{var{value:t={},keyName:n}=e,r=pe(e,H_),{displayObjectSize:i}=ln(),{CountInfo:a={}}=dt();if(!i)return null;var{as:o,render:s}=a,l=pe(a,W_),u=o||"span";l.style=E({},l.style,e.style);var d=Object.keys(t).length;l.children||(l.children=d+" item"+(d===1?"":"s"));var c=E({},l,r),f=s&&typeof s=="function",p=f&&s(E({},c,{"data-length":d}),{value:t,keyName:n});return p||I.jsx(u,E({},c))};Jc.displayName="JVR.CountInfoComp";var q_=["as","render"],Yc=e=>{var{Ellipsis:t={}}=dt();return Pn(t,e,"Ellipsis"),null};Yc.displayName="JVR.Ellipsis";var Kc=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=dt(),{as:a,render:o}=i,s=pe(i,q_),l=a||"span",u=o&&typeof o=="function"&&o(E({},s,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:I.jsx(l,E({},s)))};Kc.displayName="JVR.EllipsisComp";var Gc=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:a,value:o,parentValue:s,level:l}=e,u=ai(),d=e_(),{onExpand:c,collapsed:f,shouldExpandNodeInitially:p}=ln(),h=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[r])!=null?t:p?!1:h,b=p&&p(!v,{value:o,keys:i,level:l,keyName:n,parentValue:s});u[r]===void 0&&p&&(v=!b);var y=()=>{var M={expand:!v,value:o,keyid:r,keyName:n};c&&c(M),d({[r]:M.expand})},_={display:"inline-flex",alignItems:"center"},x={transform:"rotate("+(v?"-90":"0")+"deg)",transition:"all 0.3s"},z=Object.keys(o).length,N=typeof o=="object",k=Array.isArray(o),$=o instanceof Set,R=z!==0&&(k||$||N),U={style:_};R&&(U.onClick=y);var w={keyName:n,value:o,keys:i,parentValue:s};return I.jsxs("span",E({},U,{children:[R&&I.jsx(kc,E({style:x,expandKey:r},w)),(n||typeof n=="number")&&I.jsx(Xa,E({},w)),I.jsx(Cc,{value:a,keyName:n}),I.jsx(Sc,{value:a,keyName:n}),I.jsx(wc,E({isBrackets:k||$},w)),I.jsx(Kc,{keyName:n,value:o,isExpanded:v}),I.jsx(Ka,E({isVisiable:v||!R,isBrackets:k||$},w)),I.jsx(Jc,{value:o,keyName:n}),I.jsx(Wc,{value:o,keyName:n}),I.jsx(Ga,{keyName:n,value:o,expandKey:r,parentValue:s,keys:i})]}))};Gc.displayName="JVR.NestedOpen";var J_=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Qa=V.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:a,initialValue:o,keys:s,keyName:l}=e,u=pe(e,J_),d=nc(),c=Bc(),f=[n,"w-rjv-inner"].filter(Boolean).join(" "),p={onMouseEnter:()=>d({[c]:!0}),onMouseLeave:()=>d({[c]:!1})};return I.jsxs("div",E({className:f,ref:t},u,p,{children:[I.jsx(Gc,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l,initialValue:o}),I.jsx(Vc,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l}),I.jsx(_c,{expandKey:c,value:a,level:i,keys:s,parentValue:r,keyName:l})]}))});Qa.displayName="JVR.Container";var Xc=e=>{var{BraceLeft:t={}}=Ke();return Kt(t,e,"BraceLeft"),null};Xc.displayName="JVR.BraceLeft";var Qc=e=>{var{BraceRight:t={}}=Ke();return Kt(t,e,"BraceRight"),null};Qc.displayName="JVR.BraceRight";var ed=e=>{var{BracketsLeft:t={}}=Ke();return Kt(t,e,"BracketsLeft"),null};ed.displayName="JVR.BracketsLeft";var td=e=>{var{BracketsRight:t={}}=Ke();return Kt(t,e,"BracketsRight"),null};td.displayName="JVR.BracketsRight";var nd=e=>{var{Arrow:t={}}=Ke();return Kt(t,e,"Arrow"),null};nd.displayName="JVR.Arrow";var rd=e=>{var{Colon:t={}}=Ke();return Kt(t,e,"Colon"),null};rd.displayName="JVR.Colon";var id=e=>{var{Quote:t={}}=Ke();return Kt(t,e,"Quote"),null};id.displayName="JVR.Quote";var ad=e=>{var{ValueQuote:t={}}=Ke();return Kt(t,e,"ValueQuote"),null};ad.displayName="JVR.ValueQuote";var od=e=>{var{Bigint:t={}}=Ce();return at(t,e,"Bigint"),null};od.displayName="JVR.Bigint";var sd=e=>{var{Date:t={}}=Ce();return at(t,e,"Date"),null};sd.displayName="JVR.Date";var ld=e=>{var{False:t={}}=Ce();return at(t,e,"False"),null};ld.displayName="JVR.False";var ud=e=>{var{Float:t={}}=Ce();return at(t,e,"Float"),null};ud.displayName="JVR.Float";var cd=e=>{var{Int:t={}}=Ce();return at(t,e,"Int"),null};cd.displayName="JVR.Int";var dd=e=>{var{Map:t={}}=Ce();return at(t,e,"Map"),null};dd.displayName="JVR.Map";var fd=e=>{var{Nan:t={}}=Ce();return at(t,e,"Nan"),null};fd.displayName="JVR.Nan";var pd=e=>{var{Null:t={}}=Ce();return at(t,e,"Null"),null};pd.displayName="JVR.Null";var hd=e=>{var{Set:t={}}=Ce();return at(t,e,"Set"),null};hd.displayName="JVR.Set";var md=e=>{var{Str:t={}}=Ce();return at(t,e,"Str"),null};md.displayName="JVR.StringText";var gd=e=>{var{True:t={}}=Ce();return at(t,e,"True"),null};gd.displayName="JVR.True";var yd=e=>{var{Undefined:t={}}=Ce();return at(t,e,"Undefined"),null};yd.displayName="JVR.Undefined";var vd=e=>{var{Url:t={}}=Ce();return at(t,e,"Url"),null};vd.displayName="JVR.Url";var bd=e=>{var{Copied:t={}}=dt();return Pn(t,e,"Copied"),null};bd.displayName="JVR.Copied";var Y_=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],be=V.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:a,collapsed:o=!1,shouldExpandNodeInitially:s=()=>!0,indentWidth:l=15,displayObjectSize:u=!0,shortenTextAfterLength:d=30,stringEllipsis:c,highlightUpdates:f=!0,enableClipboard:p=!0,displayDataTypes:h=!0,objectSortKeys:v=!1,onExpand:b,onCopied:y,beforeCopy:_}=e,x=pe(e,Y_),z=E({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),N=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return I.jsxs(bc,{initialState:{value:i,objectSortKeys:v,indentWidth:l,shouldExpandNodeInitially:o===!1?s:()=>!1,displayObjectSize:u,collapsed:o,enableClipboard:p,shortenTextAfterLength:d,stringEllipsis:c,highlightUpdates:f,onCopied:y,onExpand:b,beforeCopy:_},initialTypes:{displayDataTypes:h},children:[I.jsx(Qa,E({value:i},x,{ref:t,className:N,style:z})),a]})});be.Bigint=od;be.Date=sd;be.False=ld;be.Float=ud;be.Int=cd;be.Map=dd;be.Nan=fd;be.Null=pd;be.Set=hd;be.String=md;be.True=gd;be.Undefined=yd;be.Url=vd;be.ValueQuote=ad;be.Arrow=nd;be.Colon=rd;be.Quote=id;be.Ellipsis=Yc;be.BraceLeft=Xc;be.BraceRight=Qc;be.BracketsLeft=ed;be.BracketsRight=td;be.Copied=bd;be.CountInfo=qc;be.CountInfoExtra=Hc;be.KeyName=$c;be.Row=Fc;be.displayName="JVR.JsonView";export{xC as $,Lr as A,SC as B,kC as C,CC as D,ZC as E,MC as F,FC as G,DC as H,Iu as I,LC as J,$C as K,Am as L,iC as M,tC as N,eC as O,aC as P,sC as Q,km as R,oC as S,So as T,Q_ as U,$w as V,nC as W,Ih as X,rC as Y,_m as Z,Ry as _,uC as a,Ug as a0,bC as a1,vC as a2,be as a3,mC as b,pC as c,cC as d,BC as e,VC as f,UC as g,EC as h,AC as i,zC as j,IC as k,yC as l,RC as m,dC as n,hC as o,OC as p,PC as q,gC as r,lC as s,jC as t,fC as u,NC as v,TC as w,X_ as x,_C as y,wC as z};
|